@nextui-org/theme 2.3.0-beta.9 → 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/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __export(src_exports, {
|
|
|
69
69
|
groupDataFocusVisibleClasses: () => groupDataFocusVisibleClasses,
|
|
70
70
|
image: () => image,
|
|
71
71
|
input: () => input,
|
|
72
|
+
inputOtp: () => inputOtp,
|
|
72
73
|
kbd: () => kbd,
|
|
73
74
|
lightLayout: () => lightLayout,
|
|
74
75
|
link: () => link,
|
|
@@ -79,6 +80,7 @@ __export(src_exports, {
|
|
|
79
80
|
menu: () => menu,
|
|
80
81
|
menuItem: () => menuItem,
|
|
81
82
|
menuSection: () => menuSection,
|
|
83
|
+
mergeClasses: () => mergeClasses,
|
|
82
84
|
modal: () => modal,
|
|
83
85
|
navbar: () => navbar,
|
|
84
86
|
nextui: () => nextui,
|
|
@@ -276,6 +278,21 @@ var colorVariants = {
|
|
|
276
278
|
ghost
|
|
277
279
|
};
|
|
278
280
|
|
|
281
|
+
// src/utils/merge-classes.ts
|
|
282
|
+
var import_shared_utils = require("@nextui-org/shared-utils");
|
|
283
|
+
var mergeClasses = (itemClasses, itemPropsClasses) => {
|
|
284
|
+
if (!itemClasses && !itemPropsClasses)
|
|
285
|
+
return {};
|
|
286
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(itemClasses || {}), ...Object.keys(itemPropsClasses || {})]);
|
|
287
|
+
return Array.from(keys).reduce(
|
|
288
|
+
(acc, key) => ({
|
|
289
|
+
...acc,
|
|
290
|
+
[key]: (0, import_shared_utils.clsx)(itemClasses == null ? void 0 : itemClasses[key], itemPropsClasses == null ? void 0 : itemPropsClasses[key])
|
|
291
|
+
}),
|
|
292
|
+
{}
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
|
|
279
296
|
// src/utils/cn.ts
|
|
280
297
|
var import_clsx = __toESM(require("clsx"));
|
|
281
298
|
var import_tailwind_merge = require("tailwind-merge");
|
|
@@ -3737,8 +3754,6 @@ var progress = tv(
|
|
|
3737
3754
|
twMerge: true
|
|
3738
3755
|
}
|
|
3739
3756
|
);
|
|
3740
|
-
|
|
3741
|
-
// src/components/circular-progress.ts
|
|
3742
3757
|
var circularProgress = tv({
|
|
3743
3758
|
slots: {
|
|
3744
3759
|
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
@@ -3820,6 +3835,440 @@ var circularProgress = tv({
|
|
|
3820
3835
|
]
|
|
3821
3836
|
});
|
|
3822
3837
|
|
|
3838
|
+
// src/components/input-otp.ts
|
|
3839
|
+
var inputOtp = tv({
|
|
3840
|
+
slots: {
|
|
3841
|
+
base: ["relative", "flex", "flex-col", "w-fit"],
|
|
3842
|
+
wrapper: ["group", "flex items-center", "has-[:disabled]:opacity-60"],
|
|
3843
|
+
input: [
|
|
3844
|
+
"absolute",
|
|
3845
|
+
"inset-0",
|
|
3846
|
+
"border-none",
|
|
3847
|
+
"outline-none",
|
|
3848
|
+
"bg-transparent",
|
|
3849
|
+
"text-transparent"
|
|
3850
|
+
],
|
|
3851
|
+
segmentWrapper: ["inline-flex", "gap-x-1", "py-2"],
|
|
3852
|
+
segment: [
|
|
3853
|
+
"h-10",
|
|
3854
|
+
"w-10",
|
|
3855
|
+
"font-semibold",
|
|
3856
|
+
"flex",
|
|
3857
|
+
"justify-center",
|
|
3858
|
+
"items-center",
|
|
3859
|
+
"border-default-200",
|
|
3860
|
+
"data-[active=true]:border-default-400",
|
|
3861
|
+
"data-[active=true]:scale-110",
|
|
3862
|
+
"shadow-sm",
|
|
3863
|
+
"hover:bg-danger",
|
|
3864
|
+
...dataFocusVisibleClasses
|
|
3865
|
+
],
|
|
3866
|
+
passwordChar: ["w-1", "h-1", "bg-default-800", "rounded-full"],
|
|
3867
|
+
caret: [
|
|
3868
|
+
"animate-[appearance-in_1s_infinite]",
|
|
3869
|
+
"font-extralight",
|
|
3870
|
+
"h-full",
|
|
3871
|
+
"w-full",
|
|
3872
|
+
"flex",
|
|
3873
|
+
"justify-center",
|
|
3874
|
+
"items-center",
|
|
3875
|
+
"text-2xl",
|
|
3876
|
+
"h-[50%]",
|
|
3877
|
+
"w-px",
|
|
3878
|
+
"bg-foreground"
|
|
3879
|
+
],
|
|
3880
|
+
helperWrapper: ["text-tiny", "mt-0.5", "font-extralight", ""],
|
|
3881
|
+
errorMessage: ["text-tiny text-danger w-full"],
|
|
3882
|
+
description: ["text-tiny text-foreground-400"]
|
|
3883
|
+
},
|
|
3884
|
+
variants: {
|
|
3885
|
+
variant: {
|
|
3886
|
+
flat: {
|
|
3887
|
+
segment: ["border-transparent", "bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3888
|
+
},
|
|
3889
|
+
faded: {
|
|
3890
|
+
segment: ["bg-default-100", "border-medium"]
|
|
3891
|
+
},
|
|
3892
|
+
bordered: {
|
|
3893
|
+
segment: ["border-medium"]
|
|
3894
|
+
},
|
|
3895
|
+
underlined: {
|
|
3896
|
+
segment: [
|
|
3897
|
+
"shadow-none",
|
|
3898
|
+
"relative",
|
|
3899
|
+
"box-border",
|
|
3900
|
+
"!rounded-none",
|
|
3901
|
+
"border-b-medium",
|
|
3902
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
3903
|
+
"border-default-200",
|
|
3904
|
+
"after:content-['']",
|
|
3905
|
+
"after:w-0",
|
|
3906
|
+
"after:origin-center",
|
|
3907
|
+
"after:bg-default-foreground",
|
|
3908
|
+
"after:absolute",
|
|
3909
|
+
"after:left-1/2",
|
|
3910
|
+
"after:-translate-x-1/2",
|
|
3911
|
+
"after:-bottom-[2px]",
|
|
3912
|
+
"after:h-[2px]",
|
|
3913
|
+
"data-[active=true]:border-default-300",
|
|
3914
|
+
"data-[active=true]:after:w-full",
|
|
3915
|
+
"data-[active=true]:scale-100"
|
|
3916
|
+
]
|
|
3917
|
+
}
|
|
3918
|
+
},
|
|
3919
|
+
isDisabled: {
|
|
3920
|
+
true: {
|
|
3921
|
+
segment: "opacity-disabled pointer-events-none",
|
|
3922
|
+
input: "pointer-events-none"
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
isInvalid: {
|
|
3926
|
+
true: {}
|
|
3927
|
+
},
|
|
3928
|
+
isReadOnly: {
|
|
3929
|
+
true: {
|
|
3930
|
+
caret: "bg-transparent",
|
|
3931
|
+
segment: "transition-none data-[active=true]:scale-100"
|
|
3932
|
+
}
|
|
3933
|
+
},
|
|
3934
|
+
fullWidth: {
|
|
3935
|
+
true: {
|
|
3936
|
+
base: "w-full"
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
radius: {
|
|
3940
|
+
none: {
|
|
3941
|
+
segment: "rounded-none"
|
|
3942
|
+
},
|
|
3943
|
+
sm: {
|
|
3944
|
+
segment: "rounded-sm"
|
|
3945
|
+
},
|
|
3946
|
+
md: {
|
|
3947
|
+
segment: "rounded-md"
|
|
3948
|
+
},
|
|
3949
|
+
lg: {
|
|
3950
|
+
segment: "rounded-lg"
|
|
3951
|
+
},
|
|
3952
|
+
full: {
|
|
3953
|
+
segment: "rounded-full"
|
|
3954
|
+
}
|
|
3955
|
+
},
|
|
3956
|
+
color: {
|
|
3957
|
+
default: {},
|
|
3958
|
+
primary: {},
|
|
3959
|
+
secondary: {},
|
|
3960
|
+
success: {},
|
|
3961
|
+
warning: {},
|
|
3962
|
+
danger: {}
|
|
3963
|
+
},
|
|
3964
|
+
size: {
|
|
3965
|
+
sm: {
|
|
3966
|
+
segment: "h-8 min-h-8 w-8 min-w-8 text-small"
|
|
3967
|
+
},
|
|
3968
|
+
md: {
|
|
3969
|
+
segment: "h-10 min-h-10 w-10 min-w-10 text-small"
|
|
3970
|
+
},
|
|
3971
|
+
lg: {
|
|
3972
|
+
segment: "h-12 min-h-12 w-12 min-w-12 text-medium"
|
|
3973
|
+
}
|
|
3974
|
+
},
|
|
3975
|
+
disableAnimation: {
|
|
3976
|
+
true: {
|
|
3977
|
+
segment: "transition-none",
|
|
3978
|
+
caret: "animate-none"
|
|
3979
|
+
},
|
|
3980
|
+
false: {
|
|
3981
|
+
segment: "transition duration-150"
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
},
|
|
3985
|
+
defaultVariants: {
|
|
3986
|
+
variant: "flat",
|
|
3987
|
+
color: "default",
|
|
3988
|
+
radius: "md",
|
|
3989
|
+
size: "md"
|
|
3990
|
+
},
|
|
3991
|
+
compoundVariants: [
|
|
3992
|
+
{
|
|
3993
|
+
variant: "flat",
|
|
3994
|
+
color: "default",
|
|
3995
|
+
class: {
|
|
3996
|
+
segment: ["bg-default-100", "data-[active=true]:bg-default-200"]
|
|
3997
|
+
}
|
|
3998
|
+
},
|
|
3999
|
+
{
|
|
4000
|
+
variant: "flat",
|
|
4001
|
+
color: "primary",
|
|
4002
|
+
class: {
|
|
4003
|
+
segment: ["bg-primary-100", "data-[active=true]:bg-primary-200", "text-primary"],
|
|
4004
|
+
caret: ["bg-primary"],
|
|
4005
|
+
passwordChar: ["bg-primary"]
|
|
4006
|
+
}
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
variant: "flat",
|
|
4010
|
+
color: "secondary",
|
|
4011
|
+
class: {
|
|
4012
|
+
segment: ["bg-secondary-100", "data-[active=true]:bg-secondary-200", "text-secondary"],
|
|
4013
|
+
caret: ["bg-secondary"],
|
|
4014
|
+
passwordChar: ["bg-secondary"]
|
|
4015
|
+
}
|
|
4016
|
+
},
|
|
4017
|
+
{
|
|
4018
|
+
variant: "flat",
|
|
4019
|
+
color: "success",
|
|
4020
|
+
class: {
|
|
4021
|
+
segment: ["bg-success-100", "data-[active=true]:bg-success-200", "text-success"],
|
|
4022
|
+
caret: ["bg-success"],
|
|
4023
|
+
passwordChar: ["bg-success"]
|
|
4024
|
+
}
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
variant: "flat",
|
|
4028
|
+
color: "warning",
|
|
4029
|
+
class: {
|
|
4030
|
+
segment: ["bg-warning-100", "data-[active=true]:bg-warning-200", "text-warning"],
|
|
4031
|
+
caret: ["bg-warning"],
|
|
4032
|
+
passwordChar: ["bg-warning"]
|
|
4033
|
+
}
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
variant: "flat",
|
|
4037
|
+
color: "danger",
|
|
4038
|
+
class: {
|
|
4039
|
+
segment: ["bg-danger-100", "data-[active=true]:bg-danger-200", "text-danger"],
|
|
4040
|
+
caret: ["bg-danger"],
|
|
4041
|
+
passwordChar: ["bg-danger"]
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
variant: "faded",
|
|
4046
|
+
color: "default",
|
|
4047
|
+
class: {
|
|
4048
|
+
segment: ""
|
|
4049
|
+
}
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
variant: "faded",
|
|
4053
|
+
color: "primary",
|
|
4054
|
+
class: {
|
|
4055
|
+
segment: [
|
|
4056
|
+
"bg-primary-100",
|
|
4057
|
+
"text-primary",
|
|
4058
|
+
"border-primary-200",
|
|
4059
|
+
"data-[active=true]:border-primary"
|
|
4060
|
+
],
|
|
4061
|
+
caret: ["bg-primary"],
|
|
4062
|
+
passwordChar: ["bg-primary"]
|
|
4063
|
+
}
|
|
4064
|
+
},
|
|
4065
|
+
{
|
|
4066
|
+
variant: "faded",
|
|
4067
|
+
color: "secondary",
|
|
4068
|
+
class: {
|
|
4069
|
+
segment: [
|
|
4070
|
+
"bg-secondary-100",
|
|
4071
|
+
"text-secondary",
|
|
4072
|
+
"border-secondary-200",
|
|
4073
|
+
"data-[active=true]:border-secondary"
|
|
4074
|
+
],
|
|
4075
|
+
caret: ["bg-secondary"],
|
|
4076
|
+
passwordChar: ["bg-secondary"]
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
variant: "faded",
|
|
4081
|
+
color: "success",
|
|
4082
|
+
class: {
|
|
4083
|
+
segment: [
|
|
4084
|
+
"bg-success-100",
|
|
4085
|
+
"text-success",
|
|
4086
|
+
"border-success-200",
|
|
4087
|
+
"data-[active=true]:border-success"
|
|
4088
|
+
],
|
|
4089
|
+
caret: ["bg-success"],
|
|
4090
|
+
passwordChar: ["bg-success"]
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
variant: "faded",
|
|
4095
|
+
color: "warning",
|
|
4096
|
+
class: {
|
|
4097
|
+
segment: [
|
|
4098
|
+
"bg-warning-100",
|
|
4099
|
+
"text-warning",
|
|
4100
|
+
"border-warning-200",
|
|
4101
|
+
"data-[active=true]:border-warning"
|
|
4102
|
+
],
|
|
4103
|
+
caret: ["bg-warning"],
|
|
4104
|
+
passwordChar: ["bg-warning"]
|
|
4105
|
+
}
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
variant: "faded",
|
|
4109
|
+
color: "danger",
|
|
4110
|
+
class: {
|
|
4111
|
+
segment: [
|
|
4112
|
+
"bg-danger-100",
|
|
4113
|
+
"text-danger",
|
|
4114
|
+
"border-danger-200",
|
|
4115
|
+
"data-[active=true]:border-danger"
|
|
4116
|
+
],
|
|
4117
|
+
caret: ["bg-danger"],
|
|
4118
|
+
passwordChar: ["bg-danger"]
|
|
4119
|
+
}
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
variant: "bordered",
|
|
4123
|
+
color: "default",
|
|
4124
|
+
class: {
|
|
4125
|
+
segment: "data-[has-value=true]:text-default-foreground data-[active=true]:border-foreground"
|
|
4126
|
+
}
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
variant: "bordered",
|
|
4130
|
+
color: "primary",
|
|
4131
|
+
class: {
|
|
4132
|
+
segment: ["border-primary-200", "text-primary", "data-[active=true]:border-primary"],
|
|
4133
|
+
caret: ["bg-primary"],
|
|
4134
|
+
passwordChar: ["bg-primary"]
|
|
4135
|
+
}
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
variant: "bordered",
|
|
4139
|
+
color: "secondary",
|
|
4140
|
+
class: {
|
|
4141
|
+
segment: ["border-secondary-200", "text-secondary", "data-[active=true]:border-secondary"],
|
|
4142
|
+
caret: ["bg-secondary"],
|
|
4143
|
+
passwordChar: ["bg-secondary"]
|
|
4144
|
+
}
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
variant: "bordered",
|
|
4148
|
+
color: "success",
|
|
4149
|
+
class: {
|
|
4150
|
+
segment: ["border-success-200", "text-success", "data-[active=true]:border-success"],
|
|
4151
|
+
caret: ["bg-success"],
|
|
4152
|
+
passwordChar: ["bg-success"]
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
variant: "bordered",
|
|
4157
|
+
color: "warning",
|
|
4158
|
+
class: {
|
|
4159
|
+
segment: ["border-warning-200", "text-warning", "data-[active=true]:border-warning"],
|
|
4160
|
+
caret: ["bg-warning"],
|
|
4161
|
+
passwordChar: ["bg-warning"]
|
|
4162
|
+
}
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
variant: "bordered",
|
|
4166
|
+
color: "danger",
|
|
4167
|
+
class: {
|
|
4168
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger"],
|
|
4169
|
+
caret: ["bg-danger"],
|
|
4170
|
+
passwordChar: ["bg-danger"]
|
|
4171
|
+
}
|
|
4172
|
+
},
|
|
4173
|
+
{
|
|
4174
|
+
variant: "underlined",
|
|
4175
|
+
color: "default",
|
|
4176
|
+
class: {
|
|
4177
|
+
segment: "data-[has-value=true]:text-default-foreground after:bg-foreground"
|
|
4178
|
+
}
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
variant: "underlined",
|
|
4182
|
+
color: "primary",
|
|
4183
|
+
class: {
|
|
4184
|
+
segment: ["border-primary-200", "text-primary", "after:bg-primary"],
|
|
4185
|
+
caret: ["bg-primary"],
|
|
4186
|
+
passwordChar: ["bg-primary"]
|
|
4187
|
+
}
|
|
4188
|
+
},
|
|
4189
|
+
{
|
|
4190
|
+
variant: "underlined",
|
|
4191
|
+
color: "secondary",
|
|
4192
|
+
class: {
|
|
4193
|
+
segment: ["border-secondary-200", "text-secondary", "after:bg-secondary"],
|
|
4194
|
+
caret: ["bg-secondary"],
|
|
4195
|
+
passwordChar: ["bg-secondary"]
|
|
4196
|
+
}
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
variant: "underlined",
|
|
4200
|
+
color: "success",
|
|
4201
|
+
class: {
|
|
4202
|
+
segment: ["border-success-200", "text-success", "after:bg-success"],
|
|
4203
|
+
caret: ["bg-success"],
|
|
4204
|
+
passwordChar: ["bg-success"]
|
|
4205
|
+
}
|
|
4206
|
+
},
|
|
4207
|
+
{
|
|
4208
|
+
variant: "underlined",
|
|
4209
|
+
color: "warning",
|
|
4210
|
+
class: {
|
|
4211
|
+
segment: ["border-warning-200", "text-warning", "after:bg-warning"],
|
|
4212
|
+
caret: ["bg-warning"],
|
|
4213
|
+
passwordChar: ["bg-warning"]
|
|
4214
|
+
}
|
|
4215
|
+
},
|
|
4216
|
+
{
|
|
4217
|
+
variant: "underlined",
|
|
4218
|
+
color: "danger",
|
|
4219
|
+
class: {
|
|
4220
|
+
segment: ["border-danger-200", "text-danger", "after:bg-danger"],
|
|
4221
|
+
caret: ["bg-danger"],
|
|
4222
|
+
passwordChar: ["bg-danger"]
|
|
4223
|
+
}
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
variant: "flat",
|
|
4227
|
+
isInvalid: true,
|
|
4228
|
+
class: {
|
|
4229
|
+
segment: ["bg-danger-50", "data-[active=true]:bg-danger-100", "text-danger"],
|
|
4230
|
+
caret: ["bg-danger"]
|
|
4231
|
+
}
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
variant: "faded",
|
|
4235
|
+
isInvalid: true,
|
|
4236
|
+
class: {
|
|
4237
|
+
segment: [
|
|
4238
|
+
"bg-danger-50",
|
|
4239
|
+
"text-danger",
|
|
4240
|
+
"border-danger-200",
|
|
4241
|
+
"data-[active=true]:border-danger-400"
|
|
4242
|
+
],
|
|
4243
|
+
caret: ["bg-danger"]
|
|
4244
|
+
}
|
|
4245
|
+
},
|
|
4246
|
+
{
|
|
4247
|
+
variant: "bordered",
|
|
4248
|
+
isInvalid: true,
|
|
4249
|
+
class: {
|
|
4250
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:border-danger-400"],
|
|
4251
|
+
caret: ["bg-danger"]
|
|
4252
|
+
}
|
|
4253
|
+
},
|
|
4254
|
+
{
|
|
4255
|
+
variant: "underlined",
|
|
4256
|
+
isInvalid: true,
|
|
4257
|
+
class: {
|
|
4258
|
+
segment: ["border-danger-200", "text-danger", "data-[active=true]:after:bg-danger-400"],
|
|
4259
|
+
caret: ["bg-danger"]
|
|
4260
|
+
}
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4263
|
+
disableAnimation: false,
|
|
4264
|
+
variant: "underlined",
|
|
4265
|
+
class: {
|
|
4266
|
+
segment: "after:transition-width motion-reduce:after:transition-none"
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
]
|
|
4270
|
+
});
|
|
4271
|
+
|
|
3823
4272
|
// src/components/input.ts
|
|
3824
4273
|
var input = tv({
|
|
3825
4274
|
slots: {
|
|
@@ -3849,10 +4298,10 @@ var input = tv({
|
|
|
3849
4298
|
"p-2",
|
|
3850
4299
|
"-m-2",
|
|
3851
4300
|
"z-10",
|
|
3852
|
-
"hidden",
|
|
3853
4301
|
"absolute",
|
|
3854
4302
|
"end-3",
|
|
3855
4303
|
"start-auto",
|
|
4304
|
+
"pointer-events-none",
|
|
3856
4305
|
"appearance-none",
|
|
3857
4306
|
"outline-none",
|
|
3858
4307
|
"select-none",
|
|
@@ -3941,6 +4390,7 @@ var input = tv({
|
|
|
3941
4390
|
clearButton: "text-large"
|
|
3942
4391
|
},
|
|
3943
4392
|
lg: {
|
|
4393
|
+
label: "text-medium",
|
|
3944
4394
|
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
3945
4395
|
input: "text-medium",
|
|
3946
4396
|
clearButton: "text-large"
|
|
@@ -3974,7 +4424,7 @@ var input = tv({
|
|
|
3974
4424
|
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
3975
4425
|
},
|
|
3976
4426
|
inside: {
|
|
3977
|
-
label: "
|
|
4427
|
+
label: "cursor-text",
|
|
3978
4428
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3979
4429
|
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
3980
4430
|
}
|
|
@@ -3988,7 +4438,11 @@ var input = tv({
|
|
|
3988
4438
|
isClearable: {
|
|
3989
4439
|
true: {
|
|
3990
4440
|
input: "peer pe-6 input-search-cancel-button-none",
|
|
3991
|
-
clearButton:
|
|
4441
|
+
clearButton: [
|
|
4442
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
4443
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
4444
|
+
"peer-data-[filled=true]:scale-100"
|
|
4445
|
+
]
|
|
3992
4446
|
}
|
|
3993
4447
|
},
|
|
3994
4448
|
isDisabled: {
|
|
@@ -4014,7 +4468,8 @@ var input = tv({
|
|
|
4014
4468
|
label: "relative",
|
|
4015
4469
|
inputWrapper: "!h-auto",
|
|
4016
4470
|
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
4017
|
-
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
4471
|
+
input: "resize-none data-[hide-scroll=true]:scrollbar-hide",
|
|
4472
|
+
clearButton: "absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"
|
|
4018
4473
|
}
|
|
4019
4474
|
},
|
|
4020
4475
|
disableAnimation: {
|
|
@@ -4032,7 +4487,14 @@ var input = tv({
|
|
|
4032
4487
|
"motion-reduce:transition-none",
|
|
4033
4488
|
"transition-[transform,color,left,opacity]"
|
|
4034
4489
|
],
|
|
4035
|
-
clearButton: [
|
|
4490
|
+
clearButton: [
|
|
4491
|
+
"scale-90",
|
|
4492
|
+
"ease-out",
|
|
4493
|
+
"duration-150",
|
|
4494
|
+
"transition-[opacity,transform]",
|
|
4495
|
+
"motion-reduce:transition-none",
|
|
4496
|
+
"motion-reduce:scale-100"
|
|
4497
|
+
]
|
|
4036
4498
|
}
|
|
4037
4499
|
}
|
|
4038
4500
|
},
|
|
@@ -4361,7 +4823,6 @@ var input = tv({
|
|
|
4361
4823
|
labelPlacement: "inside",
|
|
4362
4824
|
size: "lg",
|
|
4363
4825
|
class: {
|
|
4364
|
-
label: "text-small",
|
|
4365
4826
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
4366
4827
|
}
|
|
4367
4828
|
},
|
|
@@ -4629,6 +5090,17 @@ var input = tv({
|
|
|
4629
5090
|
class: {
|
|
4630
5091
|
inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
|
|
4631
5092
|
}
|
|
5093
|
+
},
|
|
5094
|
+
{
|
|
5095
|
+
isClearable: true,
|
|
5096
|
+
isMultiline: true,
|
|
5097
|
+
class: {
|
|
5098
|
+
clearButton: [
|
|
5099
|
+
"group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block",
|
|
5100
|
+
"group-data-[has-value=true]:scale-100",
|
|
5101
|
+
"group-data-[has-value=true]:pointer-events-auto"
|
|
5102
|
+
]
|
|
5103
|
+
}
|
|
4632
5104
|
}
|
|
4633
5105
|
]
|
|
4634
5106
|
});
|
|
@@ -6750,7 +7222,7 @@ var select = tv({
|
|
|
6750
7222
|
labelPlacement: "inside",
|
|
6751
7223
|
size: "lg",
|
|
6752
7224
|
class: {
|
|
6753
|
-
label: "text-
|
|
7225
|
+
label: "text-medium",
|
|
6754
7226
|
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
6755
7227
|
}
|
|
6756
7228
|
},
|
|
@@ -6931,7 +7403,7 @@ var select = tv({
|
|
|
6931
7403
|
// src/components/menu.ts
|
|
6932
7404
|
var menu = tv({
|
|
6933
7405
|
slots: {
|
|
6934
|
-
base: "w-full relative flex flex-col gap-1 p-1",
|
|
7406
|
+
base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
|
|
6935
7407
|
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6936
7408
|
emptyContent: [
|
|
6937
7409
|
"h-10",
|
|
@@ -7039,6 +7511,16 @@ var menuItem = tv({
|
|
|
7039
7511
|
false: {
|
|
7040
7512
|
base: "data-[hover=true]:transition-colors"
|
|
7041
7513
|
}
|
|
7514
|
+
},
|
|
7515
|
+
hasTitleTextChild: {
|
|
7516
|
+
true: {
|
|
7517
|
+
title: "truncate"
|
|
7518
|
+
}
|
|
7519
|
+
},
|
|
7520
|
+
hasDescriptionTextChild: {
|
|
7521
|
+
true: {
|
|
7522
|
+
description: "truncate"
|
|
7523
|
+
}
|
|
7042
7524
|
}
|
|
7043
7525
|
},
|
|
7044
7526
|
defaultVariants: {
|
|
@@ -8034,7 +8516,7 @@ var breadcrumbs = tv({
|
|
|
8034
8516
|
var autocomplete = tv({
|
|
8035
8517
|
slots: {
|
|
8036
8518
|
base: "group inline-flex flex-column w-full",
|
|
8037
|
-
listboxWrapper: "scroll-py-6
|
|
8519
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
8038
8520
|
listbox: "",
|
|
8039
8521
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
8040
8522
|
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
@@ -8598,6 +9080,7 @@ var dateInput = tv({
|
|
|
8598
9080
|
clearButton: "text-large"
|
|
8599
9081
|
},
|
|
8600
9082
|
lg: {
|
|
9083
|
+
label: "text-medium",
|
|
8601
9084
|
input: "text-medium",
|
|
8602
9085
|
inputWrapper: "h-12 min-h-12 rounded-large"
|
|
8603
9086
|
}
|
|
@@ -8835,7 +9318,7 @@ var dateInput = tv({
|
|
|
8835
9318
|
labelPlacement: "inside",
|
|
8836
9319
|
size: "lg",
|
|
8837
9320
|
class: {
|
|
8838
|
-
label: "text-
|
|
9321
|
+
label: "text-medium",
|
|
8839
9322
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
8840
9323
|
}
|
|
8841
9324
|
},
|
|
@@ -9575,7 +10058,7 @@ var colors = {
|
|
|
9575
10058
|
var import_color = __toESM(require("color"));
|
|
9576
10059
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
9577
10060
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
9578
|
-
var
|
|
10061
|
+
var import_shared_utils2 = require("@nextui-org/shared-utils");
|
|
9579
10062
|
|
|
9580
10063
|
// src/animations/index.ts
|
|
9581
10064
|
var animations = {
|
|
@@ -9818,7 +10301,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9818
10301
|
"color-scheme": scheme
|
|
9819
10302
|
} : {};
|
|
9820
10303
|
const flatColors = flattenThemeObject(colors2);
|
|
9821
|
-
const flatLayout = layout ? (0,
|
|
10304
|
+
const flatLayout = layout ? (0, import_shared_utils2.mapKeys)(layout, (_, key) => (0, import_shared_utils2.kebabCase)(key)) : {};
|
|
9822
10305
|
resolved.variants.push({
|
|
9823
10306
|
name: themeName,
|
|
9824
10307
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -9976,7 +10459,7 @@ var nextui = (config = {}) => {
|
|
|
9976
10459
|
...darkLayout
|
|
9977
10460
|
}
|
|
9978
10461
|
};
|
|
9979
|
-
let otherThemes = (0,
|
|
10462
|
+
let otherThemes = (0, import_shared_utils2.omit)(themeObject, ["light", "dark"]) || {};
|
|
9980
10463
|
Object.entries(otherThemes).forEach(([themeName, { extend, colors: colors2, layout }]) => {
|
|
9981
10464
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
9982
10465
|
if (colors2 && typeof colors2 === "object") {
|
|
@@ -10049,6 +10532,7 @@ var nextui = (config = {}) => {
|
|
|
10049
10532
|
groupDataFocusVisibleClasses,
|
|
10050
10533
|
image,
|
|
10051
10534
|
input,
|
|
10535
|
+
inputOtp,
|
|
10052
10536
|
kbd,
|
|
10053
10537
|
lightLayout,
|
|
10054
10538
|
link,
|
|
@@ -10059,6 +10543,7 @@ var nextui = (config = {}) => {
|
|
|
10059
10543
|
menu,
|
|
10060
10544
|
menuItem,
|
|
10061
10545
|
menuSection,
|
|
10546
|
+
mergeClasses,
|
|
10062
10547
|
modal,
|
|
10063
10548
|
navbar,
|
|
10064
10549
|
nextui,
|