@nextui-org/theme 2.0.4 → 2.1.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-4JBYJQSP.mjs +36 -0
- package/dist/chunk-AYWH7THQ.mjs +606 -0
- package/dist/{chunk-U3S42JDF.mjs → chunk-FTF3KQBD.mjs} +2 -0
- package/dist/{chunk-Z6QW3RI5.mjs → chunk-PBGVMEDL.mjs} +70 -142
- package/dist/{chunk-PW52XQD7.mjs → chunk-RYOZQSNI.mjs} +4 -1
- package/dist/chunk-YJLQTC7L.mjs +0 -0
- package/dist/chunk-YKWIBFFV.mjs +460 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +1161 -142
- package/dist/components/index.mjs +40 -20
- package/dist/components/input.d.ts +28 -60
- package/dist/components/input.js +70 -142
- package/dist/components/input.mjs +1 -1
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +582 -0
- package/dist/components/listbox.mjs +17 -0
- package/dist/components/menu.d.ts +284 -0
- package/dist/components/menu.js +582 -0
- package/dist/components/menu.mjs +16 -0
- package/dist/components/popover.js +2 -0
- package/dist/components/popover.mjs +1 -1
- package/dist/components/scroll-shadow.d.ts +55 -0
- package/dist/components/scroll-shadow.js +150 -0
- package/dist/components/scroll-shadow.mjs +8 -0
- package/dist/components/select.d.ts +553 -0
- package/dist/components/select.js +726 -0
- package/dist/components/select.mjs +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1308 -286
- package/dist/index.mjs +43 -23
- package/dist/plugin.js +3 -0
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/package.json +8 -8
- package/dist/{chunk-PRWEADY4.mjs → chunk-RH7YHIQY.mjs} +0 -0
- package/dist/{chunk-DYIIRM5B.mjs → chunk-Y32IWEMZ.mjs} +3 -3
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-RH7YHIQY.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spinner
|
|
4
|
+
} from "../chunk-NAY2XKLY.mjs";
|
|
5
|
+
import {
|
|
6
|
+
table
|
|
7
|
+
} from "../chunk-ADNJ6GPZ.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tabs
|
|
10
|
+
} from "../chunk-RHIZZ5XX.mjs";
|
|
11
|
+
import {
|
|
12
|
+
toggle
|
|
13
|
+
} from "../chunk-TIMHSW45.mjs";
|
|
2
14
|
import {
|
|
3
15
|
user
|
|
4
16
|
} from "../chunk-O24TFHPZ.mjs";
|
|
17
|
+
import {
|
|
18
|
+
popover
|
|
19
|
+
} from "../chunk-FTF3KQBD.mjs";
|
|
20
|
+
import {
|
|
21
|
+
progress
|
|
22
|
+
} from "../chunk-LQGOKGQV.mjs";
|
|
5
23
|
import {
|
|
6
24
|
radio,
|
|
7
25
|
radioGroup
|
|
8
26
|
} from "../chunk-Y33ZY7KH.mjs";
|
|
27
|
+
import {
|
|
28
|
+
scrollShadow
|
|
29
|
+
} from "../chunk-4JBYJQSP.mjs";
|
|
30
|
+
import {
|
|
31
|
+
select
|
|
32
|
+
} from "../chunk-AYWH7THQ.mjs";
|
|
9
33
|
import {
|
|
10
34
|
skeleton
|
|
11
35
|
} from "../chunk-EUS2SEYI.mjs";
|
|
@@ -15,21 +39,9 @@ import {
|
|
|
15
39
|
import {
|
|
16
40
|
spacer
|
|
17
41
|
} from "../chunk-EC4F6RJF.mjs";
|
|
18
|
-
import {
|
|
19
|
-
spinner
|
|
20
|
-
} from "../chunk-NAY2XKLY.mjs";
|
|
21
|
-
import {
|
|
22
|
-
table
|
|
23
|
-
} from "../chunk-ADNJ6GPZ.mjs";
|
|
24
|
-
import {
|
|
25
|
-
tabs
|
|
26
|
-
} from "../chunk-RHIZZ5XX.mjs";
|
|
27
|
-
import {
|
|
28
|
-
toggle
|
|
29
|
-
} from "../chunk-TIMHSW45.mjs";
|
|
30
42
|
import {
|
|
31
43
|
input
|
|
32
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-PBGVMEDL.mjs";
|
|
33
45
|
import {
|
|
34
46
|
kbd
|
|
35
47
|
} from "../chunk-XY766PDD.mjs";
|
|
@@ -37,6 +49,12 @@ import {
|
|
|
37
49
|
link,
|
|
38
50
|
linkAnchorClasses
|
|
39
51
|
} from "../chunk-MOHT4OBR.mjs";
|
|
52
|
+
import "../chunk-YJLQTC7L.mjs";
|
|
53
|
+
import {
|
|
54
|
+
menu,
|
|
55
|
+
menuItem,
|
|
56
|
+
menuSection
|
|
57
|
+
} from "../chunk-YKWIBFFV.mjs";
|
|
40
58
|
import {
|
|
41
59
|
modal
|
|
42
60
|
} from "../chunk-4DKVPW5Z.mjs";
|
|
@@ -46,12 +64,6 @@ import {
|
|
|
46
64
|
import {
|
|
47
65
|
pagination
|
|
48
66
|
} from "../chunk-FZZINZOQ.mjs";
|
|
49
|
-
import {
|
|
50
|
-
popover
|
|
51
|
-
} from "../chunk-U3S42JDF.mjs";
|
|
52
|
-
import {
|
|
53
|
-
progress
|
|
54
|
-
} from "../chunk-LQGOKGQV.mjs";
|
|
55
67
|
import {
|
|
56
68
|
chip
|
|
57
69
|
} from "../chunk-PKP3F3VC.mjs";
|
|
@@ -129,6 +141,12 @@ export {
|
|
|
129
141
|
kbd,
|
|
130
142
|
link,
|
|
131
143
|
linkAnchorClasses,
|
|
144
|
+
menu as listbox,
|
|
145
|
+
menuItem as listboxItem,
|
|
146
|
+
menuSection as listboxSection,
|
|
147
|
+
menu,
|
|
148
|
+
menuItem,
|
|
149
|
+
menuSection,
|
|
132
150
|
modal,
|
|
133
151
|
navbar,
|
|
134
152
|
pagination,
|
|
@@ -136,6 +154,8 @@ export {
|
|
|
136
154
|
progress,
|
|
137
155
|
radio,
|
|
138
156
|
radioGroup,
|
|
157
|
+
scrollShadow,
|
|
158
|
+
select,
|
|
139
159
|
skeleton,
|
|
140
160
|
snippet,
|
|
141
161
|
spacer,
|
|
@@ -37,21 +37,11 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
37
37
|
};
|
|
38
38
|
color: {
|
|
39
39
|
default: {};
|
|
40
|
-
primary: {
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
success: {
|
|
47
|
-
label: string;
|
|
48
|
-
};
|
|
49
|
-
warning: {
|
|
50
|
-
label: string;
|
|
51
|
-
};
|
|
52
|
-
danger: {
|
|
53
|
-
label: string;
|
|
54
|
-
};
|
|
40
|
+
primary: {};
|
|
41
|
+
secondary: {};
|
|
42
|
+
success: {};
|
|
43
|
+
warning: {};
|
|
44
|
+
danger: {};
|
|
55
45
|
};
|
|
56
46
|
size: {
|
|
57
47
|
sm: {
|
|
@@ -128,6 +118,8 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
128
118
|
isDisabled: {
|
|
129
119
|
true: {
|
|
130
120
|
base: string;
|
|
121
|
+
inputWrapper: string;
|
|
122
|
+
label: string;
|
|
131
123
|
};
|
|
132
124
|
};
|
|
133
125
|
isInvalid: {
|
|
@@ -186,21 +178,11 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
186
178
|
};
|
|
187
179
|
color: {
|
|
188
180
|
default: {};
|
|
189
|
-
primary: {
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
};
|
|
195
|
-
success: {
|
|
196
|
-
label: string;
|
|
197
|
-
};
|
|
198
|
-
warning: {
|
|
199
|
-
label: string;
|
|
200
|
-
};
|
|
201
|
-
danger: {
|
|
202
|
-
label: string;
|
|
203
|
-
};
|
|
181
|
+
primary: {};
|
|
182
|
+
secondary: {};
|
|
183
|
+
success: {};
|
|
184
|
+
warning: {};
|
|
185
|
+
danger: {};
|
|
204
186
|
};
|
|
205
187
|
size: {
|
|
206
188
|
sm: {
|
|
@@ -277,6 +259,8 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
277
259
|
isDisabled: {
|
|
278
260
|
true: {
|
|
279
261
|
base: string;
|
|
262
|
+
inputWrapper: string;
|
|
263
|
+
label: string;
|
|
280
264
|
};
|
|
281
265
|
};
|
|
282
266
|
isInvalid: {
|
|
@@ -324,21 +308,11 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
324
308
|
};
|
|
325
309
|
color: {
|
|
326
310
|
default: {};
|
|
327
|
-
primary: {
|
|
328
|
-
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
};
|
|
333
|
-
success: {
|
|
334
|
-
label: string;
|
|
335
|
-
};
|
|
336
|
-
warning: {
|
|
337
|
-
label: string;
|
|
338
|
-
};
|
|
339
|
-
danger: {
|
|
340
|
-
label: string;
|
|
341
|
-
};
|
|
311
|
+
primary: {};
|
|
312
|
+
secondary: {};
|
|
313
|
+
success: {};
|
|
314
|
+
warning: {};
|
|
315
|
+
danger: {};
|
|
342
316
|
};
|
|
343
317
|
size: {
|
|
344
318
|
sm: {
|
|
@@ -415,6 +389,8 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
415
389
|
isDisabled: {
|
|
416
390
|
true: {
|
|
417
391
|
base: string;
|
|
392
|
+
inputWrapper: string;
|
|
393
|
+
label: string;
|
|
418
394
|
};
|
|
419
395
|
};
|
|
420
396
|
isInvalid: {
|
|
@@ -462,21 +438,11 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
462
438
|
};
|
|
463
439
|
color: {
|
|
464
440
|
default: {};
|
|
465
|
-
primary: {
|
|
466
|
-
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
};
|
|
471
|
-
success: {
|
|
472
|
-
label: string;
|
|
473
|
-
};
|
|
474
|
-
warning: {
|
|
475
|
-
label: string;
|
|
476
|
-
};
|
|
477
|
-
danger: {
|
|
478
|
-
label: string;
|
|
479
|
-
};
|
|
441
|
+
primary: {};
|
|
442
|
+
secondary: {};
|
|
443
|
+
success: {};
|
|
444
|
+
warning: {};
|
|
445
|
+
danger: {};
|
|
480
446
|
};
|
|
481
447
|
size: {
|
|
482
448
|
sm: {
|
|
@@ -553,6 +519,8 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
553
519
|
isDisabled: {
|
|
554
520
|
true: {
|
|
555
521
|
base: string;
|
|
522
|
+
inputWrapper: string;
|
|
523
|
+
label: string;
|
|
556
524
|
};
|
|
557
525
|
};
|
|
558
526
|
isInvalid: {
|
package/dist/components/input.js
CHANGED
|
@@ -138,8 +138,8 @@ var input = tv({
|
|
|
138
138
|
slots: {
|
|
139
139
|
base: "group flex flex-col",
|
|
140
140
|
label: "block text-small font-medium text-foreground-600",
|
|
141
|
-
mainWrapper: "",
|
|
142
|
-
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
141
|
+
mainWrapper: "h-full",
|
|
142
|
+
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
143
143
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
144
144
|
input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
|
|
145
145
|
clearButton: [
|
|
@@ -215,21 +215,11 @@ var input = tv({
|
|
|
215
215
|
},
|
|
216
216
|
color: {
|
|
217
217
|
default: {},
|
|
218
|
-
primary: {
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
success: {
|
|
225
|
-
label: "text-success-600 dark:text-success"
|
|
226
|
-
},
|
|
227
|
-
warning: {
|
|
228
|
-
label: "text-warning-600 dark:text-warning"
|
|
229
|
-
},
|
|
230
|
-
danger: {
|
|
231
|
-
label: "text-danger dark:text-danger-500"
|
|
232
|
-
}
|
|
218
|
+
primary: {},
|
|
219
|
+
secondary: {},
|
|
220
|
+
success: {},
|
|
221
|
+
warning: {},
|
|
222
|
+
danger: {}
|
|
233
223
|
},
|
|
234
224
|
size: {
|
|
235
225
|
sm: {
|
|
@@ -283,7 +273,7 @@ var input = tv({
|
|
|
283
273
|
errorMessage: "absolute left-1"
|
|
284
274
|
},
|
|
285
275
|
inside: {
|
|
286
|
-
label: "text-tiny",
|
|
276
|
+
label: "text-tiny cursor-text",
|
|
287
277
|
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
288
278
|
}
|
|
289
279
|
},
|
|
@@ -300,12 +290,14 @@ var input = tv({
|
|
|
300
290
|
isClearable: {
|
|
301
291
|
true: {
|
|
302
292
|
input: "peer pr-6",
|
|
303
|
-
clearButton: "peer-[
|
|
293
|
+
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
304
294
|
}
|
|
305
295
|
},
|
|
306
296
|
isDisabled: {
|
|
307
297
|
true: {
|
|
308
|
-
base: "opacity-disabled pointer-events-none"
|
|
298
|
+
base: "opacity-disabled pointer-events-none",
|
|
299
|
+
inputWrapper: "pointer-events-none",
|
|
300
|
+
label: "pointer-events-none"
|
|
309
301
|
}
|
|
310
302
|
},
|
|
311
303
|
isInvalid: {
|
|
@@ -337,7 +329,7 @@ var input = tv({
|
|
|
337
329
|
"origin-top-left",
|
|
338
330
|
"transition-all",
|
|
339
331
|
"!duration-200",
|
|
340
|
-
"!ease-
|
|
332
|
+
"!ease-out",
|
|
341
333
|
"motion-reduce:transition-none"
|
|
342
334
|
],
|
|
343
335
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
@@ -365,7 +357,8 @@ var input = tv({
|
|
|
365
357
|
"group-data-[focus=true]:bg-primary-50",
|
|
366
358
|
"placeholder:text-primary"
|
|
367
359
|
],
|
|
368
|
-
input: "placeholder:text-primary"
|
|
360
|
+
input: "placeholder:text-primary",
|
|
361
|
+
label: "text-primary"
|
|
369
362
|
}
|
|
370
363
|
},
|
|
371
364
|
{
|
|
@@ -379,7 +372,8 @@ var input = tv({
|
|
|
379
372
|
"group-data-[focus=true]:bg-secondary-50",
|
|
380
373
|
"placeholder:text-secondary"
|
|
381
374
|
],
|
|
382
|
-
input: "placeholder:text-secondary"
|
|
375
|
+
input: "placeholder:text-secondary",
|
|
376
|
+
label: "text-secondary"
|
|
383
377
|
}
|
|
384
378
|
},
|
|
385
379
|
{
|
|
@@ -395,7 +389,8 @@ var input = tv({
|
|
|
395
389
|
"data-[hover=true]:bg-success-100",
|
|
396
390
|
"group-data-[focus=true]:bg-success-50"
|
|
397
391
|
],
|
|
398
|
-
input: "placeholder:text-success-600 dark:placeholder:text-success"
|
|
392
|
+
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
393
|
+
label: "text-success-600 dark:text-success"
|
|
399
394
|
}
|
|
400
395
|
},
|
|
401
396
|
{
|
|
@@ -411,7 +406,8 @@ var input = tv({
|
|
|
411
406
|
"data-[hover=true]:bg-warning-100",
|
|
412
407
|
"group-data-[focus=true]:bg-warning-50"
|
|
413
408
|
],
|
|
414
|
-
input: "placeholder:text-warning-600 dark:placeholder:text-warning"
|
|
409
|
+
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
410
|
+
label: "text-warning-600 dark:text-warning"
|
|
415
411
|
}
|
|
416
412
|
},
|
|
417
413
|
{
|
|
@@ -427,7 +423,8 @@ var input = tv({
|
|
|
427
423
|
"data-[hover=true]:bg-danger-100",
|
|
428
424
|
"group-data-[focus=true]:bg-danger-50"
|
|
429
425
|
],
|
|
430
|
-
input: "placeholder:text-danger dark:placeholder:text-danger-500"
|
|
426
|
+
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
427
|
+
label: "text-danger dark:text-danger-500"
|
|
431
428
|
}
|
|
432
429
|
},
|
|
433
430
|
{
|
|
@@ -474,70 +471,80 @@ var input = tv({
|
|
|
474
471
|
variant: "underlined",
|
|
475
472
|
color: "primary",
|
|
476
473
|
class: {
|
|
477
|
-
inputWrapper: "after:bg-primary"
|
|
474
|
+
inputWrapper: "after:bg-primary",
|
|
475
|
+
label: "text-primary"
|
|
478
476
|
}
|
|
479
477
|
},
|
|
480
478
|
{
|
|
481
479
|
variant: "underlined",
|
|
482
480
|
color: "secondary",
|
|
483
481
|
class: {
|
|
484
|
-
inputWrapper: "after:bg-secondary"
|
|
482
|
+
inputWrapper: "after:bg-secondary",
|
|
483
|
+
label: "text-secondary"
|
|
485
484
|
}
|
|
486
485
|
},
|
|
487
486
|
{
|
|
488
487
|
variant: "underlined",
|
|
489
488
|
color: "success",
|
|
490
489
|
class: {
|
|
491
|
-
inputWrapper: "after:bg-success"
|
|
490
|
+
inputWrapper: "after:bg-success",
|
|
491
|
+
label: "text-success"
|
|
492
492
|
}
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
variant: "underlined",
|
|
496
496
|
color: "warning",
|
|
497
497
|
class: {
|
|
498
|
-
inputWrapper: "after:bg-warning"
|
|
498
|
+
inputWrapper: "after:bg-warning",
|
|
499
|
+
label: "text-warning"
|
|
499
500
|
}
|
|
500
501
|
},
|
|
501
502
|
{
|
|
502
503
|
variant: "underlined",
|
|
503
504
|
color: "danger",
|
|
504
505
|
class: {
|
|
505
|
-
inputWrapper: "after:bg-danger"
|
|
506
|
+
inputWrapper: "after:bg-danger",
|
|
507
|
+
label: "text-danger"
|
|
506
508
|
}
|
|
507
509
|
},
|
|
508
510
|
{
|
|
509
511
|
variant: "bordered",
|
|
510
512
|
color: "primary",
|
|
511
513
|
class: {
|
|
512
|
-
inputWrapper: "group-data-[focus=true]:border-primary"
|
|
514
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
515
|
+
label: "text-primary"
|
|
513
516
|
}
|
|
514
517
|
},
|
|
515
518
|
{
|
|
516
519
|
variant: "bordered",
|
|
517
520
|
color: "secondary",
|
|
518
521
|
class: {
|
|
519
|
-
inputWrapper: "group-data-[focus=true]:border-secondary"
|
|
522
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
523
|
+
label: "text-secondary"
|
|
520
524
|
}
|
|
521
525
|
},
|
|
522
526
|
{
|
|
523
527
|
variant: "bordered",
|
|
524
528
|
color: "success",
|
|
525
529
|
class: {
|
|
526
|
-
inputWrapper: "group-data-[focus=true]:border-success"
|
|
530
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
531
|
+
label: "text-success"
|
|
527
532
|
}
|
|
528
533
|
},
|
|
529
534
|
{
|
|
530
535
|
variant: "bordered",
|
|
531
536
|
color: "warning",
|
|
532
537
|
class: {
|
|
533
|
-
inputWrapper: "group-data-[focus=true]:border-warning"
|
|
538
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
539
|
+
label: "text-warning"
|
|
534
540
|
}
|
|
535
541
|
},
|
|
536
542
|
{
|
|
537
543
|
variant: "bordered",
|
|
538
544
|
color: "danger",
|
|
539
545
|
class: {
|
|
540
|
-
inputWrapper: "group-data-[focus=true]:border-danger"
|
|
546
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
547
|
+
label: "text-danger"
|
|
541
548
|
}
|
|
542
549
|
},
|
|
543
550
|
{
|
|
@@ -627,7 +634,7 @@ var input = tv({
|
|
|
627
634
|
size: "lg",
|
|
628
635
|
class: {
|
|
629
636
|
label: "text-small",
|
|
630
|
-
inputWrapper: "h-16 py-2.5 gap-
|
|
637
|
+
inputWrapper: "h-16 py-2.5 gap-0"
|
|
631
638
|
}
|
|
632
639
|
},
|
|
633
640
|
{
|
|
@@ -636,22 +643,11 @@ var input = tv({
|
|
|
636
643
|
class: {
|
|
637
644
|
label: [
|
|
638
645
|
"font-normal",
|
|
639
|
-
"
|
|
640
|
-
"group-
|
|
641
|
-
"group-[.is-filled]:font-medium",
|
|
642
|
-
"group-focus-within:pointer-events-auto",
|
|
643
|
-
"group-[.is-filled]:pointer-events-auto"
|
|
646
|
+
"group-data-[filled-within=true]:font-medium",
|
|
647
|
+
"group-data-[filled-within=true]:pointer-events-auto"
|
|
644
648
|
]
|
|
645
649
|
}
|
|
646
650
|
},
|
|
647
|
-
{
|
|
648
|
-
isLabelPlaceholder: true,
|
|
649
|
-
labelPlacement: "inside",
|
|
650
|
-
class: {
|
|
651
|
-
inputWrapper: "group",
|
|
652
|
-
label: ["group-focus-within:text-foreground-600", "group-[.is-filled]:text-foreground-600"]
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
651
|
{
|
|
656
652
|
isLabelPlaceholder: true,
|
|
657
653
|
labelPlacement: "outside",
|
|
@@ -659,85 +655,21 @@ var input = tv({
|
|
|
659
655
|
base: "group relative justify-end",
|
|
660
656
|
label: [
|
|
661
657
|
"pb-0",
|
|
662
|
-
"
|
|
663
|
-
"
|
|
664
|
-
"
|
|
665
|
-
"
|
|
658
|
+
"z-20",
|
|
659
|
+
"opacity-60",
|
|
660
|
+
"top-1/2",
|
|
661
|
+
"-translate-y-1/2",
|
|
662
|
+
"group-data-[filled-within=true]:left-0",
|
|
663
|
+
"group-data-[filled-within=true]:opacity-100"
|
|
666
664
|
]
|
|
667
665
|
}
|
|
668
666
|
},
|
|
669
|
-
{
|
|
670
|
-
isLabelPlaceholder: true,
|
|
671
|
-
color: "primary",
|
|
672
|
-
class: {
|
|
673
|
-
label: ["group-focus-within:text-primary", "group-[.is-filled]:text-primary"]
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
isLabelPlaceholder: true,
|
|
678
|
-
color: "secondary",
|
|
679
|
-
class: {
|
|
680
|
-
label: ["group-focus-within:text-secondary", "group-[.is-filled]:text-secondary"]
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
isLabelPlaceholder: true,
|
|
685
|
-
color: "success",
|
|
686
|
-
class: {
|
|
687
|
-
label: ["group-focus-within:text-success", "group-[.is-filled]:text-success"]
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
isLabelPlaceholder: true,
|
|
692
|
-
color: "warning",
|
|
693
|
-
class: {
|
|
694
|
-
label: ["group-focus-within:text-warning", "group-[.is-filled]:text-warning"]
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
isLabelPlaceholder: true,
|
|
699
|
-
color: "danger",
|
|
700
|
-
class: {
|
|
701
|
-
label: ["group-focus-within:text-danger", "group-[.is-filled]:text-danger"]
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
isLabelPlaceholder: true,
|
|
706
|
-
variant: "underlined",
|
|
707
|
-
class: {
|
|
708
|
-
label: ["group-focus-within:pt-0", "group-[.is-filled]:pt-0"]
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
isLabelPlaceholder: true,
|
|
713
|
-
variant: "underlined",
|
|
714
|
-
size: "sm",
|
|
715
|
-
class: {
|
|
716
|
-
label: ["pt-3"]
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
isLabelPlaceholder: true,
|
|
721
|
-
variant: "underlined",
|
|
722
|
-
size: "md",
|
|
723
|
-
class: {
|
|
724
|
-
label: ["pt-4"]
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
isLabelPlaceholder: true,
|
|
729
|
-
variant: "underlined",
|
|
730
|
-
size: "lg",
|
|
731
|
-
class: {
|
|
732
|
-
label: ["pt-5"]
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
667
|
{
|
|
736
668
|
isLabelPlaceholder: true,
|
|
737
669
|
labelPlacement: "inside",
|
|
738
670
|
size: ["sm", "md"],
|
|
739
671
|
class: {
|
|
740
|
-
label: ["text-small", "group-
|
|
672
|
+
label: ["text-small", "group-data-[filled-within=true]:text-tiny"],
|
|
741
673
|
input: "pt-4"
|
|
742
674
|
}
|
|
743
675
|
},
|
|
@@ -746,7 +678,9 @@ var input = tv({
|
|
|
746
678
|
labelPlacement: "inside",
|
|
747
679
|
size: "sm",
|
|
748
680
|
class: {
|
|
749
|
-
label: [
|
|
681
|
+
label: [
|
|
682
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"
|
|
683
|
+
],
|
|
750
684
|
input: "pt-4"
|
|
751
685
|
}
|
|
752
686
|
},
|
|
@@ -755,7 +689,9 @@ var input = tv({
|
|
|
755
689
|
labelPlacement: "inside",
|
|
756
690
|
size: "md",
|
|
757
691
|
class: {
|
|
758
|
-
label: [
|
|
692
|
+
label: [
|
|
693
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
694
|
+
],
|
|
759
695
|
input: "pt-4"
|
|
760
696
|
}
|
|
761
697
|
},
|
|
@@ -766,12 +702,10 @@ var input = tv({
|
|
|
766
702
|
class: {
|
|
767
703
|
label: [
|
|
768
704
|
"text-medium",
|
|
769
|
-
"group-
|
|
770
|
-
"group-
|
|
771
|
-
"group-[.is-filled]:text-small",
|
|
772
|
-
"group-[.is-filled]:-translate-y-3"
|
|
705
|
+
"group-data-[filled-within=true]:text-small",
|
|
706
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
773
707
|
],
|
|
774
|
-
input: "pt-
|
|
708
|
+
input: "pt-5"
|
|
775
709
|
}
|
|
776
710
|
},
|
|
777
711
|
{
|
|
@@ -780,11 +714,10 @@ var input = tv({
|
|
|
780
714
|
size: "sm",
|
|
781
715
|
class: {
|
|
782
716
|
label: [
|
|
783
|
-
"text-tiny",
|
|
784
|
-
"bottom-2",
|
|
785
717
|
"left-2",
|
|
786
|
-
"
|
|
787
|
-
"group-[
|
|
718
|
+
"text-small",
|
|
719
|
+
"group-data-[filled-within=true]:text-tiny",
|
|
720
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
788
721
|
]
|
|
789
722
|
}
|
|
790
723
|
},
|
|
@@ -794,11 +727,9 @@ var input = tv({
|
|
|
794
727
|
size: "md",
|
|
795
728
|
class: {
|
|
796
729
|
label: [
|
|
797
|
-
"text-small",
|
|
798
|
-
"bottom-2.5",
|
|
799
730
|
"left-3",
|
|
800
|
-
"
|
|
801
|
-
"group-[
|
|
731
|
+
"text-small",
|
|
732
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
802
733
|
]
|
|
803
734
|
}
|
|
804
735
|
},
|
|
@@ -808,13 +739,10 @@ var input = tv({
|
|
|
808
739
|
size: "lg",
|
|
809
740
|
class: {
|
|
810
741
|
label: [
|
|
811
|
-
"text-medium",
|
|
812
|
-
"bottom-3",
|
|
813
742
|
"left-3",
|
|
814
|
-
"
|
|
815
|
-
"group-[
|
|
816
|
-
"group-
|
|
817
|
-
"group-[.is-filled]:bottom-14"
|
|
743
|
+
"text-medium",
|
|
744
|
+
"group-data-[filled-within=true]:text-small",
|
|
745
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
818
746
|
]
|
|
819
747
|
}
|
|
820
748
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MenuItemSlots as ListboxItemSlots, MenuItemVariantProps as ListboxItemVariantProps, MenuSectionSlots as ListboxSectionSlots, MenuSectionVariantProps as ListboxSectionVariantProps, MenuVariantProps as ListboxVariantProps, menu as listbox, menuItem as listboxItem, menuSection as listboxSection } from './menu.js';
|
|
2
|
+
import 'tailwind-variants/dist/config';
|
|
3
|
+
import 'tailwind-variants';
|