| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/comparison-matrix", |
| 5 |
"title": "Comparison Matrix", |
| 6 |
"description": "Feature comparison table with checkmarks, icons, and highlighted columns.", |
| 7 |
"category": "bkbg-marketing", |
| 8 |
"textdomain": "blockenberg", |
| 9 |
"editorScript": "bkbg-comparison-matrix-editor", |
| 10 |
"style": "bkbg-comparison-matrix-style", |
| 11 |
"viewScript": "bkbg-comparison-matrix-frontend", |
| 12 |
"icon": "grid-view", |
| 13 |
"supports": { |
| 14 |
"html": false, |
| 15 |
"anchor": true, |
| 16 |
"className": true, |
| 17 |
"align": [ |
| 18 |
"wide", |
| 19 |
"full" |
| 20 |
] |
| 21 |
}, |
| 22 |
"attributes": { |
| 23 |
"plans": { |
| 24 |
"type": "array", |
| 25 |
"default": [ |
| 26 |
{ |
| 27 |
"name": "Starter", |
| 28 |
"subtitle": "Perfect for individuals", |
| 29 |
"highlight": false, |
| 30 |
"badge": "" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"name": "Pro", |
| 34 |
"subtitle": "Most popular", |
| 35 |
"highlight": true, |
| 36 |
"badge": "Popular" |
| 37 |
}, |
| 38 |
{ |
| 39 |
"name": "Agency", |
| 40 |
"subtitle": "For growing teams", |
| 41 |
"highlight": false, |
| 42 |
"badge": "" |
| 43 |
} |
| 44 |
] |
| 45 |
}, |
| 46 |
"features": { |
| 47 |
"type": "array", |
| 48 |
"default": [ |
| 49 |
{ |
| 50 |
"label": "Projects", |
| 51 |
"group": "", |
| 52 |
"values": [ |
| 53 |
"3", |
| 54 |
"Unlimited", |
| 55 |
"Unlimited" |
| 56 |
] |
| 57 |
}, |
| 58 |
{ |
| 59 |
"label": "Storage", |
| 60 |
"group": "", |
| 61 |
"values": [ |
| 62 |
"5 GB", |
| 63 |
"50 GB", |
| 64 |
"500 GB" |
| 65 |
] |
| 66 |
}, |
| 67 |
{ |
| 68 |
"label": "Team Members", |
| 69 |
"group": "", |
| 70 |
"values": [ |
| 71 |
"1", |
| 72 |
"10", |
| 73 |
"Unlimited" |
| 74 |
] |
| 75 |
}, |
| 76 |
{ |
| 77 |
"label": "Custom Domain", |
| 78 |
"group": "", |
| 79 |
"values": [ |
| 80 |
"false", |
| 81 |
"true", |
| 82 |
"true" |
| 83 |
] |
| 84 |
}, |
| 85 |
{ |
| 86 |
"label": "Analytics", |
| 87 |
"group": "", |
| 88 |
"values": [ |
| 89 |
"Basic", |
| 90 |
"Advanced", |
| 91 |
"Advanced" |
| 92 |
] |
| 93 |
}, |
| 94 |
{ |
| 95 |
"label": "API Access", |
| 96 |
"group": "", |
| 97 |
"values": [ |
| 98 |
"false", |
| 99 |
"true", |
| 100 |
"true" |
| 101 |
] |
| 102 |
}, |
| 103 |
{ |
| 104 |
"label": "Priority Support", |
| 105 |
"group": "", |
| 106 |
"values": [ |
| 107 |
"false", |
| 108 |
"false", |
| 109 |
"true" |
| 110 |
] |
| 111 |
}, |
| 112 |
{ |
| 113 |
"label": "SLA", |
| 114 |
"group": "", |
| 115 |
"values": [ |
| 116 |
"false", |
| 117 |
"false", |
| 118 |
"true" |
| 119 |
] |
| 120 |
} |
| 121 |
] |
| 122 |
}, |
| 123 |
"showGroupHeaders": { |
| 124 |
"type": "boolean", |
| 125 |
"default": false |
| 126 |
}, |
| 127 |
"stickyHeader": { |
| 128 |
"type": "boolean", |
| 129 |
"default": true |
| 130 |
}, |
| 131 |
"checkIcon": { |
| 132 |
"type": "string", |
| 133 |
"default": "✓" |
| 134 |
}, |
| 135 |
"checkIconType": { |
| 136 |
"type": "string", |
| 137 |
"default": "custom-char" |
| 138 |
}, |
| 139 |
"checkIconDashicon": { |
| 140 |
"type": "string", |
| 141 |
"default": "yes" |
| 142 |
}, |
| 143 |
"checkIconImageUrl": { |
| 144 |
"type": "string", |
| 145 |
"default": "" |
| 146 |
}, |
| 147 |
"crossIcon": { |
| 148 |
"type": "string", |
| 149 |
"default": "✕" |
| 150 |
}, |
| 151 |
"crossIconType": { |
| 152 |
"type": "string", |
| 153 |
"default": "custom-char" |
| 154 |
}, |
| 155 |
"crossIconDashicon": { |
| 156 |
"type": "string", |
| 157 |
"default": "no" |
| 158 |
}, |
| 159 |
"crossIconImageUrl": { |
| 160 |
"type": "string", |
| 161 |
"default": "" |
| 162 |
}, |
| 163 |
"firstColWidth": { |
| 164 |
"type": "integer", |
| 165 |
"default": 200 |
| 166 |
}, |
| 167 |
"cellPadding": { |
| 168 |
"type": "integer", |
| 169 |
"default": 16 |
| 170 |
}, |
| 171 |
"headerRadius": { |
| 172 |
"type": "integer", |
| 173 |
"default": 12 |
| 174 |
}, |
| 175 |
"rowRadius": { |
| 176 |
"type": "integer", |
| 177 |
"default": 8 |
| 178 |
}, |
| 179 |
"fontSize": { |
| 180 |
"type": "integer", |
| 181 |
"default": 14 |
| 182 |
}, |
| 183 |
"headerBg": { |
| 184 |
"type": "string", |
| 185 |
"default": "#f8fafc" |
| 186 |
}, |
| 187 |
"headerColor": { |
| 188 |
"type": "string", |
| 189 |
"default": "#0f172a" |
| 190 |
}, |
| 191 |
"highlightBg": { |
| 192 |
"type": "string", |
| 193 |
"default": "#6366f1" |
| 194 |
}, |
| 195 |
"highlightColor": { |
| 196 |
"type": "string", |
| 197 |
"default": "#ffffff" |
| 198 |
}, |
| 199 |
"rowBg": { |
| 200 |
"type": "string", |
| 201 |
"default": "#ffffff" |
| 202 |
}, |
| 203 |
"rowAltBg": { |
| 204 |
"type": "string", |
| 205 |
"default": "#f8fafc" |
| 206 |
}, |
| 207 |
"rowColor": { |
| 208 |
"type": "string", |
| 209 |
"default": "#334155" |
| 210 |
}, |
| 211 |
"borderColor": { |
| 212 |
"type": "string", |
| 213 |
"default": "#e2e8f0" |
| 214 |
}, |
| 215 |
"checkColor": { |
| 216 |
"type": "string", |
| 217 |
"default": "#10b981" |
| 218 |
}, |
| 219 |
"crossColor": { |
| 220 |
"type": "string", |
| 221 |
"default": "#f43f5e" |
| 222 |
}, |
| 223 |
"badgeBg": { |
| 224 |
"type": "string", |
| 225 |
"default": "#fef3c7" |
| 226 |
}, |
| 227 |
"badgeColor": { |
| 228 |
"type": "string", |
| 229 |
"default": "#92400e" |
| 230 |
}, |
| 231 |
"sectionBg": { |
| 232 |
"type": "string", |
| 233 |
"default": "" |
| 234 |
}, |
| 235 |
"fontWeight": { |
| 236 |
"type": "string", |
| 237 |
"default": "400" |
| 238 |
}, |
| 239 |
"lineHeight": { |
| 240 |
"type": "number", |
| 241 |
"default": 1.5 |
| 242 |
}, |
| 243 |
"typoHeader": { |
| 244 |
"type": "object", |
| 245 |
"default": {} |
| 246 |
}, |
| 247 |
"typoBody": { |
| 248 |
"type": "object", |
| 249 |
"default": {} |
| 250 |
} |
| 251 |
} |
| 252 |
} |
| 253 |
|