@nextui-org/theme 2.3.0-beta.15 → 2.3.0-beta.17
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-AHEUDQZM.mjs +18 -0
- package/dist/{chunk-4QKM3RKK.mjs → chunk-LCMN7HGG.mjs} +1 -1
- package/dist/components/accordion.mjs +2 -1
- package/dist/components/alert.mjs +2 -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/dropdown.mjs +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +436 -0
- package/dist/components/index.mjs +16 -11
- 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.mjs +2 -1
- package/dist/components/link.mjs +2 -1
- package/dist/components/listbox.mjs +2 -1
- package/dist/components/menu.mjs +2 -1
- 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/radio.mjs +2 -1
- package/dist/components/select.mjs +2 -1
- 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 +2 -0
- package/dist/index.js +456 -3
- package/dist/index.mjs +22 -14
- 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 +1 -1
- package/dist/{chunk-IV3K5WDK.mjs → chunk-CWYZ2GEH.mjs} +0 -0
- package/dist/{chunk-KEHIJEFK.mjs → chunk-MA4DKK64.mjs} +0 -0
- package/dist/{chunk-KVYVTKEN.mjs → chunk-XZMJGJQX.mjs} +3 -3
package/dist/components/tabs.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tabs
|
|
3
3
|
} from "../chunk-KTTXIYK2.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toggle
|
|
3
3
|
} from "../chunk-FJGKW3ZE.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/components/user.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
user
|
|
3
3
|
} from "../chunk-GMZHMFEU.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { PaginationSlots, PaginationVariantProps, pagination } from './component
|
|
|
16
16
|
export { ToggleSlots, ToggleVariantProps, toggle } from './components/toggle.js';
|
|
17
17
|
export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './components/accordion.js';
|
|
18
18
|
export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress } from './components/progress.js';
|
|
19
|
+
export { InputOtpReturnType, InputOtpSlots, InputOtpVariantProps, inputOtp } from './components/input-otp.js';
|
|
19
20
|
export { InputSlots, InputVariantProps, input } from './components/input.js';
|
|
20
21
|
export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './components/dropdown.js';
|
|
21
22
|
export { ImageSlots, ImageVariantProps, image } from './components/image.js';
|
|
@@ -42,6 +43,7 @@ export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFo
|
|
|
42
43
|
export { SlotsToClasses } from './utils/types.js';
|
|
43
44
|
export { colorVariants } from './utils/variants.js';
|
|
44
45
|
export { COMMON_UNITS, twMergeConfig } from './utils/tw-merge-config.js';
|
|
46
|
+
export { mergeClasses } from './utils/merge-classes.js';
|
|
45
47
|
export { cn } from './utils/cn.js';
|
|
46
48
|
export { colors } from './colors/index.js';
|
|
47
49
|
export { nextui } from './plugin.js';
|
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");
|
|
@@ -3818,6 +3835,440 @@ var circularProgress = tv({
|
|
|
3818
3835
|
]
|
|
3819
3836
|
});
|
|
3820
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
|
+
|
|
3821
4272
|
// src/components/input.ts
|
|
3822
4273
|
var input = tv({
|
|
3823
4274
|
slots: {
|
|
@@ -9583,7 +10034,7 @@ var colors = {
|
|
|
9583
10034
|
var import_color = __toESM(require("color"));
|
|
9584
10035
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
9585
10036
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
9586
|
-
var
|
|
10037
|
+
var import_shared_utils2 = require("@nextui-org/shared-utils");
|
|
9587
10038
|
|
|
9588
10039
|
// src/animations/index.ts
|
|
9589
10040
|
var animations = {
|
|
@@ -9826,7 +10277,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
9826
10277
|
"color-scheme": scheme
|
|
9827
10278
|
} : {};
|
|
9828
10279
|
const flatColors = flattenThemeObject(colors2);
|
|
9829
|
-
const flatLayout = layout ? (0,
|
|
10280
|
+
const flatLayout = layout ? (0, import_shared_utils2.mapKeys)(layout, (_, key) => (0, import_shared_utils2.kebabCase)(key)) : {};
|
|
9830
10281
|
resolved.variants.push({
|
|
9831
10282
|
name: themeName,
|
|
9832
10283
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -9984,7 +10435,7 @@ var nextui = (config = {}) => {
|
|
|
9984
10435
|
...darkLayout
|
|
9985
10436
|
}
|
|
9986
10437
|
};
|
|
9987
|
-
let otherThemes = (0,
|
|
10438
|
+
let otherThemes = (0, import_shared_utils2.omit)(themeObject, ["light", "dark"]) || {};
|
|
9988
10439
|
Object.entries(otherThemes).forEach(([themeName, { extend, colors: colors2, layout }]) => {
|
|
9989
10440
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
9990
10441
|
if (colors2 && typeof colors2 === "object") {
|
|
@@ -10057,6 +10508,7 @@ var nextui = (config = {}) => {
|
|
|
10057
10508
|
groupDataFocusVisibleClasses,
|
|
10058
10509
|
image,
|
|
10059
10510
|
input,
|
|
10511
|
+
inputOtp,
|
|
10060
10512
|
kbd,
|
|
10061
10513
|
lightLayout,
|
|
10062
10514
|
link,
|
|
@@ -10067,6 +10519,7 @@ var nextui = (config = {}) => {
|
|
|
10067
10519
|
menu,
|
|
10068
10520
|
menuItem,
|
|
10069
10521
|
menuSection,
|
|
10522
|
+
mergeClasses,
|
|
10070
10523
|
modal,
|
|
10071
10524
|
navbar,
|
|
10072
10525
|
nextui,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-MA4DKK64.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spinner
|
|
4
|
+
} from "./chunk-DBPAK7QN.mjs";
|
|
2
5
|
import {
|
|
3
6
|
table
|
|
4
7
|
} from "./chunk-2ODFPLXN.mjs";
|
|
@@ -11,6 +14,10 @@ import {
|
|
|
11
14
|
import {
|
|
12
15
|
user
|
|
13
16
|
} from "./chunk-GMZHMFEU.mjs";
|
|
17
|
+
import {
|
|
18
|
+
circularProgress,
|
|
19
|
+
progress
|
|
20
|
+
} from "./chunk-6KWI4IHE.mjs";
|
|
14
21
|
import {
|
|
15
22
|
radio,
|
|
16
23
|
radioGroup
|
|
@@ -34,8 +41,8 @@ import {
|
|
|
34
41
|
spacer
|
|
35
42
|
} from "./chunk-AKXXHKTO.mjs";
|
|
36
43
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk-
|
|
44
|
+
kbd
|
|
45
|
+
} from "./chunk-VX7HAPUO.mjs";
|
|
39
46
|
import {
|
|
40
47
|
link,
|
|
41
48
|
linkAnchorClasses
|
|
@@ -58,10 +65,6 @@ import {
|
|
|
58
65
|
import {
|
|
59
66
|
popover
|
|
60
67
|
} from "./chunk-HHK47K4W.mjs";
|
|
61
|
-
import {
|
|
62
|
-
circularProgress,
|
|
63
|
-
progress
|
|
64
|
-
} from "./chunk-6KWI4IHE.mjs";
|
|
65
68
|
import {
|
|
66
69
|
divider
|
|
67
70
|
} from "./chunk-AXSF7SRE.mjs";
|
|
@@ -80,12 +83,12 @@ import {
|
|
|
80
83
|
import {
|
|
81
84
|
image
|
|
82
85
|
} from "./chunk-TOQXZATI.mjs";
|
|
86
|
+
import {
|
|
87
|
+
inputOtp
|
|
88
|
+
} from "./chunk-6CPZ7K75.mjs";
|
|
83
89
|
import {
|
|
84
90
|
input
|
|
85
91
|
} from "./chunk-MXL6JCUG.mjs";
|
|
86
|
-
import {
|
|
87
|
-
kbd
|
|
88
|
-
} from "./chunk-VX7HAPUO.mjs";
|
|
89
92
|
import {
|
|
90
93
|
button,
|
|
91
94
|
buttonGroup
|
|
@@ -134,13 +137,16 @@ import {
|
|
|
134
137
|
breadcrumbItem,
|
|
135
138
|
breadcrumbs
|
|
136
139
|
} from "./chunk-KZ2I3V4D.mjs";
|
|
137
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-CWYZ2GEH.mjs";
|
|
138
141
|
import {
|
|
139
142
|
colorVariants
|
|
140
143
|
} from "./chunk-GQT3YUX3.mjs";
|
|
141
144
|
import {
|
|
142
145
|
cn
|
|
143
146
|
} from "./chunk-46U6G7UJ.mjs";
|
|
147
|
+
import {
|
|
148
|
+
mergeClasses
|
|
149
|
+
} from "./chunk-AHEUDQZM.mjs";
|
|
144
150
|
import {
|
|
145
151
|
tv
|
|
146
152
|
} from "./chunk-UWE6H66T.mjs";
|
|
@@ -150,12 +156,12 @@ import {
|
|
|
150
156
|
} from "./chunk-GIXI35A3.mjs";
|
|
151
157
|
import {
|
|
152
158
|
nextui
|
|
153
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-LCMN7HGG.mjs";
|
|
154
160
|
import "./chunk-D2XMP2NC.mjs";
|
|
155
|
-
import "./chunk-
|
|
161
|
+
import "./chunk-XZMJGJQX.mjs";
|
|
162
|
+
import "./chunk-WN6AL2BX.mjs";
|
|
156
163
|
import "./chunk-W5UU3F46.mjs";
|
|
157
164
|
import "./chunk-4Z22WXZX.mjs";
|
|
158
|
-
import "./chunk-WN6AL2BX.mjs";
|
|
159
165
|
import {
|
|
160
166
|
absoluteFullClasses,
|
|
161
167
|
baseStyles,
|
|
@@ -237,6 +243,7 @@ export {
|
|
|
237
243
|
groupDataFocusVisibleClasses,
|
|
238
244
|
image,
|
|
239
245
|
input,
|
|
246
|
+
inputOtp,
|
|
240
247
|
kbd,
|
|
241
248
|
lightLayout,
|
|
242
249
|
link,
|
|
@@ -247,6 +254,7 @@ export {
|
|
|
247
254
|
menu,
|
|
248
255
|
menuItem,
|
|
249
256
|
menuSection,
|
|
257
|
+
mergeClasses,
|
|
250
258
|
modal,
|
|
251
259
|
navbar,
|
|
252
260
|
nextui,
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCMN7HGG.mjs";
|
|
4
4
|
import "./chunk-D2XMP2NC.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-XZMJGJQX.mjs";
|
|
6
|
+
import "./chunk-WN6AL2BX.mjs";
|
|
6
7
|
import "./chunk-W5UU3F46.mjs";
|
|
7
8
|
import "./chunk-4Z22WXZX.mjs";
|
|
8
|
-
import "./chunk-WN6AL2BX.mjs";
|
|
9
9
|
import "./chunk-XHQUSKIE.mjs";
|
|
10
10
|
import "./chunk-WQEDQHKX.mjs";
|
|
11
11
|
import "./chunk-QZTWGJ72.mjs";
|
package/dist/utilities/index.mjs
CHANGED