| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/pricing-switcher", |
| 5 |
"title": "Pricing Switcher", |
| 6 |
"category": "bkbg-marketing", |
| 7 |
"icon": "controls-repeat", |
| 8 |
"description": "Monthly/Yearly toggle that shows or hides pricing columns on the page.", |
| 9 |
"keywords": [ |
| 10 |
"pricing", |
| 11 |
"toggle", |
| 12 |
"switcher", |
| 13 |
"billing" |
| 14 |
], |
| 15 |
"textdomain": "blockenberg", |
| 16 |
"editorScript": "bkbg-pricing-switcher-editor", |
| 17 |
"editorStyle": "bkbg-pricing-switcher-style", |
| 18 |
"style": "bkbg-pricing-switcher-style", |
| 19 |
"viewScript": "bkbg-pricing-switcher-frontend", |
| 20 |
"supports": { |
| 21 |
"html": false, |
| 22 |
"anchor": true, |
| 23 |
"className": true, |
| 24 |
"align": [ |
| 25 |
"wide", |
| 26 |
"full" |
| 27 |
] |
| 28 |
}, |
| 29 |
"attributes": { |
| 30 |
"labelMonthly": { |
| 31 |
"type": "string", |
| 32 |
"default": "Monthly" |
| 33 |
}, |
| 34 |
"labelYearly": { |
| 35 |
"type": "string", |
| 36 |
"default": "Yearly" |
| 37 |
}, |
| 38 |
"defaultActive": { |
| 39 |
"type": "string", |
| 40 |
"default": "monthly" |
| 41 |
}, |
| 42 |
"switchStyle": { |
| 43 |
"type": "string", |
| 44 |
"default": "pills" |
| 45 |
}, |
| 46 |
"accentColor": { |
| 47 |
"type": "string", |
| 48 |
"default": "#6c3fb5" |
| 49 |
}, |
| 50 |
"bgColor": { |
| 51 |
"type": "string", |
| 52 |
"default": "#f3f3f7" |
| 53 |
}, |
| 54 |
"activeText": { |
| 55 |
"type": "string", |
| 56 |
"default": "#ffffff" |
| 57 |
}, |
| 58 |
"inactiveText": { |
| 59 |
"type": "string", |
| 60 |
"default": "#555555" |
| 61 |
}, |
| 62 |
"borderRadius": { |
| 63 |
"type": "number", |
| 64 |
"default": 40 |
| 65 |
}, |
| 66 |
"savingBadge": { |
| 67 |
"type": "string", |
| 68 |
"default": "Save 20%" |
| 69 |
}, |
| 70 |
"showBadge": { |
| 71 |
"type": "boolean", |
| 72 |
"default": true |
| 73 |
}, |
| 74 |
"labelTypo": { |
| 75 |
"type": "object", |
| 76 |
"default": {} |
| 77 |
}, |
| 78 |
"badgeTypo": { |
| 79 |
"type": "object", |
| 80 |
"default": {} |
| 81 |
} |
| 82 |
} |
| 83 |
} |