@woodylab/payload 0.0.128 → 0.0.130

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.
@@ -1,5 +1,3 @@
1
- import { tailwindField } from './fields/tailwindField';
2
- import { tailwindSelectorVariants } from './fields/tailwindSelectorVariants';
3
1
  // #TODO cambiare gestione recupero valore campi se pureSelectors o meno D: MALEDIZIONE!!!
4
2
  //#TODO aggiungere elenco campi e relativi valori per permettere recupero e binding dopo recupero valori form.
5
3
  export const concatCssFields = (args) => {
@@ -36,477 +34,509 @@ export const fieldCss = (enableTabs = false) => {
36
34
  },
37
35
  {
38
36
  type: 'tabs',
39
- tabs: enableTabs
40
- ? [
37
+ tabs: [],
38
+ /*enableTabs
39
+ ? [
40
+ {
41
+ label: 'Box',
42
+ fields: [
41
43
  {
42
- label: 'Box',
43
- fields: [
44
+ type: 'tabs',
45
+ tabs: tailwindSelectorVariants.map((bp) => {
46
+ return {
47
+ label: bp.label,
48
+ fields: [
44
49
  {
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
- ],
75
- },
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
- ],
93
- },
94
- ],
95
- },
96
- ],
97
- };
98
- }),
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%',
64
+ },
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%',
80
+ },
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
+ ],
99
94
  },
100
- ],
95
+ ],
96
+ }
97
+ }),
101
98
  },
99
+ ],
100
+ },
101
+ {
102
+ label: 'Display',
103
+ fields: [
102
104
  {
103
- label: 'Display',
104
- fields: [
105
+ type: 'tabs',
106
+ tabs: tailwindSelectorVariants.map((bp) => {
107
+ return {
108
+ label: bp.label,
109
+ fields: [
105
110
  {
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
- }),
111
+ type: 'row',
112
+ fields: [
113
+ // BASE DISPLAY
114
+ tailwindField('display', bp.value),
115
+ tailwindField('visibility', bp.value),
116
+ tailwindField('isolation', bp.value),
117
+
118
+ // FLOW / OVERFLOW
119
+ tailwindField('overflow', bp.value),
120
+ tailwindField('overflowX', bp.value),
121
+ tailwindField('overflowY', bp.value),
122
+
123
+ // FLOAT / CLEAR
124
+ tailwindField('float', bp.value),
125
+ tailwindField('clear', bp.value),
126
+
127
+ // FLEX
128
+ tailwindField('flexWrap', bp.value),
129
+ tailwindField('justifyContent', bp.value),
130
+ tailwindField('alignItems', bp.value),
131
+ tailwindField('alignContent', bp.value),
132
+ tailwindField('alignSelf', bp.value),
133
+ tailwindField('flexGrow', bp.value),
134
+ tailwindField('flexShrink', bp.value),
135
+ tailwindField('flexBasis', bp.value),
136
+ tailwindField('order', bp.value),
137
+ tailwindField('gap', bp.value),
138
+ //tailwindField('rowGap', bp.value),
139
+ tailwindField('columnGap', bp.value),
140
+
141
+ // GRID
142
+ tailwindField('gridTemplateColumns', bp.value),
143
+ tailwindField('gridTemplateRows', bp.value),
144
+ tailwindField('gridColumn', bp.value),
145
+ tailwindField('gridRow', bp.value),
146
+ tailwindField('gridAutoFlow', bp.value),
147
+ tailwindField('gridAutoColumns', bp.value),
148
+ tailwindField('gridAutoRows', bp.value),
149
+ tailwindField('justifyItems', bp.value),
150
+ tailwindField('justifySelf', bp.value),
151
+ tailwindField('placeItems', bp.value),
152
+ tailwindField('placeContent', bp.value),
153
+
154
+ // TABLE
155
+ tailwindField('tableLayout', bp.value),
156
+ tailwindField('captionSide', bp.value),
157
+
158
+ // OBJECT / MEDIA
159
+ tailwindField('objectFit', bp.value),
160
+ tailwindField('objectPosition', bp.value),
161
+
162
+ // COLUMNS
163
+ tailwindField('columns', bp.value),
164
+ tailwindField('breakBefore', bp.value),
165
+ tailwindField('breakAfter', bp.value),
166
+ tailwindField('breakInside', bp.value),
167
+ ],
166
168
  },
167
- ],
169
+ ],
170
+ }
171
+ }),
168
172
  },
173
+ ],
174
+ },
175
+ {
176
+ label: 'Position',
177
+ fields: [
169
178
  {
170
- label: 'Position',
171
- fields: [
179
+ type: 'tabs',
180
+ tabs: tailwindSelectorVariants.map((bp) => {
181
+ return {
182
+ label: bp.label,
183
+ fields: [
172
184
  {
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
- }),
185
+ type: 'row',
186
+ fields: [
187
+ tailwindField('position', bp.value),
188
+ // inset / offsets
189
+ // #TODO Aggiungere ipotetico campo tailwindNumeric per selezione valore numerico tipo gli offset delle position
190
+ //tailwindField('top', bp.value),
191
+ //tailwindField('right', bp.value),
192
+ //tailwindField('bottom', bp.value),
193
+ //tailwindField('left', bp.value),
194
+ //tailwindField('inset', bp.value),
195
+ //tailwindField('insetX', bp.value),
196
+ //tailwindField('insetY', bp.value),
197
+
198
+ // z-index / stacking
199
+ tailwindField('zIndex', bp.value),
200
+
201
+ // translate (layout-related movement)
202
+ //tailwindField('translateX', bp.value),
203
+ //tailwindField('translateY', bp.value),
204
+ ],
201
205
  },
202
- ],
206
+ ],
207
+ }
208
+ }),
203
209
  },
210
+ ],
211
+ },
212
+ {
213
+ label: 'Typography',
214
+ fields: [
204
215
  {
205
- label: 'Typography',
206
- fields: [
216
+ type: 'tabs',
217
+ tabs: tailwindSelectorVariants.map((bp) => {
218
+ return {
219
+ label: bp.label,
220
+ fields: [
207
221
  {
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
- }),
222
+ type: 'row',
223
+ fields: [
224
+ tailwindField('fontFamily', bp.value),
225
+ tailwindField('fontSize', bp.value),
226
+ tailwindField('fontWeight', bp.value),
227
+ tailwindField('fontStyle', bp.value),
228
+
229
+ // text layout
230
+ tailwindField('lineHeight', bp.value),
231
+ tailwindField('letterSpacing', bp.value),
232
+ tailwindField('textAlign', bp.value),
233
+ tailwindField('verticalAlign', bp.value),
234
+
235
+ // text transform & decoration
236
+ tailwindField('textTransform', bp.value),
237
+ tailwindField('textDecoration', bp.value),
238
+ tailwindField('textDecorationStyle', bp.value),
239
+ tailwindField('textDecorationThickness', bp.value),
240
+ tailwindField('textUnderlineOffset', bp.value),
241
+
242
+ // text behavior
243
+ tailwindField('textOverflow', bp.value),
244
+ tailwindField('whiteSpace', bp.value),
245
+ tailwindField('wordBreak', bp.value),
246
+ tailwindField('hyphens', bp.value),
247
+
248
+ // list
249
+ tailwindField('listStyleType', bp.value),
250
+ tailwindField('listStylePosition', bp.value),
251
+ ],
244
252
  },
245
- ],
253
+ ],
254
+ }
255
+ }),
246
256
  },
257
+ ],
258
+ },
259
+ {
260
+ label: 'Color',
261
+ fields: [
247
262
  {
248
- label: 'Color',
249
- fields: [
263
+ type: 'tabs',
264
+ tabs: tailwindSelectorVariants.map((bp) => {
265
+ return {
266
+ label: bp.label,
267
+ fields: [
250
268
  {
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
- }),
269
+ type: 'row',
270
+ fields: [
271
+ tailwindField('textColor', bp.value),
272
+ //tailwindField('placeholderColor', bp.value),
273
+ tailwindField('caretColor', bp.value),
274
+
275
+ // background
276
+ tailwindField('backgroundColor', bp.value),
277
+
278
+ // border & divide
279
+ tailwindField('borderColor', bp.value),
280
+ tailwindField('divideColor', bp.value),
281
+
282
+ // accents
283
+ tailwindField('accentColor', bp.value),
284
+ ],
274
285
  },
275
- ],
286
+ ],
287
+ }
288
+ }),
276
289
  },
290
+ ],
291
+ },
292
+ {
293
+ label: 'Background',
294
+ fields: [
277
295
  {
278
- label: 'Background',
279
- fields: [
296
+ type: 'tabs',
297
+ tabs: tailwindSelectorVariants.map((bp) => {
298
+ return {
299
+ label: bp.label,
300
+ fields: [
280
301
  {
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
- }),
302
+ type: 'row',
303
+ fields: [
304
+ // background image & gradients
305
+ tailwindField('backgroundImage', bp.value),
306
+ // #TODO gestire possibilità di caricare una immagine (capire quindi gestione url dell'immagine da referenziare)
307
+ //tailwindField('backgroundGradientFrom', bp.value),
308
+ //tailwindField('backgroundGradientVia', bp.value),
309
+ //tailwindField('backgroundGradientTo', bp.value),
310
+
311
+ // background behavior
312
+ tailwindField('backgroundSize', bp.value),
313
+ tailwindField('backgroundPosition', bp.value),
314
+ tailwindField('backgroundRepeat', bp.value),
315
+ tailwindField('backgroundAttachment', bp.value),
316
+
317
+ // clipping & origin
318
+ tailwindField('backgroundClip', bp.value),
319
+ tailwindField('backgroundOrigin', bp.value),
320
+ ],
308
321
  },
309
- ],
322
+ ],
323
+ }
324
+ }),
310
325
  },
326
+ ],
327
+ },
328
+ {
329
+ label: 'Border',
330
+ fields: [
311
331
  {
312
- label: 'Border',
313
- fields: [
332
+ type: 'tabs',
333
+ tabs: tailwindSelectorVariants.map((bp) => {
334
+ return {
335
+ label: bp.label,
336
+ fields: [
314
337
  {
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
- }),
338
+ type: 'row',
339
+ fields: [
340
+ // border width
341
+ tailwindField('borderWidth', bp.value),
342
+ // #TODO ADD
343
+ //tailwindField('borderWidthX', bp.value),
344
+ //tailwindField('borderWidthY', bp.value),
345
+ //tailwindField('borderWidthTop', bp.value),
346
+ //tailwindField('borderWidthRight', bp.value),
347
+ //tailwindField('borderWidthBottom', bp.value),
348
+ //tailwindField('borderWidthLeft', bp.value),
349
+
350
+ // border style & radius
351
+ tailwindField('borderStyle', bp.value),
352
+ tailwindField('borderRadius', bp.value),
353
+ // #TODO ADD
354
+ //tailwindField('borderRadiusTop', bp.value),
355
+ //tailwindField('borderRadiusRight', bp.value),
356
+ //tailwindField('borderRadiusBottom', bp.value),
357
+ //tailwindField('borderRadiusLeft', bp.value),
358
+
359
+ // divide
360
+ tailwindField('divideWidth', bp.value),
361
+ tailwindField('divideStyle', bp.value),
362
+
363
+ // outline & ring
364
+ tailwindField('outline', bp.value),
365
+ tailwindField('outlineOffset', bp.value),
366
+ tailwindField('ringWidth', bp.value),
367
+ tailwindField('ringOffsetWidth', bp.value),
368
+ ],
353
369
  },
354
- ],
370
+ ],
371
+ }
372
+ }),
355
373
  },
374
+ ],
375
+ },
376
+ {
377
+ label: 'Shadow',
378
+ fields: [
356
379
  {
357
- label: 'Shadow',
358
- fields: [
380
+ type: 'tabs',
381
+ tabs: tailwindSelectorVariants.map((bp) => {
382
+ return {
383
+ label: bp.label,
384
+ fields: [
359
385
  {
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
- }),
386
+ type: 'row',
387
+ fields: [
388
+ tailwindField('boxShadow', bp.value),
389
+ //tailwindField('dropShadow', bp.value),
390
+ ],
375
391
  },
376
- ],
392
+ ],
393
+ }
394
+ }),
377
395
  },
396
+ ],
397
+ },
398
+ {
399
+ label: 'Effects',
400
+ fields: [
378
401
  {
379
- label: 'Effects',
380
- fields: [
402
+ type: 'tabs',
403
+ tabs: tailwindSelectorVariants.map((bp) => {
404
+ return {
405
+ label: bp.label,
406
+ fields: [
381
407
  {
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
- }),
408
+ type: 'row',
409
+ fields: [
410
+ // opacity & blending
411
+ tailwindField('opacity', bp.value),
412
+ tailwindField('mixBlendMode', bp.value),
413
+ //tailwindField('backgroundBlendMode', bp.value),
414
+
415
+ // filters
416
+ //tailwindField('blur', bp.value),
417
+ //tailwindField('brightness', bp.value),
418
+ //tailwindField('contrast', bp.value),
419
+ //tailwindField('grayscale', bp.value),
420
+ //tailwindField('hueRotate', bp.value),
421
+ //tailwindField('invert', bp.value),
422
+ //tailwindField('saturate', bp.value),
423
+ //tailwindField('sepia', bp.value),
424
+
425
+ // backdrop filters
426
+ tailwindField('backdropBlur', bp.value),
427
+ tailwindField('backdropBrightness', bp.value),
428
+ tailwindField('backdropContrast', bp.value),
429
+ tailwindField('backdropGrayscale', bp.value),
430
+ tailwindField('backdropHueRotate', bp.value),
431
+ tailwindField('backdropInvert', bp.value),
432
+ tailwindField('backdropOpacity', bp.value),
433
+ tailwindField('backdropSaturate', bp.value),
434
+ tailwindField('backdropSepia', bp.value),
435
+ ],
418
436
  },
419
- ],
437
+ ],
438
+ }
439
+ }),
420
440
  },
441
+ ],
442
+ },
443
+ {
444
+ label: 'Transform',
445
+ fields: [
421
446
  {
422
- label: 'Transform',
423
- fields: [
447
+ type: 'tabs',
448
+ tabs: tailwindSelectorVariants.map((bp) => {
449
+ return {
450
+ label: bp.label,
451
+ fields: [
424
452
  {
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
- }),
453
+ type: 'row',
454
+ fields: [
455
+ tailwindField('scale', bp.value),
456
+ // #TODO ADD
457
+ //tailwindField('scaleX', bp.value),
458
+ //tailwindField('scaleY', bp.value),
459
+
460
+ tailwindField('rotate', bp.value),
461
+
462
+ //tailwindField('translateX', bp.value),
463
+ //tailwindField('translateY', bp.value),
464
+
465
+ //tailwindField('skewX', bp.value),
466
+ //tailwindField('skewY', bp.value),
467
+
468
+ tailwindField('transformOrigin', bp.value),
469
+ ],
448
470
  },
449
- ],
471
+ ],
472
+ }
473
+ }),
450
474
  },
475
+ ],
476
+ },
477
+ {
478
+ label: 'Animation',
479
+ fields: [
451
480
  {
452
- label: 'Animation',
453
- fields: [
481
+ type: 'tabs',
482
+ tabs: tailwindSelectorVariants.map((bp) => {
483
+ return {
484
+ label: bp.label,
485
+ fields: [
454
486
  {
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
- }),
487
+ type: 'row',
488
+ fields: [
489
+ // transition
490
+ tailwindField('transitionProperty', bp.value),
491
+ tailwindField('transitionDuration', bp.value),
492
+ tailwindField('transitionTimingFunction', bp.value),
493
+ tailwindField('transitionDelay', bp.value),
494
+
495
+ // animation
496
+ tailwindField('animation', bp.value),
497
+ ],
475
498
  },
476
- ],
499
+ ],
500
+ }
501
+ }),
477
502
  },
503
+ ],
504
+ },
505
+ {
506
+ label: 'Interaction',
507
+ fields: [
478
508
  {
479
- label: 'Interaction',
480
- fields: [
509
+ type: 'tabs',
510
+ tabs: tailwindSelectorVariants.map((bp) => {
511
+ return {
512
+ label: bp.label,
513
+ fields: [
481
514
  {
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
- }),
515
+ type: 'row',
516
+ fields: [
517
+ tailwindField('cursor', bp.value),
518
+ tailwindField('pointerEvents', bp.value),
519
+ tailwindField('userSelect', bp.value),
520
+
521
+ tailwindField('resize', bp.value),
522
+
523
+ tailwindField('scrollBehavior', bp.value),
524
+ tailwindField('scrollMargin', bp.value),
525
+ tailwindField('scrollPadding', bp.value),
526
+ tailwindField('scrollSnapType', bp.value),
527
+ tailwindField('scrollSnapAlign', bp.value),
528
+ tailwindField('scrollSnapStop', bp.value),
529
+ ],
505
530
  },
506
- ],
531
+ ],
532
+ }
533
+ }),
507
534
  },
508
- ]
509
- : [],
535
+ ],
536
+ },
537
+ ]
538
+ : [],
539
+ */
510
540
  },
511
541
  ],
512
542
  };