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