@nextui-org/theme 2.2.10 → 2.3.0-beta.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/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
- package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
- package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +12 -5
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +19 -12
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +26 -19
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +12 -5
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +503 -210
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +55 -47
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +22 -15
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +44 -44
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +36 -38
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +528 -224
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var components_exports = {};
|
|
|
22
22
|
__export(components_exports, {
|
|
23
23
|
accordion: () => accordion,
|
|
24
24
|
accordionItem: () => accordionItem,
|
|
25
|
+
alert: () => alert,
|
|
25
26
|
autocomplete: () => autocomplete,
|
|
26
27
|
avatar: () => avatar,
|
|
27
28
|
avatarGroup: () => avatarGroup,
|
|
@@ -41,6 +42,7 @@ __export(components_exports, {
|
|
|
41
42
|
datePicker: () => datePicker,
|
|
42
43
|
dateRangePicker: () => dateRangePicker,
|
|
43
44
|
divider: () => divider,
|
|
45
|
+
drawer: () => drawer,
|
|
44
46
|
drip: () => drip,
|
|
45
47
|
dropdown: () => dropdown,
|
|
46
48
|
dropdownItem: () => dropdownItem,
|
|
@@ -93,7 +95,14 @@ var twMergeConfig = {
|
|
|
93
95
|
classGroups: {
|
|
94
96
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
95
97
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
96
|
-
"bg-image": [
|
|
98
|
+
"bg-image": [
|
|
99
|
+
"bg-stripe-gradient-default",
|
|
100
|
+
"bg-stripe-gradient-primary",
|
|
101
|
+
"bg-stripe-gradient-secondary",
|
|
102
|
+
"bg-stripe-gradient-success",
|
|
103
|
+
"bg-stripe-gradient-warning",
|
|
104
|
+
"bg-stripe-gradient-danger"
|
|
105
|
+
]
|
|
97
106
|
}
|
|
98
107
|
};
|
|
99
108
|
|
|
@@ -186,11 +195,11 @@ var bordered = {
|
|
|
186
195
|
};
|
|
187
196
|
var flat = {
|
|
188
197
|
default: "bg-default/40 text-default-700",
|
|
189
|
-
primary: "bg-primary/20 text-primary-
|
|
190
|
-
secondary: "bg-secondary/20 text-secondary-
|
|
191
|
-
success: "bg-success/20 text-success-
|
|
192
|
-
warning: "bg-warning/20 text-warning-
|
|
193
|
-
danger: "bg-danger/20 text-danger-
|
|
198
|
+
primary: "bg-primary/20 text-primary-600",
|
|
199
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
200
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
201
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
202
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
194
203
|
foreground: "bg-foreground/10 text-foreground"
|
|
195
204
|
};
|
|
196
205
|
var faded = {
|
|
@@ -963,7 +972,10 @@ var button = tv({
|
|
|
963
972
|
{
|
|
964
973
|
variant: "ghost",
|
|
965
974
|
color: "danger",
|
|
966
|
-
class: [
|
|
975
|
+
class: [
|
|
976
|
+
colorVariants.ghost.danger,
|
|
977
|
+
"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"
|
|
978
|
+
]
|
|
967
979
|
},
|
|
968
980
|
{
|
|
969
981
|
isInGroup: true,
|
|
@@ -2538,7 +2550,7 @@ var badge = tv({
|
|
|
2538
2550
|
// src/components/checkbox.ts
|
|
2539
2551
|
var checkbox = tv({
|
|
2540
2552
|
slots: {
|
|
2541
|
-
base: "group
|
|
2553
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2542
2554
|
wrapper: [
|
|
2543
2555
|
"relative",
|
|
2544
2556
|
"inline-flex",
|
|
@@ -2559,12 +2571,12 @@ var checkbox = tv({
|
|
|
2559
2571
|
"after:scale-50",
|
|
2560
2572
|
"after:opacity-0",
|
|
2561
2573
|
"after:origin-center",
|
|
2562
|
-
"group-data-[selected=true]
|
|
2563
|
-
"group-data-[selected=true]
|
|
2564
|
-
"group-data-[hover=true]
|
|
2574
|
+
"group-data-[selected=true]:after:scale-100",
|
|
2575
|
+
"group-data-[selected=true]:after:opacity-100",
|
|
2576
|
+
"group-data-[hover=true]:before:bg-default-100",
|
|
2565
2577
|
...groupDataFocusVisibleClasses
|
|
2566
2578
|
],
|
|
2567
|
-
icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]
|
|
2579
|
+
icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",
|
|
2568
2580
|
label: "relative text-foreground select-none"
|
|
2569
2581
|
},
|
|
2570
2582
|
variants: {
|
|
@@ -2591,7 +2603,7 @@ var checkbox = tv({
|
|
|
2591
2603
|
size: {
|
|
2592
2604
|
sm: {
|
|
2593
2605
|
wrapper: [
|
|
2594
|
-
"w-4 h-4
|
|
2606
|
+
"w-4 h-4 me-2",
|
|
2595
2607
|
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2596
2608
|
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2597
2609
|
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
|
|
@@ -2601,7 +2613,7 @@ var checkbox = tv({
|
|
|
2601
2613
|
},
|
|
2602
2614
|
md: {
|
|
2603
2615
|
wrapper: [
|
|
2604
|
-
"w-5 h-5
|
|
2616
|
+
"w-5 h-5 me-2",
|
|
2605
2617
|
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2606
2618
|
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2607
2619
|
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
|
|
@@ -2611,7 +2623,7 @@ var checkbox = tv({
|
|
|
2611
2623
|
},
|
|
2612
2624
|
lg: {
|
|
2613
2625
|
wrapper: [
|
|
2614
|
-
"w-6 h-6
|
|
2626
|
+
"w-6 h-6 me-2",
|
|
2615
2627
|
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2616
2628
|
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2617
2629
|
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
|
|
@@ -2660,8 +2672,8 @@ var checkbox = tv({
|
|
|
2660
2672
|
"before:bg-foreground",
|
|
2661
2673
|
"before:w-0",
|
|
2662
2674
|
"before:h-0.5",
|
|
2663
|
-
"group-data-[selected=true]
|
|
2664
|
-
"group-data-[selected=true]
|
|
2675
|
+
"group-data-[selected=true]:opacity-60",
|
|
2676
|
+
"group-data-[selected=true]:before:w-full"
|
|
2665
2677
|
]
|
|
2666
2678
|
}
|
|
2667
2679
|
},
|
|
@@ -2685,7 +2697,7 @@ var checkbox = tv({
|
|
|
2685
2697
|
false: {
|
|
2686
2698
|
wrapper: [
|
|
2687
2699
|
"before:transition-colors",
|
|
2688
|
-
"group-data-[pressed=true]
|
|
2700
|
+
"group-data-[pressed=true]:scale-95",
|
|
2689
2701
|
"transition-transform",
|
|
2690
2702
|
"after:transition-transform-opacity",
|
|
2691
2703
|
"after:!ease-linear",
|
|
@@ -2739,7 +2751,7 @@ var checkboxGroup = tv({
|
|
|
2739
2751
|
// src/components/radio.ts
|
|
2740
2752
|
var radio = tv({
|
|
2741
2753
|
slots: {
|
|
2742
|
-
base: "group
|
|
2754
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
|
|
2743
2755
|
wrapper: [
|
|
2744
2756
|
"relative",
|
|
2745
2757
|
"inline-flex",
|
|
@@ -2752,7 +2764,7 @@ var radio = tv({
|
|
|
2752
2764
|
"box-border",
|
|
2753
2765
|
"border-default",
|
|
2754
2766
|
"rounded-full",
|
|
2755
|
-
"group-data-[hover-unselected=true]
|
|
2767
|
+
"group-data-[hover-unselected=true]:bg-default-100",
|
|
2756
2768
|
...groupDataFocusVisibleClasses
|
|
2757
2769
|
],
|
|
2758
2770
|
labelWrapper: "flex flex-col ml-1",
|
|
@@ -2764,8 +2776,8 @@ var radio = tv({
|
|
|
2764
2776
|
"scale-0",
|
|
2765
2777
|
"origin-center",
|
|
2766
2778
|
"rounded-full",
|
|
2767
|
-
"group-data-[selected=true]
|
|
2768
|
-
"group-data-[selected=true]
|
|
2779
|
+
"group-data-[selected=true]:opacity-100",
|
|
2780
|
+
"group-data-[selected=true]:scale-100"
|
|
2769
2781
|
],
|
|
2770
2782
|
label: "relative text-foreground select-none",
|
|
2771
2783
|
description: "relative text-foreground-400"
|
|
@@ -2774,27 +2786,27 @@ var radio = tv({
|
|
|
2774
2786
|
color: {
|
|
2775
2787
|
default: {
|
|
2776
2788
|
control: "bg-default-500 text-default-foreground",
|
|
2777
|
-
wrapper: "group-data-[selected=true]
|
|
2789
|
+
wrapper: "group-data-[selected=true]:border-default-500"
|
|
2778
2790
|
},
|
|
2779
2791
|
primary: {
|
|
2780
2792
|
control: "bg-primary text-primary-foreground",
|
|
2781
|
-
wrapper: "group-data-[selected=true]
|
|
2793
|
+
wrapper: "group-data-[selected=true]:border-primary"
|
|
2782
2794
|
},
|
|
2783
2795
|
secondary: {
|
|
2784
2796
|
control: "bg-secondary text-secondary-foreground",
|
|
2785
|
-
wrapper: "group-data-[selected=true]
|
|
2797
|
+
wrapper: "group-data-[selected=true]:border-secondary"
|
|
2786
2798
|
},
|
|
2787
2799
|
success: {
|
|
2788
2800
|
control: "bg-success text-success-foreground",
|
|
2789
|
-
wrapper: "group-data-[selected=true]
|
|
2801
|
+
wrapper: "group-data-[selected=true]:border-success"
|
|
2790
2802
|
},
|
|
2791
2803
|
warning: {
|
|
2792
2804
|
control: "bg-warning text-warning-foreground",
|
|
2793
|
-
wrapper: "group-data-[selected=true]
|
|
2805
|
+
wrapper: "group-data-[selected=true]:border-warning"
|
|
2794
2806
|
},
|
|
2795
2807
|
danger: {
|
|
2796
2808
|
control: "bg-danger text-danger-foreground",
|
|
2797
|
-
wrapper: "group-data-[selected=true]
|
|
2809
|
+
wrapper: "group-data-[selected=true]:border-danger"
|
|
2798
2810
|
}
|
|
2799
2811
|
},
|
|
2800
2812
|
size: {
|
|
@@ -2808,14 +2820,14 @@ var radio = tv({
|
|
|
2808
2820
|
md: {
|
|
2809
2821
|
wrapper: "w-5 h-5",
|
|
2810
2822
|
control: "w-2 h-2",
|
|
2811
|
-
labelWrapper: "
|
|
2823
|
+
labelWrapper: "ms-2",
|
|
2812
2824
|
label: "text-medium",
|
|
2813
2825
|
description: "text-small"
|
|
2814
2826
|
},
|
|
2815
2827
|
lg: {
|
|
2816
2828
|
wrapper: "w-6 h-6",
|
|
2817
2829
|
control: "w-2.5 h-2.5",
|
|
2818
|
-
labelWrapper: "
|
|
2830
|
+
labelWrapper: "ms-2",
|
|
2819
2831
|
label: "text-large",
|
|
2820
2832
|
description: "text-medium"
|
|
2821
2833
|
}
|
|
@@ -2828,7 +2840,7 @@ var radio = tv({
|
|
|
2828
2840
|
isInvalid: {
|
|
2829
2841
|
true: {
|
|
2830
2842
|
control: "bg-danger text-danger-foreground",
|
|
2831
|
-
wrapper: "border-danger group-data-[selected=true]
|
|
2843
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2832
2844
|
label: "text-danger",
|
|
2833
2845
|
description: "text-danger-300"
|
|
2834
2846
|
}
|
|
@@ -2837,7 +2849,7 @@ var radio = tv({
|
|
|
2837
2849
|
true: {},
|
|
2838
2850
|
false: {
|
|
2839
2851
|
wrapper: [
|
|
2840
|
-
"group-data-[pressed=true]
|
|
2852
|
+
"group-data-[pressed=true]:scale-95",
|
|
2841
2853
|
"transition-transform-colors",
|
|
2842
2854
|
"motion-reduce:transition-none"
|
|
2843
2855
|
],
|
|
@@ -3286,7 +3298,7 @@ var pagination = tv({
|
|
|
3286
3298
|
// src/components/toggle.ts
|
|
3287
3299
|
var toggle = tv({
|
|
3288
3300
|
slots: {
|
|
3289
|
-
base: "group
|
|
3301
|
+
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
|
|
3290
3302
|
wrapper: [
|
|
3291
3303
|
"px-1",
|
|
3292
3304
|
"relative",
|
|
@@ -3309,76 +3321,76 @@ var toggle = tv({
|
|
|
3309
3321
|
"rounded-full",
|
|
3310
3322
|
"origin-right"
|
|
3311
3323
|
],
|
|
3312
|
-
startContent: "z-0 absolute
|
|
3313
|
-
endContent: "z-0 absolute
|
|
3324
|
+
startContent: "z-0 absolute start-1.5 text-current",
|
|
3325
|
+
endContent: "z-0 absolute end-1.5 text-default-600",
|
|
3314
3326
|
thumbIcon: "text-black",
|
|
3315
|
-
label: "relative text-foreground select-none"
|
|
3327
|
+
label: "relative text-foreground select-none ms-2"
|
|
3316
3328
|
},
|
|
3317
3329
|
variants: {
|
|
3318
3330
|
color: {
|
|
3319
3331
|
default: {
|
|
3320
3332
|
wrapper: [
|
|
3321
|
-
"group-data-[selected=true]
|
|
3322
|
-
"group-data-[selected=true]
|
|
3333
|
+
"group-data-[selected=true]:bg-default-400",
|
|
3334
|
+
"group-data-[selected=true]:text-default-foreground"
|
|
3323
3335
|
]
|
|
3324
3336
|
},
|
|
3325
3337
|
primary: {
|
|
3326
3338
|
wrapper: [
|
|
3327
|
-
"group-data-[selected=true]
|
|
3328
|
-
"group-data-[selected=true]
|
|
3339
|
+
"group-data-[selected=true]:bg-primary",
|
|
3340
|
+
"group-data-[selected=true]:text-primary-foreground"
|
|
3329
3341
|
]
|
|
3330
3342
|
},
|
|
3331
3343
|
secondary: {
|
|
3332
3344
|
wrapper: [
|
|
3333
|
-
"group-data-[selected=true]
|
|
3334
|
-
"group-data-[selected=true]
|
|
3345
|
+
"group-data-[selected=true]:bg-secondary",
|
|
3346
|
+
"group-data-[selected=true]:text-secondary-foreground"
|
|
3335
3347
|
]
|
|
3336
3348
|
},
|
|
3337
3349
|
success: {
|
|
3338
3350
|
wrapper: [
|
|
3339
|
-
"group-data-[selected=true]
|
|
3340
|
-
"group-data-[selected=true]
|
|
3351
|
+
"group-data-[selected=true]:bg-success",
|
|
3352
|
+
"group-data-[selected=true]:text-success-foreground"
|
|
3341
3353
|
]
|
|
3342
3354
|
},
|
|
3343
3355
|
warning: {
|
|
3344
3356
|
wrapper: [
|
|
3345
|
-
"group-data-[selected=true]
|
|
3346
|
-
"group-data-[selected=true]
|
|
3357
|
+
"group-data-[selected=true]:bg-warning",
|
|
3358
|
+
"group-data-[selected=true]:text-warning-foreground"
|
|
3347
3359
|
]
|
|
3348
3360
|
},
|
|
3349
3361
|
danger: {
|
|
3350
3362
|
wrapper: [
|
|
3351
|
-
"group-data-[selected=true]
|
|
3363
|
+
"group-data-[selected=true]:bg-danger",
|
|
3352
3364
|
"data-[selected=true]:text-danger-foreground"
|
|
3353
3365
|
]
|
|
3354
3366
|
}
|
|
3355
3367
|
},
|
|
3356
3368
|
size: {
|
|
3357
3369
|
sm: {
|
|
3358
|
-
wrapper: "w-10 h-6
|
|
3370
|
+
wrapper: "w-10 h-6",
|
|
3359
3371
|
thumb: [
|
|
3360
3372
|
"w-4 h-4 text-tiny",
|
|
3361
|
-
"group-data-[selected=true]
|
|
3373
|
+
"group-data-[selected=true]:ms-4"
|
|
3362
3374
|
],
|
|
3363
3375
|
endContent: "text-tiny",
|
|
3364
3376
|
startContent: "text-tiny",
|
|
3365
3377
|
label: "text-small"
|
|
3366
3378
|
},
|
|
3367
3379
|
md: {
|
|
3368
|
-
wrapper: "w-12 h-7
|
|
3380
|
+
wrapper: "w-12 h-7",
|
|
3369
3381
|
thumb: [
|
|
3370
3382
|
"w-5 h-5 text-small",
|
|
3371
|
-
"group-data-[selected=true]
|
|
3383
|
+
"group-data-[selected=true]:ms-5"
|
|
3372
3384
|
],
|
|
3373
3385
|
endContent: "text-small",
|
|
3374
3386
|
startContent: "text-small",
|
|
3375
3387
|
label: "text-medium"
|
|
3376
3388
|
},
|
|
3377
3389
|
lg: {
|
|
3378
|
-
wrapper: "w-14 h-8
|
|
3390
|
+
wrapper: "w-14 h-8",
|
|
3379
3391
|
thumb: [
|
|
3380
3392
|
"w-6 h-6 text-medium",
|
|
3381
|
-
"group-data-[selected=true]
|
|
3393
|
+
"group-data-[selected=true]:ms-6"
|
|
3382
3394
|
],
|
|
3383
3395
|
endContent: "text-medium",
|
|
3384
3396
|
startContent: "text-medium",
|
|
@@ -3402,14 +3414,14 @@ var toggle = tv({
|
|
|
3402
3414
|
"opacity-0",
|
|
3403
3415
|
"scale-50",
|
|
3404
3416
|
"transition-transform-opacity",
|
|
3405
|
-
"group-data-[selected=true]
|
|
3406
|
-
"group-data-[selected=true]
|
|
3417
|
+
"group-data-[selected=true]:scale-100",
|
|
3418
|
+
"group-data-[selected=true]:opacity-100"
|
|
3407
3419
|
],
|
|
3408
3420
|
endContent: [
|
|
3409
3421
|
"opacity-100",
|
|
3410
3422
|
"transition-transform-opacity",
|
|
3411
|
-
"group-data-[selected=true]
|
|
3412
|
-
"group-data-[selected=true]
|
|
3423
|
+
"group-data-[selected=true]:translate-x-3",
|
|
3424
|
+
"group-data-[selected=true]:opacity-0"
|
|
3413
3425
|
]
|
|
3414
3426
|
}
|
|
3415
3427
|
}
|
|
@@ -3424,30 +3436,21 @@ var toggle = tv({
|
|
|
3424
3436
|
disableAnimation: false,
|
|
3425
3437
|
size: "sm",
|
|
3426
3438
|
class: {
|
|
3427
|
-
thumb: [
|
|
3428
|
-
"group-data-[pressed=true]/toggle:w-5",
|
|
3429
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-3"
|
|
3430
|
-
]
|
|
3439
|
+
thumb: ["group-data-[pressed=true]:w-5", "group-data-[selected]:group-data-[pressed]:ml-3"]
|
|
3431
3440
|
}
|
|
3432
3441
|
},
|
|
3433
3442
|
{
|
|
3434
3443
|
disableAnimation: false,
|
|
3435
3444
|
size: "md",
|
|
3436
3445
|
class: {
|
|
3437
|
-
thumb: [
|
|
3438
|
-
"group-data-[pressed=true]/toggle:w-6",
|
|
3439
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-4"
|
|
3440
|
-
]
|
|
3446
|
+
thumb: ["group-data-[pressed=true]:w-6", "group-data-[selected]:group-data-[pressed]:ml-4"]
|
|
3441
3447
|
}
|
|
3442
3448
|
},
|
|
3443
3449
|
{
|
|
3444
3450
|
disableAnimation: false,
|
|
3445
3451
|
size: "lg",
|
|
3446
3452
|
class: {
|
|
3447
|
-
thumb: [
|
|
3448
|
-
"group-data-[pressed=true]/toggle:w-7",
|
|
3449
|
-
"group-data-[selected]/toggle:group-data-[pressed]/toggle:ml-5"
|
|
3450
|
-
]
|
|
3453
|
+
thumb: ["group-data-[pressed=true]:w-7", "group-data-[selected]:group-data-[pressed]:ml-5"]
|
|
3451
3454
|
}
|
|
3452
3455
|
}
|
|
3453
3456
|
]
|
|
@@ -3612,7 +3615,7 @@ var progress = tv(
|
|
|
3612
3615
|
},
|
|
3613
3616
|
isStriped: {
|
|
3614
3617
|
true: {
|
|
3615
|
-
indicator: "bg-stripe-gradient bg-
|
|
3618
|
+
indicator: "bg-stripe-gradient-default bg-stripe-size"
|
|
3616
3619
|
}
|
|
3617
3620
|
},
|
|
3618
3621
|
isIndeterminate: {
|
|
@@ -3647,6 +3650,41 @@ var progress = tv(
|
|
|
3647
3650
|
class: {
|
|
3648
3651
|
indicator: "!transition-none motion-reduce:transition-none"
|
|
3649
3652
|
}
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
color: "primary",
|
|
3656
|
+
isStriped: true,
|
|
3657
|
+
class: {
|
|
3658
|
+
indicator: "bg-stripe-gradient-primary bg-stripe-size"
|
|
3659
|
+
}
|
|
3660
|
+
},
|
|
3661
|
+
{
|
|
3662
|
+
color: "secondary",
|
|
3663
|
+
isStriped: true,
|
|
3664
|
+
class: {
|
|
3665
|
+
indicator: "bg-stripe-gradient-secondary bg-stripe-size"
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
color: "success",
|
|
3670
|
+
isStriped: true,
|
|
3671
|
+
class: {
|
|
3672
|
+
indicator: "bg-stripe-gradient-success bg-stripe-size"
|
|
3673
|
+
}
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
color: "warning",
|
|
3677
|
+
isStriped: true,
|
|
3678
|
+
class: {
|
|
3679
|
+
indicator: "bg-stripe-gradient-warning bg-stripe-size"
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
color: "danger",
|
|
3684
|
+
isStriped: true,
|
|
3685
|
+
class: {
|
|
3686
|
+
indicator: "bg-stripe-gradient-danger bg-stripe-size"
|
|
3687
|
+
}
|
|
3650
3688
|
}
|
|
3651
3689
|
]
|
|
3652
3690
|
},
|
|
@@ -3740,7 +3778,7 @@ var circularProgress = tv({
|
|
|
3740
3778
|
// src/components/input.ts
|
|
3741
3779
|
var input = tv({
|
|
3742
3780
|
slots: {
|
|
3743
|
-
base: "group
|
|
3781
|
+
base: "group flex flex-col data-[hidden=true]:hidden",
|
|
3744
3782
|
label: [
|
|
3745
3783
|
"absolute",
|
|
3746
3784
|
"z-10",
|
|
@@ -3780,7 +3818,7 @@ var input = tv({
|
|
|
3780
3818
|
"rounded-full",
|
|
3781
3819
|
...dataFocusVisibleClasses
|
|
3782
3820
|
],
|
|
3783
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
3821
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
3784
3822
|
description: "text-tiny text-foreground-400",
|
|
3785
3823
|
errorMessage: "text-tiny text-danger"
|
|
3786
3824
|
},
|
|
@@ -3790,7 +3828,7 @@ var input = tv({
|
|
|
3790
3828
|
inputWrapper: [
|
|
3791
3829
|
"bg-default-100",
|
|
3792
3830
|
"data-[hover=true]:bg-default-200",
|
|
3793
|
-
"group-data-[focus=true]
|
|
3831
|
+
"group-data-[focus=true]:bg-default-100"
|
|
3794
3832
|
]
|
|
3795
3833
|
},
|
|
3796
3834
|
faded: {
|
|
@@ -3800,14 +3838,14 @@ var input = tv({
|
|
|
3800
3838
|
"border-default-200",
|
|
3801
3839
|
"data-[hover=true]:border-default-400"
|
|
3802
3840
|
],
|
|
3803
|
-
value: "group-data-[has-value=true]
|
|
3841
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
3804
3842
|
},
|
|
3805
3843
|
bordered: {
|
|
3806
3844
|
inputWrapper: [
|
|
3807
3845
|
"border-medium",
|
|
3808
3846
|
"border-default-200",
|
|
3809
3847
|
"data-[hover=true]:border-default-400",
|
|
3810
|
-
"group-data-[focus=true]
|
|
3848
|
+
"group-data-[focus=true]:border-default-foreground"
|
|
3811
3849
|
]
|
|
3812
3850
|
},
|
|
3813
3851
|
underlined: {
|
|
@@ -3831,10 +3869,10 @@ var input = tv({
|
|
|
3831
3869
|
"after:-translate-x-1/2",
|
|
3832
3870
|
"after:-bottom-[2px]",
|
|
3833
3871
|
"after:h-[2px]",
|
|
3834
|
-
"group-data-[focus=true]
|
|
3872
|
+
"group-data-[focus=true]:after:w-full"
|
|
3835
3873
|
],
|
|
3836
3874
|
innerWrapper: "pb-1",
|
|
3837
|
-
label: "group-data-[filled-within=true]
|
|
3875
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
3838
3876
|
}
|
|
3839
3877
|
},
|
|
3840
3878
|
color: {
|
|
@@ -3893,17 +3931,18 @@ var input = tv({
|
|
|
3893
3931
|
inside: {
|
|
3894
3932
|
label: "text-tiny cursor-text",
|
|
3895
3933
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3896
|
-
innerWrapper: "group-data-[has-label=true]
|
|
3934
|
+
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
3897
3935
|
}
|
|
3898
3936
|
},
|
|
3899
3937
|
fullWidth: {
|
|
3900
3938
|
true: {
|
|
3901
3939
|
base: "w-full"
|
|
3902
|
-
}
|
|
3940
|
+
},
|
|
3941
|
+
false: {}
|
|
3903
3942
|
},
|
|
3904
3943
|
isClearable: {
|
|
3905
3944
|
true: {
|
|
3906
|
-
input: "peer
|
|
3945
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
3907
3946
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3908
3947
|
}
|
|
3909
3948
|
},
|
|
@@ -3922,14 +3961,14 @@ var input = tv({
|
|
|
3922
3961
|
},
|
|
3923
3962
|
isRequired: {
|
|
3924
3963
|
true: {
|
|
3925
|
-
label: "after:content-['*'] after:text-danger after:
|
|
3964
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
3926
3965
|
}
|
|
3927
3966
|
},
|
|
3928
3967
|
isMultiline: {
|
|
3929
3968
|
true: {
|
|
3930
3969
|
label: "relative",
|
|
3931
3970
|
inputWrapper: "!h-auto",
|
|
3932
|
-
innerWrapper: "items-start group-data-[has-label=true]
|
|
3971
|
+
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
3933
3972
|
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
3934
3973
|
}
|
|
3935
3974
|
},
|
|
@@ -3966,7 +4005,7 @@ var input = tv({
|
|
|
3966
4005
|
variant: "flat",
|
|
3967
4006
|
color: "default",
|
|
3968
4007
|
class: {
|
|
3969
|
-
input: "group-data-[has-value=true]
|
|
4008
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
3970
4009
|
}
|
|
3971
4010
|
},
|
|
3972
4011
|
{
|
|
@@ -3977,7 +4016,7 @@ var input = tv({
|
|
|
3977
4016
|
"bg-primary-50",
|
|
3978
4017
|
"data-[hover=true]:bg-primary-100",
|
|
3979
4018
|
"text-primary",
|
|
3980
|
-
"group-data-[focus=true]
|
|
4019
|
+
"group-data-[focus=true]:bg-primary-50",
|
|
3981
4020
|
"placeholder:text-primary"
|
|
3982
4021
|
],
|
|
3983
4022
|
input: "placeholder:text-primary",
|
|
@@ -3992,7 +4031,7 @@ var input = tv({
|
|
|
3992
4031
|
"bg-secondary-50",
|
|
3993
4032
|
"text-secondary",
|
|
3994
4033
|
"data-[hover=true]:bg-secondary-100",
|
|
3995
|
-
"group-data-[focus=true]
|
|
4034
|
+
"group-data-[focus=true]:bg-secondary-50",
|
|
3996
4035
|
"placeholder:text-secondary"
|
|
3997
4036
|
],
|
|
3998
4037
|
input: "placeholder:text-secondary",
|
|
@@ -4010,7 +4049,7 @@ var input = tv({
|
|
|
4010
4049
|
"placeholder:text-success-600",
|
|
4011
4050
|
"dark:placeholder:text-success",
|
|
4012
4051
|
"data-[hover=true]:bg-success-100",
|
|
4013
|
-
"group-data-[focus=true]
|
|
4052
|
+
"group-data-[focus=true]:bg-success-50"
|
|
4014
4053
|
],
|
|
4015
4054
|
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
4016
4055
|
label: "text-success-600 dark:text-success"
|
|
@@ -4027,7 +4066,7 @@ var input = tv({
|
|
|
4027
4066
|
"placeholder:text-warning-600",
|
|
4028
4067
|
"dark:placeholder:text-warning",
|
|
4029
4068
|
"data-[hover=true]:bg-warning-100",
|
|
4030
|
-
"group-data-[focus=true]
|
|
4069
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
4031
4070
|
],
|
|
4032
4071
|
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
4033
4072
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -4044,7 +4083,7 @@ var input = tv({
|
|
|
4044
4083
|
"placeholder:text-danger",
|
|
4045
4084
|
"dark:placeholder:text-danger-500",
|
|
4046
4085
|
"data-[hover=true]:bg-danger-100",
|
|
4047
|
-
"group-data-[focus=true]
|
|
4086
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
4048
4087
|
],
|
|
4049
4088
|
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
4050
4089
|
label: "text-danger dark:text-danger-500"
|
|
@@ -4094,7 +4133,7 @@ var input = tv({
|
|
|
4094
4133
|
variant: "underlined",
|
|
4095
4134
|
color: "default",
|
|
4096
4135
|
class: {
|
|
4097
|
-
input: "group-data-[has-value=true]
|
|
4136
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
4098
4137
|
}
|
|
4099
4138
|
},
|
|
4100
4139
|
{
|
|
@@ -4141,7 +4180,7 @@ var input = tv({
|
|
|
4141
4180
|
variant: "bordered",
|
|
4142
4181
|
color: "primary",
|
|
4143
4182
|
class: {
|
|
4144
|
-
inputWrapper: "group-data-[focus=true]
|
|
4183
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
4145
4184
|
label: "text-primary"
|
|
4146
4185
|
}
|
|
4147
4186
|
},
|
|
@@ -4149,7 +4188,7 @@ var input = tv({
|
|
|
4149
4188
|
variant: "bordered",
|
|
4150
4189
|
color: "secondary",
|
|
4151
4190
|
class: {
|
|
4152
|
-
inputWrapper: "group-data-[focus=true]
|
|
4191
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
4153
4192
|
label: "text-secondary"
|
|
4154
4193
|
}
|
|
4155
4194
|
},
|
|
@@ -4157,7 +4196,7 @@ var input = tv({
|
|
|
4157
4196
|
variant: "bordered",
|
|
4158
4197
|
color: "success",
|
|
4159
4198
|
class: {
|
|
4160
|
-
inputWrapper: "group-data-[focus=true]
|
|
4199
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
4161
4200
|
label: "text-success"
|
|
4162
4201
|
}
|
|
4163
4202
|
},
|
|
@@ -4165,7 +4204,7 @@ var input = tv({
|
|
|
4165
4204
|
variant: "bordered",
|
|
4166
4205
|
color: "warning",
|
|
4167
4206
|
class: {
|
|
4168
|
-
inputWrapper: "group-data-[focus=true]
|
|
4207
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
4169
4208
|
label: "text-warning"
|
|
4170
4209
|
}
|
|
4171
4210
|
},
|
|
@@ -4173,7 +4212,7 @@ var input = tv({
|
|
|
4173
4212
|
variant: "bordered",
|
|
4174
4213
|
color: "danger",
|
|
4175
4214
|
class: {
|
|
4176
|
-
inputWrapper: "group-data-[focus=true]
|
|
4215
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
4177
4216
|
label: "text-danger"
|
|
4178
4217
|
}
|
|
4179
4218
|
},
|
|
@@ -4181,14 +4220,14 @@ var input = tv({
|
|
|
4181
4220
|
labelPlacement: "inside",
|
|
4182
4221
|
color: "default",
|
|
4183
4222
|
class: {
|
|
4184
|
-
label: "group-data-[filled-within=true]
|
|
4223
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
4185
4224
|
}
|
|
4186
4225
|
},
|
|
4187
4226
|
{
|
|
4188
4227
|
labelPlacement: "outside",
|
|
4189
4228
|
color: "default",
|
|
4190
4229
|
class: {
|
|
4191
|
-
label: "group-data-[filled-within=true]
|
|
4230
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
4192
4231
|
}
|
|
4193
4232
|
},
|
|
4194
4233
|
{
|
|
@@ -4241,7 +4280,7 @@ var input = tv({
|
|
|
4241
4280
|
inputWrapper: [
|
|
4242
4281
|
"!bg-danger-50",
|
|
4243
4282
|
"data-[hover=true]:!bg-danger-100",
|
|
4244
|
-
"group-data-[focus=true]
|
|
4283
|
+
"group-data-[focus=true]:!bg-danger-50"
|
|
4245
4284
|
]
|
|
4246
4285
|
}
|
|
4247
4286
|
},
|
|
@@ -4249,7 +4288,7 @@ var input = tv({
|
|
|
4249
4288
|
isInvalid: true,
|
|
4250
4289
|
variant: "bordered",
|
|
4251
4290
|
class: {
|
|
4252
|
-
inputWrapper: "!border-danger group-data-[focus=true]
|
|
4291
|
+
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger"
|
|
4253
4292
|
}
|
|
4254
4293
|
},
|
|
4255
4294
|
{
|
|
@@ -4292,7 +4331,7 @@ var input = tv({
|
|
|
4292
4331
|
{
|
|
4293
4332
|
labelPlacement: ["inside", "outside"],
|
|
4294
4333
|
class: {
|
|
4295
|
-
label: ["group-data-[filled-within=true]
|
|
4334
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4296
4335
|
}
|
|
4297
4336
|
},
|
|
4298
4337
|
{
|
|
@@ -4305,14 +4344,14 @@ var input = tv({
|
|
|
4305
4344
|
"z-20",
|
|
4306
4345
|
"top-1/2",
|
|
4307
4346
|
"-translate-y-1/2",
|
|
4308
|
-
"group-data-[filled-within=true]
|
|
4347
|
+
"group-data-[filled-within=true]:start-0"
|
|
4309
4348
|
]
|
|
4310
4349
|
}
|
|
4311
4350
|
},
|
|
4312
4351
|
{
|
|
4313
4352
|
labelPlacement: ["inside"],
|
|
4314
4353
|
class: {
|
|
4315
|
-
label: ["group-data-[filled-within=true]
|
|
4354
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
4316
4355
|
}
|
|
4317
4356
|
},
|
|
4318
4357
|
{
|
|
@@ -4349,7 +4388,7 @@ var input = tv({
|
|
|
4349
4388
|
size: "sm",
|
|
4350
4389
|
class: {
|
|
4351
4390
|
label: [
|
|
4352
|
-
"group-data-[filled-within=true]
|
|
4391
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4353
4392
|
]
|
|
4354
4393
|
}
|
|
4355
4394
|
},
|
|
@@ -4359,7 +4398,7 @@ var input = tv({
|
|
|
4359
4398
|
size: "md",
|
|
4360
4399
|
class: {
|
|
4361
4400
|
label: [
|
|
4362
|
-
"group-data-[filled-within=true]
|
|
4401
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4363
4402
|
]
|
|
4364
4403
|
}
|
|
4365
4404
|
},
|
|
@@ -4370,7 +4409,7 @@ var input = tv({
|
|
|
4370
4409
|
class: {
|
|
4371
4410
|
label: [
|
|
4372
4411
|
"text-medium",
|
|
4373
|
-
"group-data-[filled-within=true]
|
|
4412
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4374
4413
|
]
|
|
4375
4414
|
}
|
|
4376
4415
|
},
|
|
@@ -4381,7 +4420,7 @@ var input = tv({
|
|
|
4381
4420
|
size: "sm",
|
|
4382
4421
|
class: {
|
|
4383
4422
|
label: [
|
|
4384
|
-
"group-data-[filled-within=true]
|
|
4423
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4385
4424
|
]
|
|
4386
4425
|
}
|
|
4387
4426
|
},
|
|
@@ -4392,7 +4431,7 @@ var input = tv({
|
|
|
4392
4431
|
size: "md",
|
|
4393
4432
|
class: {
|
|
4394
4433
|
label: [
|
|
4395
|
-
"group-data-[filled-within=true]
|
|
4434
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4396
4435
|
]
|
|
4397
4436
|
}
|
|
4398
4437
|
},
|
|
@@ -4404,7 +4443,7 @@ var input = tv({
|
|
|
4404
4443
|
class: {
|
|
4405
4444
|
label: [
|
|
4406
4445
|
"text-medium",
|
|
4407
|
-
"group-data-[filled-within=true]
|
|
4446
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4408
4447
|
]
|
|
4409
4448
|
}
|
|
4410
4449
|
},
|
|
@@ -4415,7 +4454,7 @@ var input = tv({
|
|
|
4415
4454
|
size: "sm",
|
|
4416
4455
|
class: {
|
|
4417
4456
|
label: [
|
|
4418
|
-
"group-data-[filled-within=true]
|
|
4457
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4419
4458
|
]
|
|
4420
4459
|
}
|
|
4421
4460
|
},
|
|
@@ -4426,7 +4465,7 @@ var input = tv({
|
|
|
4426
4465
|
size: "md",
|
|
4427
4466
|
class: {
|
|
4428
4467
|
label: [
|
|
4429
|
-
"group-data-[filled-within=true]
|
|
4468
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4430
4469
|
]
|
|
4431
4470
|
}
|
|
4432
4471
|
},
|
|
@@ -4438,7 +4477,7 @@ var input = tv({
|
|
|
4438
4477
|
class: {
|
|
4439
4478
|
label: [
|
|
4440
4479
|
"text-medium",
|
|
4441
|
-
"group-data-[filled-within=true]
|
|
4480
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4442
4481
|
]
|
|
4443
4482
|
}
|
|
4444
4483
|
},
|
|
@@ -4450,7 +4489,7 @@ var input = tv({
|
|
|
4450
4489
|
label: [
|
|
4451
4490
|
"start-2",
|
|
4452
4491
|
"text-tiny",
|
|
4453
|
-
"group-data-[filled-within=true]
|
|
4492
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4454
4493
|
],
|
|
4455
4494
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4456
4495
|
}
|
|
@@ -4464,7 +4503,7 @@ var input = tv({
|
|
|
4464
4503
|
"start-3",
|
|
4465
4504
|
"end-auto",
|
|
4466
4505
|
"text-small",
|
|
4467
|
-
"group-data-[filled-within=true]
|
|
4506
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4468
4507
|
],
|
|
4469
4508
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4470
4509
|
}
|
|
@@ -4478,7 +4517,7 @@ var input = tv({
|
|
|
4478
4517
|
"start-3",
|
|
4479
4518
|
"end-auto",
|
|
4480
4519
|
"text-medium",
|
|
4481
|
-
"group-data-[filled-within=true]
|
|
4520
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4482
4521
|
],
|
|
4483
4522
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4484
4523
|
}
|
|
@@ -4487,21 +4526,21 @@ var input = tv({
|
|
|
4487
4526
|
labelPlacement: "outside-left",
|
|
4488
4527
|
size: "sm",
|
|
4489
4528
|
class: {
|
|
4490
|
-
label: "group-data-[has-helper=true]
|
|
4529
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
4491
4530
|
}
|
|
4492
4531
|
},
|
|
4493
4532
|
{
|
|
4494
4533
|
labelPlacement: "outside-left",
|
|
4495
4534
|
size: "md",
|
|
4496
4535
|
class: {
|
|
4497
|
-
label: "group-data-[has-helper=true]
|
|
4536
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
4498
4537
|
}
|
|
4499
4538
|
},
|
|
4500
4539
|
{
|
|
4501
4540
|
labelPlacement: "outside-left",
|
|
4502
4541
|
size: "lg",
|
|
4503
4542
|
class: {
|
|
4504
|
-
label: "group-data-[has-helper=true]
|
|
4543
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
4505
4544
|
}
|
|
4506
4545
|
},
|
|
4507
4546
|
{
|
|
@@ -5071,9 +5110,7 @@ var modal = tv({
|
|
|
5071
5110
|
"outline-none",
|
|
5072
5111
|
"select-none",
|
|
5073
5112
|
"top-1",
|
|
5074
|
-
"
|
|
5075
|
-
"rtl:left-1",
|
|
5076
|
-
"rtl:right-[unset]",
|
|
5113
|
+
"end-1",
|
|
5077
5114
|
"p-2",
|
|
5078
5115
|
"text-foreground-500",
|
|
5079
5116
|
"rounded-full",
|
|
@@ -5424,9 +5461,9 @@ var table = tv({
|
|
|
5424
5461
|
table: "min-w-full h-auto",
|
|
5425
5462
|
thead: "[&>tr]:first:rounded-lg",
|
|
5426
5463
|
tbody: "",
|
|
5427
|
-
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
5464
|
+
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
|
|
5428
5465
|
th: [
|
|
5429
|
-
"group",
|
|
5466
|
+
"group/th",
|
|
5430
5467
|
"px-3",
|
|
5431
5468
|
"h-10",
|
|
5432
5469
|
"text-start",
|
|
@@ -5461,8 +5498,8 @@ var table = tv({
|
|
|
5461
5498
|
"before:inset-0",
|
|
5462
5499
|
"before:opacity-0",
|
|
5463
5500
|
"data-[selected=true]:before:opacity-100",
|
|
5464
|
-
"group-data-[disabled=true]:text-foreground-300",
|
|
5465
|
-
"group-data-[disabled=true]:cursor-not-allowed"
|
|
5501
|
+
"group-data-[disabled=true]/tr:text-foreground-300",
|
|
5502
|
+
"group-data-[disabled=true]/tr:cursor-not-allowed"
|
|
5466
5503
|
],
|
|
5467
5504
|
tfoot: "",
|
|
5468
5505
|
sortIcon: [
|
|
@@ -5473,7 +5510,7 @@ var table = tv({
|
|
|
5473
5510
|
"inline-block",
|
|
5474
5511
|
"transition-transform-opacity",
|
|
5475
5512
|
"data-[visible=true]:opacity-100",
|
|
5476
|
-
"group-data-[hover=true]:opacity-100",
|
|
5513
|
+
"group-data-[hover=true]/th:opacity-100",
|
|
5477
5514
|
"data-[direction=ascending]:rotate-180"
|
|
5478
5515
|
],
|
|
5479
5516
|
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
@@ -5544,9 +5581,9 @@ var table = tv({
|
|
|
5544
5581
|
isStriped: {
|
|
5545
5582
|
true: {
|
|
5546
5583
|
td: [
|
|
5547
|
-
"group-data-[odd=true]:before:bg-default-100",
|
|
5548
|
-
"group-data-[odd=true]:before:opacity-100",
|
|
5549
|
-
"group-data-[odd=true]:before:-z-10"
|
|
5584
|
+
"group-data-[odd=true]/tr:before:bg-default-100",
|
|
5585
|
+
"group-data-[odd=true]/tr:before:opacity-100",
|
|
5586
|
+
"group-data-[odd=true]/tr:before:-z-10"
|
|
5550
5587
|
]
|
|
5551
5588
|
}
|
|
5552
5589
|
},
|
|
@@ -5565,19 +5602,19 @@ var table = tv({
|
|
|
5565
5602
|
true: {
|
|
5566
5603
|
tr: "cursor-default",
|
|
5567
5604
|
td: [
|
|
5568
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
5569
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"
|
|
5605
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100",
|
|
5606
|
+
"group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"
|
|
5570
5607
|
]
|
|
5571
5608
|
}
|
|
5572
5609
|
},
|
|
5573
5610
|
isMultiSelectable: {
|
|
5574
5611
|
true: {
|
|
5575
5612
|
td: [
|
|
5576
|
-
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
5577
|
-
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
5578
|
-
"group-data-[middle=true]:before:rounded-none",
|
|
5579
|
-
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
5580
|
-
"group-data-[last=true]:last:before:rounded-be-lg"
|
|
5613
|
+
"group-data-[first=true]/tr:first:before:rounded-ts-lg",
|
|
5614
|
+
"group-data-[first=true]/tr:last:before:rounded-te-lg",
|
|
5615
|
+
"group-data-[middle=true]/tr:before:rounded-none",
|
|
5616
|
+
"group-data-[last=true]/tr:first:before:rounded-bs-lg",
|
|
5617
|
+
"group-data-[last=true]/tr:last:before:rounded-be-lg"
|
|
5581
5618
|
]
|
|
5582
5619
|
},
|
|
5583
5620
|
false: {
|
|
@@ -5622,42 +5659,42 @@ var table = tv({
|
|
|
5622
5659
|
isStriped: true,
|
|
5623
5660
|
color: "default",
|
|
5624
5661
|
class: {
|
|
5625
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
|
|
5662
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"
|
|
5626
5663
|
}
|
|
5627
5664
|
},
|
|
5628
5665
|
{
|
|
5629
5666
|
isStriped: true,
|
|
5630
5667
|
color: "primary",
|
|
5631
5668
|
class: {
|
|
5632
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
|
|
5669
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"
|
|
5633
5670
|
}
|
|
5634
5671
|
},
|
|
5635
5672
|
{
|
|
5636
5673
|
isStriped: true,
|
|
5637
5674
|
color: "secondary",
|
|
5638
5675
|
class: {
|
|
5639
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
|
|
5676
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"
|
|
5640
5677
|
}
|
|
5641
5678
|
},
|
|
5642
5679
|
{
|
|
5643
5680
|
isStriped: true,
|
|
5644
5681
|
color: "success",
|
|
5645
5682
|
class: {
|
|
5646
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
|
|
5683
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"
|
|
5647
5684
|
}
|
|
5648
5685
|
},
|
|
5649
5686
|
{
|
|
5650
5687
|
isStriped: true,
|
|
5651
5688
|
color: "warning",
|
|
5652
5689
|
class: {
|
|
5653
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
|
|
5690
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"
|
|
5654
5691
|
}
|
|
5655
5692
|
},
|
|
5656
5693
|
{
|
|
5657
5694
|
isStriped: true,
|
|
5658
5695
|
color: "danger",
|
|
5659
5696
|
class: {
|
|
5660
|
-
td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
|
|
5697
|
+
td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"
|
|
5661
5698
|
}
|
|
5662
5699
|
}
|
|
5663
5700
|
]
|
|
@@ -6153,7 +6190,7 @@ var skeleton = tv({
|
|
|
6153
6190
|
// src/components/select.ts
|
|
6154
6191
|
var select = tv({
|
|
6155
6192
|
slots: {
|
|
6156
|
-
base: ["group
|
|
6193
|
+
base: ["group inline-flex flex-col relative"],
|
|
6157
6194
|
label: [
|
|
6158
6195
|
"block",
|
|
6159
6196
|
"absolute",
|
|
@@ -6170,7 +6207,7 @@ var select = tv({
|
|
|
6170
6207
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6171
6208
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6172
6209
|
spinner: "absolute end-3",
|
|
6173
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-
|
|
6210
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
6174
6211
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6175
6212
|
listbox: "",
|
|
6176
6213
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6184,7 +6221,7 @@ var select = tv({
|
|
|
6184
6221
|
trigger: [
|
|
6185
6222
|
"bg-default-100",
|
|
6186
6223
|
"data-[hover=true]:bg-default-200",
|
|
6187
|
-
"group-data-[focus=true]
|
|
6224
|
+
"group-data-[focus=true]:bg-default-100"
|
|
6188
6225
|
]
|
|
6189
6226
|
},
|
|
6190
6227
|
faded: {
|
|
@@ -6195,7 +6232,7 @@ var select = tv({
|
|
|
6195
6232
|
"border-default-200",
|
|
6196
6233
|
"data-[hover=true]:border-default-400"
|
|
6197
6234
|
],
|
|
6198
|
-
value: "group-data-[has-value=true]
|
|
6235
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6199
6236
|
},
|
|
6200
6237
|
bordered: {
|
|
6201
6238
|
trigger: [
|
|
@@ -6232,7 +6269,7 @@ var select = tv({
|
|
|
6232
6269
|
"data-[open=true]:after:w-full",
|
|
6233
6270
|
"data-[focus=true]:after:w-full"
|
|
6234
6271
|
],
|
|
6235
|
-
value: "group-data-[has-value=true]
|
|
6272
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6236
6273
|
}
|
|
6237
6274
|
},
|
|
6238
6275
|
color: {
|
|
@@ -6291,6 +6328,9 @@ var select = tv({
|
|
|
6291
6328
|
fullWidth: {
|
|
6292
6329
|
true: {
|
|
6293
6330
|
base: "w-full"
|
|
6331
|
+
},
|
|
6332
|
+
false: {
|
|
6333
|
+
base: "min-w-40"
|
|
6294
6334
|
}
|
|
6295
6335
|
},
|
|
6296
6336
|
isDisabled: {
|
|
@@ -6363,7 +6403,7 @@ var select = tv({
|
|
|
6363
6403
|
variant: "flat",
|
|
6364
6404
|
color: "default",
|
|
6365
6405
|
class: {
|
|
6366
|
-
value: "group-data-[has-value=true]
|
|
6406
|
+
value: "group-data-[has-value=true]:text-default-foreground",
|
|
6367
6407
|
trigger: ["bg-default-100", "data-[hover=true]:bg-default-50"]
|
|
6368
6408
|
}
|
|
6369
6409
|
},
|
|
@@ -6375,7 +6415,7 @@ var select = tv({
|
|
|
6375
6415
|
"bg-primary-100",
|
|
6376
6416
|
"text-primary",
|
|
6377
6417
|
"data-[hover=true]:bg-primary-50",
|
|
6378
|
-
"group-data-[focus=true]
|
|
6418
|
+
"group-data-[focus=true]:bg-primary-50"
|
|
6379
6419
|
],
|
|
6380
6420
|
value: "text-primary",
|
|
6381
6421
|
label: "text-primary"
|
|
@@ -6389,7 +6429,7 @@ var select = tv({
|
|
|
6389
6429
|
"bg-secondary-100",
|
|
6390
6430
|
"text-secondary",
|
|
6391
6431
|
"data-[hover=true]:bg-secondary-50",
|
|
6392
|
-
"group-data-[focus=true]
|
|
6432
|
+
"group-data-[focus=true]:bg-secondary-50"
|
|
6393
6433
|
],
|
|
6394
6434
|
value: "text-secondary",
|
|
6395
6435
|
label: "text-secondary"
|
|
@@ -6404,7 +6444,7 @@ var select = tv({
|
|
|
6404
6444
|
"text-success-600",
|
|
6405
6445
|
"dark:text-success",
|
|
6406
6446
|
"data-[hover=true]:bg-success-50",
|
|
6407
|
-
"group-data-[focus=true]
|
|
6447
|
+
"group-data-[focus=true]:bg-success-50"
|
|
6408
6448
|
],
|
|
6409
6449
|
value: "text-success-600 dark:text-success",
|
|
6410
6450
|
label: "text-success-600 dark:text-success"
|
|
@@ -6419,7 +6459,7 @@ var select = tv({
|
|
|
6419
6459
|
"text-warning-600",
|
|
6420
6460
|
"dark:text-warning",
|
|
6421
6461
|
"data-[hover=true]:bg-warning-50",
|
|
6422
|
-
"group-data-[focus=true]
|
|
6462
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
6423
6463
|
],
|
|
6424
6464
|
value: "text-warning-600 dark:text-warning",
|
|
6425
6465
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -6434,7 +6474,7 @@ var select = tv({
|
|
|
6434
6474
|
"text-danger",
|
|
6435
6475
|
"dark:text-danger-500",
|
|
6436
6476
|
"data-[hover=true]:bg-danger-50",
|
|
6437
|
-
"group-data-[focus=true]
|
|
6477
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
6438
6478
|
],
|
|
6439
6479
|
value: "text-danger dark:text-danger-500",
|
|
6440
6480
|
label: "text-danger dark:text-danger-500"
|
|
@@ -6484,7 +6524,7 @@ var select = tv({
|
|
|
6484
6524
|
variant: "underlined",
|
|
6485
6525
|
color: "default",
|
|
6486
6526
|
class: {
|
|
6487
|
-
value: "group-data-[has-value=true]
|
|
6527
|
+
value: "group-data-[has-value=true]:text-foreground"
|
|
6488
6528
|
}
|
|
6489
6529
|
},
|
|
6490
6530
|
{
|
|
@@ -6571,14 +6611,14 @@ var select = tv({
|
|
|
6571
6611
|
labelPlacement: "inside",
|
|
6572
6612
|
color: "default",
|
|
6573
6613
|
class: {
|
|
6574
|
-
label: "group-data-[filled=true]
|
|
6614
|
+
label: "group-data-[filled=true]:text-default-600"
|
|
6575
6615
|
}
|
|
6576
6616
|
},
|
|
6577
6617
|
{
|
|
6578
6618
|
labelPlacement: "outside",
|
|
6579
6619
|
color: "default",
|
|
6580
6620
|
class: {
|
|
6581
|
-
label: "group-data-[filled=true]
|
|
6621
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6582
6622
|
}
|
|
6583
6623
|
},
|
|
6584
6624
|
{
|
|
@@ -6631,7 +6671,7 @@ var select = tv({
|
|
|
6631
6671
|
trigger: [
|
|
6632
6672
|
"bg-danger-50",
|
|
6633
6673
|
"data-[hover=true]:bg-danger-100",
|
|
6634
|
-
"group-data-[focus=true]
|
|
6674
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
6635
6675
|
]
|
|
6636
6676
|
}
|
|
6637
6677
|
},
|
|
@@ -6639,7 +6679,7 @@ var select = tv({
|
|
|
6639
6679
|
isInvalid: true,
|
|
6640
6680
|
variant: "bordered",
|
|
6641
6681
|
class: {
|
|
6642
|
-
trigger: "!border-danger group-data-[focus=true]
|
|
6682
|
+
trigger: "!border-danger group-data-[focus=true]:border-danger"
|
|
6643
6683
|
}
|
|
6644
6684
|
},
|
|
6645
6685
|
{
|
|
@@ -6676,19 +6716,13 @@ var select = tv({
|
|
|
6676
6716
|
isMultiline: false,
|
|
6677
6717
|
class: {
|
|
6678
6718
|
base: "group relative justify-end",
|
|
6679
|
-
label: [
|
|
6680
|
-
"pb-0",
|
|
6681
|
-
"z-20",
|
|
6682
|
-
"top-1/2",
|
|
6683
|
-
"-translate-y-1/2",
|
|
6684
|
-
"group-data-[filled=true]/select:start-0"
|
|
6685
|
-
]
|
|
6719
|
+
label: ["pb-0", "z-20", "top-1/2", "-translate-y-1/2", "group-data-[filled=true]:start-0"]
|
|
6686
6720
|
}
|
|
6687
6721
|
},
|
|
6688
6722
|
{
|
|
6689
6723
|
labelPlacement: ["inside"],
|
|
6690
6724
|
class: {
|
|
6691
|
-
label: "group-data-[filled=true]
|
|
6725
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6692
6726
|
}
|
|
6693
6727
|
},
|
|
6694
6728
|
{
|
|
@@ -6703,10 +6737,8 @@ var select = tv({
|
|
|
6703
6737
|
isMultiline: false,
|
|
6704
6738
|
size: "sm",
|
|
6705
6739
|
class: {
|
|
6706
|
-
label: [
|
|
6707
|
-
|
|
6708
|
-
],
|
|
6709
|
-
innerWrapper: "group-data-[has-label=true]/select:pt-4"
|
|
6740
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6741
|
+
innerWrapper: "group-data-[has-label=true]:pt-4"
|
|
6710
6742
|
}
|
|
6711
6743
|
},
|
|
6712
6744
|
{
|
|
@@ -6715,9 +6747,9 @@ var select = tv({
|
|
|
6715
6747
|
size: "md",
|
|
6716
6748
|
class: {
|
|
6717
6749
|
label: [
|
|
6718
|
-
"group-data-[filled=true]
|
|
6750
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6719
6751
|
],
|
|
6720
|
-
innerWrapper: "group-data-[has-label=true]
|
|
6752
|
+
innerWrapper: "group-data-[has-label=true]:pt-4"
|
|
6721
6753
|
}
|
|
6722
6754
|
},
|
|
6723
6755
|
{
|
|
@@ -6727,9 +6759,9 @@ var select = tv({
|
|
|
6727
6759
|
class: {
|
|
6728
6760
|
label: [
|
|
6729
6761
|
"text-medium",
|
|
6730
|
-
"group-data-[filled=true]
|
|
6762
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6731
6763
|
],
|
|
6732
|
-
innerWrapper: "group-data-[has-label=true]
|
|
6764
|
+
innerWrapper: "group-data-[has-label=true]:pt-5"
|
|
6733
6765
|
}
|
|
6734
6766
|
},
|
|
6735
6767
|
{
|
|
@@ -6739,7 +6771,7 @@ var select = tv({
|
|
|
6739
6771
|
size: "sm",
|
|
6740
6772
|
class: {
|
|
6741
6773
|
label: [
|
|
6742
|
-
"group-data-[filled=true]
|
|
6774
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6743
6775
|
]
|
|
6744
6776
|
}
|
|
6745
6777
|
},
|
|
@@ -6750,7 +6782,7 @@ var select = tv({
|
|
|
6750
6782
|
size: "md",
|
|
6751
6783
|
class: {
|
|
6752
6784
|
label: [
|
|
6753
|
-
"group-data-[filled=true]
|
|
6785
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6754
6786
|
]
|
|
6755
6787
|
}
|
|
6756
6788
|
},
|
|
@@ -6762,7 +6794,7 @@ var select = tv({
|
|
|
6762
6794
|
class: {
|
|
6763
6795
|
label: [
|
|
6764
6796
|
"text-medium",
|
|
6765
|
-
"group-data-[filled=true]
|
|
6797
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6766
6798
|
]
|
|
6767
6799
|
}
|
|
6768
6800
|
},
|
|
@@ -6772,9 +6804,7 @@ var select = tv({
|
|
|
6772
6804
|
isMultiline: false,
|
|
6773
6805
|
size: "sm",
|
|
6774
6806
|
class: {
|
|
6775
|
-
label: [
|
|
6776
|
-
"group-data-[filled=true]/select:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
6777
|
-
]
|
|
6807
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6778
6808
|
}
|
|
6779
6809
|
},
|
|
6780
6810
|
{
|
|
@@ -6784,7 +6814,7 @@ var select = tv({
|
|
|
6784
6814
|
size: "md",
|
|
6785
6815
|
class: {
|
|
6786
6816
|
label: [
|
|
6787
|
-
"group-data-[filled=true]
|
|
6817
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6788
6818
|
]
|
|
6789
6819
|
}
|
|
6790
6820
|
},
|
|
@@ -6796,7 +6826,7 @@ var select = tv({
|
|
|
6796
6826
|
class: {
|
|
6797
6827
|
label: [
|
|
6798
6828
|
"text-medium",
|
|
6799
|
-
"group-data-[filled=true]
|
|
6829
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6800
6830
|
]
|
|
6801
6831
|
}
|
|
6802
6832
|
},
|
|
@@ -6808,7 +6838,7 @@ var select = tv({
|
|
|
6808
6838
|
label: [
|
|
6809
6839
|
"start-2",
|
|
6810
6840
|
"text-tiny",
|
|
6811
|
-
"group-data-[filled=true]
|
|
6841
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6812
6842
|
],
|
|
6813
6843
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6814
6844
|
}
|
|
@@ -6821,7 +6851,7 @@ var select = tv({
|
|
|
6821
6851
|
label: [
|
|
6822
6852
|
"start-3",
|
|
6823
6853
|
"text-small",
|
|
6824
|
-
"group-data-[filled=true]
|
|
6854
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6825
6855
|
],
|
|
6826
6856
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6827
6857
|
}
|
|
@@ -6834,7 +6864,7 @@ var select = tv({
|
|
|
6834
6864
|
label: [
|
|
6835
6865
|
"start-3",
|
|
6836
6866
|
"text-medium",
|
|
6837
|
-
"group-data-[filled=true]
|
|
6867
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6838
6868
|
],
|
|
6839
6869
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6840
6870
|
}
|
|
@@ -7739,7 +7769,7 @@ var breadcrumbItem = tv({
|
|
|
7739
7769
|
"tap-highlight-transparent",
|
|
7740
7770
|
...dataFocusVisibleClasses
|
|
7741
7771
|
],
|
|
7742
|
-
separator: "text-default-400 px-1"
|
|
7772
|
+
separator: "text-default-400 px-1 rtl:rotate-180"
|
|
7743
7773
|
},
|
|
7744
7774
|
variants: {
|
|
7745
7775
|
color: {
|
|
@@ -7960,7 +7990,7 @@ var breadcrumbs = tv({
|
|
|
7960
7990
|
// src/components/autocomplete.ts
|
|
7961
7991
|
var autocomplete = tv({
|
|
7962
7992
|
slots: {
|
|
7963
|
-
base: "group
|
|
7993
|
+
base: "group inline-flex flex-column w-full",
|
|
7964
7994
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
7965
7995
|
listbox: "",
|
|
7966
7996
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -7972,14 +8002,14 @@ var autocomplete = tv({
|
|
|
7972
8002
|
"opacity-0",
|
|
7973
8003
|
"pointer-events-none",
|
|
7974
8004
|
"text-default-500",
|
|
7975
|
-
"group-data-[invalid=true]
|
|
8005
|
+
"group-data-[invalid=true]:text-danger",
|
|
7976
8006
|
"data-[visible=true]:opacity-100",
|
|
7977
8007
|
"data-[visible=true]:pointer-events-auto",
|
|
7978
8008
|
"data-[visible=true]:cursor-pointer",
|
|
7979
8009
|
"sm:data-[visible=true]:opacity-0",
|
|
7980
8010
|
"sm:data-[visible=true]:pointer-events-none",
|
|
7981
|
-
"sm:group-data-[hover=true]:data-[visible=true]
|
|
7982
|
-
"sm:group-data-[hover=true]:data-[visible=true]
|
|
8011
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100",
|
|
8012
|
+
"sm:group-data-[hover=true]:data-[visible=true]:pointer-events-auto"
|
|
7983
8013
|
],
|
|
7984
8014
|
selectorButton: "text-medium"
|
|
7985
8015
|
},
|
|
@@ -8404,11 +8434,11 @@ var calendar = tv({
|
|
|
8404
8434
|
// src/components/date-input.ts
|
|
8405
8435
|
var dateInput = tv({
|
|
8406
8436
|
slots: {
|
|
8407
|
-
base: "group
|
|
8437
|
+
base: "group flex flex-col",
|
|
8408
8438
|
label: [
|
|
8409
8439
|
"block subpixel-antialiased text-small text-default-600",
|
|
8410
|
-
"group-data-[required=true]
|
|
8411
|
-
"group-data-[invalid=true]
|
|
8440
|
+
"group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
|
|
8441
|
+
"group-data-[invalid=true]:text-danger"
|
|
8412
8442
|
],
|
|
8413
8443
|
inputWrapper: [
|
|
8414
8444
|
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
|
|
@@ -8417,10 +8447,10 @@ var dateInput = tv({
|
|
|
8417
8447
|
input: "flex h-full gap-x-0.5 w-full font-normal",
|
|
8418
8448
|
innerWrapper: [
|
|
8419
8449
|
"flex items-center text-default-400 w-full gap-x-2 h-6",
|
|
8420
|
-
"group-data-[invalid=true]
|
|
8450
|
+
"group-data-[invalid=true]:text-danger"
|
|
8421
8451
|
],
|
|
8422
8452
|
segment: [
|
|
8423
|
-
"group
|
|
8453
|
+
"group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
8424
8454
|
"inline-block outline-none focus:shadow-sm rounded-md",
|
|
8425
8455
|
"text-foreground-500 data-[editable=true]:text-foreground",
|
|
8426
8456
|
"data-[editable=true]:data-[placeholder=true]:text-foreground-500",
|
|
@@ -8428,7 +8458,7 @@ var dateInput = tv({
|
|
|
8428
8458
|
"data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
|
|
8429
8459
|
"data-[invalid=true]:data-[editable=true]:focus:text-danger"
|
|
8430
8460
|
],
|
|
8431
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
8461
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
8432
8462
|
description: "text-tiny text-foreground-400",
|
|
8433
8463
|
errorMessage: "text-tiny text-danger"
|
|
8434
8464
|
},
|
|
@@ -8439,9 +8469,9 @@ var dateInput = tv({
|
|
|
8439
8469
|
"bg-default-100",
|
|
8440
8470
|
"hover:bg-default-200",
|
|
8441
8471
|
"focus-within:hover:bg-default-100",
|
|
8442
|
-
"group-data-[invalid=true]
|
|
8443
|
-
"group-data-[invalid=true]
|
|
8444
|
-
"group-data-[invalid=true]
|
|
8472
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8473
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8474
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8445
8475
|
]
|
|
8446
8476
|
},
|
|
8447
8477
|
faded: {
|
|
@@ -8450,9 +8480,9 @@ var dateInput = tv({
|
|
|
8450
8480
|
"border-medium",
|
|
8451
8481
|
"border-default-200",
|
|
8452
8482
|
"hover:border-default-400",
|
|
8453
|
-
"group-data-[invalid=true]
|
|
8454
|
-
"group-data-[invalid=true]
|
|
8455
|
-
"group-data-[invalid=true]
|
|
8483
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8484
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8485
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8456
8486
|
]
|
|
8457
8487
|
},
|
|
8458
8488
|
bordered: {
|
|
@@ -8462,9 +8492,9 @@ var dateInput = tv({
|
|
|
8462
8492
|
"hover:border-default-400",
|
|
8463
8493
|
"focus-within:border-default-foreground",
|
|
8464
8494
|
"focus-within:hover:border-default-foreground",
|
|
8465
|
-
"group-data-[invalid=true]
|
|
8466
|
-
"group-data-[invalid=true]
|
|
8467
|
-
"group-data-[invalid=true]
|
|
8495
|
+
"group-data-[invalid=true]:border-danger",
|
|
8496
|
+
"group-data-[invalid=true]:hover:border-danger",
|
|
8497
|
+
"group-data-[invalid=true]:focus-within:hover:border-danger"
|
|
8468
8498
|
]
|
|
8469
8499
|
},
|
|
8470
8500
|
underlined: {
|
|
@@ -8489,7 +8519,7 @@ var dateInput = tv({
|
|
|
8489
8519
|
"after:-bottom-[2px]",
|
|
8490
8520
|
"after:h-[2px]",
|
|
8491
8521
|
"focus-within:after:w-full",
|
|
8492
|
-
"group-data-[invalid=true]
|
|
8522
|
+
"group-data-[invalid=true]:after:bg-danger"
|
|
8493
8523
|
]
|
|
8494
8524
|
}
|
|
8495
8525
|
},
|
|
@@ -8550,13 +8580,13 @@ var dateInput = tv({
|
|
|
8550
8580
|
outside: {
|
|
8551
8581
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
8552
8582
|
label: "w-full text-foreground",
|
|
8553
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8583
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8554
8584
|
},
|
|
8555
8585
|
"outside-left": {
|
|
8556
8586
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
8557
8587
|
label: "relative text-foreground",
|
|
8558
8588
|
inputWrapper: "relative flex-1",
|
|
8559
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8589
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8560
8590
|
},
|
|
8561
8591
|
inside: {
|
|
8562
8592
|
label: "w-full text-tiny cursor-text",
|
|
@@ -8786,8 +8816,8 @@ var dateInput = tv({
|
|
|
8786
8816
|
// src/components/date-picker.ts
|
|
8787
8817
|
var datePicker = tv({
|
|
8788
8818
|
slots: {
|
|
8789
|
-
base: "group
|
|
8790
|
-
selectorButton: "-
|
|
8819
|
+
base: "group w-full",
|
|
8820
|
+
selectorButton: "-mx-2 text-inherit",
|
|
8791
8821
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
8792
8822
|
popoverContent: "p-0 w-full",
|
|
8793
8823
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -8799,16 +8829,278 @@ var datePicker = tv({
|
|
|
8799
8829
|
var dateRangePicker = tv({
|
|
8800
8830
|
extend: datePicker,
|
|
8801
8831
|
slots: {
|
|
8802
|
-
calendar: "group
|
|
8832
|
+
calendar: "group",
|
|
8803
8833
|
bottomContent: "flex flex-col gap-y-2",
|
|
8804
|
-
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]
|
|
8834
|
+
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
|
|
8805
8835
|
separator: "-mx-1 text-inherit"
|
|
8806
8836
|
}
|
|
8807
8837
|
});
|
|
8838
|
+
|
|
8839
|
+
// src/components/alert.ts
|
|
8840
|
+
var alert = tv({
|
|
8841
|
+
slots: {
|
|
8842
|
+
base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
|
|
8843
|
+
mainWrapper: [
|
|
8844
|
+
"flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
|
|
8845
|
+
],
|
|
8846
|
+
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
8847
|
+
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
8848
|
+
closeButton: "relative text-inherit",
|
|
8849
|
+
alertIcon: "fill-current w-6"
|
|
8850
|
+
},
|
|
8851
|
+
variants: {
|
|
8852
|
+
color: {
|
|
8853
|
+
default: {},
|
|
8854
|
+
primary: {},
|
|
8855
|
+
secondary: {},
|
|
8856
|
+
success: {},
|
|
8857
|
+
warning: {},
|
|
8858
|
+
danger: {}
|
|
8859
|
+
},
|
|
8860
|
+
variant: {
|
|
8861
|
+
solid: {},
|
|
8862
|
+
flat: {},
|
|
8863
|
+
bordered: {
|
|
8864
|
+
base: "border-medium bg-transparent"
|
|
8865
|
+
}
|
|
8866
|
+
},
|
|
8867
|
+
radius: {
|
|
8868
|
+
none: {
|
|
8869
|
+
base: "rounded-none"
|
|
8870
|
+
},
|
|
8871
|
+
sm: {
|
|
8872
|
+
base: "rounded-small"
|
|
8873
|
+
},
|
|
8874
|
+
md: {
|
|
8875
|
+
base: "rounded-medium"
|
|
8876
|
+
},
|
|
8877
|
+
lg: {
|
|
8878
|
+
base: "rounded-large"
|
|
8879
|
+
},
|
|
8880
|
+
full: {
|
|
8881
|
+
base: "rounded-full"
|
|
8882
|
+
}
|
|
8883
|
+
},
|
|
8884
|
+
hasDescription: {
|
|
8885
|
+
true: {
|
|
8886
|
+
alertIcon: "mt-0.5"
|
|
8887
|
+
},
|
|
8888
|
+
false: {
|
|
8889
|
+
base: "items-center",
|
|
8890
|
+
mainWrapper: "justify-center"
|
|
8891
|
+
}
|
|
8892
|
+
}
|
|
8893
|
+
},
|
|
8894
|
+
defaultVariants: {
|
|
8895
|
+
color: "default",
|
|
8896
|
+
variant: "flat",
|
|
8897
|
+
radius: "md"
|
|
8898
|
+
},
|
|
8899
|
+
compoundVariants: [
|
|
8900
|
+
{
|
|
8901
|
+
variant: "solid",
|
|
8902
|
+
color: "default",
|
|
8903
|
+
class: {
|
|
8904
|
+
base: colorVariants.solid.default,
|
|
8905
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
8906
|
+
alertIcon: "text-default-foreground"
|
|
8907
|
+
}
|
|
8908
|
+
},
|
|
8909
|
+
{
|
|
8910
|
+
variant: "solid",
|
|
8911
|
+
color: "primary",
|
|
8912
|
+
class: {
|
|
8913
|
+
base: colorVariants.solid.primary
|
|
8914
|
+
}
|
|
8915
|
+
},
|
|
8916
|
+
{
|
|
8917
|
+
variant: "solid",
|
|
8918
|
+
color: "secondary",
|
|
8919
|
+
class: {
|
|
8920
|
+
base: colorVariants.solid.secondary
|
|
8921
|
+
}
|
|
8922
|
+
},
|
|
8923
|
+
{
|
|
8924
|
+
variant: "solid",
|
|
8925
|
+
color: "success",
|
|
8926
|
+
class: {
|
|
8927
|
+
base: colorVariants.solid.success
|
|
8928
|
+
}
|
|
8929
|
+
},
|
|
8930
|
+
{
|
|
8931
|
+
variant: "solid",
|
|
8932
|
+
color: "warning",
|
|
8933
|
+
class: {
|
|
8934
|
+
base: colorVariants.solid.warning
|
|
8935
|
+
}
|
|
8936
|
+
},
|
|
8937
|
+
{
|
|
8938
|
+
variant: "solid",
|
|
8939
|
+
color: "danger",
|
|
8940
|
+
class: {
|
|
8941
|
+
base: colorVariants.solid.danger
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
{
|
|
8945
|
+
variant: "flat",
|
|
8946
|
+
color: "default",
|
|
8947
|
+
class: {
|
|
8948
|
+
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
8949
|
+
description: "text-default-600",
|
|
8950
|
+
closeButton: "text-default-400"
|
|
8951
|
+
}
|
|
8952
|
+
},
|
|
8953
|
+
{
|
|
8954
|
+
variant: "flat",
|
|
8955
|
+
color: "primary",
|
|
8956
|
+
class: {
|
|
8957
|
+
base: colorVariants.flat.primary,
|
|
8958
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
8959
|
+
}
|
|
8960
|
+
},
|
|
8961
|
+
{
|
|
8962
|
+
variant: "flat",
|
|
8963
|
+
color: "secondary",
|
|
8964
|
+
class: {
|
|
8965
|
+
base: colorVariants.flat.secondary,
|
|
8966
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
8967
|
+
}
|
|
8968
|
+
},
|
|
8969
|
+
{
|
|
8970
|
+
variant: "flat",
|
|
8971
|
+
color: "success",
|
|
8972
|
+
class: {
|
|
8973
|
+
base: colorVariants.flat.success,
|
|
8974
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
8975
|
+
}
|
|
8976
|
+
},
|
|
8977
|
+
{
|
|
8978
|
+
variant: "flat",
|
|
8979
|
+
color: "warning",
|
|
8980
|
+
class: {
|
|
8981
|
+
base: colorVariants.flat.warning,
|
|
8982
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
8983
|
+
}
|
|
8984
|
+
},
|
|
8985
|
+
{
|
|
8986
|
+
variant: "flat",
|
|
8987
|
+
color: "danger",
|
|
8988
|
+
class: {
|
|
8989
|
+
base: colorVariants.flat.danger,
|
|
8990
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
8991
|
+
}
|
|
8992
|
+
},
|
|
8993
|
+
{
|
|
8994
|
+
variant: "bordered",
|
|
8995
|
+
color: "default",
|
|
8996
|
+
class: {
|
|
8997
|
+
base: [colorVariants.bordered.default],
|
|
8998
|
+
description: "text-default-600",
|
|
8999
|
+
closeButton: "text-default-400"
|
|
9000
|
+
}
|
|
9001
|
+
},
|
|
9002
|
+
{
|
|
9003
|
+
variant: "bordered",
|
|
9004
|
+
color: "primary",
|
|
9005
|
+
class: {
|
|
9006
|
+
base: [colorVariants.bordered.primary],
|
|
9007
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
9008
|
+
}
|
|
9009
|
+
},
|
|
9010
|
+
{
|
|
9011
|
+
variant: "bordered",
|
|
9012
|
+
color: "secondary",
|
|
9013
|
+
class: {
|
|
9014
|
+
base: [colorVariants.bordered.secondary],
|
|
9015
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
9016
|
+
}
|
|
9017
|
+
},
|
|
9018
|
+
{
|
|
9019
|
+
variant: "bordered",
|
|
9020
|
+
color: "success",
|
|
9021
|
+
class: {
|
|
9022
|
+
base: [colorVariants.bordered.success],
|
|
9023
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
9024
|
+
}
|
|
9025
|
+
},
|
|
9026
|
+
{
|
|
9027
|
+
variant: "bordered",
|
|
9028
|
+
color: "warning",
|
|
9029
|
+
class: {
|
|
9030
|
+
base: [colorVariants.bordered.warning],
|
|
9031
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
9032
|
+
}
|
|
9033
|
+
},
|
|
9034
|
+
{
|
|
9035
|
+
variant: "bordered",
|
|
9036
|
+
color: "danger",
|
|
9037
|
+
class: {
|
|
9038
|
+
base: [colorVariants.bordered.danger],
|
|
9039
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
9040
|
+
}
|
|
9041
|
+
}
|
|
9042
|
+
]
|
|
9043
|
+
});
|
|
9044
|
+
|
|
9045
|
+
// src/components/drawer.ts
|
|
9046
|
+
var drawer = tv({
|
|
9047
|
+
slots: {
|
|
9048
|
+
base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"]
|
|
9049
|
+
},
|
|
9050
|
+
variants: {
|
|
9051
|
+
size: {
|
|
9052
|
+
xs: {
|
|
9053
|
+
base: "max-w-xs max-h-[20rem]"
|
|
9054
|
+
},
|
|
9055
|
+
sm: {
|
|
9056
|
+
base: "max-w-sm max-h-[24rem]"
|
|
9057
|
+
},
|
|
9058
|
+
md: {
|
|
9059
|
+
base: "max-w-md max-h-[28rem]"
|
|
9060
|
+
},
|
|
9061
|
+
lg: {
|
|
9062
|
+
base: "max-w-lg max-h-[32rem]"
|
|
9063
|
+
},
|
|
9064
|
+
xl: {
|
|
9065
|
+
base: "max-w-xl max-h-[36rem]"
|
|
9066
|
+
},
|
|
9067
|
+
"2xl": {
|
|
9068
|
+
base: "max-w-2xl max-h-[42rem]"
|
|
9069
|
+
},
|
|
9070
|
+
"3xl": {
|
|
9071
|
+
base: "max-w-3xl max-h-[48rem]"
|
|
9072
|
+
},
|
|
9073
|
+
"4xl": {
|
|
9074
|
+
base: "max-w-4xl max-h-[56rem]"
|
|
9075
|
+
},
|
|
9076
|
+
"5xl": {
|
|
9077
|
+
base: "max-w-5xl max-h-[64rem]"
|
|
9078
|
+
},
|
|
9079
|
+
full: {
|
|
9080
|
+
base: "max-w-full max-h-full h-[100dvh] !rounded-none"
|
|
9081
|
+
}
|
|
9082
|
+
},
|
|
9083
|
+
placement: {
|
|
9084
|
+
top: {
|
|
9085
|
+
base: "inset-x-0 top-0 max-w-[none] rounded-t-none"
|
|
9086
|
+
},
|
|
9087
|
+
right: {
|
|
9088
|
+
base: "inset-y-0 right-0 max-h-[none] rounded-r-none"
|
|
9089
|
+
},
|
|
9090
|
+
bottom: {
|
|
9091
|
+
base: "inset-x-0 bottom-0 max-w-[none] rounded-b-none"
|
|
9092
|
+
},
|
|
9093
|
+
left: {
|
|
9094
|
+
base: "inset-y-0 left-0 max-h-[none] rounded-l-none"
|
|
9095
|
+
}
|
|
9096
|
+
}
|
|
9097
|
+
}
|
|
9098
|
+
});
|
|
8808
9099
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8809
9100
|
0 && (module.exports = {
|
|
8810
9101
|
accordion,
|
|
8811
9102
|
accordionItem,
|
|
9103
|
+
alert,
|
|
8812
9104
|
autocomplete,
|
|
8813
9105
|
avatar,
|
|
8814
9106
|
avatarGroup,
|
|
@@ -8828,6 +9120,7 @@ var dateRangePicker = tv({
|
|
|
8828
9120
|
datePicker,
|
|
8829
9121
|
dateRangePicker,
|
|
8830
9122
|
divider,
|
|
9123
|
+
drawer,
|
|
8831
9124
|
drip,
|
|
8832
9125
|
dropdown,
|
|
8833
9126
|
dropdownItem,
|