| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/accordion-table", |
| 5 |
"title": "Accordion Table", |
| 6 |
"category": "bkbg-content", |
| 7 |
"description": "A data table where each row expands on click to reveal rich detail content — specs, bullet points, sub-data, or notes. Perfect for pricing tiers, product specs, API docs, and comparison matrices.", |
| 8 |
"keywords": [ |
| 9 |
"accordion", |
| 10 |
"table", |
| 11 |
"expandable", |
| 12 |
"collapsible", |
| 13 |
"rows", |
| 14 |
"data", |
| 15 |
"specs", |
| 16 |
"details" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-accordion-table-editor", |
| 20 |
"editorStyle": "bkbg-accordion-table-style", |
| 21 |
"style": "bkbg-accordion-table-style", |
| 22 |
"viewScript": "bkbg-accordion-table-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"title": { |
| 34 |
"type": "string", |
| 35 |
"default": "" |
| 36 |
}, |
| 37 |
"showTitle": { |
| 38 |
"type": "boolean", |
| 39 |
"default": false |
| 40 |
}, |
| 41 |
"columns": { |
| 42 |
"type": "array", |
| 43 |
"default": [ |
| 44 |
{ |
| 45 |
"label": "Plan", |
| 46 |
"align": "left", |
| 47 |
"width": "" |
| 48 |
}, |
| 49 |
{ |
| 50 |
"label": "Price", |
| 51 |
"align": "center", |
| 52 |
"width": "100px" |
| 53 |
}, |
| 54 |
{ |
| 55 |
"label": "Users", |
| 56 |
"align": "center", |
| 57 |
"width": "100px" |
| 58 |
}, |
| 59 |
{ |
| 60 |
"label": "Storage", |
| 61 |
"align": "center", |
| 62 |
"width": "110px" |
| 63 |
}, |
| 64 |
{ |
| 65 |
"label": "Support", |
| 66 |
"align": "center", |
| 67 |
"width": "120px" |
| 68 |
} |
| 69 |
] |
| 70 |
}, |
| 71 |
"rows": { |
| 72 |
"type": "array", |
| 73 |
"default": [ |
| 74 |
{ |
| 75 |
"cells": [ |
| 76 |
"Starter", |
| 77 |
"$9/mo", |
| 78 |
"1 user", |
| 79 |
"10 GB", |
| 80 |
"Email" |
| 81 |
], |
| 82 |
"badge": "", |
| 83 |
"badgeColor": "#6366f1", |
| 84 |
"highlight": false, |
| 85 |
"detailTitle": "What's included in Starter", |
| 86 |
"detailType": "list", |
| 87 |
"detailText": "", |
| 88 |
"detailItems": [ |
| 89 |
"1 website", |
| 90 |
"Basic analytics", |
| 91 |
"10 GB storage", |
| 92 |
"Email support (48h response)", |
| 93 |
"SSL certificate", |
| 94 |
"99.9% uptime SLA" |
| 95 |
] |
| 96 |
}, |
| 97 |
{ |
| 98 |
"cells": [ |
| 99 |
"Pro", |
| 100 |
"$29/mo", |
| 101 |
"5 users", |
| 102 |
"50 GB", |
| 103 |
"Priority" |
| 104 |
], |
| 105 |
"badge": "Popular", |
| 106 |
"badgeColor": "#6366f1", |
| 107 |
"highlight": true, |
| 108 |
"detailTitle": "Everything in Starter, plus", |
| 109 |
"detailType": "list", |
| 110 |
"detailText": "", |
| 111 |
"detailItems": [ |
| 112 |
"5 websites", |
| 113 |
"Advanced analytics & reports", |
| 114 |
"50 GB storage", |
| 115 |
"Priority email & chat support (4h response)", |
| 116 |
"Custom domain mapping", |
| 117 |
"API access (1,000 req/day)", |
| 118 |
"Remove branding" |
| 119 |
] |
| 120 |
}, |
| 121 |
{ |
| 122 |
"cells": [ |
| 123 |
"Business", |
| 124 |
"$79/mo", |
| 125 |
"25 users", |
| 126 |
"250 GB", |
| 127 |
"24/7 Phone" |
| 128 |
], |
| 129 |
"badge": "", |
| 130 |
"badgeColor": "#6366f1", |
| 131 |
"highlight": false, |
| 132 |
"detailTitle": "Everything in Pro, plus", |
| 133 |
"detailType": "list", |
| 134 |
"detailText": "", |
| 135 |
"detailItems": [ |
| 136 |
"Unlimited websites", |
| 137 |
"White-label dashboard", |
| 138 |
"250 GB storage", |
| 139 |
"24/7 phone support (1h response)", |
| 140 |
"Dedicated account manager", |
| 141 |
"SLA guarantee", |
| 142 |
"API access (unlimited)", |
| 143 |
"SSO / SAML integration" |
| 144 |
] |
| 145 |
}, |
| 146 |
{ |
| 147 |
"cells": [ |
| 148 |
"Enterprise", |
| 149 |
"Custom", |
| 150 |
"Unlimited", |
| 151 |
"1 TB+", |
| 152 |
"Dedicated CSM" |
| 153 |
], |
| 154 |
"badge": "", |
| 155 |
"badgeColor": "#8b5cf6", |
| 156 |
"highlight": false, |
| 157 |
"detailTitle": "Custom enterprise package", |
| 158 |
"detailType": "text", |
| 159 |
"detailText": "Our enterprise plan is fully customized to your organization's needs. Contact our sales team to discuss volume pricing, custom SLAs, on-premise deployment options, and dedicated infrastructure.", |
| 160 |
"detailItems": [] |
| 161 |
} |
| 162 |
] |
| 163 |
}, |
| 164 |
"allowMultiple": { |
| 165 |
"type": "boolean", |
| 166 |
"default": false |
| 167 |
}, |
| 168 |
"showRowNumbers": { |
| 169 |
"type": "boolean", |
| 170 |
"default": false |
| 171 |
}, |
| 172 |
"stripedRows": { |
| 173 |
"type": "boolean", |
| 174 |
"default": true |
| 175 |
}, |
| 176 |
"stickyHeader": { |
| 177 |
"type": "boolean", |
| 178 |
"default": false |
| 179 |
}, |
| 180 |
"expandIconPosition": { |
| 181 |
"type": "string", |
| 182 |
"default": "right" |
| 183 |
}, |
| 184 |
"expandIcon": { |
| 185 |
"type": "string", |
| 186 |
"default": "chevron" |
| 187 |
}, |
| 188 |
"animDuration": { |
| 189 |
"type": "number", |
| 190 |
"default": 240 |
| 191 |
}, |
| 192 |
"borderRadius": { |
| 193 |
"type": "number", |
| 194 |
"default": 10 |
| 195 |
}, |
| 196 |
"cellPaddingV": { |
| 197 |
"type": "number", |
| 198 |
"default": 14 |
| 199 |
}, |
| 200 |
"cellPaddingH": { |
| 201 |
"type": "number", |
| 202 |
"default": 16 |
| 203 |
}, |
| 204 |
"headerSize": { |
| 205 |
"type": "number", |
| 206 |
"default": 13 |
| 207 |
}, |
| 208 |
"cellSize": { |
| 209 |
"type": "number", |
| 210 |
"default": 14 |
| 211 |
}, |
| 212 |
"detailSize": { |
| 213 |
"type": "number", |
| 214 |
"default": 14 |
| 215 |
}, |
| 216 |
"maxWidth": { |
| 217 |
"type": "number", |
| 218 |
"default": 900 |
| 219 |
}, |
| 220 |
"paddingTop": { |
| 221 |
"type": "number", |
| 222 |
"default": 0 |
| 223 |
}, |
| 224 |
"paddingBottom": { |
| 225 |
"type": "number", |
| 226 |
"default": 0 |
| 227 |
}, |
| 228 |
"bgColor": { |
| 229 |
"type": "string", |
| 230 |
"default": "#ffffff" |
| 231 |
}, |
| 232 |
"headerBg": { |
| 233 |
"type": "string", |
| 234 |
"default": "#f8fafc" |
| 235 |
}, |
| 236 |
"headerColor": { |
| 237 |
"type": "string", |
| 238 |
"default": "#374151" |
| 239 |
}, |
| 240 |
"rowBg": { |
| 241 |
"type": "string", |
| 242 |
"default": "#ffffff" |
| 243 |
}, |
| 244 |
"rowAltBg": { |
| 245 |
"type": "string", |
| 246 |
"default": "#f9fafb" |
| 247 |
}, |
| 248 |
"rowHoverBg": { |
| 249 |
"type": "string", |
| 250 |
"default": "#f0f4ff" |
| 251 |
}, |
| 252 |
"rowColor": { |
| 253 |
"type": "string", |
| 254 |
"default": "#1f2937" |
| 255 |
}, |
| 256 |
"highlightRowBg": { |
| 257 |
"type": "string", |
| 258 |
"default": "#f0f0ff" |
| 259 |
}, |
| 260 |
"highlightRowBorder": { |
| 261 |
"type": "string", |
| 262 |
"default": "#6366f1" |
| 263 |
}, |
| 264 |
"detailBg": { |
| 265 |
"type": "string", |
| 266 |
"default": "#f8fafc" |
| 267 |
}, |
| 268 |
"detailColor": { |
| 269 |
"type": "string", |
| 270 |
"default": "#374151" |
| 271 |
}, |
| 272 |
"detailBorderColor": { |
| 273 |
"type": "string", |
| 274 |
"default": "#e5e7eb" |
| 275 |
}, |
| 276 |
"borderColor": { |
| 277 |
"type": "string", |
| 278 |
"default": "#e5e7eb" |
| 279 |
}, |
| 280 |
"iconColor": { |
| 281 |
"type": "string", |
| 282 |
"default": "#9ca3af" |
| 283 |
}, |
| 284 |
"titleColor": { |
| 285 |
"type": "string", |
| 286 |
"default": "#111827" |
| 287 |
}, |
| 288 |
"headerTypo": { |
| 289 |
"type": "object", |
| 290 |
"default": {} |
| 291 |
}, |
| 292 |
"cellTypo": { |
| 293 |
"type": "object", |
| 294 |
"default": {} |
| 295 |
}, |
| 296 |
"detailTypo": { |
| 297 |
"type": "object", |
| 298 |
"default": {} |
| 299 |
} |
| 300 |
} |
| 301 |
} |
| 302 |
|