@nextui-org/theme 2.0.4 → 2.1.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-4JBYJQSP.mjs +36 -0
- package/dist/chunk-AYWH7THQ.mjs +606 -0
- package/dist/{chunk-U3S42JDF.mjs → chunk-FTF3KQBD.mjs} +2 -0
- package/dist/{chunk-Z6QW3RI5.mjs → chunk-PBGVMEDL.mjs} +70 -142
- package/dist/{chunk-PW52XQD7.mjs → chunk-RYOZQSNI.mjs} +4 -1
- package/dist/chunk-YJLQTC7L.mjs +0 -0
- package/dist/chunk-YKWIBFFV.mjs +460 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +1161 -142
- package/dist/components/index.mjs +40 -20
- package/dist/components/input.d.ts +28 -60
- package/dist/components/input.js +70 -142
- package/dist/components/input.mjs +1 -1
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +582 -0
- package/dist/components/listbox.mjs +17 -0
- package/dist/components/menu.d.ts +284 -0
- package/dist/components/menu.js +582 -0
- package/dist/components/menu.mjs +16 -0
- package/dist/components/popover.js +2 -0
- package/dist/components/popover.mjs +1 -1
- package/dist/components/scroll-shadow.d.ts +55 -0
- package/dist/components/scroll-shadow.js +150 -0
- package/dist/components/scroll-shadow.mjs +8 -0
- package/dist/components/select.d.ts +553 -0
- package/dist/components/select.js +726 -0
- package/dist/components/select.mjs +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1308 -286
- package/dist/index.mjs +43 -23
- package/dist/plugin.js +3 -0
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/package.json +8 -8
- package/dist/{chunk-PRWEADY4.mjs → chunk-RH7YHIQY.mjs} +0 -0
- package/dist/{chunk-DYIIRM5B.mjs → chunk-Y32IWEMZ.mjs} +3 -3
package/dist/components/index.js
CHANGED
|
@@ -44,6 +44,12 @@ __export(components_exports, {
|
|
|
44
44
|
kbd: () => kbd,
|
|
45
45
|
link: () => link,
|
|
46
46
|
linkAnchorClasses: () => linkAnchorClasses,
|
|
47
|
+
listbox: () => menu,
|
|
48
|
+
listboxItem: () => menuItem,
|
|
49
|
+
listboxSection: () => menuSection,
|
|
50
|
+
menu: () => menu,
|
|
51
|
+
menuItem: () => menuItem,
|
|
52
|
+
menuSection: () => menuSection,
|
|
47
53
|
modal: () => modal,
|
|
48
54
|
navbar: () => navbar,
|
|
49
55
|
pagination: () => pagination,
|
|
@@ -51,6 +57,8 @@ __export(components_exports, {
|
|
|
51
57
|
progress: () => progress,
|
|
52
58
|
radio: () => radio,
|
|
53
59
|
radioGroup: () => radioGroup,
|
|
60
|
+
scrollShadow: () => scrollShadow,
|
|
61
|
+
select: () => select,
|
|
54
62
|
skeleton: () => skeleton,
|
|
55
63
|
snippet: () => snippet,
|
|
56
64
|
spacer: () => spacer,
|
|
@@ -1186,6 +1194,8 @@ var popover = tv({
|
|
|
1186
1194
|
slots: {
|
|
1187
1195
|
base: [
|
|
1188
1196
|
"z-10",
|
|
1197
|
+
"relative",
|
|
1198
|
+
"overflow-hidden",
|
|
1189
1199
|
"inline-flex",
|
|
1190
1200
|
"flex-col",
|
|
1191
1201
|
"items-center",
|
|
@@ -3560,8 +3570,8 @@ var input = tv({
|
|
|
3560
3570
|
slots: {
|
|
3561
3571
|
base: "group flex flex-col",
|
|
3562
3572
|
label: "block text-small font-medium text-foreground-600",
|
|
3563
|
-
mainWrapper: "",
|
|
3564
|
-
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
3573
|
+
mainWrapper: "h-full",
|
|
3574
|
+
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3565
3575
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
3566
3576
|
input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
|
|
3567
3577
|
clearButton: [
|
|
@@ -3637,21 +3647,11 @@ var input = tv({
|
|
|
3637
3647
|
},
|
|
3638
3648
|
color: {
|
|
3639
3649
|
default: {},
|
|
3640
|
-
primary: {
|
|
3641
|
-
|
|
3642
|
-
},
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
},
|
|
3646
|
-
success: {
|
|
3647
|
-
label: "text-success-600 dark:text-success"
|
|
3648
|
-
},
|
|
3649
|
-
warning: {
|
|
3650
|
-
label: "text-warning-600 dark:text-warning"
|
|
3651
|
-
},
|
|
3652
|
-
danger: {
|
|
3653
|
-
label: "text-danger dark:text-danger-500"
|
|
3654
|
-
}
|
|
3650
|
+
primary: {},
|
|
3651
|
+
secondary: {},
|
|
3652
|
+
success: {},
|
|
3653
|
+
warning: {},
|
|
3654
|
+
danger: {}
|
|
3655
3655
|
},
|
|
3656
3656
|
size: {
|
|
3657
3657
|
sm: {
|
|
@@ -3705,7 +3705,7 @@ var input = tv({
|
|
|
3705
3705
|
errorMessage: "absolute left-1"
|
|
3706
3706
|
},
|
|
3707
3707
|
inside: {
|
|
3708
|
-
label: "text-tiny",
|
|
3708
|
+
label: "text-tiny cursor-text",
|
|
3709
3709
|
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
3710
3710
|
}
|
|
3711
3711
|
},
|
|
@@ -3722,12 +3722,14 @@ var input = tv({
|
|
|
3722
3722
|
isClearable: {
|
|
3723
3723
|
true: {
|
|
3724
3724
|
input: "peer pr-6",
|
|
3725
|
-
clearButton: "peer-[
|
|
3725
|
+
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3726
3726
|
}
|
|
3727
3727
|
},
|
|
3728
3728
|
isDisabled: {
|
|
3729
3729
|
true: {
|
|
3730
|
-
base: "opacity-disabled pointer-events-none"
|
|
3730
|
+
base: "opacity-disabled pointer-events-none",
|
|
3731
|
+
inputWrapper: "pointer-events-none",
|
|
3732
|
+
label: "pointer-events-none"
|
|
3731
3733
|
}
|
|
3732
3734
|
},
|
|
3733
3735
|
isInvalid: {
|
|
@@ -3759,7 +3761,7 @@ var input = tv({
|
|
|
3759
3761
|
"origin-top-left",
|
|
3760
3762
|
"transition-all",
|
|
3761
3763
|
"!duration-200",
|
|
3762
|
-
"!ease-
|
|
3764
|
+
"!ease-out",
|
|
3763
3765
|
"motion-reduce:transition-none"
|
|
3764
3766
|
],
|
|
3765
3767
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
@@ -3787,7 +3789,8 @@ var input = tv({
|
|
|
3787
3789
|
"group-data-[focus=true]:bg-primary-50",
|
|
3788
3790
|
"placeholder:text-primary"
|
|
3789
3791
|
],
|
|
3790
|
-
input: "placeholder:text-primary"
|
|
3792
|
+
input: "placeholder:text-primary",
|
|
3793
|
+
label: "text-primary"
|
|
3791
3794
|
}
|
|
3792
3795
|
},
|
|
3793
3796
|
{
|
|
@@ -3801,7 +3804,8 @@ var input = tv({
|
|
|
3801
3804
|
"group-data-[focus=true]:bg-secondary-50",
|
|
3802
3805
|
"placeholder:text-secondary"
|
|
3803
3806
|
],
|
|
3804
|
-
input: "placeholder:text-secondary"
|
|
3807
|
+
input: "placeholder:text-secondary",
|
|
3808
|
+
label: "text-secondary"
|
|
3805
3809
|
}
|
|
3806
3810
|
},
|
|
3807
3811
|
{
|
|
@@ -3817,7 +3821,8 @@ var input = tv({
|
|
|
3817
3821
|
"data-[hover=true]:bg-success-100",
|
|
3818
3822
|
"group-data-[focus=true]:bg-success-50"
|
|
3819
3823
|
],
|
|
3820
|
-
input: "placeholder:text-success-600 dark:placeholder:text-success"
|
|
3824
|
+
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
3825
|
+
label: "text-success-600 dark:text-success"
|
|
3821
3826
|
}
|
|
3822
3827
|
},
|
|
3823
3828
|
{
|
|
@@ -3833,7 +3838,8 @@ var input = tv({
|
|
|
3833
3838
|
"data-[hover=true]:bg-warning-100",
|
|
3834
3839
|
"group-data-[focus=true]:bg-warning-50"
|
|
3835
3840
|
],
|
|
3836
|
-
input: "placeholder:text-warning-600 dark:placeholder:text-warning"
|
|
3841
|
+
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
3842
|
+
label: "text-warning-600 dark:text-warning"
|
|
3837
3843
|
}
|
|
3838
3844
|
},
|
|
3839
3845
|
{
|
|
@@ -3849,7 +3855,8 @@ var input = tv({
|
|
|
3849
3855
|
"data-[hover=true]:bg-danger-100",
|
|
3850
3856
|
"group-data-[focus=true]:bg-danger-50"
|
|
3851
3857
|
],
|
|
3852
|
-
input: "placeholder:text-danger dark:placeholder:text-danger-500"
|
|
3858
|
+
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
3859
|
+
label: "text-danger dark:text-danger-500"
|
|
3853
3860
|
}
|
|
3854
3861
|
},
|
|
3855
3862
|
{
|
|
@@ -3896,70 +3903,80 @@ var input = tv({
|
|
|
3896
3903
|
variant: "underlined",
|
|
3897
3904
|
color: "primary",
|
|
3898
3905
|
class: {
|
|
3899
|
-
inputWrapper: "after:bg-primary"
|
|
3906
|
+
inputWrapper: "after:bg-primary",
|
|
3907
|
+
label: "text-primary"
|
|
3900
3908
|
}
|
|
3901
3909
|
},
|
|
3902
3910
|
{
|
|
3903
3911
|
variant: "underlined",
|
|
3904
3912
|
color: "secondary",
|
|
3905
3913
|
class: {
|
|
3906
|
-
inputWrapper: "after:bg-secondary"
|
|
3914
|
+
inputWrapper: "after:bg-secondary",
|
|
3915
|
+
label: "text-secondary"
|
|
3907
3916
|
}
|
|
3908
3917
|
},
|
|
3909
3918
|
{
|
|
3910
3919
|
variant: "underlined",
|
|
3911
3920
|
color: "success",
|
|
3912
3921
|
class: {
|
|
3913
|
-
inputWrapper: "after:bg-success"
|
|
3922
|
+
inputWrapper: "after:bg-success",
|
|
3923
|
+
label: "text-success"
|
|
3914
3924
|
}
|
|
3915
3925
|
},
|
|
3916
3926
|
{
|
|
3917
3927
|
variant: "underlined",
|
|
3918
3928
|
color: "warning",
|
|
3919
3929
|
class: {
|
|
3920
|
-
inputWrapper: "after:bg-warning"
|
|
3930
|
+
inputWrapper: "after:bg-warning",
|
|
3931
|
+
label: "text-warning"
|
|
3921
3932
|
}
|
|
3922
3933
|
},
|
|
3923
3934
|
{
|
|
3924
3935
|
variant: "underlined",
|
|
3925
3936
|
color: "danger",
|
|
3926
3937
|
class: {
|
|
3927
|
-
inputWrapper: "after:bg-danger"
|
|
3938
|
+
inputWrapper: "after:bg-danger",
|
|
3939
|
+
label: "text-danger"
|
|
3928
3940
|
}
|
|
3929
3941
|
},
|
|
3930
3942
|
{
|
|
3931
3943
|
variant: "bordered",
|
|
3932
3944
|
color: "primary",
|
|
3933
3945
|
class: {
|
|
3934
|
-
inputWrapper: "group-data-[focus=true]:border-primary"
|
|
3946
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
3947
|
+
label: "text-primary"
|
|
3935
3948
|
}
|
|
3936
3949
|
},
|
|
3937
3950
|
{
|
|
3938
3951
|
variant: "bordered",
|
|
3939
3952
|
color: "secondary",
|
|
3940
3953
|
class: {
|
|
3941
|
-
inputWrapper: "group-data-[focus=true]:border-secondary"
|
|
3954
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
3955
|
+
label: "text-secondary"
|
|
3942
3956
|
}
|
|
3943
3957
|
},
|
|
3944
3958
|
{
|
|
3945
3959
|
variant: "bordered",
|
|
3946
3960
|
color: "success",
|
|
3947
3961
|
class: {
|
|
3948
|
-
inputWrapper: "group-data-[focus=true]:border-success"
|
|
3962
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
3963
|
+
label: "text-success"
|
|
3949
3964
|
}
|
|
3950
3965
|
},
|
|
3951
3966
|
{
|
|
3952
3967
|
variant: "bordered",
|
|
3953
3968
|
color: "warning",
|
|
3954
3969
|
class: {
|
|
3955
|
-
inputWrapper: "group-data-[focus=true]:border-warning"
|
|
3970
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
3971
|
+
label: "text-warning"
|
|
3956
3972
|
}
|
|
3957
3973
|
},
|
|
3958
3974
|
{
|
|
3959
3975
|
variant: "bordered",
|
|
3960
3976
|
color: "danger",
|
|
3961
3977
|
class: {
|
|
3962
|
-
inputWrapper: "group-data-[focus=true]:border-danger"
|
|
3978
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
3979
|
+
label: "text-danger"
|
|
3963
3980
|
}
|
|
3964
3981
|
},
|
|
3965
3982
|
{
|
|
@@ -4049,7 +4066,7 @@ var input = tv({
|
|
|
4049
4066
|
size: "lg",
|
|
4050
4067
|
class: {
|
|
4051
4068
|
label: "text-small",
|
|
4052
|
-
inputWrapper: "h-16 py-2.5 gap-
|
|
4069
|
+
inputWrapper: "h-16 py-2.5 gap-0"
|
|
4053
4070
|
}
|
|
4054
4071
|
},
|
|
4055
4072
|
{
|
|
@@ -4058,22 +4075,11 @@ var input = tv({
|
|
|
4058
4075
|
class: {
|
|
4059
4076
|
label: [
|
|
4060
4077
|
"font-normal",
|
|
4061
|
-
"
|
|
4062
|
-
"group-
|
|
4063
|
-
"group-[.is-filled]:font-medium",
|
|
4064
|
-
"group-focus-within:pointer-events-auto",
|
|
4065
|
-
"group-[.is-filled]:pointer-events-auto"
|
|
4078
|
+
"group-data-[filled-within=true]:font-medium",
|
|
4079
|
+
"group-data-[filled-within=true]:pointer-events-auto"
|
|
4066
4080
|
]
|
|
4067
4081
|
}
|
|
4068
4082
|
},
|
|
4069
|
-
{
|
|
4070
|
-
isLabelPlaceholder: true,
|
|
4071
|
-
labelPlacement: "inside",
|
|
4072
|
-
class: {
|
|
4073
|
-
inputWrapper: "group",
|
|
4074
|
-
label: ["group-focus-within:text-foreground-600", "group-[.is-filled]:text-foreground-600"]
|
|
4075
|
-
}
|
|
4076
|
-
},
|
|
4077
4083
|
{
|
|
4078
4084
|
isLabelPlaceholder: true,
|
|
4079
4085
|
labelPlacement: "outside",
|
|
@@ -4081,85 +4087,21 @@ var input = tv({
|
|
|
4081
4087
|
base: "group relative justify-end",
|
|
4082
4088
|
label: [
|
|
4083
4089
|
"pb-0",
|
|
4084
|
-
"
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4087
|
-
"
|
|
4090
|
+
"z-20",
|
|
4091
|
+
"opacity-60",
|
|
4092
|
+
"top-1/2",
|
|
4093
|
+
"-translate-y-1/2",
|
|
4094
|
+
"group-data-[filled-within=true]:left-0",
|
|
4095
|
+
"group-data-[filled-within=true]:opacity-100"
|
|
4088
4096
|
]
|
|
4089
4097
|
}
|
|
4090
4098
|
},
|
|
4091
|
-
{
|
|
4092
|
-
isLabelPlaceholder: true,
|
|
4093
|
-
color: "primary",
|
|
4094
|
-
class: {
|
|
4095
|
-
label: ["group-focus-within:text-primary", "group-[.is-filled]:text-primary"]
|
|
4096
|
-
}
|
|
4097
|
-
},
|
|
4098
|
-
{
|
|
4099
|
-
isLabelPlaceholder: true,
|
|
4100
|
-
color: "secondary",
|
|
4101
|
-
class: {
|
|
4102
|
-
label: ["group-focus-within:text-secondary", "group-[.is-filled]:text-secondary"]
|
|
4103
|
-
}
|
|
4104
|
-
},
|
|
4105
|
-
{
|
|
4106
|
-
isLabelPlaceholder: true,
|
|
4107
|
-
color: "success",
|
|
4108
|
-
class: {
|
|
4109
|
-
label: ["group-focus-within:text-success", "group-[.is-filled]:text-success"]
|
|
4110
|
-
}
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
isLabelPlaceholder: true,
|
|
4114
|
-
color: "warning",
|
|
4115
|
-
class: {
|
|
4116
|
-
label: ["group-focus-within:text-warning", "group-[.is-filled]:text-warning"]
|
|
4117
|
-
}
|
|
4118
|
-
},
|
|
4119
|
-
{
|
|
4120
|
-
isLabelPlaceholder: true,
|
|
4121
|
-
color: "danger",
|
|
4122
|
-
class: {
|
|
4123
|
-
label: ["group-focus-within:text-danger", "group-[.is-filled]:text-danger"]
|
|
4124
|
-
}
|
|
4125
|
-
},
|
|
4126
|
-
{
|
|
4127
|
-
isLabelPlaceholder: true,
|
|
4128
|
-
variant: "underlined",
|
|
4129
|
-
class: {
|
|
4130
|
-
label: ["group-focus-within:pt-0", "group-[.is-filled]:pt-0"]
|
|
4131
|
-
}
|
|
4132
|
-
},
|
|
4133
|
-
{
|
|
4134
|
-
isLabelPlaceholder: true,
|
|
4135
|
-
variant: "underlined",
|
|
4136
|
-
size: "sm",
|
|
4137
|
-
class: {
|
|
4138
|
-
label: ["pt-3"]
|
|
4139
|
-
}
|
|
4140
|
-
},
|
|
4141
|
-
{
|
|
4142
|
-
isLabelPlaceholder: true,
|
|
4143
|
-
variant: "underlined",
|
|
4144
|
-
size: "md",
|
|
4145
|
-
class: {
|
|
4146
|
-
label: ["pt-4"]
|
|
4147
|
-
}
|
|
4148
|
-
},
|
|
4149
|
-
{
|
|
4150
|
-
isLabelPlaceholder: true,
|
|
4151
|
-
variant: "underlined",
|
|
4152
|
-
size: "lg",
|
|
4153
|
-
class: {
|
|
4154
|
-
label: ["pt-5"]
|
|
4155
|
-
}
|
|
4156
|
-
},
|
|
4157
4099
|
{
|
|
4158
4100
|
isLabelPlaceholder: true,
|
|
4159
4101
|
labelPlacement: "inside",
|
|
4160
4102
|
size: ["sm", "md"],
|
|
4161
4103
|
class: {
|
|
4162
|
-
label: ["text-small", "group-
|
|
4104
|
+
label: ["text-small", "group-data-[filled-within=true]:text-tiny"],
|
|
4163
4105
|
input: "pt-4"
|
|
4164
4106
|
}
|
|
4165
4107
|
},
|
|
@@ -4168,7 +4110,9 @@ var input = tv({
|
|
|
4168
4110
|
labelPlacement: "inside",
|
|
4169
4111
|
size: "sm",
|
|
4170
4112
|
class: {
|
|
4171
|
-
label: [
|
|
4113
|
+
label: [
|
|
4114
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"
|
|
4115
|
+
],
|
|
4172
4116
|
input: "pt-4"
|
|
4173
4117
|
}
|
|
4174
4118
|
},
|
|
@@ -4177,7 +4121,9 @@ var input = tv({
|
|
|
4177
4121
|
labelPlacement: "inside",
|
|
4178
4122
|
size: "md",
|
|
4179
4123
|
class: {
|
|
4180
|
-
label: [
|
|
4124
|
+
label: [
|
|
4125
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4126
|
+
],
|
|
4181
4127
|
input: "pt-4"
|
|
4182
4128
|
}
|
|
4183
4129
|
},
|
|
@@ -4188,12 +4134,10 @@ var input = tv({
|
|
|
4188
4134
|
class: {
|
|
4189
4135
|
label: [
|
|
4190
4136
|
"text-medium",
|
|
4191
|
-
"group-
|
|
4192
|
-
"group-
|
|
4193
|
-
"group-[.is-filled]:text-small",
|
|
4194
|
-
"group-[.is-filled]:-translate-y-3"
|
|
4137
|
+
"group-data-[filled-within=true]:text-small",
|
|
4138
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
4195
4139
|
],
|
|
4196
|
-
input: "pt-
|
|
4140
|
+
input: "pt-5"
|
|
4197
4141
|
}
|
|
4198
4142
|
},
|
|
4199
4143
|
{
|
|
@@ -4202,11 +4146,10 @@ var input = tv({
|
|
|
4202
4146
|
size: "sm",
|
|
4203
4147
|
class: {
|
|
4204
4148
|
label: [
|
|
4205
|
-
"text-tiny",
|
|
4206
|
-
"bottom-2",
|
|
4207
4149
|
"left-2",
|
|
4208
|
-
"
|
|
4209
|
-
"group-[
|
|
4150
|
+
"text-small",
|
|
4151
|
+
"group-data-[filled-within=true]:text-tiny",
|
|
4152
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4210
4153
|
]
|
|
4211
4154
|
}
|
|
4212
4155
|
},
|
|
@@ -4216,11 +4159,9 @@ var input = tv({
|
|
|
4216
4159
|
size: "md",
|
|
4217
4160
|
class: {
|
|
4218
4161
|
label: [
|
|
4219
|
-
"text-small",
|
|
4220
|
-
"bottom-2.5",
|
|
4221
4162
|
"left-3",
|
|
4222
|
-
"
|
|
4223
|
-
"group-[
|
|
4163
|
+
"text-small",
|
|
4164
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4224
4165
|
]
|
|
4225
4166
|
}
|
|
4226
4167
|
},
|
|
@@ -4230,13 +4171,10 @@ var input = tv({
|
|
|
4230
4171
|
size: "lg",
|
|
4231
4172
|
class: {
|
|
4232
4173
|
label: [
|
|
4233
|
-
"text-medium",
|
|
4234
|
-
"bottom-3",
|
|
4235
4174
|
"left-3",
|
|
4236
|
-
"
|
|
4237
|
-
"group-[
|
|
4238
|
-
"group-
|
|
4239
|
-
"group-[.is-filled]:bottom-14"
|
|
4175
|
+
"text-medium",
|
|
4176
|
+
"group-data-[filled-within=true]:text-small",
|
|
4177
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4240
4178
|
]
|
|
4241
4179
|
}
|
|
4242
4180
|
}
|
|
@@ -5750,6 +5688,1079 @@ var skeleton = tv({
|
|
|
5750
5688
|
disableAnimation: false
|
|
5751
5689
|
}
|
|
5752
5690
|
});
|
|
5691
|
+
|
|
5692
|
+
// src/components/select.ts
|
|
5693
|
+
var select = tv({
|
|
5694
|
+
slots: {
|
|
5695
|
+
base: "group inline-flex flex-col relative w-full",
|
|
5696
|
+
label: "block text-small font-medium text-foreground-500",
|
|
5697
|
+
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
5698
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
5699
|
+
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
5700
|
+
spinner: "absolute right-3",
|
|
5701
|
+
value: "font-normal w-full text-left opacity-60 group-data-[filled=true]:opacity-100",
|
|
5702
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
5703
|
+
listbox: "",
|
|
5704
|
+
popover: "w-full p-1 overflow-hidden",
|
|
5705
|
+
helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
|
|
5706
|
+
description: "text-tiny text-foreground-400",
|
|
5707
|
+
errorMessage: "text-tiny text-danger"
|
|
5708
|
+
},
|
|
5709
|
+
variants: {
|
|
5710
|
+
variant: {
|
|
5711
|
+
flat: {
|
|
5712
|
+
trigger: [
|
|
5713
|
+
"bg-default-100",
|
|
5714
|
+
"data-[hover=true]:bg-default-200",
|
|
5715
|
+
"group-data-[focus=true]:bg-default-100"
|
|
5716
|
+
]
|
|
5717
|
+
},
|
|
5718
|
+
faded: {
|
|
5719
|
+
trigger: [
|
|
5720
|
+
"bg-default-100",
|
|
5721
|
+
"border-medium",
|
|
5722
|
+
"border-default-200",
|
|
5723
|
+
"data-[hover=true]:border-default-400"
|
|
5724
|
+
]
|
|
5725
|
+
},
|
|
5726
|
+
bordered: {
|
|
5727
|
+
trigger: [
|
|
5728
|
+
"border-medium",
|
|
5729
|
+
"border-default-200",
|
|
5730
|
+
"data-[hover=true]:border-default-400",
|
|
5731
|
+
"data-[open=true]:border-foreground",
|
|
5732
|
+
"data-[focus=true]:border-foreground"
|
|
5733
|
+
]
|
|
5734
|
+
},
|
|
5735
|
+
underlined: {
|
|
5736
|
+
trigger: [
|
|
5737
|
+
"!px-1",
|
|
5738
|
+
"!pb-0",
|
|
5739
|
+
"!gap-0",
|
|
5740
|
+
"relative",
|
|
5741
|
+
"box-border",
|
|
5742
|
+
"border-b-medium",
|
|
5743
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
5744
|
+
"border-default-200",
|
|
5745
|
+
"!rounded-none",
|
|
5746
|
+
"hover:border-default-300",
|
|
5747
|
+
"after:content-['']",
|
|
5748
|
+
"after:w-0",
|
|
5749
|
+
"after:origin-center",
|
|
5750
|
+
"after:bg-foreground",
|
|
5751
|
+
"after:absolute",
|
|
5752
|
+
"after:left-1/2",
|
|
5753
|
+
"after:-translate-x-1/2",
|
|
5754
|
+
"after:-bottom-[2px]",
|
|
5755
|
+
"after:h-[2px]",
|
|
5756
|
+
"data-[open=true]:after:w-full",
|
|
5757
|
+
"data-[focus=true]:after:w-full"
|
|
5758
|
+
]
|
|
5759
|
+
}
|
|
5760
|
+
},
|
|
5761
|
+
color: {
|
|
5762
|
+
default: {},
|
|
5763
|
+
primary: {},
|
|
5764
|
+
secondary: {},
|
|
5765
|
+
success: {},
|
|
5766
|
+
warning: {},
|
|
5767
|
+
danger: {}
|
|
5768
|
+
},
|
|
5769
|
+
size: {
|
|
5770
|
+
sm: {
|
|
5771
|
+
label: "text-tiny",
|
|
5772
|
+
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
5773
|
+
value: "text-small"
|
|
5774
|
+
},
|
|
5775
|
+
md: {
|
|
5776
|
+
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
5777
|
+
value: "text-small"
|
|
5778
|
+
},
|
|
5779
|
+
lg: {
|
|
5780
|
+
trigger: "h-unit-12 min-h-unit-12 rounded-large",
|
|
5781
|
+
value: "text-medium"
|
|
5782
|
+
}
|
|
5783
|
+
},
|
|
5784
|
+
radius: {
|
|
5785
|
+
none: {
|
|
5786
|
+
trigger: "rounded-none"
|
|
5787
|
+
},
|
|
5788
|
+
sm: {
|
|
5789
|
+
trigger: "rounded-small"
|
|
5790
|
+
},
|
|
5791
|
+
md: {
|
|
5792
|
+
trigger: "rounded-medium"
|
|
5793
|
+
},
|
|
5794
|
+
lg: {
|
|
5795
|
+
trigger: "rounded-large"
|
|
5796
|
+
},
|
|
5797
|
+
full: {
|
|
5798
|
+
trigger: "rounded-full"
|
|
5799
|
+
}
|
|
5800
|
+
},
|
|
5801
|
+
labelPlacement: {
|
|
5802
|
+
outside: {
|
|
5803
|
+
base: "data-[has-helper=true]:pb-4 flex flex-col",
|
|
5804
|
+
label: "text-foreground pb-1.5",
|
|
5805
|
+
description: "absolute left-1",
|
|
5806
|
+
errorMessage: "absolute left-1"
|
|
5807
|
+
},
|
|
5808
|
+
"outside-left": {
|
|
5809
|
+
base: "flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",
|
|
5810
|
+
label: "text-foreground pr-2",
|
|
5811
|
+
description: "absolute left-1",
|
|
5812
|
+
errorMessage: "absolute left-1"
|
|
5813
|
+
},
|
|
5814
|
+
inside: {
|
|
5815
|
+
label: "text-tiny cursor-pointer",
|
|
5816
|
+
trigger: "flex-col items-start justify-center gap-0"
|
|
5817
|
+
}
|
|
5818
|
+
},
|
|
5819
|
+
fullWidth: {
|
|
5820
|
+
true: {
|
|
5821
|
+
base: "w-full"
|
|
5822
|
+
}
|
|
5823
|
+
},
|
|
5824
|
+
isLabelPlaceholder: {
|
|
5825
|
+
true: {
|
|
5826
|
+
label: "absolute z-10 pointer-events-none"
|
|
5827
|
+
}
|
|
5828
|
+
},
|
|
5829
|
+
isDisabled: {
|
|
5830
|
+
true: {
|
|
5831
|
+
base: "opacity-disabled pointer-events-none",
|
|
5832
|
+
trigger: "pointer-events-none",
|
|
5833
|
+
label: "pointer-events-none"
|
|
5834
|
+
}
|
|
5835
|
+
},
|
|
5836
|
+
isInvalid: {
|
|
5837
|
+
true: {
|
|
5838
|
+
label: "!text-danger",
|
|
5839
|
+
value: "text-danger",
|
|
5840
|
+
selectorIcon: "text-danger"
|
|
5841
|
+
}
|
|
5842
|
+
},
|
|
5843
|
+
isRequired: {
|
|
5844
|
+
true: {
|
|
5845
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
5846
|
+
}
|
|
5847
|
+
},
|
|
5848
|
+
isMultiline: {
|
|
5849
|
+
true: {
|
|
5850
|
+
trigger: "!h-auto"
|
|
5851
|
+
},
|
|
5852
|
+
false: {
|
|
5853
|
+
value: "truncate"
|
|
5854
|
+
}
|
|
5855
|
+
},
|
|
5856
|
+
disableAnimation: {
|
|
5857
|
+
true: {
|
|
5858
|
+
trigger: "after:transition-none",
|
|
5859
|
+
base: "transition-none",
|
|
5860
|
+
label: "transition-none",
|
|
5861
|
+
selectorIcon: "transition-none"
|
|
5862
|
+
},
|
|
5863
|
+
false: {
|
|
5864
|
+
base: "transition-background motion-reduce:transition-none !duration-150",
|
|
5865
|
+
label: [
|
|
5866
|
+
"will-change-auto",
|
|
5867
|
+
"origin-top-left",
|
|
5868
|
+
"transition-all",
|
|
5869
|
+
"!duration-200",
|
|
5870
|
+
"!ease-out",
|
|
5871
|
+
"motion-reduce:transition-none"
|
|
5872
|
+
],
|
|
5873
|
+
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
5874
|
+
}
|
|
5875
|
+
},
|
|
5876
|
+
disableSelectorIconRotation: {
|
|
5877
|
+
true: {},
|
|
5878
|
+
false: {
|
|
5879
|
+
selectorIcon: "data-[open=true]:rotate-180"
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
},
|
|
5883
|
+
defaultVariants: {
|
|
5884
|
+
variant: "flat",
|
|
5885
|
+
color: "default",
|
|
5886
|
+
size: "md",
|
|
5887
|
+
labelPlacement: "inside",
|
|
5888
|
+
fullWidth: true,
|
|
5889
|
+
isDisabled: false,
|
|
5890
|
+
isMultiline: false,
|
|
5891
|
+
disableAnimation: false,
|
|
5892
|
+
disableSelectorIconRotation: false
|
|
5893
|
+
},
|
|
5894
|
+
compoundVariants: [
|
|
5895
|
+
{
|
|
5896
|
+
variant: "flat",
|
|
5897
|
+
color: "primary",
|
|
5898
|
+
class: {
|
|
5899
|
+
trigger: [
|
|
5900
|
+
"bg-primary-50",
|
|
5901
|
+
"text-primary",
|
|
5902
|
+
"data-[hover=true]:bg-primary-100",
|
|
5903
|
+
"group-data-[focus=true]:bg-primary-50"
|
|
5904
|
+
],
|
|
5905
|
+
value: "text-primary",
|
|
5906
|
+
label: "text-primary"
|
|
5907
|
+
}
|
|
5908
|
+
},
|
|
5909
|
+
{
|
|
5910
|
+
variant: "flat",
|
|
5911
|
+
color: "secondary",
|
|
5912
|
+
class: {
|
|
5913
|
+
trigger: [
|
|
5914
|
+
"bg-secondary-50",
|
|
5915
|
+
"text-secondary",
|
|
5916
|
+
"data-[hover=true]:bg-secondary-100",
|
|
5917
|
+
"group-data-[focus=true]:bg-secondary-50"
|
|
5918
|
+
],
|
|
5919
|
+
value: "text-secondary",
|
|
5920
|
+
label: "text-secondary"
|
|
5921
|
+
}
|
|
5922
|
+
},
|
|
5923
|
+
{
|
|
5924
|
+
variant: "flat",
|
|
5925
|
+
color: "success",
|
|
5926
|
+
class: {
|
|
5927
|
+
trigger: [
|
|
5928
|
+
"bg-success-50",
|
|
5929
|
+
"text-success-600",
|
|
5930
|
+
"dark:text-success",
|
|
5931
|
+
"data-[hover=true]:bg-success-100",
|
|
5932
|
+
"group-data-[focus=true]:bg-success-50"
|
|
5933
|
+
],
|
|
5934
|
+
value: "text-success-600 dark:text-success",
|
|
5935
|
+
label: "text-success-600 dark:text-success"
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
5938
|
+
{
|
|
5939
|
+
variant: "flat",
|
|
5940
|
+
color: "warning",
|
|
5941
|
+
class: {
|
|
5942
|
+
trigger: [
|
|
5943
|
+
"bg-warning-50",
|
|
5944
|
+
"text-warning-600",
|
|
5945
|
+
"dark:text-warning",
|
|
5946
|
+
"data-[hover=true]:bg-warning-100",
|
|
5947
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
5948
|
+
],
|
|
5949
|
+
value: "text-warning-600 dark:text-warning",
|
|
5950
|
+
label: "text-warning-600 dark:text-warning"
|
|
5951
|
+
}
|
|
5952
|
+
},
|
|
5953
|
+
{
|
|
5954
|
+
variant: "flat",
|
|
5955
|
+
color: "danger",
|
|
5956
|
+
class: {
|
|
5957
|
+
trigger: [
|
|
5958
|
+
"bg-danger-50",
|
|
5959
|
+
"text-danger",
|
|
5960
|
+
"dark:text-danger-500",
|
|
5961
|
+
"data-[hover=true]:bg-danger-100",
|
|
5962
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
5963
|
+
],
|
|
5964
|
+
value: "text-danger dark:text-danger-500",
|
|
5965
|
+
label: "text-danger dark:text-danger-500"
|
|
5966
|
+
}
|
|
5967
|
+
},
|
|
5968
|
+
{
|
|
5969
|
+
variant: "faded",
|
|
5970
|
+
color: "primary",
|
|
5971
|
+
class: {
|
|
5972
|
+
trigger: "data-[hover=true]:border-primary",
|
|
5973
|
+
label: "text-primary"
|
|
5974
|
+
}
|
|
5975
|
+
},
|
|
5976
|
+
{
|
|
5977
|
+
variant: "faded",
|
|
5978
|
+
color: "secondary",
|
|
5979
|
+
class: {
|
|
5980
|
+
trigger: "data-[hover=true]:border-secondary",
|
|
5981
|
+
label: "text-secondary"
|
|
5982
|
+
}
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
variant: "faded",
|
|
5986
|
+
color: "success",
|
|
5987
|
+
class: {
|
|
5988
|
+
trigger: "data-[hover=true]:border-success",
|
|
5989
|
+
label: "text-success"
|
|
5990
|
+
}
|
|
5991
|
+
},
|
|
5992
|
+
{
|
|
5993
|
+
variant: "faded",
|
|
5994
|
+
color: "warning",
|
|
5995
|
+
class: {
|
|
5996
|
+
trigger: "data-[hover=true]:border-warning",
|
|
5997
|
+
label: "text-warning"
|
|
5998
|
+
}
|
|
5999
|
+
},
|
|
6000
|
+
{
|
|
6001
|
+
variant: "faded",
|
|
6002
|
+
color: "danger",
|
|
6003
|
+
class: {
|
|
6004
|
+
trigger: "data-[hover=true]:border-danger",
|
|
6005
|
+
label: "text-danger"
|
|
6006
|
+
}
|
|
6007
|
+
},
|
|
6008
|
+
{
|
|
6009
|
+
variant: "underlined",
|
|
6010
|
+
color: "primary",
|
|
6011
|
+
class: {
|
|
6012
|
+
trigger: "after:bg-primary",
|
|
6013
|
+
label: "text-primary"
|
|
6014
|
+
}
|
|
6015
|
+
},
|
|
6016
|
+
{
|
|
6017
|
+
variant: "underlined",
|
|
6018
|
+
color: "secondary",
|
|
6019
|
+
class: {
|
|
6020
|
+
trigger: "after:bg-secondary",
|
|
6021
|
+
label: "text-secondary"
|
|
6022
|
+
}
|
|
6023
|
+
},
|
|
6024
|
+
{
|
|
6025
|
+
variant: "underlined",
|
|
6026
|
+
color: "success",
|
|
6027
|
+
class: {
|
|
6028
|
+
trigger: "after:bg-success",
|
|
6029
|
+
label: "text-success"
|
|
6030
|
+
}
|
|
6031
|
+
},
|
|
6032
|
+
{
|
|
6033
|
+
variant: "underlined",
|
|
6034
|
+
color: "warning",
|
|
6035
|
+
class: {
|
|
6036
|
+
trigger: "after:bg-warning",
|
|
6037
|
+
label: "text-warning"
|
|
6038
|
+
}
|
|
6039
|
+
},
|
|
6040
|
+
{
|
|
6041
|
+
variant: "underlined",
|
|
6042
|
+
color: "danger",
|
|
6043
|
+
class: {
|
|
6044
|
+
trigger: "after:bg-danger",
|
|
6045
|
+
label: "text-danger"
|
|
6046
|
+
}
|
|
6047
|
+
},
|
|
6048
|
+
{
|
|
6049
|
+
variant: "bordered",
|
|
6050
|
+
color: "primary",
|
|
6051
|
+
class: {
|
|
6052
|
+
trigger: ["data-[open=true]:border-primary", "data-[focus=true]:border-primary"],
|
|
6053
|
+
label: "text-primary"
|
|
6054
|
+
}
|
|
6055
|
+
},
|
|
6056
|
+
{
|
|
6057
|
+
variant: "bordered",
|
|
6058
|
+
color: "secondary",
|
|
6059
|
+
class: {
|
|
6060
|
+
trigger: ["data-[open=true]:border-secondary", "data-[focus=true]:border-secondary"],
|
|
6061
|
+
label: "text-secondary"
|
|
6062
|
+
}
|
|
6063
|
+
},
|
|
6064
|
+
{
|
|
6065
|
+
variant: "bordered",
|
|
6066
|
+
color: "success",
|
|
6067
|
+
class: {
|
|
6068
|
+
trigger: ["data-[open=true]:border-success", "data-[focus=true]:border-success"],
|
|
6069
|
+
label: "text-success"
|
|
6070
|
+
}
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
variant: "bordered",
|
|
6074
|
+
color: "warning",
|
|
6075
|
+
class: {
|
|
6076
|
+
trigger: ["data-[open=true]:border-warning", "data-[focus=true]:border-warning"],
|
|
6077
|
+
label: "text-warning"
|
|
6078
|
+
}
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
variant: "bordered",
|
|
6082
|
+
color: "danger",
|
|
6083
|
+
class: {
|
|
6084
|
+
trigger: ["data-[open=true]:border-danger", "data-[focus=true]:border-danger"],
|
|
6085
|
+
label: "text-danger"
|
|
6086
|
+
}
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
radius: "full",
|
|
6090
|
+
size: ["sm"],
|
|
6091
|
+
class: {
|
|
6092
|
+
trigger: "px-3"
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
radius: "full",
|
|
6097
|
+
size: "md",
|
|
6098
|
+
class: {
|
|
6099
|
+
trigger: "px-4"
|
|
6100
|
+
}
|
|
6101
|
+
},
|
|
6102
|
+
{
|
|
6103
|
+
radius: "full",
|
|
6104
|
+
size: "lg",
|
|
6105
|
+
class: {
|
|
6106
|
+
trigger: "px-5"
|
|
6107
|
+
}
|
|
6108
|
+
},
|
|
6109
|
+
{
|
|
6110
|
+
disableAnimation: false,
|
|
6111
|
+
variant: ["faded", "bordered"],
|
|
6112
|
+
class: {
|
|
6113
|
+
trigger: "transition-colors motion-reduce:transition-none"
|
|
6114
|
+
}
|
|
6115
|
+
},
|
|
6116
|
+
{
|
|
6117
|
+
disableAnimation: false,
|
|
6118
|
+
variant: "underlined",
|
|
6119
|
+
class: {
|
|
6120
|
+
trigger: "after:transition-width motion-reduce:after:transition-none"
|
|
6121
|
+
}
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
variant: ["flat", "faded"],
|
|
6125
|
+
class: {
|
|
6126
|
+
trigger: [
|
|
6127
|
+
...dataFocusVisibleClasses
|
|
6128
|
+
]
|
|
6129
|
+
}
|
|
6130
|
+
},
|
|
6131
|
+
{
|
|
6132
|
+
isInvalid: true,
|
|
6133
|
+
variant: "flat",
|
|
6134
|
+
class: {
|
|
6135
|
+
trigger: [
|
|
6136
|
+
"bg-danger-50",
|
|
6137
|
+
"data-[hover=true]:bg-danger-100",
|
|
6138
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
6139
|
+
]
|
|
6140
|
+
}
|
|
6141
|
+
},
|
|
6142
|
+
{
|
|
6143
|
+
isInvalid: true,
|
|
6144
|
+
variant: "bordered",
|
|
6145
|
+
class: {
|
|
6146
|
+
trigger: "!border-danger group-data-[focus=true]:border-danger"
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
isInvalid: true,
|
|
6151
|
+
variant: "underlined",
|
|
6152
|
+
class: {
|
|
6153
|
+
trigger: "after:bg-danger"
|
|
6154
|
+
}
|
|
6155
|
+
},
|
|
6156
|
+
{
|
|
6157
|
+
labelPlacement: "inside",
|
|
6158
|
+
size: "sm",
|
|
6159
|
+
class: {
|
|
6160
|
+
trigger: "h-12 py-1.5 px-3"
|
|
6161
|
+
}
|
|
6162
|
+
},
|
|
6163
|
+
{
|
|
6164
|
+
labelPlacement: "inside",
|
|
6165
|
+
size: "md",
|
|
6166
|
+
class: {
|
|
6167
|
+
trigger: "h-14 py-2"
|
|
6168
|
+
}
|
|
6169
|
+
},
|
|
6170
|
+
{
|
|
6171
|
+
labelPlacement: "inside",
|
|
6172
|
+
size: "lg",
|
|
6173
|
+
class: {
|
|
6174
|
+
label: "text-small",
|
|
6175
|
+
trigger: "h-16 py-2.5 gap-0"
|
|
6176
|
+
}
|
|
6177
|
+
},
|
|
6178
|
+
{
|
|
6179
|
+
isLabelPlaceholder: true,
|
|
6180
|
+
labelPlacement: ["inside", "outside"],
|
|
6181
|
+
class: {
|
|
6182
|
+
label: [
|
|
6183
|
+
"font-normal",
|
|
6184
|
+
"group-data-[filled=true]:font-medium",
|
|
6185
|
+
"group-data-[filled=true]:pointer-events-auto"
|
|
6186
|
+
]
|
|
6187
|
+
}
|
|
6188
|
+
},
|
|
6189
|
+
{
|
|
6190
|
+
isLabelPlaceholder: true,
|
|
6191
|
+
labelPlacement: "outside",
|
|
6192
|
+
class: {
|
|
6193
|
+
base: "group relative justify-end",
|
|
6194
|
+
label: [
|
|
6195
|
+
"pb-0",
|
|
6196
|
+
"z-20",
|
|
6197
|
+
"opacity-60",
|
|
6198
|
+
"top-1/2",
|
|
6199
|
+
"-translate-y-1/2",
|
|
6200
|
+
"group-data-[filled=true]:opacity-100",
|
|
6201
|
+
"group-data-[filled=true]:left-0"
|
|
6202
|
+
]
|
|
6203
|
+
}
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
isLabelPlaceholder: true,
|
|
6207
|
+
labelPlacement: "inside",
|
|
6208
|
+
size: ["sm", "md"],
|
|
6209
|
+
class: {
|
|
6210
|
+
label: ["text-small", "group-data-[filled=true]:text-tiny"],
|
|
6211
|
+
input: "pt-4"
|
|
6212
|
+
}
|
|
6213
|
+
},
|
|
6214
|
+
{
|
|
6215
|
+
isLabelPlaceholder: true,
|
|
6216
|
+
labelPlacement: "inside",
|
|
6217
|
+
size: "sm",
|
|
6218
|
+
class: {
|
|
6219
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"],
|
|
6220
|
+
innerWrapper: "pt-4"
|
|
6221
|
+
}
|
|
6222
|
+
},
|
|
6223
|
+
{
|
|
6224
|
+
isLabelPlaceholder: true,
|
|
6225
|
+
labelPlacement: "inside",
|
|
6226
|
+
size: "md",
|
|
6227
|
+
class: {
|
|
6228
|
+
label: [
|
|
6229
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6230
|
+
],
|
|
6231
|
+
innerWrapper: "pt-4"
|
|
6232
|
+
}
|
|
6233
|
+
},
|
|
6234
|
+
{
|
|
6235
|
+
isLabelPlaceholder: true,
|
|
6236
|
+
labelPlacement: "inside",
|
|
6237
|
+
size: "lg",
|
|
6238
|
+
class: {
|
|
6239
|
+
label: [
|
|
6240
|
+
"text-medium",
|
|
6241
|
+
"group-data-[filled=true]:text-small",
|
|
6242
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
6243
|
+
],
|
|
6244
|
+
innerWrapper: "pt-5"
|
|
6245
|
+
}
|
|
6246
|
+
},
|
|
6247
|
+
{
|
|
6248
|
+
isLabelPlaceholder: true,
|
|
6249
|
+
labelPlacement: "outside",
|
|
6250
|
+
size: "sm",
|
|
6251
|
+
class: {
|
|
6252
|
+
label: [
|
|
6253
|
+
"left-2",
|
|
6254
|
+
"text-small",
|
|
6255
|
+
"group-data-[filled=true]:text-tiny",
|
|
6256
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6257
|
+
]
|
|
6258
|
+
}
|
|
6259
|
+
},
|
|
6260
|
+
{
|
|
6261
|
+
isLabelPlaceholder: true,
|
|
6262
|
+
labelPlacement: "outside",
|
|
6263
|
+
size: "md",
|
|
6264
|
+
class: {
|
|
6265
|
+
label: [
|
|
6266
|
+
"left-3",
|
|
6267
|
+
"text-small",
|
|
6268
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6269
|
+
]
|
|
6270
|
+
}
|
|
6271
|
+
},
|
|
6272
|
+
{
|
|
6273
|
+
isLabelPlaceholder: true,
|
|
6274
|
+
labelPlacement: "outside",
|
|
6275
|
+
size: "lg",
|
|
6276
|
+
class: {
|
|
6277
|
+
label: [
|
|
6278
|
+
"left-3",
|
|
6279
|
+
"text-medium",
|
|
6280
|
+
"group-data-[filled=true]:text-small",
|
|
6281
|
+
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6282
|
+
]
|
|
6283
|
+
}
|
|
6284
|
+
}
|
|
6285
|
+
]
|
|
6286
|
+
});
|
|
6287
|
+
|
|
6288
|
+
// src/components/menu.ts
|
|
6289
|
+
var menu = tv({
|
|
6290
|
+
base: "w-full flex flex-col gap-0.5 p-1 outline-none"
|
|
6291
|
+
});
|
|
6292
|
+
var menuItem = tv({
|
|
6293
|
+
slots: {
|
|
6294
|
+
base: [
|
|
6295
|
+
"flex",
|
|
6296
|
+
"group",
|
|
6297
|
+
"gap-2",
|
|
6298
|
+
"items-center",
|
|
6299
|
+
"justify-between",
|
|
6300
|
+
"relative",
|
|
6301
|
+
"px-2",
|
|
6302
|
+
"py-1.5",
|
|
6303
|
+
"w-full",
|
|
6304
|
+
"h-full",
|
|
6305
|
+
"box-border",
|
|
6306
|
+
"rounded-small",
|
|
6307
|
+
"subpixel-antialiased",
|
|
6308
|
+
"outline-none",
|
|
6309
|
+
"cursor-pointer",
|
|
6310
|
+
"tap-highlight-transparent",
|
|
6311
|
+
...dataFocusVisibleClasses,
|
|
6312
|
+
"data-[focus-visible=true]:dark:ring-offset-background-content1"
|
|
6313
|
+
],
|
|
6314
|
+
wrapper: "w-full flex flex-col items-start justify-center",
|
|
6315
|
+
title: "flex-1 text-small font-normal truncate",
|
|
6316
|
+
description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
|
|
6317
|
+
selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
|
|
6318
|
+
shortcut: [
|
|
6319
|
+
"px-1",
|
|
6320
|
+
"py-0.5",
|
|
6321
|
+
"rounded",
|
|
6322
|
+
"font-sans",
|
|
6323
|
+
"text-foreground-500",
|
|
6324
|
+
"text-tiny",
|
|
6325
|
+
"border-small",
|
|
6326
|
+
"border-default-300",
|
|
6327
|
+
"group-hover:border-current"
|
|
6328
|
+
]
|
|
6329
|
+
},
|
|
6330
|
+
variants: {
|
|
6331
|
+
variant: {
|
|
6332
|
+
solid: {
|
|
6333
|
+
base: ""
|
|
6334
|
+
},
|
|
6335
|
+
bordered: {
|
|
6336
|
+
base: "border-medium border-transparent bg-transparent"
|
|
6337
|
+
},
|
|
6338
|
+
light: {
|
|
6339
|
+
base: "bg-transparent"
|
|
6340
|
+
},
|
|
6341
|
+
faded: {
|
|
6342
|
+
base: [
|
|
6343
|
+
"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100",
|
|
6344
|
+
"data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"
|
|
6345
|
+
]
|
|
6346
|
+
},
|
|
6347
|
+
flat: {
|
|
6348
|
+
base: ""
|
|
6349
|
+
},
|
|
6350
|
+
shadow: {
|
|
6351
|
+
base: "data-[hover=true]:shadow-lg"
|
|
6352
|
+
}
|
|
6353
|
+
},
|
|
6354
|
+
color: {
|
|
6355
|
+
default: {},
|
|
6356
|
+
primary: {},
|
|
6357
|
+
secondary: {},
|
|
6358
|
+
success: {},
|
|
6359
|
+
warning: {},
|
|
6360
|
+
danger: {}
|
|
6361
|
+
},
|
|
6362
|
+
showDivider: {
|
|
6363
|
+
true: {
|
|
6364
|
+
base: [
|
|
6365
|
+
"mb-1.5",
|
|
6366
|
+
"after:content-['']",
|
|
6367
|
+
"after:absolute",
|
|
6368
|
+
"after:-bottom-1",
|
|
6369
|
+
"after:left-0",
|
|
6370
|
+
"after:right-0",
|
|
6371
|
+
"after:h-divider",
|
|
6372
|
+
"after:bg-divider"
|
|
6373
|
+
]
|
|
6374
|
+
},
|
|
6375
|
+
false: {}
|
|
6376
|
+
},
|
|
6377
|
+
isDisabled: {
|
|
6378
|
+
true: {
|
|
6379
|
+
base: "opacity-disabled pointer-events-none"
|
|
6380
|
+
}
|
|
6381
|
+
},
|
|
6382
|
+
disableAnimation: {
|
|
6383
|
+
true: {},
|
|
6384
|
+
false: {}
|
|
6385
|
+
}
|
|
6386
|
+
},
|
|
6387
|
+
defaultVariants: {
|
|
6388
|
+
variant: "solid",
|
|
6389
|
+
color: "default",
|
|
6390
|
+
disableAnimation: false,
|
|
6391
|
+
showDivider: false
|
|
6392
|
+
},
|
|
6393
|
+
compoundVariants: [
|
|
6394
|
+
{
|
|
6395
|
+
variant: "solid",
|
|
6396
|
+
color: "default",
|
|
6397
|
+
class: {
|
|
6398
|
+
base: [
|
|
6399
|
+
"data-[hover=true]:bg-default",
|
|
6400
|
+
"data-[hover=true]:text-default-foreground",
|
|
6401
|
+
"data-[selectable=true]:focus:bg-default",
|
|
6402
|
+
"data-[selectable=true]:focus:text-default-foreground"
|
|
6403
|
+
]
|
|
6404
|
+
}
|
|
6405
|
+
},
|
|
6406
|
+
{
|
|
6407
|
+
variant: "solid",
|
|
6408
|
+
color: "primary",
|
|
6409
|
+
class: {
|
|
6410
|
+
base: [
|
|
6411
|
+
"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
|
|
6412
|
+
"data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
|
|
6413
|
+
]
|
|
6414
|
+
}
|
|
6415
|
+
},
|
|
6416
|
+
{
|
|
6417
|
+
variant: "solid",
|
|
6418
|
+
color: "secondary",
|
|
6419
|
+
class: {
|
|
6420
|
+
base: [
|
|
6421
|
+
"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
|
|
6422
|
+
"data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
|
|
6423
|
+
]
|
|
6424
|
+
}
|
|
6425
|
+
},
|
|
6426
|
+
{
|
|
6427
|
+
variant: "solid",
|
|
6428
|
+
color: "success",
|
|
6429
|
+
class: {
|
|
6430
|
+
base: [
|
|
6431
|
+
"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
|
|
6432
|
+
"data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
|
|
6433
|
+
]
|
|
6434
|
+
}
|
|
6435
|
+
},
|
|
6436
|
+
{
|
|
6437
|
+
variant: "solid",
|
|
6438
|
+
color: "warning",
|
|
6439
|
+
class: {
|
|
6440
|
+
base: [
|
|
6441
|
+
"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
|
|
6442
|
+
"data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
|
|
6443
|
+
]
|
|
6444
|
+
}
|
|
6445
|
+
},
|
|
6446
|
+
{
|
|
6447
|
+
variant: "solid",
|
|
6448
|
+
color: "danger",
|
|
6449
|
+
class: {
|
|
6450
|
+
base: [
|
|
6451
|
+
"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
|
|
6452
|
+
"data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
|
|
6453
|
+
]
|
|
6454
|
+
}
|
|
6455
|
+
},
|
|
6456
|
+
{
|
|
6457
|
+
variant: "shadow",
|
|
6458
|
+
color: "default",
|
|
6459
|
+
class: {
|
|
6460
|
+
base: [
|
|
6461
|
+
"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground",
|
|
6462
|
+
"data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"
|
|
6463
|
+
]
|
|
6464
|
+
}
|
|
6465
|
+
},
|
|
6466
|
+
{
|
|
6467
|
+
variant: "shadow",
|
|
6468
|
+
color: "primary",
|
|
6469
|
+
class: {
|
|
6470
|
+
base: [
|
|
6471
|
+
"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground",
|
|
6472
|
+
"data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"
|
|
6473
|
+
]
|
|
6474
|
+
}
|
|
6475
|
+
},
|
|
6476
|
+
{
|
|
6477
|
+
variant: "shadow",
|
|
6478
|
+
color: "secondary",
|
|
6479
|
+
class: {
|
|
6480
|
+
base: [
|
|
6481
|
+
"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground",
|
|
6482
|
+
"data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"
|
|
6483
|
+
]
|
|
6484
|
+
}
|
|
6485
|
+
},
|
|
6486
|
+
{
|
|
6487
|
+
variant: "shadow",
|
|
6488
|
+
color: "success",
|
|
6489
|
+
class: {
|
|
6490
|
+
base: [
|
|
6491
|
+
"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground",
|
|
6492
|
+
"data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"
|
|
6493
|
+
]
|
|
6494
|
+
}
|
|
6495
|
+
},
|
|
6496
|
+
{
|
|
6497
|
+
variant: "shadow",
|
|
6498
|
+
color: "warning",
|
|
6499
|
+
class: {
|
|
6500
|
+
base: [
|
|
6501
|
+
"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground",
|
|
6502
|
+
"data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"
|
|
6503
|
+
]
|
|
6504
|
+
}
|
|
6505
|
+
},
|
|
6506
|
+
{
|
|
6507
|
+
variant: "shadow",
|
|
6508
|
+
color: "danger",
|
|
6509
|
+
class: {
|
|
6510
|
+
base: [
|
|
6511
|
+
"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground",
|
|
6512
|
+
"data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"
|
|
6513
|
+
]
|
|
6514
|
+
}
|
|
6515
|
+
},
|
|
6516
|
+
{
|
|
6517
|
+
variant: "bordered",
|
|
6518
|
+
color: "default",
|
|
6519
|
+
class: {
|
|
6520
|
+
base: ["data-[hover=true]:border-default", "data-[selectable=true]:focus:border-default"]
|
|
6521
|
+
}
|
|
6522
|
+
},
|
|
6523
|
+
{
|
|
6524
|
+
variant: "bordered",
|
|
6525
|
+
color: "primary",
|
|
6526
|
+
class: {
|
|
6527
|
+
base: [
|
|
6528
|
+
"data-[hover=true]:border-primary data-[hover=true]:text-primary",
|
|
6529
|
+
"data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"
|
|
6530
|
+
]
|
|
6531
|
+
}
|
|
6532
|
+
},
|
|
6533
|
+
{
|
|
6534
|
+
variant: "bordered",
|
|
6535
|
+
color: "secondary",
|
|
6536
|
+
class: {
|
|
6537
|
+
base: [
|
|
6538
|
+
"data-[hover=true]:border-secondary data-[hover=true]:text-secondary",
|
|
6539
|
+
"data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"
|
|
6540
|
+
]
|
|
6541
|
+
}
|
|
6542
|
+
},
|
|
6543
|
+
{
|
|
6544
|
+
variant: "bordered",
|
|
6545
|
+
color: "success",
|
|
6546
|
+
class: {
|
|
6547
|
+
base: [
|
|
6548
|
+
"data-[hover=true]:border-success data-[hover=true]:text-success",
|
|
6549
|
+
"data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"
|
|
6550
|
+
]
|
|
6551
|
+
}
|
|
6552
|
+
},
|
|
6553
|
+
{
|
|
6554
|
+
variant: "bordered",
|
|
6555
|
+
color: "warning",
|
|
6556
|
+
class: {
|
|
6557
|
+
base: [
|
|
6558
|
+
"data-[hover=true]:border-warning data-[hover=true]:text-warning",
|
|
6559
|
+
"data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"
|
|
6560
|
+
]
|
|
6561
|
+
}
|
|
6562
|
+
},
|
|
6563
|
+
{
|
|
6564
|
+
variant: "bordered",
|
|
6565
|
+
color: "danger",
|
|
6566
|
+
class: {
|
|
6567
|
+
base: [
|
|
6568
|
+
"data-[hover=true]:border-danger data-[hover=true]:text-danger",
|
|
6569
|
+
"data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"
|
|
6570
|
+
]
|
|
6571
|
+
}
|
|
6572
|
+
},
|
|
6573
|
+
{
|
|
6574
|
+
variant: "flat",
|
|
6575
|
+
color: "default",
|
|
6576
|
+
class: {
|
|
6577
|
+
base: [
|
|
6578
|
+
"data-[hover=true]:bg-default/40",
|
|
6579
|
+
"data-[hover=true]:text-default-foreground",
|
|
6580
|
+
"data-[selectable=true]:focus:bg-default/40",
|
|
6581
|
+
"data-[selectable=true]:focus:text-default-foreground"
|
|
6582
|
+
]
|
|
6583
|
+
}
|
|
6584
|
+
},
|
|
6585
|
+
{
|
|
6586
|
+
variant: "flat",
|
|
6587
|
+
color: "primary",
|
|
6588
|
+
class: {
|
|
6589
|
+
base: [
|
|
6590
|
+
"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary",
|
|
6591
|
+
"data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"
|
|
6592
|
+
]
|
|
6593
|
+
}
|
|
6594
|
+
},
|
|
6595
|
+
{
|
|
6596
|
+
variant: "flat",
|
|
6597
|
+
color: "secondary",
|
|
6598
|
+
class: {
|
|
6599
|
+
base: [
|
|
6600
|
+
"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary",
|
|
6601
|
+
"data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"
|
|
6602
|
+
]
|
|
6603
|
+
}
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
variant: "flat",
|
|
6607
|
+
color: "success",
|
|
6608
|
+
class: {
|
|
6609
|
+
base: [
|
|
6610
|
+
"data-[hover=true]:bg-success/20 data-[hover=true]:text-success",
|
|
6611
|
+
"data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"
|
|
6612
|
+
]
|
|
6613
|
+
}
|
|
6614
|
+
},
|
|
6615
|
+
{
|
|
6616
|
+
variant: "flat",
|
|
6617
|
+
color: "warning",
|
|
6618
|
+
class: {
|
|
6619
|
+
base: [
|
|
6620
|
+
"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning",
|
|
6621
|
+
"data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"
|
|
6622
|
+
]
|
|
6623
|
+
}
|
|
6624
|
+
},
|
|
6625
|
+
{
|
|
6626
|
+
variant: "flat",
|
|
6627
|
+
color: "danger",
|
|
6628
|
+
class: {
|
|
6629
|
+
base: [
|
|
6630
|
+
"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger",
|
|
6631
|
+
"data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"
|
|
6632
|
+
]
|
|
6633
|
+
}
|
|
6634
|
+
},
|
|
6635
|
+
{
|
|
6636
|
+
variant: "faded",
|
|
6637
|
+
color: "default",
|
|
6638
|
+
class: {
|
|
6639
|
+
base: [
|
|
6640
|
+
"data-[hover=true]:text-default-foreground",
|
|
6641
|
+
"data-[selectable=true]:focus:text-default-foreground"
|
|
6642
|
+
]
|
|
6643
|
+
}
|
|
6644
|
+
},
|
|
6645
|
+
{
|
|
6646
|
+
variant: "faded",
|
|
6647
|
+
color: "primary",
|
|
6648
|
+
class: {
|
|
6649
|
+
base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
|
|
6650
|
+
}
|
|
6651
|
+
},
|
|
6652
|
+
{
|
|
6653
|
+
variant: "faded",
|
|
6654
|
+
color: "secondary",
|
|
6655
|
+
class: {
|
|
6656
|
+
base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
|
|
6657
|
+
}
|
|
6658
|
+
},
|
|
6659
|
+
{
|
|
6660
|
+
variant: "faded",
|
|
6661
|
+
color: "success",
|
|
6662
|
+
class: {
|
|
6663
|
+
base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
|
|
6664
|
+
}
|
|
6665
|
+
},
|
|
6666
|
+
{
|
|
6667
|
+
variant: "faded",
|
|
6668
|
+
color: "warning",
|
|
6669
|
+
class: {
|
|
6670
|
+
base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
|
|
6671
|
+
}
|
|
6672
|
+
},
|
|
6673
|
+
{
|
|
6674
|
+
variant: "faded",
|
|
6675
|
+
color: "danger",
|
|
6676
|
+
class: {
|
|
6677
|
+
base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
|
|
6678
|
+
}
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
variant: "light",
|
|
6682
|
+
color: "default",
|
|
6683
|
+
class: {
|
|
6684
|
+
base: [
|
|
6685
|
+
"data-[hover=true]:text-default-500",
|
|
6686
|
+
"data-[selectable=true]:focus:text-default-500"
|
|
6687
|
+
]
|
|
6688
|
+
}
|
|
6689
|
+
},
|
|
6690
|
+
{
|
|
6691
|
+
variant: "light",
|
|
6692
|
+
color: "primary",
|
|
6693
|
+
class: {
|
|
6694
|
+
base: ["data-[hover=true]:text-primary", "data-[selectable=true]:focus:text-primary"]
|
|
6695
|
+
}
|
|
6696
|
+
},
|
|
6697
|
+
{
|
|
6698
|
+
variant: "light",
|
|
6699
|
+
color: "secondary",
|
|
6700
|
+
class: {
|
|
6701
|
+
base: ["data-[hover=true]:text-secondary", "data-[selectable=true]:focus:text-secondary"]
|
|
6702
|
+
}
|
|
6703
|
+
},
|
|
6704
|
+
{
|
|
6705
|
+
variant: "light",
|
|
6706
|
+
color: "success",
|
|
6707
|
+
class: {
|
|
6708
|
+
base: ["data-[hover=true]:text-success", "data-[selectable=true]:focus:text-success"]
|
|
6709
|
+
}
|
|
6710
|
+
},
|
|
6711
|
+
{
|
|
6712
|
+
variant: "light",
|
|
6713
|
+
color: "warning",
|
|
6714
|
+
class: {
|
|
6715
|
+
base: ["data-[hover=true]:text-warning", "data-[selectable=true]:focus:text-warning"]
|
|
6716
|
+
}
|
|
6717
|
+
},
|
|
6718
|
+
{
|
|
6719
|
+
variant: "light",
|
|
6720
|
+
color: "danger",
|
|
6721
|
+
class: {
|
|
6722
|
+
base: ["data-[hover=true]:text-danger", "data-[selectable=true]:focus:text-danger"]
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
]
|
|
6726
|
+
});
|
|
6727
|
+
var menuSection = tv({
|
|
6728
|
+
slots: {
|
|
6729
|
+
base: "relative mb-2",
|
|
6730
|
+
heading: "pl-1 text-tiny text-foreground-500",
|
|
6731
|
+
group: "data-[has-title=true]:pt-1",
|
|
6732
|
+
divider: "mt-2"
|
|
6733
|
+
}
|
|
6734
|
+
});
|
|
6735
|
+
|
|
6736
|
+
// src/components/scroll-shadow.ts
|
|
6737
|
+
var verticalShadow = [
|
|
6738
|
+
"data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
|
|
6739
|
+
"data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
|
|
6740
|
+
"data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
|
|
6741
|
+
];
|
|
6742
|
+
var horizontalShadow = [
|
|
6743
|
+
"data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
|
|
6744
|
+
"data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]",
|
|
6745
|
+
"data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
|
|
6746
|
+
];
|
|
6747
|
+
var scrollShadow = tv({
|
|
6748
|
+
base: [],
|
|
6749
|
+
variants: {
|
|
6750
|
+
orientation: {
|
|
6751
|
+
vertical: ["overflow-y-auto", ...verticalShadow],
|
|
6752
|
+
horizontal: ["overflow-x-auto", ...horizontalShadow]
|
|
6753
|
+
},
|
|
6754
|
+
hideScrollBar: {
|
|
6755
|
+
true: "scrollbar-hide",
|
|
6756
|
+
false: ""
|
|
6757
|
+
}
|
|
6758
|
+
},
|
|
6759
|
+
defaultVariants: {
|
|
6760
|
+
orientation: "vertical",
|
|
6761
|
+
hideScrollBar: false
|
|
6762
|
+
}
|
|
6763
|
+
});
|
|
5753
6764
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5754
6765
|
0 && (module.exports = {
|
|
5755
6766
|
accordion,
|
|
@@ -5776,6 +6787,12 @@ var skeleton = tv({
|
|
|
5776
6787
|
kbd,
|
|
5777
6788
|
link,
|
|
5778
6789
|
linkAnchorClasses,
|
|
6790
|
+
listbox,
|
|
6791
|
+
listboxItem,
|
|
6792
|
+
listboxSection,
|
|
6793
|
+
menu,
|
|
6794
|
+
menuItem,
|
|
6795
|
+
menuSection,
|
|
5779
6796
|
modal,
|
|
5780
6797
|
navbar,
|
|
5781
6798
|
pagination,
|
|
@@ -5783,6 +6800,8 @@ var skeleton = tv({
|
|
|
5783
6800
|
progress,
|
|
5784
6801
|
radio,
|
|
5785
6802
|
radioGroup,
|
|
6803
|
+
scrollShadow,
|
|
6804
|
+
select,
|
|
5786
6805
|
skeleton,
|
|
5787
6806
|
snippet,
|
|
5788
6807
|
spacer,
|