PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 106 releases
b-blocks / build / divider / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection trunk, at build/divider/block.json

370 lines 8.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "b-blocks/divider",
5 "title": "Divider",
6 "category": "bBlocks",
7 "description": "Add a customizable inline divider between paragraphs and sections. Choose a plain line, centered icon, or text label, with options for line style, color, thickness, width, alignment, and spacing.",
8 "keywords": [
9 "divider",
10 "separator",
11 "hr",
12 "line",
13 "rule",
14 "horizontal rule",
15 "or",
16 "section divider"
17 ],
18 "textdomain": "b-blocks",
19 "attributes": {
20 "type": {
21 "type": "string",
22 "default": "line"
23 },
24 "layout": {
25 "type": "object",
26 "default": {
27 "alignment": "center",
28 "width": "100%"
29 }
30 },
31 "line": {
32 "type": "object",
33 "default": {
34 "style": "solid",
35 "color": "#cccccc",
36 "width": "2px"
37 }
38 },
39 "icon": {
40 "type": "object",
41 "default": {
42 "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\" fill=\"currentColor\"><path d=\"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z\"/></svg>",
43 "size": "16px",
44 "color": "",
45 "bg": {
46 "type": "solid",
47 "color": ""
48 },
49 "padding": {
50 "top": "8px",
51 "right": "8px",
52 "bottom": "8px",
53 "left": "8px"
54 },
55 "borderRadius": {
56 "top": "50px",
57 "right": "50px",
58 "bottom": "50px",
59 "left": "50px"
60 }
61 }
62 },
63 "text": {
64 "type": "object",
65 "default": {
66 "content": "OR",
67 "color": "",
68 "bg": {
69 "type": "solid",
70 "color": ""
71 },
72 "typography": {
73 "fontSize": {
74 "desktop": "14px",
75 "tablet": "",
76 "mobile": ""
77 },
78 "fontWeight": 600,
79 "textTransform": "none"
80 },
81 "padding": {
82 "top": "4px",
83 "right": "12px",
84 "bottom": "4px",
85 "left": "12px"
86 }
87 }
88 },
89 "spacing": {
90 "type": "object",
91 "default": {
92 "top": "24px",
93 "right": "",
94 "bottom": "24px",
95 "left": ""
96 }
97 },
98 "advanced": {
99 "type": "object",
100 "default": {
101 "dimension": {
102 "padding": {
103 "desktop": {
104 "top": "",
105 "right": "",
106 "bottom": "",
107 "left": ""
108 },
109 "tablet": {
110 "top": "",
111 "right": "",
112 "bottom": "",
113 "left": ""
114 },
115 "mobile": {
116 "top": "",
117 "right": "",
118 "bottom": "",
119 "left": ""
120 }
121 }
122 },
123 "transform": {
124 "normal": {
125 "rotate": {
126 "desktop": {
127 "z": "",
128 "y": "",
129 "x": ""
130 },
131 "tablet": {
132 "z": "",
133 "y": "",
134 "x": ""
135 },
136 "mobile": {
137 "z": "",
138 "y": "",
139 "x": ""
140 },
141 "threeDRotate": false
142 },
143 "offset": {
144 "desktop": {
145 "x": "",
146 "y": ""
147 },
148 "tablet": {
149 "x": "",
150 "y": ""
151 },
152 "mobile": {
153 "x": "",
154 "y": ""
155 }
156 },
157 "scale": {
158 "isProportion": true,
159 "desktop": {
160 "x": "",
161 "y": "",
162 "scale": ""
163 },
164 "tablet": {
165 "x": "",
166 "y": "",
167 "scale": ""
168 },
169 "mobile": {
170 "x": "",
171 "y": "",
172 "scale": ""
173 }
174 },
175 "skew": {
176 "desktop": {
177 "x": "",
178 "y": ""
179 },
180 "tablet": {
181 "x": "",
182 "y": ""
183 },
184 "mobile": {
185 "x": "",
186 "y": ""
187 }
188 },
189 "flipX": false,
190 "flipY": false
191 },
192 "hover": {
193 "rotate": {
194 "desktop": {
195 "z": "",
196 "y": "",
197 "x": ""
198 },
199 "tablet": {
200 "z": "",
201 "y": "",
202 "x": ""
203 },
204 "mobile": {
205 "z": "",
206 "y": "",
207 "x": ""
208 },
209 "threeDRotate": false
210 },
211 "offset": {
212 "desktop": {
213 "x": "",
214 "y": ""
215 },
216 "tablet": {
217 "x": "",
218 "y": ""
219 },
220 "mobile": {
221 "x": "",
222 "y": ""
223 }
224 },
225 "scale": {
226 "isProportion": true,
227 "desktop": {
228 "x": "",
229 "y": "",
230 "scale": ""
231 },
232 "tablet": {
233 "x": "",
234 "y": "",
235 "scale": ""
236 },
237 "mobile": {
238 "x": "",
239 "y": "",
240 "scale": ""
241 }
242 },
243 "skew": {
244 "desktop": {
245 "x": "",
246 "y": ""
247 },
248 "tablet": {
249 "x": "",
250 "y": ""
251 },
252 "mobile": {
253 "x": "",
254 "y": ""
255 }
256 },
257 "flipX": false,
258 "flipY": false
259 },
260 "transition": 200
261 },
262 "borderShadow": {
263 "normal": {
264 "radius": {
265 "top": "",
266 "right": "",
267 "bottom": "",
268 "left": ""
269 },
270 "shadow": [
271 {
272 "hOffset": "",
273 "vOffset": "",
274 "blur": "",
275 "spreed": "",
276 "color": "",
277 "isInset": false
278 }
279 ]
280 }
281 },
282 "background": {
283 "normal": {
284 "type": "color",
285 "color": "",
286 "gradient": {
287 "type": "radial",
288 "radialType": "ellipse",
289 "colors": [
290 {
291 "color": "rgba(58, 66, 222, 1)",
292 "position": "0"
293 },
294 {
295 "color": "rgba(176, 195, 235, 1)",
296 "position": "80"
297 }
298 ],
299 "centerPositions": {
300 "x": 50,
301 "y": 50
302 },
303 "angel": 90
304 },
305 "img": {
306 "url": "",
307 "desktop": {
308 "position": "center center",
309 "xPosition": 0,
310 "yPosition": 0,
311 "attachment": "",
312 "repeat": "no-repeat",
313 "size": "",
314 "customSize": "0px"
315 },
316 "tablet": {
317 "position": "center center",
318 "xPosition": 0,
319 "yPosition": 0,
320 "attachment": "",
321 "repeat": "no-repeat",
322 "size": "",
323 "customSize": "0px"
324 },
325 "mobile": {
326 "position": "center center",
327 "xPosition": 0,
328 "yPosition": 0,
329 "attachment": "",
330 "repeat": "no-repeat",
331 "size": "",
332 "customSize": "0px"
333 }
334 },
335 "video": {
336 "url": "",
337 "loop": false
338 },
339 "transition": 0.3
340 }
341 }
342 }
343 }
344 },
345 "supports": {
346 "align": [
347 "wide",
348 "full"
349 ],
350 "html": false,
351 "anchor": true,
352 "className": true,
353 "customClassName": true,
354 "spacing": {
355 "margin": false,
356 "padding": false
357 }
358 },
359 "example": {
360 "attributes": {
361 "preview": true
362 }
363 },
364 "editorScript": "file:../index.js",
365 "style": [
366 "file:./view.css"
367 ],
368 "viewScript": "file:./view.js",
369 "render": "file:./render.php"
370 }