@nextui-org/theme 2.1.13 → 2.1.14
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-D4RGWEG7.mjs → chunk-5IBYC42H.mjs} +37 -22
- package/dist/{chunk-WHT6K6RC.mjs → chunk-5Y7664AG.mjs} +5 -5
- package/dist/{chunk-DNEFEC5I.mjs → chunk-YUUGIQ6E.mjs} +38 -27
- package/dist/components/autocomplete.d.ts +21 -21
- package/dist/components/autocomplete.js +5 -5
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/index.js +80 -54
- package/dist/components/index.mjs +3 -3
- package/dist/components/input.d.ts +14 -77
- package/dist/components/input.js +37 -22
- package/dist/components/input.mjs +1 -1
- package/dist/components/select.d.ts +7 -70
- package/dist/components/select.js +38 -27
- package/dist/components/select.mjs +1 -1
- package/dist/index.js +80 -54
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3778,19 +3778,15 @@ var input = tv({
|
|
|
3778
3778
|
"subpixel-antialiased",
|
|
3779
3779
|
"block",
|
|
3780
3780
|
"text-small",
|
|
3781
|
-
"text-foreground-500"
|
|
3782
|
-
"opacity-70",
|
|
3783
|
-
"group-data-[filled-within=true]:opacity-100"
|
|
3781
|
+
"text-foreground-500"
|
|
3784
3782
|
],
|
|
3785
3783
|
mainWrapper: "h-full",
|
|
3786
3784
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3787
3785
|
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
3788
3786
|
input: [
|
|
3789
|
-
"opacity-70",
|
|
3790
3787
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
3791
3788
|
"data-[has-start-content=true]:ps-1.5",
|
|
3792
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
3793
|
-
"group-data-[has-value=true]:opacity-100"
|
|
3789
|
+
"data-[has-end-content=true]:pe-1.5"
|
|
3794
3790
|
],
|
|
3795
3791
|
clearButton: [
|
|
3796
3792
|
"p-2",
|
|
@@ -3820,9 +3816,7 @@ var input = tv({
|
|
|
3820
3816
|
"bg-default-100",
|
|
3821
3817
|
"data-[hover=true]:bg-default-200",
|
|
3822
3818
|
"group-data-[focus=true]:bg-default-100"
|
|
3823
|
-
]
|
|
3824
|
-
input: "placeholder:text-default-foreground",
|
|
3825
|
-
label: "text-default-foreground"
|
|
3819
|
+
]
|
|
3826
3820
|
},
|
|
3827
3821
|
faded: {
|
|
3828
3822
|
inputWrapper: [
|
|
@@ -3831,8 +3825,7 @@ var input = tv({
|
|
|
3831
3825
|
"border-default-200",
|
|
3832
3826
|
"data-[hover=true]:border-default-400"
|
|
3833
3827
|
],
|
|
3834
|
-
|
|
3835
|
-
label: "text-default-foreground"
|
|
3828
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
3836
3829
|
},
|
|
3837
3830
|
bordered: {
|
|
3838
3831
|
inputWrapper: [
|
|
@@ -3840,9 +3833,7 @@ var input = tv({
|
|
|
3840
3833
|
"border-default-200",
|
|
3841
3834
|
"data-[hover=true]:border-default-400",
|
|
3842
3835
|
"group-data-[focus=true]:border-default-foreground"
|
|
3843
|
-
]
|
|
3844
|
-
input: "placeholder:text-foreground",
|
|
3845
|
-
label: "text-foreground"
|
|
3836
|
+
]
|
|
3846
3837
|
},
|
|
3847
3838
|
underlined: {
|
|
3848
3839
|
inputWrapper: [
|
|
@@ -3868,14 +3859,11 @@ var input = tv({
|
|
|
3868
3859
|
"group-data-[focus=true]:after:w-full"
|
|
3869
3860
|
],
|
|
3870
3861
|
innerWrapper: "pb-1",
|
|
3871
|
-
|
|
3872
|
-
label: "text-foreground"
|
|
3862
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
3873
3863
|
}
|
|
3874
3864
|
},
|
|
3875
3865
|
color: {
|
|
3876
|
-
default: {
|
|
3877
|
-
label: "group-data-[filled-within=true]:opacity-80"
|
|
3878
|
-
},
|
|
3866
|
+
default: {},
|
|
3879
3867
|
primary: {},
|
|
3880
3868
|
secondary: {},
|
|
3881
3869
|
success: {},
|
|
@@ -3886,7 +3874,7 @@ var input = tv({
|
|
|
3886
3874
|
sm: {
|
|
3887
3875
|
label: "text-tiny",
|
|
3888
3876
|
inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
3889
|
-
input: "text-
|
|
3877
|
+
input: "text-small",
|
|
3890
3878
|
clearButton: "text-medium"
|
|
3891
3879
|
},
|
|
3892
3880
|
md: {
|
|
@@ -3919,7 +3907,6 @@ var input = tv({
|
|
|
3919
3907
|
},
|
|
3920
3908
|
labelPlacement: {
|
|
3921
3909
|
outside: {
|
|
3922
|
-
label: "text-foreground pb-1.5",
|
|
3923
3910
|
mainWrapper: "flex flex-col"
|
|
3924
3911
|
},
|
|
3925
3912
|
"outside-left": {
|
|
@@ -3955,7 +3942,7 @@ var input = tv({
|
|
|
3955
3942
|
isInvalid: {
|
|
3956
3943
|
true: {
|
|
3957
3944
|
label: "!text-danger",
|
|
3958
|
-
input: "placeholder:text-danger text-danger"
|
|
3945
|
+
input: "!placeholder:text-danger !text-danger"
|
|
3959
3946
|
}
|
|
3960
3947
|
},
|
|
3961
3948
|
isRequired: {
|
|
@@ -4000,6 +3987,13 @@ var input = tv({
|
|
|
4000
3987
|
disableAnimation: false
|
|
4001
3988
|
},
|
|
4002
3989
|
compoundVariants: [
|
|
3990
|
+
{
|
|
3991
|
+
variant: "flat",
|
|
3992
|
+
color: "default",
|
|
3993
|
+
class: {
|
|
3994
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
3995
|
+
}
|
|
3996
|
+
},
|
|
4003
3997
|
{
|
|
4004
3998
|
variant: "flat",
|
|
4005
3999
|
color: "primary",
|
|
@@ -4121,6 +4115,13 @@ var input = tv({
|
|
|
4121
4115
|
inputWrapper: "data-[hover=true]:border-danger focus-within:border-danger"
|
|
4122
4116
|
}
|
|
4123
4117
|
},
|
|
4118
|
+
{
|
|
4119
|
+
variant: "underlined",
|
|
4120
|
+
color: "default",
|
|
4121
|
+
class: {
|
|
4122
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
4123
|
+
}
|
|
4124
|
+
},
|
|
4124
4125
|
{
|
|
4125
4126
|
variant: "underlined",
|
|
4126
4127
|
color: "primary",
|
|
@@ -4201,6 +4202,20 @@ var input = tv({
|
|
|
4201
4202
|
label: "text-danger"
|
|
4202
4203
|
}
|
|
4203
4204
|
},
|
|
4205
|
+
{
|
|
4206
|
+
labelPlacement: "inside",
|
|
4207
|
+
color: "default",
|
|
4208
|
+
class: {
|
|
4209
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
4210
|
+
}
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
labelPlacement: "outside",
|
|
4214
|
+
color: "default",
|
|
4215
|
+
class: {
|
|
4216
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
4217
|
+
}
|
|
4218
|
+
},
|
|
4204
4219
|
{
|
|
4205
4220
|
radius: "full",
|
|
4206
4221
|
size: ["sm"],
|
|
@@ -6064,22 +6079,14 @@ var select = tv({
|
|
|
6064
6079
|
"subpixel-antialiased",
|
|
6065
6080
|
"text-small",
|
|
6066
6081
|
"text-foreground-500",
|
|
6067
|
-
"pointer-events-none"
|
|
6068
|
-
"opacity-70",
|
|
6069
|
-
"group-data-[filled=true]:opacity-100"
|
|
6082
|
+
"pointer-events-none"
|
|
6070
6083
|
],
|
|
6071
6084
|
mainWrapper: "w-full flex flex-col",
|
|
6072
6085
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
6073
6086
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
6074
6087
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
6075
6088
|
spinner: "absolute right-3",
|
|
6076
|
-
value: [
|
|
6077
|
-
"font-normal",
|
|
6078
|
-
"w-full",
|
|
6079
|
-
"text-left",
|
|
6080
|
-
"opacity-70",
|
|
6081
|
-
"group-data-[has-value=true]:opacity-100"
|
|
6082
|
-
],
|
|
6089
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-left"],
|
|
6083
6090
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6084
6091
|
listbox: "",
|
|
6085
6092
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6094,9 +6101,7 @@ var select = tv({
|
|
|
6094
6101
|
"bg-default-100",
|
|
6095
6102
|
"data-[hover=true]:bg-default-200",
|
|
6096
6103
|
"group-data-[focus=true]:bg-default-100"
|
|
6097
|
-
]
|
|
6098
|
-
label: "text-default-foreground",
|
|
6099
|
-
value: "placeholder:text-default-foreground"
|
|
6104
|
+
]
|
|
6100
6105
|
},
|
|
6101
6106
|
faded: {
|
|
6102
6107
|
trigger: [
|
|
@@ -6105,8 +6110,7 @@ var select = tv({
|
|
|
6105
6110
|
"border-default-200",
|
|
6106
6111
|
"data-[hover=true]:border-default-400"
|
|
6107
6112
|
],
|
|
6108
|
-
|
|
6109
|
-
value: "placeholder:text-default-foreground"
|
|
6113
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6110
6114
|
},
|
|
6111
6115
|
bordered: {
|
|
6112
6116
|
trigger: [
|
|
@@ -6116,9 +6120,7 @@ var select = tv({
|
|
|
6116
6120
|
"data-[open=true]:border-default-foreground",
|
|
6117
6121
|
"data-[focus=true]:border-default-foreground",
|
|
6118
6122
|
"data-[focus=true]:border-default-foreground"
|
|
6119
|
-
]
|
|
6120
|
-
label: "text-foreground",
|
|
6121
|
-
value: "placeholder:text-foreground"
|
|
6123
|
+
]
|
|
6122
6124
|
},
|
|
6123
6125
|
underlined: {
|
|
6124
6126
|
trigger: [
|
|
@@ -6144,14 +6146,11 @@ var select = tv({
|
|
|
6144
6146
|
"data-[open=true]:after:w-full",
|
|
6145
6147
|
"data-[focus=true]:after:w-full"
|
|
6146
6148
|
],
|
|
6147
|
-
label: "text-foreground"
|
|
6148
|
-
value: "placeholder:text-foreground"
|
|
6149
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6149
6150
|
}
|
|
6150
6151
|
},
|
|
6151
6152
|
color: {
|
|
6152
|
-
default: {
|
|
6153
|
-
label: "group-data-[filled=true]:opacity-80"
|
|
6154
|
-
},
|
|
6153
|
+
default: {},
|
|
6155
6154
|
primary: {},
|
|
6156
6155
|
secondary: {},
|
|
6157
6156
|
success: {},
|
|
@@ -6162,7 +6161,7 @@ var select = tv({
|
|
|
6162
6161
|
sm: {
|
|
6163
6162
|
label: "text-tiny",
|
|
6164
6163
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
6165
|
-
value: "text-
|
|
6164
|
+
value: "text-small"
|
|
6166
6165
|
},
|
|
6167
6166
|
md: {
|
|
6168
6167
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -6192,12 +6191,11 @@ var select = tv({
|
|
|
6192
6191
|
},
|
|
6193
6192
|
labelPlacement: {
|
|
6194
6193
|
outside: {
|
|
6195
|
-
base: "flex flex-col"
|
|
6196
|
-
label: "text-foreground pb-1.5"
|
|
6194
|
+
base: "flex flex-col"
|
|
6197
6195
|
},
|
|
6198
6196
|
"outside-left": {
|
|
6199
6197
|
base: "flex-row items-center flex-nowrap items-start",
|
|
6200
|
-
label: "relative text-foreground
|
|
6198
|
+
label: "relative pr-2 text-foreground"
|
|
6201
6199
|
},
|
|
6202
6200
|
inside: {
|
|
6203
6201
|
label: "text-tiny cursor-pointer",
|
|
@@ -6275,6 +6273,13 @@ var select = tv({
|
|
|
6275
6273
|
disableSelectorIconRotation: false
|
|
6276
6274
|
},
|
|
6277
6275
|
compoundVariants: [
|
|
6276
|
+
{
|
|
6277
|
+
variant: "flat",
|
|
6278
|
+
color: "default",
|
|
6279
|
+
class: {
|
|
6280
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6281
|
+
}
|
|
6282
|
+
},
|
|
6278
6283
|
{
|
|
6279
6284
|
variant: "flat",
|
|
6280
6285
|
color: "primary",
|
|
@@ -6388,6 +6393,13 @@ var select = tv({
|
|
|
6388
6393
|
label: "text-danger"
|
|
6389
6394
|
}
|
|
6390
6395
|
},
|
|
6396
|
+
{
|
|
6397
|
+
variant: "underlined",
|
|
6398
|
+
color: "default",
|
|
6399
|
+
class: {
|
|
6400
|
+
value: "group-data-[has-value=true]:text-foreground"
|
|
6401
|
+
}
|
|
6402
|
+
},
|
|
6391
6403
|
{
|
|
6392
6404
|
variant: "underlined",
|
|
6393
6405
|
color: "primary",
|
|
@@ -6468,6 +6480,20 @@ var select = tv({
|
|
|
6468
6480
|
label: "text-danger"
|
|
6469
6481
|
}
|
|
6470
6482
|
},
|
|
6483
|
+
{
|
|
6484
|
+
labelPlacement: "inside",
|
|
6485
|
+
color: "default",
|
|
6486
|
+
class: {
|
|
6487
|
+
label: "group-data-[filled=true]:text-default-600"
|
|
6488
|
+
}
|
|
6489
|
+
},
|
|
6490
|
+
{
|
|
6491
|
+
labelPlacement: "outside",
|
|
6492
|
+
color: "default",
|
|
6493
|
+
class: {
|
|
6494
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6495
|
+
}
|
|
6496
|
+
},
|
|
6471
6497
|
{
|
|
6472
6498
|
radius: "full",
|
|
6473
6499
|
size: ["sm"],
|
|
@@ -7858,11 +7884,11 @@ var autocomplete = tv({
|
|
|
7858
7884
|
selectorButton: "text-medium"
|
|
7859
7885
|
},
|
|
7860
7886
|
variants: {
|
|
7861
|
-
|
|
7862
|
-
true: {
|
|
7887
|
+
isClearable: {
|
|
7888
|
+
true: {},
|
|
7889
|
+
false: {
|
|
7863
7890
|
clearButton: "hidden"
|
|
7864
|
-
}
|
|
7865
|
-
false: {}
|
|
7891
|
+
}
|
|
7866
7892
|
},
|
|
7867
7893
|
disableAnimation: {
|
|
7868
7894
|
true: {
|
|
@@ -7881,7 +7907,7 @@ var autocomplete = tv({
|
|
|
7881
7907
|
},
|
|
7882
7908
|
defaultVariants: {
|
|
7883
7909
|
disableAnimation: false,
|
|
7884
|
-
|
|
7910
|
+
isClearable: true,
|
|
7885
7911
|
disableSelectorIconRotation: false
|
|
7886
7912
|
}
|
|
7887
7913
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-VGHVBXXT.mjs";
|
|
45
45
|
import {
|
|
46
46
|
select
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YUUGIQ6E.mjs";
|
|
48
48
|
import {
|
|
49
49
|
skeleton
|
|
50
50
|
} from "./chunk-JX6O4KJS.mjs";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
} from "./chunk-F36W5Y6O.mjs";
|
|
54
54
|
import {
|
|
55
55
|
input
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-5IBYC42H.mjs";
|
|
57
57
|
import {
|
|
58
58
|
kbd
|
|
59
59
|
} from "./chunk-J7FVLFSZ.mjs";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
} from "./chunk-I5E37FAL.mjs";
|
|
105
105
|
import {
|
|
106
106
|
autocomplete
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5Y7664AG.mjs";
|
|
108
108
|
import {
|
|
109
109
|
avatar,
|
|
110
110
|
avatarGroup
|