block.json
2 months ago
index-rtl.css
2 months ago
index.asset.php
2 months ago
index.css
2 months ago
index.js
2 months ago
style-index-rtl.css
2 months ago
style-index.css
2 months ago
block.json
79 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "superb-addons/countdown", |
| 5 | "version": "0.1.0", |
| 6 | "title": "Superb Countdown", |
| 7 | "category": "superb-addons-blocks", |
| 8 | "icon": "clock", |
| 9 | "description": "A customizable countdown timer block with multiple visual styles.", |
| 10 | "keywords": ["countdown", "timer", "date", "deadline", "sale", "event"], |
| 11 | "styles": [ |
| 12 | { "name": "default", "label": "Default", "isDefault": true }, |
| 13 | { "name": "boxed", "label": "Boxed" }, |
| 14 | { "name": "circle", "label": "Circle" }, |
| 15 | { "name": "minimal", "label": "Minimal" }, |
| 16 | { "name": "flip", "label": "Flip" }, |
| 17 | { "name": "inline", "label": "Inline" } |
| 18 | ], |
| 19 | "supports": { |
| 20 | "html": false, |
| 21 | "align": ["wide", "full"], |
| 22 | "color": { |
| 23 | "background": true, |
| 24 | "text": true, |
| 25 | "gradients": true |
| 26 | }, |
| 27 | "spacing": { |
| 28 | "margin": true, |
| 29 | "padding": true, |
| 30 | "__experimentalDefaultControls": { |
| 31 | "padding": true |
| 32 | } |
| 33 | }, |
| 34 | "typography": { |
| 35 | "fontSize": true, |
| 36 | "lineHeight": true, |
| 37 | "__experimentalFontFamily": true, |
| 38 | "__experimentalFontWeight": true, |
| 39 | "__experimentalFontStyle": true, |
| 40 | "__experimentalTextTransform": true, |
| 41 | "__experimentalLetterSpacing": true |
| 42 | } |
| 43 | }, |
| 44 | "attributes": { |
| 45 | "style": { |
| 46 | "type": "object", |
| 47 | "default": { |
| 48 | "spacing": { |
| 49 | "padding": { |
| 50 | "top": "var:preset|spacing|superbspacing-xxsmall", |
| 51 | "right": "var:preset|spacing|superbspacing-xxsmall", |
| 52 | "bottom": "var:preset|spacing|superbspacing-xxsmall", |
| 53 | "left": "var:preset|spacing|superbspacing-xxsmall" |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | }, |
| 58 | "countdownId": { "type": "string" }, |
| 59 | "targetDate": { "type": "string", "default": "" }, |
| 60 | "showDays": { "type": "boolean", "default": true }, |
| 61 | "showHours": { "type": "boolean", "default": true }, |
| 62 | "showMinutes": { "type": "boolean", "default": true }, |
| 63 | "showSeconds": { "type": "boolean", "default": true }, |
| 64 | "daysLabel": { "type": "string", "default": "Days" }, |
| 65 | "hoursLabel": { "type": "string", "default": "Hours" }, |
| 66 | "minutesLabel": { "type": "string", "default": "Minutes" }, |
| 67 | "secondsLabel": { "type": "string", "default": "Seconds" }, |
| 68 | "expiryAction": { "type": "string", "default": "hide-block" }, |
| 69 | "expiryMessage": { "type": "string", "default": "" }, |
| 70 | "contentPosition": { "type": "string", "default": "after" }, |
| 71 | "countdownBackground": { "type": "string", "default": "" }, |
| 72 | "numberColor": { "type": "string", "default": "" } |
| 73 | }, |
| 74 | "textdomain": "superb-blocks", |
| 75 | "editorScript": "file:./index.js", |
| 76 | "editorStyle": "file:./index.css", |
| 77 | "style": "file:./style-index.css" |
| 78 | } |
| 79 |