@nextui-org/theme 2.3.0-beta.9 → 2.4.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-6CPZ7K75.mjs +444 -0
- package/dist/{chunk-IZOPFGDE.mjs → chunk-6KWI4IHE.mjs} +82 -1
- package/dist/chunk-AHEUDQZM.mjs +18 -0
- package/dist/chunk-E257OVH3.mjs +12 -0
- package/dist/{chunk-LCMN7HGG.mjs → chunk-FVKQU6KS.mjs} +1 -1
- package/dist/{chunk-3ANIDDEW.mjs → chunk-LJXTFBEV.mjs} +2 -2
- package/dist/{chunk-K6KPB2U5.mjs → chunk-PTCUE3XA.mjs} +11 -1
- package/dist/{chunk-HIFLYEAM.mjs → chunk-QS3I2D2K.mjs} +1 -1
- package/dist/{chunk-HNRFZTEX.mjs → chunk-TK7HBD3N.mjs} +2 -1
- package/dist/{chunk-MXL6JCUG.mjs → chunk-Y2BFQAAT.mjs} +30 -6
- package/dist/{chunk-2TAKWWRG.mjs → chunk-ZZ2VSLD6.mjs} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.mjs +3 -2
- package/dist/components/alert.mjs +2 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/avatar.mjs +2 -1
- package/dist/components/badge.mjs +2 -1
- package/dist/components/breadcrumbs.mjs +2 -1
- package/dist/components/button.mjs +2 -1
- package/dist/components/calendar.mjs +2 -1
- package/dist/components/card.mjs +2 -1
- package/dist/components/checkbox.mjs +2 -1
- package/dist/components/chip.mjs +2 -1
- package/dist/components/code.mjs +2 -1
- package/dist/components/date-input.d.ts +7 -0
- package/dist/components/date-input.js +2 -1
- package/dist/components/date-input.mjs +1 -1
- package/dist/components/dropdown.mjs +2 -1
- package/dist/components/form.d.ts +20 -0
- package/dist/components/{circular-progress.js → form.js} +9 -86
- package/dist/components/{circular-progress.mjs → form.mjs} +3 -3
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +490 -14
- package/dist/components/index.mjs +29 -22
- package/dist/components/input-otp.d.ts +603 -0
- package/dist/components/input-otp.js +518 -0
- package/dist/components/input-otp.mjs +13 -0
- package/dist/components/input.d.ts +21 -7
- package/dist/components/input.js +30 -6
- package/dist/components/input.mjs +3 -2
- package/dist/components/link.mjs +2 -1
- package/dist/components/listbox.js +11 -1
- package/dist/components/listbox.mjs +3 -2
- package/dist/components/menu.d.ts +70 -0
- package/dist/components/menu.js +11 -1
- package/dist/components/menu.mjs +3 -2
- package/dist/components/modal.mjs +2 -1
- package/dist/components/navbar.mjs +2 -1
- package/dist/components/pagination.mjs +2 -1
- package/dist/components/popover.mjs +2 -1
- package/dist/components/progress.d.ts +426 -1
- package/dist/components/progress.js +82 -0
- package/dist/components/progress.mjs +3 -1
- package/dist/components/radio.mjs +2 -1
- package/dist/components/select.js +2 -2
- package/dist/components/select.mjs +3 -2
- package/dist/components/slider.mjs +2 -1
- package/dist/components/snippet.mjs +2 -1
- package/dist/components/table.mjs +2 -1
- package/dist/components/tabs.mjs +2 -1
- package/dist/components/toggle.mjs +2 -1
- package/dist/components/user.mjs +2 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +510 -17
- package/dist/index.mjs +35 -25
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/index.mjs +5 -1
- package/dist/utils/merge-classes.d.ts +12 -0
- package/dist/utils/merge-classes.js +42 -0
- package/dist/utils/merge-classes.mjs +6 -0
- package/package.json +2 -2
- package/dist/chunk-AUN4SP2F.mjs +0 -89
- package/dist/components/circular-progress.d.ts +0 -430
- package/dist/{chunk-XZMJGJQX.mjs → chunk-3FZCW6LN.mjs} +3 -3
- /package/dist/{chunk-IV3K5WDK.mjs → chunk-3ZVSVLZD.mjs} +0 -0
- /package/dist/{chunk-MA4DKK64.mjs → chunk-CWYZ2GEH.mjs} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -48,8 +48,10 @@ __export(components_exports, {
|
|
|
48
48
|
dropdownItem: () => dropdownItem,
|
|
49
49
|
dropdownMenu: () => dropdownMenu,
|
|
50
50
|
dropdownSection: () => dropdownSection,
|
|
51
|
+
form: () => form,
|
|
51
52
|
image: () => image,
|
|
52
53
|
input: () => input,
|
|
54
|
+
inputOtp: () => inputOtp,
|
|
53
55
|
kbd: () => kbd,
|
|
54
56
|
link: () => link,
|
|
55
57
|
linkAnchorClasses: () => linkAnchorClasses,
|
|
@@ -3486,7 +3488,7 @@ var accordionItem = tv({
|
|
|
3486
3488
|
startContent: "flex-shrink-0",
|
|
3487
3489
|
indicator: "text-default-400",
|
|
3488
3490
|
titleWrapper: "flex-1 flex flex-col text-start",
|
|
3489
|
-
title: "text-foreground text-
|
|
3491
|
+
title: "text-foreground text-medium",
|
|
3490
3492
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
3491
3493
|
content: "py-2"
|
|
3492
3494
|
},
|
|
@@ -3692,8 +3694,6 @@ var progress = tv(
|
|
|
3692
3694
|
twMerge: true
|
|
3693
3695
|
}
|
|
3694
3696
|
);
|
|
3695
|
-
|
|
3696
|
-
// src/components/circular-progress.ts
|
|
3697
3697
|
var circularProgress = tv({
|
|
3698
3698
|
slots: {
|
|
3699
3699
|
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
@@ -3775,6 +3775,440 @@ var circularProgress = tv({
|
|
|
3775
3775
|
]
|
|
3776
3776
|
});
|
|
3777
3777
|
|
|
3778
|
+
// src/components/input-otp.ts
|
|
3779
|
+
var inputOtp = tv({
|
|
3780
|
+
slots: {
|
|
3781
|
+
base: ["relative", "flex", "flex-col", "w-fit"],
|
|
3782
|
+
wrapper: ["group", "flex items-center", "has-[:disabled]:opacity-60"],
|
|
3783
|
+
input: [
|
|
3784
|
+
"absolute",
|
|
3785
|
+
"inset-0",
|
|
3786
|
+
"border-none",
|
|
3787
|
+
"outline-none",
|
|
3788
|
+
"bg-transparent",
|
|
3789
|
+
"text-transparent"
|
|
3790
|
+
],
|
|
3791
|
+
segmentWrapper: ["inline-flex", "gap-x-1", "py-2"],
|
|
3792
|
+
segment: [
|
|
3793
|
+
"h-10",
|
|
3794
|
+
"w-10",
|
|
3795
|
+
"font-semibold",
|
|
3796
|
+
"flex",
|
|
3797
|
+
"justify-center",
|
|
3798
|
+
"items-center",
|
|
3799
|
+
"border-default-200",
|
|
3800
|
+
"data-[active=true]:border-default-400",
|
|
3801
|
+
"data-[active=true]:scale-110",
|
|
3802
|
+
"shadow-sm",
|
|
3803
|
+
"hover:bg-danger",
|
|
3804
|
+
...dataFocusVisibleClasses
|
|
3805
|
+
],
|
|
3806
|
+
passwordChar: ["w-1", "h-1", "bg-default-800", "rounded-full"],
|
|
3807
|
+
caret: [
|
|
3808
|
+
"animate-[appearance-in_1s_infinite]",
|
|
3809
|
+
"font-extralight",
|
|
3810
|
+
"h-full",
|
|
3811
|
+
"w-full",
|
|
3812
|
+
"flex",
|
|
3813
|
+
"justify-center",
|
|
3814
|
+
"items-center",
|
|
3815
|
+
"text-2xl",
|
|
3816
|
+
"h-[50%]",
|
|
3817
|
+
"w-px",
|
|
3818
|
+
"bg-foreground"
|
|
3819
|
+
],
|
|
3820
|
+
helperWrapper: ["text-tiny", "mt-0.5", "font-extralight", ""],
|
|
3821
|
+
errorMessage: ["text-tiny text-danger w-full"],
|
|
3822
|
+
description: ["text-tiny text-foreground-400"]
|
|
3823
|
+
},
|
|
3824
|
+
variants: {
|
|
3825
|
+
variant: {
|
|
3826
|
+
flat: {
|
|
3827
|
+
segment: ["border-transparent", "bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3828
|
+
},
|
|
3829
|
+
faded: {
|
|
3830
|
+
segment: ["bg-default-100", "border-medium"]
|
|
3831
|
+
},
|
|
3832
|
+
bordered: {
|
|
3833
|
+
segment: ["border-medium"]
|
|
3834
|
+
},
|
|
3835
|
+
underlined: {
|
|
3836
|
+
segment: [
|
|
3837
|
+
"shadow-none",
|
|
3838
|
+
"relative",
|
|
3839
|
+
"box-border",
|
|
3840
|
+
"!rounded-none",
|
|
3841
|
+
"border-b-medium",
|
|
3842
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
3843
|
+
"border-default-200",
|
|
3844
|
+
"after:content-['']",
|
|
3845
|
+
"after:w-0",
|
|
3846
|
+
"after:origin-center",
|
|
3847
|
+
"after:bg-default-foreground",
|
|
3848
|
+
"after:absolute",
|
|
3849
|
+
"after:left-1/2",
|
|
3850
|
+
"after:-translate-x-1/2",
|
|
3851
|
+
"after:-bottom-[2px]",
|
|
3852
|
+
"after:h-[2px]",
|
|
3853
|
+
"data-[active=true]:border-default-300",
|
|
3854
|
+
"data-[active=true]:after:w-full",
|
|
3855
|
+
"data-[active=true]:scale-100"
|
|
3856
|
+
]
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
isDisabled: {
|
|
3860
|
+
true: {
|
|
3861
|
+
segment: "opacity-disabled pointer-events-none",
|
|
3862
|
+
input: "pointer-events-none"
|
|
3863
|
+
}
|
|
3864
|
+
},
|
|
3865
|
+
isInvalid: {
|
|
3866
|
+
true: {}
|
|
3867
|
+
},
|
|
3868
|
+
isReadOnly: {
|
|
3869
|
+
true: {
|
|
3870
|
+
caret: "bg-transparent",
|
|
3871
|
+
segment: "transition-none data-[active=true]:scale-100"
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3874
|
+
fullWidth: {
|
|
3875
|
+
true: {
|
|
3876
|
+
base: "w-full"
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3879
|
+
radius: {
|
|
3880
|
+
none: {
|
|
3881
|
+
segment: "rounded-none"
|
|
3882
|
+
},
|
|
3883
|
+
sm: {
|
|
3884
|
+
segment: "rounded-sm"
|
|
3885
|
+
},
|
|
3886
|
+
md: {
|
|
3887
|
+
segment: "rounded-md"
|
|
3888
|
+
},
|
|
3889
|
+
lg: {
|
|
3890
|
+
segment: "rounded-lg"
|
|
3891
|
+
},
|
|
3892
|
+
full: {
|
|
3893
|
+
segment: "rounded-full"
|
|
3894
|
+
}
|
|
3895
|
+
},
|
|
3896
|
+
color: {
|
|
3897
|
+
default: {},
|
|
3898
|
+
primary: {},
|
|
3899
|
+
secondary: {},
|
|
3900
|
+
success: {},
|
|
3901
|
+
warning: {},
|
|
3902
|
+
danger: {}
|
|
3903
|
+
},
|
|
3904
|
+
size: {
|
|
3905
|
+
sm: {
|
|
3906
|
+
segment: "h-8 min-h-8 w-8 min-w-8 text-small"
|
|
3907
|
+
},
|
|
3908
|
+
md: {
|
|
3909
|
+
segment: "h-10 min-h-10 w-10 min-w-10 text-small"
|
|
3910
|
+
},
|
|
3911
|
+
lg: {
|
|
3912
|
+
segment: "h-12 min-h-12 w-12 min-w-12 text-medium"
|
|
3913
|
+
}
|
|
3914
|
+
},
|
|
3915
|
+
disableAnimation: {
|
|
3916
|
+
true: {
|
|
3917
|
+
segment: "transition-none",
|
|
3918
|
+
caret: "animate-none"
|
|
3919
|
+
},
|
|
3920
|
+
false: {
|
|
3921
|
+
segment: "transition duration-150"
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
defaultVariants: {
|
|
3926
|
+
variant: "flat",
|
|
3927
|
+
color: "default",
|
|
3928
|
+
radius: "md",
|
|
3929
|
+
size: "md"
|
|
3930
|
+
},
|
|
3931
|
+
compoundVariants: [
|
|
3932
|
+
{
|
|
3933
|
+
variant: "flat",
|
|
3934
|
+
color: "default",
|
|
3935
|
+
class: {
|
|
3936
|
+
segment: ["bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
variant: "flat",
|
|
3941
|
+
color: "primary",
|
|
3942
|
+
class: {
|
|
3943
|
+
segment: ["bg-primary-100", "data-[active=true]:bg-primary-200", "text-primary"],
|
|
3944
|
+
caret: ["bg-primary"],
|
|
3945
|
+
passwordChar: ["bg-primary"]
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
{
|
|
3949
|
+
variant: "flat",
|
|
3950
|
+
color: "secondary",
|
|
3951
|
+
class: {
|
|
3952
|
+
segment: ["bg-secondary-100", "data-[active=true]:bg-secondary-200", "text-secondary"],
|
|
3953
|
+
caret: ["bg-secondary"],
|
|
3954
|
+
passwordChar: ["bg-secondary"]
|
|
3955
|
+
}
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
variant: "flat",
|
|
3959
|
+
color: "success",
|
|
3960
|
+
class: {
|
|
3961
|
+
segment: ["bg-success-100", "data-[active=true]:bg-success-200", "text-success"],
|
|
3962
|
+
caret: ["bg-success"],
|
|
3963
|
+
passwordChar: ["bg-success"]
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
variant: "flat",
|
|
3968
|
+
color: "warning",
|
|
3969
|
+
class: {
|
|
3970
|
+
segment: ["bg-warning-100", "data-[active=true]:bg-warning-200", "text-warning"],
|
|
3971
|
+
caret: ["bg-warning"],
|
|
3972
|
+
passwordChar: ["bg-warning"]
|
|
3973
|
+
}
|
|
3974
|
+
},
|
|
3975
|
+
{
|
|
3976
|
+
variant: "flat",
|
|
3977
|
+
color: "danger",
|
|
3978
|
+
class: {
|
|
3979
|
+
segment: ["bg-danger-100", "data-[active=true]:bg-danger-200", "text-danger"],
|
|
3980
|
+
caret: ["bg-danger"],
|
|
3981
|
+
passwordChar: ["bg-danger"]
|
|
3982
|
+
}
|
|
3983
|
+
},
|
|
3984
|
+
{
|
|
3985
|
+
variant: "faded",
|
|
3986
|
+
color: "default",
|
|
3987
|
+
class: {
|
|
3988
|
+
segment: ""
|
|
3989
|
+
}
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
variant: "faded",
|
|
3993
|
+
color: "primary",
|
|
3994
|
+
class: {
|
|
3995
|
+
segment: [
|
|
3996
|
+
"bg-primary-100",
|
|
3997
|
+
"text-primary",
|
|
3998
|
+
"border-primary-200",
|
|
3999
|
+
"data-[active=true]:border-primary"
|
|
4000
|
+
],
|
|
4001
|
+
caret: ["bg-primary"],
|
|
4002
|
+
passwordChar: ["bg-primary"]
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
variant: "faded",
|
|
4007
|
+
color: "secondary",
|
|
4008
|
+
class: {
|
|
4009
|
+
segment: [
|
|
4010
|
+
"bg-secondary-100",
|
|
4011
|
+
"text-secondary",
|
|
4012
|
+
"border-secondary-200",
|
|
4013
|
+
"data-[active=true]:border-secondary"
|
|
4014
|
+
],
|
|
4015
|
+
caret: ["bg-secondary"],
|
|
4016
|
+
passwordChar: ["bg-secondary"]
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
variant: "faded",
|
|
4021
|
+
color: "success",
|
|
4022
|
+
class: {
|
|
4023
|
+
segment: [
|
|
4024
|
+
"bg-success-100",
|
|
4025
|
+
"text-success",
|
|
4026
|
+
"border-success-200",
|
|
4027
|
+
"data-[active=true]:border-success"
|
|
4028
|
+
],
|
|
4029
|
+
caret: ["bg-success"],
|
|
4030
|
+
passwordChar: ["bg-success"]
|
|
4031
|
+
}
|
|
4032
|
+
},
|
|
4033
|
+
{
|
|
4034
|
+
variant: "faded",
|
|
4035
|
+
color: "warning",
|
|
4036
|
+
class: {
|
|
4037
|
+
segment: [
|
|
4038
|
+
"bg-warning-100",
|
|
4039
|
+
"text-warning",
|
|
4040
|
+
"border-warning-200",
|
|
4041
|
+
"data-[active=true]:border-warning"
|
|
4042
|
+
],
|
|
4043
|
+
caret: ["bg-warning"],
|
|
4044
|
+
passwordChar: ["bg-warning"]
|
|
4045
|
+
}
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
variant: "faded",
|
|
4049
|
+
color: "danger",
|
|
4050
|
+
class: {
|
|
4051
|
+
segment: [
|
|
4052
|
+
"bg-danger-100",
|
|
4053
|
+
"text-danger",
|
|
4054
|
+
"border-danger-200",
|
|
4055
|
+
"data-[active=true]:border-danger"
|
|
4056
|
+
],
|
|
4057
|
+
caret: ["bg-danger"],
|
|
4058
|
+
passwordChar: ["bg-danger"]
|
|
4059
|
+
}
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
variant: "bordered",
|
|
4063
|
+
color: "default",
|
|
4064
|
+
class: {
|
|
4065
|
+
segment: "data-[has-value=true]:text-default-foreground data-[active=true]:border-foreground"
|
|
4066
|
+
}
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
variant: "bordered",
|
|
4070
|
+
color: "primary",
|
|
4071
|
+
class: {
|
|
4072
|
+
segment: ["border-primary-200", "text-primary", "data-[active=true]:border-primary"],
|
|
4073
|
+
caret: ["bg-primary"],
|
|
4074
|
+
passwordChar: ["bg-primary"]
|
|
4075
|
+
}
|
|
4076
|
+
},
|
|
4077
|
+
{
|
|
4078
|
+
variant: "bordered",
|
|
4079
|
+
color: "secondary",
|
|
4080
|
+
class: {
|
|
4081
|
+
segment: ["border-secondary-200", "text-secondary", "data-[active=true]:border-secondary"],
|
|
4082
|
+
caret: ["bg-secondary"],
|
|
4083
|
+
passwordChar: ["bg-secondary"]
|
|
4084
|
+
}
|
|
4085
|
+
},
|
|
4086
|
+
{
|
|
4087
|
+
variant: "bordered",
|
|
4088
|
+
color: "success",
|
|
4089
|
+
class: {
|
|
4090
|
+
segment: ["border-success-200", "text-success", "data-[active=true]:border-success"],
|
|
4091
|
+
caret: ["bg-success"],
|
|
4092
|
+
passwordChar: ["bg-success"]
|
|
4093
|
+
}
|
|
4094
|
+
},
|
|
4095
|
+
{
|
|
4096
|
+
variant: "bordered",
|
|
4097
|
+
color: "warning",
|
|
4098
|
+
class: {
|
|
4099
|
+
segment: ["border-warning-200", "text-warning", "data-[active=true]:border-warning"],
|
|
4100
|
+
caret: ["bg-warning"],
|
|
4101
|
+
passwordChar: ["bg-warning"]
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
variant: "bordered",
|
|
4106
|
+
color: "danger",
|
|
4107
|
+
class: {
|
|
4108
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger"],
|
|
4109
|
+
caret: ["bg-danger"],
|
|
4110
|
+
passwordChar: ["bg-danger"]
|
|
4111
|
+
}
|
|
4112
|
+
},
|
|
4113
|
+
{
|
|
4114
|
+
variant: "underlined",
|
|
4115
|
+
color: "default",
|
|
4116
|
+
class: {
|
|
4117
|
+
segment: "data-[has-value=true]:text-default-foreground after:bg-foreground"
|
|
4118
|
+
}
|
|
4119
|
+
},
|
|
4120
|
+
{
|
|
4121
|
+
variant: "underlined",
|
|
4122
|
+
color: "primary",
|
|
4123
|
+
class: {
|
|
4124
|
+
segment: ["border-primary-200", "text-primary", "after:bg-primary"],
|
|
4125
|
+
caret: ["bg-primary"],
|
|
4126
|
+
passwordChar: ["bg-primary"]
|
|
4127
|
+
}
|
|
4128
|
+
},
|
|
4129
|
+
{
|
|
4130
|
+
variant: "underlined",
|
|
4131
|
+
color: "secondary",
|
|
4132
|
+
class: {
|
|
4133
|
+
segment: ["border-secondary-200", "text-secondary", "after:bg-secondary"],
|
|
4134
|
+
caret: ["bg-secondary"],
|
|
4135
|
+
passwordChar: ["bg-secondary"]
|
|
4136
|
+
}
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
variant: "underlined",
|
|
4140
|
+
color: "success",
|
|
4141
|
+
class: {
|
|
4142
|
+
segment: ["border-success-200", "text-success", "after:bg-success"],
|
|
4143
|
+
caret: ["bg-success"],
|
|
4144
|
+
passwordChar: ["bg-success"]
|
|
4145
|
+
}
|
|
4146
|
+
},
|
|
4147
|
+
{
|
|
4148
|
+
variant: "underlined",
|
|
4149
|
+
color: "warning",
|
|
4150
|
+
class: {
|
|
4151
|
+
segment: ["border-warning-200", "text-warning", "after:bg-warning"],
|
|
4152
|
+
caret: ["bg-warning"],
|
|
4153
|
+
passwordChar: ["bg-warning"]
|
|
4154
|
+
}
|
|
4155
|
+
},
|
|
4156
|
+
{
|
|
4157
|
+
variant: "underlined",
|
|
4158
|
+
color: "danger",
|
|
4159
|
+
class: {
|
|
4160
|
+
segment: ["border-danger-200", "text-danger", "after:bg-danger"],
|
|
4161
|
+
caret: ["bg-danger"],
|
|
4162
|
+
passwordChar: ["bg-danger"]
|
|
4163
|
+
}
|
|
4164
|
+
},
|
|
4165
|
+
{
|
|
4166
|
+
variant: "flat",
|
|
4167
|
+
isInvalid: true,
|
|
4168
|
+
class: {
|
|
4169
|
+
segment: ["bg-danger-50", "data-[active=true]:bg-danger-100", "text-danger"],
|
|
4170
|
+
caret: ["bg-danger"]
|
|
4171
|
+
}
|
|
4172
|
+
},
|
|
4173
|
+
{
|
|
4174
|
+
variant: "faded",
|
|
4175
|
+
isInvalid: true,
|
|
4176
|
+
class: {
|
|
4177
|
+
segment: [
|
|
4178
|
+
"bg-danger-50",
|
|
4179
|
+
"text-danger",
|
|
4180
|
+
"border-danger-200",
|
|
4181
|
+
"data-[active=true]:border-danger-400"
|
|
4182
|
+
],
|
|
4183
|
+
caret: ["bg-danger"]
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4186
|
+
{
|
|
4187
|
+
variant: "bordered",
|
|
4188
|
+
isInvalid: true,
|
|
4189
|
+
class: {
|
|
4190
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger-400"],
|
|
4191
|
+
caret: ["bg-danger"]
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4194
|
+
{
|
|
4195
|
+
variant: "underlined",
|
|
4196
|
+
isInvalid: true,
|
|
4197
|
+
class: {
|
|
4198
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:after:bg-danger-400"],
|
|
4199
|
+
caret: ["bg-danger"]
|
|
4200
|
+
}
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
disableAnimation: false,
|
|
4204
|
+
variant: "underlined",
|
|
4205
|
+
class: {
|
|
4206
|
+
segment: "after:transition-width motion-reduce:after:transition-none"
|
|
4207
|
+
}
|
|
4208
|
+
}
|
|
4209
|
+
]
|
|
4210
|
+
});
|
|
4211
|
+
|
|
3778
4212
|
// src/components/input.ts
|
|
3779
4213
|
var input = tv({
|
|
3780
4214
|
slots: {
|
|
@@ -3784,6 +4218,7 @@ var input = tv({
|
|
|
3784
4218
|
"z-10",
|
|
3785
4219
|
"pointer-events-none",
|
|
3786
4220
|
"origin-top-left",
|
|
4221
|
+
"flex-shrink-0",
|
|
3787
4222
|
"rtl:origin-top-right",
|
|
3788
4223
|
"subpixel-antialiased",
|
|
3789
4224
|
"block",
|
|
@@ -3804,10 +4239,10 @@ var input = tv({
|
|
|
3804
4239
|
"p-2",
|
|
3805
4240
|
"-m-2",
|
|
3806
4241
|
"z-10",
|
|
3807
|
-
"hidden",
|
|
3808
4242
|
"absolute",
|
|
3809
4243
|
"end-3",
|
|
3810
4244
|
"start-auto",
|
|
4245
|
+
"pointer-events-none",
|
|
3811
4246
|
"appearance-none",
|
|
3812
4247
|
"outline-none",
|
|
3813
4248
|
"select-none",
|
|
@@ -3896,6 +4331,7 @@ var input = tv({
|
|
|
3896
4331
|
clearButton: "text-large"
|
|
3897
4332
|
},
|
|
3898
4333
|
lg: {
|
|
4334
|
+
label: "text-medium",
|
|
3899
4335
|
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
3900
4336
|
input: "text-medium",
|
|
3901
4337
|
clearButton: "text-large"
|
|
@@ -3929,7 +4365,7 @@ var input = tv({
|
|
|
3929
4365
|
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
3930
4366
|
},
|
|
3931
4367
|
inside: {
|
|
3932
|
-
label: "
|
|
4368
|
+
label: "cursor-text",
|
|
3933
4369
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3934
4370
|
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
3935
4371
|
}
|
|
@@ -3943,7 +4379,11 @@ var input = tv({
|
|
|
3943
4379
|
isClearable: {
|
|
3944
4380
|
true: {
|
|
3945
4381
|
input: "peer pe-6 input-search-cancel-button-none",
|
|
3946
|
-
clearButton:
|
|
4382
|
+
clearButton: [
|
|
4383
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
4384
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
4385
|
+
"peer-data-[filled=true]:scale-100"
|
|
4386
|
+
]
|
|
3947
4387
|
}
|
|
3948
4388
|
},
|
|
3949
4389
|
isDisabled: {
|
|
@@ -3969,7 +4409,8 @@ var input = tv({
|
|
|
3969
4409
|
label: "relative",
|
|
3970
4410
|
inputWrapper: "!h-auto",
|
|
3971
4411
|
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
3972
|
-
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
4412
|
+
input: "resize-none data-[hide-scroll=true]:scrollbar-hide",
|
|
4413
|
+
clearButton: "absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"
|
|
3973
4414
|
}
|
|
3974
4415
|
},
|
|
3975
4416
|
disableAnimation: {
|
|
@@ -3987,7 +4428,14 @@ var input = tv({
|
|
|
3987
4428
|
"motion-reduce:transition-none",
|
|
3988
4429
|
"transition-[transform,color,left,opacity]"
|
|
3989
4430
|
],
|
|
3990
|
-
clearButton: [
|
|
4431
|
+
clearButton: [
|
|
4432
|
+
"scale-90",
|
|
4433
|
+
"ease-out",
|
|
4434
|
+
"duration-150",
|
|
4435
|
+
"transition-[opacity,transform]",
|
|
4436
|
+
"motion-reduce:transition-none",
|
|
4437
|
+
"motion-reduce:scale-100"
|
|
4438
|
+
]
|
|
3991
4439
|
}
|
|
3992
4440
|
}
|
|
3993
4441
|
},
|
|
@@ -4316,7 +4764,6 @@ var input = tv({
|
|
|
4316
4764
|
labelPlacement: "inside",
|
|
4317
4765
|
size: "lg",
|
|
4318
4766
|
class: {
|
|
4319
|
-
label: "text-small",
|
|
4320
4767
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
4321
4768
|
}
|
|
4322
4769
|
},
|
|
@@ -4584,6 +5031,17 @@ var input = tv({
|
|
|
4584
5031
|
class: {
|
|
4585
5032
|
inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
|
|
4586
5033
|
}
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
isClearable: true,
|
|
5037
|
+
isMultiline: true,
|
|
5038
|
+
class: {
|
|
5039
|
+
clearButton: [
|
|
5040
|
+
"group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block",
|
|
5041
|
+
"group-data-[has-value=true]:scale-100",
|
|
5042
|
+
"group-data-[has-value=true]:pointer-events-auto"
|
|
5043
|
+
]
|
|
5044
|
+
}
|
|
4587
5045
|
}
|
|
4588
5046
|
]
|
|
4589
5047
|
});
|
|
@@ -6208,7 +6666,7 @@ var select = tv({
|
|
|
6208
6666
|
selectorIcon: "absolute end-3 w-4 h-4",
|
|
6209
6667
|
spinner: "absolute end-3",
|
|
6210
6668
|
value: ["text-foreground-500", "font-normal", "w-full", "text-start"],
|
|
6211
|
-
listboxWrapper: "scroll-py-6
|
|
6669
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
6212
6670
|
listbox: "",
|
|
6213
6671
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
6214
6672
|
helperWrapper: "p-1 flex relative flex-col gap-1.5",
|
|
@@ -6705,7 +7163,7 @@ var select = tv({
|
|
|
6705
7163
|
labelPlacement: "inside",
|
|
6706
7164
|
size: "lg",
|
|
6707
7165
|
class: {
|
|
6708
|
-
label: "text-
|
|
7166
|
+
label: "text-medium",
|
|
6709
7167
|
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
6710
7168
|
}
|
|
6711
7169
|
},
|
|
@@ -6886,7 +7344,7 @@ var select = tv({
|
|
|
6886
7344
|
// src/components/menu.ts
|
|
6887
7345
|
var menu = tv({
|
|
6888
7346
|
slots: {
|
|
6889
|
-
base: "w-full relative flex flex-col gap-1 p-1",
|
|
7347
|
+
base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
|
|
6890
7348
|
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6891
7349
|
emptyContent: [
|
|
6892
7350
|
"h-10",
|
|
@@ -6994,6 +7452,16 @@ var menuItem = tv({
|
|
|
6994
7452
|
false: {
|
|
6995
7453
|
base: "data-[hover=true]:transition-colors"
|
|
6996
7454
|
}
|
|
7455
|
+
},
|
|
7456
|
+
hasTitleTextChild: {
|
|
7457
|
+
true: {
|
|
7458
|
+
title: "truncate"
|
|
7459
|
+
}
|
|
7460
|
+
},
|
|
7461
|
+
hasDescriptionTextChild: {
|
|
7462
|
+
true: {
|
|
7463
|
+
description: "truncate"
|
|
7464
|
+
}
|
|
6997
7465
|
}
|
|
6998
7466
|
},
|
|
6999
7467
|
defaultVariants: {
|
|
@@ -7989,7 +8457,7 @@ var breadcrumbs = tv({
|
|
|
7989
8457
|
var autocomplete = tv({
|
|
7990
8458
|
slots: {
|
|
7991
8459
|
base: "group inline-flex flex-column w-full",
|
|
7992
|
-
listboxWrapper: "scroll-py-6
|
|
8460
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
7993
8461
|
listbox: "",
|
|
7994
8462
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
7995
8463
|
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
@@ -8553,6 +9021,7 @@ var dateInput = tv({
|
|
|
8553
9021
|
clearButton: "text-large"
|
|
8554
9022
|
},
|
|
8555
9023
|
lg: {
|
|
9024
|
+
label: "text-medium",
|
|
8556
9025
|
input: "text-medium",
|
|
8557
9026
|
inputWrapper: "h-12 min-h-12 rounded-large"
|
|
8558
9027
|
}
|
|
@@ -8790,7 +9259,7 @@ var dateInput = tv({
|
|
|
8790
9259
|
labelPlacement: "inside",
|
|
8791
9260
|
size: "lg",
|
|
8792
9261
|
class: {
|
|
8793
|
-
label: "text-
|
|
9262
|
+
label: "text-medium",
|
|
8794
9263
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
8795
9264
|
}
|
|
8796
9265
|
},
|
|
@@ -9212,6 +9681,11 @@ var drawer = tv({
|
|
|
9212
9681
|
}
|
|
9213
9682
|
}
|
|
9214
9683
|
});
|
|
9684
|
+
|
|
9685
|
+
// src/components/form.ts
|
|
9686
|
+
var form = tv({
|
|
9687
|
+
base: "flex flex-col gap-2 items-start"
|
|
9688
|
+
});
|
|
9215
9689
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9216
9690
|
0 && (module.exports = {
|
|
9217
9691
|
accordion,
|
|
@@ -9242,8 +9716,10 @@ var drawer = tv({
|
|
|
9242
9716
|
dropdownItem,
|
|
9243
9717
|
dropdownMenu,
|
|
9244
9718
|
dropdownSection,
|
|
9719
|
+
form,
|
|
9245
9720
|
image,
|
|
9246
9721
|
input,
|
|
9722
|
+
inputOtp,
|
|
9247
9723
|
kbd,
|
|
9248
9724
|
link,
|
|
9249
9725
|
linkAnchorClasses,
|