| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "firebox/button", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Button", |
| 7 |
"description": "An advanced Button block.", |
| 8 |
"category": "firebox", |
| 9 |
"parent": [ |
| 10 |
"firebox/buttons" |
| 11 |
], |
| 12 |
"keywords": [ |
| 13 |
"button", |
| 14 |
"call to action" |
| 15 |
], |
| 16 |
"supports": { |
| 17 |
"className": true, |
| 18 |
"anchor": true |
| 19 |
}, |
| 20 |
"attributes": { |
| 21 |
"uniqueId": { |
| 22 |
"type": "string", |
| 23 |
"default": "" |
| 24 |
}, |
| 25 |
"icon": { |
| 26 |
"type": "object", |
| 27 |
"default": { |
| 28 |
"value": "", |
| 29 |
"label": "" |
| 30 |
} |
| 31 |
}, |
| 32 |
"iconPosition": { |
| 33 |
"type": "string", |
| 34 |
"default": "after" |
| 35 |
}, |
| 36 |
"iconHTML": { |
| 37 |
"type": "string", |
| 38 |
"default": "" |
| 39 |
}, |
| 40 |
"url": { |
| 41 |
"type": "string", |
| 42 |
"default": "" |
| 43 |
}, |
| 44 |
"text": { |
| 45 |
"type": "string", |
| 46 |
"default": "" |
| 47 |
}, |
| 48 |
"target": { |
| 49 |
"type": "string", |
| 50 |
"default": "" |
| 51 |
}, |
| 52 |
"rel": { |
| 53 |
"type": "string", |
| 54 |
"default": "" |
| 55 |
}, |
| 56 |
"textColor": { |
| 57 |
"type": "string", |
| 58 |
"default": "#fff" |
| 59 |
}, |
| 60 |
"backgroundColor": { |
| 61 |
"type": "string", |
| 62 |
"default": "#32373c" |
| 63 |
}, |
| 64 |
"textColorHover": { |
| 65 |
"type": "string" |
| 66 |
}, |
| 67 |
"backgroundColorHover": { |
| 68 |
"type": "string" |
| 69 |
}, |
| 70 |
"fontSize": { |
| 71 |
"type": "object", |
| 72 |
"default": { |
| 73 |
"desktop": "", |
| 74 |
"tablet": "", |
| 75 |
"mobile": "" |
| 76 |
} |
| 77 |
}, |
| 78 |
"lineHeight": { |
| 79 |
"type": "object", |
| 80 |
"default": { |
| 81 |
"desktop": 1, |
| 82 |
"tablet": "", |
| 83 |
"mobile": "" |
| 84 |
} |
| 85 |
}, |
| 86 |
"letterSpacing": { |
| 87 |
"type": "object", |
| 88 |
"default": { |
| 89 |
"desktop": 0, |
| 90 |
"tablet": "", |
| 91 |
"mobile": "" |
| 92 |
} |
| 93 |
}, |
| 94 |
"blockBorderColor": { |
| 95 |
"type": "string", |
| 96 |
"default": "" |
| 97 |
}, |
| 98 |
"blockBorderWidth": { |
| 99 |
"type": "number", |
| 100 |
"default": 0 |
| 101 |
}, |
| 102 |
"blockBorderStyle": { |
| 103 |
"type": "string", |
| 104 |
"default": "none" |
| 105 |
}, |
| 106 |
"blockBorderRadius": { |
| 107 |
"type": "object", |
| 108 |
"default": { |
| 109 |
"desktop": { |
| 110 |
"top_left": 30, |
| 111 |
"top_right": 30, |
| 112 |
"bottom_right": 30, |
| 113 |
"bottom_left": 30 |
| 114 |
}, |
| 115 |
"tablet": { |
| 116 |
"top_left": "", |
| 117 |
"top_right": "", |
| 118 |
"bottom_right": "", |
| 119 |
"bottom_left": "" |
| 120 |
}, |
| 121 |
"mobile": { |
| 122 |
"top_left": "", |
| 123 |
"top_right": "", |
| 124 |
"bottom_right": "", |
| 125 |
"bottom_left": "" |
| 126 |
}, |
| 127 |
"linked": true |
| 128 |
} |
| 129 |
}, |
| 130 |
"visibility": { |
| 131 |
"type": "object", |
| 132 |
"default": { |
| 133 |
"desktop": false, |
| 134 |
"tablet": false, |
| 135 |
"mobile": false |
| 136 |
} |
| 137 |
}, |
| 138 |
"fixedWidth": { |
| 139 |
"type": "object", |
| 140 |
"default": { |
| 141 |
"desktop": "", |
| 142 |
"tablet": "", |
| 143 |
"mobile": "" |
| 144 |
} |
| 145 |
}, |
| 146 |
"boxShadow": { |
| 147 |
"type": "object", |
| 148 |
"default": { |
| 149 |
"desktop": { |
| 150 |
"type": "none", |
| 151 |
"top": 0, |
| 152 |
"left": 0, |
| 153 |
"color": "", |
| 154 |
"spread": 7, |
| 155 |
"width": 0 |
| 156 |
}, |
| 157 |
"tablet": { |
| 158 |
"type": "none", |
| 159 |
"top": 0, |
| 160 |
"left": 0, |
| 161 |
"color": "", |
| 162 |
"spread": 7, |
| 163 |
"width": 0 |
| 164 |
}, |
| 165 |
"mobile": { |
| 166 |
"type": "none", |
| 167 |
"top": 0, |
| 168 |
"left": 0, |
| 169 |
"color": "", |
| 170 |
"spread": 7, |
| 171 |
"width": 0 |
| 172 |
} |
| 173 |
} |
| 174 |
}, |
| 175 |
"padding": { |
| 176 |
"type": "object", |
| 177 |
"default": { |
| 178 |
"desktop": { |
| 179 |
"top": "", |
| 180 |
"right": "", |
| 181 |
"bottom": "", |
| 182 |
"left": "" |
| 183 |
}, |
| 184 |
"tablet": { |
| 185 |
"top": "", |
| 186 |
"right": "", |
| 187 |
"bottom": "", |
| 188 |
"left": "" |
| 189 |
}, |
| 190 |
"mobile": { |
| 191 |
"top": "", |
| 192 |
"right": "", |
| 193 |
"bottom": "", |
| 194 |
"left": "" |
| 195 |
}, |
| 196 |
"linked": true |
| 197 |
} |
| 198 |
}, |
| 199 |
"margin": { |
| 200 |
"type": "object", |
| 201 |
"default": { |
| 202 |
"desktop": { |
| 203 |
"top": "", |
| 204 |
"right": "", |
| 205 |
"bottom": "", |
| 206 |
"left": "" |
| 207 |
}, |
| 208 |
"tablet": { |
| 209 |
"top": "", |
| 210 |
"right": "", |
| 211 |
"bottom": "", |
| 212 |
"left": "" |
| 213 |
}, |
| 214 |
"mobile": { |
| 215 |
"top": "", |
| 216 |
"right": "", |
| 217 |
"bottom": "", |
| 218 |
"left": "" |
| 219 |
}, |
| 220 |
"linked": true |
| 221 |
} |
| 222 |
}, |
| 223 |
"blockFontType": { |
| 224 |
"type": "string", |
| 225 |
"default": "default" |
| 226 |
}, |
| 227 |
"blockFontFamily": { |
| 228 |
"type": "object", |
| 229 |
"default": "default" |
| 230 |
}, |
| 231 |
"blockFontWeight": { |
| 232 |
"type": "string", |
| 233 |
"default": 400 |
| 234 |
}, |
| 235 |
"blockFontStyle": { |
| 236 |
"type": "string", |
| 237 |
"default": "normal" |
| 238 |
} |
| 239 |
}, |
| 240 |
"editorScript": "file:./index.js", |
| 241 |
"editorStyle": "fb-block-button" |
| 242 |
} |