| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "b-blocks/interactive-checklist", |
| 5 |
"title": "Interactive Checklist", |
| 6 |
"category": "bBlocks", |
| 7 |
"description": "A titled checklist of tickable items that visitors can check off, with their progress remembered in the browser via localStorage, an optional live completion indicator, and a reset button. Works without JavaScript using native checkbox inputs.", |
| 8 |
"keywords": [ |
| 9 |
"checklist", |
| 10 |
"todo", |
| 11 |
"to-do", |
| 12 |
"task list", |
| 13 |
"tick list", |
| 14 |
"interactive checklist", |
| 15 |
"progress checklist", |
| 16 |
"setup checklist", |
| 17 |
"steps", |
| 18 |
"tasks" |
| 19 |
], |
| 20 |
"textdomain": "b-blocks", |
| 21 |
"attributes": { |
| 22 |
"heading": { |
| 23 |
"type": "object", |
| 24 |
"default": { |
| 25 |
"text": "Your Checklist", |
| 26 |
"tag": "h3", |
| 27 |
"color": "#1a1a1a", |
| 28 |
"typography": { |
| 29 |
"fontSize": { |
| 30 |
"desktop": "20px", |
| 31 |
"tablet": "", |
| 32 |
"mobile": "" |
| 33 |
}, |
| 34 |
"fontWeight": 700 |
| 35 |
}, |
| 36 |
"bg": { |
| 37 |
"type": "solid", |
| 38 |
"color": "" |
| 39 |
}, |
| 40 |
"border": {}, |
| 41 |
"borderRadius": { |
| 42 |
"top": "", |
| 43 |
"right": "", |
| 44 |
"bottom": "", |
| 45 |
"left": "" |
| 46 |
}, |
| 47 |
"padding": { |
| 48 |
"top": "", |
| 49 |
"right": "", |
| 50 |
"bottom": "", |
| 51 |
"left": "" |
| 52 |
} |
| 53 |
} |
| 54 |
}, |
| 55 |
"items": { |
| 56 |
"type": "array", |
| 57 |
"default": [ |
| 58 |
{ |
| 59 |
"id": "item-1", |
| 60 |
"label": "First item", |
| 61 |
"checked": false |
| 62 |
}, |
| 63 |
{ |
| 64 |
"id": "item-2", |
| 65 |
"label": "Second item", |
| 66 |
"checked": false |
| 67 |
}, |
| 68 |
{ |
| 69 |
"id": "item-3", |
| 70 |
"label": "Third item", |
| 71 |
"checked": false |
| 72 |
} |
| 73 |
] |
| 74 |
}, |
| 75 |
"checkbox": { |
| 76 |
"type": "object", |
| 77 |
"default": { |
| 78 |
"style": "square", |
| 79 |
"size": "20px", |
| 80 |
"accent": "#4f46e5", |
| 81 |
"checkColor": "#ffffff" |
| 82 |
} |
| 83 |
}, |
| 84 |
"item": { |
| 85 |
"type": "object", |
| 86 |
"default": { |
| 87 |
"color": "#1a1a1a", |
| 88 |
"typography": { |
| 89 |
"fontSize": { |
| 90 |
"desktop": "16px", |
| 91 |
"tablet": "", |
| 92 |
"mobile": "" |
| 93 |
}, |
| 94 |
"fontWeight": 400 |
| 95 |
}, |
| 96 |
"gap": "12px", |
| 97 |
"strike": false |
| 98 |
} |
| 99 |
}, |
| 100 |
"progress": { |
| 101 |
"type": "object", |
| 102 |
"default": { |
| 103 |
"show": true, |
| 104 |
"typography": { |
| 105 |
"fontSize": { |
| 106 |
"desktop": "12px", |
| 107 |
"tablet": "", |
| 108 |
"mobile": "" |
| 109 |
}, |
| 110 |
"fontWeight": 600 |
| 111 |
}, |
| 112 |
"height": "6px", |
| 113 |
"trackBg": { |
| 114 |
"type": "solid", |
| 115 |
"color": "" |
| 116 |
}, |
| 117 |
"fillBg": { |
| 118 |
"type": "solid", |
| 119 |
"color": "" |
| 120 |
} |
| 121 |
} |
| 122 |
}, |
| 123 |
"reset": { |
| 124 |
"type": "object", |
| 125 |
"default": { |
| 126 |
"show": true |
| 127 |
} |
| 128 |
}, |
| 129 |
"persistKey": { |
| 130 |
"type": "string", |
| 131 |
"default": "" |
| 132 |
}, |
| 133 |
"advanced": { |
| 134 |
"type": "object", |
| 135 |
"default": { |
| 136 |
"dimension": { |
| 137 |
"padding": { |
| 138 |
"desktop": { |
| 139 |
"top": "24px", |
| 140 |
"right": "28px", |
| 141 |
"bottom": "24px", |
| 142 |
"left": "28px" |
| 143 |
}, |
| 144 |
"tablet": { |
| 145 |
"top": "", |
| 146 |
"right": "", |
| 147 |
"bottom": "", |
| 148 |
"left": "" |
| 149 |
}, |
| 150 |
"mobile": { |
| 151 |
"top": "", |
| 152 |
"right": "", |
| 153 |
"bottom": "", |
| 154 |
"left": "" |
| 155 |
} |
| 156 |
} |
| 157 |
}, |
| 158 |
"transform": { |
| 159 |
"normal": { |
| 160 |
"rotate": { |
| 161 |
"desktop": { |
| 162 |
"z": "", |
| 163 |
"y": "", |
| 164 |
"x": "" |
| 165 |
}, |
| 166 |
"tablet": { |
| 167 |
"z": "", |
| 168 |
"y": "", |
| 169 |
"x": "" |
| 170 |
}, |
| 171 |
"mobile": { |
| 172 |
"z": "", |
| 173 |
"y": "", |
| 174 |
"x": "" |
| 175 |
}, |
| 176 |
"threeDRotate": false |
| 177 |
}, |
| 178 |
"offset": { |
| 179 |
"desktop": { |
| 180 |
"x": "", |
| 181 |
"y": "" |
| 182 |
}, |
| 183 |
"tablet": { |
| 184 |
"x": "", |
| 185 |
"y": "" |
| 186 |
}, |
| 187 |
"mobile": { |
| 188 |
"x": "", |
| 189 |
"y": "" |
| 190 |
} |
| 191 |
}, |
| 192 |
"scale": { |
| 193 |
"isProportion": true, |
| 194 |
"desktop": { |
| 195 |
"x": "", |
| 196 |
"y": "", |
| 197 |
"scale": "" |
| 198 |
}, |
| 199 |
"tablet": { |
| 200 |
"x": "", |
| 201 |
"y": "", |
| 202 |
"scale": "" |
| 203 |
}, |
| 204 |
"mobile": { |
| 205 |
"x": "", |
| 206 |
"y": "", |
| 207 |
"scale": "" |
| 208 |
} |
| 209 |
}, |
| 210 |
"skew": { |
| 211 |
"desktop": { |
| 212 |
"x": "", |
| 213 |
"y": "" |
| 214 |
}, |
| 215 |
"tablet": { |
| 216 |
"x": "", |
| 217 |
"y": "" |
| 218 |
}, |
| 219 |
"mobile": { |
| 220 |
"x": "", |
| 221 |
"y": "" |
| 222 |
} |
| 223 |
}, |
| 224 |
"flipX": false, |
| 225 |
"flipY": false |
| 226 |
}, |
| 227 |
"hover": { |
| 228 |
"rotate": { |
| 229 |
"desktop": { |
| 230 |
"z": "", |
| 231 |
"y": "", |
| 232 |
"x": "" |
| 233 |
}, |
| 234 |
"tablet": { |
| 235 |
"z": "", |
| 236 |
"y": "", |
| 237 |
"x": "" |
| 238 |
}, |
| 239 |
"mobile": { |
| 240 |
"z": "", |
| 241 |
"y": "", |
| 242 |
"x": "" |
| 243 |
}, |
| 244 |
"threeDRotate": false |
| 245 |
}, |
| 246 |
"offset": { |
| 247 |
"desktop": { |
| 248 |
"x": "", |
| 249 |
"y": "" |
| 250 |
}, |
| 251 |
"tablet": { |
| 252 |
"x": "", |
| 253 |
"y": "" |
| 254 |
}, |
| 255 |
"mobile": { |
| 256 |
"x": "", |
| 257 |
"y": "" |
| 258 |
} |
| 259 |
}, |
| 260 |
"scale": { |
| 261 |
"isProportion": true, |
| 262 |
"desktop": { |
| 263 |
"x": "", |
| 264 |
"y": "", |
| 265 |
"scale": "" |
| 266 |
}, |
| 267 |
"tablet": { |
| 268 |
"x": "", |
| 269 |
"y": "", |
| 270 |
"scale": "" |
| 271 |
}, |
| 272 |
"mobile": { |
| 273 |
"x": "", |
| 274 |
"y": "", |
| 275 |
"scale": "" |
| 276 |
} |
| 277 |
}, |
| 278 |
"skew": { |
| 279 |
"desktop": { |
| 280 |
"x": "", |
| 281 |
"y": "" |
| 282 |
}, |
| 283 |
"tablet": { |
| 284 |
"x": "", |
| 285 |
"y": "" |
| 286 |
}, |
| 287 |
"mobile": { |
| 288 |
"x": "", |
| 289 |
"y": "" |
| 290 |
} |
| 291 |
}, |
| 292 |
"flipX": false, |
| 293 |
"flipY": false |
| 294 |
}, |
| 295 |
"transition": 200 |
| 296 |
}, |
| 297 |
"borderShadow": { |
| 298 |
"normal": { |
| 299 |
"radius": { |
| 300 |
"top": "12px", |
| 301 |
"right": "12px", |
| 302 |
"bottom": "12px", |
| 303 |
"left": "12px" |
| 304 |
}, |
| 305 |
"shadow": [ |
| 306 |
{ |
| 307 |
"hOffset": "", |
| 308 |
"vOffset": "", |
| 309 |
"blur": "", |
| 310 |
"spreed": "", |
| 311 |
"color": "", |
| 312 |
"isInset": false |
| 313 |
} |
| 314 |
], |
| 315 |
"border": { |
| 316 |
"color": "#e5e7eb", |
| 317 |
"style": "solid", |
| 318 |
"width": "1px" |
| 319 |
} |
| 320 |
} |
| 321 |
}, |
| 322 |
"background": { |
| 323 |
"normal": { |
| 324 |
"type": "color", |
| 325 |
"color": "", |
| 326 |
"gradient": { |
| 327 |
"type": "radial", |
| 328 |
"radialType": "ellipse", |
| 329 |
"colors": [ |
| 330 |
{ |
| 331 |
"color": "rgba(58, 66, 222, 1)", |
| 332 |
"position": "0" |
| 333 |
}, |
| 334 |
{ |
| 335 |
"color": "rgba(176, 195, 235, 1)", |
| 336 |
"position": "80" |
| 337 |
} |
| 338 |
], |
| 339 |
"centerPositions": { |
| 340 |
"x": 50, |
| 341 |
"y": 50 |
| 342 |
}, |
| 343 |
"angel": 90 |
| 344 |
}, |
| 345 |
"img": { |
| 346 |
"url": "", |
| 347 |
"desktop": { |
| 348 |
"position": "center center", |
| 349 |
"xPosition": 0, |
| 350 |
"yPosition": 0, |
| 351 |
"attachment": "", |
| 352 |
"repeat": "no-repeat", |
| 353 |
"size": "", |
| 354 |
"customSize": "0px" |
| 355 |
}, |
| 356 |
"tablet": { |
| 357 |
"position": "center center", |
| 358 |
"xPosition": 0, |
| 359 |
"yPosition": 0, |
| 360 |
"attachment": "", |
| 361 |
"repeat": "no-repeat", |
| 362 |
"size": "", |
| 363 |
"customSize": "0px" |
| 364 |
}, |
| 365 |
"mobile": { |
| 366 |
"position": "center center", |
| 367 |
"xPosition": 0, |
| 368 |
"yPosition": 0, |
| 369 |
"attachment": "", |
| 370 |
"repeat": "no-repeat", |
| 371 |
"size": "", |
| 372 |
"customSize": "0px" |
| 373 |
} |
| 374 |
}, |
| 375 |
"video": { |
| 376 |
"url": "", |
| 377 |
"loop": false |
| 378 |
}, |
| 379 |
"transition": 0.3 |
| 380 |
} |
| 381 |
} |
| 382 |
} |
| 383 |
} |
| 384 |
}, |
| 385 |
"supports": { |
| 386 |
"align": [ |
| 387 |
"wide", |
| 388 |
"full" |
| 389 |
], |
| 390 |
"html": false |
| 391 |
}, |
| 392 |
"example": { |
| 393 |
"attributes": { |
| 394 |
"preview": true |
| 395 |
} |
| 396 |
}, |
| 397 |
"editorScript": "file:../index.js", |
| 398 |
"style": "file:./view.css", |
| 399 |
"viewScript": "file:./view.js", |
| 400 |
"render": "file:./render.php" |
| 401 |
} |