PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.0
GenerateBlocks v1.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / blocks / button / attributes.js
generateblocks / src / blocks / button Last commit date
css 6 years ago attributes.js 6 years ago block.js 6 years ago edit.js 6 years ago editor.scss 6 years ago save.js 6 years ago style.scss 6 years ago
attributes.js
467 lines
1 /* eslint-disable no-undef */
2 export default {
3 uniqueId: {
4 type: 'string',
5 default: '',
6 },
7 elementId: {
8 type: 'string',
9 default: '',
10 },
11 cssClasses: {
12 type: 'string',
13 default: '',
14 },
15 url: {
16 type: 'string',
17 source: 'attribute',
18 selector: 'a.gb-button',
19 attribute: 'href',
20 },
21 target: {
22 type: 'boolean',
23 },
24 relNoFollow: {
25 type: 'boolean',
26 },
27 relSponsored: {
28 type: 'boolean',
29 },
30 text: {
31 type: 'array',
32 source: 'children',
33 selector: '.gb-button .button-text',
34 default: 'Button',
35 },
36 icon: {
37 type: 'string',
38 source: 'html',
39 selector: '.gb-icon',
40 },
41 hasIcon: {
42 type: 'boolean',
43 default: false,
44 },
45 iconLocation: {
46 type: 'string',
47 default: generateBlocksDefaults.button.iconLocation,
48 },
49 customIcon: {
50 type: 'boolean',
51 default: false,
52 },
53 removeText: {
54 type: 'boolean',
55 default: generateBlocksDefaults.button.removeText,
56 },
57 ariaLabel: {
58 type: 'string',
59 default: generateBlocksDefaults.button.ariaLabel,
60 },
61 backgroundColor: {
62 type: 'string',
63 default: generateBlocksDefaults.button.backgroundColor,
64 },
65 backgroundColorOpacity: {
66 type: 'number',
67 default: generateBlocksDefaults.button.backgroundColorOpacity,
68 },
69 textColor: {
70 type: 'string',
71 default: generateBlocksDefaults.button.textColor,
72 },
73 backgroundColorHover: {
74 type: 'string',
75 default: generateBlocksDefaults.button.backgroundColorHover,
76 },
77 backgroundColorHoverOpacity: {
78 type: 'number',
79 default: generateBlocksDefaults.button.backgroundColorHoverOpacity,
80 },
81 textColorHover: {
82 type: 'string',
83 default: generateBlocksDefaults.button.textColorHover,
84 },
85 borderColor: {
86 type: 'string',
87 default: generateBlocksDefaults.button.borderColor,
88 },
89 borderColorOpacity: {
90 type: 'number',
91 default: generateBlocksDefaults.button.borderColorOpacity,
92 },
93 borderColorHover: {
94 type: 'string',
95 default: generateBlocksDefaults.button.borderColorHover,
96 },
97 borderColorHoverOpacity: {
98 type: 'number',
99 default: generateBlocksDefaults.button.borderColorHoverOpacity,
100 },
101 showAdvancedTypography: {
102 type: 'boolean',
103 default: generateBlocksDefaults.button.showAdvancedTypography,
104 },
105 fontFamily: {
106 type: 'string',
107 default: generateBlocksDefaults.button.fontFamily,
108 },
109 fontFamilyFallback: {
110 type: 'string',
111 default: generateBlocksDefaults.button.fontFamilyFallback,
112 },
113 googleFont: {
114 type: 'boolean',
115 default: generateBlocksDefaults.button.googleFont,
116 },
117 googleFontVariants: {
118 type: 'string',
119 default: generateBlocksDefaults.button.googleFontVariants,
120 },
121 fontWeight: {
122 type: 'string',
123 default: generateBlocksDefaults.button.fontWeight,
124 },
125 fontSize: {
126 type: 'number',
127 default: generateBlocksDefaults.button.fontSize,
128 },
129 fontSizeTablet: {
130 type: 'number',
131 default: generateBlocksDefaults.button.fontSizeTablet,
132 },
133 fontSizeMobile: {
134 type: 'number',
135 default: generateBlocksDefaults.button.fontSizeMobile,
136 },
137 fontSizeUnit: {
138 type: 'string',
139 default: generateBlocksDefaults.button.fontSizeUnit,
140 },
141 textTransform: {
142 type: 'string',
143 default: generateBlocksDefaults.button.textTransform,
144 },
145 letterSpacing: {
146 type: 'number',
147 default: generateBlocksDefaults.button.letterSpacing,
148 },
149 letterSpacingTablet: {
150 type: 'number',
151 default: generateBlocksDefaults.button.letterSpacingTablet,
152 },
153 letterSpacingMobile: {
154 type: 'number',
155 default: generateBlocksDefaults.button.letterSpacingMobile,
156 },
157 marginTop: {
158 type: 'string',
159 default: generateBlocksDefaults.button.marginTop,
160 },
161 marginRight: {
162 type: 'string',
163 default: generateBlocksDefaults.button.marginRight,
164 },
165 marginBottom: {
166 type: 'string',
167 default: generateBlocksDefaults.button.marginBottom,
168 },
169 marginLeft: {
170 type: 'string',
171 default: generateBlocksDefaults.button.marginLeft,
172 },
173 marginUnit: {
174 type: 'string',
175 default: generateBlocksDefaults.button.marginUnit,
176 },
177 marginTopTablet: {
178 type: 'string',
179 default: generateBlocksDefaults.button.marginTopTablet,
180 },
181 marginRightTablet: {
182 type: 'string',
183 default: generateBlocksDefaults.button.marginRightTablet,
184 },
185 marginBottomTablet: {
186 type: 'string',
187 default: generateBlocksDefaults.button.marginBottomTablet,
188 },
189 marginLeftTablet: {
190 type: 'string',
191 default: generateBlocksDefaults.button.marginLeftTablet,
192 },
193 marginTopMobile: {
194 type: 'string',
195 default: generateBlocksDefaults.button.marginTopMobile,
196 },
197 marginRightMobile: {
198 type: 'string',
199 default: generateBlocksDefaults.button.marginRightMobile,
200 },
201 marginBottomMobile: {
202 type: 'string',
203 default: generateBlocksDefaults.button.marginBottomMobile,
204 },
205 marginLeftMobile: {
206 type: 'string',
207 default: generateBlocksDefaults.button.marginLeftMobile,
208 },
209 paddingTop: {
210 type: 'string',
211 default: generateBlocksDefaults.button.paddingTop,
212 },
213 paddingRight: {
214 type: 'string',
215 default: generateBlocksDefaults.button.paddingRight,
216 },
217 paddingBottom: {
218 type: 'string',
219 default: generateBlocksDefaults.button.paddingBottom,
220 },
221 paddingLeft: {
222 type: 'string',
223 default: generateBlocksDefaults.button.paddingLeft,
224 },
225 paddingUnit: {
226 type: 'string',
227 default: generateBlocksDefaults.button.paddingUnit,
228 },
229 paddingTopTablet: {
230 type: 'string',
231 default: generateBlocksDefaults.button.paddingTopTablet,
232 },
233 paddingRightTablet: {
234 type: 'string',
235 default: generateBlocksDefaults.button.paddingRightTablet,
236 },
237 paddingBottomTablet: {
238 type: 'string',
239 default: generateBlocksDefaults.button.paddingBottomTablet,
240 },
241 paddingLeftTablet: {
242 type: 'string',
243 default: generateBlocksDefaults.button.paddingLeftTablet,
244 },
245 paddingTopMobile: {
246 type: 'string',
247 default: generateBlocksDefaults.button.paddingTopMobile,
248 },
249 paddingRightMobile: {
250 type: 'string',
251 default: generateBlocksDefaults.button.paddingRightMobile,
252 },
253 paddingBottomMobile: {
254 type: 'string',
255 default: generateBlocksDefaults.button.paddingBottomMobile,
256 },
257 paddingLeftMobile: {
258 type: 'string',
259 default: generateBlocksDefaults.button.paddingLeftMobile,
260 },
261 borderSizeTop: {
262 type: 'string',
263 default: generateBlocksDefaults.button.borderSizeTop,
264 },
265 borderSizeRight: {
266 type: 'string',
267 default: generateBlocksDefaults.button.borderSizeRight,
268 },
269 borderSizeBottom: {
270 type: 'string',
271 default: generateBlocksDefaults.button.borderSizeBottom,
272 },
273 borderSizeLeft: {
274 type: 'string',
275 default: generateBlocksDefaults.button.borderSizeLeft,
276 },
277 borderSizeTopTablet: {
278 type: 'string',
279 default: generateBlocksDefaults.button.borderSizeTopTablet,
280 },
281 borderSizeRightTablet: {
282 type: 'string',
283 default: generateBlocksDefaults.button.borderSizeRightTablet,
284 },
285 borderSizeBottomTablet: {
286 type: 'string',
287 default: generateBlocksDefaults.button.borderSizeBottomTablet,
288 },
289 borderSizeLeftTablet: {
290 type: 'string',
291 default: generateBlocksDefaults.button.borderSizeLeftTablet,
292 },
293 borderSizeTopMobile: {
294 type: 'string',
295 default: generateBlocksDefaults.button.borderSizeTopMobile,
296 },
297 borderSizeRightMobile: {
298 type: 'string',
299 default: generateBlocksDefaults.button.borderSizeRightMobile,
300 },
301 borderSizeBottomMobile: {
302 type: 'string',
303 default: generateBlocksDefaults.button.borderSizeBottomMobile,
304 },
305 borderSizeLeftMobile: {
306 type: 'string',
307 default: generateBlocksDefaults.button.borderSizeLeftMobile,
308 },
309 borderRadiusTopRight: {
310 type: 'string',
311 default: generateBlocksDefaults.button.borderRadiusTopRight,
312 },
313 borderRadiusBottomRight: {
314 type: 'string',
315 default: generateBlocksDefaults.button.borderRadiusBottomRight,
316 },
317 borderRadiusBottomLeft: {
318 type: 'string',
319 default: generateBlocksDefaults.button.borderRadiusBottomLeft,
320 },
321 borderRadiusTopLeft: {
322 type: 'string',
323 default: generateBlocksDefaults.button.borderRadiusTopLeft,
324 },
325 borderRadiusUnit: {
326 type: 'string',
327 default: generateBlocksDefaults.button.borderRadiusUnit,
328 },
329 borderRadiusTopRightTablet: {
330 type: 'string',
331 default: generateBlocksDefaults.button.borderRadiusTopRightTablet,
332 },
333 borderRadiusBottomRightTablet: {
334 type: 'string',
335 default: generateBlocksDefaults.button.borderRadiusBottomRightTablet,
336 },
337 borderRadiusBottomLeftTablet: {
338 type: 'string',
339 default: generateBlocksDefaults.button.borderRadiusBottomLeftTablet,
340 },
341 borderRadiusTopLeftTablet: {
342 type: 'string',
343 default: generateBlocksDefaults.button.borderRadiusTopLeftTablet,
344 },
345 borderRadiusTopRightMobile: {
346 type: 'string',
347 default: generateBlocksDefaults.button.borderRadiusTopRightMobile,
348 },
349 borderRadiusBottomRightMobile: {
350 type: 'string',
351 default: generateBlocksDefaults.button.borderRadiusBottomRightMobile,
352 },
353 borderRadiusBottomLeftMobile: {
354 type: 'string',
355 default: generateBlocksDefaults.button.borderRadiusBottomLeftMobile,
356 },
357 borderRadiusTopLeftMobile: {
358 type: 'string',
359 default: generateBlocksDefaults.button.borderRadiusTopLeftMobile,
360 },
361 gradient: {
362 type: 'boolean',
363 default: generateBlocksDefaults.button.gradient,
364 },
365 gradientDirection: {
366 type: 'number',
367 default: generateBlocksDefaults.button.gradientDirection,
368 },
369 gradientColorOne: {
370 type: 'string',
371 default: generateBlocksDefaults.button.gradientColorOne,
372 },
373 gradientColorOneOpacity: {
374 type: 'number',
375 default: generateBlocksDefaults.button.gradientColorOneOpacity,
376 },
377 gradientColorStopOne: {
378 type: 'number',
379 default: generateBlocksDefaults.button.gradientColorStopOne,
380 },
381 gradientColorTwo: {
382 type: 'string',
383 default: generateBlocksDefaults.button.gradientColorTwo,
384 },
385 gradientColorTwoOpacity: {
386 type: 'number',
387 default: generateBlocksDefaults.button.gradientColorTwoOpacity,
388 },
389 gradientColorStopTwo: {
390 type: 'number',
391 default: generateBlocksDefaults.button.gradientColorStopTwo,
392 },
393 iconPaddingTop: {
394 type: 'string',
395 default: generateBlocksDefaults.button.iconPaddingTop,
396 },
397 iconPaddingRight: {
398 type: 'string',
399 default: generateBlocksDefaults.button.iconPaddingRight,
400 },
401 iconPaddingBottom: {
402 type: 'string',
403 default: generateBlocksDefaults.button.iconPaddingBottom,
404 },
405 iconPaddingLeft: {
406 type: 'string',
407 default: generateBlocksDefaults.button.iconPaddingLeft,
408 },
409 iconPaddingTopTablet: {
410 type: 'string',
411 default: generateBlocksDefaults.button.iconPaddingTopTablet,
412 },
413 iconPaddingRightTablet: {
414 type: 'string',
415 default: generateBlocksDefaults.button.iconPaddingRightTablet,
416 },
417 iconPaddingBottomTablet: {
418 type: 'string',
419 default: generateBlocksDefaults.button.iconPaddingBottomTablet,
420 },
421 iconPaddingLeftTablet: {
422 type: 'string',
423 default: generateBlocksDefaults.button.iconPaddingLeftTablet,
424 },
425 iconPaddingTopMobile: {
426 type: 'string',
427 default: generateBlocksDefaults.button.iconPaddingTopMobile,
428 },
429 iconPaddingRightMobile: {
430 type: 'string',
431 default: generateBlocksDefaults.button.iconPaddingRightMobile,
432 },
433 iconPaddingBottomMobile: {
434 type: 'string',
435 default: generateBlocksDefaults.button.iconPaddingBottomMobile,
436 },
437 iconPaddingLeftMobile: {
438 type: 'string',
439 default: generateBlocksDefaults.button.iconPaddingLeftMobile,
440 },
441 iconPaddingUnit: {
442 type: 'string',
443 default: generateBlocksDefaults.button.iconPaddingUnit,
444 },
445 iconPaddingSyncUnits: {
446 type: 'boolean',
447 default: false,
448 },
449 iconSize: {
450 type: 'number',
451 default: generateBlocksDefaults.button.iconSize,
452 },
453 iconSizeTablet: {
454 type: 'number',
455 default: generateBlocksDefaults.button.iconSizeTablet,
456 },
457 iconSizeMobile: {
458 type: 'number',
459 default: generateBlocksDefaults.button.iconSizeMobile,
460 },
461 iconSizeUnit: {
462 type: 'string',
463 default: generateBlocksDefaults.button.iconSizeUnit,
464 },
465 };
466 /* eslint-enable no-undef */
467