@nextui-org/theme 2.3.0-beta.8 → 2.3.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-3ANIDDEW.mjs → chunk-IDHWVJY2.mjs} +1 -1
- package/dist/{chunk-MXL6JCUG.mjs → chunk-KOCBDPPO.mjs} +29 -6
- package/dist/{chunk-K6KPB2U5.mjs → chunk-PTCUE3XA.mjs} +11 -1
- package/dist/{chunk-HNRFZTEX.mjs → chunk-TK7HBD3N.mjs} +2 -1
- package/dist/{chunk-2TAKWWRG.mjs → chunk-ZZ2VSLD6.mjs} +1 -1
- package/dist/components/accordion.mjs +2 -1
- 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/index.d.ts +2 -2
- package/dist/components/index.js +480 -12
- package/dist/components/index.mjs +17 -14
- 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 +29 -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 +1 -1
- 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 +3 -2
- package/dist/index.js +500 -15
- package/dist/index.mjs +20 -14
- 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/components/circular-progress.js +0 -157
- package/dist/components/circular-progress.mjs +0 -8
- /package/dist/{chunk-IV3K5WDK.mjs → chunk-CWYZ2GEH.mjs} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(components_exports, {
|
|
|
50
50
|
dropdownSection: () => dropdownSection,
|
|
51
51
|
image: () => image,
|
|
52
52
|
input: () => input,
|
|
53
|
+
inputOtp: () => inputOtp,
|
|
53
54
|
kbd: () => kbd,
|
|
54
55
|
link: () => link,
|
|
55
56
|
linkAnchorClasses: () => linkAnchorClasses,
|
|
@@ -3692,8 +3693,6 @@ var progress = tv(
|
|
|
3692
3693
|
twMerge: true
|
|
3693
3694
|
}
|
|
3694
3695
|
);
|
|
3695
|
-
|
|
3696
|
-
// src/components/circular-progress.ts
|
|
3697
3696
|
var circularProgress = tv({
|
|
3698
3697
|
slots: {
|
|
3699
3698
|
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
@@ -3775,6 +3774,440 @@ var circularProgress = tv({
|
|
|
3775
3774
|
]
|
|
3776
3775
|
});
|
|
3777
3776
|
|
|
3777
|
+
// src/components/input-otp.ts
|
|
3778
|
+
var inputOtp = tv({
|
|
3779
|
+
slots: {
|
|
3780
|
+
base: ["relative", "flex", "flex-col", "w-fit"],
|
|
3781
|
+
wrapper: ["group", "flex items-center", "has-[:disabled]:opacity-60"],
|
|
3782
|
+
input: [
|
|
3783
|
+
"absolute",
|
|
3784
|
+
"inset-0",
|
|
3785
|
+
"border-none",
|
|
3786
|
+
"outline-none",
|
|
3787
|
+
"bg-transparent",
|
|
3788
|
+
"text-transparent"
|
|
3789
|
+
],
|
|
3790
|
+
segmentWrapper: ["inline-flex", "gap-x-1", "py-2"],
|
|
3791
|
+
segment: [
|
|
3792
|
+
"h-10",
|
|
3793
|
+
"w-10",
|
|
3794
|
+
"font-semibold",
|
|
3795
|
+
"flex",
|
|
3796
|
+
"justify-center",
|
|
3797
|
+
"items-center",
|
|
3798
|
+
"border-default-200",
|
|
3799
|
+
"data-[active=true]:border-default-400",
|
|
3800
|
+
"data-[active=true]:scale-110",
|
|
3801
|
+
"shadow-sm",
|
|
3802
|
+
"hover:bg-danger",
|
|
3803
|
+
...dataFocusVisibleClasses
|
|
3804
|
+
],
|
|
3805
|
+
passwordChar: ["w-1", "h-1", "bg-default-800", "rounded-full"],
|
|
3806
|
+
caret: [
|
|
3807
|
+
"animate-[appearance-in_1s_infinite]",
|
|
3808
|
+
"font-extralight",
|
|
3809
|
+
"h-full",
|
|
3810
|
+
"w-full",
|
|
3811
|
+
"flex",
|
|
3812
|
+
"justify-center",
|
|
3813
|
+
"items-center",
|
|
3814
|
+
"text-2xl",
|
|
3815
|
+
"h-[50%]",
|
|
3816
|
+
"w-px",
|
|
3817
|
+
"bg-foreground"
|
|
3818
|
+
],
|
|
3819
|
+
helperWrapper: ["text-tiny", "mt-0.5", "font-extralight", ""],
|
|
3820
|
+
errorMessage: ["text-tiny text-danger w-full"],
|
|
3821
|
+
description: ["text-tiny text-foreground-400"]
|
|
3822
|
+
},
|
|
3823
|
+
variants: {
|
|
3824
|
+
variant: {
|
|
3825
|
+
flat: {
|
|
3826
|
+
segment: ["border-transparent", "bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3827
|
+
},
|
|
3828
|
+
faded: {
|
|
3829
|
+
segment: ["bg-default-100", "border-medium"]
|
|
3830
|
+
},
|
|
3831
|
+
bordered: {
|
|
3832
|
+
segment: ["border-medium"]
|
|
3833
|
+
},
|
|
3834
|
+
underlined: {
|
|
3835
|
+
segment: [
|
|
3836
|
+
"shadow-none",
|
|
3837
|
+
"relative",
|
|
3838
|
+
"box-border",
|
|
3839
|
+
"!rounded-none",
|
|
3840
|
+
"border-b-medium",
|
|
3841
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
3842
|
+
"border-default-200",
|
|
3843
|
+
"after:content-['']",
|
|
3844
|
+
"after:w-0",
|
|
3845
|
+
"after:origin-center",
|
|
3846
|
+
"after:bg-default-foreground",
|
|
3847
|
+
"after:absolute",
|
|
3848
|
+
"after:left-1/2",
|
|
3849
|
+
"after:-translate-x-1/2",
|
|
3850
|
+
"after:-bottom-[2px]",
|
|
3851
|
+
"after:h-[2px]",
|
|
3852
|
+
"data-[active=true]:border-default-300",
|
|
3853
|
+
"data-[active=true]:after:w-full",
|
|
3854
|
+
"data-[active=true]:scale-100"
|
|
3855
|
+
]
|
|
3856
|
+
}
|
|
3857
|
+
},
|
|
3858
|
+
isDisabled: {
|
|
3859
|
+
true: {
|
|
3860
|
+
segment: "opacity-disabled pointer-events-none",
|
|
3861
|
+
input: "pointer-events-none"
|
|
3862
|
+
}
|
|
3863
|
+
},
|
|
3864
|
+
isInvalid: {
|
|
3865
|
+
true: {}
|
|
3866
|
+
},
|
|
3867
|
+
isReadOnly: {
|
|
3868
|
+
true: {
|
|
3869
|
+
caret: "bg-transparent",
|
|
3870
|
+
segment: "transition-none data-[active=true]:scale-100"
|
|
3871
|
+
}
|
|
3872
|
+
},
|
|
3873
|
+
fullWidth: {
|
|
3874
|
+
true: {
|
|
3875
|
+
base: "w-full"
|
|
3876
|
+
}
|
|
3877
|
+
},
|
|
3878
|
+
radius: {
|
|
3879
|
+
none: {
|
|
3880
|
+
segment: "rounded-none"
|
|
3881
|
+
},
|
|
3882
|
+
sm: {
|
|
3883
|
+
segment: "rounded-sm"
|
|
3884
|
+
},
|
|
3885
|
+
md: {
|
|
3886
|
+
segment: "rounded-md"
|
|
3887
|
+
},
|
|
3888
|
+
lg: {
|
|
3889
|
+
segment: "rounded-lg"
|
|
3890
|
+
},
|
|
3891
|
+
full: {
|
|
3892
|
+
segment: "rounded-full"
|
|
3893
|
+
}
|
|
3894
|
+
},
|
|
3895
|
+
color: {
|
|
3896
|
+
default: {},
|
|
3897
|
+
primary: {},
|
|
3898
|
+
secondary: {},
|
|
3899
|
+
success: {},
|
|
3900
|
+
warning: {},
|
|
3901
|
+
danger: {}
|
|
3902
|
+
},
|
|
3903
|
+
size: {
|
|
3904
|
+
sm: {
|
|
3905
|
+
segment: "h-8 min-h-8 w-8 min-w-8 text-small"
|
|
3906
|
+
},
|
|
3907
|
+
md: {
|
|
3908
|
+
segment: "h-10 min-h-10 w-10 min-w-10 text-small"
|
|
3909
|
+
},
|
|
3910
|
+
lg: {
|
|
3911
|
+
segment: "h-12 min-h-12 w-12 min-w-12 text-medium"
|
|
3912
|
+
}
|
|
3913
|
+
},
|
|
3914
|
+
disableAnimation: {
|
|
3915
|
+
true: {
|
|
3916
|
+
segment: "transition-none",
|
|
3917
|
+
caret: "animate-none"
|
|
3918
|
+
},
|
|
3919
|
+
false: {
|
|
3920
|
+
segment: "transition duration-150"
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
defaultVariants: {
|
|
3925
|
+
variant: "flat",
|
|
3926
|
+
color: "default",
|
|
3927
|
+
radius: "md",
|
|
3928
|
+
size: "md"
|
|
3929
|
+
},
|
|
3930
|
+
compoundVariants: [
|
|
3931
|
+
{
|
|
3932
|
+
variant: "flat",
|
|
3933
|
+
color: "default",
|
|
3934
|
+
class: {
|
|
3935
|
+
segment: ["bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3936
|
+
}
|
|
3937
|
+
},
|
|
3938
|
+
{
|
|
3939
|
+
variant: "flat",
|
|
3940
|
+
color: "primary",
|
|
3941
|
+
class: {
|
|
3942
|
+
segment: ["bg-primary-100", "data-[active=true]:bg-primary-200", "text-primary"],
|
|
3943
|
+
caret: ["bg-primary"],
|
|
3944
|
+
passwordChar: ["bg-primary"]
|
|
3945
|
+
}
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
variant: "flat",
|
|
3949
|
+
color: "secondary",
|
|
3950
|
+
class: {
|
|
3951
|
+
segment: ["bg-secondary-100", "data-[active=true]:bg-secondary-200", "text-secondary"],
|
|
3952
|
+
caret: ["bg-secondary"],
|
|
3953
|
+
passwordChar: ["bg-secondary"]
|
|
3954
|
+
}
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
variant: "flat",
|
|
3958
|
+
color: "success",
|
|
3959
|
+
class: {
|
|
3960
|
+
segment: ["bg-success-100", "data-[active=true]:bg-success-200", "text-success"],
|
|
3961
|
+
caret: ["bg-success"],
|
|
3962
|
+
passwordChar: ["bg-success"]
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
variant: "flat",
|
|
3967
|
+
color: "warning",
|
|
3968
|
+
class: {
|
|
3969
|
+
segment: ["bg-warning-100", "data-[active=true]:bg-warning-200", "text-warning"],
|
|
3970
|
+
caret: ["bg-warning"],
|
|
3971
|
+
passwordChar: ["bg-warning"]
|
|
3972
|
+
}
|
|
3973
|
+
},
|
|
3974
|
+
{
|
|
3975
|
+
variant: "flat",
|
|
3976
|
+
color: "danger",
|
|
3977
|
+
class: {
|
|
3978
|
+
segment: ["bg-danger-100", "data-[active=true]:bg-danger-200", "text-danger"],
|
|
3979
|
+
caret: ["bg-danger"],
|
|
3980
|
+
passwordChar: ["bg-danger"]
|
|
3981
|
+
}
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
variant: "faded",
|
|
3985
|
+
color: "default",
|
|
3986
|
+
class: {
|
|
3987
|
+
segment: ""
|
|
3988
|
+
}
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
variant: "faded",
|
|
3992
|
+
color: "primary",
|
|
3993
|
+
class: {
|
|
3994
|
+
segment: [
|
|
3995
|
+
"bg-primary-100",
|
|
3996
|
+
"text-primary",
|
|
3997
|
+
"border-primary-200",
|
|
3998
|
+
"data-[active=true]:border-primary"
|
|
3999
|
+
],
|
|
4000
|
+
caret: ["bg-primary"],
|
|
4001
|
+
passwordChar: ["bg-primary"]
|
|
4002
|
+
}
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
variant: "faded",
|
|
4006
|
+
color: "secondary",
|
|
4007
|
+
class: {
|
|
4008
|
+
segment: [
|
|
4009
|
+
"bg-secondary-100",
|
|
4010
|
+
"text-secondary",
|
|
4011
|
+
"border-secondary-200",
|
|
4012
|
+
"data-[active=true]:border-secondary"
|
|
4013
|
+
],
|
|
4014
|
+
caret: ["bg-secondary"],
|
|
4015
|
+
passwordChar: ["bg-secondary"]
|
|
4016
|
+
}
|
|
4017
|
+
},
|
|
4018
|
+
{
|
|
4019
|
+
variant: "faded",
|
|
4020
|
+
color: "success",
|
|
4021
|
+
class: {
|
|
4022
|
+
segment: [
|
|
4023
|
+
"bg-success-100",
|
|
4024
|
+
"text-success",
|
|
4025
|
+
"border-success-200",
|
|
4026
|
+
"data-[active=true]:border-success"
|
|
4027
|
+
],
|
|
4028
|
+
caret: ["bg-success"],
|
|
4029
|
+
passwordChar: ["bg-success"]
|
|
4030
|
+
}
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
variant: "faded",
|
|
4034
|
+
color: "warning",
|
|
4035
|
+
class: {
|
|
4036
|
+
segment: [
|
|
4037
|
+
"bg-warning-100",
|
|
4038
|
+
"text-warning",
|
|
4039
|
+
"border-warning-200",
|
|
4040
|
+
"data-[active=true]:border-warning"
|
|
4041
|
+
],
|
|
4042
|
+
caret: ["bg-warning"],
|
|
4043
|
+
passwordChar: ["bg-warning"]
|
|
4044
|
+
}
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
variant: "faded",
|
|
4048
|
+
color: "danger",
|
|
4049
|
+
class: {
|
|
4050
|
+
segment: [
|
|
4051
|
+
"bg-danger-100",
|
|
4052
|
+
"text-danger",
|
|
4053
|
+
"border-danger-200",
|
|
4054
|
+
"data-[active=true]:border-danger"
|
|
4055
|
+
],
|
|
4056
|
+
caret: ["bg-danger"],
|
|
4057
|
+
passwordChar: ["bg-danger"]
|
|
4058
|
+
}
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
variant: "bordered",
|
|
4062
|
+
color: "default",
|
|
4063
|
+
class: {
|
|
4064
|
+
segment: "data-[has-value=true]:text-default-foreground data-[active=true]:border-foreground"
|
|
4065
|
+
}
|
|
4066
|
+
},
|
|
4067
|
+
{
|
|
4068
|
+
variant: "bordered",
|
|
4069
|
+
color: "primary",
|
|
4070
|
+
class: {
|
|
4071
|
+
segment: ["border-primary-200", "text-primary", "data-[active=true]:border-primary"],
|
|
4072
|
+
caret: ["bg-primary"],
|
|
4073
|
+
passwordChar: ["bg-primary"]
|
|
4074
|
+
}
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
variant: "bordered",
|
|
4078
|
+
color: "secondary",
|
|
4079
|
+
class: {
|
|
4080
|
+
segment: ["border-secondary-200", "text-secondary", "data-[active=true]:border-secondary"],
|
|
4081
|
+
caret: ["bg-secondary"],
|
|
4082
|
+
passwordChar: ["bg-secondary"]
|
|
4083
|
+
}
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
variant: "bordered",
|
|
4087
|
+
color: "success",
|
|
4088
|
+
class: {
|
|
4089
|
+
segment: ["border-success-200", "text-success", "data-[active=true]:border-success"],
|
|
4090
|
+
caret: ["bg-success"],
|
|
4091
|
+
passwordChar: ["bg-success"]
|
|
4092
|
+
}
|
|
4093
|
+
},
|
|
4094
|
+
{
|
|
4095
|
+
variant: "bordered",
|
|
4096
|
+
color: "warning",
|
|
4097
|
+
class: {
|
|
4098
|
+
segment: ["border-warning-200", "text-warning", "data-[active=true]:border-warning"],
|
|
4099
|
+
caret: ["bg-warning"],
|
|
4100
|
+
passwordChar: ["bg-warning"]
|
|
4101
|
+
}
|
|
4102
|
+
},
|
|
4103
|
+
{
|
|
4104
|
+
variant: "bordered",
|
|
4105
|
+
color: "danger",
|
|
4106
|
+
class: {
|
|
4107
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger"],
|
|
4108
|
+
caret: ["bg-danger"],
|
|
4109
|
+
passwordChar: ["bg-danger"]
|
|
4110
|
+
}
|
|
4111
|
+
},
|
|
4112
|
+
{
|
|
4113
|
+
variant: "underlined",
|
|
4114
|
+
color: "default",
|
|
4115
|
+
class: {
|
|
4116
|
+
segment: "data-[has-value=true]:text-default-foreground after:bg-foreground"
|
|
4117
|
+
}
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
variant: "underlined",
|
|
4121
|
+
color: "primary",
|
|
4122
|
+
class: {
|
|
4123
|
+
segment: ["border-primary-200", "text-primary", "after:bg-primary"],
|
|
4124
|
+
caret: ["bg-primary"],
|
|
4125
|
+
passwordChar: ["bg-primary"]
|
|
4126
|
+
}
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
variant: "underlined",
|
|
4130
|
+
color: "secondary",
|
|
4131
|
+
class: {
|
|
4132
|
+
segment: ["border-secondary-200", "text-secondary", "after:bg-secondary"],
|
|
4133
|
+
caret: ["bg-secondary"],
|
|
4134
|
+
passwordChar: ["bg-secondary"]
|
|
4135
|
+
}
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
variant: "underlined",
|
|
4139
|
+
color: "success",
|
|
4140
|
+
class: {
|
|
4141
|
+
segment: ["border-success-200", "text-success", "after:bg-success"],
|
|
4142
|
+
caret: ["bg-success"],
|
|
4143
|
+
passwordChar: ["bg-success"]
|
|
4144
|
+
}
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
variant: "underlined",
|
|
4148
|
+
color: "warning",
|
|
4149
|
+
class: {
|
|
4150
|
+
segment: ["border-warning-200", "text-warning", "after:bg-warning"],
|
|
4151
|
+
caret: ["bg-warning"],
|
|
4152
|
+
passwordChar: ["bg-warning"]
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
variant: "underlined",
|
|
4157
|
+
color: "danger",
|
|
4158
|
+
class: {
|
|
4159
|
+
segment: ["border-danger-200", "text-danger", "after:bg-danger"],
|
|
4160
|
+
caret: ["bg-danger"],
|
|
4161
|
+
passwordChar: ["bg-danger"]
|
|
4162
|
+
}
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
variant: "flat",
|
|
4166
|
+
isInvalid: true,
|
|
4167
|
+
class: {
|
|
4168
|
+
segment: ["bg-danger-50", "data-[active=true]:bg-danger-100", "text-danger"],
|
|
4169
|
+
caret: ["bg-danger"]
|
|
4170
|
+
}
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
variant: "faded",
|
|
4174
|
+
isInvalid: true,
|
|
4175
|
+
class: {
|
|
4176
|
+
segment: [
|
|
4177
|
+
"bg-danger-50",
|
|
4178
|
+
"text-danger",
|
|
4179
|
+
"border-danger-200",
|
|
4180
|
+
"data-[active=true]:border-danger-400"
|
|
4181
|
+
],
|
|
4182
|
+
caret: ["bg-danger"]
|
|
4183
|
+
}
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
variant: "bordered",
|
|
4187
|
+
isInvalid: true,
|
|
4188
|
+
class: {
|
|
4189
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger-400"],
|
|
4190
|
+
caret: ["bg-danger"]
|
|
4191
|
+
}
|
|
4192
|
+
},
|
|
4193
|
+
{
|
|
4194
|
+
variant: "underlined",
|
|
4195
|
+
isInvalid: true,
|
|
4196
|
+
class: {
|
|
4197
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:after:bg-danger-400"],
|
|
4198
|
+
caret: ["bg-danger"]
|
|
4199
|
+
}
|
|
4200
|
+
},
|
|
4201
|
+
{
|
|
4202
|
+
disableAnimation: false,
|
|
4203
|
+
variant: "underlined",
|
|
4204
|
+
class: {
|
|
4205
|
+
segment: "after:transition-width motion-reduce:after:transition-none"
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
]
|
|
4209
|
+
});
|
|
4210
|
+
|
|
3778
4211
|
// src/components/input.ts
|
|
3779
4212
|
var input = tv({
|
|
3780
4213
|
slots: {
|
|
@@ -3804,10 +4237,10 @@ var input = tv({
|
|
|
3804
4237
|
"p-2",
|
|
3805
4238
|
"-m-2",
|
|
3806
4239
|
"z-10",
|
|
3807
|
-
"hidden",
|
|
3808
4240
|
"absolute",
|
|
3809
4241
|
"end-3",
|
|
3810
4242
|
"start-auto",
|
|
4243
|
+
"pointer-events-none",
|
|
3811
4244
|
"appearance-none",
|
|
3812
4245
|
"outline-none",
|
|
3813
4246
|
"select-none",
|
|
@@ -3896,6 +4329,7 @@ var input = tv({
|
|
|
3896
4329
|
clearButton: "text-large"
|
|
3897
4330
|
},
|
|
3898
4331
|
lg: {
|
|
4332
|
+
label: "text-medium",
|
|
3899
4333
|
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
3900
4334
|
input: "text-medium",
|
|
3901
4335
|
clearButton: "text-large"
|
|
@@ -3929,7 +4363,7 @@ var input = tv({
|
|
|
3929
4363
|
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
3930
4364
|
},
|
|
3931
4365
|
inside: {
|
|
3932
|
-
label: "
|
|
4366
|
+
label: "cursor-text",
|
|
3933
4367
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3934
4368
|
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
3935
4369
|
}
|
|
@@ -3943,7 +4377,11 @@ var input = tv({
|
|
|
3943
4377
|
isClearable: {
|
|
3944
4378
|
true: {
|
|
3945
4379
|
input: "peer pe-6 input-search-cancel-button-none",
|
|
3946
|
-
clearButton:
|
|
4380
|
+
clearButton: [
|
|
4381
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
4382
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
4383
|
+
"peer-data-[filled=true]:scale-100"
|
|
4384
|
+
]
|
|
3947
4385
|
}
|
|
3948
4386
|
},
|
|
3949
4387
|
isDisabled: {
|
|
@@ -3969,7 +4407,8 @@ var input = tv({
|
|
|
3969
4407
|
label: "relative",
|
|
3970
4408
|
inputWrapper: "!h-auto",
|
|
3971
4409
|
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
3972
|
-
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
4410
|
+
input: "resize-none data-[hide-scroll=true]:scrollbar-hide",
|
|
4411
|
+
clearButton: "absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"
|
|
3973
4412
|
}
|
|
3974
4413
|
},
|
|
3975
4414
|
disableAnimation: {
|
|
@@ -3987,7 +4426,14 @@ var input = tv({
|
|
|
3987
4426
|
"motion-reduce:transition-none",
|
|
3988
4427
|
"transition-[transform,color,left,opacity]"
|
|
3989
4428
|
],
|
|
3990
|
-
clearButton: [
|
|
4429
|
+
clearButton: [
|
|
4430
|
+
"scale-90",
|
|
4431
|
+
"ease-out",
|
|
4432
|
+
"duration-150",
|
|
4433
|
+
"transition-[opacity,transform]",
|
|
4434
|
+
"motion-reduce:transition-none",
|
|
4435
|
+
"motion-reduce:scale-100"
|
|
4436
|
+
]
|
|
3991
4437
|
}
|
|
3992
4438
|
}
|
|
3993
4439
|
},
|
|
@@ -4316,7 +4762,6 @@ var input = tv({
|
|
|
4316
4762
|
labelPlacement: "inside",
|
|
4317
4763
|
size: "lg",
|
|
4318
4764
|
class: {
|
|
4319
|
-
label: "text-small",
|
|
4320
4765
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
4321
4766
|
}
|
|
4322
4767
|
},
|
|
@@ -4584,6 +5029,17 @@ var input = tv({
|
|
|
4584
5029
|
class: {
|
|
4585
5030
|
inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
|
|
4586
5031
|
}
|
|
5032
|
+
},
|
|
5033
|
+
{
|
|
5034
|
+
isClearable: true,
|
|
5035
|
+
isMultiline: true,
|
|
5036
|
+
class: {
|
|
5037
|
+
clearButton: [
|
|
5038
|
+
"group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block",
|
|
5039
|
+
"group-data-[has-value=true]:scale-100",
|
|
5040
|
+
"group-data-[has-value=true]:pointer-events-auto"
|
|
5041
|
+
]
|
|
5042
|
+
}
|
|
4587
5043
|
}
|
|
4588
5044
|
]
|
|
4589
5045
|
});
|
|
@@ -6705,7 +7161,7 @@ var select = tv({
|
|
|
6705
7161
|
labelPlacement: "inside",
|
|
6706
7162
|
size: "lg",
|
|
6707
7163
|
class: {
|
|
6708
|
-
label: "text-
|
|
7164
|
+
label: "text-medium",
|
|
6709
7165
|
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
6710
7166
|
}
|
|
6711
7167
|
},
|
|
@@ -6886,7 +7342,7 @@ var select = tv({
|
|
|
6886
7342
|
// src/components/menu.ts
|
|
6887
7343
|
var menu = tv({
|
|
6888
7344
|
slots: {
|
|
6889
|
-
base: "w-full relative flex flex-col gap-1 p-1",
|
|
7345
|
+
base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
|
|
6890
7346
|
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6891
7347
|
emptyContent: [
|
|
6892
7348
|
"h-10",
|
|
@@ -6994,6 +7450,16 @@ var menuItem = tv({
|
|
|
6994
7450
|
false: {
|
|
6995
7451
|
base: "data-[hover=true]:transition-colors"
|
|
6996
7452
|
}
|
|
7453
|
+
},
|
|
7454
|
+
hasTitleTextChild: {
|
|
7455
|
+
true: {
|
|
7456
|
+
title: "truncate"
|
|
7457
|
+
}
|
|
7458
|
+
},
|
|
7459
|
+
hasDescriptionTextChild: {
|
|
7460
|
+
true: {
|
|
7461
|
+
description: "truncate"
|
|
7462
|
+
}
|
|
6997
7463
|
}
|
|
6998
7464
|
},
|
|
6999
7465
|
defaultVariants: {
|
|
@@ -7989,7 +8455,7 @@ var breadcrumbs = tv({
|
|
|
7989
8455
|
var autocomplete = tv({
|
|
7990
8456
|
slots: {
|
|
7991
8457
|
base: "group inline-flex flex-column w-full",
|
|
7992
|
-
listboxWrapper: "scroll-py-6
|
|
8458
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
7993
8459
|
listbox: "",
|
|
7994
8460
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
7995
8461
|
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
@@ -8553,6 +9019,7 @@ var dateInput = tv({
|
|
|
8553
9019
|
clearButton: "text-large"
|
|
8554
9020
|
},
|
|
8555
9021
|
lg: {
|
|
9022
|
+
label: "text-medium",
|
|
8556
9023
|
input: "text-medium",
|
|
8557
9024
|
inputWrapper: "h-12 min-h-12 rounded-large"
|
|
8558
9025
|
}
|
|
@@ -8790,7 +9257,7 @@ var dateInput = tv({
|
|
|
8790
9257
|
labelPlacement: "inside",
|
|
8791
9258
|
size: "lg",
|
|
8792
9259
|
class: {
|
|
8793
|
-
label: "text-
|
|
9260
|
+
label: "text-medium",
|
|
8794
9261
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
8795
9262
|
}
|
|
8796
9263
|
},
|
|
@@ -9244,6 +9711,7 @@ var drawer = tv({
|
|
|
9244
9711
|
dropdownSection,
|
|
9245
9712
|
image,
|
|
9246
9713
|
input,
|
|
9714
|
+
inputOtp,
|
|
9247
9715
|
kbd,
|
|
9248
9716
|
link,
|
|
9249
9717
|
linkAnchorClasses,
|
|
@@ -15,8 +15,9 @@ import {
|
|
|
15
15
|
user
|
|
16
16
|
} from "../chunk-GMZHMFEU.mjs";
|
|
17
17
|
import {
|
|
18
|
+
circularProgress,
|
|
18
19
|
progress
|
|
19
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-6KWI4IHE.mjs";
|
|
20
21
|
import {
|
|
21
22
|
radio,
|
|
22
23
|
radioGroup
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
} from "../chunk-AN5I7NTT.mjs";
|
|
27
28
|
import {
|
|
28
29
|
select
|
|
29
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-IDHWVJY2.mjs";
|
|
30
31
|
import {
|
|
31
32
|
skeleton
|
|
32
33
|
} from "../chunk-OAHW4NON.mjs";
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
menu,
|
|
52
53
|
menuItem,
|
|
53
54
|
menuSection
|
|
54
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-PTCUE3XA.mjs";
|
|
55
56
|
import {
|
|
56
57
|
modal
|
|
57
58
|
} from "../chunk-N67DL6BW.mjs";
|
|
@@ -64,10 +65,6 @@ import {
|
|
|
64
65
|
import {
|
|
65
66
|
popover
|
|
66
67
|
} from "../chunk-HHK47K4W.mjs";
|
|
67
|
-
import {
|
|
68
|
-
datePicker,
|
|
69
|
-
dateRangePicker
|
|
70
|
-
} from "../chunk-QFGVVQRM.mjs";
|
|
71
68
|
import {
|
|
72
69
|
divider
|
|
73
70
|
} from "../chunk-AXSF7SRE.mjs";
|
|
@@ -86,9 +83,12 @@ import {
|
|
|
86
83
|
import {
|
|
87
84
|
image
|
|
88
85
|
} from "../chunk-TOQXZATI.mjs";
|
|
86
|
+
import {
|
|
87
|
+
inputOtp
|
|
88
|
+
} from "../chunk-6CPZ7K75.mjs";
|
|
89
89
|
import {
|
|
90
90
|
input
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-KOCBDPPO.mjs";
|
|
92
92
|
import {
|
|
93
93
|
button,
|
|
94
94
|
buttonGroup
|
|
@@ -106,15 +106,16 @@ import {
|
|
|
106
106
|
import {
|
|
107
107
|
chip
|
|
108
108
|
} from "../chunk-5VB7JNVX.mjs";
|
|
109
|
-
import {
|
|
110
|
-
circularProgress
|
|
111
|
-
} from "../chunk-AUN4SP2F.mjs";
|
|
112
109
|
import {
|
|
113
110
|
code
|
|
114
111
|
} from "../chunk-JE6SPRGQ.mjs";
|
|
115
112
|
import {
|
|
116
113
|
dateInput
|
|
117
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-TK7HBD3N.mjs";
|
|
115
|
+
import {
|
|
116
|
+
datePicker,
|
|
117
|
+
dateRangePicker
|
|
118
|
+
} from "../chunk-QFGVVQRM.mjs";
|
|
118
119
|
import {
|
|
119
120
|
accordion,
|
|
120
121
|
accordionItem
|
|
@@ -124,7 +125,7 @@ import {
|
|
|
124
125
|
} from "../chunk-MO6TCUI5.mjs";
|
|
125
126
|
import {
|
|
126
127
|
autocomplete
|
|
127
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-ZZ2VSLD6.mjs";
|
|
128
129
|
import {
|
|
129
130
|
avatar,
|
|
130
131
|
avatarGroup
|
|
@@ -136,9 +137,10 @@ import {
|
|
|
136
137
|
breadcrumbItem,
|
|
137
138
|
breadcrumbs
|
|
138
139
|
} from "../chunk-KZ2I3V4D.mjs";
|
|
139
|
-
import "../chunk-
|
|
140
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
140
141
|
import "../chunk-GQT3YUX3.mjs";
|
|
141
142
|
import "../chunk-46U6G7UJ.mjs";
|
|
143
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
142
144
|
import "../chunk-UWE6H66T.mjs";
|
|
143
145
|
import "../chunk-GIXI35A3.mjs";
|
|
144
146
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -173,6 +175,7 @@ export {
|
|
|
173
175
|
dropdownSection,
|
|
174
176
|
image,
|
|
175
177
|
input,
|
|
178
|
+
inputOtp,
|
|
176
179
|
kbd,
|
|
177
180
|
link,
|
|
178
181
|
linkAnchorClasses,
|