@woodylab/payload 0.0.7 → 0.0.8

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.
@@ -156,35 +156,1210 @@ const fieldSelect = (override) => ({
156
156
  ...override
157
157
  });
158
158
 
159
- const fieldSemantic = (override) => ({
160
- name: 'list',
161
- label: 'List',
162
- type: 'array',
163
- fields: [],
164
- required: false,
165
- ...override,
159
+ const fieldContainerProps = (customFields = []) => {
160
+ return {
161
+ name: 'ctrP',
162
+ label: 'Proprietà container',
163
+ type: 'group',
164
+ fields: [
165
+ ...customFields,
166
+ fieldRichText({ name: 'body', label: 'Contenuto', required: false }),
167
+ fieldContainerWidths(),
168
+ {
169
+ type: 'tabs',
170
+ tabs: [
171
+ {
172
+ label: 'Stile',
173
+ fields: [
174
+ fieldUpload('media', { name: 'bgi', label: 'Immagine di sfondo' }),
175
+ //WFieldColor({name:'bgc', label:'Colore di sfondo', required:false}),
176
+ {
177
+ name: 'borderRadius',
178
+ type: 'select',
179
+ label: 'Angoli arrotondati',
180
+ defaultValue: 'rounded-none',
181
+ options: [
182
+ { label: 'Nessuno', value: 'rounded-none' },
183
+ { label: 'Piccolo', value: 'rounded-sm' },
184
+ { label: 'Medio', value: 'rounded-md' },
185
+ { label: 'Grande', value: 'rounded-lg' },
186
+ { label: 'Extra Grande', value: 'rounded-xl' },
187
+ { label: 'Massimo', value: 'rounded-full' },
188
+ ],
189
+ admin: {
190
+ width: '50%',
191
+ description: 'Imposta lo stile degli angoli arrotondati del contenitore.',
192
+ },
193
+ },
194
+ {
195
+ name: 'boxShadow',
196
+ type: 'select',
197
+ label: 'Ombra contenitore',
198
+ defaultValue: 'shadow-none', // Default: nessuna ombra
199
+ options: [
200
+ { label: 'Nessuna', value: 'shadow-none' },
201
+ { label: 'Piccola', value: 'shadow-sm' },
202
+ { label: 'Normale', value: 'shadow' },
203
+ { label: 'Media', value: 'shadow-md' },
204
+ { label: 'Grande', value: 'shadow-lg' },
205
+ { label: 'Extra Grande', value: 'shadow-xl' },
206
+ { label: 'Massima', value: 'shadow-2xl' },
207
+ ],
208
+ admin: {
209
+ width: '50%',
210
+ description: 'Imposta lo stile dell\'ombra per il contenitore.',
211
+ },
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ label: 'Dimensioni',
217
+ fields: [
218
+ fieldHeights(),
219
+ {
220
+ type: 'tabs',
221
+ tabs: [
222
+ {
223
+ label: 'Margini',
224
+ fields: [
225
+ fieldMargins()
226
+ ]
227
+ },
228
+ {
229
+ label: 'Paddings',
230
+ fields: [
231
+ fieldPaddings()
232
+ ]
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ }
238
+ ]
239
+ },
240
+ ]
241
+ };
242
+ };
243
+
244
+ const fieldConfigProps = (customFields = []) => {
245
+ return {
246
+ name: 'config',
247
+ label: 'Configurazione',
248
+ type: 'group',
249
+ fields: [
250
+ ...customFields,
251
+ ],
252
+ };
253
+ };
254
+
255
+ const fieldContentProps = (customFields = []) => {
256
+ return {
257
+ name: 'cntP',
258
+ label: 'Contenuto',
259
+ type: 'group',
260
+ fields: [
261
+ ...customFields,
262
+ ],
263
+ };
264
+ };
265
+
266
+ /**
267
+ * Costante che definisce le varianti di larghezza del container come classi Tailwind
268
+ */
269
+ const TailwindContainerWidths = [
270
+ 'container',
271
+ 'container-sm',
272
+ 'container-md',
273
+ 'container-lg',
274
+ 'container-xl',
275
+ 'container-2xl',
276
+ ];
277
+ /**
278
+ * Costante che contiene tutte le varianti di altezza relativa alla viewport
279
+ */
280
+ const TailwindViewportHeights = [
281
+ 'screen',
282
+ '1/5-vh',
283
+ '1/4-vh',
284
+ '1/3-vh',
285
+ '2/5-vh',
286
+ '1/2-vh',
287
+ '3/5-vh',
288
+ '2/3-vh',
289
+ '3/4-vh',
290
+ '4/5-vh',
291
+ ];
292
+ /**
293
+ * Costante che contiene tutte le varianti "h-" per altezza globale, incluse le altre classi layout per le altezze
294
+ */
295
+ const TailwindHeights = [
296
+ // Classi dinamiche
297
+ 'auto', // Altezza automatica
298
+ 'min', // Altezza minima (adatta al contenuto minimo)
299
+ 'max', // Altezza massima (adatta al contenuto massimo)
300
+ 'fit', // Altezza si adatta al contenuto
301
+ 'full', // Altezza piena (100% del contenitore genitore)
302
+ // Altezza proporzionale
303
+ '1/2', // 50% dell'altezza disponibile
304
+ '1/3', // 33.333% dell'altezza disponibile
305
+ '2/3', // 66.666% dell'altezza disponibile
306
+ '1/4', // 25% dell'altezza disponibile
307
+ '3/4', // 75% dell'altezza disponibile
308
+ // Varianti numeriche da 1 a 96
309
+ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
310
+ '11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
311
+ '21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
312
+ '31', '32', '33', '34', '35', '36', '37', '38', '39', '40',
313
+ '41', '42', '43', '44', '45', '46', '47', '48', '49', '50',
314
+ '51', '52', '53', '54', '55', '56', '57', '58', '59', '60',
315
+ '61', '62', '63', '64', '65', '66', '67', '68', '69', '70',
316
+ '71', '72', '73', '74', '75', '76', '77', '78', '79', '80',
317
+ '81', '82', '83', '84', '85', '86', '87', '88', '89', '90',
318
+ '91', '92', '93', '94', '95', '96'
319
+ ];
320
+ /**
321
+ * Costante che contiene tutte le varianti "m-" mer madding globale, fino a 96
322
+ */
323
+ const TailwindMargins = [
324
+ 'm-1', 'm-2', 'm-3', 'm-4', 'm-5', 'm-6', 'm-7', 'm-8', 'm-9', 'm-10',
325
+ 'm-11', 'm-12', 'm-13', 'm-14', 'm-15', 'm-16', 'm-17', 'm-18', 'm-19', 'm-20',
326
+ 'm-21', 'm-22', 'm-23', 'm-24', 'm-25', 'm-26', 'm-27', 'm-28', 'm-29', 'm-30',
327
+ 'm-31', 'm-32', 'm-33', 'm-34', 'm-35', 'm-36', 'm-37', 'm-38', 'm-39', 'm-40',
328
+ 'm-41', 'm-42', 'm-43', 'm-44', 'm-45', 'm-46', 'm-47', 'm-48', 'm-49', 'm-50',
329
+ 'm-51', 'm-52', 'm-53', 'm-54', 'm-55', 'm-56', 'm-57', 'm-58', 'm-59', 'm-60',
330
+ 'm-61', 'm-62', 'm-63', 'm-64', 'm-65', 'm-66', 'm-67', 'm-68', 'm-69', 'm-70',
331
+ 'm-71', 'm-72', 'm-73', 'm-74', 'm-75', 'm-76', 'm-77', 'm-78', 'm-79', 'm-80',
332
+ 'm-81', 'm-82', 'm-83', 'm-84', 'm-85', 'm-86', 'm-87', 'm-88', 'm-89', 'm-90',
333
+ 'm-91', 'm-92', 'm-93', 'm-94', 'm-95', 'm-96',
334
+ // Varianti negative
335
+ '-m-1', '-m-2', '-m-3', '-m-4', '-m-5', '-m-6', '-m-7', '-m-8', '-m-9', '-m-10',
336
+ '-m-11', '-m-12', '-m-13', '-m-14', '-m-15', '-m-16', '-m-17', '-m-18', '-m-19', '-m-20',
337
+ '-m-21', '-m-22', '-m-23', '-m-24', '-m-25', '-m-26', '-m-27', '-m-28', '-m-29', '-m-30',
338
+ '-m-31', '-m-32', '-m-33', '-m-34', '-m-35', '-m-36', '-m-37', '-m-38', '-m-39', '-m-40',
339
+ '-m-41', '-m-42', '-m-43', '-m-44', '-m-45', '-m-46', '-m-47', '-m-48', '-m-49', '-m-50',
340
+ '-m-51', '-m-52', '-m-53', '-m-54', '-m-55', '-m-56', '-m-57', '-m-58', '-m-59', '-m-60',
341
+ '-m-61', '-m-62', '-m-63', '-m-64', '-m-65', '-m-66', '-m-67', '-m-68', '-m-69', '-m-70',
342
+ '-m-71', '-m-72', '-m-73', '-m-74', '-m-75', '-m-76', '-m-77', '-m-78', '-m-79', '-m-80',
343
+ '-m-81', '-m-82', '-m-83', '-m-84', '-m-85', '-m-86', '-m-87', '-m-88', '-m-89', '-m-90',
344
+ '-m-91', '-m-92', '-m-93', '-m-94', '-m-95', '-m-96',
345
+ ];
346
+ /**
347
+ * Costante che contiene tutte le varianti "mx-" mer madding orizzontale, fino a 96
348
+ */
349
+ const TailwindMargins_X = [
350
+ // Varianti positive
351
+ 'mx-1', 'mx-2', 'mx-3', 'mx-4', 'mx-5', 'mx-6', 'mx-7', 'mx-8', 'mx-9', 'mx-10',
352
+ 'mx-11', 'mx-12', 'mx-13', 'mx-14', 'mx-15', 'mx-16', 'mx-17', 'mx-18', 'mx-19', 'mx-20',
353
+ 'mx-21', 'mx-22', 'mx-23', 'mx-24', 'mx-25', 'mx-26', 'mx-27', 'mx-28', 'mx-29', 'mx-30',
354
+ 'mx-31', 'mx-32', 'mx-33', 'mx-34', 'mx-35', 'mx-36', 'mx-37', 'mx-38', 'mx-39', 'mx-40',
355
+ 'mx-41', 'mx-42', 'mx-43', 'mx-44', 'mx-45', 'mx-46', 'mx-47', 'mx-48', 'mx-49', 'mx-50',
356
+ 'mx-51', 'mx-52', 'mx-53', 'mx-54', 'mx-55', 'mx-56', 'mx-57', 'mx-58', 'mx-59', 'mx-60',
357
+ 'mx-61', 'mx-62', 'mx-63', 'mx-64', 'mx-65', 'mx-66', 'mx-67', 'mx-68', 'mx-69', 'mx-70',
358
+ 'mx-71', 'mx-72', 'mx-73', 'mx-74', 'mx-75', 'mx-76', 'mx-77', 'mx-78', 'mx-79', 'mx-80',
359
+ 'mx-81', 'mx-82', 'mx-83', 'mx-84', 'mx-85', 'mx-86', 'mx-87', 'mx-88', 'mx-89', 'mx-90',
360
+ 'mx-91', 'mx-92', 'mx-93', 'mx-94', 'mx-95', 'mx-96',
361
+ // Varianti negative
362
+ '-mx-1', '-mx-2', '-mx-3', '-mx-4', '-mx-5', '-mx-6', '-mx-7', '-mx-8', '-mx-9', '-mx-10',
363
+ '-mx-11', '-mx-12', '-mx-13', '-mx-14', '-mx-15', '-mx-16', '-mx-17', '-mx-18', '-mx-19', '-mx-20',
364
+ '-mx-21', '-mx-22', '-mx-23', '-mx-24', '-mx-25', '-mx-26', '-mx-27', '-mx-28', '-mx-29', '-mx-30',
365
+ '-mx-31', '-mx-32', '-mx-33', '-mx-34', '-mx-35', '-mx-36', '-mx-37', '-mx-38', '-mx-39', '-mx-40',
366
+ '-mx-41', '-mx-42', '-mx-43', '-mx-44', '-mx-45', '-mx-46', '-mx-47', '-mx-48', '-mx-49', '-mx-50',
367
+ '-mx-51', '-mx-52', '-mx-53', '-mx-54', '-mx-55', '-mx-56', '-mx-57', '-mx-58', '-mx-59', '-mx-60',
368
+ '-mx-61', '-mx-62', '-mx-63', '-mx-64', '-mx-65', '-mx-66', '-mx-67', '-mx-68', '-mx-69', '-mx-70',
369
+ '-mx-71', '-mx-72', '-mx-73', '-mx-74', '-mx-75', '-mx-76', '-mx-77', '-mx-78', '-mx-79', '-mx-80',
370
+ '-mx-81', '-mx-82', '-mx-83', '-mx-84', '-mx-85', '-mx-86', '-mx-87', '-mx-88', '-mx-89', '-mx-90',
371
+ '-mx-91', '-mx-92', '-mx-93', '-mx-94', '-mx-95', '-mx-96',
372
+ ];
373
+ /**
374
+ * Costante che contiene tutte le varianti "my-" mer madding verticale, fino a 96
375
+ */
376
+ const TailwindMargins_Y = [
377
+ // Varianti positive
378
+ 'my-1', 'my-2', 'my-3', 'my-4', 'my-5', 'my-6', 'my-7', 'my-8', 'my-9', 'my-10',
379
+ 'my-11', 'my-12', 'my-13', 'my-14', 'my-15', 'my-16', 'my-17', 'my-18', 'my-19', 'my-20',
380
+ 'my-21', 'my-22', 'my-23', 'my-24', 'my-25', 'my-26', 'my-27', 'my-28', 'my-29', 'my-30',
381
+ 'my-31', 'my-32', 'my-33', 'my-34', 'my-35', 'my-36', 'my-37', 'my-38', 'my-39', 'my-40',
382
+ 'my-41', 'my-42', 'my-43', 'my-44', 'my-45', 'my-46', 'my-47', 'my-48', 'my-49', 'my-50',
383
+ 'my-51', 'my-52', 'my-53', 'my-54', 'my-55', 'my-56', 'my-57', 'my-58', 'my-59', 'my-60',
384
+ 'my-61', 'my-62', 'my-63', 'my-64', 'my-65', 'my-66', 'my-67', 'my-68', 'my-69', 'my-70',
385
+ 'my-71', 'my-72', 'my-73', 'my-74', 'my-75', 'my-76', 'my-77', 'my-78', 'my-79', 'my-80',
386
+ 'my-81', 'my-82', 'my-83', 'my-84', 'my-85', 'my-86', 'my-87', 'my-88', 'my-89', 'my-90',
387
+ 'my-91', 'my-92', 'my-93', 'my-94', 'my-95', 'my-96',
388
+ // Varianti negative
389
+ '-my-1', '-my-2', '-my-3', '-my-4', '-my-5', '-my-6', '-my-7', '-my-8', '-my-9', '-my-10',
390
+ '-my-11', '-my-12', '-my-13', '-my-14', '-my-15', '-my-16', '-my-17', '-my-18', '-my-19', '-my-20',
391
+ '-my-21', '-my-22', '-my-23', '-my-24', '-my-25', '-my-26', '-my-27', '-my-28', '-my-29', '-my-30',
392
+ '-my-31', '-my-32', '-my-33', '-my-34', '-my-35', '-my-36', '-my-37', '-my-38', '-my-39', '-my-40',
393
+ '-my-41', '-my-42', '-my-43', '-my-44', '-my-45', '-my-46', '-my-47', '-my-48', '-my-49', '-my-50',
394
+ '-my-51', '-my-52', '-my-53', '-my-54', '-my-55', '-my-56', '-my-57', '-my-58', '-my-59', '-my-60',
395
+ '-my-61', '-my-62', '-my-63', '-my-64', '-my-65', '-my-66', '-my-67', '-my-68', '-my-69', '-my-70',
396
+ '-my-71', '-my-72', '-my-73', '-my-74', '-my-75', '-my-76', '-my-77', '-my-78', '-my-79', '-my-80',
397
+ '-my-81', '-my-82', '-my-83', '-my-84', '-my-85', '-my-86', '-my-87', '-my-88', '-my-89', '-my-90',
398
+ '-my-91', '-my-92', '-my-93', '-my-94', '-my-95', '-my-96',
399
+ ];
400
+ /**
401
+ * Costante che contiene tutte le varianti "mt-" mer madding sumeriore, fino a 96
402
+ */
403
+ const TailwindMargins_T = [
404
+ // Varianti positive
405
+ 'mt-1', 'mt-2', 'mt-3', 'mt-4', 'mt-5', 'mt-6', 'mt-7', 'mt-8', 'mt-9', 'mt-10',
406
+ 'mt-11', 'mt-12', 'mt-13', 'mt-14', 'mt-15', 'mt-16', 'mt-17', 'mt-18', 'mt-19', 'mt-20',
407
+ 'mt-21', 'mt-22', 'mt-23', 'mt-24', 'mt-25', 'mt-26', 'mt-27', 'mt-28', 'mt-29', 'mt-30',
408
+ 'mt-31', 'mt-32', 'mt-33', 'mt-34', 'mt-35', 'mt-36', 'mt-37', 'mt-38', 'mt-39', 'mt-40',
409
+ 'mt-41', 'mt-42', 'mt-43', 'mt-44', 'mt-45', 'mt-46', 'mt-47', 'mt-48', 'mt-49', 'mt-50',
410
+ 'mt-51', 'mt-52', 'mt-53', 'mt-54', 'mt-55', 'mt-56', 'mt-57', 'mt-58', 'mt-59', 'mt-60',
411
+ 'mt-61', 'mt-62', 'mt-63', 'mt-64', 'mt-65', 'mt-66', 'mt-67', 'mt-68', 'mt-69', 'mt-70',
412
+ 'mt-71', 'mt-72', 'mt-73', 'mt-74', 'mt-75', 'mt-76', 'mt-77', 'mt-78', 'mt-79', 'mt-80',
413
+ 'mt-81', 'mt-82', 'mt-83', 'mt-84', 'mt-85', 'mt-86', 'mt-87', 'mt-88', 'mt-89', 'mt-90',
414
+ 'mt-91', 'mt-92', 'mt-93', 'mt-94', 'mt-95', 'mt-96',
415
+ // Varianti negative
416
+ '-mt-1', '-mt-2', '-mt-3', '-mt-4', '-mt-5', '-mt-6', '-mt-7', '-mt-8', '-mt-9', '-mt-10',
417
+ '-mt-11', '-mt-12', '-mt-13', '-mt-14', '-mt-15', '-mt-16', '-mt-17', '-mt-18', '-mt-19', '-mt-20',
418
+ '-mt-21', '-mt-22', '-mt-23', '-mt-24', '-mt-25', '-mt-26', '-mt-27', '-mt-28', '-mt-29', '-mt-30',
419
+ '-mt-31', '-mt-32', '-mt-33', '-mt-34', '-mt-35', '-mt-36', '-mt-37', '-mt-38', '-mt-39', '-mt-40',
420
+ '-mt-41', '-mt-42', '-mt-43', '-mt-44', '-mt-45', '-mt-46', '-mt-47', '-mt-48', '-mt-49', '-mt-50',
421
+ '-mt-51', '-mt-52', '-mt-53', '-mt-54', '-mt-55', '-mt-56', '-mt-57', '-mt-58', '-mt-59', '-mt-60',
422
+ '-mt-61', '-mt-62', '-mt-63', '-mt-64', '-mt-65', '-mt-66', '-mt-67', '-mt-68', '-mt-69', '-mt-70',
423
+ '-mt-71', '-mt-72', '-mt-73', '-mt-74', '-mt-75', '-mt-76', '-mt-77', '-mt-78', '-mt-79', '-mt-80',
424
+ '-mt-81', '-mt-82', '-mt-83', '-mt-84', '-mt-85', '-mt-86', '-mt-87', '-mt-88', '-mt-89', '-mt-90',
425
+ '-mt-91', '-mt-92', '-mt-93', '-mt-94', '-mt-95', '-mt-96',
426
+ ];
427
+ /**
428
+ * Costante che contiene tutte le varianti "mr-" mer madding a destra, fino a 96
429
+ */
430
+ const TailwindMargins_R = [
431
+ // Varianti positive
432
+ 'mr-1', 'mr-2', 'mr-3', 'mr-4', 'mr-5', 'mr-6', 'mr-7', 'mr-8', 'mr-9', 'mr-10',
433
+ 'mr-11', 'mr-12', 'mr-13', 'mr-14', 'mr-15', 'mr-16', 'mr-17', 'mr-18', 'mr-19', 'mr-20',
434
+ 'mr-21', 'mr-22', 'mr-23', 'mr-24', 'mr-25', 'mr-26', 'mr-27', 'mr-28', 'mr-29', 'mr-30',
435
+ 'mr-31', 'mr-32', 'mr-33', 'mr-34', 'mr-35', 'mr-36', 'mr-37', 'mr-38', 'mr-39', 'mr-40',
436
+ 'mr-41', 'mr-42', 'mr-43', 'mr-44', 'mr-45', 'mr-46', 'mr-47', 'mr-48', 'mr-49', 'mr-50',
437
+ 'mr-51', 'mr-52', 'mr-53', 'mr-54', 'mr-55', 'mr-56', 'mr-57', 'mr-58', 'mr-59', 'mr-60',
438
+ 'mr-61', 'mr-62', 'mr-63', 'mr-64', 'mr-65', 'mr-66', 'mr-67', 'mr-68', 'mr-69', 'mr-70',
439
+ 'mr-71', 'mr-72', 'mr-73', 'mr-74', 'mr-75', 'mr-76', 'mr-77', 'mr-78', 'mr-79', 'mr-80',
440
+ 'mr-81', 'mr-82', 'mr-83', 'mr-84', 'mr-85', 'mr-86', 'mr-87', 'mr-88', 'mr-89', 'mr-90',
441
+ 'mr-91', 'mr-92', 'mr-93', 'mr-94', 'mr-95', 'mr-96',
442
+ // Varianti negative
443
+ '-mr-1', '-mr-2', '-mr-3', '-mr-4', '-mr-5', '-mr-6', '-mr-7', '-mr-8', '-mr-9', '-mr-10',
444
+ '-mr-11', '-mr-12', '-mr-13', '-mr-14', '-mr-15', '-mr-16', '-mr-17', '-mr-18', '-mr-19', '-mr-20',
445
+ '-mr-21', '-mr-22', '-mr-23', '-mr-24', '-mr-25', '-mr-26', '-mr-27', '-mr-28', '-mr-29', '-mr-30',
446
+ '-mr-31', '-mr-32', '-mr-33', '-mr-34', '-mr-35', '-mr-36', '-mr-37', '-mr-38', '-mr-39', '-mr-40',
447
+ '-mr-41', '-mr-42', '-mr-43', '-mr-44', '-mr-45', '-mr-46', '-mr-47', '-mr-48', '-mr-49', '-mr-50',
448
+ '-mr-51', '-mr-52', '-mr-53', '-mr-54', '-mr-55', '-mr-56', '-mr-57', '-mr-58', '-mr-59', '-mr-60',
449
+ '-mr-61', '-mr-62', '-mr-63', '-mr-64', '-mr-65', '-mr-66', '-mr-67', '-mr-68', '-mr-69', '-mr-70',
450
+ '-mr-71', '-mr-72', '-mr-73', '-mr-74', '-mr-75', '-mr-76', '-mr-77', '-mr-78', '-mr-79', '-mr-80',
451
+ '-mr-81', '-mr-82', '-mr-83', '-mr-84', '-mr-85', '-mr-86', '-mr-87', '-mr-88', '-mr-89', '-mr-90',
452
+ '-mr-91', '-mr-92', '-mr-93', '-mr-94', '-mr-95', '-mr-96',
453
+ ];
454
+ /**
455
+ * Costante che contiene tutte le varianti "mb-" mer madding inferiore, fino a 96
456
+ */
457
+ const TailwindMargins_L = [
458
+ // Varianti positive
459
+ 'ml-1', 'ml-2', 'ml-3', 'ml-4', 'ml-5', 'ml-6', 'ml-7', 'ml-8', 'ml-9', 'ml-10',
460
+ 'ml-11', 'ml-12', 'ml-13', 'ml-14', 'ml-15', 'ml-16', 'ml-17', 'ml-18', 'ml-19', 'ml-20',
461
+ 'ml-21', 'ml-22', 'ml-23', 'ml-24', 'ml-25', 'ml-26', 'ml-27', 'ml-28', 'ml-29', 'ml-30',
462
+ 'ml-31', 'ml-32', 'ml-33', 'ml-34', 'ml-35', 'ml-36', 'ml-37', 'ml-38', 'ml-39', 'ml-40',
463
+ 'ml-41', 'ml-42', 'ml-43', 'ml-44', 'ml-45', 'ml-46', 'ml-47', 'ml-48', 'ml-49', 'ml-50',
464
+ 'ml-51', 'ml-52', 'ml-53', 'ml-54', 'ml-55', 'ml-56', 'ml-57', 'ml-58', 'ml-59', 'ml-60',
465
+ 'ml-61', 'ml-62', 'ml-63', 'ml-64', 'ml-65', 'ml-66', 'ml-67', 'ml-68', 'ml-69', 'ml-70',
466
+ 'ml-71', 'ml-72', 'ml-73', 'ml-74', 'ml-75', 'ml-76', 'ml-77', 'ml-78', 'ml-79', 'ml-80',
467
+ 'ml-81', 'ml-82', 'ml-83', 'ml-84', 'ml-85', 'ml-86', 'ml-87', 'ml-88', 'ml-89', 'ml-90',
468
+ 'ml-91', 'ml-92', 'ml-93', 'ml-94', 'ml-95', 'ml-96',
469
+ // Varianti negative
470
+ '-ml-1', '-ml-2', '-ml-3', '-ml-4', '-ml-5', '-ml-6', '-ml-7', '-ml-8', '-ml-9', '-ml-10',
471
+ '-ml-11', '-ml-12', '-ml-13', '-ml-14', '-ml-15', '-ml-16', '-ml-17', '-ml-18', '-ml-19', '-ml-20',
472
+ '-ml-21', '-ml-22', '-ml-23', '-ml-24', '-ml-25', '-ml-26', '-ml-27', '-ml-28', '-ml-29', '-ml-30',
473
+ '-ml-31', '-ml-32', '-ml-33', '-ml-34', '-ml-35', '-ml-36', '-ml-37', '-ml-38', '-ml-39', '-ml-40',
474
+ '-ml-41', '-ml-42', '-ml-43', '-ml-44', '-ml-45', '-ml-46', '-ml-47', '-ml-48', '-ml-49', '-ml-50',
475
+ '-ml-51', '-ml-52', '-ml-53', '-ml-54', '-ml-55', '-ml-56', '-ml-57', '-ml-58', '-ml-59', '-ml-60',
476
+ '-ml-61', '-ml-62', '-ml-63', '-ml-64', '-ml-65', '-ml-66', '-ml-67', '-ml-68', '-ml-69', '-ml-70',
477
+ '-ml-71', '-ml-72', '-ml-73', '-ml-74', '-ml-75', '-ml-76', '-ml-77', '-ml-78', '-ml-79', '-ml-80',
478
+ '-ml-81', '-ml-82', '-ml-83', '-ml-84', '-ml-85', '-ml-86', '-ml-87', '-ml-88', '-ml-89', '-ml-90',
479
+ '-ml-91', '-ml-92', '-ml-93', '-ml-94', '-ml-95', '-ml-96',
480
+ ];
481
+ const TailwindMargins_B = [
482
+ // Varianti positive
483
+ 'mb-1', 'mb-2', 'mb-3', 'mb-4', 'mb-5', 'mb-6', 'mb-7', 'mb-8', 'mb-9', 'mb-10',
484
+ 'mb-11', 'mb-12', 'mb-13', 'mb-14', 'mb-15', 'mb-16', 'mb-17', 'mb-18', 'mb-19', 'mb-20',
485
+ 'mb-21', 'mb-22', 'mb-23', 'mb-24', 'mb-25', 'mb-26', 'mb-27', 'mb-28', 'mb-29', 'mb-30',
486
+ 'mb-31', 'mb-32', 'mb-33', 'mb-34', 'mb-35', 'mb-36', 'mb-37', 'mb-38', 'mb-39', 'mb-40',
487
+ 'mb-41', 'mb-42', 'mb-43', 'mb-44', 'mb-45', 'mb-46', 'mb-47', 'mb-48', 'mb-49', 'mb-50',
488
+ 'mb-51', 'mb-52', 'mb-53', 'mb-54', 'mb-55', 'mb-56', 'mb-57', 'mb-58', 'mb-59', 'mb-60',
489
+ 'mb-61', 'mb-62', 'mb-63', 'mb-64', 'mb-65', 'mb-66', 'mb-67', 'mb-68', 'mb-69', 'mb-70',
490
+ 'mb-71', 'mb-72', 'mb-73', 'mb-74', 'mb-75', 'mb-76', 'mb-77', 'mb-78', 'mb-79', 'mb-80',
491
+ 'mb-81', 'mb-82', 'mb-83', 'mb-84', 'mb-85', 'mb-86', 'mb-87', 'mb-88', 'mb-89', 'mb-90',
492
+ 'mb-91', 'mb-92', 'mb-93', 'mb-94', 'mb-95', 'mb-96',
493
+ // Varianti negative
494
+ '-mb-1', '-mb-2', '-mb-3', '-mb-4', '-mb-5', '-mb-6', '-mb-7', '-mb-8', '-mb-9', '-mb-10',
495
+ '-mb-11', '-mb-12', '-mb-13', '-mb-14', '-mb-15', '-mb-16', '-mb-17', '-mb-18', '-mb-19', '-mb-20',
496
+ '-mb-21', '-mb-22', '-mb-23', '-mb-24', '-mb-25', '-mb-26', '-mb-27', '-mb-28', '-mb-29', '-mb-30',
497
+ '-mb-31', '-mb-32', '-mb-33', '-mb-34', '-mb-35', '-mb-36', '-mb-37', '-mb-38', '-mb-39', '-mb-40',
498
+ '-mb-41', '-mb-42', '-mb-43', '-mb-44', '-mb-45', '-mb-46', '-mb-47', '-mb-48', '-mb-49', '-mb-50',
499
+ '-mb-51', '-mb-52', '-mb-53', '-mb-54', '-mb-55', '-mb-56', '-mb-57', '-mb-58', '-mb-59', '-mb-60',
500
+ '-mb-61', '-mb-62', '-mb-63', '-mb-64', '-mb-65', '-mb-66', '-mb-67', '-mb-68', '-mb-69', '-mb-70',
501
+ '-mb-71', '-mb-72', '-mb-73', '-mb-74', '-mb-75', '-mb-76', '-mb-77', '-mb-78', '-mb-79', '-mb-80',
502
+ '-mb-81', '-mb-82', '-mb-83', '-mb-84', '-mb-85', '-mb-86', '-mb-87', '-mb-88', '-mb-89', '-mb-90',
503
+ '-mb-91', '-mb-92', '-mb-93', '-mb-94', '-mb-95', '-mb-96',
504
+ ];
505
+ const TailwindMargins_ALL = [
506
+ ...TailwindMargins,
507
+ ...TailwindMargins_X,
508
+ ...TailwindMargins_Y,
509
+ ...TailwindMargins_T,
510
+ ...TailwindMargins_R,
511
+ ...TailwindMargins_L,
512
+ ...TailwindMargins_B
513
+ ];
514
+ /**
515
+ * Array di stringhe che rappresentano i multipli di 0.25rem da 0.25rem a 24rem
516
+ */
517
+ const TailwindMultipliers = [
518
+ "0",
519
+ "0.25rem",
520
+ "0.5rem",
521
+ "0.75rem",
522
+ "1rem",
523
+ "1.25rem",
524
+ "1.5rem",
525
+ "1.75rem",
526
+ "2rem",
527
+ "2.25rem",
528
+ "2.5rem",
529
+ "2.75rem",
530
+ "3rem",
531
+ "3.25rem",
532
+ "3.5rem",
533
+ "3.75rem",
534
+ "4rem",
535
+ "4.25rem",
536
+ "4.5rem",
537
+ "4.75rem",
538
+ "5rem",
539
+ "5.25rem",
540
+ "5.5rem",
541
+ "5.75rem",
542
+ "6rem",
543
+ "6.25rem",
544
+ "6.5rem",
545
+ "6.75rem",
546
+ "7rem",
547
+ "7.25rem",
548
+ "7.5rem",
549
+ "7.75rem",
550
+ "8rem",
551
+ "8.25rem",
552
+ "8.5rem",
553
+ "8.75rem",
554
+ "9rem",
555
+ "9.25rem",
556
+ "9.5rem",
557
+ "9.75rem",
558
+ "10rem",
559
+ "10.25rem",
560
+ "10.5rem",
561
+ "10.75rem",
562
+ "11rem",
563
+ "11.25rem",
564
+ "11.5rem",
565
+ "11.75rem",
566
+ "12rem",
567
+ "12.25rem",
568
+ "12.5rem",
569
+ "12.75rem",
570
+ "13rem",
571
+ "13.25rem",
572
+ "13.5rem",
573
+ "13.75rem",
574
+ "14rem",
575
+ "14.25rem",
576
+ "14.5rem",
577
+ "14.75rem",
578
+ "15rem",
579
+ "15.25rem",
580
+ "15.5rem",
581
+ "15.75rem",
582
+ "16rem",
583
+ "16.25rem",
584
+ "16.5rem",
585
+ "16.75rem",
586
+ "17rem",
587
+ "17.25rem",
588
+ "17.5rem",
589
+ "17.75rem",
590
+ "18rem",
591
+ "18.25rem",
592
+ "18.5rem",
593
+ "18.75rem",
594
+ "19rem",
595
+ "19.25rem",
596
+ "19.5rem",
597
+ "19.75rem",
598
+ "20rem",
599
+ "20.25rem",
600
+ "20.5rem",
601
+ "20.75rem",
602
+ "21rem",
603
+ "21.25rem",
604
+ "21.5rem",
605
+ "21.75rem",
606
+ "22rem",
607
+ "22.25rem",
608
+ "22.5rem",
609
+ "22.75rem",
610
+ "23rem",
611
+ "23.25rem",
612
+ "23.5rem",
613
+ "23.75rem",
614
+ "24rem"
615
+ ];
616
+ const TailwindViewportHeightMultipliers = {
617
+ '1/5-vh': '20vh',
618
+ '1/4-vh': '25vh',
619
+ '1/3-vh': '33.333vh',
620
+ '2/5-vh': '40vh',
621
+ '1/2-vh': '50vh',
622
+ '3/5-vh': '60vh',
623
+ '2/3-vh': '66.666vh',
624
+ '3/4-vh': '75vh',
625
+ '4/5-vh': '80vh',
626
+ };
627
+ /**
628
+ * Costante che contiene tutte le varianti "p-" per padding globale, fino a 96
629
+ */
630
+ const TailwindPaddings = [
631
+ 'p-1', 'p-2', 'p-3', 'p-4', 'p-5', 'p-6', 'p-7', 'p-8', 'p-9', 'p-10',
632
+ 'p-11', 'p-12', 'p-13', 'p-14', 'p-15', 'p-16', 'p-17', 'p-18', 'p-19', 'p-20',
633
+ 'p-21', 'p-22', 'p-23', 'p-24', 'p-25', 'p-26', 'p-27', 'p-28', 'p-29', 'p-30',
634
+ 'p-31', 'p-32', 'p-33', 'p-34', 'p-35', 'p-36', 'p-37', 'p-38', 'p-39', 'p-40',
635
+ 'p-41', 'p-42', 'p-43', 'p-44', 'p-45', 'p-46', 'p-47', 'p-48', 'p-49', 'p-50',
636
+ 'p-51', 'p-52', 'p-53', 'p-54', 'p-55', 'p-56', 'p-57', 'p-58', 'p-59', 'p-60',
637
+ 'p-61', 'p-62', 'p-63', 'p-64', 'p-65', 'p-66', 'p-67', 'p-68', 'p-69', 'p-70',
638
+ 'p-71', 'p-72', 'p-73', 'p-74', 'p-75', 'p-76', 'p-77', 'p-78', 'p-79', 'p-80',
639
+ 'p-81', 'p-82', 'p-83', 'p-84', 'p-85', 'p-86', 'p-87', 'p-88', 'p-89', 'p-90',
640
+ 'p-91', 'p-92', 'p-93', 'p-94', 'p-95', 'p-96',
641
+ ];
642
+ /**
643
+ * Costante che contiene tutte le varianti "px-" per padding orizzontale, fino a 96
644
+ */
645
+ const TailwindPaddings_X = [
646
+ 'px-1', 'px-2', 'px-3', 'px-4', 'px-5', 'px-6', 'px-7', 'px-8', 'px-9', 'px-10',
647
+ 'px-11', 'px-12', 'px-13', 'px-14', 'px-15', 'px-16', 'px-17', 'px-18', 'px-19', 'px-20',
648
+ 'px-21', 'px-22', 'px-23', 'px-24', 'px-25', 'px-26', 'px-27', 'px-28', 'px-29', 'px-30',
649
+ 'px-31', 'px-32', 'px-33', 'px-34', 'px-35', 'px-36', 'px-37', 'px-38', 'px-39', 'px-40',
650
+ 'px-41', 'px-42', 'px-43', 'px-44', 'px-45', 'px-46', 'px-47', 'px-48', 'px-49', 'px-50',
651
+ 'px-51', 'px-52', 'px-53', 'px-54', 'px-55', 'px-56', 'px-57', 'px-58', 'px-59', 'px-60',
652
+ 'px-61', 'px-62', 'px-63', 'px-64', 'px-65', 'px-66', 'px-67', 'px-68', 'px-69', 'px-70',
653
+ 'px-71', 'px-72', 'px-73', 'px-74', 'px-75', 'px-76', 'px-77', 'px-78', 'px-79', 'px-80',
654
+ 'px-81', 'px-82', 'px-83', 'px-84', 'px-85', 'px-86', 'px-87', 'px-88', 'px-89', 'px-90',
655
+ 'px-91', 'px-92', 'px-93', 'px-94', 'px-95', 'px-96',
656
+ ];
657
+ /**
658
+ * Costante che contiene tutte le varianti "py-" per padding verticale, fino a 96
659
+ */
660
+ const TailwindPaddings_Y = [
661
+ 'py-1', 'py-2', 'py-3', 'py-4', 'py-5', 'py-6', 'py-7', 'py-8', 'py-9', 'py-10',
662
+ 'py-11', 'py-12', 'py-13', 'py-14', 'py-15', 'py-16', 'py-17', 'py-18', 'py-19', 'py-20',
663
+ 'py-21', 'py-22', 'py-23', 'py-24', 'py-25', 'py-26', 'py-27', 'py-28', 'py-29', 'py-30',
664
+ 'py-31', 'py-32', 'py-33', 'py-34', 'py-35', 'py-36', 'py-37', 'py-38', 'py-39', 'py-40',
665
+ 'py-41', 'py-42', 'py-43', 'py-44', 'py-45', 'py-46', 'py-47', 'py-48', 'py-49', 'py-50',
666
+ 'py-51', 'py-52', 'py-53', 'py-54', 'py-55', 'py-56', 'py-57', 'py-58', 'py-59', 'py-60',
667
+ 'py-61', 'py-62', 'py-63', 'py-64', 'py-65', 'py-66', 'py-67', 'py-68', 'py-69', 'py-70',
668
+ 'py-71', 'py-72', 'py-73', 'py-74', 'py-75', 'py-76', 'py-77', 'py-78', 'py-79', 'py-80',
669
+ 'py-81', 'py-82', 'py-83', 'py-84', 'py-85', 'py-86', 'py-87', 'py-88', 'py-89', 'py-90',
670
+ 'py-91', 'py-92', 'py-93', 'py-94', 'py-95', 'py-96',
671
+ ];
672
+ /**
673
+ * Costante che contiene tutte le varianti "pt-" per padding superiore, fino a 96
674
+ */
675
+ const TailwindPaddings_T = [
676
+ 'pt-1', 'pt-2', 'pt-3', 'pt-4', 'pt-5', 'pt-6', 'pt-7', 'pt-8', 'pt-9', 'pt-10',
677
+ 'pt-11', 'pt-12', 'pt-13', 'pt-14', 'pt-15', 'pt-16', 'pt-17', 'pt-18', 'pt-19', 'pt-20',
678
+ 'pt-21', 'pt-22', 'pt-23', 'pt-24', 'pt-25', 'pt-26', 'pt-27', 'pt-28', 'pt-29', 'pt-30',
679
+ 'pt-31', 'pt-32', 'pt-33', 'pt-34', 'pt-35', 'pt-36', 'pt-37', 'pt-38', 'pt-39', 'pt-40',
680
+ 'pt-41', 'pt-42', 'pt-43', 'pt-44', 'pt-45', 'pt-46', 'pt-47', 'pt-48', 'pt-49', 'pt-50',
681
+ 'pt-51', 'pt-52', 'pt-53', 'pt-54', 'pt-55', 'pt-56', 'pt-57', 'pt-58', 'pt-59', 'pt-60',
682
+ 'pt-61', 'pt-62', 'pt-63', 'pt-64', 'pt-65', 'pt-66', 'pt-67', 'pt-68', 'pt-69', 'pt-70',
683
+ 'pt-71', 'pt-72', 'pt-73', 'pt-74', 'pt-75', 'pt-76', 'pt-77', 'pt-78', 'pt-79', 'pt-80',
684
+ 'pt-81', 'pt-82', 'pt-83', 'pt-84', 'pt-85', 'pt-86', 'pt-87', 'pt-88', 'pt-89', 'pt-90',
685
+ 'pt-91', 'pt-92', 'pt-93', 'pt-94', 'pt-95', 'pt-96',
686
+ ];
687
+ /**
688
+ * Costante che contiene tutte le varianti "pr-" per padding a destra, fino a 96
689
+ */
690
+ const TailwindPaddings_R = [
691
+ 'pr-1', 'pr-2', 'pr-3', 'pr-4', 'pr-5', 'pr-6', 'pr-7', 'pr-8', 'pr-9', 'pr-10',
692
+ 'pr-11', 'pr-12', 'pr-13', 'pr-14', 'pr-15', 'pr-16', 'pr-17', 'pr-18', 'pr-19', 'pr-20',
693
+ 'pr-21', 'pr-22', 'pr-23', 'pr-24', 'pr-25', 'pr-26', 'pr-27', 'pr-28', 'pr-29', 'pr-30',
694
+ 'pr-31', 'pr-32', 'pr-33', 'pr-34', 'pr-35', 'pr-36', 'pr-37', 'pr-38', 'pr-39', 'pr-40',
695
+ 'pr-41', 'pr-42', 'pr-43', 'pr-44', 'pr-45', 'pr-46', 'pr-47', 'pr-48', 'pr-49', 'pr-50',
696
+ 'pr-51', 'pr-52', 'pr-53', 'pr-54', 'pr-55', 'pr-56', 'pr-57', 'pr-58', 'pr-59', 'pr-60',
697
+ 'pr-61', 'pr-62', 'pr-63', 'pr-64', 'pr-65', 'pr-66', 'pr-67', 'pr-68', 'pr-69', 'pr-70',
698
+ 'pr-71', 'pr-72', 'pr-73', 'pr-74', 'pr-75', 'pr-76', 'pr-77', 'pr-78', 'pr-79', 'pr-80',
699
+ 'pr-81', 'pr-82', 'pr-83', 'pr-84', 'pr-85', 'pr-86', 'pr-87', 'pr-88', 'pr-89', 'pr-90',
700
+ 'pr-91', 'pr-92', 'pr-93', 'pr-94', 'pr-95', 'pr-96',
701
+ ];
702
+ /**
703
+ * Costante che contiene tutte le varianti "pb-" per padding inferiore, fino a 96
704
+ */
705
+ const TailwindPaddings_B = [
706
+ 'pb-1', 'pb-2', 'pb-3', 'pb-4', 'pb-5', 'pb-6', 'pb-7', 'pb-8', 'pb-9', 'pb-10',
707
+ 'pb-11', 'pb-12', 'pb-13', 'pb-14', 'pb-15', 'pb-16', 'pb-17', 'pb-18', 'pb-19', 'pb-20',
708
+ 'pb-21', 'pb-22', 'pb-23', 'pb-24', 'pb-25', 'pb-26', 'pb-27', 'pb-28', 'pb-29', 'pb-30',
709
+ 'pb-31', 'pb-32', 'pb-33', 'pb-34', 'pb-35', 'pb-36', 'pb-37', 'pb-38', 'pb-39', 'pb-40',
710
+ 'pb-41', 'pb-42', 'pb-43', 'pb-44', 'pb-45', 'pb-46', 'pb-47', 'pb-48', 'pb-49', 'pb-50',
711
+ 'pb-51', 'pb-52', 'pb-53', 'pb-54', 'pb-55', 'pb-56', 'pb-57', 'pb-58', 'pb-59', 'pb-60',
712
+ 'pb-61', 'pb-62', 'pb-63', 'pb-64', 'pb-65', 'pb-66', 'pb-67', 'pb-68', 'pb-69', 'pb-70',
713
+ 'pb-71', 'pb-72', 'pb-73', 'pb-74', 'pb-75', 'pb-76', 'pb-77', 'pb-78', 'pb-79', 'pb-80',
714
+ 'pb-81', 'pb-82', 'pb-83', 'pb-84', 'pb-85', 'pb-86', 'pb-87', 'pb-88', 'pb-89', 'pb-90',
715
+ 'pb-91', 'pb-92', 'pb-93', 'pb-94', 'pb-95', 'pb-96',
716
+ ];
717
+ /**
718
+ * Costante che contiene tutte le varianti "pl-" per padding a sinistra, fino a 96
719
+ */
720
+ const TailwindPaddings_L = [
721
+ 'pl-1', 'pl-2', 'pl-3', 'pl-4', 'pl-5', 'pl-6', 'pl-7', 'pl-8', 'pl-9', 'pl-10',
722
+ 'pl-11', 'pl-12', 'pl-13', 'pl-14', 'pl-15', 'pl-16', 'pl-17', 'pl-18', 'pl-19', 'pl-20',
723
+ 'pl-21', 'pl-22', 'pl-23', 'pl-24', 'pl-25', 'pl-26', 'pl-27', 'pl-28', 'pl-29', 'pl-30',
724
+ 'pl-31', 'pl-32', 'pl-33', 'pl-34', 'pl-35', 'pl-36', 'pl-37', 'pl-38', 'pl-39', 'pl-40',
725
+ 'pl-41', 'pl-42', 'pl-43', 'pl-44', 'pl-45', 'pl-46', 'pl-47', 'pl-48', 'pl-49', 'pl-50',
726
+ 'pl-51', 'pl-52', 'pl-53', 'pl-54', 'pl-55', 'pl-56', 'pl-57', 'pl-58', 'pl-59', 'pl-60',
727
+ 'pl-61', 'pl-62', 'pl-63', 'pl-64', 'pl-65', 'pl-66', 'pl-67', 'pl-68', 'pl-69', 'pl-70',
728
+ 'pl-71', 'pl-72', 'pl-73', 'pl-74', 'pl-75', 'pl-76', 'pl-77', 'pl-78', 'pl-79', 'pl-80',
729
+ 'pl-81', 'pl-82', 'pl-83', 'pl-84', 'pl-85', 'pl-86', 'pl-87', 'pl-88', 'pl-89', 'pl-90',
730
+ 'pl-91', 'pl-92', 'pl-93', 'pl-94', 'pl-95', 'pl-96',
731
+ ];
732
+ const TailwindPaddings_ALL = [
733
+ ...TailwindPaddings,
734
+ ...TailwindPaddings_X,
735
+ ...TailwindPaddings_Y,
736
+ ...TailwindPaddings_T,
737
+ ...TailwindPaddings_R,
738
+ ...TailwindPaddings_B,
739
+ ...TailwindPaddings_L,
740
+ ];
741
+ // file: constants/layout/textSizes.ts
742
+ const TailwindTextSizes = [
743
+ 'text-xs',
744
+ 'text-sm',
745
+ 'text-base',
746
+ 'text-lg',
747
+ 'text-xl',
748
+ 'text-2xl',
749
+ 'text-3xl',
750
+ 'text-4xl',
751
+ 'text-5xl',
752
+ 'text-6xl',
753
+ 'text-7xl',
754
+ ];
755
+ /**
756
+ * Costante che contiene tutte le varianti "w-" per larghezza globale
757
+ */
758
+ const TailwindWidths = [
759
+ // Classi dinamiche
760
+ 'w-auto', // Larghezza automatica
761
+ 'w-full', // Larghezza piena (100% del contenitore genitore)
762
+ 'w-screen', // Larghezza dell'intero viewport
763
+ 'w-min', // Larghezza minima (adatta al contenuto minimo)
764
+ 'w-max', // Larghezza massima (adatta al contenuto massimo)
765
+ 'w-fit', // Larghezza si adatta al contenuto
766
+ // Larghezza proporzionale
767
+ 'w-1/2', // 50% della larghezza disponibile
768
+ 'w-1/3', // 33.333% della larghezza disponibile
769
+ 'w-2/3', // 66.666% della larghezza disponibile
770
+ 'w-1/4', // 25% della larghezza disponibile
771
+ 'w-3/4', // 75% della larghezza disponibile
772
+ // Varianti numeriche da 1 a 96
773
+ 'w-1', 'w-2', 'w-3', 'w-4', 'w-5', 'w-6', 'w-7', 'w-8', 'w-9', 'w-10',
774
+ 'w-11', 'w-12', 'w-13', 'w-14', 'w-15', 'w-16', 'w-17', 'w-18', 'w-19', 'w-20',
775
+ 'w-21', 'w-22', 'w-23', 'w-24', 'w-25', 'w-26', 'w-27', 'w-28', 'w-29', 'w-30',
776
+ 'w-31', 'w-32', 'w-33', 'w-34', 'w-35', 'w-36', 'w-37', 'w-38', 'w-39', 'w-40',
777
+ 'w-41', 'w-42', 'w-43', 'w-44', 'w-45', 'w-46', 'w-47', 'w-48', 'w-49', 'w-50',
778
+ 'w-51', 'w-52', 'w-53', 'w-54', 'w-55', 'w-56', 'w-57', 'w-58', 'w-59', 'w-60',
779
+ 'w-61', 'w-62', 'w-63', 'w-64', 'w-65', 'w-66', 'w-67', 'w-68', 'w-69', 'w-70',
780
+ 'w-71', 'w-72', 'w-73', 'w-74', 'w-75', 'w-76', 'w-77', 'w-78', 'w-79', 'w-80',
781
+ 'w-81', 'w-82', 'w-83', 'w-84', 'w-85', 'w-86', 'w-87', 'w-88', 'w-89', 'w-90',
782
+ 'w-91', 'w-92', 'w-93', 'w-94', 'w-95', 'w-96',
783
+ ];
784
+ const TailwindColors = [
785
+ "text-primary/10", "bg-primary/10", "border-primary/10",
786
+ "text-primary/20", "bg-primary/20", "border-primary/20",
787
+ "text-primary/30", "bg-primary/30", "border-primary/30",
788
+ "text-primary/40", "bg-primary/40", "border-primary/40",
789
+ "text-primary/50", "bg-primary/50", "border-primary/50",
790
+ "text-primary/60", "bg-primary/60", "border-primary/60",
791
+ "text-primary/70", "bg-primary/70", "border-primary/70",
792
+ "text-primary/80", "bg-primary/80", "border-primary/80",
793
+ "text-primary/90", "bg-primary/90", "border-primary/90",
794
+ "text-primary", "bg-primary", "border-primary",
795
+ "text-secondary/10", "bg-secondary/10", "border-secondary/10",
796
+ "text-secondary/20", "bg-secondary/20", "border-secondary/20",
797
+ "text-secondary/30", "bg-secondary/30", "border-secondary/30",
798
+ "text-secondary/40", "bg-secondary/40", "border-secondary/40",
799
+ "text-secondary/50", "bg-secondary/50", "border-secondary/50",
800
+ "text-secondary/60", "bg-secondary/60", "border-secondary/60",
801
+ "text-secondary/70", "bg-secondary/70", "border-secondary/70",
802
+ "text-secondary/80", "bg-secondary/80", "border-secondary/80",
803
+ "text-secondary/90", "bg-secondary/90", "border-secondary/90",
804
+ "text-secondary", "bg-secondary", "border-secondary",
805
+ "text-accent/10", "bg-accent/10", "border-accent/10",
806
+ "text-accent/20", "bg-accent/20", "border-accent/20",
807
+ "text-accent/30", "bg-accent/30", "border-accent/30",
808
+ "text-accent/40", "bg-accent/40", "border-accent/40",
809
+ "text-accent/50", "bg-accent/50", "border-accent/50",
810
+ "text-accent/60", "bg-accent/60", "border-accent/60",
811
+ "text-accent/70", "bg-accent/70", "border-accent/70",
812
+ "text-accent/80", "bg-accent/80", "border-accent/80",
813
+ "text-accent/90", "bg-accent/90", "border-accent/90",
814
+ "text-accent", "bg-accent", "border-accent",
815
+ "text-dark/10", "bg-dark/10", "border-dark/10",
816
+ "text-dark/20", "bg-dark/20", "border-dark/20",
817
+ "text-dark/30", "bg-dark/30", "border-dark/30",
818
+ "text-dark/40", "bg-dark/40", "border-dark/40",
819
+ "text-dark/50", "bg-dark/50", "border-dark/50",
820
+ "text-dark/60", "bg-dark/60", "border-dark/60",
821
+ "text-dark/70", "bg-dark/70", "border-dark/70",
822
+ "text-dark/80", "bg-dark/80", "border-dark/80",
823
+ "text-dark/90", "bg-dark/90", "border-dark/90",
824
+ "text-dark", "bg-dark", "border-dark",
825
+ "text-light/10", "bg-light/10", "border-light/10",
826
+ "text-light/20", "bg-light/20", "border-light/20",
827
+ "text-light/30", "bg-light/30", "border-light/30",
828
+ "text-light/40", "bg-light/40", "border-light/40",
829
+ "text-light/50", "bg-light/50", "border-light/50",
830
+ "text-light/60", "bg-light/60", "border-light/60",
831
+ "text-light/70", "bg-light/70", "border-light/70",
832
+ "text-light/80", "bg-light/80", "border-light/80",
833
+ "text-light/90", "bg-light/90", "border-light/90",
834
+ "text-light", "bg-light", "border-light"
835
+ ];
836
+ const TailwindDesktopGridColumns = [
837
+ 'lg:grid-cols-1',
838
+ 'lg:grid-cols-2',
839
+ 'lg:grid-cols-3',
840
+ 'lg:grid-cols-4',
841
+ 'lg:grid-cols-5',
842
+ 'lg:grid-cols-6',
843
+ 'lg:grid-cols-7',
844
+ 'lg:grid-cols-8',
845
+ 'lg:grid-cols-9',
846
+ 'lg:grid-cols-10',
847
+ 'lg:grid-cols-11',
848
+ 'lg:grid-cols-12'
849
+ ];
850
+ // Classi grid-cols per tablet (md)
851
+ const TailwindTabletGridColumns = [
852
+ 'md:grid-cols-1',
853
+ 'md:grid-cols-2',
854
+ 'md:grid-cols-3',
855
+ 'md:grid-cols-4',
856
+ 'md:grid-cols-5',
857
+ 'md:grid-cols-6'
858
+ ];
859
+ // Classi grid-cols per mobile (default, senza prefisso)
860
+ const TailwindMobileGridColumns = [
861
+ 'grid-cols-1',
862
+ 'grid-cols-2'
863
+ ];
864
+ const TailwindAllSafeList = [
865
+ ...TailwindHeights,
866
+ ...TailwindPaddings,
867
+ ...TailwindMargins,
868
+ ...TailwindContainerWidths,
869
+ ...TailwindWidths,
870
+ ...TailwindColors,
871
+ ...TailwindDesktopGridColumns,
872
+ ...TailwindMobileGridColumns,
873
+ ...TailwindTabletGridColumns,
874
+ ...TailwindTextSizes
875
+ ];
876
+
877
+ var index$1 = /*#__PURE__*/Object.freeze({
878
+ __proto__: null,
879
+ TailwindAllSafeList: TailwindAllSafeList,
880
+ TailwindColors: TailwindColors,
881
+ TailwindContainerWidths: TailwindContainerWidths,
882
+ TailwindDesktopGridColumns: TailwindDesktopGridColumns,
883
+ TailwindHeights: TailwindHeights,
884
+ TailwindMargins: TailwindMargins,
885
+ TailwindMargins_ALL: TailwindMargins_ALL,
886
+ TailwindMargins_B: TailwindMargins_B,
887
+ TailwindMargins_L: TailwindMargins_L,
888
+ TailwindMargins_R: TailwindMargins_R,
889
+ TailwindMargins_T: TailwindMargins_T,
890
+ TailwindMargins_X: TailwindMargins_X,
891
+ TailwindMargins_Y: TailwindMargins_Y,
892
+ TailwindMobileGridColumns: TailwindMobileGridColumns,
893
+ TailwindMultipliers: TailwindMultipliers,
894
+ TailwindPaddings: TailwindPaddings,
895
+ TailwindPaddings_ALL: TailwindPaddings_ALL,
896
+ TailwindPaddings_B: TailwindPaddings_B,
897
+ TailwindPaddings_L: TailwindPaddings_L,
898
+ TailwindPaddings_R: TailwindPaddings_R,
899
+ TailwindPaddings_T: TailwindPaddings_T,
900
+ TailwindPaddings_X: TailwindPaddings_X,
901
+ TailwindPaddings_Y: TailwindPaddings_Y,
902
+ TailwindTabletGridColumns: TailwindTabletGridColumns,
903
+ TailwindTextSizes: TailwindTextSizes,
904
+ TailwindViewportHeightMultipliers: TailwindViewportHeightMultipliers,
905
+ TailwindViewportHeights: TailwindViewportHeights,
906
+ TailwindWidths: TailwindWidths
166
907
  });
167
908
 
909
+ /**
910
+ * Genera un campo per la selezione delle altezze
911
+ * @returns Field - Campo di tipo `select` per PayloadCMS
912
+ */
913
+ const fieldViewportHeights = () => {
914
+ return fieldSelect({
915
+ name: 'h',
916
+ label: 'Altezza',
917
+ type: 'select',
918
+ options: [{ value: '', label: '(Nessuno)' }, ...TailwindViewportHeights.map(h => ({ value: `h-${h}`, label: h }))],
919
+ admin: {
920
+ description: 'Definisce l’altezza dell’elemento.',
921
+ width: '50%'
922
+ },
923
+ });
924
+ };
925
+
926
+ const fieldThemeColor = (override) => ({
927
+ name: override?.name || 'color',
928
+ label: override?.label || 'Colore',
929
+ type: 'select',
930
+ required: override?.required ?? false,
931
+ options: [
932
+ { label: 'Default', value: '' },
933
+ { label: 'Foreground', value: 'foreground' },
934
+ { label: 'Primary', value: 'primary' },
935
+ { label: 'Secondary', value: 'secondary' },
936
+ { label: 'Accent', value: 'accent' },
937
+ { label: 'Dark', value: 'dark' },
938
+ { label: 'Light', value: 'light' },
939
+ { label: 'White', value: 'white' },
940
+ { label: 'Black', value: 'black' },
941
+ ],
942
+ admin: {
943
+ ...override?.admin,
944
+ },
945
+ });
946
+
947
+ const fieldSectionProps = (customFields = []) => {
948
+ return {
949
+ name: 'sctP',
950
+ label: 'Proprietà sezione',
951
+ type: 'group',
952
+ fields: [
953
+ ...customFields,
954
+ fieldRichText({ name: 'body', label: 'Contenuto', required: false }),
955
+ {
956
+ type: 'tabs',
957
+ tabs: [
958
+ {
959
+ label: 'Stile',
960
+ fields: [
961
+ fieldUpload('media', { name: 'bgi', label: 'Immagine di sfondo' }),
962
+ fieldThemeColor({ name: 'bgc', label: 'Colore di sfondo', required: false }),
963
+ ]
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ type: 'tabs',
969
+ tabs: [
970
+ {
971
+ label: 'Dimensioni',
972
+ fields: [
973
+ fieldViewportHeights(),
974
+ {
975
+ type: 'tabs',
976
+ tabs: [{
977
+ label: 'Margini',
978
+ fields: [
979
+ fieldMargins()
980
+ ]
981
+ },
982
+ {
983
+ label: 'Paddings',
984
+ fields: [
985
+ fieldPaddings()
986
+ ]
987
+ }
988
+ ]
989
+ }
990
+ ]
991
+ }
992
+ ]
993
+ },
994
+ ],
995
+ };
996
+ };
997
+
998
+ const fieldSectionTabs = (options = {}) => {
999
+ const { config = true, section = true, container = true, content = true, configFields = [], sectionFields = [], containerFields = [], contentFields = [] } = options;
1000
+ const tabs = [];
1001
+ if (config) {
1002
+ tabs.push({
1003
+ label: 'Configurazione',
1004
+ fields: [
1005
+ fieldConfigProps(configFields)
1006
+ ],
1007
+ });
1008
+ }
1009
+ // Tab per la sezione
1010
+ if (section) {
1011
+ tabs.push({
1012
+ label: 'Sezione',
1013
+ fields: [
1014
+ fieldSectionProps(sectionFields)
1015
+ ],
1016
+ });
1017
+ }
1018
+ // Tab per il container
1019
+ if (container) {
1020
+ tabs.push({
1021
+ label: 'Container',
1022
+ fields: [
1023
+ fieldContainerProps(containerFields)
1024
+ ],
1025
+ });
1026
+ }
1027
+ // Tab per il contenuto
1028
+ if (content) {
1029
+ tabs.push({
1030
+ label: 'Contenuto',
1031
+ fields: [
1032
+ fieldContentProps(contentFields)
1033
+ ],
1034
+ });
1035
+ }
1036
+ return {
1037
+ type: 'tabs',
1038
+ tabs: tabs,
1039
+ };
1040
+ };
1041
+
1042
+ /**
1043
+ * Genera un campo per la selezione delle larghezze del container
1044
+ * @returns Field - Campo di tipo `select` per PayloadCMS
1045
+ */
1046
+ const fieldContainerWidths = () => {
1047
+ return fieldSelect({
1048
+ name: 'container',
1049
+ label: 'Larghezza del container',
1050
+ options: [{ value: '', label: '(Nessuno)' }, ...TailwindContainerWidths],
1051
+ admin: {
1052
+ description: 'Seleziona una larghezza massima per il container. Usa "None" per una larghezza a schermo intero.',
1053
+ },
1054
+ });
1055
+ };
1056
+
1057
+ /**
1058
+ * Genera un campo per la selezione delle altezze
1059
+ * @returns Field - Campo di tipo `select` per PayloadCMS
1060
+ */
1061
+ const fieldHeights = () => {
1062
+ return fieldSelect({
1063
+ name: 'h',
1064
+ label: 'Altezza',
1065
+ type: 'select',
1066
+ defaultValue: 'h-full',
1067
+ options: [{ value: '', label: '(Nessuno)' }, ...TailwindHeights.map(h => ({ value: `h-${h}`, label: h }))],
1068
+ admin: {
1069
+ description: 'Definisce l’altezza dell’elemento.',
1070
+ },
1071
+ });
1072
+ };
1073
+
1074
+ const concatMarginFields = (args) => {
1075
+ const { value, siblingData, operation, } = args;
1076
+ if (operation === 'create' || operation === 'update') {
1077
+ const margins = siblingData || {};
1078
+ const { all, x, y, t, r, b, l } = margins;
1079
+ const classes = [];
1080
+ if (all)
1081
+ classes.push(`m-${all}`);
1082
+ if (x)
1083
+ classes.push(`mx-${x}`);
1084
+ if (y)
1085
+ classes.push(`my-${y}`);
1086
+ if (t)
1087
+ classes.push(`mt-${t}`);
1088
+ if (r)
1089
+ classes.push(`mr-${r}`);
1090
+ if (b)
1091
+ classes.push(`mb-${b}`);
1092
+ if (l)
1093
+ classes.push(`ml-${l}`);
1094
+ return classes.join(' ');
1095
+ }
1096
+ return value;
1097
+ };
1098
+ /**
1099
+ * Genera un campo per la selezione dinamica dei margini
1100
+ * @returns Field - Campo di tipo `group` per PayloadCMS
1101
+ */
1102
+ const fieldMargins = () => {
1103
+ return {
1104
+ name: 'm',
1105
+ label: 'Margini',
1106
+ type: 'group',
1107
+ fields: [
1108
+ {
1109
+ name: 'className',
1110
+ label: 'Classi CSS Margini',
1111
+ type: 'text',
1112
+ hooks: {
1113
+ beforeChange: [concatMarginFields],
1114
+ },
1115
+ admin: {
1116
+ readOnly: true,
1117
+ description: 'Questa stringa verrà generata automaticamente in base ai campi sottostanti.',
1118
+ },
1119
+ },
1120
+ {
1121
+ type: 'row',
1122
+ fields: [
1123
+ fieldNumber({
1124
+ name: 'all',
1125
+ label: 'Tutti i lati',
1126
+ type: 'number',
1127
+ min: 0,
1128
+ max: 96,
1129
+ admin: {
1130
+ width: '33%'
1131
+ }
1132
+ }),
1133
+ fieldNumber({
1134
+ name: 'x',
1135
+ label: 'Orizzontale',
1136
+ type: 'number',
1137
+ min: 0,
1138
+ max: 96,
1139
+ admin: {
1140
+ width: '33%'
1141
+ }
1142
+ }),
1143
+ fieldNumber({
1144
+ name: 'y',
1145
+ label: 'Verticale',
1146
+ type: 'number',
1147
+ min: 0,
1148
+ max: 96,
1149
+ admin: {
1150
+ width: '33%'
1151
+ }
1152
+ }),
1153
+ fieldNumber({
1154
+ name: 't',
1155
+ label: 'Top',
1156
+ type: 'number',
1157
+ min: 0,
1158
+ max: 96,
1159
+ admin: {
1160
+ width: '25%'
1161
+ }
1162
+ }),
1163
+ fieldNumber({
1164
+ name: 'r',
1165
+ label: 'Right',
1166
+ type: 'number',
1167
+ min: 0,
1168
+ max: 96,
1169
+ admin: {
1170
+ width: '25%'
1171
+ }
1172
+ }),
1173
+ fieldNumber({
1174
+ name: 'b',
1175
+ label: 'Bottom',
1176
+ type: 'number',
1177
+ min: 0,
1178
+ max: 96,
1179
+ admin: {
1180
+ width: '25%'
1181
+ }
1182
+ }),
1183
+ fieldNumber({
1184
+ name: 'l',
1185
+ label: 'Left',
1186
+ type: 'number',
1187
+ min: 0,
1188
+ max: 96,
1189
+ admin: {
1190
+ width: '25%'
1191
+ }
1192
+ }),
1193
+ ]
1194
+ }
1195
+ ],
1196
+ admin: {
1197
+ description: 'Definisce lo spazio esterno generale, orizzontale, verticale o per ciascun lato.',
1198
+ },
1199
+ };
1200
+ };
1201
+
1202
+ /**
1203
+ * Hook per concatenare le classi CSS di padding
1204
+ */
1205
+ const concatPaddingFields = (args) => {
1206
+ const { value, siblingData, operation, } = args;
1207
+ if (operation === 'create' || operation === 'update') {
1208
+ const paddings = siblingData || {};
1209
+ const { all, x, y, t, r, b, l } = paddings;
1210
+ const classes = [];
1211
+ if (all)
1212
+ classes.push(`p-${all}`);
1213
+ if (x)
1214
+ classes.push(`px-${x}`);
1215
+ if (y)
1216
+ classes.push(`py-${y}`);
1217
+ if (t)
1218
+ classes.push(`pt-${t}`);
1219
+ if (r)
1220
+ classes.push(`pr-${r}`);
1221
+ if (b)
1222
+ classes.push(`pb-${b}`);
1223
+ if (l)
1224
+ classes.push(`pl-${l}`);
1225
+ return classes.join(' ');
1226
+ }
1227
+ return value;
1228
+ };
1229
+ /**
1230
+ * Genera un campo per la selezione dinamica dei padding
1231
+ * @returns Field - Campo di tipo `group` per PayloadCMS
1232
+ */
1233
+ const fieldPaddings = () => {
1234
+ return {
1235
+ name: 'p',
1236
+ label: 'Padding',
1237
+ type: 'group',
1238
+ fields: [
1239
+ {
1240
+ name: 'className',
1241
+ label: 'Classi CSS Padding',
1242
+ type: 'text',
1243
+ hooks: {
1244
+ beforeChange: [concatPaddingFields],
1245
+ },
1246
+ admin: {
1247
+ readOnly: true,
1248
+ description: 'Questa stringa verrà generata automaticamente in base ai campi sottostanti.',
1249
+ },
1250
+ },
1251
+ {
1252
+ type: 'row',
1253
+ fields: [
1254
+ fieldNumber({
1255
+ name: 'all',
1256
+ label: 'Tutti i lati',
1257
+ type: 'number',
1258
+ min: 0,
1259
+ max: 96,
1260
+ admin: {
1261
+ width: '33%'
1262
+ }
1263
+ }),
1264
+ fieldNumber({
1265
+ name: 'x',
1266
+ label: 'Orizzontale',
1267
+ type: 'number',
1268
+ min: 0,
1269
+ max: 96,
1270
+ admin: {
1271
+ width: '33%'
1272
+ }
1273
+ }),
1274
+ fieldNumber({
1275
+ name: 'y',
1276
+ label: 'Verticale',
1277
+ type: 'number',
1278
+ min: 0,
1279
+ max: 96,
1280
+ admin: {
1281
+ width: '33%'
1282
+ }
1283
+ }),
1284
+ fieldNumber({
1285
+ name: 't',
1286
+ label: 'Top',
1287
+ type: 'number',
1288
+ min: 0,
1289
+ max: 96,
1290
+ admin: {
1291
+ width: '25%'
1292
+ }
1293
+ }),
1294
+ fieldNumber({
1295
+ name: 'r',
1296
+ label: 'Right',
1297
+ type: 'number',
1298
+ min: 0,
1299
+ max: 96,
1300
+ admin: {
1301
+ width: '25%'
1302
+ }
1303
+ }),
1304
+ fieldNumber({
1305
+ name: 'b',
1306
+ label: 'Bottom',
1307
+ type: 'number',
1308
+ min: 0,
1309
+ max: 96,
1310
+ admin: {
1311
+ width: '25%'
1312
+ }
1313
+ }),
1314
+ fieldNumber({
1315
+ name: 'l',
1316
+ label: 'Left',
1317
+ type: 'number',
1318
+ min: 0,
1319
+ max: 96,
1320
+ admin: {
1321
+ width: '25%'
1322
+ }
1323
+ }),
1324
+ ]
1325
+ }
1326
+ ],
1327
+ admin: {
1328
+ description: 'Definisce lo spazio interno generale, orizzontale, verticale o per ciascun lato.',
1329
+ },
1330
+ };
1331
+ };
1332
+
1333
+ // Esportazioni dalle cartelle principali
1334
+
168
1335
  var index = /*#__PURE__*/Object.freeze({
169
1336
  __proto__: null,
170
1337
  fieldArray: fieldArray,
171
1338
  fieldBlocks: fieldBlocks,
172
1339
  fieldCheckbox: fieldCheckbox,
173
1340
  fieldCode: fieldCode,
1341
+ fieldConfigProps: fieldConfigProps,
1342
+ fieldContainerProps: fieldContainerProps,
1343
+ fieldContainerWidths: fieldContainerWidths,
1344
+ fieldContentProps: fieldContentProps,
174
1345
  fieldDate: fieldDate,
175
1346
  fieldEmail: fieldEmail,
1347
+ fieldHeights: fieldHeights,
176
1348
  fieldJoin: fieldJoin,
1349
+ fieldMargins: fieldMargins,
177
1350
  fieldNumber: fieldNumber,
1351
+ fieldPaddings: fieldPaddings,
178
1352
  fieldPoint: fieldPoint,
179
1353
  fieldRadioGroup: fieldRadioGroup,
180
1354
  fieldRelationship: fieldRelationship,
181
1355
  fieldRichText: fieldRichText,
1356
+ fieldSectionProps: fieldSectionProps,
1357
+ fieldSectionTabs: fieldSectionTabs,
182
1358
  fieldSelect: fieldSelect,
183
- fieldSemantic: fieldSemantic,
184
1359
  fieldText: fieldText,
185
1360
  fieldTextArea: fieldTextArea,
186
1361
  fieldUpload: fieldUpload
187
1362
  });
188
1363
 
189
- export { fieldArray, fieldBlocks, fieldCheckbox, fieldCode, fieldDate, fieldEmail, fieldJoin, fieldNumber, fieldPoint, fieldRadioGroup, fieldRelationship, fieldRichText, fieldSelect, fieldSemantic, fieldText, fieldTextArea, fieldUpload, index as i };
1364
+ export { index$1 as a, fieldArray, fieldBlocks, fieldCheckbox, fieldCode, fieldConfigProps, fieldContainerProps, fieldContainerWidths, fieldContentProps, fieldDate, fieldEmail, fieldHeights, fieldJoin, fieldMargins, fieldNumber, fieldPaddings, fieldPoint, fieldRadioGroup, fieldRelationship, fieldRichText, fieldSectionProps, fieldSectionTabs, fieldSelect, fieldText, fieldTextArea, fieldUpload, index as i };
190
1365
  //# sourceMappingURL=index.esm.js.map