@woodylab/payload 0.0.9 → 0.0.10

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,1829 +1,39 @@
1
1
  'use strict';
2
2
 
3
- const fieldText = (override) => ({
4
- name: 'text',
5
- label: 'Text',
6
- type: 'text',
7
- required: true,
8
- ...override,
9
- });
10
-
11
- const fieldTextArea = (override) => ({
12
- name: 'textarea',
13
- label: 'Textarea',
14
- type: 'textarea',
15
- required: false,
16
- ...override,
17
- });
18
-
19
- const fieldUpload = (relationTo, override) => ({
20
- name: 'upload',
21
- label: 'upload',
22
- type: 'upload',
23
- required: false,
24
- relationTo,
25
- ...override,
26
- });
27
-
28
- const fieldArray = (override) => ({
29
- name: 'list',
30
- label: 'List',
31
- type: 'array',
32
- fields: [],
33
- required: false,
34
- ...override,
35
- });
36
-
37
- const fieldBlocks = (override) => ({
38
- name: 'blocks',
39
- label: 'Blocks',
40
- type: 'blocks',
41
- blocks: [],
42
- required: false,
43
- ...override,
44
- });
45
-
46
- const fieldCheckbox = (override) => ({
47
- name: 'checkbox',
48
- label: 'Checkbox',
49
- type: 'checkbox',
50
- required: false,
51
- admin: {
52
- description: 'Enable or disable the checkbox',
53
- },
54
- ...override,
55
- });
56
-
57
- const fieldCode = (override) => ({
58
- name: 'code',
59
- label: 'Code',
60
- type: 'code',
61
- required: false,
62
- ...override,
63
- });
64
-
65
- const fieldDate = (override) => ({
66
- name: 'date',
67
- label: 'Date',
68
- type: 'date',
69
- required: false,
70
- admin: {
71
- description: 'Select a date',
72
- date: {
73
- pickerAppearance: 'dayOnly',
74
- displayFormat: 'yyyy-MM-dd',
75
- },
76
- },
77
- ...override,
78
- });
79
-
80
- const fieldEmail = (override) => ({
81
- name: 'email',
82
- label: 'Email',
83
- type: 'email',
84
- required: false,
85
- ...override,
86
- });
87
-
88
- const fieldJoin = (collection, on, override) => ({
89
- name: 'join',
90
- label: 'join',
91
- type: 'join',
92
- collection,
93
- on,
94
- ...override,
95
- });
96
-
97
- const fieldNumber = (override) => ({
98
- name: 'number',
99
- label: 'Number',
100
- type: 'number',
101
- required: false,
102
- ...override,
103
- });
104
-
105
- const fieldPoint = (override) => ({
106
- name: 'point',
107
- label: 'Point',
108
- type: 'point',
109
- required: false,
110
- ...override,
111
- });
112
-
113
- const fieldRadioGroup = (override) => ({
114
- name: 'radio',
115
- label: 'Radio',
116
- type: 'boolean',
117
- required: false,
118
- options: [
119
- {
120
- label: 'true',
121
- value: true
122
- },
123
- {
124
- label: 'true',
125
- value: false
126
- }
127
- ],
128
- ...override,
129
- });
130
-
131
- const fieldRelationship = (relationTo, override) => ({
132
- name: 'relationship',
133
- label: 'Relationship',
134
- type: 'relationship',
135
- relationTo,
136
- required: false,
137
- ...override,
138
- });
139
-
140
- const fieldRichText = (override) => ({
141
- name: 'richText',
142
- label: 'Rich Text',
143
- type: 'richText',
144
- required: false,
145
- admin: {
146
- placeholder: 'Insert text here',
147
- rows: 5,
148
- },
149
- ...override,
150
- });
151
-
152
- const fieldSelect = (override) => ({
153
- name: 'select',
154
- label: 'select',
155
- type: 'select',
156
- required: false,
157
- hasMany: false,
158
- ...override
159
- });
160
-
161
- const fieldContainerProps = (customFields = []) => {
162
- return {
163
- name: 'ctrP',
164
- label: 'Proprietà container',
165
- type: 'group',
166
- fields: [
167
- ...customFields,
168
- fieldRichText({ name: 'body', label: 'Contenuto', required: false }),
169
- fieldContainerWidths(),
170
- {
171
- type: 'tabs',
172
- tabs: [
173
- {
174
- label: 'Stile',
175
- fields: [
176
- fieldUpload('media', { name: 'bgi', label: 'Immagine di sfondo' }),
177
- //WFieldColor({name:'bgc', label:'Colore di sfondo', required:false}),
178
- {
179
- name: 'borderRadius',
180
- type: 'select',
181
- label: 'Angoli arrotondati',
182
- defaultValue: 'rounded-none',
183
- options: [
184
- { label: 'Nessuno', value: 'rounded-none' },
185
- { label: 'Piccolo', value: 'rounded-sm' },
186
- { label: 'Medio', value: 'rounded-md' },
187
- { label: 'Grande', value: 'rounded-lg' },
188
- { label: 'Extra Grande', value: 'rounded-xl' },
189
- { label: 'Massimo', value: 'rounded-full' },
190
- ],
191
- admin: {
192
- width: '50%',
193
- description: 'Imposta lo stile degli angoli arrotondati del contenitore.',
194
- },
195
- },
196
- {
197
- name: 'boxShadow',
198
- type: 'select',
199
- label: 'Ombra contenitore',
200
- defaultValue: 'shadow-none', // Default: nessuna ombra
201
- options: [
202
- { label: 'Nessuna', value: 'shadow-none' },
203
- { label: 'Piccola', value: 'shadow-sm' },
204
- { label: 'Normale', value: 'shadow' },
205
- { label: 'Media', value: 'shadow-md' },
206
- { label: 'Grande', value: 'shadow-lg' },
207
- { label: 'Extra Grande', value: 'shadow-xl' },
208
- { label: 'Massima', value: 'shadow-2xl' },
209
- ],
210
- admin: {
211
- width: '50%',
212
- description: 'Imposta lo stile dell\'ombra per il contenitore.',
213
- },
214
- }
215
- ]
216
- },
217
- {
218
- label: 'Dimensioni',
219
- fields: [
220
- fieldHeights(),
221
- {
222
- type: 'tabs',
223
- tabs: [
224
- {
225
- label: 'Margini',
226
- fields: [
227
- fieldMargins()
228
- ]
229
- },
230
- {
231
- label: 'Paddings',
232
- fields: [
233
- fieldPaddings()
234
- ]
235
- }
236
- ]
237
- }
238
- ]
239
- }
240
- ]
241
- },
242
- ]
243
- };
244
- };
245
-
246
- const fieldThemeColor = (override) => ({
247
- name: override?.name || 'color',
248
- label: override?.label || 'Colore',
249
- type: 'select',
250
- required: override?.required ?? false,
251
- options: [
252
- { label: 'Default', value: '' },
253
- { label: 'Foreground', value: 'foreground' },
254
- { label: 'Primary', value: 'primary' },
255
- { label: 'Secondary', value: 'secondary' },
256
- { label: 'Accent', value: 'accent' },
257
- { label: 'Dark', value: 'dark' },
258
- { label: 'Light', value: 'light' },
259
- { label: 'White', value: 'white' },
260
- { label: 'Black', value: 'black' },
261
- ],
262
- admin: {
263
- ...override?.admin,
264
- },
265
- });
266
-
267
- const iconsList = [
268
- { label: 'Academic Cap', value: 'AcademicCapIcon' },
269
- { label: 'Adjustments Horizontal', value: 'AdjustmentsHorizontalIcon' },
270
- { label: 'Adjustments Vertical', value: 'AdjustmentsVerticalIcon' },
271
- { label: 'Archive Box Arrow Down', value: 'ArchiveBoxArrowDownIcon' },
272
- { label: 'Archive Box X Mark', value: 'ArchiveBoxXMarkIcon' },
273
- { label: 'Archive Box', value: 'ArchiveBoxIcon' },
274
- { label: 'Arrow Down Circle', value: 'ArrowDownCircleIcon' },
275
- { label: 'Arrow Down', value: 'ArrowDownIcon' },
276
- { label: 'Arrow Left Circle', value: 'ArrowLeftCircleIcon' },
277
- { label: 'Arrow Left', value: 'ArrowLeftIcon' },
278
- { label: 'Arrow Right Circle', value: 'ArrowRightCircleIcon' },
279
- { label: 'Arrow Right', value: 'ArrowRightIcon' },
280
- { label: 'Arrow Up Circle', value: 'ArrowUpCircleIcon' },
281
- { label: 'Arrow Up', value: 'ArrowUpIcon' },
282
- { label: 'Bell Alert', value: 'BellAlertIcon' },
283
- { label: 'Bell', value: 'BellIcon' },
284
- { label: 'Bookmark Square', value: 'BookmarkSquareIcon' },
285
- { label: 'Bookmark', value: 'BookmarkIcon' },
286
- { label: 'Building Office', value: 'BuildingOfficeIcon' },
287
- { label: 'Calendar', value: 'CalendarIcon' },
288
- { label: 'Camera', value: 'CameraIcon' },
289
- { label: 'Chart Bar', value: 'ChartBarIcon' },
290
- { label: 'Chat Bubble Left Right', value: 'ChatBubbleLeftRightIcon' },
291
- { label: 'Chat Bubble Left', value: 'ChatBubbleLeftIcon' },
292
- { label: 'Check Circle', value: 'CheckCircleIcon' },
293
- { label: 'Check', value: 'CheckIcon' },
294
- { label: 'Chevron Down', value: 'ChevronDownIcon' },
295
- { label: 'Chevron Left', value: 'ChevronLeftIcon' },
296
- { label: 'Chevron Right', value: 'ChevronRightIcon' },
297
- { label: 'Chevron Up', value: 'ChevronUpIcon' },
298
- { label: 'Clock', value: 'ClockIcon' },
299
- { label: 'Cloud Arrow Up', value: 'CloudArrowUpIcon' },
300
- { label: 'Cloud', value: 'CloudIcon' },
301
- { label: 'Code Bracket', value: 'CodeBracketIcon' },
302
- { label: 'Cog', value: 'CogIcon' },
303
- { label: 'Command Line', value: 'CommandLineIcon' },
304
- { label: 'Computer Desktop', value: 'ComputerDesktopIcon' },
305
- { label: 'Credit Card', value: 'CreditCardIcon' },
306
- { label: 'Document', value: 'DocumentIcon' },
307
- { label: 'Envelope', value: 'EnvelopeIcon' },
308
- { label: 'Exclamation Circle', value: 'ExclamationCircleIcon' },
309
- { label: 'Exclamation Triangle', value: 'ExclamationTriangleIcon' },
310
- { label: 'Eye', value: 'EyeIcon' },
311
- { label: 'Face Smile', value: 'FaceSmileIcon' },
312
- { label: 'Film', value: 'FilmIcon' },
313
- { label: 'Finger Print', value: 'FingerPrintIcon' },
314
- { label: 'Fire', value: 'FireIcon' },
315
- { label: 'Flag', value: 'FlagIcon' },
316
- { label: 'Folder Open', value: 'FolderOpenIcon' },
317
- { label: 'Folder', value: 'FolderIcon' },
318
- { label: 'Gift', value: 'GiftIcon' },
319
- { label: 'Globe Alt', value: 'GlobeAltIcon' },
320
- { label: 'Globe Europe Africa', value: 'GlobeEuropeAfricaIcon' },
321
- { label: 'Hand Raised', value: 'HandRaisedIcon' },
322
- { label: 'Heart', value: 'HeartIcon' },
323
- { label: 'Home', value: 'HomeIcon' },
324
- { label: 'Identification', value: 'IdentificationIcon' },
325
- { label: 'Information Circle', value: 'InformationCircleIcon' },
326
- { label: 'Key', value: 'KeyIcon' },
327
- { label: 'Link', value: 'LinkIcon' },
328
- { label: 'List Bullet', value: 'ListBulletIcon' },
329
- { label: 'Lock Closed', value: 'LockClosedIcon' },
330
- { label: 'Lock Open', value: 'LockOpenIcon' },
331
- { label: 'Magnifying Glass Circle', value: 'MagnifyingGlassCircleIcon' },
332
- { label: 'Magnifying Glass', value: 'MagnifyingGlassIcon' },
333
- { label: 'Map Pin', value: 'MapPinIcon' },
334
- { label: 'Map', value: 'MapIcon' },
335
- { label: 'Moon', value: 'MoonIcon' },
336
- { label: 'Paper Airplane', value: 'PaperAirplaneIcon' },
337
- { label: 'Paper Clip', value: 'PaperClipIcon' },
338
- { label: 'Pause Circle', value: 'PauseCircleIcon' },
339
- { label: 'Pencil Square', value: 'PencilSquareIcon' },
340
- { label: 'Pencil', value: 'PencilIcon' },
341
- { label: 'Phone Arrow Up Right', value: 'PhoneArrowUpRightIcon' },
342
- { label: 'Phone X Mark', value: 'PhoneXMarkIcon' },
343
- { label: 'Phone', value: 'PhoneIcon' },
344
- { label: 'Photo', value: 'PhotoIcon' },
345
- { label: 'Play Circle', value: 'PlayCircleIcon' },
346
- { label: 'Play', value: 'PlayIcon' },
347
- { label: 'Plus Circle', value: 'PlusCircleIcon' },
348
- { label: 'Plus', value: 'PlusIcon' },
349
- { label: 'Power', value: 'PowerIcon' },
350
- { label: 'Question Mark Circle', value: 'QuestionMarkCircleIcon' },
351
- { label: 'Rocket Launch', value: 'RocketLaunchIcon' },
352
- { label: 'Rss', value: 'RssIcon' },
353
- { label: 'Scale', value: 'ScaleIcon' },
354
- { label: 'Server', value: 'ServerIcon' },
355
- { label: 'Share', value: 'ShareIcon' },
356
- { label: 'Shield Check', value: 'ShieldCheckIcon' },
357
- { label: 'Shield Exclamation', value: 'ShieldExclamationIcon' },
358
- { label: 'Shopping Bag', value: 'ShoppingBagIcon' },
359
- { label: 'Shopping Cart', value: 'ShoppingCartIcon' },
360
- { label: 'Star', value: 'StarIcon' },
361
- { label: 'Stop Circle', value: 'StopCircleIcon' },
362
- { label: 'Sun', value: 'SunIcon' },
363
- { label: 'Tag', value: 'TagIcon' },
364
- { label: 'Trash', value: 'TrashIcon' },
365
- { label: 'Trophy', value: 'TrophyIcon' },
366
- { label: 'User Circle', value: 'UserCircleIcon' },
367
- { label: 'User Group', value: 'UserGroupIcon' },
368
- { label: 'User', value: 'UserIcon' },
369
- { label: 'Users', value: 'UsersIcon' },
370
- { label: 'Video Camera', value: 'VideoCameraIcon' },
371
- { label: 'Wifi', value: 'WifiIcon' },
372
- { label: 'Window', value: 'WindowIcon' },
373
- { label: 'Wrench Screwdriver', value: 'WrenchScrewdriverIcon' },
374
- { label: 'Wrench', value: 'WrenchIcon' },
375
- { label: 'X Circle', value: 'XCircleIcon' },
376
- { label: 'X Mark', value: 'XMarkIcon' },
377
- ];
378
-
379
- const fieldAction = () => ({
380
- type: 'group',
381
- label: 'Azione',
382
- name: 'action',
383
- fields: [
384
- fieldCheckbox({ name: 'show', label: 'Mostra azione', defaultValue: false, admin: {
385
- width: '50%', // TODO CAMBIARE LAYOUT ADMIN
386
- } }),
387
- fieldText({
388
- name: 'label',
389
- type: 'text',
390
- label: 'Testo da visualizzare',
391
- defaultValue: 'Action',
392
- admin: {
393
- width: '50%',
394
- }
395
- }),
396
- fieldSelect({
397
- name: 'actionType',
398
- label: 'Tipo di azione',
399
- defaultValue: 'internalLink',
400
- admin: {
401
- width: '33%',
402
- },
403
- options: [
404
- {
405
- label: 'Interno',
406
- value: 'internalLink',
407
- },
408
- {
409
- label: 'Esterno',
410
- value: 'externalLink',
411
- },
412
- /*
413
- {
414
- label: 'Azione',
415
- value: 'customAction',
416
- },
417
- */
418
- ],
419
- }),
420
- {
421
- name: 'internalLink',
422
- type: 'relationship',
423
- label: 'Seleziona una pagina interna',
424
- admin: {
425
- condition: (data, siblingData) => {
426
- return siblingData?.actionType === 'internalLink';
427
- },
428
- },
429
- relationTo: ['pages', 'posts', 'destinations'],
430
- },
431
- {
432
- name: 'externalLink',
433
- type: 'text',
434
- label: 'URL esterno',
435
- admin: {
436
- condition: (data, siblingData) => {
437
- return siblingData?.actionType === 'externalLink';
438
- },
439
- },
440
- },
441
- {
442
- type: 'collapsible',
443
- label: 'Stile',
444
- fields: [
445
- {
446
- type: 'row',
447
- fields: [
448
- {
449
- name: 'buttonStyle',
450
- type: 'select',
451
- label: 'Stile bottone',
452
- defaultValue: 'solid',
453
- admin: {
454
- width: '33%',
455
- },
456
- options: [
457
- { label: 'Solido', value: 'solid' },
458
- { label: 'Outline', value: 'outline' },
459
- { label: 'Ghost', value: 'ghost' },
460
- { label: 'Link', value: 'link' },
461
- ],
462
- },
463
- {
464
- name: 'buttonColor',
465
- type: 'select',
466
- label: 'Colore bottone',
467
- defaultValue: 'primary',
468
- admin: {
469
- width: '33%',
470
- },
471
- options: [
472
- { label: 'Primary', value: 'primary' },
473
- { label: 'Secondary', value: 'secondary' },
474
- { label: 'Accent', value: 'accent' },
475
- { label: 'Dark', value: 'dark' },
476
- { label: 'Light', value: 'light' },
477
- ],
478
- },
479
- {
480
- name: 'buttonSize',
481
- type: 'select',
482
- label: 'Dimensione bottone',
483
- defaultValue: 'default',
484
- admin: {
485
- width: '33%',
486
- },
487
- options: [
488
- { label: 'Small', value: 'small' },
489
- { label: 'Default', value: 'default' },
490
- { label: 'Medium', value: 'medium' },
491
- { label: 'Large', value: 'large' },
492
- { label: 'Extra Large', value: 'xl' },
493
- ],
494
- },
495
- {
496
- name: 'buttonRounded',
497
- type: 'select',
498
- label: 'Arrotondamento',
499
- defaultValue: 'default',
500
- admin: {
501
- width: '33%',
502
- },
503
- options: [
504
- { label: 'Nessuno', value: 'none' },
505
- { label: 'Piccolo', value: 'sm' },
506
- { label: 'Standard', value: 'default' },
507
- { label: 'Grande', value: 'lg' },
508
- { label: 'Completo', value: 'full' },
509
- ],
510
- },
511
- {
512
- name: 'alignment',
513
- type: 'select',
514
- label: 'Allineamento del Bottone',
515
- defaultValue: 'left',
516
- options: [
517
- {
518
- label: 'Sinistra',
519
- value: 'left',
520
- },
521
- {
522
- label: 'Centro',
523
- value: 'center',
524
- },
525
- {
526
- label: 'Destra',
527
- value: 'right',
528
- }
529
- ],
530
- admin: {
531
- width: '33%',
532
- condition: (data) => true, // Puoi modificare questa condizione se il campo deve essere mostrato solo in determinate circostanze
533
- }
534
- },
535
- fieldThemeColor({
536
- name: 'textColor',
537
- label: 'Colore del testo',
538
- admin: {
539
- width: '33%',
540
- }
541
- }),
542
- {
543
- name: 'additionalEffects',
544
- type: 'select',
545
- label: 'Effetti aggiuntivi',
546
- hasMany: true,
547
- admin: {
548
- width: '33%',
549
- },
550
- options: [
551
- { label: 'Ombra', value: 'shadow' },
552
- { label: 'Transizione', value: 'transition' },
553
- { label: 'Animazione scala', value: 'scale' },
554
- ],
555
- }
556
- ],
557
- },
558
- {
559
- type: 'row',
560
- fields: [
561
- {
562
- name: 'useIcon',
563
- type: 'checkbox',
564
- label: 'Usa icona',
565
- defaultValue: false,
566
- admin: {
567
- width: '33%',
568
- },
569
- },
570
- {
571
- name: 'iconPosition',
572
- type: 'select',
573
- label: 'Posizione icona',
574
- defaultValue: 'left',
575
- admin: {
576
- width: '33%',
577
- condition: (_, siblingData) => siblingData?.useIcon === true,
578
- },
579
- options: [
580
- { label: 'Sinistra', value: 'left' },
581
- { label: 'Destra', value: 'right' },
582
- { label: 'Solo icona', value: 'only' },
583
- ],
584
- },
585
- {
586
- name: 'iconName',
587
- type: 'select',
588
- label: 'Icona',
589
- options: [
590
- ...iconsList
591
- ],
592
- admin: {
593
- width: '33%',
594
- condition: (_, siblingData) => siblingData?.useIcon === true,
595
- },
596
- // Qui potresti usare un select con le icone disponibili se hai una libreria predefinita
597
- },
598
- ]
599
- }
600
- ]
601
- }
602
- ]
603
- });
604
-
605
- const fieldConfigProps = (customFields = []) => {
606
- return {
607
- name: 'config',
608
- label: 'Configurazione',
609
- type: 'group',
610
- fields: [
611
- ...customFields,
612
- ],
613
- };
614
- };
615
-
616
- const fieldContentProps = (customFields = []) => {
617
- return {
618
- name: 'cntP',
619
- label: 'Contenuto',
620
- type: 'group',
621
- fields: [
622
- ...customFields,
623
- ],
624
- };
625
- };
626
-
627
- /**
628
- * Costante che definisce le varianti di larghezza del container come classi Tailwind
629
- */
630
- const TailwindContainerWidths = [
631
- 'container',
632
- 'container-sm',
633
- 'container-md',
634
- 'container-lg',
635
- 'container-xl',
636
- 'container-2xl',
637
- ];
638
- /**
639
- * Costante che contiene tutte le varianti di altezza relativa alla viewport
640
- */
641
- const TailwindViewportHeights = [
642
- 'screen',
643
- '1/5-vh',
644
- '1/4-vh',
645
- '1/3-vh',
646
- '2/5-vh',
647
- '1/2-vh',
648
- '3/5-vh',
649
- '2/3-vh',
650
- '3/4-vh',
651
- '4/5-vh',
652
- ];
653
- /**
654
- * Costante che contiene tutte le varianti "h-" per altezza globale, incluse le altre classi layout per le altezze
655
- */
656
- const TailwindHeights = [
657
- // Classi dinamiche
658
- 'auto', // Altezza automatica
659
- 'min', // Altezza minima (adatta al contenuto minimo)
660
- 'max', // Altezza massima (adatta al contenuto massimo)
661
- 'fit', // Altezza si adatta al contenuto
662
- 'full', // Altezza piena (100% del contenitore genitore)
663
- // Altezza proporzionale
664
- '1/2', // 50% dell'altezza disponibile
665
- '1/3', // 33.333% dell'altezza disponibile
666
- '2/3', // 66.666% dell'altezza disponibile
667
- '1/4', // 25% dell'altezza disponibile
668
- '3/4', // 75% dell'altezza disponibile
669
- // Varianti numeriche da 1 a 96
670
- '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
671
- '11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
672
- '21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
673
- '31', '32', '33', '34', '35', '36', '37', '38', '39', '40',
674
- '41', '42', '43', '44', '45', '46', '47', '48', '49', '50',
675
- '51', '52', '53', '54', '55', '56', '57', '58', '59', '60',
676
- '61', '62', '63', '64', '65', '66', '67', '68', '69', '70',
677
- '71', '72', '73', '74', '75', '76', '77', '78', '79', '80',
678
- '81', '82', '83', '84', '85', '86', '87', '88', '89', '90',
679
- '91', '92', '93', '94', '95', '96'
680
- ];
681
- /**
682
- * Costante che contiene tutte le varianti "m-" mer madding globale, fino a 96
683
- */
684
- const TailwindMargins = [
685
- 'm-1', 'm-2', 'm-3', 'm-4', 'm-5', 'm-6', 'm-7', 'm-8', 'm-9', 'm-10',
686
- 'm-11', 'm-12', 'm-13', 'm-14', 'm-15', 'm-16', 'm-17', 'm-18', 'm-19', 'm-20',
687
- 'm-21', 'm-22', 'm-23', 'm-24', 'm-25', 'm-26', 'm-27', 'm-28', 'm-29', 'm-30',
688
- 'm-31', 'm-32', 'm-33', 'm-34', 'm-35', 'm-36', 'm-37', 'm-38', 'm-39', 'm-40',
689
- 'm-41', 'm-42', 'm-43', 'm-44', 'm-45', 'm-46', 'm-47', 'm-48', 'm-49', 'm-50',
690
- 'm-51', 'm-52', 'm-53', 'm-54', 'm-55', 'm-56', 'm-57', 'm-58', 'm-59', 'm-60',
691
- 'm-61', 'm-62', 'm-63', 'm-64', 'm-65', 'm-66', 'm-67', 'm-68', 'm-69', 'm-70',
692
- 'm-71', 'm-72', 'm-73', 'm-74', 'm-75', 'm-76', 'm-77', 'm-78', 'm-79', 'm-80',
693
- 'm-81', 'm-82', 'm-83', 'm-84', 'm-85', 'm-86', 'm-87', 'm-88', 'm-89', 'm-90',
694
- 'm-91', 'm-92', 'm-93', 'm-94', 'm-95', 'm-96',
695
- // Varianti negative
696
- '-m-1', '-m-2', '-m-3', '-m-4', '-m-5', '-m-6', '-m-7', '-m-8', '-m-9', '-m-10',
697
- '-m-11', '-m-12', '-m-13', '-m-14', '-m-15', '-m-16', '-m-17', '-m-18', '-m-19', '-m-20',
698
- '-m-21', '-m-22', '-m-23', '-m-24', '-m-25', '-m-26', '-m-27', '-m-28', '-m-29', '-m-30',
699
- '-m-31', '-m-32', '-m-33', '-m-34', '-m-35', '-m-36', '-m-37', '-m-38', '-m-39', '-m-40',
700
- '-m-41', '-m-42', '-m-43', '-m-44', '-m-45', '-m-46', '-m-47', '-m-48', '-m-49', '-m-50',
701
- '-m-51', '-m-52', '-m-53', '-m-54', '-m-55', '-m-56', '-m-57', '-m-58', '-m-59', '-m-60',
702
- '-m-61', '-m-62', '-m-63', '-m-64', '-m-65', '-m-66', '-m-67', '-m-68', '-m-69', '-m-70',
703
- '-m-71', '-m-72', '-m-73', '-m-74', '-m-75', '-m-76', '-m-77', '-m-78', '-m-79', '-m-80',
704
- '-m-81', '-m-82', '-m-83', '-m-84', '-m-85', '-m-86', '-m-87', '-m-88', '-m-89', '-m-90',
705
- '-m-91', '-m-92', '-m-93', '-m-94', '-m-95', '-m-96',
706
- ];
707
- /**
708
- * Costante che contiene tutte le varianti "mx-" mer madding orizzontale, fino a 96
709
- */
710
- const TailwindMargins_X = [
711
- // Varianti positive
712
- 'mx-1', 'mx-2', 'mx-3', 'mx-4', 'mx-5', 'mx-6', 'mx-7', 'mx-8', 'mx-9', 'mx-10',
713
- 'mx-11', 'mx-12', 'mx-13', 'mx-14', 'mx-15', 'mx-16', 'mx-17', 'mx-18', 'mx-19', 'mx-20',
714
- 'mx-21', 'mx-22', 'mx-23', 'mx-24', 'mx-25', 'mx-26', 'mx-27', 'mx-28', 'mx-29', 'mx-30',
715
- 'mx-31', 'mx-32', 'mx-33', 'mx-34', 'mx-35', 'mx-36', 'mx-37', 'mx-38', 'mx-39', 'mx-40',
716
- 'mx-41', 'mx-42', 'mx-43', 'mx-44', 'mx-45', 'mx-46', 'mx-47', 'mx-48', 'mx-49', 'mx-50',
717
- 'mx-51', 'mx-52', 'mx-53', 'mx-54', 'mx-55', 'mx-56', 'mx-57', 'mx-58', 'mx-59', 'mx-60',
718
- 'mx-61', 'mx-62', 'mx-63', 'mx-64', 'mx-65', 'mx-66', 'mx-67', 'mx-68', 'mx-69', 'mx-70',
719
- 'mx-71', 'mx-72', 'mx-73', 'mx-74', 'mx-75', 'mx-76', 'mx-77', 'mx-78', 'mx-79', 'mx-80',
720
- 'mx-81', 'mx-82', 'mx-83', 'mx-84', 'mx-85', 'mx-86', 'mx-87', 'mx-88', 'mx-89', 'mx-90',
721
- 'mx-91', 'mx-92', 'mx-93', 'mx-94', 'mx-95', 'mx-96',
722
- // Varianti negative
723
- '-mx-1', '-mx-2', '-mx-3', '-mx-4', '-mx-5', '-mx-6', '-mx-7', '-mx-8', '-mx-9', '-mx-10',
724
- '-mx-11', '-mx-12', '-mx-13', '-mx-14', '-mx-15', '-mx-16', '-mx-17', '-mx-18', '-mx-19', '-mx-20',
725
- '-mx-21', '-mx-22', '-mx-23', '-mx-24', '-mx-25', '-mx-26', '-mx-27', '-mx-28', '-mx-29', '-mx-30',
726
- '-mx-31', '-mx-32', '-mx-33', '-mx-34', '-mx-35', '-mx-36', '-mx-37', '-mx-38', '-mx-39', '-mx-40',
727
- '-mx-41', '-mx-42', '-mx-43', '-mx-44', '-mx-45', '-mx-46', '-mx-47', '-mx-48', '-mx-49', '-mx-50',
728
- '-mx-51', '-mx-52', '-mx-53', '-mx-54', '-mx-55', '-mx-56', '-mx-57', '-mx-58', '-mx-59', '-mx-60',
729
- '-mx-61', '-mx-62', '-mx-63', '-mx-64', '-mx-65', '-mx-66', '-mx-67', '-mx-68', '-mx-69', '-mx-70',
730
- '-mx-71', '-mx-72', '-mx-73', '-mx-74', '-mx-75', '-mx-76', '-mx-77', '-mx-78', '-mx-79', '-mx-80',
731
- '-mx-81', '-mx-82', '-mx-83', '-mx-84', '-mx-85', '-mx-86', '-mx-87', '-mx-88', '-mx-89', '-mx-90',
732
- '-mx-91', '-mx-92', '-mx-93', '-mx-94', '-mx-95', '-mx-96',
733
- ];
734
- /**
735
- * Costante che contiene tutte le varianti "my-" mer madding verticale, fino a 96
736
- */
737
- const TailwindMargins_Y = [
738
- // Varianti positive
739
- 'my-1', 'my-2', 'my-3', 'my-4', 'my-5', 'my-6', 'my-7', 'my-8', 'my-9', 'my-10',
740
- 'my-11', 'my-12', 'my-13', 'my-14', 'my-15', 'my-16', 'my-17', 'my-18', 'my-19', 'my-20',
741
- 'my-21', 'my-22', 'my-23', 'my-24', 'my-25', 'my-26', 'my-27', 'my-28', 'my-29', 'my-30',
742
- 'my-31', 'my-32', 'my-33', 'my-34', 'my-35', 'my-36', 'my-37', 'my-38', 'my-39', 'my-40',
743
- 'my-41', 'my-42', 'my-43', 'my-44', 'my-45', 'my-46', 'my-47', 'my-48', 'my-49', 'my-50',
744
- 'my-51', 'my-52', 'my-53', 'my-54', 'my-55', 'my-56', 'my-57', 'my-58', 'my-59', 'my-60',
745
- 'my-61', 'my-62', 'my-63', 'my-64', 'my-65', 'my-66', 'my-67', 'my-68', 'my-69', 'my-70',
746
- 'my-71', 'my-72', 'my-73', 'my-74', 'my-75', 'my-76', 'my-77', 'my-78', 'my-79', 'my-80',
747
- 'my-81', 'my-82', 'my-83', 'my-84', 'my-85', 'my-86', 'my-87', 'my-88', 'my-89', 'my-90',
748
- 'my-91', 'my-92', 'my-93', 'my-94', 'my-95', 'my-96',
749
- // Varianti negative
750
- '-my-1', '-my-2', '-my-3', '-my-4', '-my-5', '-my-6', '-my-7', '-my-8', '-my-9', '-my-10',
751
- '-my-11', '-my-12', '-my-13', '-my-14', '-my-15', '-my-16', '-my-17', '-my-18', '-my-19', '-my-20',
752
- '-my-21', '-my-22', '-my-23', '-my-24', '-my-25', '-my-26', '-my-27', '-my-28', '-my-29', '-my-30',
753
- '-my-31', '-my-32', '-my-33', '-my-34', '-my-35', '-my-36', '-my-37', '-my-38', '-my-39', '-my-40',
754
- '-my-41', '-my-42', '-my-43', '-my-44', '-my-45', '-my-46', '-my-47', '-my-48', '-my-49', '-my-50',
755
- '-my-51', '-my-52', '-my-53', '-my-54', '-my-55', '-my-56', '-my-57', '-my-58', '-my-59', '-my-60',
756
- '-my-61', '-my-62', '-my-63', '-my-64', '-my-65', '-my-66', '-my-67', '-my-68', '-my-69', '-my-70',
757
- '-my-71', '-my-72', '-my-73', '-my-74', '-my-75', '-my-76', '-my-77', '-my-78', '-my-79', '-my-80',
758
- '-my-81', '-my-82', '-my-83', '-my-84', '-my-85', '-my-86', '-my-87', '-my-88', '-my-89', '-my-90',
759
- '-my-91', '-my-92', '-my-93', '-my-94', '-my-95', '-my-96',
760
- ];
761
- /**
762
- * Costante che contiene tutte le varianti "mt-" mer madding sumeriore, fino a 96
763
- */
764
- const TailwindMargins_T = [
765
- // Varianti positive
766
- 'mt-1', 'mt-2', 'mt-3', 'mt-4', 'mt-5', 'mt-6', 'mt-7', 'mt-8', 'mt-9', 'mt-10',
767
- 'mt-11', 'mt-12', 'mt-13', 'mt-14', 'mt-15', 'mt-16', 'mt-17', 'mt-18', 'mt-19', 'mt-20',
768
- 'mt-21', 'mt-22', 'mt-23', 'mt-24', 'mt-25', 'mt-26', 'mt-27', 'mt-28', 'mt-29', 'mt-30',
769
- 'mt-31', 'mt-32', 'mt-33', 'mt-34', 'mt-35', 'mt-36', 'mt-37', 'mt-38', 'mt-39', 'mt-40',
770
- 'mt-41', 'mt-42', 'mt-43', 'mt-44', 'mt-45', 'mt-46', 'mt-47', 'mt-48', 'mt-49', 'mt-50',
771
- 'mt-51', 'mt-52', 'mt-53', 'mt-54', 'mt-55', 'mt-56', 'mt-57', 'mt-58', 'mt-59', 'mt-60',
772
- 'mt-61', 'mt-62', 'mt-63', 'mt-64', 'mt-65', 'mt-66', 'mt-67', 'mt-68', 'mt-69', 'mt-70',
773
- 'mt-71', 'mt-72', 'mt-73', 'mt-74', 'mt-75', 'mt-76', 'mt-77', 'mt-78', 'mt-79', 'mt-80',
774
- 'mt-81', 'mt-82', 'mt-83', 'mt-84', 'mt-85', 'mt-86', 'mt-87', 'mt-88', 'mt-89', 'mt-90',
775
- 'mt-91', 'mt-92', 'mt-93', 'mt-94', 'mt-95', 'mt-96',
776
- // Varianti negative
777
- '-mt-1', '-mt-2', '-mt-3', '-mt-4', '-mt-5', '-mt-6', '-mt-7', '-mt-8', '-mt-9', '-mt-10',
778
- '-mt-11', '-mt-12', '-mt-13', '-mt-14', '-mt-15', '-mt-16', '-mt-17', '-mt-18', '-mt-19', '-mt-20',
779
- '-mt-21', '-mt-22', '-mt-23', '-mt-24', '-mt-25', '-mt-26', '-mt-27', '-mt-28', '-mt-29', '-mt-30',
780
- '-mt-31', '-mt-32', '-mt-33', '-mt-34', '-mt-35', '-mt-36', '-mt-37', '-mt-38', '-mt-39', '-mt-40',
781
- '-mt-41', '-mt-42', '-mt-43', '-mt-44', '-mt-45', '-mt-46', '-mt-47', '-mt-48', '-mt-49', '-mt-50',
782
- '-mt-51', '-mt-52', '-mt-53', '-mt-54', '-mt-55', '-mt-56', '-mt-57', '-mt-58', '-mt-59', '-mt-60',
783
- '-mt-61', '-mt-62', '-mt-63', '-mt-64', '-mt-65', '-mt-66', '-mt-67', '-mt-68', '-mt-69', '-mt-70',
784
- '-mt-71', '-mt-72', '-mt-73', '-mt-74', '-mt-75', '-mt-76', '-mt-77', '-mt-78', '-mt-79', '-mt-80',
785
- '-mt-81', '-mt-82', '-mt-83', '-mt-84', '-mt-85', '-mt-86', '-mt-87', '-mt-88', '-mt-89', '-mt-90',
786
- '-mt-91', '-mt-92', '-mt-93', '-mt-94', '-mt-95', '-mt-96',
787
- ];
788
- /**
789
- * Costante che contiene tutte le varianti "mr-" mer madding a destra, fino a 96
790
- */
791
- const TailwindMargins_R = [
792
- // Varianti positive
793
- 'mr-1', 'mr-2', 'mr-3', 'mr-4', 'mr-5', 'mr-6', 'mr-7', 'mr-8', 'mr-9', 'mr-10',
794
- 'mr-11', 'mr-12', 'mr-13', 'mr-14', 'mr-15', 'mr-16', 'mr-17', 'mr-18', 'mr-19', 'mr-20',
795
- 'mr-21', 'mr-22', 'mr-23', 'mr-24', 'mr-25', 'mr-26', 'mr-27', 'mr-28', 'mr-29', 'mr-30',
796
- 'mr-31', 'mr-32', 'mr-33', 'mr-34', 'mr-35', 'mr-36', 'mr-37', 'mr-38', 'mr-39', 'mr-40',
797
- 'mr-41', 'mr-42', 'mr-43', 'mr-44', 'mr-45', 'mr-46', 'mr-47', 'mr-48', 'mr-49', 'mr-50',
798
- 'mr-51', 'mr-52', 'mr-53', 'mr-54', 'mr-55', 'mr-56', 'mr-57', 'mr-58', 'mr-59', 'mr-60',
799
- 'mr-61', 'mr-62', 'mr-63', 'mr-64', 'mr-65', 'mr-66', 'mr-67', 'mr-68', 'mr-69', 'mr-70',
800
- 'mr-71', 'mr-72', 'mr-73', 'mr-74', 'mr-75', 'mr-76', 'mr-77', 'mr-78', 'mr-79', 'mr-80',
801
- 'mr-81', 'mr-82', 'mr-83', 'mr-84', 'mr-85', 'mr-86', 'mr-87', 'mr-88', 'mr-89', 'mr-90',
802
- 'mr-91', 'mr-92', 'mr-93', 'mr-94', 'mr-95', 'mr-96',
803
- // Varianti negative
804
- '-mr-1', '-mr-2', '-mr-3', '-mr-4', '-mr-5', '-mr-6', '-mr-7', '-mr-8', '-mr-9', '-mr-10',
805
- '-mr-11', '-mr-12', '-mr-13', '-mr-14', '-mr-15', '-mr-16', '-mr-17', '-mr-18', '-mr-19', '-mr-20',
806
- '-mr-21', '-mr-22', '-mr-23', '-mr-24', '-mr-25', '-mr-26', '-mr-27', '-mr-28', '-mr-29', '-mr-30',
807
- '-mr-31', '-mr-32', '-mr-33', '-mr-34', '-mr-35', '-mr-36', '-mr-37', '-mr-38', '-mr-39', '-mr-40',
808
- '-mr-41', '-mr-42', '-mr-43', '-mr-44', '-mr-45', '-mr-46', '-mr-47', '-mr-48', '-mr-49', '-mr-50',
809
- '-mr-51', '-mr-52', '-mr-53', '-mr-54', '-mr-55', '-mr-56', '-mr-57', '-mr-58', '-mr-59', '-mr-60',
810
- '-mr-61', '-mr-62', '-mr-63', '-mr-64', '-mr-65', '-mr-66', '-mr-67', '-mr-68', '-mr-69', '-mr-70',
811
- '-mr-71', '-mr-72', '-mr-73', '-mr-74', '-mr-75', '-mr-76', '-mr-77', '-mr-78', '-mr-79', '-mr-80',
812
- '-mr-81', '-mr-82', '-mr-83', '-mr-84', '-mr-85', '-mr-86', '-mr-87', '-mr-88', '-mr-89', '-mr-90',
813
- '-mr-91', '-mr-92', '-mr-93', '-mr-94', '-mr-95', '-mr-96',
814
- ];
815
- /**
816
- * Costante che contiene tutte le varianti "mb-" mer madding inferiore, fino a 96
817
- */
818
- const TailwindMargins_L = [
819
- // Varianti positive
820
- 'ml-1', 'ml-2', 'ml-3', 'ml-4', 'ml-5', 'ml-6', 'ml-7', 'ml-8', 'ml-9', 'ml-10',
821
- 'ml-11', 'ml-12', 'ml-13', 'ml-14', 'ml-15', 'ml-16', 'ml-17', 'ml-18', 'ml-19', 'ml-20',
822
- 'ml-21', 'ml-22', 'ml-23', 'ml-24', 'ml-25', 'ml-26', 'ml-27', 'ml-28', 'ml-29', 'ml-30',
823
- 'ml-31', 'ml-32', 'ml-33', 'ml-34', 'ml-35', 'ml-36', 'ml-37', 'ml-38', 'ml-39', 'ml-40',
824
- 'ml-41', 'ml-42', 'ml-43', 'ml-44', 'ml-45', 'ml-46', 'ml-47', 'ml-48', 'ml-49', 'ml-50',
825
- 'ml-51', 'ml-52', 'ml-53', 'ml-54', 'ml-55', 'ml-56', 'ml-57', 'ml-58', 'ml-59', 'ml-60',
826
- 'ml-61', 'ml-62', 'ml-63', 'ml-64', 'ml-65', 'ml-66', 'ml-67', 'ml-68', 'ml-69', 'ml-70',
827
- 'ml-71', 'ml-72', 'ml-73', 'ml-74', 'ml-75', 'ml-76', 'ml-77', 'ml-78', 'ml-79', 'ml-80',
828
- 'ml-81', 'ml-82', 'ml-83', 'ml-84', 'ml-85', 'ml-86', 'ml-87', 'ml-88', 'ml-89', 'ml-90',
829
- 'ml-91', 'ml-92', 'ml-93', 'ml-94', 'ml-95', 'ml-96',
830
- // Varianti negative
831
- '-ml-1', '-ml-2', '-ml-3', '-ml-4', '-ml-5', '-ml-6', '-ml-7', '-ml-8', '-ml-9', '-ml-10',
832
- '-ml-11', '-ml-12', '-ml-13', '-ml-14', '-ml-15', '-ml-16', '-ml-17', '-ml-18', '-ml-19', '-ml-20',
833
- '-ml-21', '-ml-22', '-ml-23', '-ml-24', '-ml-25', '-ml-26', '-ml-27', '-ml-28', '-ml-29', '-ml-30',
834
- '-ml-31', '-ml-32', '-ml-33', '-ml-34', '-ml-35', '-ml-36', '-ml-37', '-ml-38', '-ml-39', '-ml-40',
835
- '-ml-41', '-ml-42', '-ml-43', '-ml-44', '-ml-45', '-ml-46', '-ml-47', '-ml-48', '-ml-49', '-ml-50',
836
- '-ml-51', '-ml-52', '-ml-53', '-ml-54', '-ml-55', '-ml-56', '-ml-57', '-ml-58', '-ml-59', '-ml-60',
837
- '-ml-61', '-ml-62', '-ml-63', '-ml-64', '-ml-65', '-ml-66', '-ml-67', '-ml-68', '-ml-69', '-ml-70',
838
- '-ml-71', '-ml-72', '-ml-73', '-ml-74', '-ml-75', '-ml-76', '-ml-77', '-ml-78', '-ml-79', '-ml-80',
839
- '-ml-81', '-ml-82', '-ml-83', '-ml-84', '-ml-85', '-ml-86', '-ml-87', '-ml-88', '-ml-89', '-ml-90',
840
- '-ml-91', '-ml-92', '-ml-93', '-ml-94', '-ml-95', '-ml-96',
841
- ];
842
- const TailwindMargins_B = [
843
- // Varianti positive
844
- 'mb-1', 'mb-2', 'mb-3', 'mb-4', 'mb-5', 'mb-6', 'mb-7', 'mb-8', 'mb-9', 'mb-10',
845
- 'mb-11', 'mb-12', 'mb-13', 'mb-14', 'mb-15', 'mb-16', 'mb-17', 'mb-18', 'mb-19', 'mb-20',
846
- 'mb-21', 'mb-22', 'mb-23', 'mb-24', 'mb-25', 'mb-26', 'mb-27', 'mb-28', 'mb-29', 'mb-30',
847
- 'mb-31', 'mb-32', 'mb-33', 'mb-34', 'mb-35', 'mb-36', 'mb-37', 'mb-38', 'mb-39', 'mb-40',
848
- 'mb-41', 'mb-42', 'mb-43', 'mb-44', 'mb-45', 'mb-46', 'mb-47', 'mb-48', 'mb-49', 'mb-50',
849
- 'mb-51', 'mb-52', 'mb-53', 'mb-54', 'mb-55', 'mb-56', 'mb-57', 'mb-58', 'mb-59', 'mb-60',
850
- 'mb-61', 'mb-62', 'mb-63', 'mb-64', 'mb-65', 'mb-66', 'mb-67', 'mb-68', 'mb-69', 'mb-70',
851
- 'mb-71', 'mb-72', 'mb-73', 'mb-74', 'mb-75', 'mb-76', 'mb-77', 'mb-78', 'mb-79', 'mb-80',
852
- 'mb-81', 'mb-82', 'mb-83', 'mb-84', 'mb-85', 'mb-86', 'mb-87', 'mb-88', 'mb-89', 'mb-90',
853
- 'mb-91', 'mb-92', 'mb-93', 'mb-94', 'mb-95', 'mb-96',
854
- // Varianti negative
855
- '-mb-1', '-mb-2', '-mb-3', '-mb-4', '-mb-5', '-mb-6', '-mb-7', '-mb-8', '-mb-9', '-mb-10',
856
- '-mb-11', '-mb-12', '-mb-13', '-mb-14', '-mb-15', '-mb-16', '-mb-17', '-mb-18', '-mb-19', '-mb-20',
857
- '-mb-21', '-mb-22', '-mb-23', '-mb-24', '-mb-25', '-mb-26', '-mb-27', '-mb-28', '-mb-29', '-mb-30',
858
- '-mb-31', '-mb-32', '-mb-33', '-mb-34', '-mb-35', '-mb-36', '-mb-37', '-mb-38', '-mb-39', '-mb-40',
859
- '-mb-41', '-mb-42', '-mb-43', '-mb-44', '-mb-45', '-mb-46', '-mb-47', '-mb-48', '-mb-49', '-mb-50',
860
- '-mb-51', '-mb-52', '-mb-53', '-mb-54', '-mb-55', '-mb-56', '-mb-57', '-mb-58', '-mb-59', '-mb-60',
861
- '-mb-61', '-mb-62', '-mb-63', '-mb-64', '-mb-65', '-mb-66', '-mb-67', '-mb-68', '-mb-69', '-mb-70',
862
- '-mb-71', '-mb-72', '-mb-73', '-mb-74', '-mb-75', '-mb-76', '-mb-77', '-mb-78', '-mb-79', '-mb-80',
863
- '-mb-81', '-mb-82', '-mb-83', '-mb-84', '-mb-85', '-mb-86', '-mb-87', '-mb-88', '-mb-89', '-mb-90',
864
- '-mb-91', '-mb-92', '-mb-93', '-mb-94', '-mb-95', '-mb-96',
865
- ];
866
- const TailwindMargins_ALL = [
867
- ...TailwindMargins,
868
- ...TailwindMargins_X,
869
- ...TailwindMargins_Y,
870
- ...TailwindMargins_T,
871
- ...TailwindMargins_R,
872
- ...TailwindMargins_L,
873
- ...TailwindMargins_B
874
- ];
875
- /**
876
- * Array di stringhe che rappresentano i multipli di 0.25rem da 0.25rem a 24rem
877
- */
878
- const TailwindMultipliers = [
879
- "0",
880
- "0.25rem",
881
- "0.5rem",
882
- "0.75rem",
883
- "1rem",
884
- "1.25rem",
885
- "1.5rem",
886
- "1.75rem",
887
- "2rem",
888
- "2.25rem",
889
- "2.5rem",
890
- "2.75rem",
891
- "3rem",
892
- "3.25rem",
893
- "3.5rem",
894
- "3.75rem",
895
- "4rem",
896
- "4.25rem",
897
- "4.5rem",
898
- "4.75rem",
899
- "5rem",
900
- "5.25rem",
901
- "5.5rem",
902
- "5.75rem",
903
- "6rem",
904
- "6.25rem",
905
- "6.5rem",
906
- "6.75rem",
907
- "7rem",
908
- "7.25rem",
909
- "7.5rem",
910
- "7.75rem",
911
- "8rem",
912
- "8.25rem",
913
- "8.5rem",
914
- "8.75rem",
915
- "9rem",
916
- "9.25rem",
917
- "9.5rem",
918
- "9.75rem",
919
- "10rem",
920
- "10.25rem",
921
- "10.5rem",
922
- "10.75rem",
923
- "11rem",
924
- "11.25rem",
925
- "11.5rem",
926
- "11.75rem",
927
- "12rem",
928
- "12.25rem",
929
- "12.5rem",
930
- "12.75rem",
931
- "13rem",
932
- "13.25rem",
933
- "13.5rem",
934
- "13.75rem",
935
- "14rem",
936
- "14.25rem",
937
- "14.5rem",
938
- "14.75rem",
939
- "15rem",
940
- "15.25rem",
941
- "15.5rem",
942
- "15.75rem",
943
- "16rem",
944
- "16.25rem",
945
- "16.5rem",
946
- "16.75rem",
947
- "17rem",
948
- "17.25rem",
949
- "17.5rem",
950
- "17.75rem",
951
- "18rem",
952
- "18.25rem",
953
- "18.5rem",
954
- "18.75rem",
955
- "19rem",
956
- "19.25rem",
957
- "19.5rem",
958
- "19.75rem",
959
- "20rem",
960
- "20.25rem",
961
- "20.5rem",
962
- "20.75rem",
963
- "21rem",
964
- "21.25rem",
965
- "21.5rem",
966
- "21.75rem",
967
- "22rem",
968
- "22.25rem",
969
- "22.5rem",
970
- "22.75rem",
971
- "23rem",
972
- "23.25rem",
973
- "23.5rem",
974
- "23.75rem",
975
- "24rem"
976
- ];
977
- const TailwindViewportHeightMultipliers = {
978
- '1/5-vh': '20vh',
979
- '1/4-vh': '25vh',
980
- '1/3-vh': '33.333vh',
981
- '2/5-vh': '40vh',
982
- '1/2-vh': '50vh',
983
- '3/5-vh': '60vh',
984
- '2/3-vh': '66.666vh',
985
- '3/4-vh': '75vh',
986
- '4/5-vh': '80vh',
987
- };
988
- /**
989
- * Costante che contiene tutte le varianti "p-" per padding globale, fino a 96
990
- */
991
- const TailwindPaddings = [
992
- 'p-1', 'p-2', 'p-3', 'p-4', 'p-5', 'p-6', 'p-7', 'p-8', 'p-9', 'p-10',
993
- 'p-11', 'p-12', 'p-13', 'p-14', 'p-15', 'p-16', 'p-17', 'p-18', 'p-19', 'p-20',
994
- 'p-21', 'p-22', 'p-23', 'p-24', 'p-25', 'p-26', 'p-27', 'p-28', 'p-29', 'p-30',
995
- 'p-31', 'p-32', 'p-33', 'p-34', 'p-35', 'p-36', 'p-37', 'p-38', 'p-39', 'p-40',
996
- 'p-41', 'p-42', 'p-43', 'p-44', 'p-45', 'p-46', 'p-47', 'p-48', 'p-49', 'p-50',
997
- 'p-51', 'p-52', 'p-53', 'p-54', 'p-55', 'p-56', 'p-57', 'p-58', 'p-59', 'p-60',
998
- 'p-61', 'p-62', 'p-63', 'p-64', 'p-65', 'p-66', 'p-67', 'p-68', 'p-69', 'p-70',
999
- 'p-71', 'p-72', 'p-73', 'p-74', 'p-75', 'p-76', 'p-77', 'p-78', 'p-79', 'p-80',
1000
- 'p-81', 'p-82', 'p-83', 'p-84', 'p-85', 'p-86', 'p-87', 'p-88', 'p-89', 'p-90',
1001
- 'p-91', 'p-92', 'p-93', 'p-94', 'p-95', 'p-96',
1002
- ];
1003
- /**
1004
- * Costante che contiene tutte le varianti "px-" per padding orizzontale, fino a 96
1005
- */
1006
- const TailwindPaddings_X = [
1007
- 'px-1', 'px-2', 'px-3', 'px-4', 'px-5', 'px-6', 'px-7', 'px-8', 'px-9', 'px-10',
1008
- 'px-11', 'px-12', 'px-13', 'px-14', 'px-15', 'px-16', 'px-17', 'px-18', 'px-19', 'px-20',
1009
- 'px-21', 'px-22', 'px-23', 'px-24', 'px-25', 'px-26', 'px-27', 'px-28', 'px-29', 'px-30',
1010
- 'px-31', 'px-32', 'px-33', 'px-34', 'px-35', 'px-36', 'px-37', 'px-38', 'px-39', 'px-40',
1011
- 'px-41', 'px-42', 'px-43', 'px-44', 'px-45', 'px-46', 'px-47', 'px-48', 'px-49', 'px-50',
1012
- 'px-51', 'px-52', 'px-53', 'px-54', 'px-55', 'px-56', 'px-57', 'px-58', 'px-59', 'px-60',
1013
- 'px-61', 'px-62', 'px-63', 'px-64', 'px-65', 'px-66', 'px-67', 'px-68', 'px-69', 'px-70',
1014
- 'px-71', 'px-72', 'px-73', 'px-74', 'px-75', 'px-76', 'px-77', 'px-78', 'px-79', 'px-80',
1015
- 'px-81', 'px-82', 'px-83', 'px-84', 'px-85', 'px-86', 'px-87', 'px-88', 'px-89', 'px-90',
1016
- 'px-91', 'px-92', 'px-93', 'px-94', 'px-95', 'px-96',
1017
- ];
1018
- /**
1019
- * Costante che contiene tutte le varianti "py-" per padding verticale, fino a 96
1020
- */
1021
- const TailwindPaddings_Y = [
1022
- 'py-1', 'py-2', 'py-3', 'py-4', 'py-5', 'py-6', 'py-7', 'py-8', 'py-9', 'py-10',
1023
- 'py-11', 'py-12', 'py-13', 'py-14', 'py-15', 'py-16', 'py-17', 'py-18', 'py-19', 'py-20',
1024
- 'py-21', 'py-22', 'py-23', 'py-24', 'py-25', 'py-26', 'py-27', 'py-28', 'py-29', 'py-30',
1025
- 'py-31', 'py-32', 'py-33', 'py-34', 'py-35', 'py-36', 'py-37', 'py-38', 'py-39', 'py-40',
1026
- 'py-41', 'py-42', 'py-43', 'py-44', 'py-45', 'py-46', 'py-47', 'py-48', 'py-49', 'py-50',
1027
- 'py-51', 'py-52', 'py-53', 'py-54', 'py-55', 'py-56', 'py-57', 'py-58', 'py-59', 'py-60',
1028
- 'py-61', 'py-62', 'py-63', 'py-64', 'py-65', 'py-66', 'py-67', 'py-68', 'py-69', 'py-70',
1029
- 'py-71', 'py-72', 'py-73', 'py-74', 'py-75', 'py-76', 'py-77', 'py-78', 'py-79', 'py-80',
1030
- 'py-81', 'py-82', 'py-83', 'py-84', 'py-85', 'py-86', 'py-87', 'py-88', 'py-89', 'py-90',
1031
- 'py-91', 'py-92', 'py-93', 'py-94', 'py-95', 'py-96',
1032
- ];
1033
- /**
1034
- * Costante che contiene tutte le varianti "pt-" per padding superiore, fino a 96
1035
- */
1036
- const TailwindPaddings_T = [
1037
- 'pt-1', 'pt-2', 'pt-3', 'pt-4', 'pt-5', 'pt-6', 'pt-7', 'pt-8', 'pt-9', 'pt-10',
1038
- 'pt-11', 'pt-12', 'pt-13', 'pt-14', 'pt-15', 'pt-16', 'pt-17', 'pt-18', 'pt-19', 'pt-20',
1039
- 'pt-21', 'pt-22', 'pt-23', 'pt-24', 'pt-25', 'pt-26', 'pt-27', 'pt-28', 'pt-29', 'pt-30',
1040
- 'pt-31', 'pt-32', 'pt-33', 'pt-34', 'pt-35', 'pt-36', 'pt-37', 'pt-38', 'pt-39', 'pt-40',
1041
- 'pt-41', 'pt-42', 'pt-43', 'pt-44', 'pt-45', 'pt-46', 'pt-47', 'pt-48', 'pt-49', 'pt-50',
1042
- 'pt-51', 'pt-52', 'pt-53', 'pt-54', 'pt-55', 'pt-56', 'pt-57', 'pt-58', 'pt-59', 'pt-60',
1043
- 'pt-61', 'pt-62', 'pt-63', 'pt-64', 'pt-65', 'pt-66', 'pt-67', 'pt-68', 'pt-69', 'pt-70',
1044
- 'pt-71', 'pt-72', 'pt-73', 'pt-74', 'pt-75', 'pt-76', 'pt-77', 'pt-78', 'pt-79', 'pt-80',
1045
- 'pt-81', 'pt-82', 'pt-83', 'pt-84', 'pt-85', 'pt-86', 'pt-87', 'pt-88', 'pt-89', 'pt-90',
1046
- 'pt-91', 'pt-92', 'pt-93', 'pt-94', 'pt-95', 'pt-96',
1047
- ];
1048
- /**
1049
- * Costante che contiene tutte le varianti "pr-" per padding a destra, fino a 96
1050
- */
1051
- const TailwindPaddings_R = [
1052
- 'pr-1', 'pr-2', 'pr-3', 'pr-4', 'pr-5', 'pr-6', 'pr-7', 'pr-8', 'pr-9', 'pr-10',
1053
- 'pr-11', 'pr-12', 'pr-13', 'pr-14', 'pr-15', 'pr-16', 'pr-17', 'pr-18', 'pr-19', 'pr-20',
1054
- 'pr-21', 'pr-22', 'pr-23', 'pr-24', 'pr-25', 'pr-26', 'pr-27', 'pr-28', 'pr-29', 'pr-30',
1055
- 'pr-31', 'pr-32', 'pr-33', 'pr-34', 'pr-35', 'pr-36', 'pr-37', 'pr-38', 'pr-39', 'pr-40',
1056
- 'pr-41', 'pr-42', 'pr-43', 'pr-44', 'pr-45', 'pr-46', 'pr-47', 'pr-48', 'pr-49', 'pr-50',
1057
- 'pr-51', 'pr-52', 'pr-53', 'pr-54', 'pr-55', 'pr-56', 'pr-57', 'pr-58', 'pr-59', 'pr-60',
1058
- 'pr-61', 'pr-62', 'pr-63', 'pr-64', 'pr-65', 'pr-66', 'pr-67', 'pr-68', 'pr-69', 'pr-70',
1059
- 'pr-71', 'pr-72', 'pr-73', 'pr-74', 'pr-75', 'pr-76', 'pr-77', 'pr-78', 'pr-79', 'pr-80',
1060
- 'pr-81', 'pr-82', 'pr-83', 'pr-84', 'pr-85', 'pr-86', 'pr-87', 'pr-88', 'pr-89', 'pr-90',
1061
- 'pr-91', 'pr-92', 'pr-93', 'pr-94', 'pr-95', 'pr-96',
1062
- ];
1063
- /**
1064
- * Costante che contiene tutte le varianti "pb-" per padding inferiore, fino a 96
1065
- */
1066
- const TailwindPaddings_B = [
1067
- 'pb-1', 'pb-2', 'pb-3', 'pb-4', 'pb-5', 'pb-6', 'pb-7', 'pb-8', 'pb-9', 'pb-10',
1068
- 'pb-11', 'pb-12', 'pb-13', 'pb-14', 'pb-15', 'pb-16', 'pb-17', 'pb-18', 'pb-19', 'pb-20',
1069
- 'pb-21', 'pb-22', 'pb-23', 'pb-24', 'pb-25', 'pb-26', 'pb-27', 'pb-28', 'pb-29', 'pb-30',
1070
- 'pb-31', 'pb-32', 'pb-33', 'pb-34', 'pb-35', 'pb-36', 'pb-37', 'pb-38', 'pb-39', 'pb-40',
1071
- 'pb-41', 'pb-42', 'pb-43', 'pb-44', 'pb-45', 'pb-46', 'pb-47', 'pb-48', 'pb-49', 'pb-50',
1072
- 'pb-51', 'pb-52', 'pb-53', 'pb-54', 'pb-55', 'pb-56', 'pb-57', 'pb-58', 'pb-59', 'pb-60',
1073
- 'pb-61', 'pb-62', 'pb-63', 'pb-64', 'pb-65', 'pb-66', 'pb-67', 'pb-68', 'pb-69', 'pb-70',
1074
- 'pb-71', 'pb-72', 'pb-73', 'pb-74', 'pb-75', 'pb-76', 'pb-77', 'pb-78', 'pb-79', 'pb-80',
1075
- 'pb-81', 'pb-82', 'pb-83', 'pb-84', 'pb-85', 'pb-86', 'pb-87', 'pb-88', 'pb-89', 'pb-90',
1076
- 'pb-91', 'pb-92', 'pb-93', 'pb-94', 'pb-95', 'pb-96',
1077
- ];
1078
- /**
1079
- * Costante che contiene tutte le varianti "pl-" per padding a sinistra, fino a 96
1080
- */
1081
- const TailwindPaddings_L = [
1082
- 'pl-1', 'pl-2', 'pl-3', 'pl-4', 'pl-5', 'pl-6', 'pl-7', 'pl-8', 'pl-9', 'pl-10',
1083
- 'pl-11', 'pl-12', 'pl-13', 'pl-14', 'pl-15', 'pl-16', 'pl-17', 'pl-18', 'pl-19', 'pl-20',
1084
- 'pl-21', 'pl-22', 'pl-23', 'pl-24', 'pl-25', 'pl-26', 'pl-27', 'pl-28', 'pl-29', 'pl-30',
1085
- 'pl-31', 'pl-32', 'pl-33', 'pl-34', 'pl-35', 'pl-36', 'pl-37', 'pl-38', 'pl-39', 'pl-40',
1086
- 'pl-41', 'pl-42', 'pl-43', 'pl-44', 'pl-45', 'pl-46', 'pl-47', 'pl-48', 'pl-49', 'pl-50',
1087
- 'pl-51', 'pl-52', 'pl-53', 'pl-54', 'pl-55', 'pl-56', 'pl-57', 'pl-58', 'pl-59', 'pl-60',
1088
- 'pl-61', 'pl-62', 'pl-63', 'pl-64', 'pl-65', 'pl-66', 'pl-67', 'pl-68', 'pl-69', 'pl-70',
1089
- 'pl-71', 'pl-72', 'pl-73', 'pl-74', 'pl-75', 'pl-76', 'pl-77', 'pl-78', 'pl-79', 'pl-80',
1090
- 'pl-81', 'pl-82', 'pl-83', 'pl-84', 'pl-85', 'pl-86', 'pl-87', 'pl-88', 'pl-89', 'pl-90',
1091
- 'pl-91', 'pl-92', 'pl-93', 'pl-94', 'pl-95', 'pl-96',
1092
- ];
1093
- const TailwindPaddings_ALL = [
1094
- ...TailwindPaddings,
1095
- ...TailwindPaddings_X,
1096
- ...TailwindPaddings_Y,
1097
- ...TailwindPaddings_T,
1098
- ...TailwindPaddings_R,
1099
- ...TailwindPaddings_B,
1100
- ...TailwindPaddings_L,
1101
- ];
1102
- // file: constants/layout/textSizes.ts
1103
- const TailwindTextSizes = [
1104
- 'text-xs',
1105
- 'text-sm',
1106
- 'text-base',
1107
- 'text-lg',
1108
- 'text-xl',
1109
- 'text-2xl',
1110
- 'text-3xl',
1111
- 'text-4xl',
1112
- 'text-5xl',
1113
- 'text-6xl',
1114
- 'text-7xl',
1115
- ];
1116
- /**
1117
- * Costante che contiene tutte le varianti "w-" per larghezza globale
1118
- */
1119
- const TailwindWidths = [
1120
- // Classi dinamiche
1121
- 'w-auto', // Larghezza automatica
1122
- 'w-full', // Larghezza piena (100% del contenitore genitore)
1123
- 'w-screen', // Larghezza dell'intero viewport
1124
- 'w-min', // Larghezza minima (adatta al contenuto minimo)
1125
- 'w-max', // Larghezza massima (adatta al contenuto massimo)
1126
- 'w-fit', // Larghezza si adatta al contenuto
1127
- // Larghezza proporzionale
1128
- 'w-1/2', // 50% della larghezza disponibile
1129
- 'w-1/3', // 33.333% della larghezza disponibile
1130
- 'w-2/3', // 66.666% della larghezza disponibile
1131
- 'w-1/4', // 25% della larghezza disponibile
1132
- 'w-3/4', // 75% della larghezza disponibile
1133
- // Varianti numeriche da 1 a 96
1134
- 'w-1', 'w-2', 'w-3', 'w-4', 'w-5', 'w-6', 'w-7', 'w-8', 'w-9', 'w-10',
1135
- 'w-11', 'w-12', 'w-13', 'w-14', 'w-15', 'w-16', 'w-17', 'w-18', 'w-19', 'w-20',
1136
- 'w-21', 'w-22', 'w-23', 'w-24', 'w-25', 'w-26', 'w-27', 'w-28', 'w-29', 'w-30',
1137
- 'w-31', 'w-32', 'w-33', 'w-34', 'w-35', 'w-36', 'w-37', 'w-38', 'w-39', 'w-40',
1138
- 'w-41', 'w-42', 'w-43', 'w-44', 'w-45', 'w-46', 'w-47', 'w-48', 'w-49', 'w-50',
1139
- 'w-51', 'w-52', 'w-53', 'w-54', 'w-55', 'w-56', 'w-57', 'w-58', 'w-59', 'w-60',
1140
- 'w-61', 'w-62', 'w-63', 'w-64', 'w-65', 'w-66', 'w-67', 'w-68', 'w-69', 'w-70',
1141
- 'w-71', 'w-72', 'w-73', 'w-74', 'w-75', 'w-76', 'w-77', 'w-78', 'w-79', 'w-80',
1142
- 'w-81', 'w-82', 'w-83', 'w-84', 'w-85', 'w-86', 'w-87', 'w-88', 'w-89', 'w-90',
1143
- 'w-91', 'w-92', 'w-93', 'w-94', 'w-95', 'w-96',
1144
- ];
1145
- const TailwindColors = [
1146
- "text-primary/10", "bg-primary/10", "border-primary/10",
1147
- "text-primary/20", "bg-primary/20", "border-primary/20",
1148
- "text-primary/30", "bg-primary/30", "border-primary/30",
1149
- "text-primary/40", "bg-primary/40", "border-primary/40",
1150
- "text-primary/50", "bg-primary/50", "border-primary/50",
1151
- "text-primary/60", "bg-primary/60", "border-primary/60",
1152
- "text-primary/70", "bg-primary/70", "border-primary/70",
1153
- "text-primary/80", "bg-primary/80", "border-primary/80",
1154
- "text-primary/90", "bg-primary/90", "border-primary/90",
1155
- "text-primary", "bg-primary", "border-primary",
1156
- "text-secondary/10", "bg-secondary/10", "border-secondary/10",
1157
- "text-secondary/20", "bg-secondary/20", "border-secondary/20",
1158
- "text-secondary/30", "bg-secondary/30", "border-secondary/30",
1159
- "text-secondary/40", "bg-secondary/40", "border-secondary/40",
1160
- "text-secondary/50", "bg-secondary/50", "border-secondary/50",
1161
- "text-secondary/60", "bg-secondary/60", "border-secondary/60",
1162
- "text-secondary/70", "bg-secondary/70", "border-secondary/70",
1163
- "text-secondary/80", "bg-secondary/80", "border-secondary/80",
1164
- "text-secondary/90", "bg-secondary/90", "border-secondary/90",
1165
- "text-secondary", "bg-secondary", "border-secondary",
1166
- "text-accent/10", "bg-accent/10", "border-accent/10",
1167
- "text-accent/20", "bg-accent/20", "border-accent/20",
1168
- "text-accent/30", "bg-accent/30", "border-accent/30",
1169
- "text-accent/40", "bg-accent/40", "border-accent/40",
1170
- "text-accent/50", "bg-accent/50", "border-accent/50",
1171
- "text-accent/60", "bg-accent/60", "border-accent/60",
1172
- "text-accent/70", "bg-accent/70", "border-accent/70",
1173
- "text-accent/80", "bg-accent/80", "border-accent/80",
1174
- "text-accent/90", "bg-accent/90", "border-accent/90",
1175
- "text-accent", "bg-accent", "border-accent",
1176
- "text-dark/10", "bg-dark/10", "border-dark/10",
1177
- "text-dark/20", "bg-dark/20", "border-dark/20",
1178
- "text-dark/30", "bg-dark/30", "border-dark/30",
1179
- "text-dark/40", "bg-dark/40", "border-dark/40",
1180
- "text-dark/50", "bg-dark/50", "border-dark/50",
1181
- "text-dark/60", "bg-dark/60", "border-dark/60",
1182
- "text-dark/70", "bg-dark/70", "border-dark/70",
1183
- "text-dark/80", "bg-dark/80", "border-dark/80",
1184
- "text-dark/90", "bg-dark/90", "border-dark/90",
1185
- "text-dark", "bg-dark", "border-dark",
1186
- "text-light/10", "bg-light/10", "border-light/10",
1187
- "text-light/20", "bg-light/20", "border-light/20",
1188
- "text-light/30", "bg-light/30", "border-light/30",
1189
- "text-light/40", "bg-light/40", "border-light/40",
1190
- "text-light/50", "bg-light/50", "border-light/50",
1191
- "text-light/60", "bg-light/60", "border-light/60",
1192
- "text-light/70", "bg-light/70", "border-light/70",
1193
- "text-light/80", "bg-light/80", "border-light/80",
1194
- "text-light/90", "bg-light/90", "border-light/90",
1195
- "text-light", "bg-light", "border-light"
1196
- ];
1197
- const TailwindDesktopGridColumns = [
1198
- 'lg:grid-cols-1',
1199
- 'lg:grid-cols-2',
1200
- 'lg:grid-cols-3',
1201
- 'lg:grid-cols-4',
1202
- 'lg:grid-cols-5',
1203
- 'lg:grid-cols-6',
1204
- 'lg:grid-cols-7',
1205
- 'lg:grid-cols-8',
1206
- 'lg:grid-cols-9',
1207
- 'lg:grid-cols-10',
1208
- 'lg:grid-cols-11',
1209
- 'lg:grid-cols-12'
1210
- ];
1211
- // Classi grid-cols per tablet (md)
1212
- const TailwindTabletGridColumns = [
1213
- 'md:grid-cols-1',
1214
- 'md:grid-cols-2',
1215
- 'md:grid-cols-3',
1216
- 'md:grid-cols-4',
1217
- 'md:grid-cols-5',
1218
- 'md:grid-cols-6'
1219
- ];
1220
- // Classi grid-cols per mobile (default, senza prefisso)
1221
- const TailwindMobileGridColumns = [
1222
- 'grid-cols-1',
1223
- 'grid-cols-2'
1224
- ];
1225
- const TailwindAllSafeList = [
1226
- ...TailwindHeights,
1227
- ...TailwindPaddings,
1228
- ...TailwindMargins,
1229
- ...TailwindContainerWidths,
1230
- ...TailwindWidths,
1231
- ...TailwindColors,
1232
- ...TailwindDesktopGridColumns,
1233
- ...TailwindMobileGridColumns,
1234
- ...TailwindTabletGridColumns,
1235
- ...TailwindTextSizes
1236
- ];
1237
-
1238
- var index$1 = /*#__PURE__*/Object.freeze({
1239
- __proto__: null,
1240
- TailwindAllSafeList: TailwindAllSafeList,
1241
- TailwindColors: TailwindColors,
1242
- TailwindContainerWidths: TailwindContainerWidths,
1243
- TailwindDesktopGridColumns: TailwindDesktopGridColumns,
1244
- TailwindHeights: TailwindHeights,
1245
- TailwindMargins: TailwindMargins,
1246
- TailwindMargins_ALL: TailwindMargins_ALL,
1247
- TailwindMargins_B: TailwindMargins_B,
1248
- TailwindMargins_L: TailwindMargins_L,
1249
- TailwindMargins_R: TailwindMargins_R,
1250
- TailwindMargins_T: TailwindMargins_T,
1251
- TailwindMargins_X: TailwindMargins_X,
1252
- TailwindMargins_Y: TailwindMargins_Y,
1253
- TailwindMobileGridColumns: TailwindMobileGridColumns,
1254
- TailwindMultipliers: TailwindMultipliers,
1255
- TailwindPaddings: TailwindPaddings,
1256
- TailwindPaddings_ALL: TailwindPaddings_ALL,
1257
- TailwindPaddings_B: TailwindPaddings_B,
1258
- TailwindPaddings_L: TailwindPaddings_L,
1259
- TailwindPaddings_R: TailwindPaddings_R,
1260
- TailwindPaddings_T: TailwindPaddings_T,
1261
- TailwindPaddings_X: TailwindPaddings_X,
1262
- TailwindPaddings_Y: TailwindPaddings_Y,
1263
- TailwindTabletGridColumns: TailwindTabletGridColumns,
1264
- TailwindTextSizes: TailwindTextSizes,
1265
- TailwindViewportHeightMultipliers: TailwindViewportHeightMultipliers,
1266
- TailwindViewportHeights: TailwindViewportHeights,
1267
- TailwindWidths: TailwindWidths
1268
- });
1269
-
1270
- /**
1271
- * Genera un campo per la selezione delle altezze
1272
- * @returns Field - Campo di tipo `select` per PayloadCMS
1273
- */
1274
- const fieldViewportHeights = () => {
1275
- return fieldSelect({
1276
- name: 'h',
1277
- label: 'Altezza',
1278
- type: 'select',
1279
- options: [{ value: '', label: '(Nessuno)' }, ...TailwindViewportHeights.map(h => ({ value: `h-${h}`, label: h }))],
1280
- admin: {
1281
- description: 'Definisce l’altezza dell’elemento.',
1282
- width: '50%'
1283
- },
1284
- });
1285
- };
1286
-
1287
- const fieldSectionProps = (customFields = []) => {
1288
- return {
1289
- name: 'sctP',
1290
- label: 'Proprietà sezione',
1291
- type: 'group',
1292
- fields: [
1293
- ...customFields,
1294
- fieldRichText({ name: 'body', label: 'Contenuto', required: false }),
1295
- {
1296
- type: 'tabs',
1297
- tabs: [
1298
- {
1299
- label: 'Stile',
1300
- fields: [
1301
- fieldUpload('media', { name: 'bgi', label: 'Immagine di sfondo' }),
1302
- fieldThemeColor({ name: 'bgc', label: 'Colore di sfondo', required: false }),
1303
- ]
1304
- }
1305
- ]
1306
- },
1307
- {
1308
- type: 'tabs',
1309
- tabs: [
1310
- {
1311
- label: 'Dimensioni',
1312
- fields: [
1313
- fieldViewportHeights(),
1314
- {
1315
- type: 'tabs',
1316
- tabs: [{
1317
- label: 'Margini',
1318
- fields: [
1319
- fieldMargins()
1320
- ]
1321
- },
1322
- {
1323
- label: 'Paddings',
1324
- fields: [
1325
- fieldPaddings()
1326
- ]
1327
- }
1328
- ]
1329
- }
1330
- ]
1331
- }
1332
- ]
1333
- },
1334
- ],
1335
- };
1336
- };
1337
-
1338
- const fieldSectionTabs = (options = {}) => {
1339
- const { config = true, section = true, container = true, content = true, configFields = [], sectionFields = [], containerFields = [], contentFields = [] } = options;
1340
- const tabs = [];
1341
- if (config) {
1342
- tabs.push({
1343
- label: 'Configurazione',
1344
- fields: [
1345
- fieldConfigProps(configFields)
1346
- ],
1347
- });
1348
- }
1349
- // Tab per la sezione
1350
- if (section) {
1351
- tabs.push({
1352
- label: 'Sezione',
1353
- fields: [
1354
- fieldSectionProps(sectionFields)
1355
- ],
1356
- });
1357
- }
1358
- // Tab per il container
1359
- if (container) {
1360
- tabs.push({
1361
- label: 'Container',
1362
- fields: [
1363
- fieldContainerProps(containerFields)
1364
- ],
1365
- });
1366
- }
1367
- // Tab per il contenuto
1368
- if (content) {
1369
- tabs.push({
1370
- label: 'Contenuto',
1371
- fields: [
1372
- fieldContentProps(contentFields)
1373
- ],
1374
- });
1375
- }
1376
- return {
1377
- type: 'tabs',
1378
- tabs: tabs,
1379
- };
1380
- };
1381
-
1382
- /**
1383
- * Genera un campo per la selezione delle larghezze del container
1384
- * @returns Field - Campo di tipo `select` per PayloadCMS
1385
- */
1386
- const fieldContainerWidths = () => {
1387
- return fieldSelect({
1388
- name: 'container',
1389
- label: 'Larghezza del container',
1390
- options: [{ value: '', label: '(Nessuno)' }, ...TailwindContainerWidths],
1391
- admin: {
1392
- description: 'Seleziona una larghezza massima per il container. Usa "None" per una larghezza a schermo intero.',
1393
- },
1394
- });
1395
- };
1396
-
1397
- const fieldFontSizes = () => {
1398
- return fieldSelect({
1399
- name: 'fs',
1400
- label: 'Dimensione del testo',
1401
- options: TailwindTextSizes,
1402
- defaultValue: 'text-base',
1403
- admin: {
1404
- description: 'Seleziona una dimensione per il testo (es. Small, Base, Large, ecc.).',
1405
- },
1406
- });
1407
- };
1408
-
1409
- /**
1410
- * Genera un campo per la selezione delle altezze
1411
- * @returns Field - Campo di tipo `select` per PayloadCMS
1412
- */
1413
- const fieldHeights = () => {
1414
- return fieldSelect({
1415
- name: 'h',
1416
- label: 'Altezza',
1417
- type: 'select',
1418
- defaultValue: 'h-full',
1419
- options: [{ value: '', label: '(Nessuno)' }, ...TailwindHeights.map(h => ({ value: `h-${h}`, label: h }))],
1420
- admin: {
1421
- description: 'Definisce l’altezza dell’elemento.',
1422
- },
1423
- });
1424
- };
1425
-
1426
- const concatMarginFields = (args) => {
1427
- const { value, siblingData, operation, } = args;
1428
- if (operation === 'create' || operation === 'update') {
1429
- const margins = siblingData || {};
1430
- const { all, x, y, t, r, b, l } = margins;
1431
- const classes = [];
1432
- if (all)
1433
- classes.push(`m-${all}`);
1434
- if (x)
1435
- classes.push(`mx-${x}`);
1436
- if (y)
1437
- classes.push(`my-${y}`);
1438
- if (t)
1439
- classes.push(`mt-${t}`);
1440
- if (r)
1441
- classes.push(`mr-${r}`);
1442
- if (b)
1443
- classes.push(`mb-${b}`);
1444
- if (l)
1445
- classes.push(`ml-${l}`);
1446
- return classes.join(' ');
1447
- }
1448
- return value;
1449
- };
1450
- /**
1451
- * Genera un campo per la selezione dinamica dei margini
1452
- * @returns Field - Campo di tipo `group` per PayloadCMS
1453
- */
1454
- const fieldMargins = () => {
1455
- return {
1456
- name: 'm',
1457
- label: 'Margini',
1458
- type: 'group',
1459
- fields: [
1460
- {
1461
- name: 'className',
1462
- label: 'Classi CSS Margini',
1463
- type: 'text',
1464
- hooks: {
1465
- beforeChange: [concatMarginFields],
1466
- },
1467
- admin: {
1468
- readOnly: true,
1469
- description: 'Questa stringa verrà generata automaticamente in base ai campi sottostanti.',
1470
- },
1471
- },
1472
- {
1473
- type: 'row',
1474
- fields: [
1475
- fieldNumber({
1476
- name: 'all',
1477
- label: 'Tutti i lati',
1478
- type: 'number',
1479
- min: 0,
1480
- max: 96,
1481
- admin: {
1482
- width: '33%'
1483
- }
1484
- }),
1485
- fieldNumber({
1486
- name: 'x',
1487
- label: 'Orizzontale',
1488
- type: 'number',
1489
- min: 0,
1490
- max: 96,
1491
- admin: {
1492
- width: '33%'
1493
- }
1494
- }),
1495
- fieldNumber({
1496
- name: 'y',
1497
- label: 'Verticale',
1498
- type: 'number',
1499
- min: 0,
1500
- max: 96,
1501
- admin: {
1502
- width: '33%'
1503
- }
1504
- }),
1505
- fieldNumber({
1506
- name: 't',
1507
- label: 'Top',
1508
- type: 'number',
1509
- min: 0,
1510
- max: 96,
1511
- admin: {
1512
- width: '25%'
1513
- }
1514
- }),
1515
- fieldNumber({
1516
- name: 'r',
1517
- label: 'Right',
1518
- type: 'number',
1519
- min: 0,
1520
- max: 96,
1521
- admin: {
1522
- width: '25%'
1523
- }
1524
- }),
1525
- fieldNumber({
1526
- name: 'b',
1527
- label: 'Bottom',
1528
- type: 'number',
1529
- min: 0,
1530
- max: 96,
1531
- admin: {
1532
- width: '25%'
1533
- }
1534
- }),
1535
- fieldNumber({
1536
- name: 'l',
1537
- label: 'Left',
1538
- type: 'number',
1539
- min: 0,
1540
- max: 96,
1541
- admin: {
1542
- width: '25%'
1543
- }
1544
- }),
1545
- ]
1546
- }
1547
- ],
1548
- admin: {
1549
- description: 'Definisce lo spazio esterno generale, orizzontale, verticale o per ciascun lato.',
1550
- },
1551
- };
1552
- };
1553
-
1554
- /**
1555
- * Hook per concatenare le classi CSS di padding
1556
- */
1557
- const concatPaddingFields = (args) => {
1558
- const { value, siblingData, operation, } = args;
1559
- if (operation === 'create' || operation === 'update') {
1560
- const paddings = siblingData || {};
1561
- const { all, x, y, t, r, b, l } = paddings;
1562
- const classes = [];
1563
- if (all)
1564
- classes.push(`p-${all}`);
1565
- if (x)
1566
- classes.push(`px-${x}`);
1567
- if (y)
1568
- classes.push(`py-${y}`);
1569
- if (t)
1570
- classes.push(`pt-${t}`);
1571
- if (r)
1572
- classes.push(`pr-${r}`);
1573
- if (b)
1574
- classes.push(`pb-${b}`);
1575
- if (l)
1576
- classes.push(`pl-${l}`);
1577
- return classes.join(' ');
1578
- }
1579
- return value;
1580
- };
1581
- /**
1582
- * Genera un campo per la selezione dinamica dei padding
1583
- * @returns Field - Campo di tipo `group` per PayloadCMS
1584
- */
1585
- const fieldPaddings = () => {
1586
- return {
1587
- name: 'p',
1588
- label: 'Padding',
1589
- type: 'group',
1590
- fields: [
1591
- {
1592
- name: 'className',
1593
- label: 'Classi CSS Padding',
1594
- type: 'text',
1595
- hooks: {
1596
- beforeChange: [concatPaddingFields],
1597
- },
1598
- admin: {
1599
- readOnly: true,
1600
- description: 'Questa stringa verrà generata automaticamente in base ai campi sottostanti.',
1601
- },
1602
- },
1603
- {
1604
- type: 'row',
1605
- fields: [
1606
- fieldNumber({
1607
- name: 'all',
1608
- label: 'Tutti i lati',
1609
- type: 'number',
1610
- min: 0,
1611
- max: 96,
1612
- admin: {
1613
- width: '33%'
1614
- }
1615
- }),
1616
- fieldNumber({
1617
- name: 'x',
1618
- label: 'Orizzontale',
1619
- type: 'number',
1620
- min: 0,
1621
- max: 96,
1622
- admin: {
1623
- width: '33%'
1624
- }
1625
- }),
1626
- fieldNumber({
1627
- name: 'y',
1628
- label: 'Verticale',
1629
- type: 'number',
1630
- min: 0,
1631
- max: 96,
1632
- admin: {
1633
- width: '33%'
1634
- }
1635
- }),
1636
- fieldNumber({
1637
- name: 't',
1638
- label: 'Top',
1639
- type: 'number',
1640
- min: 0,
1641
- max: 96,
1642
- admin: {
1643
- width: '25%'
1644
- }
1645
- }),
1646
- fieldNumber({
1647
- name: 'r',
1648
- label: 'Right',
1649
- type: 'number',
1650
- min: 0,
1651
- max: 96,
1652
- admin: {
1653
- width: '25%'
1654
- }
1655
- }),
1656
- fieldNumber({
1657
- name: 'b',
1658
- label: 'Bottom',
1659
- type: 'number',
1660
- min: 0,
1661
- max: 96,
1662
- admin: {
1663
- width: '25%'
1664
- }
1665
- }),
1666
- fieldNumber({
1667
- name: 'l',
1668
- label: 'Left',
1669
- type: 'number',
1670
- min: 0,
1671
- max: 96,
1672
- admin: {
1673
- width: '25%'
1674
- }
1675
- }),
1676
- ]
1677
- }
1678
- ],
1679
- admin: {
1680
- description: 'Definisce lo spazio interno generale, orizzontale, verticale o per ciascun lato.',
1681
- },
1682
- };
1683
- };
1684
-
1685
- const fieldMenuItems = (override) => ({
1686
- name: 'menuItems',
1687
- label: 'Menu items',
1688
- type: 'array',
1689
- fields: [
1690
- {
1691
- name: 'test',
1692
- type: 'text'
1693
- },
1694
- fieldCheckbox({
1695
- name: 'is-external',
1696
- label: 'open in new tab',
1697
- }),
1698
- fieldText({ name: 'label', label: 'label' }),
1699
- {
1700
- name: 'relationship',
1701
- type: 'relationship',
1702
- relationTo: ['destinations'],
1703
- },
1704
- //WFieldRelationship(['pages', 'destinations']),
1705
- fieldArray({
1706
- name: 'sub-menu',
1707
- label: 'Sub menu',
1708
- admin: {
1709
- description: 'Aggiungere voci figlio a una voce di menù ne disabilita il click di navigazione per permettere l\'apertura del dropdown'
1710
- },
1711
- fields: [
1712
- fieldCheckbox({
1713
- name: 'is-external',
1714
- label: 'open in new tab',
1715
- }),
1716
- fieldText({ name: 'label', label: 'label' }),
1717
- {
1718
- name: 'relationship',
1719
- type: 'relationship',
1720
- relationTo: ['pages', 'posts', 'destinations'],
1721
- },
1722
- ]
1723
- })
1724
- ],
1725
- });
1726
-
1727
- var UserRole;
1728
- (function (UserRole) {
1729
- UserRole["ADMIN"] = "admin";
1730
- UserRole["DESIGNER"] = "designer";
1731
- UserRole["COPY"] = "copy";
1732
- UserRole["WEBADMIN"] = "webadmin";
1733
- })(UserRole || (UserRole = {}));
1734
- const fieldRoles = (override) => ({
1735
- name: override?.name || 'roles',
1736
- label: override?.label || 'Ruoli',
1737
- type: 'select',
1738
- required: override?.required ?? true,
1739
- hasMany: override?.hasMany ?? true,
1740
- options: [
1741
- ...Object.values(UserRole).map((role) => ({
1742
- label: role.charAt(0).toUpperCase() + role.slice(1).toLowerCase(),
1743
- value: role,
1744
- })),
1745
- ...(override?.options || []),
1746
- ],
1747
- access: {
1748
- create: () => true,
1749
- update: () => true,
1750
- read: () => true,
1751
- ...override?.access,
1752
- },
1753
- admin: {
1754
- description: 'Seleziona uno o più ruoli utente.',
1755
- ...override?.admin,
1756
- },
1757
- });
1758
-
1759
- // Esportazioni dalle cartelle principali
1760
-
1761
- var index = /*#__PURE__*/Object.freeze({
1762
- __proto__: null,
1763
- fieldAction: fieldAction,
1764
- fieldArray: fieldArray,
1765
- fieldBlocks: fieldBlocks,
1766
- fieldCheckbox: fieldCheckbox,
1767
- fieldCode: fieldCode,
1768
- fieldColor: fieldThemeColor,
1769
- fieldConfigProps: fieldConfigProps,
1770
- fieldContainerProps: fieldContainerProps,
1771
- fieldContainerWidths: fieldContainerWidths,
1772
- fieldContentProps: fieldContentProps,
1773
- fieldDate: fieldDate,
1774
- fieldEmail: fieldEmail,
1775
- fieldFontSizes: fieldFontSizes,
1776
- fieldHeights: fieldHeights,
1777
- fieldJoin: fieldJoin,
1778
- fieldMargins: fieldMargins,
1779
- fieldMenuItems: fieldMenuItems,
1780
- fieldNumber: fieldNumber,
1781
- fieldPaddings: fieldPaddings,
1782
- fieldPoint: fieldPoint,
1783
- fieldRadioGroup: fieldRadioGroup,
1784
- fieldRelationship: fieldRelationship,
1785
- fieldRichText: fieldRichText,
1786
- fieldRoles: fieldRoles,
1787
- fieldSectionProps: fieldSectionProps,
1788
- fieldSectionTabs: fieldSectionTabs,
1789
- fieldSelect: fieldSelect,
1790
- fieldText: fieldText,
1791
- fieldTextArea: fieldTextArea,
1792
- fieldUpload: fieldUpload,
1793
- fieldViewportHeights: fieldViewportHeights
1794
- });
1795
-
1796
- exports.fieldAction = fieldAction;
1797
- exports.fieldArray = fieldArray;
1798
- exports.fieldBlocks = fieldBlocks;
1799
- exports.fieldCheckbox = fieldCheckbox;
1800
- exports.fieldCode = fieldCode;
1801
- exports.fieldColor = fieldThemeColor;
1802
- exports.fieldConfigProps = fieldConfigProps;
1803
- exports.fieldContainerProps = fieldContainerProps;
1804
- exports.fieldContainerWidths = fieldContainerWidths;
1805
- exports.fieldContentProps = fieldContentProps;
1806
- exports.fieldDate = fieldDate;
1807
- exports.fieldEmail = fieldEmail;
1808
- exports.fieldFontSizes = fieldFontSizes;
1809
- exports.fieldHeights = fieldHeights;
1810
- exports.fieldJoin = fieldJoin;
1811
- exports.fieldMargins = fieldMargins;
1812
- exports.fieldMenuItems = fieldMenuItems;
1813
- exports.fieldNumber = fieldNumber;
1814
- exports.fieldPaddings = fieldPaddings;
1815
- exports.fieldPoint = fieldPoint;
1816
- exports.fieldRadioGroup = fieldRadioGroup;
1817
- exports.fieldRelationship = fieldRelationship;
1818
- exports.fieldRichText = fieldRichText;
1819
- exports.fieldRoles = fieldRoles;
1820
- exports.fieldSectionProps = fieldSectionProps;
1821
- exports.fieldSectionTabs = fieldSectionTabs;
1822
- exports.fieldSelect = fieldSelect;
1823
- exports.fieldText = fieldText;
1824
- exports.fieldTextArea = fieldTextArea;
1825
- exports.fieldUpload = fieldUpload;
1826
- exports.fieldViewportHeights = fieldViewportHeights;
1827
- exports.index = index;
1828
- exports.index$1 = index$1;
3
+ var fieldRoles = require('../fieldRoles-CVvtwYrZ.js');
4
+ var fields_index = require('../index-BsQFx-nI.js');
5
+
6
+
7
+
8
+ exports.fieldArray = fieldRoles.fieldArray;
9
+ exports.fieldRoles = fieldRoles.fieldRoles;
10
+ exports.fieldSelect = fieldRoles.fieldSelect;
11
+ exports.fieldText = fieldRoles.fieldText;
12
+ exports.fieldUpload = fieldRoles.fieldUpload;
13
+ exports.fieldAction = fields_index.fieldAction;
14
+ exports.fieldBlocks = fields_index.fieldBlocks;
15
+ exports.fieldCheckbox = fields_index.fieldCheckbox;
16
+ exports.fieldCode = fields_index.fieldCode;
17
+ exports.fieldColor = fields_index.fieldThemeColor;
18
+ exports.fieldConfigProps = fields_index.fieldConfigProps;
19
+ exports.fieldContainerProps = fields_index.fieldContainerProps;
20
+ exports.fieldContainerWidths = fields_index.fieldContainerWidths;
21
+ exports.fieldContentProps = fields_index.fieldContentProps;
22
+ exports.fieldDate = fields_index.fieldDate;
23
+ exports.fieldEmail = fields_index.fieldEmail;
24
+ exports.fieldFontSizes = fields_index.fieldFontSizes;
25
+ exports.fieldHeights = fields_index.fieldHeights;
26
+ exports.fieldJoin = fields_index.fieldJoin;
27
+ exports.fieldMargins = fields_index.fieldMargins;
28
+ exports.fieldMenuItems = fields_index.fieldMenuItems;
29
+ exports.fieldNumber = fields_index.fieldNumber;
30
+ exports.fieldPaddings = fields_index.fieldPaddings;
31
+ exports.fieldPoint = fields_index.fieldPoint;
32
+ exports.fieldRadioGroup = fields_index.fieldRadioGroup;
33
+ exports.fieldRelationship = fields_index.fieldRelationship;
34
+ exports.fieldRichText = fields_index.fieldRichText;
35
+ exports.fieldSectionProps = fields_index.fieldSectionProps;
36
+ exports.fieldSectionTabs = fields_index.fieldSectionTabs;
37
+ exports.fieldTextArea = fields_index.fieldTextArea;
38
+ exports.fieldViewportHeights = fields_index.fieldViewportHeights;
1829
39
  //# sourceMappingURL=index.cjs.js.map