@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
|
@@ -25,11 +25,11 @@ var autocomplete = tv({
|
|
|
25
25
|
selectorButton: "text-medium"
|
|
26
26
|
},
|
|
27
27
|
variants: {
|
|
28
|
-
|
|
29
|
-
true: {
|
|
28
|
+
isClearable: {
|
|
29
|
+
true: {},
|
|
30
|
+
false: {
|
|
30
31
|
clearButton: "hidden"
|
|
31
|
-
}
|
|
32
|
-
false: {}
|
|
32
|
+
}
|
|
33
33
|
},
|
|
34
34
|
disableAnimation: {
|
|
35
35
|
true: {
|
|
@@ -48,7 +48,7 @@ var autocomplete = tv({
|
|
|
48
48
|
},
|
|
49
49
|
defaultVariants: {
|
|
50
50
|
disableAnimation: false,
|
|
51
|
-
|
|
51
|
+
isClearable: true,
|
|
52
52
|
disableSelectorIconRotation: false
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -18,19 +18,15 @@ var input = tv({
|
|
|
18
18
|
"subpixel-antialiased",
|
|
19
19
|
"block",
|
|
20
20
|
"text-small",
|
|
21
|
-
"text-foreground-500"
|
|
22
|
-
"opacity-70",
|
|
23
|
-
"group-data-[filled-within=true]:opacity-100"
|
|
21
|
+
"text-foreground-500"
|
|
24
22
|
],
|
|
25
23
|
mainWrapper: "h-full",
|
|
26
24
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
27
25
|
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
28
26
|
input: [
|
|
29
|
-
"opacity-70",
|
|
30
27
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
31
28
|
"data-[has-start-content=true]:ps-1.5",
|
|
32
|
-
"data-[has-end-content=true]:pe-1.5"
|
|
33
|
-
"group-data-[has-value=true]:opacity-100"
|
|
29
|
+
"data-[has-end-content=true]:pe-1.5"
|
|
34
30
|
],
|
|
35
31
|
clearButton: [
|
|
36
32
|
"p-2",
|
|
@@ -60,9 +56,7 @@ var input = tv({
|
|
|
60
56
|
"bg-default-100",
|
|
61
57
|
"data-[hover=true]:bg-default-200",
|
|
62
58
|
"group-data-[focus=true]:bg-default-100"
|
|
63
|
-
]
|
|
64
|
-
input: "placeholder:text-default-foreground",
|
|
65
|
-
label: "text-default-foreground"
|
|
59
|
+
]
|
|
66
60
|
},
|
|
67
61
|
faded: {
|
|
68
62
|
inputWrapper: [
|
|
@@ -71,8 +65,7 @@ var input = tv({
|
|
|
71
65
|
"border-default-200",
|
|
72
66
|
"data-[hover=true]:border-default-400"
|
|
73
67
|
],
|
|
74
|
-
|
|
75
|
-
label: "text-default-foreground"
|
|
68
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
76
69
|
},
|
|
77
70
|
bordered: {
|
|
78
71
|
inputWrapper: [
|
|
@@ -80,9 +73,7 @@ var input = tv({
|
|
|
80
73
|
"border-default-200",
|
|
81
74
|
"data-[hover=true]:border-default-400",
|
|
82
75
|
"group-data-[focus=true]:border-default-foreground"
|
|
83
|
-
]
|
|
84
|
-
input: "placeholder:text-foreground",
|
|
85
|
-
label: "text-foreground"
|
|
76
|
+
]
|
|
86
77
|
},
|
|
87
78
|
underlined: {
|
|
88
79
|
inputWrapper: [
|
|
@@ -108,14 +99,11 @@ var input = tv({
|
|
|
108
99
|
"group-data-[focus=true]:after:w-full"
|
|
109
100
|
],
|
|
110
101
|
innerWrapper: "pb-1",
|
|
111
|
-
|
|
112
|
-
label: "text-foreground"
|
|
102
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
113
103
|
}
|
|
114
104
|
},
|
|
115
105
|
color: {
|
|
116
|
-
default: {
|
|
117
|
-
label: "group-data-[filled-within=true]:opacity-80"
|
|
118
|
-
},
|
|
106
|
+
default: {},
|
|
119
107
|
primary: {},
|
|
120
108
|
secondary: {},
|
|
121
109
|
success: {},
|
|
@@ -126,7 +114,7 @@ var input = tv({
|
|
|
126
114
|
sm: {
|
|
127
115
|
label: "text-tiny",
|
|
128
116
|
inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
129
|
-
input: "text-
|
|
117
|
+
input: "text-small",
|
|
130
118
|
clearButton: "text-medium"
|
|
131
119
|
},
|
|
132
120
|
md: {
|
|
@@ -159,7 +147,6 @@ var input = tv({
|
|
|
159
147
|
},
|
|
160
148
|
labelPlacement: {
|
|
161
149
|
outside: {
|
|
162
|
-
label: "text-foreground pb-1.5",
|
|
163
150
|
mainWrapper: "flex flex-col"
|
|
164
151
|
},
|
|
165
152
|
"outside-left": {
|
|
@@ -195,7 +182,7 @@ var input = tv({
|
|
|
195
182
|
isInvalid: {
|
|
196
183
|
true: {
|
|
197
184
|
label: "!text-danger",
|
|
198
|
-
input: "placeholder:text-danger text-danger"
|
|
185
|
+
input: "!placeholder:text-danger !text-danger"
|
|
199
186
|
}
|
|
200
187
|
},
|
|
201
188
|
isRequired: {
|
|
@@ -240,6 +227,13 @@ var input = tv({
|
|
|
240
227
|
disableAnimation: false
|
|
241
228
|
},
|
|
242
229
|
compoundVariants: [
|
|
230
|
+
{
|
|
231
|
+
variant: "flat",
|
|
232
|
+
color: "default",
|
|
233
|
+
class: {
|
|
234
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
243
237
|
{
|
|
244
238
|
variant: "flat",
|
|
245
239
|
color: "primary",
|
|
@@ -361,6 +355,13 @@ var input = tv({
|
|
|
361
355
|
inputWrapper: "data-[hover=true]:border-danger focus-within:border-danger"
|
|
362
356
|
}
|
|
363
357
|
},
|
|
358
|
+
{
|
|
359
|
+
variant: "underlined",
|
|
360
|
+
color: "default",
|
|
361
|
+
class: {
|
|
362
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
364
365
|
{
|
|
365
366
|
variant: "underlined",
|
|
366
367
|
color: "primary",
|
|
@@ -441,6 +442,20 @@ var input = tv({
|
|
|
441
442
|
label: "text-danger"
|
|
442
443
|
}
|
|
443
444
|
},
|
|
445
|
+
{
|
|
446
|
+
labelPlacement: "inside",
|
|
447
|
+
color: "default",
|
|
448
|
+
class: {
|
|
449
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
labelPlacement: "outside",
|
|
454
|
+
color: "default",
|
|
455
|
+
class: {
|
|
456
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
444
459
|
{
|
|
445
460
|
radius: "full",
|
|
446
461
|
size: ["sm"],
|
|
@@ -758,6 +773,13 @@ var input = tv({
|
|
|
758
773
|
label: "group-data-[has-helper=true]:pt-4"
|
|
759
774
|
}
|
|
760
775
|
},
|
|
776
|
+
{
|
|
777
|
+
labelPlacement: "outside",
|
|
778
|
+
isMultiline: true,
|
|
779
|
+
class: {
|
|
780
|
+
label: "pb-1.5"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
761
783
|
{
|
|
762
784
|
labelPlacement: "inside",
|
|
763
785
|
isMultiline: true,
|
|
@@ -17,22 +17,14 @@ var select = tv({
|
|
|
17
17
|
"subpixel-antialiased",
|
|
18
18
|
"text-small",
|
|
19
19
|
"text-foreground-500",
|
|
20
|
-
"pointer-events-none"
|
|
21
|
-
"opacity-70",
|
|
22
|
-
"group-data-[filled=true]:opacity-100"
|
|
20
|
+
"pointer-events-none"
|
|
23
21
|
],
|
|
24
22
|
mainWrapper: "w-full flex flex-col",
|
|
25
23
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
26
24
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
27
25
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
28
26
|
spinner: "absolute right-3",
|
|
29
|
-
value: [
|
|
30
|
-
"font-normal",
|
|
31
|
-
"w-full",
|
|
32
|
-
"text-left",
|
|
33
|
-
"opacity-70",
|
|
34
|
-
"group-data-[has-value=true]:opacity-100"
|
|
35
|
-
],
|
|
27
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-left"],
|
|
36
28
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
37
29
|
listbox: "",
|
|
38
30
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -47,9 +39,7 @@ var select = tv({
|
|
|
47
39
|
"bg-default-100",
|
|
48
40
|
"data-[hover=true]:bg-default-200",
|
|
49
41
|
"group-data-[focus=true]:bg-default-100"
|
|
50
|
-
]
|
|
51
|
-
label: "text-default-foreground",
|
|
52
|
-
value: "placeholder:text-default-foreground"
|
|
42
|
+
]
|
|
53
43
|
},
|
|
54
44
|
faded: {
|
|
55
45
|
trigger: [
|
|
@@ -58,8 +48,7 @@ var select = tv({
|
|
|
58
48
|
"border-default-200",
|
|
59
49
|
"data-[hover=true]:border-default-400"
|
|
60
50
|
],
|
|
61
|
-
|
|
62
|
-
value: "placeholder:text-default-foreground"
|
|
51
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
63
52
|
},
|
|
64
53
|
bordered: {
|
|
65
54
|
trigger: [
|
|
@@ -69,9 +58,7 @@ var select = tv({
|
|
|
69
58
|
"data-[open=true]:border-default-foreground",
|
|
70
59
|
"data-[focus=true]:border-default-foreground",
|
|
71
60
|
"data-[focus=true]:border-default-foreground"
|
|
72
|
-
]
|
|
73
|
-
label: "text-foreground",
|
|
74
|
-
value: "placeholder:text-foreground"
|
|
61
|
+
]
|
|
75
62
|
},
|
|
76
63
|
underlined: {
|
|
77
64
|
trigger: [
|
|
@@ -97,14 +84,11 @@ var select = tv({
|
|
|
97
84
|
"data-[open=true]:after:w-full",
|
|
98
85
|
"data-[focus=true]:after:w-full"
|
|
99
86
|
],
|
|
100
|
-
label: "text-foreground"
|
|
101
|
-
value: "placeholder:text-foreground"
|
|
87
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
102
88
|
}
|
|
103
89
|
},
|
|
104
90
|
color: {
|
|
105
|
-
default: {
|
|
106
|
-
label: "group-data-[filled=true]:opacity-80"
|
|
107
|
-
},
|
|
91
|
+
default: {},
|
|
108
92
|
primary: {},
|
|
109
93
|
secondary: {},
|
|
110
94
|
success: {},
|
|
@@ -115,7 +99,7 @@ var select = tv({
|
|
|
115
99
|
sm: {
|
|
116
100
|
label: "text-tiny",
|
|
117
101
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
118
|
-
value: "text-
|
|
102
|
+
value: "text-small"
|
|
119
103
|
},
|
|
120
104
|
md: {
|
|
121
105
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -145,12 +129,11 @@ var select = tv({
|
|
|
145
129
|
},
|
|
146
130
|
labelPlacement: {
|
|
147
131
|
outside: {
|
|
148
|
-
base: "flex flex-col"
|
|
149
|
-
label: "text-foreground pb-1.5"
|
|
132
|
+
base: "flex flex-col"
|
|
150
133
|
},
|
|
151
134
|
"outside-left": {
|
|
152
135
|
base: "flex-row items-center flex-nowrap items-start",
|
|
153
|
-
label: "relative text-foreground
|
|
136
|
+
label: "relative pr-2 text-foreground"
|
|
154
137
|
},
|
|
155
138
|
inside: {
|
|
156
139
|
label: "text-tiny cursor-pointer",
|
|
@@ -228,6 +211,13 @@ var select = tv({
|
|
|
228
211
|
disableSelectorIconRotation: false
|
|
229
212
|
},
|
|
230
213
|
compoundVariants: [
|
|
214
|
+
{
|
|
215
|
+
variant: "flat",
|
|
216
|
+
color: "default",
|
|
217
|
+
class: {
|
|
218
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
231
221
|
{
|
|
232
222
|
variant: "flat",
|
|
233
223
|
color: "primary",
|
|
@@ -341,6 +331,13 @@ var select = tv({
|
|
|
341
331
|
label: "text-danger"
|
|
342
332
|
}
|
|
343
333
|
},
|
|
334
|
+
{
|
|
335
|
+
variant: "underlined",
|
|
336
|
+
color: "default",
|
|
337
|
+
class: {
|
|
338
|
+
value: "group-data-[has-value=true]:text-foreground"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
344
341
|
{
|
|
345
342
|
variant: "underlined",
|
|
346
343
|
color: "primary",
|
|
@@ -421,6 +418,20 @@ var select = tv({
|
|
|
421
418
|
label: "text-danger"
|
|
422
419
|
}
|
|
423
420
|
},
|
|
421
|
+
{
|
|
422
|
+
labelPlacement: "inside",
|
|
423
|
+
color: "default",
|
|
424
|
+
class: {
|
|
425
|
+
label: "group-data-[filled=true]:text-default-600"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
labelPlacement: "outside",
|
|
430
|
+
color: "default",
|
|
431
|
+
class: {
|
|
432
|
+
label: "group-data-[filled=true]:text-foreground"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
424
435
|
{
|
|
425
436
|
radius: "full",
|
|
426
437
|
size: ["sm"],
|
|
@@ -675,6 +686,13 @@ var select = tv({
|
|
|
675
686
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
676
687
|
}
|
|
677
688
|
},
|
|
689
|
+
{
|
|
690
|
+
labelPlacement: "outside",
|
|
691
|
+
isMultiline: true,
|
|
692
|
+
class: {
|
|
693
|
+
label: "pb-1.5"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
678
696
|
{
|
|
679
697
|
labelPlacement: ["inside", "outside"],
|
|
680
698
|
class: {
|
|
@@ -3,11 +3,11 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
4
|
|
|
5
5
|
declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
6
|
-
|
|
7
|
-
true: {
|
|
6
|
+
isClearable: {
|
|
7
|
+
true: {};
|
|
8
|
+
false: {
|
|
8
9
|
clearButton: string;
|
|
9
10
|
};
|
|
10
|
-
false: {};
|
|
11
11
|
};
|
|
12
12
|
disableAnimation: {
|
|
13
13
|
true: {
|
|
@@ -32,11 +32,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
32
32
|
clearButton: string[];
|
|
33
33
|
selectorButton: string;
|
|
34
34
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
35
|
-
|
|
36
|
-
true: {
|
|
35
|
+
isClearable: {
|
|
36
|
+
true: {};
|
|
37
|
+
false: {
|
|
37
38
|
clearButton: string;
|
|
38
39
|
};
|
|
39
|
-
false: {};
|
|
40
40
|
};
|
|
41
41
|
disableAnimation: {
|
|
42
42
|
true: {
|
|
@@ -53,11 +53,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
}, {
|
|
56
|
-
|
|
57
|
-
true: {
|
|
56
|
+
isClearable: {
|
|
57
|
+
true: {};
|
|
58
|
+
false: {
|
|
58
59
|
clearButton: string;
|
|
59
60
|
};
|
|
60
|
-
false: {};
|
|
61
61
|
};
|
|
62
62
|
disableAnimation: {
|
|
63
63
|
true: {
|
|
@@ -74,11 +74,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
}>, {
|
|
77
|
-
|
|
78
|
-
true: {
|
|
77
|
+
isClearable: {
|
|
78
|
+
true: {};
|
|
79
|
+
false: {
|
|
79
80
|
clearButton: string;
|
|
80
81
|
};
|
|
81
|
-
false: {};
|
|
82
82
|
};
|
|
83
83
|
disableAnimation: {
|
|
84
84
|
true: {
|
|
@@ -103,11 +103,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
103
103
|
clearButton: string[];
|
|
104
104
|
selectorButton: string;
|
|
105
105
|
}, tailwind_variants.TVReturnType<{
|
|
106
|
-
|
|
107
|
-
true: {
|
|
106
|
+
isClearable: {
|
|
107
|
+
true: {};
|
|
108
|
+
false: {
|
|
108
109
|
clearButton: string;
|
|
109
110
|
};
|
|
110
|
-
false: {};
|
|
111
111
|
};
|
|
112
112
|
disableAnimation: {
|
|
113
113
|
true: {
|
|
@@ -132,11 +132,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
132
132
|
clearButton: string[];
|
|
133
133
|
selectorButton: string;
|
|
134
134
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
135
|
-
|
|
136
|
-
true: {
|
|
135
|
+
isClearable: {
|
|
136
|
+
true: {};
|
|
137
|
+
false: {
|
|
137
138
|
clearButton: string;
|
|
138
139
|
};
|
|
139
|
-
false: {};
|
|
140
140
|
};
|
|
141
141
|
disableAnimation: {
|
|
142
142
|
true: {
|
|
@@ -153,11 +153,11 @@ declare const autocomplete: tailwind_variants.TVReturnType<{
|
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
155
|
}, {
|
|
156
|
-
|
|
157
|
-
true: {
|
|
156
|
+
isClearable: {
|
|
157
|
+
true: {};
|
|
158
|
+
false: {
|
|
158
159
|
clearButton: string;
|
|
159
160
|
};
|
|
160
|
-
false: {};
|
|
161
161
|
};
|
|
162
162
|
disableAnimation: {
|
|
163
163
|
true: {
|
|
@@ -132,11 +132,11 @@ var autocomplete = tv({
|
|
|
132
132
|
selectorButton: "text-medium"
|
|
133
133
|
},
|
|
134
134
|
variants: {
|
|
135
|
-
|
|
136
|
-
true: {
|
|
135
|
+
isClearable: {
|
|
136
|
+
true: {},
|
|
137
|
+
false: {
|
|
137
138
|
clearButton: "hidden"
|
|
138
|
-
}
|
|
139
|
-
false: {}
|
|
139
|
+
}
|
|
140
140
|
},
|
|
141
141
|
disableAnimation: {
|
|
142
142
|
true: {
|
|
@@ -155,7 +155,7 @@ var autocomplete = tv({
|
|
|
155
155
|
},
|
|
156
156
|
defaultVariants: {
|
|
157
157
|
disableAnimation: false,
|
|
158
|
-
|
|
158
|
+
isClearable: true,
|
|
159
159
|
disableSelectorIconRotation: false
|
|
160
160
|
}
|
|
161
161
|
});
|