| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/styled-list", |
| 5 |
"title": "Styled List", |
| 6 |
"category": "bkbg-content", |
| 7 |
"icon": "editor-ul", |
| 8 |
"description": "Fully customizable list with icons, rich text, and flexible layout options.", |
| 9 |
"keywords": [ |
| 10 |
"list", |
| 11 |
"ul", |
| 12 |
"ol", |
| 13 |
"icon", |
| 14 |
"checklist", |
| 15 |
"features", |
| 16 |
"bullet" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-styled-list-editor", |
| 20 |
"editorStyle": "bkbg-styled-list-style", |
| 21 |
"style": "bkbg-styled-list-style", |
| 22 |
"viewScript": "bkbg-styled-list-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"items": { |
| 34 |
"type": "array", |
| 35 |
"default": [ |
| 36 |
{ |
| 37 |
"text": "Full WYSIWYG editing for every list item — <strong>bold</strong>, <em>italic</em>, links and more.", |
| 38 |
"description": "", |
| 39 |
"customColor": "", |
| 40 |
"itemIconType": "", |
| 41 |
"itemIconUrl": "", |
| 42 |
"itemIconChar": "", |
| 43 |
"itemIconDashicon": "" |
| 44 |
}, |
| 45 |
{ |
| 46 |
"text": "Choose from built-in icons, Dashicons, or a custom image per item.", |
| 47 |
"description": "", |
| 48 |
"customColor": "", |
| 49 |
"itemIconType": "", |
| 50 |
"itemIconUrl": "", |
| 51 |
"itemIconChar": "", |
| 52 |
"itemIconDashicon": "" |
| 53 |
}, |
| 54 |
{ |
| 55 |
"text": "Two-column grid, horizontal row or classic vertical layout.", |
| 56 |
"description": "", |
| 57 |
"customColor": "", |
| 58 |
"itemIconType": "", |
| 59 |
"itemIconUrl": "", |
| 60 |
"itemIconChar": "", |
| 61 |
"itemIconDashicon": "" |
| 62 |
}, |
| 63 |
{ |
| 64 |
"text": "Per-item description line with independent typography settings.", |
| 65 |
"description": "Optional secondary text that appears below the main item text.", |
| 66 |
"customColor": "", |
| 67 |
"itemIconType": "", |
| 68 |
"itemIconUrl": "", |
| 69 |
"itemIconChar": "", |
| 70 |
"itemIconDashicon": "" |
| 71 |
} |
| 72 |
] |
| 73 |
}, |
| 74 |
"listStyle": { |
| 75 |
"type": "string", |
| 76 |
"default": "vertical" |
| 77 |
}, |
| 78 |
"columns": { |
| 79 |
"type": "number", |
| 80 |
"default": 2 |
| 81 |
}, |
| 82 |
"gap": { |
| 83 |
"type": "number", |
| 84 |
"default": 12 |
| 85 |
}, |
| 86 |
"columnGap": { |
| 87 |
"type": "number", |
| 88 |
"default": 32 |
| 89 |
}, |
| 90 |
"iconType": { |
| 91 |
"type": "string", |
| 92 |
"default": "check" |
| 93 |
}, |
| 94 |
"iconShape": { |
| 95 |
"type": "string", |
| 96 |
"default": "none" |
| 97 |
}, |
| 98 |
"iconPosition": { |
| 99 |
"type": "string", |
| 100 |
"default": "left" |
| 101 |
}, |
| 102 |
"iconSize": { |
| 103 |
"type": "number", |
| 104 |
"default": 18 |
| 105 |
}, |
| 106 |
"iconColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#3b82f6" |
| 109 |
}, |
| 110 |
"iconBgColor": { |
| 111 |
"type": "string", |
| 112 |
"default": "#dbeafe" |
| 113 |
}, |
| 114 |
"iconBgSize": { |
| 115 |
"type": "number", |
| 116 |
"default": 34 |
| 117 |
}, |
| 118 |
"iconBgRadius": { |
| 119 |
"type": "number", |
| 120 |
"default": 50 |
| 121 |
}, |
| 122 |
"customChar": { |
| 123 |
"type": "string", |
| 124 |
"default": "→" |
| 125 |
}, |
| 126 |
"customDashicon": { |
| 127 |
"type": "string", |
| 128 |
"default": "yes-alt" |
| 129 |
}, |
| 130 |
"customImageUrl": { |
| 131 |
"type": "string", |
| 132 |
"default": "" |
| 133 |
}, |
| 134 |
"perItemIcon": { |
| 135 |
"type": "boolean", |
| 136 |
"default": false |
| 137 |
}, |
| 138 |
"iconAlignTop": { |
| 139 |
"type": "boolean", |
| 140 |
"default": false |
| 141 |
}, |
| 142 |
"showDescription": { |
| 143 |
"type": "boolean", |
| 144 |
"default": false |
| 145 |
}, |
| 146 |
"itemPaddingTop": { |
| 147 |
"type": "number", |
| 148 |
"default": 10 |
| 149 |
}, |
| 150 |
"itemPaddingRight": { |
| 151 |
"type": "number", |
| 152 |
"default": 14 |
| 153 |
}, |
| 154 |
"itemPaddingBottom": { |
| 155 |
"type": "number", |
| 156 |
"default": 10 |
| 157 |
}, |
| 158 |
"itemPaddingLeft": { |
| 159 |
"type": "number", |
| 160 |
"default": 14 |
| 161 |
}, |
| 162 |
"itemBg": { |
| 163 |
"type": "string", |
| 164 |
"default": "transparent" |
| 165 |
}, |
| 166 |
"itemBgHover": { |
| 167 |
"type": "string", |
| 168 |
"default": "" |
| 169 |
}, |
| 170 |
"itemBorderWidth": { |
| 171 |
"type": "number", |
| 172 |
"default": 0 |
| 173 |
}, |
| 174 |
"itemBorderColor": { |
| 175 |
"type": "string", |
| 176 |
"default": "#e2e8f0" |
| 177 |
}, |
| 178 |
"itemBorderStyle": { |
| 179 |
"type": "string", |
| 180 |
"default": "solid" |
| 181 |
}, |
| 182 |
"itemBorderRadius": { |
| 183 |
"type": "number", |
| 184 |
"default": 0 |
| 185 |
}, |
| 186 |
"itemShadow": { |
| 187 |
"type": "boolean", |
| 188 |
"default": false |
| 189 |
}, |
| 190 |
"dividerEnabled": { |
| 191 |
"type": "boolean", |
| 192 |
"default": false |
| 193 |
}, |
| 194 |
"dividerColor": { |
| 195 |
"type": "string", |
| 196 |
"default": "#e2e8f0" |
| 197 |
}, |
| 198 |
"dividerWidth": { |
| 199 |
"type": "number", |
| 200 |
"default": 1 |
| 201 |
}, |
| 202 |
"fontSize": { |
| 203 |
"type": "number", |
| 204 |
"default": 16 |
| 205 |
}, |
| 206 |
"fontWeight": { |
| 207 |
"type": "number", |
| 208 |
"default": 400 |
| 209 |
}, |
| 210 |
"lineHeight": { |
| 211 |
"type": "number", |
| 212 |
"default": 1.6 |
| 213 |
}, |
| 214 |
"textColor": { |
| 215 |
"type": "string", |
| 216 |
"default": "#374151" |
| 217 |
}, |
| 218 |
"descFontSize": { |
| 219 |
"type": "number", |
| 220 |
"default": 14 |
| 221 |
}, |
| 222 |
"descFontWeight": { |
| 223 |
"type": "number", |
| 224 |
"default": 400 |
| 225 |
}, |
| 226 |
"descColor": { |
| 227 |
"type": "string", |
| 228 |
"default": "#6b7280" |
| 229 |
}, |
| 230 |
"alignment": { |
| 231 |
"type": "string", |
| 232 |
"default": "left" |
| 233 |
}, |
| 234 |
"perItemColor": { |
| 235 |
"type": "boolean", |
| 236 |
"default": false |
| 237 |
}, |
| 238 |
"textTypo": { |
| 239 |
"type": "object", |
| 240 |
"default": {} |
| 241 |
}, |
| 242 |
"descTypo": { |
| 243 |
"type": "object", |
| 244 |
"default": {} |
| 245 |
} |
| 246 |
} |
| 247 |
} |
| 248 |
|