@woodylab/payload 0.0.126 → 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ export const concatCssFields = (args) => {
19
19
  });
20
20
  return classes.join(' ');
21
21
  };
22
- export const fieldCss = () => {
22
+ export const fieldCss = (enableTabs = false) => {
23
23
  return {
24
24
  name: 'css',
25
25
  type: 'group',
@@ -36,475 +36,477 @@ export const fieldCss = () => {
36
36
  },
37
37
  {
38
38
  type: 'tabs',
39
- tabs: [
40
- {
41
- label: 'Box',
42
- fields: [
43
- {
44
- type: 'tabs',
45
- tabs: tailwindSelectorVariants.map((bp) => {
46
- return {
47
- label: bp.label,
48
- fields: [
49
- {
50
- type: 'row',
51
- fields: [
52
- tailwindField('width', bp.value),
53
- tailwindField('minWidth', bp.value),
54
- tailwindField('maxWidth', bp.value),
55
- tailwindField('height', bp.value),
56
- tailwindField('minHeight', bp.value),
57
- tailwindField('maxHeight', bp.value),
58
- tailwindField('aspectRatio', bp.value),
59
- {
60
- type: 'collapsible',
61
- label: 'Margins',
62
- admin: {
63
- width: '50%',
39
+ tabs: enableTabs
40
+ ? [
41
+ {
42
+ label: 'Box',
43
+ fields: [
44
+ {
45
+ type: 'tabs',
46
+ tabs: tailwindSelectorVariants.map((bp) => {
47
+ return {
48
+ label: bp.label,
49
+ fields: [
50
+ {
51
+ type: 'row',
52
+ fields: [
53
+ tailwindField('width', bp.value),
54
+ tailwindField('minWidth', bp.value),
55
+ tailwindField('maxWidth', bp.value),
56
+ tailwindField('height', bp.value),
57
+ tailwindField('minHeight', bp.value),
58
+ tailwindField('maxHeight', bp.value),
59
+ tailwindField('aspectRatio', bp.value),
60
+ {
61
+ type: 'collapsible',
62
+ label: 'Margins',
63
+ admin: {
64
+ width: '50%',
65
+ },
66
+ fields: [
67
+ tailwindField('margin', bp.value),
68
+ tailwindField('marginX', bp.value),
69
+ tailwindField('marginY', bp.value),
70
+ tailwindField('marginTop', bp.value),
71
+ tailwindField('marginEnd', bp.value),
72
+ tailwindField('marginBottom', bp.value),
73
+ tailwindField('marginStart', bp.value),
74
+ ],
64
75
  },
65
- fields: [
66
- tailwindField('margin', bp.value),
67
- tailwindField('marginX', bp.value),
68
- tailwindField('marginY', bp.value),
69
- tailwindField('marginTop', bp.value),
70
- tailwindField('marginEnd', bp.value),
71
- tailwindField('marginBottom', bp.value),
72
- tailwindField('marginStart', bp.value),
73
- ],
74
- },
75
- {
76
- type: 'collapsible',
77
- label: 'Paddings',
78
- admin: {
79
- width: '50%',
76
+ {
77
+ type: 'collapsible',
78
+ label: 'Paddings',
79
+ admin: {
80
+ width: '50%',
81
+ },
82
+ fields: [
83
+ tailwindField('padding', bp.value),
84
+ tailwindField('paddingX', bp.value),
85
+ tailwindField('paddingY', bp.value),
86
+ tailwindField('paddingTop', bp.value),
87
+ tailwindField('paddingEnd', bp.value),
88
+ tailwindField('paddingBottom', bp.value),
89
+ tailwindField('paddingStart', bp.value),
90
+ // # TODO OK funzionalità in aggiunta dei tab
91
+ // GESTIRE LAYOUT DECENTE UNA VOLTA PER TUTTI I BP
92
+ ],
80
93
  },
81
- fields: [
82
- tailwindField('padding', bp.value),
83
- tailwindField('paddingX', bp.value),
84
- tailwindField('paddingY', bp.value),
85
- tailwindField('paddingTop', bp.value),
86
- tailwindField('paddingEnd', bp.value),
87
- tailwindField('paddingBottom', bp.value),
88
- tailwindField('paddingStart', bp.value),
89
- // # TODO OK funzionalità in aggiunta dei tab
90
- // GESTIRE LAYOUT DECENTE UNA VOLTA PER TUTTI I BP
91
- ],
92
- },
93
- ],
94
- },
95
- ],
96
- };
97
- }),
98
- },
99
- ],
100
- },
101
- {
102
- label: 'Display',
103
- fields: [
104
- {
105
- type: 'tabs',
106
- tabs: tailwindSelectorVariants.map((bp) => {
107
- return {
108
- label: bp.label,
109
- fields: [
110
- {
111
- type: 'row',
112
- fields: [
113
- // BASE DISPLAY
114
- tailwindField('display', bp.value),
115
- tailwindField('visibility', bp.value),
116
- tailwindField('isolation', bp.value),
117
- // FLOW / OVERFLOW
118
- tailwindField('overflow', bp.value),
119
- tailwindField('overflowX', bp.value),
120
- tailwindField('overflowY', bp.value),
121
- // FLOAT / CLEAR
122
- tailwindField('float', bp.value),
123
- tailwindField('clear', bp.value),
124
- // FLEX
125
- tailwindField('flexWrap', bp.value),
126
- tailwindField('justifyContent', bp.value),
127
- tailwindField('alignItems', bp.value),
128
- tailwindField('alignContent', bp.value),
129
- tailwindField('alignSelf', bp.value),
130
- tailwindField('flexGrow', bp.value),
131
- tailwindField('flexShrink', bp.value),
132
- tailwindField('flexBasis', bp.value),
133
- tailwindField('order', bp.value),
134
- tailwindField('gap', bp.value),
135
- //tailwindField('rowGap', bp.value),
136
- tailwindField('columnGap', bp.value),
137
- // GRID
138
- tailwindField('gridTemplateColumns', bp.value),
139
- tailwindField('gridTemplateRows', bp.value),
140
- tailwindField('gridColumn', bp.value),
141
- tailwindField('gridRow', bp.value),
142
- tailwindField('gridAutoFlow', bp.value),
143
- tailwindField('gridAutoColumns', bp.value),
144
- tailwindField('gridAutoRows', bp.value),
145
- tailwindField('justifyItems', bp.value),
146
- tailwindField('justifySelf', bp.value),
147
- tailwindField('placeItems', bp.value),
148
- tailwindField('placeContent', bp.value),
149
- // TABLE
150
- tailwindField('tableLayout', bp.value),
151
- tailwindField('captionSide', bp.value),
152
- // OBJECT / MEDIA
153
- tailwindField('objectFit', bp.value),
154
- tailwindField('objectPosition', bp.value),
155
- // COLUMNS
156
- tailwindField('columns', bp.value),
157
- tailwindField('breakBefore', bp.value),
158
- tailwindField('breakAfter', bp.value),
159
- tailwindField('breakInside', bp.value),
160
- ],
161
- },
162
- ],
163
- };
164
- }),
165
- },
166
- ],
167
- },
168
- {
169
- label: 'Position',
170
- fields: [
171
- {
172
- type: 'tabs',
173
- tabs: tailwindSelectorVariants.map((bp) => {
174
- return {
175
- label: bp.label,
176
- fields: [
177
- {
178
- type: 'row',
179
- fields: [
180
- tailwindField('position', bp.value),
181
- // inset / offsets
182
- // #TODO Aggiungere ipotetico campo tailwindNumeric per selezione valore numerico tipo gli offset delle position
183
- //tailwindField('top', bp.value),
184
- //tailwindField('right', bp.value),
185
- //tailwindField('bottom', bp.value),
186
- //tailwindField('left', bp.value),
187
- //tailwindField('inset', bp.value),
188
- //tailwindField('insetX', bp.value),
189
- //tailwindField('insetY', bp.value),
190
- // z-index / stacking
191
- tailwindField('zIndex', bp.value),
192
- // translate (layout-related movement)
193
- //tailwindField('translateX', bp.value),
194
- //tailwindField('translateY', bp.value),
195
- ],
196
- },
197
- ],
198
- };
199
- }),
200
- },
201
- ],
202
- },
203
- {
204
- label: 'Typography',
205
- fields: [
206
- {
207
- type: 'tabs',
208
- tabs: tailwindSelectorVariants.map((bp) => {
209
- return {
210
- label: bp.label,
211
- fields: [
212
- {
213
- type: 'row',
214
- fields: [
215
- tailwindField('fontFamily', bp.value),
216
- tailwindField('fontSize', bp.value),
217
- tailwindField('fontWeight', bp.value),
218
- tailwindField('fontStyle', bp.value),
219
- // text layout
220
- tailwindField('lineHeight', bp.value),
221
- tailwindField('letterSpacing', bp.value),
222
- tailwindField('textAlign', bp.value),
223
- tailwindField('verticalAlign', bp.value),
224
- // text transform & decoration
225
- tailwindField('textTransform', bp.value),
226
- tailwindField('textDecoration', bp.value),
227
- tailwindField('textDecorationStyle', bp.value),
228
- tailwindField('textDecorationThickness', bp.value),
229
- tailwindField('textUnderlineOffset', bp.value),
230
- // text behavior
231
- tailwindField('textOverflow', bp.value),
232
- tailwindField('whiteSpace', bp.value),
233
- tailwindField('wordBreak', bp.value),
234
- tailwindField('hyphens', bp.value),
235
- // list
236
- tailwindField('listStyleType', bp.value),
237
- tailwindField('listStylePosition', bp.value),
238
- ],
239
- },
240
- ],
241
- };
242
- }),
243
- },
244
- ],
245
- },
246
- {
247
- label: 'Color',
248
- fields: [
249
- {
250
- type: 'tabs',
251
- tabs: tailwindSelectorVariants.map((bp) => {
252
- return {
253
- label: bp.label,
254
- fields: [
255
- {
256
- type: 'row',
257
- fields: [
258
- tailwindField('textColor', bp.value),
259
- //tailwindField('placeholderColor', bp.value),
260
- tailwindField('caretColor', bp.value),
261
- // background
262
- tailwindField('backgroundColor', bp.value),
263
- // border & divide
264
- tailwindField('borderColor', bp.value),
265
- tailwindField('divideColor', bp.value),
266
- // accents
267
- tailwindField('accentColor', bp.value),
268
- ],
269
- },
270
- ],
271
- };
272
- }),
273
- },
274
- ],
275
- },
276
- {
277
- label: 'Background',
278
- fields: [
279
- {
280
- type: 'tabs',
281
- tabs: tailwindSelectorVariants.map((bp) => {
282
- return {
283
- label: bp.label,
284
- fields: [
285
- {
286
- type: 'row',
287
- fields: [
288
- // background image & gradients
289
- tailwindField('backgroundImage', bp.value),
290
- // #TODO gestire possibilità di caricare una immagine (capire quindi gestione url dell'immagine da referenziare)
291
- //tailwindField('backgroundGradientFrom', bp.value),
292
- //tailwindField('backgroundGradientVia', bp.value),
293
- //tailwindField('backgroundGradientTo', bp.value),
294
- // background behavior
295
- tailwindField('backgroundSize', bp.value),
296
- tailwindField('backgroundPosition', bp.value),
297
- tailwindField('backgroundRepeat', bp.value),
298
- tailwindField('backgroundAttachment', bp.value),
299
- // clipping & origin
300
- tailwindField('backgroundClip', bp.value),
301
- tailwindField('backgroundOrigin', bp.value),
302
- ],
303
- },
304
- ],
305
- };
306
- }),
307
- },
308
- ],
309
- },
310
- {
311
- label: 'Border',
312
- fields: [
313
- {
314
- type: 'tabs',
315
- tabs: tailwindSelectorVariants.map((bp) => {
316
- return {
317
- label: bp.label,
318
- fields: [
319
- {
320
- type: 'row',
321
- fields: [
322
- // border width
323
- tailwindField('borderWidth', bp.value),
324
- // #TODO ADD
325
- //tailwindField('borderWidthX', bp.value),
326
- //tailwindField('borderWidthY', bp.value),
327
- //tailwindField('borderWidthTop', bp.value),
328
- //tailwindField('borderWidthRight', bp.value),
329
- //tailwindField('borderWidthBottom', bp.value),
330
- //tailwindField('borderWidthLeft', bp.value),
331
- // border style & radius
332
- tailwindField('borderStyle', bp.value),
333
- tailwindField('borderRadius', bp.value),
334
- // #TODO ADD
335
- //tailwindField('borderRadiusTop', bp.value),
336
- //tailwindField('borderRadiusRight', bp.value),
337
- //tailwindField('borderRadiusBottom', bp.value),
338
- //tailwindField('borderRadiusLeft', bp.value),
339
- // divide
340
- tailwindField('divideWidth', bp.value),
341
- tailwindField('divideStyle', bp.value),
342
- // outline & ring
343
- tailwindField('outline', bp.value),
344
- tailwindField('outlineOffset', bp.value),
345
- tailwindField('ringWidth', bp.value),
346
- tailwindField('ringOffsetWidth', bp.value),
347
- ],
348
- },
349
- ],
350
- };
351
- }),
352
- },
353
- ],
354
- },
355
- {
356
- label: 'Shadow',
357
- fields: [
358
- {
359
- type: 'tabs',
360
- tabs: tailwindSelectorVariants.map((bp) => {
361
- return {
362
- label: bp.label,
363
- fields: [
364
- {
365
- type: 'row',
366
- fields: [
367
- tailwindField('boxShadow', bp.value),
368
- //tailwindField('dropShadow', bp.value),
369
- ],
370
- },
371
- ],
372
- };
373
- }),
374
- },
375
- ],
376
- },
377
- {
378
- label: 'Effects',
379
- fields: [
380
- {
381
- type: 'tabs',
382
- tabs: tailwindSelectorVariants.map((bp) => {
383
- return {
384
- label: bp.label,
385
- fields: [
386
- {
387
- type: 'row',
388
- fields: [
389
- // opacity & blending
390
- tailwindField('opacity', bp.value),
391
- tailwindField('mixBlendMode', bp.value),
392
- //tailwindField('backgroundBlendMode', bp.value),
393
- // filters
394
- //tailwindField('blur', bp.value),
395
- //tailwindField('brightness', bp.value),
396
- //tailwindField('contrast', bp.value),
397
- //tailwindField('grayscale', bp.value),
398
- //tailwindField('hueRotate', bp.value),
399
- //tailwindField('invert', bp.value),
400
- //tailwindField('saturate', bp.value),
401
- //tailwindField('sepia', bp.value),
402
- // backdrop filters
403
- tailwindField('backdropBlur', bp.value),
404
- tailwindField('backdropBrightness', bp.value),
405
- tailwindField('backdropContrast', bp.value),
406
- tailwindField('backdropGrayscale', bp.value),
407
- tailwindField('backdropHueRotate', bp.value),
408
- tailwindField('backdropInvert', bp.value),
409
- tailwindField('backdropOpacity', bp.value),
410
- tailwindField('backdropSaturate', bp.value),
411
- tailwindField('backdropSepia', bp.value),
412
- ],
413
- },
414
- ],
415
- };
416
- }),
417
- },
418
- ],
419
- },
420
- {
421
- label: 'Transform',
422
- fields: [
423
- {
424
- type: 'tabs',
425
- tabs: tailwindSelectorVariants.map((bp) => {
426
- return {
427
- label: bp.label,
428
- fields: [
429
- {
430
- type: 'row',
431
- fields: [
432
- tailwindField('scale', bp.value),
433
- // #TODO ADD
434
- //tailwindField('scaleX', bp.value),
435
- //tailwindField('scaleY', bp.value),
436
- tailwindField('rotate', bp.value),
437
- //tailwindField('translateX', bp.value),
438
- //tailwindField('translateY', bp.value),
439
- //tailwindField('skewX', bp.value),
440
- //tailwindField('skewY', bp.value),
441
- tailwindField('transformOrigin', bp.value),
442
- ],
443
- },
444
- ],
445
- };
446
- }),
447
- },
448
- ],
449
- },
450
- {
451
- label: 'Animation',
452
- fields: [
453
- {
454
- type: 'tabs',
455
- tabs: tailwindSelectorVariants.map((bp) => {
456
- return {
457
- label: bp.label,
458
- fields: [
459
- {
460
- type: 'row',
461
- fields: [
462
- // transition
463
- tailwindField('transitionProperty', bp.value),
464
- tailwindField('transitionDuration', bp.value),
465
- tailwindField('transitionTimingFunction', bp.value),
466
- tailwindField('transitionDelay', bp.value),
467
- // animation
468
- tailwindField('animation', bp.value),
469
- ],
470
- },
471
- ],
472
- };
473
- }),
474
- },
475
- ],
476
- },
477
- {
478
- label: 'Interaction',
479
- fields: [
480
- {
481
- type: 'tabs',
482
- tabs: tailwindSelectorVariants.map((bp) => {
483
- return {
484
- label: bp.label,
485
- fields: [
486
- {
487
- type: 'row',
488
- fields: [
489
- tailwindField('cursor', bp.value),
490
- tailwindField('pointerEvents', bp.value),
491
- tailwindField('userSelect', bp.value),
492
- tailwindField('resize', bp.value),
493
- tailwindField('scrollBehavior', bp.value),
494
- tailwindField('scrollMargin', bp.value),
495
- tailwindField('scrollPadding', bp.value),
496
- tailwindField('scrollSnapType', bp.value),
497
- tailwindField('scrollSnapAlign', bp.value),
498
- tailwindField('scrollSnapStop', bp.value),
499
- ],
500
- },
501
- ],
502
- };
503
- }),
504
- },
505
- ],
506
- },
507
- ],
94
+ ],
95
+ },
96
+ ],
97
+ };
98
+ }),
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ label: 'Display',
104
+ fields: [
105
+ {
106
+ type: 'tabs',
107
+ tabs: tailwindSelectorVariants.map((bp) => {
108
+ return {
109
+ label: bp.label,
110
+ fields: [
111
+ {
112
+ type: 'row',
113
+ fields: [
114
+ // BASE DISPLAY
115
+ tailwindField('display', bp.value),
116
+ tailwindField('visibility', bp.value),
117
+ tailwindField('isolation', bp.value),
118
+ // FLOW / OVERFLOW
119
+ tailwindField('overflow', bp.value),
120
+ tailwindField('overflowX', bp.value),
121
+ tailwindField('overflowY', bp.value),
122
+ // FLOAT / CLEAR
123
+ tailwindField('float', bp.value),
124
+ tailwindField('clear', bp.value),
125
+ // FLEX
126
+ tailwindField('flexWrap', bp.value),
127
+ tailwindField('justifyContent', bp.value),
128
+ tailwindField('alignItems', bp.value),
129
+ tailwindField('alignContent', bp.value),
130
+ tailwindField('alignSelf', bp.value),
131
+ tailwindField('flexGrow', bp.value),
132
+ tailwindField('flexShrink', bp.value),
133
+ tailwindField('flexBasis', bp.value),
134
+ tailwindField('order', bp.value),
135
+ tailwindField('gap', bp.value),
136
+ //tailwindField('rowGap', bp.value),
137
+ tailwindField('columnGap', bp.value),
138
+ // GRID
139
+ tailwindField('gridTemplateColumns', bp.value),
140
+ tailwindField('gridTemplateRows', bp.value),
141
+ tailwindField('gridColumn', bp.value),
142
+ tailwindField('gridRow', bp.value),
143
+ tailwindField('gridAutoFlow', bp.value),
144
+ tailwindField('gridAutoColumns', bp.value),
145
+ tailwindField('gridAutoRows', bp.value),
146
+ tailwindField('justifyItems', bp.value),
147
+ tailwindField('justifySelf', bp.value),
148
+ tailwindField('placeItems', bp.value),
149
+ tailwindField('placeContent', bp.value),
150
+ // TABLE
151
+ tailwindField('tableLayout', bp.value),
152
+ tailwindField('captionSide', bp.value),
153
+ // OBJECT / MEDIA
154
+ tailwindField('objectFit', bp.value),
155
+ tailwindField('objectPosition', bp.value),
156
+ // COLUMNS
157
+ tailwindField('columns', bp.value),
158
+ tailwindField('breakBefore', bp.value),
159
+ tailwindField('breakAfter', bp.value),
160
+ tailwindField('breakInside', bp.value),
161
+ ],
162
+ },
163
+ ],
164
+ };
165
+ }),
166
+ },
167
+ ],
168
+ },
169
+ {
170
+ label: 'Position',
171
+ fields: [
172
+ {
173
+ type: 'tabs',
174
+ tabs: tailwindSelectorVariants.map((bp) => {
175
+ return {
176
+ label: bp.label,
177
+ fields: [
178
+ {
179
+ type: 'row',
180
+ fields: [
181
+ tailwindField('position', bp.value),
182
+ // inset / offsets
183
+ // #TODO Aggiungere ipotetico campo tailwindNumeric per selezione valore numerico tipo gli offset delle position
184
+ //tailwindField('top', bp.value),
185
+ //tailwindField('right', bp.value),
186
+ //tailwindField('bottom', bp.value),
187
+ //tailwindField('left', bp.value),
188
+ //tailwindField('inset', bp.value),
189
+ //tailwindField('insetX', bp.value),
190
+ //tailwindField('insetY', bp.value),
191
+ // z-index / stacking
192
+ tailwindField('zIndex', bp.value),
193
+ // translate (layout-related movement)
194
+ //tailwindField('translateX', bp.value),
195
+ //tailwindField('translateY', bp.value),
196
+ ],
197
+ },
198
+ ],
199
+ };
200
+ }),
201
+ },
202
+ ],
203
+ },
204
+ {
205
+ label: 'Typography',
206
+ fields: [
207
+ {
208
+ type: 'tabs',
209
+ tabs: tailwindSelectorVariants.map((bp) => {
210
+ return {
211
+ label: bp.label,
212
+ fields: [
213
+ {
214
+ type: 'row',
215
+ fields: [
216
+ tailwindField('fontFamily', bp.value),
217
+ tailwindField('fontSize', bp.value),
218
+ tailwindField('fontWeight', bp.value),
219
+ tailwindField('fontStyle', bp.value),
220
+ // text layout
221
+ tailwindField('lineHeight', bp.value),
222
+ tailwindField('letterSpacing', bp.value),
223
+ tailwindField('textAlign', bp.value),
224
+ tailwindField('verticalAlign', bp.value),
225
+ // text transform & decoration
226
+ tailwindField('textTransform', bp.value),
227
+ tailwindField('textDecoration', bp.value),
228
+ tailwindField('textDecorationStyle', bp.value),
229
+ tailwindField('textDecorationThickness', bp.value),
230
+ tailwindField('textUnderlineOffset', bp.value),
231
+ // text behavior
232
+ tailwindField('textOverflow', bp.value),
233
+ tailwindField('whiteSpace', bp.value),
234
+ tailwindField('wordBreak', bp.value),
235
+ tailwindField('hyphens', bp.value),
236
+ // list
237
+ tailwindField('listStyleType', bp.value),
238
+ tailwindField('listStylePosition', bp.value),
239
+ ],
240
+ },
241
+ ],
242
+ };
243
+ }),
244
+ },
245
+ ],
246
+ },
247
+ {
248
+ label: 'Color',
249
+ fields: [
250
+ {
251
+ type: 'tabs',
252
+ tabs: tailwindSelectorVariants.map((bp) => {
253
+ return {
254
+ label: bp.label,
255
+ fields: [
256
+ {
257
+ type: 'row',
258
+ fields: [
259
+ tailwindField('textColor', bp.value),
260
+ //tailwindField('placeholderColor', bp.value),
261
+ tailwindField('caretColor', bp.value),
262
+ // background
263
+ tailwindField('backgroundColor', bp.value),
264
+ // border & divide
265
+ tailwindField('borderColor', bp.value),
266
+ tailwindField('divideColor', bp.value),
267
+ // accents
268
+ tailwindField('accentColor', bp.value),
269
+ ],
270
+ },
271
+ ],
272
+ };
273
+ }),
274
+ },
275
+ ],
276
+ },
277
+ {
278
+ label: 'Background',
279
+ fields: [
280
+ {
281
+ type: 'tabs',
282
+ tabs: tailwindSelectorVariants.map((bp) => {
283
+ return {
284
+ label: bp.label,
285
+ fields: [
286
+ {
287
+ type: 'row',
288
+ fields: [
289
+ // background image & gradients
290
+ tailwindField('backgroundImage', bp.value),
291
+ // #TODO gestire possibilità di caricare una immagine (capire quindi gestione url dell'immagine da referenziare)
292
+ //tailwindField('backgroundGradientFrom', bp.value),
293
+ //tailwindField('backgroundGradientVia', bp.value),
294
+ //tailwindField('backgroundGradientTo', bp.value),
295
+ // background behavior
296
+ tailwindField('backgroundSize', bp.value),
297
+ tailwindField('backgroundPosition', bp.value),
298
+ tailwindField('backgroundRepeat', bp.value),
299
+ tailwindField('backgroundAttachment', bp.value),
300
+ // clipping & origin
301
+ tailwindField('backgroundClip', bp.value),
302
+ tailwindField('backgroundOrigin', bp.value),
303
+ ],
304
+ },
305
+ ],
306
+ };
307
+ }),
308
+ },
309
+ ],
310
+ },
311
+ {
312
+ label: 'Border',
313
+ fields: [
314
+ {
315
+ type: 'tabs',
316
+ tabs: tailwindSelectorVariants.map((bp) => {
317
+ return {
318
+ label: bp.label,
319
+ fields: [
320
+ {
321
+ type: 'row',
322
+ fields: [
323
+ // border width
324
+ tailwindField('borderWidth', bp.value),
325
+ // #TODO ADD
326
+ //tailwindField('borderWidthX', bp.value),
327
+ //tailwindField('borderWidthY', bp.value),
328
+ //tailwindField('borderWidthTop', bp.value),
329
+ //tailwindField('borderWidthRight', bp.value),
330
+ //tailwindField('borderWidthBottom', bp.value),
331
+ //tailwindField('borderWidthLeft', bp.value),
332
+ // border style & radius
333
+ tailwindField('borderStyle', bp.value),
334
+ tailwindField('borderRadius', bp.value),
335
+ // #TODO ADD
336
+ //tailwindField('borderRadiusTop', bp.value),
337
+ //tailwindField('borderRadiusRight', bp.value),
338
+ //tailwindField('borderRadiusBottom', bp.value),
339
+ //tailwindField('borderRadiusLeft', bp.value),
340
+ // divide
341
+ tailwindField('divideWidth', bp.value),
342
+ tailwindField('divideStyle', bp.value),
343
+ // outline & ring
344
+ tailwindField('outline', bp.value),
345
+ tailwindField('outlineOffset', bp.value),
346
+ tailwindField('ringWidth', bp.value),
347
+ tailwindField('ringOffsetWidth', bp.value),
348
+ ],
349
+ },
350
+ ],
351
+ };
352
+ }),
353
+ },
354
+ ],
355
+ },
356
+ {
357
+ label: 'Shadow',
358
+ fields: [
359
+ {
360
+ type: 'tabs',
361
+ tabs: tailwindSelectorVariants.map((bp) => {
362
+ return {
363
+ label: bp.label,
364
+ fields: [
365
+ {
366
+ type: 'row',
367
+ fields: [
368
+ tailwindField('boxShadow', bp.value),
369
+ //tailwindField('dropShadow', bp.value),
370
+ ],
371
+ },
372
+ ],
373
+ };
374
+ }),
375
+ },
376
+ ],
377
+ },
378
+ {
379
+ label: 'Effects',
380
+ fields: [
381
+ {
382
+ type: 'tabs',
383
+ tabs: tailwindSelectorVariants.map((bp) => {
384
+ return {
385
+ label: bp.label,
386
+ fields: [
387
+ {
388
+ type: 'row',
389
+ fields: [
390
+ // opacity & blending
391
+ tailwindField('opacity', bp.value),
392
+ tailwindField('mixBlendMode', bp.value),
393
+ //tailwindField('backgroundBlendMode', bp.value),
394
+ // filters
395
+ //tailwindField('blur', bp.value),
396
+ //tailwindField('brightness', bp.value),
397
+ //tailwindField('contrast', bp.value),
398
+ //tailwindField('grayscale', bp.value),
399
+ //tailwindField('hueRotate', bp.value),
400
+ //tailwindField('invert', bp.value),
401
+ //tailwindField('saturate', bp.value),
402
+ //tailwindField('sepia', bp.value),
403
+ // backdrop filters
404
+ tailwindField('backdropBlur', bp.value),
405
+ tailwindField('backdropBrightness', bp.value),
406
+ tailwindField('backdropContrast', bp.value),
407
+ tailwindField('backdropGrayscale', bp.value),
408
+ tailwindField('backdropHueRotate', bp.value),
409
+ tailwindField('backdropInvert', bp.value),
410
+ tailwindField('backdropOpacity', bp.value),
411
+ tailwindField('backdropSaturate', bp.value),
412
+ tailwindField('backdropSepia', bp.value),
413
+ ],
414
+ },
415
+ ],
416
+ };
417
+ }),
418
+ },
419
+ ],
420
+ },
421
+ {
422
+ label: 'Transform',
423
+ fields: [
424
+ {
425
+ type: 'tabs',
426
+ tabs: tailwindSelectorVariants.map((bp) => {
427
+ return {
428
+ label: bp.label,
429
+ fields: [
430
+ {
431
+ type: 'row',
432
+ fields: [
433
+ tailwindField('scale', bp.value),
434
+ // #TODO ADD
435
+ //tailwindField('scaleX', bp.value),
436
+ //tailwindField('scaleY', bp.value),
437
+ tailwindField('rotate', bp.value),
438
+ //tailwindField('translateX', bp.value),
439
+ //tailwindField('translateY', bp.value),
440
+ //tailwindField('skewX', bp.value),
441
+ //tailwindField('skewY', bp.value),
442
+ tailwindField('transformOrigin', bp.value),
443
+ ],
444
+ },
445
+ ],
446
+ };
447
+ }),
448
+ },
449
+ ],
450
+ },
451
+ {
452
+ label: 'Animation',
453
+ fields: [
454
+ {
455
+ type: 'tabs',
456
+ tabs: tailwindSelectorVariants.map((bp) => {
457
+ return {
458
+ label: bp.label,
459
+ fields: [
460
+ {
461
+ type: 'row',
462
+ fields: [
463
+ // transition
464
+ tailwindField('transitionProperty', bp.value),
465
+ tailwindField('transitionDuration', bp.value),
466
+ tailwindField('transitionTimingFunction', bp.value),
467
+ tailwindField('transitionDelay', bp.value),
468
+ // animation
469
+ tailwindField('animation', bp.value),
470
+ ],
471
+ },
472
+ ],
473
+ };
474
+ }),
475
+ },
476
+ ],
477
+ },
478
+ {
479
+ label: 'Interaction',
480
+ fields: [
481
+ {
482
+ type: 'tabs',
483
+ tabs: tailwindSelectorVariants.map((bp) => {
484
+ return {
485
+ label: bp.label,
486
+ fields: [
487
+ {
488
+ type: 'row',
489
+ fields: [
490
+ tailwindField('cursor', bp.value),
491
+ tailwindField('pointerEvents', bp.value),
492
+ tailwindField('userSelect', bp.value),
493
+ tailwindField('resize', bp.value),
494
+ tailwindField('scrollBehavior', bp.value),
495
+ tailwindField('scrollMargin', bp.value),
496
+ tailwindField('scrollPadding', bp.value),
497
+ tailwindField('scrollSnapType', bp.value),
498
+ tailwindField('scrollSnapAlign', bp.value),
499
+ tailwindField('scrollSnapStop', bp.value),
500
+ ],
501
+ },
502
+ ],
503
+ };
504
+ }),
505
+ },
506
+ ],
507
+ },
508
+ ]
509
+ : [],
508
510
  },
509
511
  ],
510
512
  };