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