| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/comparison-table", |
| 5 |
"title": "Comparison Table", |
| 6 |
"category": "bkbg-charts", |
| 7 |
"icon": "list-view", |
| 8 |
"description": "Feature matrix comparing multiple plans with check/cross marks, text values, and a highlighted popular column.", |
| 9 |
"keywords": [ |
| 10 |
"comparison", |
| 11 |
"table", |
| 12 |
"features", |
| 13 |
"pricing", |
| 14 |
"matrix", |
| 15 |
"plans" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-comparison-table-editor", |
| 19 |
"editorStyle": "bkbg-comparison-table-style", |
| 20 |
"style": "bkbg-comparison-table-style", |
| 21 |
"viewScript": "bkbg-comparison-table-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"plans": { |
| 33 |
"type": "array", |
| 34 |
"default": [ |
| 35 |
{ |
| 36 |
"name": "Starter", |
| 37 |
"subtitle": "$9/mo", |
| 38 |
"highlighted": false |
| 39 |
}, |
| 40 |
{ |
| 41 |
"name": "Pro", |
| 42 |
"subtitle": "$29/mo", |
| 43 |
"highlighted": true |
| 44 |
}, |
| 45 |
{ |
| 46 |
"name": "Enterprise", |
| 47 |
"subtitle": "$99/mo", |
| 48 |
"highlighted": false |
| 49 |
} |
| 50 |
] |
| 51 |
}, |
| 52 |
"features": { |
| 53 |
"type": "array", |
| 54 |
"default": [ |
| 55 |
{ |
| 56 |
"label": "Users", |
| 57 |
"values": [ |
| 58 |
"1", |
| 59 |
"10", |
| 60 |
"Unlimited" |
| 61 |
] |
| 62 |
}, |
| 63 |
{ |
| 64 |
"label": "Storage", |
| 65 |
"values": [ |
| 66 |
"5 GB", |
| 67 |
"50 GB", |
| 68 |
"1 TB" |
| 69 |
] |
| 70 |
}, |
| 71 |
{ |
| 72 |
"label": "API Access", |
| 73 |
"values": [ |
| 74 |
"false", |
| 75 |
"true", |
| 76 |
"true" |
| 77 |
] |
| 78 |
}, |
| 79 |
{ |
| 80 |
"label": "Priority Support", |
| 81 |
"values": [ |
| 82 |
"false", |
| 83 |
"false", |
| 84 |
"true" |
| 85 |
] |
| 86 |
}, |
| 87 |
{ |
| 88 |
"label": "Custom Domain", |
| 89 |
"values": [ |
| 90 |
"false", |
| 91 |
"true", |
| 92 |
"true" |
| 93 |
] |
| 94 |
} |
| 95 |
] |
| 96 |
}, |
| 97 |
"headerBg": { |
| 98 |
"type": "string", |
| 99 |
"default": "#6c3fb5" |
| 100 |
}, |
| 101 |
"headerText": { |
| 102 |
"type": "string", |
| 103 |
"default": "#ffffff" |
| 104 |
}, |
| 105 |
"highlightBg": { |
| 106 |
"type": "string", |
| 107 |
"default": "#f3eeff" |
| 108 |
}, |
| 109 |
"highlightBorder": { |
| 110 |
"type": "string", |
| 111 |
"default": "#6c3fb5" |
| 112 |
}, |
| 113 |
"checkColor": { |
| 114 |
"type": "string", |
| 115 |
"default": "#22c55e" |
| 116 |
}, |
| 117 |
"crossColor": { |
| 118 |
"type": "string", |
| 119 |
"default": "#ef4444" |
| 120 |
}, |
| 121 |
"zebraStripe": { |
| 122 |
"type": "boolean", |
| 123 |
"default": true |
| 124 |
}, |
| 125 |
"stickyHeader": { |
| 126 |
"type": "boolean", |
| 127 |
"default": false |
| 128 |
}, |
| 129 |
"borderRadius": { |
| 130 |
"type": "number", |
| 131 |
"default": 12 |
| 132 |
}, |
| 133 |
"headerFontSize": { |
| 134 |
"type": "number", |
| 135 |
"default": 15 |
| 136 |
}, |
| 137 |
"cellFontSize": { |
| 138 |
"type": "number", |
| 139 |
"default": 14 |
| 140 |
}, |
| 141 |
"typoHeader": { |
| 142 |
"type": "object", |
| 143 |
"default": {} |
| 144 |
}, |
| 145 |
"typoCell": { |
| 146 |
"type": "object", |
| 147 |
"default": {} |
| 148 |
} |
| 149 |
} |
| 150 |
} |
| 151 |
|