@nextui-org/theme 2.2.11 → 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-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- 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-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- 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-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- 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-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- 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-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- 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 +8 -1
- 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 +11 -4
- 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 +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- 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 +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- 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 +10 -3
- 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 +13 -3
- 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 +17 -10
- 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 +392 -69
- 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,
|
|
@@ -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)]"
|
|
@@ -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
|
}
|
|
@@ -3309,10 +3321,10 @@ 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: {
|
|
@@ -3355,30 +3367,30 @@ var toggle = tv({
|
|
|
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",
|
|
@@ -3603,7 +3615,7 @@ var progress = tv(
|
|
|
3603
3615
|
},
|
|
3604
3616
|
isStriped: {
|
|
3605
3617
|
true: {
|
|
3606
|
-
indicator: "bg-stripe-gradient bg-
|
|
3618
|
+
indicator: "bg-stripe-gradient-default bg-stripe-size"
|
|
3607
3619
|
}
|
|
3608
3620
|
},
|
|
3609
3621
|
isIndeterminate: {
|
|
@@ -3638,6 +3650,41 @@ var progress = tv(
|
|
|
3638
3650
|
class: {
|
|
3639
3651
|
indicator: "!transition-none motion-reduce:transition-none"
|
|
3640
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
|
+
}
|
|
3641
3688
|
}
|
|
3642
3689
|
]
|
|
3643
3690
|
},
|
|
@@ -3890,11 +3937,12 @@ var input = tv({
|
|
|
3890
3937
|
fullWidth: {
|
|
3891
3938
|
true: {
|
|
3892
3939
|
base: "w-full"
|
|
3893
|
-
}
|
|
3940
|
+
},
|
|
3941
|
+
false: {}
|
|
3894
3942
|
},
|
|
3895
3943
|
isClearable: {
|
|
3896
3944
|
true: {
|
|
3897
|
-
input: "peer
|
|
3945
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
3898
3946
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3899
3947
|
}
|
|
3900
3948
|
},
|
|
@@ -3913,7 +3961,7 @@ var input = tv({
|
|
|
3913
3961
|
},
|
|
3914
3962
|
isRequired: {
|
|
3915
3963
|
true: {
|
|
3916
|
-
label: "after:content-['*'] after:text-danger after:
|
|
3964
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
3917
3965
|
}
|
|
3918
3966
|
},
|
|
3919
3967
|
isMultiline: {
|
|
@@ -5062,9 +5110,7 @@ var modal = tv({
|
|
|
5062
5110
|
"outline-none",
|
|
5063
5111
|
"select-none",
|
|
5064
5112
|
"top-1",
|
|
5065
|
-
"
|
|
5066
|
-
"rtl:left-1",
|
|
5067
|
-
"rtl:right-[unset]",
|
|
5113
|
+
"end-1",
|
|
5068
5114
|
"p-2",
|
|
5069
5115
|
"text-foreground-500",
|
|
5070
5116
|
"rounded-full",
|
|
@@ -5415,9 +5461,9 @@ var table = tv({
|
|
|
5415
5461
|
table: "min-w-full h-auto",
|
|
5416
5462
|
thead: "[&>tr]:first:rounded-lg",
|
|
5417
5463
|
tbody: "",
|
|
5418
|
-
tr: ["group", "outline-none", ...dataFocusVisibleClasses],
|
|
5464
|
+
tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
|
|
5419
5465
|
th: [
|
|
5420
|
-
"group",
|
|
5466
|
+
"group/th",
|
|
5421
5467
|
"px-3",
|
|
5422
5468
|
"h-10",
|
|
5423
5469
|
"text-start",
|
|
@@ -5452,8 +5498,8 @@ var table = tv({
|
|
|
5452
5498
|
"before:inset-0",
|
|
5453
5499
|
"before:opacity-0",
|
|
5454
5500
|
"data-[selected=true]:before:opacity-100",
|
|
5455
|
-
"group-data-[disabled=true]:text-foreground-300",
|
|
5456
|
-
"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"
|
|
5457
5503
|
],
|
|
5458
5504
|
tfoot: "",
|
|
5459
5505
|
sortIcon: [
|
|
@@ -5464,7 +5510,7 @@ var table = tv({
|
|
|
5464
5510
|
"inline-block",
|
|
5465
5511
|
"transition-transform-opacity",
|
|
5466
5512
|
"data-[visible=true]:opacity-100",
|
|
5467
|
-
"group-data-[hover=true]:opacity-100",
|
|
5513
|
+
"group-data-[hover=true]/th:opacity-100",
|
|
5468
5514
|
"data-[direction=ascending]:rotate-180"
|
|
5469
5515
|
],
|
|
5470
5516
|
emptyWrapper: "text-foreground-400 align-middle text-center h-40",
|
|
@@ -5535,9 +5581,9 @@ var table = tv({
|
|
|
5535
5581
|
isStriped: {
|
|
5536
5582
|
true: {
|
|
5537
5583
|
td: [
|
|
5538
|
-
"group-data-[odd=true]:before:bg-default-100",
|
|
5539
|
-
"group-data-[odd=true]:before:opacity-100",
|
|
5540
|
-
"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"
|
|
5541
5587
|
]
|
|
5542
5588
|
}
|
|
5543
5589
|
},
|
|
@@ -5556,19 +5602,19 @@ var table = tv({
|
|
|
5556
5602
|
true: {
|
|
5557
5603
|
tr: "cursor-default",
|
|
5558
5604
|
td: [
|
|
5559
|
-
"group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
|
|
5560
|
-
"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"
|
|
5561
5607
|
]
|
|
5562
5608
|
}
|
|
5563
5609
|
},
|
|
5564
5610
|
isMultiSelectable: {
|
|
5565
5611
|
true: {
|
|
5566
5612
|
td: [
|
|
5567
|
-
"group-data-[first=true]:first:before:rounded-ts-lg",
|
|
5568
|
-
"group-data-[first=true]:last:before:rounded-te-lg",
|
|
5569
|
-
"group-data-[middle=true]:before:rounded-none",
|
|
5570
|
-
"group-data-[last=true]:first:before:rounded-bs-lg",
|
|
5571
|
-
"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"
|
|
5572
5618
|
]
|
|
5573
5619
|
},
|
|
5574
5620
|
false: {
|
|
@@ -5613,42 +5659,42 @@ var table = tv({
|
|
|
5613
5659
|
isStriped: true,
|
|
5614
5660
|
color: "default",
|
|
5615
5661
|
class: {
|
|
5616
|
-
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"
|
|
5617
5663
|
}
|
|
5618
5664
|
},
|
|
5619
5665
|
{
|
|
5620
5666
|
isStriped: true,
|
|
5621
5667
|
color: "primary",
|
|
5622
5668
|
class: {
|
|
5623
|
-
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"
|
|
5624
5670
|
}
|
|
5625
5671
|
},
|
|
5626
5672
|
{
|
|
5627
5673
|
isStriped: true,
|
|
5628
5674
|
color: "secondary",
|
|
5629
5675
|
class: {
|
|
5630
|
-
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"
|
|
5631
5677
|
}
|
|
5632
5678
|
},
|
|
5633
5679
|
{
|
|
5634
5680
|
isStriped: true,
|
|
5635
5681
|
color: "success",
|
|
5636
5682
|
class: {
|
|
5637
|
-
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"
|
|
5638
5684
|
}
|
|
5639
5685
|
},
|
|
5640
5686
|
{
|
|
5641
5687
|
isStriped: true,
|
|
5642
5688
|
color: "warning",
|
|
5643
5689
|
class: {
|
|
5644
|
-
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"
|
|
5645
5691
|
}
|
|
5646
5692
|
},
|
|
5647
5693
|
{
|
|
5648
5694
|
isStriped: true,
|
|
5649
5695
|
color: "danger",
|
|
5650
5696
|
class: {
|
|
5651
|
-
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"
|
|
5652
5698
|
}
|
|
5653
5699
|
}
|
|
5654
5700
|
]
|
|
@@ -6144,7 +6190,7 @@ var skeleton = tv({
|
|
|
6144
6190
|
// src/components/select.ts
|
|
6145
6191
|
var select = tv({
|
|
6146
6192
|
slots: {
|
|
6147
|
-
base: ["group inline-flex flex-col relative
|
|
6193
|
+
base: ["group inline-flex flex-col relative"],
|
|
6148
6194
|
label: [
|
|
6149
6195
|
"block",
|
|
6150
6196
|
"absolute",
|
|
@@ -6161,7 +6207,7 @@ var select = tv({
|
|
|
6161
6207
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6162
6208
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6163
6209
|
spinner: "absolute end-3",
|
|
6164
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-
|
|
6210
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
6165
6211
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6166
6212
|
listbox: "",
|
|
6167
6213
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6282,6 +6328,9 @@ var select = tv({
|
|
|
6282
6328
|
fullWidth: {
|
|
6283
6329
|
true: {
|
|
6284
6330
|
base: "w-full"
|
|
6331
|
+
},
|
|
6332
|
+
false: {
|
|
6333
|
+
base: "min-w-40"
|
|
6285
6334
|
}
|
|
6286
6335
|
},
|
|
6287
6336
|
isDisabled: {
|
|
@@ -7720,7 +7769,7 @@ var breadcrumbItem = tv({
|
|
|
7720
7769
|
"tap-highlight-transparent",
|
|
7721
7770
|
...dataFocusVisibleClasses
|
|
7722
7771
|
],
|
|
7723
|
-
separator: "text-default-400 px-1"
|
|
7772
|
+
separator: "text-default-400 px-1 rtl:rotate-180"
|
|
7724
7773
|
},
|
|
7725
7774
|
variants: {
|
|
7726
7775
|
color: {
|
|
@@ -8531,13 +8580,13 @@ var dateInput = tv({
|
|
|
8531
8580
|
outside: {
|
|
8532
8581
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
8533
8582
|
label: "w-full text-foreground",
|
|
8534
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8583
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8535
8584
|
},
|
|
8536
8585
|
"outside-left": {
|
|
8537
8586
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
8538
8587
|
label: "relative text-foreground",
|
|
8539
8588
|
inputWrapper: "relative flex-1",
|
|
8540
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
8589
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
8541
8590
|
},
|
|
8542
8591
|
inside: {
|
|
8543
8592
|
label: "w-full text-tiny cursor-text",
|
|
@@ -8768,7 +8817,7 @@ var dateInput = tv({
|
|
|
8768
8817
|
var datePicker = tv({
|
|
8769
8818
|
slots: {
|
|
8770
8819
|
base: "group w-full",
|
|
8771
|
-
selectorButton: "-
|
|
8820
|
+
selectorButton: "-mx-2 text-inherit",
|
|
8772
8821
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
8773
8822
|
popoverContent: "p-0 w-full",
|
|
8774
8823
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -8786,10 +8835,272 @@ var dateRangePicker = tv({
|
|
|
8786
8835
|
separator: "-mx-1 text-inherit"
|
|
8787
8836
|
}
|
|
8788
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
|
+
});
|
|
8789
9099
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8790
9100
|
0 && (module.exports = {
|
|
8791
9101
|
accordion,
|
|
8792
9102
|
accordionItem,
|
|
9103
|
+
alert,
|
|
8793
9104
|
autocomplete,
|
|
8794
9105
|
avatar,
|
|
8795
9106
|
avatarGroup,
|
|
@@ -8809,6 +9120,7 @@ var dateRangePicker = tv({
|
|
|
8809
9120
|
datePicker,
|
|
8810
9121
|
dateRangePicker,
|
|
8811
9122
|
divider,
|
|
9123
|
+
drawer,
|
|
8812
9124
|
drip,
|
|
8813
9125
|
dropdown,
|
|
8814
9126
|
dropdownItem,
|