@nextui-org/theme 2.1.13 → 2.1.15
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-WHT6K6RC.mjs → chunk-5Y7664AG.mjs} +5 -5
- package/dist/{chunk-D4RGWEG7.mjs → chunk-CTFFC543.mjs} +44 -22
- package/dist/{chunk-DNEFEC5I.mjs → chunk-SMRPQEB3.mjs} +45 -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 +94 -54
- package/dist/components/index.mjs +3 -3
- package/dist/components/input.d.ts +14 -77
- package/dist/components/input.js +44 -22
- package/dist/components/input.mjs +1 -1
- package/dist/components/select.d.ts +7 -70
- package/dist/components/select.js +45 -27
- package/dist/components/select.mjs +1 -1
- package/dist/index.js +94 -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"],
|
|
@@ -4518,6 +4533,13 @@ var input = tv({
|
|
|
4518
4533
|
label: "group-data-[has-helper=true]:pt-4"
|
|
4519
4534
|
}
|
|
4520
4535
|
},
|
|
4536
|
+
{
|
|
4537
|
+
labelPlacement: "outside",
|
|
4538
|
+
isMultiline: true,
|
|
4539
|
+
class: {
|
|
4540
|
+
label: "pb-1.5"
|
|
4541
|
+
}
|
|
4542
|
+
},
|
|
4521
4543
|
{
|
|
4522
4544
|
labelPlacement: "inside",
|
|
4523
4545
|
isMultiline: true,
|
|
@@ -6064,22 +6086,14 @@ var select = tv({
|
|
|
6064
6086
|
"subpixel-antialiased",
|
|
6065
6087
|
"text-small",
|
|
6066
6088
|
"text-foreground-500",
|
|
6067
|
-
"pointer-events-none"
|
|
6068
|
-
"opacity-70",
|
|
6069
|
-
"group-data-[filled=true]:opacity-100"
|
|
6089
|
+
"pointer-events-none"
|
|
6070
6090
|
],
|
|
6071
6091
|
mainWrapper: "w-full flex flex-col",
|
|
6072
6092
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
6073
6093
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
6074
6094
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
6075
6095
|
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
|
-
],
|
|
6096
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-left"],
|
|
6083
6097
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6084
6098
|
listbox: "",
|
|
6085
6099
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6094,9 +6108,7 @@ var select = tv({
|
|
|
6094
6108
|
"bg-default-100",
|
|
6095
6109
|
"data-[hover=true]:bg-default-200",
|
|
6096
6110
|
"group-data-[focus=true]:bg-default-100"
|
|
6097
|
-
]
|
|
6098
|
-
label: "text-default-foreground",
|
|
6099
|
-
value: "placeholder:text-default-foreground"
|
|
6111
|
+
]
|
|
6100
6112
|
},
|
|
6101
6113
|
faded: {
|
|
6102
6114
|
trigger: [
|
|
@@ -6105,8 +6117,7 @@ var select = tv({
|
|
|
6105
6117
|
"border-default-200",
|
|
6106
6118
|
"data-[hover=true]:border-default-400"
|
|
6107
6119
|
],
|
|
6108
|
-
|
|
6109
|
-
value: "placeholder:text-default-foreground"
|
|
6120
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6110
6121
|
},
|
|
6111
6122
|
bordered: {
|
|
6112
6123
|
trigger: [
|
|
@@ -6116,9 +6127,7 @@ var select = tv({
|
|
|
6116
6127
|
"data-[open=true]:border-default-foreground",
|
|
6117
6128
|
"data-[focus=true]:border-default-foreground",
|
|
6118
6129
|
"data-[focus=true]:border-default-foreground"
|
|
6119
|
-
]
|
|
6120
|
-
label: "text-foreground",
|
|
6121
|
-
value: "placeholder:text-foreground"
|
|
6130
|
+
]
|
|
6122
6131
|
},
|
|
6123
6132
|
underlined: {
|
|
6124
6133
|
trigger: [
|
|
@@ -6144,14 +6153,11 @@ var select = tv({
|
|
|
6144
6153
|
"data-[open=true]:after:w-full",
|
|
6145
6154
|
"data-[focus=true]:after:w-full"
|
|
6146
6155
|
],
|
|
6147
|
-
label: "text-foreground"
|
|
6148
|
-
value: "placeholder:text-foreground"
|
|
6156
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6149
6157
|
}
|
|
6150
6158
|
},
|
|
6151
6159
|
color: {
|
|
6152
|
-
default: {
|
|
6153
|
-
label: "group-data-[filled=true]:opacity-80"
|
|
6154
|
-
},
|
|
6160
|
+
default: {},
|
|
6155
6161
|
primary: {},
|
|
6156
6162
|
secondary: {},
|
|
6157
6163
|
success: {},
|
|
@@ -6162,7 +6168,7 @@ var select = tv({
|
|
|
6162
6168
|
sm: {
|
|
6163
6169
|
label: "text-tiny",
|
|
6164
6170
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
6165
|
-
value: "text-
|
|
6171
|
+
value: "text-small"
|
|
6166
6172
|
},
|
|
6167
6173
|
md: {
|
|
6168
6174
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -6192,12 +6198,11 @@ var select = tv({
|
|
|
6192
6198
|
},
|
|
6193
6199
|
labelPlacement: {
|
|
6194
6200
|
outside: {
|
|
6195
|
-
base: "flex flex-col"
|
|
6196
|
-
label: "text-foreground pb-1.5"
|
|
6201
|
+
base: "flex flex-col"
|
|
6197
6202
|
},
|
|
6198
6203
|
"outside-left": {
|
|
6199
6204
|
base: "flex-row items-center flex-nowrap items-start",
|
|
6200
|
-
label: "relative text-foreground
|
|
6205
|
+
label: "relative pr-2 text-foreground"
|
|
6201
6206
|
},
|
|
6202
6207
|
inside: {
|
|
6203
6208
|
label: "text-tiny cursor-pointer",
|
|
@@ -6275,6 +6280,13 @@ var select = tv({
|
|
|
6275
6280
|
disableSelectorIconRotation: false
|
|
6276
6281
|
},
|
|
6277
6282
|
compoundVariants: [
|
|
6283
|
+
{
|
|
6284
|
+
variant: "flat",
|
|
6285
|
+
color: "default",
|
|
6286
|
+
class: {
|
|
6287
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
6288
|
+
}
|
|
6289
|
+
},
|
|
6278
6290
|
{
|
|
6279
6291
|
variant: "flat",
|
|
6280
6292
|
color: "primary",
|
|
@@ -6388,6 +6400,13 @@ var select = tv({
|
|
|
6388
6400
|
label: "text-danger"
|
|
6389
6401
|
}
|
|
6390
6402
|
},
|
|
6403
|
+
{
|
|
6404
|
+
variant: "underlined",
|
|
6405
|
+
color: "default",
|
|
6406
|
+
class: {
|
|
6407
|
+
value: "group-data-[has-value=true]:text-foreground"
|
|
6408
|
+
}
|
|
6409
|
+
},
|
|
6391
6410
|
{
|
|
6392
6411
|
variant: "underlined",
|
|
6393
6412
|
color: "primary",
|
|
@@ -6468,6 +6487,20 @@ var select = tv({
|
|
|
6468
6487
|
label: "text-danger"
|
|
6469
6488
|
}
|
|
6470
6489
|
},
|
|
6490
|
+
{
|
|
6491
|
+
labelPlacement: "inside",
|
|
6492
|
+
color: "default",
|
|
6493
|
+
class: {
|
|
6494
|
+
label: "group-data-[filled=true]:text-default-600"
|
|
6495
|
+
}
|
|
6496
|
+
},
|
|
6497
|
+
{
|
|
6498
|
+
labelPlacement: "outside",
|
|
6499
|
+
color: "default",
|
|
6500
|
+
class: {
|
|
6501
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
6502
|
+
}
|
|
6503
|
+
},
|
|
6471
6504
|
{
|
|
6472
6505
|
radius: "full",
|
|
6473
6506
|
size: ["sm"],
|
|
@@ -6722,6 +6755,13 @@ var select = tv({
|
|
|
6722
6755
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6723
6756
|
}
|
|
6724
6757
|
},
|
|
6758
|
+
{
|
|
6759
|
+
labelPlacement: "outside",
|
|
6760
|
+
isMultiline: true,
|
|
6761
|
+
class: {
|
|
6762
|
+
label: "pb-1.5"
|
|
6763
|
+
}
|
|
6764
|
+
},
|
|
6725
6765
|
{
|
|
6726
6766
|
labelPlacement: ["inside", "outside"],
|
|
6727
6767
|
class: {
|
|
@@ -7858,11 +7898,11 @@ var autocomplete = tv({
|
|
|
7858
7898
|
selectorButton: "text-medium"
|
|
7859
7899
|
},
|
|
7860
7900
|
variants: {
|
|
7861
|
-
|
|
7862
|
-
true: {
|
|
7901
|
+
isClearable: {
|
|
7902
|
+
true: {},
|
|
7903
|
+
false: {
|
|
7863
7904
|
clearButton: "hidden"
|
|
7864
|
-
}
|
|
7865
|
-
false: {}
|
|
7905
|
+
}
|
|
7866
7906
|
},
|
|
7867
7907
|
disableAnimation: {
|
|
7868
7908
|
true: {
|
|
@@ -7881,7 +7921,7 @@ var autocomplete = tv({
|
|
|
7881
7921
|
},
|
|
7882
7922
|
defaultVariants: {
|
|
7883
7923
|
disableAnimation: false,
|
|
7884
|
-
|
|
7924
|
+
isClearable: true,
|
|
7885
7925
|
disableSelectorIconRotation: false
|
|
7886
7926
|
}
|
|
7887
7927
|
});
|
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-SMRPQEB3.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-CTFFC543.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
|