@frontile/theme 0.17.0-beta.6 → 0.17.0
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.
- package/README.md +33 -1
- package/declarations/colors/defaults.d.ts +0 -1
- package/declarations/colors/semantic.d.ts +0 -1
- package/declarations/colors/types.d.ts +0 -1
- package/declarations/colors/util.d.ts +0 -1
- package/declarations/colors.d.ts +0 -1
- package/declarations/components/avatar.d.ts +171 -0
- package/declarations/components/button.d.ts +0 -1
- package/declarations/components/chip.d.ts +0 -1
- package/declarations/components/close-button.d.ts +3 -4
- package/declarations/components/divider.d.ts +0 -1
- package/declarations/components/dropdown.d.ts +1 -2
- package/declarations/components/forms/forms-legacy.d.ts +38 -39
- package/declarations/components/forms/forms.d.ts +365 -14
- package/declarations/components/forms/index.d.ts +0 -1
- package/declarations/components/index.d.ts +2 -1
- package/declarations/components/listbox.d.ts +8 -9
- package/declarations/components/notification-card.d.ts +6 -7
- package/declarations/components/notifications-container.d.ts +0 -1
- package/declarations/components/overlays.d.ts +0 -1
- package/declarations/components/popover.d.ts +2 -3
- package/declarations/components/progress-bar.d.ts +24 -1
- package/declarations/components/shared.d.ts +2 -0
- package/declarations/components/spinner.d.ts +0 -1
- package/declarations/components/table.d.ts +522 -0
- package/declarations/index.d.ts +1 -1
- package/declarations/plugin/default-config.d.ts +0 -1
- package/declarations/plugin/default.d.ts +9 -0
- package/declarations/plugin/overlays.d.ts +0 -1
- package/declarations/plugin/power-select.d.ts +0 -1
- package/declarations/plugin/resolve.d.ts +2 -5
- package/declarations/plugin/safelist.d.ts +1 -4
- package/declarations/plugin/transitions.d.ts +0 -1
- package/declarations/plugin.d.ts +0 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/tw.d.ts +0 -1
- package/declarations/types.d.ts +0 -1
- package/dist/colors.js +1 -1
- package/dist/{forms-legacy-BVGmJu6Z.js → forms-legacy-Bg_UoLDR.js} +406 -66
- package/dist/forms-legacy-Bg_UoLDR.js.map +1 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/default.js +10 -0
- package/dist/plugin/default.js.map +1 -0
- package/dist/plugin.js +42 -45
- package/dist/plugin.js.map +1 -1
- package/dist/{semantic-Us_bxqq7.js → semantic-DUv6Lpqq.js} +4 -7
- package/dist/semantic-DUv6Lpqq.js.map +1 -0
- package/package.json +2 -2
- package/declarations/colors/defaults.d.ts.map +0 -1
- package/declarations/colors/semantic.d.ts.map +0 -1
- package/declarations/colors/types.d.ts.map +0 -1
- package/declarations/colors/util.d.ts.map +0 -1
- package/declarations/colors.d.ts.map +0 -1
- package/declarations/components/button.d.ts.map +0 -1
- package/declarations/components/chip.d.ts.map +0 -1
- package/declarations/components/close-button.d.ts.map +0 -1
- package/declarations/components/divider.d.ts.map +0 -1
- package/declarations/components/dropdown.d.ts.map +0 -1
- package/declarations/components/forms/forms-legacy.d.ts.map +0 -1
- package/declarations/components/forms/forms.d.ts.map +0 -1
- package/declarations/components/forms/index.d.ts.map +0 -1
- package/declarations/components/index.d.ts.map +0 -1
- package/declarations/components/listbox.d.ts.map +0 -1
- package/declarations/components/notification-card.d.ts.map +0 -1
- package/declarations/components/notifications-container.d.ts.map +0 -1
- package/declarations/components/overlays.d.ts.map +0 -1
- package/declarations/components/popover.d.ts.map +0 -1
- package/declarations/components/progress-bar.d.ts.map +0 -1
- package/declarations/components/spinner.d.ts.map +0 -1
- package/declarations/index.d.ts.map +0 -1
- package/declarations/plugin/default-config.d.ts.map +0 -1
- package/declarations/plugin/overlays.d.ts.map +0 -1
- package/declarations/plugin/power-select.d.ts.map +0 -1
- package/declarations/plugin/resolve.d.ts.map +0 -1
- package/declarations/plugin/safelist.d.ts.map +0 -1
- package/declarations/plugin/transitions.d.ts.map +0 -1
- package/declarations/plugin.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/tw.d.ts.map +0 -1
- package/declarations/types.d.ts.map +0 -1
- package/dist/forms-legacy-BVGmJu6Z.js.map +0 -1
- package/dist/semantic-Us_bxqq7.js.map +0 -1
|
@@ -32,21 +32,59 @@ function twMerge(defaultClass, overwrites) {
|
|
|
32
32
|
return clsx(defaultClass);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const avatar = tv({
|
|
36
|
+
slots: {
|
|
37
|
+
base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-foreground', 'z-0', 'bg-default-200', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
|
|
38
|
+
img: 'size-full',
|
|
39
|
+
name: ['w-full', 'font-normal', 'text-center', 'text-inherit', 'absolute', 'top-1/2', 'left-1/2', '-translate-x-1/2', '-translate-y-1/2', 'select-none']
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
shape: {
|
|
43
|
+
square: 'rounded-[20%]',
|
|
44
|
+
circle: 'rounded-full'
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
xs: {
|
|
48
|
+
base: 'size-5 text-xs'
|
|
49
|
+
},
|
|
50
|
+
sm: {
|
|
51
|
+
base: 'size-6 text-sm'
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
base: 'size-8 text-base'
|
|
55
|
+
},
|
|
56
|
+
lg: {
|
|
57
|
+
base: 'size-10 text-lg'
|
|
58
|
+
},
|
|
59
|
+
xl: {
|
|
60
|
+
base: 'size-12 text-xl'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
size: 'md',
|
|
66
|
+
shape: 'circle'
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
|
|
71
|
+
const focusVisibleWithinRing = ['outline-hidden', 'has-focus-visible:z-10', 'has-focus-visible:ring-3', 'has-[:focus-visible]:ring-focus', 'has-focus-visible:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
|
|
72
|
+
|
|
35
73
|
const baseButton = tv({
|
|
36
|
-
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded', 'disabled:cursor-not-allowed', 'disabled:opacity-40',
|
|
74
|
+
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded-sm', 'disabled:cursor-not-allowed', 'disabled:opacity-40', ...focusVisibleRing],
|
|
37
75
|
variants: {
|
|
38
76
|
appearance: {
|
|
39
77
|
outlined: ''
|
|
40
78
|
},
|
|
41
79
|
isInGroup: {
|
|
42
|
-
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', '
|
|
80
|
+
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', 'not-last-of-type:-me-px']
|
|
43
81
|
},
|
|
44
82
|
intent: {
|
|
45
83
|
default: '',
|
|
46
|
-
primary: '',
|
|
47
|
-
success: '',
|
|
48
|
-
warning: '',
|
|
49
|
-
danger: ''
|
|
84
|
+
primary: 'focus-visible:ring-primary-500',
|
|
85
|
+
success: 'focus-visible:ring-success-500',
|
|
86
|
+
warning: 'focus-visible:ring-warning',
|
|
87
|
+
danger: 'focus-visible:ring-danger'
|
|
50
88
|
},
|
|
51
89
|
size: {
|
|
52
90
|
xs: 'text-sm px-2 py-1',
|
|
@@ -229,19 +267,19 @@ const chip = tv({
|
|
|
229
267
|
},
|
|
230
268
|
primary: {
|
|
231
269
|
dot: 'bg-primary',
|
|
232
|
-
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60']
|
|
270
|
+
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60', 'focus-visible:ring-primary-700']
|
|
233
271
|
},
|
|
234
272
|
success: {
|
|
235
273
|
dot: 'bg-success',
|
|
236
|
-
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60']
|
|
274
|
+
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60', 'focus-visible:ring-success']
|
|
237
275
|
},
|
|
238
276
|
warning: {
|
|
239
277
|
dot: 'bg-warning',
|
|
240
|
-
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60']
|
|
278
|
+
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60', 'focus-visible:ring-warning']
|
|
241
279
|
},
|
|
242
280
|
danger: {
|
|
243
281
|
dot: 'bg-danger',
|
|
244
|
-
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60']
|
|
282
|
+
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60', 'focus-visible:ring-danger']
|
|
245
283
|
}
|
|
246
284
|
},
|
|
247
285
|
size: {
|
|
@@ -263,7 +301,7 @@ const chip = tv({
|
|
|
263
301
|
},
|
|
264
302
|
radius: {
|
|
265
303
|
none: 'rounded-none',
|
|
266
|
-
sm: 'rounded',
|
|
304
|
+
sm: 'rounded-sm',
|
|
267
305
|
lg: 'rounded-lg',
|
|
268
306
|
full: 'rounded-full'
|
|
269
307
|
}
|
|
@@ -377,7 +415,8 @@ const progressBar = tv({
|
|
|
377
415
|
slots: {
|
|
378
416
|
base: ['overflow-hidden w-full bg-content3 dark:bg-content2'],
|
|
379
417
|
label: ['flex justify-between pb-1 gap-2 leading-tight'],
|
|
380
|
-
progress: ['']
|
|
418
|
+
progress: [''],
|
|
419
|
+
description: ['text-default-400 text-xs pb-1']
|
|
381
420
|
},
|
|
382
421
|
variants: {
|
|
383
422
|
isIndeterminate: {
|
|
@@ -406,12 +445,14 @@ const progressBar = tv({
|
|
|
406
445
|
xs: {
|
|
407
446
|
base: 'h-1',
|
|
408
447
|
progress: 'h-1',
|
|
409
|
-
label: 'text-xs'
|
|
448
|
+
label: 'text-xs',
|
|
449
|
+
description: 'text-xs'
|
|
410
450
|
},
|
|
411
451
|
sm: {
|
|
412
452
|
base: 'h-2',
|
|
413
453
|
progress: 'h-2',
|
|
414
|
-
label: 'text-sm'
|
|
454
|
+
label: 'text-sm',
|
|
455
|
+
description: 'text-sm'
|
|
415
456
|
},
|
|
416
457
|
md: {
|
|
417
458
|
base: 'h-4',
|
|
@@ -420,12 +461,13 @@ const progressBar = tv({
|
|
|
420
461
|
lg: {
|
|
421
462
|
base: 'h-8',
|
|
422
463
|
progress: 'h-8',
|
|
423
|
-
label: 'text-lg'
|
|
464
|
+
label: 'text-lg',
|
|
465
|
+
description: 'text-lg'
|
|
424
466
|
}
|
|
425
467
|
},
|
|
426
468
|
radius: {
|
|
427
469
|
none: 'rounded-none',
|
|
428
|
-
sm: 'rounded',
|
|
470
|
+
sm: 'rounded-sm',
|
|
429
471
|
lg: 'rounded-lg',
|
|
430
472
|
full: 'rounded-full'
|
|
431
473
|
}
|
|
@@ -439,7 +481,7 @@ const progressBar = tv({
|
|
|
439
481
|
|
|
440
482
|
const closeButton = tv({
|
|
441
483
|
slots: {
|
|
442
|
-
base: 'rounded-full transition transition-200
|
|
484
|
+
base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
|
|
443
485
|
icon: 'size-[1em]'
|
|
444
486
|
},
|
|
445
487
|
variants: {
|
|
@@ -476,19 +518,19 @@ const closeButton = tv({
|
|
|
476
518
|
});
|
|
477
519
|
|
|
478
520
|
const listbox = tv({
|
|
479
|
-
base: 'w-full flex flex-col gap-0.5 outline-
|
|
521
|
+
base: 'w-full flex flex-col gap-0.5 outline-hidden p-1'
|
|
480
522
|
});
|
|
481
523
|
const listboxItem = tv({
|
|
482
524
|
slots: {
|
|
483
|
-
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded', 'subpixel-antialiased', 'outline-
|
|
525
|
+
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded-sm', 'subpixel-antialiased', 'outline-hidden', 'cursor-pointer', 'tap-highlight-transparent'],
|
|
484
526
|
descriptionWrapper: 'w-full flex flex-col items-start justify-center',
|
|
485
527
|
label: 'flex-1 text-sm font-normal truncate',
|
|
486
528
|
description: ['w-full', 'text-xs', 'text-foreground-500', 'group-hover:text-current'],
|
|
487
|
-
selectedIcon: ['text-inherit', 'w-4', 'h-4', '
|
|
488
|
-
shortcut: ['px-1', 'py-0.5', 'rounded', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
529
|
+
selectedIcon: ['text-inherit', 'w-4', 'h-4', 'shrink-0'],
|
|
530
|
+
shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
489
531
|
},
|
|
490
532
|
variants: {
|
|
491
|
-
|
|
533
|
+
appearance: {
|
|
492
534
|
default: {
|
|
493
535
|
base: ''
|
|
494
536
|
},
|
|
@@ -529,129 +571,129 @@ const listboxItem = tv({
|
|
|
529
571
|
}
|
|
530
572
|
},
|
|
531
573
|
defaultVariants: {
|
|
532
|
-
|
|
574
|
+
appearance: 'default',
|
|
533
575
|
intent: 'default'
|
|
534
576
|
},
|
|
535
577
|
compoundVariants: [
|
|
536
|
-
//
|
|
578
|
+
// appearance: default
|
|
537
579
|
{
|
|
538
|
-
|
|
580
|
+
appearance: 'default',
|
|
539
581
|
intent: 'default',
|
|
540
582
|
class: {
|
|
541
583
|
base: ['data-is-active:bg-default', 'data-is-active:text-default-foreground']
|
|
542
584
|
}
|
|
543
585
|
}, {
|
|
544
|
-
|
|
586
|
+
appearance: 'default',
|
|
545
587
|
intent: 'primary',
|
|
546
588
|
class: {
|
|
547
589
|
base: ['data-is-active:bg-primary-500', 'data-is-active:text-primary-foreground']
|
|
548
590
|
}
|
|
549
591
|
}, {
|
|
550
|
-
|
|
592
|
+
appearance: 'default',
|
|
551
593
|
intent: 'success',
|
|
552
594
|
class: {
|
|
553
595
|
base: ['data-is-active:bg-success-500', 'data-is-active:text-success-foreground']
|
|
554
596
|
}
|
|
555
597
|
}, {
|
|
556
|
-
|
|
598
|
+
appearance: 'default',
|
|
557
599
|
intent: 'warning',
|
|
558
600
|
class: {
|
|
559
601
|
base: ['data-is-active:bg-warning-500', 'data-is-active:text-warning-foreground']
|
|
560
602
|
}
|
|
561
603
|
}, {
|
|
562
|
-
|
|
604
|
+
appearance: 'default',
|
|
563
605
|
intent: 'danger',
|
|
564
606
|
class: {
|
|
565
607
|
base: ['data-is-active:bg-danger-500', 'data-is-active:text-danger-foreground']
|
|
566
608
|
}
|
|
567
609
|
}, {
|
|
568
|
-
|
|
610
|
+
appearance: 'default',
|
|
569
611
|
intent: 'primary',
|
|
570
612
|
isActive: true,
|
|
571
613
|
class: {
|
|
572
614
|
shortcut: ['text-primary-foreground']
|
|
573
615
|
}
|
|
574
616
|
}, {
|
|
575
|
-
|
|
617
|
+
appearance: 'default',
|
|
576
618
|
intent: 'success',
|
|
577
619
|
isActive: true,
|
|
578
620
|
class: {
|
|
579
621
|
shortcut: ['text-success-foreground']
|
|
580
622
|
}
|
|
581
623
|
}, {
|
|
582
|
-
|
|
624
|
+
appearance: 'default',
|
|
583
625
|
intent: 'warning',
|
|
584
626
|
isActive: true,
|
|
585
627
|
class: {
|
|
586
628
|
shortcut: ['text-warning-foreground']
|
|
587
629
|
}
|
|
588
630
|
}, {
|
|
589
|
-
|
|
631
|
+
appearance: 'default',
|
|
590
632
|
intent: 'danger',
|
|
591
633
|
isActive: true,
|
|
592
634
|
class: {
|
|
593
635
|
shortcut: ['text-danger-foreground']
|
|
594
636
|
}
|
|
595
637
|
},
|
|
596
|
-
//
|
|
638
|
+
// appearance: outlined
|
|
597
639
|
{
|
|
598
|
-
|
|
640
|
+
appearance: 'outlined',
|
|
599
641
|
intent: 'default',
|
|
600
642
|
class: {
|
|
601
643
|
base: ['data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
602
644
|
}
|
|
603
645
|
}, {
|
|
604
|
-
|
|
646
|
+
appearance: 'outlined',
|
|
605
647
|
intent: 'primary',
|
|
606
648
|
class: {
|
|
607
649
|
base: ['data-is-active:border-primary', 'data-is-active:text-primary']
|
|
608
650
|
}
|
|
609
651
|
}, {
|
|
610
|
-
|
|
652
|
+
appearance: 'outlined',
|
|
611
653
|
intent: 'success',
|
|
612
654
|
class: {
|
|
613
655
|
base: ['data-is-active:border-success', 'data-is-active:text-success']
|
|
614
656
|
}
|
|
615
657
|
}, {
|
|
616
|
-
|
|
658
|
+
appearance: 'outlined',
|
|
617
659
|
intent: 'warning',
|
|
618
660
|
class: {
|
|
619
661
|
base: ['data-is-active:border-warning', 'data-is-active:text-warning']
|
|
620
662
|
}
|
|
621
663
|
}, {
|
|
622
|
-
|
|
664
|
+
appearance: 'outlined',
|
|
623
665
|
intent: 'danger',
|
|
624
666
|
class: {
|
|
625
667
|
base: ['data-is-active:border-danger', 'data-is-active:text-danger']
|
|
626
668
|
}
|
|
627
669
|
},
|
|
628
|
-
//
|
|
670
|
+
// appearance: faded
|
|
629
671
|
{
|
|
630
|
-
|
|
672
|
+
appearance: 'faded',
|
|
631
673
|
intent: 'default',
|
|
632
674
|
class: {
|
|
633
675
|
base: ['data-is-active:bg-default-400/20', 'data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
634
676
|
}
|
|
635
677
|
}, {
|
|
636
|
-
|
|
678
|
+
appearance: 'faded',
|
|
637
679
|
intent: 'primary',
|
|
638
680
|
class: {
|
|
639
681
|
base: ['data-is-active:bg-primary-300/20', 'data-is-active:border-primary', 'data-is-active:text-primary']
|
|
640
682
|
}
|
|
641
683
|
}, {
|
|
642
|
-
|
|
684
|
+
appearance: 'faded',
|
|
643
685
|
intent: 'success',
|
|
644
686
|
class: {
|
|
645
687
|
base: ['data-is-active:bg-success-300/20', 'data-is-active:border-success', 'data-is-active:text-success']
|
|
646
688
|
}
|
|
647
689
|
}, {
|
|
648
|
-
|
|
690
|
+
appearance: 'faded',
|
|
649
691
|
intent: 'warning',
|
|
650
692
|
class: {
|
|
651
693
|
base: ['data-is-active:bg-warning-300/20', 'data-is-active:border-warning', 'data-is-active:text-warning']
|
|
652
694
|
}
|
|
653
695
|
}, {
|
|
654
|
-
|
|
696
|
+
appearance: 'faded',
|
|
655
697
|
intent: 'danger',
|
|
656
698
|
class: {
|
|
657
699
|
base: ['data-is-active:bg-danger-300/20', 'data-is-active:border-danger', 'data-is-active:text-danger']
|
|
@@ -660,18 +702,18 @@ const listboxItem = tv({
|
|
|
660
702
|
});
|
|
661
703
|
|
|
662
704
|
const dropdownContent = tv({
|
|
663
|
-
base: 'bg-content1 w-[260px] rounded border border-default-200'
|
|
705
|
+
base: 'bg-content1 w-[260px] rounded-sm border border-default-200'
|
|
664
706
|
});
|
|
665
707
|
|
|
666
708
|
const popover = tv({
|
|
667
|
-
base: 'bg-content1 rounded border border-default-200',
|
|
709
|
+
base: 'bg-content1 rounded-sm border border-default-200',
|
|
668
710
|
variants: {
|
|
669
711
|
size: {
|
|
670
712
|
sm: 'w-40',
|
|
671
713
|
md: 'w-64',
|
|
672
714
|
lg: 'w-96',
|
|
673
|
-
xl: 'w-
|
|
674
|
-
trigger: 'w-
|
|
715
|
+
xl: 'w-136',
|
|
716
|
+
trigger: 'w-(--trigger-width)'
|
|
675
717
|
}
|
|
676
718
|
},
|
|
677
719
|
defaultVariants: {
|
|
@@ -683,8 +725,8 @@ const divider = tv({
|
|
|
683
725
|
base: 'shrink-0 bg-default-200 border-none',
|
|
684
726
|
variants: {
|
|
685
727
|
orientation: {
|
|
686
|
-
horizontal: 'w-full h-
|
|
687
|
-
vertical: 'h-full w-
|
|
728
|
+
horizontal: 'w-full h-px',
|
|
729
|
+
vertical: 'h-full w-px'
|
|
688
730
|
}
|
|
689
731
|
},
|
|
690
732
|
defaultVariants: {
|
|
@@ -716,8 +758,240 @@ const spinner = tv({
|
|
|
716
758
|
}
|
|
717
759
|
});
|
|
718
760
|
|
|
761
|
+
const table = tv({
|
|
762
|
+
slots: {
|
|
763
|
+
base: ['w-full', 'caption-bottom', 'text-sm'],
|
|
764
|
+
wrapper: ['relative', 'isolate', 'overflow-auto'],
|
|
765
|
+
table: ['w-full', 'table-auto'],
|
|
766
|
+
thead: ['relative'],
|
|
767
|
+
tbody: ['divide-y', 'divide-default-100', '[&>tr]:data-[selectable=true]:data-[selected=false]:hover:bg-default-100', '[&>tr]:data-[selectable=true]:transition-colors'],
|
|
768
|
+
tfoot: ['relative'],
|
|
769
|
+
tr: ['data-[disabled=true]:opacity-50', 'data-[disabled=true]:cursor-not-allowed', 'data-[disabled=true]:hover:bg-transparent', 'data-[selectable=true]:focus-visible:ring-2', 'data-[selectable=true]:focus-visible:ring-inset', 'data-[selectable=true]:focus-visible:ring-default', 'data-[selectable=true]:focus-visible:z-10', 'transition-colors', 'duration-150', 'outline-hidden'],
|
|
770
|
+
separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-default-200'],
|
|
771
|
+
th: ['h-12', 'px-4', 'text-left', 'align-middle', 'font-medium', 'text-foreground-600', '[&:has([role=checkbox])]:pr-0', 'data-[sortable=true]:cursor-pointer'],
|
|
772
|
+
sortButton: ['group/sort', 'inline-flex', 'items-center', 'gap-1', 'w-full', 'text-left', 'font-medium', 'text-foreground-600', 'outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'],
|
|
773
|
+
sortIcon: ['size-4', 'flex-shrink-0', 'text-foreground-400', 'transition-opacity', 'data-[sorted=false]:opacity-0', 'group-hover/sort:data-[sorted=false]:opacity-100', 'data-[sorted=true]:opacity-100'],
|
|
774
|
+
columnVisibilityButton: ['flex'],
|
|
775
|
+
columnVisibilityIcon: ['size-6'],
|
|
776
|
+
td: ['p-4', 'align-middle', 'text-foreground', '[&:has([role=checkbox])]:pr-0'],
|
|
777
|
+
empty: ['text-foreground-400', 'align-middle', 'text-center', 'py-12']
|
|
778
|
+
},
|
|
779
|
+
variants: {
|
|
780
|
+
size: {
|
|
781
|
+
sm: {
|
|
782
|
+
th: 'h-10 px-3 py-2 text-xs',
|
|
783
|
+
td: 'px-3 py-2 text-xs'
|
|
784
|
+
},
|
|
785
|
+
md: {
|
|
786
|
+
th: 'h-12 px-4 text-sm',
|
|
787
|
+
td: 'p-4 text-sm'
|
|
788
|
+
},
|
|
789
|
+
lg: {
|
|
790
|
+
th: 'h-14 px-6 text-base',
|
|
791
|
+
td: 'p-6 text-base'
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
isLoading: {
|
|
795
|
+
true: {
|
|
796
|
+
thead: ['after:absolute', 'after:top-full', 'after:left-0', 'after:w-1/2', 'after:animate-swing', 'after:h-px', 'after:z-10']
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
loadingColor: {
|
|
800
|
+
default: {},
|
|
801
|
+
primary: {},
|
|
802
|
+
success: {},
|
|
803
|
+
warning: {},
|
|
804
|
+
danger: {}
|
|
805
|
+
},
|
|
806
|
+
selectionColor: {
|
|
807
|
+
default: {},
|
|
808
|
+
primary: {},
|
|
809
|
+
success: {},
|
|
810
|
+
warning: {},
|
|
811
|
+
danger: {}
|
|
812
|
+
},
|
|
813
|
+
layout: {
|
|
814
|
+
auto: {
|
|
815
|
+
table: 'table-auto'
|
|
816
|
+
},
|
|
817
|
+
fixed: {
|
|
818
|
+
table: 'table-fixed'
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
striped: {
|
|
822
|
+
true: {
|
|
823
|
+
tbody: '[&_tr:nth-child(odd)]:bg-default-100/50 dark:[&_tr:nth-child(odd)]:bg-default-200/10'
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
isSticky: {
|
|
827
|
+
true: {}
|
|
828
|
+
},
|
|
829
|
+
stickyPosition: {
|
|
830
|
+
left: {},
|
|
831
|
+
right: {},
|
|
832
|
+
top: {},
|
|
833
|
+
bottom: {}
|
|
834
|
+
},
|
|
835
|
+
isScrollable: {
|
|
836
|
+
true: {
|
|
837
|
+
wrapper: ['overflow-auto']
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
hasStickyHeader: {
|
|
841
|
+
true: {}
|
|
842
|
+
},
|
|
843
|
+
isInStickyRow: {
|
|
844
|
+
true: {}
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
compoundVariants: [
|
|
848
|
+
// Sticky header - highest priority for intersections with columns
|
|
849
|
+
{
|
|
850
|
+
isSticky: true,
|
|
851
|
+
stickyPosition: 'top',
|
|
852
|
+
class: {
|
|
853
|
+
thead: ['sticky', 'top-0', 'z-2', 'bg-background']
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
// Sticky footer
|
|
857
|
+
{
|
|
858
|
+
isSticky: true,
|
|
859
|
+
stickyPosition: 'bottom',
|
|
860
|
+
class: {
|
|
861
|
+
tfoot: ['sticky', 'bottom-0', 'z-2', 'bg-background']
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
// Sticky columns - medium priority, header cells get higher z-index
|
|
865
|
+
{
|
|
866
|
+
isSticky: true,
|
|
867
|
+
stickyPosition: 'left',
|
|
868
|
+
class: {
|
|
869
|
+
th: ['sticky', 'left-0', 'z-3', 'bg-background'],
|
|
870
|
+
// Higher for header intersection
|
|
871
|
+
td: ['sticky', 'left-0', 'z-1', 'bg-background']
|
|
872
|
+
}
|
|
873
|
+
}, {
|
|
874
|
+
isSticky: true,
|
|
875
|
+
stickyPosition: 'right',
|
|
876
|
+
class: {
|
|
877
|
+
th: ['sticky', 'right-0', 'z-3', 'bg-background'],
|
|
878
|
+
// Higher for header intersection
|
|
879
|
+
td: ['sticky', 'right-0', 'z-1', 'bg-background']
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
// Sticky rows - base layer
|
|
883
|
+
{
|
|
884
|
+
isSticky: true,
|
|
885
|
+
stickyPosition: 'top',
|
|
886
|
+
class: {
|
|
887
|
+
tr: ['sticky', 'top-0', 'z-1', 'bg-background']
|
|
888
|
+
}
|
|
889
|
+
}, {
|
|
890
|
+
isSticky: true,
|
|
891
|
+
stickyPosition: 'bottom',
|
|
892
|
+
class: {
|
|
893
|
+
tr: ['sticky', 'bottom-0', 'z-1', 'bg-background']
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
// Sticky rows with sticky header - position after header
|
|
897
|
+
{
|
|
898
|
+
isSticky: true,
|
|
899
|
+
stickyPosition: 'top',
|
|
900
|
+
hasStickyHeader: true,
|
|
901
|
+
class: {
|
|
902
|
+
tr: ['sticky', 'z-2', 'bg-background', '[&.sticky]:[top:var(--table-header-height,48px)]']
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
// Intersection cells: sticky column + sticky row - highest z-index
|
|
906
|
+
{
|
|
907
|
+
isSticky: true,
|
|
908
|
+
stickyPosition: 'left',
|
|
909
|
+
isInStickyRow: true,
|
|
910
|
+
class: {
|
|
911
|
+
td: ['sticky', 'left-0', 'z-2', 'bg-background']
|
|
912
|
+
}
|
|
913
|
+
}, {
|
|
914
|
+
isSticky: true,
|
|
915
|
+
stickyPosition: 'right',
|
|
916
|
+
isInStickyRow: true,
|
|
917
|
+
class: {
|
|
918
|
+
td: ['sticky', 'right-0', 'z-2', 'bg-background']
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
// Loading states with color variants
|
|
922
|
+
{
|
|
923
|
+
isLoading: true,
|
|
924
|
+
loadingColor: 'default',
|
|
925
|
+
class: {
|
|
926
|
+
thead: `after:bg-default`
|
|
927
|
+
}
|
|
928
|
+
}, {
|
|
929
|
+
isLoading: true,
|
|
930
|
+
loadingColor: 'primary',
|
|
931
|
+
class: {
|
|
932
|
+
thead: `after:bg-primary`
|
|
933
|
+
}
|
|
934
|
+
}, {
|
|
935
|
+
isLoading: true,
|
|
936
|
+
loadingColor: 'success',
|
|
937
|
+
class: {
|
|
938
|
+
thead: `after:bg-success`
|
|
939
|
+
}
|
|
940
|
+
}, {
|
|
941
|
+
isLoading: true,
|
|
942
|
+
loadingColor: 'warning',
|
|
943
|
+
class: {
|
|
944
|
+
thead: `after:bg-warning`
|
|
945
|
+
}
|
|
946
|
+
}, {
|
|
947
|
+
isLoading: true,
|
|
948
|
+
loadingColor: 'danger',
|
|
949
|
+
class: {
|
|
950
|
+
thead: `after:bg-danger`
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
// Selection color variants
|
|
954
|
+
{
|
|
955
|
+
selectionColor: 'default',
|
|
956
|
+
class: {
|
|
957
|
+
tbody: '[&>tr]:data-[selected=true]:bg-default-200/50',
|
|
958
|
+
tr: ['data-[selectable=true]:focus-visible:ring-default']
|
|
959
|
+
}
|
|
960
|
+
}, {
|
|
961
|
+
selectionColor: 'primary',
|
|
962
|
+
class: {
|
|
963
|
+
tbody: '[&>tr]:data-[selected=true]:bg-primary-50',
|
|
964
|
+
tr: ['data-[selectable=true]:focus-visible:ring-primary']
|
|
965
|
+
}
|
|
966
|
+
}, {
|
|
967
|
+
selectionColor: 'success',
|
|
968
|
+
class: {
|
|
969
|
+
tbody: '[&>tr]:data-[selected=true]:bg-success-50',
|
|
970
|
+
tr: ['data-[selectable=true]:focus-visible:ring-success']
|
|
971
|
+
}
|
|
972
|
+
}, {
|
|
973
|
+
selectionColor: 'warning',
|
|
974
|
+
class: {
|
|
975
|
+
tbody: '[&>tr]:data-[selected=true]:bg-warning-50',
|
|
976
|
+
tr: ['data-[selectable=true]:focus-visible:ring-warning']
|
|
977
|
+
}
|
|
978
|
+
}, {
|
|
979
|
+
selectionColor: 'danger',
|
|
980
|
+
class: {
|
|
981
|
+
tbody: '[&>tr]:data-[selected=true]:bg-danger-50',
|
|
982
|
+
tr: ['data-[selectable=true]:focus-visible:ring-danger']
|
|
983
|
+
}
|
|
984
|
+
}],
|
|
985
|
+
defaultVariants: {
|
|
986
|
+
size: 'md',
|
|
987
|
+
layout: 'auto',
|
|
988
|
+
loadingColor: 'default',
|
|
989
|
+
selectionColor: 'primary'
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
|
|
719
993
|
const notificationsContainer = tv({
|
|
720
|
-
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-
|
|
994
|
+
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-1000'],
|
|
721
995
|
variants: {
|
|
722
996
|
placement: {
|
|
723
997
|
'top-left': 'top-0 left-0',
|
|
@@ -733,14 +1007,14 @@ const notificationsContainer = tv({
|
|
|
733
1007
|
}
|
|
734
1008
|
});
|
|
735
1009
|
|
|
736
|
-
const btn = 'transition transition-200
|
|
1010
|
+
const btn = ['transition transition-200', ...focusVisibleRing];
|
|
737
1011
|
const notificationCard = tv({
|
|
738
1012
|
slots: {
|
|
739
|
-
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded shadow transition-all transition-200 ease-in-out',
|
|
1013
|
+
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded-sm shadow-sm transition-all transition-200 ease-in-out',
|
|
740
1014
|
message: 'grow',
|
|
741
1015
|
customActions: 'flex flex-nowrap',
|
|
742
|
-
customActionButton: btn
|
|
743
|
-
closeButton: btn
|
|
1016
|
+
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded-sm'],
|
|
1017
|
+
closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full']
|
|
744
1018
|
},
|
|
745
1019
|
variants: {
|
|
746
1020
|
appearance: {
|
|
@@ -822,7 +1096,7 @@ const notificationTransitions = {
|
|
|
822
1096
|
}
|
|
823
1097
|
};
|
|
824
1098
|
|
|
825
|
-
const obscurer = `before:bg-
|
|
1099
|
+
const obscurer = `before:bg-linear-to-b before:to-content1 before:from-content1/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;
|
|
826
1100
|
const overlay = tv({
|
|
827
1101
|
base: 'will-change-transform overflow-auto',
|
|
828
1102
|
variants: {
|
|
@@ -840,7 +1114,7 @@ const backdrop = tv({
|
|
|
840
1114
|
type: {
|
|
841
1115
|
none: '',
|
|
842
1116
|
transparent: '',
|
|
843
|
-
blur: 'bg-overlay/[.45] backdrop-blur',
|
|
1117
|
+
blur: 'bg-overlay/[.45] backdrop-blur-sm',
|
|
844
1118
|
faded: 'bg-overlay/[.45]'
|
|
845
1119
|
},
|
|
846
1120
|
inPlace: {
|
|
@@ -850,7 +1124,7 @@ const backdrop = tv({
|
|
|
850
1124
|
});
|
|
851
1125
|
const modal = tv({
|
|
852
1126
|
slots: {
|
|
853
|
-
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded my-24 w-full outline-
|
|
1127
|
+
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded-sm my-24 w-full outline-hidden overflow-hidden',
|
|
854
1128
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
855
1129
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
856
1130
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -872,7 +1146,7 @@ const modal = tv({
|
|
|
872
1146
|
});
|
|
873
1147
|
const drawer = tv({
|
|
874
1148
|
slots: {
|
|
875
|
-
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow',
|
|
1149
|
+
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow-sm outline-hidden',
|
|
876
1150
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
877
1151
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
878
1152
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -1111,7 +1385,7 @@ const input = tv({
|
|
|
1111
1385
|
innerContainer: 'relative flex',
|
|
1112
1386
|
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
1113
1387
|
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
1114
|
-
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded', 'leading-tight', 'focus:ring', 'focus:outline-
|
|
1388
|
+
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded-sm', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary-400', 'selection:bg-content3', 'disabled:border-default-200 disabled:text-default-500', 'aria-invalid:border-danger-400', 'aria-invalid:focus:ring-danger-400']
|
|
1115
1389
|
},
|
|
1116
1390
|
variants: {
|
|
1117
1391
|
size: {
|
|
@@ -1178,7 +1452,7 @@ const textarea = tv({
|
|
|
1178
1452
|
const checkboxRadioBase = tv({
|
|
1179
1453
|
slots: {
|
|
1180
1454
|
base: ['max-w-fit flex items-center justify-start'],
|
|
1181
|
-
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300'],
|
|
1455
|
+
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300', ...focusVisibleRing],
|
|
1182
1456
|
labelContainer: ['flex flex-col ml-2'],
|
|
1183
1457
|
label: 'font-normal pb-0'
|
|
1184
1458
|
},
|
|
@@ -1216,7 +1490,9 @@ const checkboxRadioGroupBase = tv({
|
|
|
1216
1490
|
const checkbox = tv({
|
|
1217
1491
|
extend: checkboxRadioBase,
|
|
1218
1492
|
slots: {
|
|
1219
|
-
input: ['checked-bg-checkbox', 'rounded-
|
|
1493
|
+
input: ['checked-bg-checkbox', 'indeterminate-bg-checkbox', 'rounded-xs',
|
|
1494
|
+
// Indeterminate state styles - show minus/dash icon
|
|
1495
|
+
'indeterminate:bg-primary', 'indeterminate:border-primary', 'indeterminate:bg-origin-border', 'indeterminate:bg-center', 'indeterminate:bg-no-repeat', 'dark:indeterminate:bg-current']
|
|
1220
1496
|
},
|
|
1221
1497
|
variants: {
|
|
1222
1498
|
size: {
|
|
@@ -1271,7 +1547,7 @@ const select = tv({
|
|
|
1271
1547
|
listbox: 'scroll-py-6 max-h-64',
|
|
1272
1548
|
icon: 'w-5 h-5',
|
|
1273
1549
|
clearButton: 'pointer-events-auto',
|
|
1274
|
-
input: '[
|
|
1550
|
+
input: '[button]:cursor-default',
|
|
1275
1551
|
emptyContent: 'p-2'
|
|
1276
1552
|
},
|
|
1277
1553
|
variants: {
|
|
@@ -1299,6 +1575,70 @@ const nativeSelect = tv({
|
|
|
1299
1575
|
}
|
|
1300
1576
|
}
|
|
1301
1577
|
});
|
|
1578
|
+
const switchInput = tv({
|
|
1579
|
+
slots: {
|
|
1580
|
+
base: 'group relative max-w-fit inline-flex items-center justify-start',
|
|
1581
|
+
labelContainer: 'flex flex-col ml-2',
|
|
1582
|
+
label: 'font-normal pb-0',
|
|
1583
|
+
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'shrink-0', 'overflow-hidden', 'bg-default-300', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
|
|
1584
|
+
hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-1', 'cursor-pointer', 'disabled:cursor-default'],
|
|
1585
|
+
thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
|
|
1586
|
+
startContent: ['z-0 absolute start-1.5 text-current', 'opacity-0', 'scale-50', 'transition-transform-opacity', 'group-data-[selected=true]:scale-100', 'group-data-[selected=true]:opacity-100'],
|
|
1587
|
+
endContent: ['z-0 absolute end-1.5 text-default-600', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
|
|
1588
|
+
},
|
|
1589
|
+
variants: {
|
|
1590
|
+
isDisabled: {
|
|
1591
|
+
true: {
|
|
1592
|
+
wrapper: 'opacity-disabled pointer-events-none'
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
size: {
|
|
1596
|
+
sm: {
|
|
1597
|
+
wrapper: 'w-6 h-3 px-[2px]',
|
|
1598
|
+
thumb: ['w-2 h-2 text-xs', 'group-data-[selected=true]:ms-3'],
|
|
1599
|
+
endContent: 'text-xs',
|
|
1600
|
+
startContent: 'text-xs',
|
|
1601
|
+
label: 'text-small'
|
|
1602
|
+
},
|
|
1603
|
+
md: {
|
|
1604
|
+
wrapper: 'w-11 h-6',
|
|
1605
|
+
thumb: ['w-4 h-4 text-sm', 'group-data-[selected=true]:ms-5'],
|
|
1606
|
+
endContent: 'text-sm',
|
|
1607
|
+
startContent: 'text-sm',
|
|
1608
|
+
label: 'text-md'
|
|
1609
|
+
},
|
|
1610
|
+
lg: {
|
|
1611
|
+
wrapper: 'w-12 h-7',
|
|
1612
|
+
thumb: ['w-5 h-5 text-medium', 'group-data-[selected=true]:ms-5'],
|
|
1613
|
+
endContent: 'text-md',
|
|
1614
|
+
startContent: 'text-md',
|
|
1615
|
+
label: 'text-lg'
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
intent: {
|
|
1619
|
+
default: {
|
|
1620
|
+
wrapper: ['group-data-[selected=true]:bg-default-400', 'group-data-[selected=true]:text-default-foreground']
|
|
1621
|
+
},
|
|
1622
|
+
primary: {
|
|
1623
|
+
wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-primary-foreground']
|
|
1624
|
+
},
|
|
1625
|
+
success: {
|
|
1626
|
+
wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-success-foreground']
|
|
1627
|
+
},
|
|
1628
|
+
warning: {
|
|
1629
|
+
wrapper: ['group-data-[selected=true]:bg-warning', 'group-data-[selected=true]:text-warning-foreground']
|
|
1630
|
+
},
|
|
1631
|
+
danger: {
|
|
1632
|
+
wrapper: ['group-data-[selected=true]:bg-danger', 'data-[selected=true]:text-danger-foreground']
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
defaultVariants: {
|
|
1637
|
+
size: 'md',
|
|
1638
|
+
intent: 'primary',
|
|
1639
|
+
isDisabled: false
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1302
1642
|
|
|
1303
1643
|
const base = tv({
|
|
1304
1644
|
slots: {
|
|
@@ -1419,5 +1759,5 @@ const formSelect = tv({
|
|
|
1419
1759
|
}
|
|
1420
1760
|
});
|
|
1421
1761
|
|
|
1422
|
-
export {
|
|
1423
|
-
//# sourceMappingURL=forms-legacy-
|
|
1762
|
+
export { notificationCard as A, notificationTransitions as B, notificationsContainer as C, overlay as D, overlayTransitions as E, popover as F, progressBar as G, radio as H, radioGroup as I, select as J, spinner as K, switchInput as L, table as M, textarea as N, toggleButton as O, twMerge as P, avatar as a, backdrop as b, button as c, buttonGroup as d, checkbox as e, checkboxGroup as f, chip as g, closeButton as h, divider as i, drawer as j, dropdownContent as k, formCheckbox as l, formCheckboxGroup as m, formDescription as n, formFeedback as o, formInput as p, formRadio as q, formRadioGroup as r, formSelect as s, formTextarea as t, input as u, label as v, listbox as w, listboxItem as x, modal as y, nativeSelect as z };
|
|
1763
|
+
//# sourceMappingURL=forms-legacy-Bg_UoLDR.js.map
|