| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/business-hours", |
| 5 |
"title": "Business Hours", |
| 6 |
"category": "bkbg-business", |
| 7 |
"icon": "calendar-alt", |
| 8 |
"description": "Display business opening hours with current status indicator.", |
| 9 |
"keywords": [ |
| 10 |
"hours", |
| 11 |
"schedule", |
| 12 |
"time", |
| 13 |
"open", |
| 14 |
"closed", |
| 15 |
"business", |
| 16 |
"working" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-business-hours-editor", |
| 20 |
"editorStyle": "bkbg-business-hours-style", |
| 21 |
"style": "bkbg-business-hours-style", |
| 22 |
"viewScript": "bkbg-business-hours-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"days": { |
| 33 |
"type": "array", |
| 34 |
"default": [ |
| 35 |
{ |
| 36 |
"day": "Monday", |
| 37 |
"open": "09:00", |
| 38 |
"close": "18:00", |
| 39 |
"closed": false |
| 40 |
}, |
| 41 |
{ |
| 42 |
"day": "Tuesday", |
| 43 |
"open": "09:00", |
| 44 |
"close": "18:00", |
| 45 |
"closed": false |
| 46 |
}, |
| 47 |
{ |
| 48 |
"day": "Wednesday", |
| 49 |
"open": "09:00", |
| 50 |
"close": "18:00", |
| 51 |
"closed": false |
| 52 |
}, |
| 53 |
{ |
| 54 |
"day": "Thursday", |
| 55 |
"open": "09:00", |
| 56 |
"close": "18:00", |
| 57 |
"closed": false |
| 58 |
}, |
| 59 |
{ |
| 60 |
"day": "Friday", |
| 61 |
"open": "09:00", |
| 62 |
"close": "18:00", |
| 63 |
"closed": false |
| 64 |
}, |
| 65 |
{ |
| 66 |
"day": "Saturday", |
| 67 |
"open": "10:00", |
| 68 |
"close": "16:00", |
| 69 |
"closed": false |
| 70 |
}, |
| 71 |
{ |
| 72 |
"day": "Sunday", |
| 73 |
"open": "", |
| 74 |
"close": "", |
| 75 |
"closed": true |
| 76 |
} |
| 77 |
] |
| 78 |
}, |
| 79 |
"title": { |
| 80 |
"type": "string", |
| 81 |
"default": "Business Hours" |
| 82 |
}, |
| 83 |
"showTitle": { |
| 84 |
"type": "boolean", |
| 85 |
"default": true |
| 86 |
}, |
| 87 |
"showCurrentStatus": { |
| 88 |
"type": "boolean", |
| 89 |
"default": true |
| 90 |
}, |
| 91 |
"highlightToday": { |
| 92 |
"type": "boolean", |
| 93 |
"default": true |
| 94 |
}, |
| 95 |
"compactMode": { |
| 96 |
"type": "boolean", |
| 97 |
"default": false |
| 98 |
}, |
| 99 |
"timeFormat": { |
| 100 |
"type": "string", |
| 101 |
"default": "12h" |
| 102 |
}, |
| 103 |
"closedText": { |
| 104 |
"type": "string", |
| 105 |
"default": "Closed" |
| 106 |
}, |
| 107 |
"openNowText": { |
| 108 |
"type": "string", |
| 109 |
"default": "Open Now" |
| 110 |
}, |
| 111 |
"closedNowText": { |
| 112 |
"type": "string", |
| 113 |
"default": "Closed Now" |
| 114 |
}, |
| 115 |
"layoutStyle": { |
| 116 |
"type": "string", |
| 117 |
"default": "list" |
| 118 |
}, |
| 119 |
"showDividers": { |
| 120 |
"type": "boolean", |
| 121 |
"default": true |
| 122 |
}, |
| 123 |
"timezone": { |
| 124 |
"type": "string", |
| 125 |
"default": "" |
| 126 |
}, |
| 127 |
"dayBg": { |
| 128 |
"type": "string", |
| 129 |
"default": "#ffffff" |
| 130 |
}, |
| 131 |
"dayColor": { |
| 132 |
"type": "string", |
| 133 |
"default": "#1e293b" |
| 134 |
}, |
| 135 |
"timeBg": { |
| 136 |
"type": "string", |
| 137 |
"default": "transparent" |
| 138 |
}, |
| 139 |
"timeColor": { |
| 140 |
"type": "string", |
| 141 |
"default": "#64748b" |
| 142 |
}, |
| 143 |
"todayBg": { |
| 144 |
"type": "string", |
| 145 |
"default": "#f0f9ff" |
| 146 |
}, |
| 147 |
"todayColor": { |
| 148 |
"type": "string", |
| 149 |
"default": "#0369a1" |
| 150 |
}, |
| 151 |
"closedColor": { |
| 152 |
"type": "string", |
| 153 |
"default": "#ef4444" |
| 154 |
}, |
| 155 |
"openColor": { |
| 156 |
"type": "string", |
| 157 |
"default": "#22c55e" |
| 158 |
}, |
| 159 |
"dividerColor": { |
| 160 |
"type": "string", |
| 161 |
"default": "#e2e8f0" |
| 162 |
}, |
| 163 |
"statusBg": { |
| 164 |
"type": "string", |
| 165 |
"default": "" |
| 166 |
}, |
| 167 |
"borderRadius": { |
| 168 |
"type": "number", |
| 169 |
"default": 8 |
| 170 |
}, |
| 171 |
"padding": { |
| 172 |
"type": "number", |
| 173 |
"default": 16 |
| 174 |
}, |
| 175 |
"gap": { |
| 176 |
"type": "number", |
| 177 |
"default": 12 |
| 178 |
}, |
| 179 |
"dayFontSize": { |
| 180 |
"type": "number", |
| 181 |
"default": 15 |
| 182 |
}, |
| 183 |
"dayFontWeight": { |
| 184 |
"type": "number", |
| 185 |
"default": 500 |
| 186 |
}, |
| 187 |
"timeFontSize": { |
| 188 |
"type": "number", |
| 189 |
"default": 15 |
| 190 |
}, |
| 191 |
"timeFontWeight": { |
| 192 |
"type": "number", |
| 193 |
"default": 400 |
| 194 |
}, |
| 195 |
"titleFontSize": { |
| 196 |
"type": "number", |
| 197 |
"default": 20 |
| 198 |
}, |
| 199 |
"titleFontWeight": { |
| 200 |
"type": "number", |
| 201 |
"default": 600 |
| 202 |
}, |
| 203 |
"typoTitle": { |
| 204 |
"type": "object", |
| 205 |
"default": {} |
| 206 |
}, |
| 207 |
"typoDay": { |
| 208 |
"type": "object", |
| 209 |
"default": {} |
| 210 |
}, |
| 211 |
"typoTime": { |
| 212 |
"type": "object", |
| 213 |
"default": {} |
| 214 |
} |
| 215 |
} |
| 216 |
} |
| 217 |
|