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