| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/booking-form", |
| 5 |
"title": "Booking Form", |
| 6 |
"category": "bkbg-marketing", |
| 7 |
"description": "Appointment booking form with calendar date picker, time slot selection, service type and confirmation message.", |
| 8 |
"keywords": [ |
| 9 |
"booking", |
| 10 |
"appointment", |
| 11 |
"calendar", |
| 12 |
"schedule", |
| 13 |
"reservation", |
| 14 |
"form", |
| 15 |
"date", |
| 16 |
"time" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-booking-form-editor", |
| 20 |
"style": "bkbg-booking-form-style", |
| 21 |
"viewScript": "bkbg-booking-form-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"formTitle": { |
| 33 |
"type": "string", |
| 34 |
"default": "Book an Appointment" |
| 35 |
}, |
| 36 |
"formSubtitle": { |
| 37 |
"type": "string", |
| 38 |
"default": "Choose your preferred date and time." |
| 39 |
}, |
| 40 |
"services": { |
| 41 |
"type": "array", |
| 42 |
"default": [ |
| 43 |
{ |
| 44 |
"label": "Consultation (30 min)", |
| 45 |
"duration": 30, |
| 46 |
"price": "$50" |
| 47 |
}, |
| 48 |
{ |
| 49 |
"label": "Full Session (60 min)", |
| 50 |
"duration": 60, |
| 51 |
"price": "$90" |
| 52 |
}, |
| 53 |
{ |
| 54 |
"label": "Workshop (90 min)", |
| 55 |
"duration": 90, |
| 56 |
"price": "$120" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
"timeSlots": { |
| 61 |
"type": "array", |
| 62 |
"default": [ |
| 63 |
"09:00", |
| 64 |
"09:30", |
| 65 |
"10:00", |
| 66 |
"10:30", |
| 67 |
"11:00", |
| 68 |
"11:30", |
| 69 |
"14:00", |
| 70 |
"14:30", |
| 71 |
"15:00", |
| 72 |
"15:30", |
| 73 |
"16:00", |
| 74 |
"16:30" |
| 75 |
] |
| 76 |
}, |
| 77 |
"blockedDays": { |
| 78 |
"type": "array", |
| 79 |
"default": [ |
| 80 |
0, |
| 81 |
6 |
| 82 |
] |
| 83 |
}, |
| 84 |
"showServiceSelect": { |
| 85 |
"type": "boolean", |
| 86 |
"default": true |
| 87 |
}, |
| 88 |
"showNameField": { |
| 89 |
"type": "boolean", |
| 90 |
"default": true |
| 91 |
}, |
| 92 |
"showEmailField": { |
| 93 |
"type": "boolean", |
| 94 |
"default": true |
| 95 |
}, |
| 96 |
"showPhoneField": { |
| 97 |
"type": "boolean", |
| 98 |
"default": true |
| 99 |
}, |
| 100 |
"showNotes": { |
| 101 |
"type": "boolean", |
| 102 |
"default": true |
| 103 |
}, |
| 104 |
"showPrice": { |
| 105 |
"type": "boolean", |
| 106 |
"default": true |
| 107 |
}, |
| 108 |
"confirmationTitle": { |
| 109 |
"type": "string", |
| 110 |
"default": "Booking Confirmed! 🎉" |
| 111 |
}, |
| 112 |
"confirmationMsg": { |
| 113 |
"type": "string", |
| 114 |
"default": "Thank you! We've received your booking and will send a confirmation email shortly." |
| 115 |
}, |
| 116 |
"submitLabel": { |
| 117 |
"type": "string", |
| 118 |
"default": "Confirm Booking" |
| 119 |
}, |
| 120 |
"formWidth": { |
| 121 |
"type": "number", |
| 122 |
"default": 600 |
| 123 |
}, |
| 124 |
"formRadius": { |
| 125 |
"type": "number", |
| 126 |
"default": 20 |
| 127 |
}, |
| 128 |
"inputRadius": { |
| 129 |
"type": "number", |
| 130 |
"default": 10 |
| 131 |
}, |
| 132 |
"calendarRadius": { |
| 133 |
"type": "number", |
| 134 |
"default": 12 |
| 135 |
}, |
| 136 |
"formBg": { |
| 137 |
"type": "string", |
| 138 |
"default": "#ffffff" |
| 139 |
}, |
| 140 |
"formBorder": { |
| 141 |
"type": "string", |
| 142 |
"default": "#e2e8f0" |
| 143 |
}, |
| 144 |
"calendarBg": { |
| 145 |
"type": "string", |
| 146 |
"default": "#f8fafc" |
| 147 |
}, |
| 148 |
"calendarHeaderBg": { |
| 149 |
"type": "string", |
| 150 |
"default": "#6366f1" |
| 151 |
}, |
| 152 |
"calendarHeaderColor": { |
| 153 |
"type": "string", |
| 154 |
"default": "#ffffff" |
| 155 |
}, |
| 156 |
"selectedDayBg": { |
| 157 |
"type": "string", |
| 158 |
"default": "#6366f1" |
| 159 |
}, |
| 160 |
"selectedDayColor": { |
| 161 |
"type": "string", |
| 162 |
"default": "#ffffff" |
| 163 |
}, |
| 164 |
"slotBg": { |
| 165 |
"type": "string", |
| 166 |
"default": "#f1f5f9" |
| 167 |
}, |
| 168 |
"slotSelectedBg": { |
| 169 |
"type": "string", |
| 170 |
"default": "#6366f1" |
| 171 |
}, |
| 172 |
"slotSelectedColor": { |
| 173 |
"type": "string", |
| 174 |
"default": "#ffffff" |
| 175 |
}, |
| 176 |
"inputBg": { |
| 177 |
"type": "string", |
| 178 |
"default": "#f8fafc" |
| 179 |
}, |
| 180 |
"inputBorder": { |
| 181 |
"type": "string", |
| 182 |
"default": "#e2e8f0" |
| 183 |
}, |
| 184 |
"accentColor": { |
| 185 |
"type": "string", |
| 186 |
"default": "#6366f1" |
| 187 |
}, |
| 188 |
"btnBg": { |
| 189 |
"type": "string", |
| 190 |
"default": "#6366f1" |
| 191 |
}, |
| 192 |
"btnColor": { |
| 193 |
"type": "string", |
| 194 |
"default": "#ffffff" |
| 195 |
}, |
| 196 |
"textColor": { |
| 197 |
"type": "string", |
| 198 |
"default": "#0f172a" |
| 199 |
}, |
| 200 |
"mutedColor": { |
| 201 |
"type": "string", |
| 202 |
"default": "#64748b" |
| 203 |
}, |
| 204 |
"sectionBg": { |
| 205 |
"type": "string", |
| 206 |
"default": "" |
| 207 |
}, |
| 208 |
"formTitleFontSize": { |
| 209 |
"type": "number", |
| 210 |
"default": 22 |
| 211 |
}, |
| 212 |
"formSubtitleFontSize": { |
| 213 |
"type": "number", |
| 214 |
"default": 14 |
| 215 |
}, |
| 216 |
"typoTitle": { |
| 217 |
"type": "object", |
| 218 |
"default": {} |
| 219 |
}, |
| 220 |
"typoSubtitle": { |
| 221 |
"type": "object", |
| 222 |
"default": {} |
| 223 |
} |
| 224 |
} |
| 225 |
} |
| 226 |
|