@nextui-org/theme 2.0.5 → 2.1.1
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-U3S42JDF.mjs → chunk-FTF3KQBD.mjs} +2 -0
- package/dist/chunk-NVPBHMUQ.mjs +605 -0
- package/dist/{chunk-6GF3EO4A.mjs → chunk-PBGVMEDL.mjs} +69 -141
- 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 +1159 -141
- package/dist/components/index.mjs +40 -20
- package/dist/components/input.d.ts +28 -60
- package/dist/components/input.js +69 -141
- 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 +549 -0
- package/dist/components/select.js +725 -0
- package/dist/components/select.mjs +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1306 -285
- 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
|
@@ -12,7 +12,7 @@ var input = tv({
|
|
|
12
12
|
base: "group flex flex-col",
|
|
13
13
|
label: "block text-small font-medium text-foreground-600",
|
|
14
14
|
mainWrapper: "h-full",
|
|
15
|
-
inputWrapper: "relative w-full inline-flex flex-row items-center shadow-sm px-3 gap-3",
|
|
15
|
+
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
16
16
|
innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
|
|
17
17
|
input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
|
|
18
18
|
clearButton: [
|
|
@@ -88,21 +88,11 @@ var input = tv({
|
|
|
88
88
|
},
|
|
89
89
|
color: {
|
|
90
90
|
default: {},
|
|
91
|
-
primary: {
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
success: {
|
|
98
|
-
label: "text-success-600 dark:text-success"
|
|
99
|
-
},
|
|
100
|
-
warning: {
|
|
101
|
-
label: "text-warning-600 dark:text-warning"
|
|
102
|
-
},
|
|
103
|
-
danger: {
|
|
104
|
-
label: "text-danger dark:text-danger-500"
|
|
105
|
-
}
|
|
91
|
+
primary: {},
|
|
92
|
+
secondary: {},
|
|
93
|
+
success: {},
|
|
94
|
+
warning: {},
|
|
95
|
+
danger: {}
|
|
106
96
|
},
|
|
107
97
|
size: {
|
|
108
98
|
sm: {
|
|
@@ -156,7 +146,7 @@ var input = tv({
|
|
|
156
146
|
errorMessage: "absolute left-1"
|
|
157
147
|
},
|
|
158
148
|
inside: {
|
|
159
|
-
label: "text-tiny",
|
|
149
|
+
label: "text-tiny cursor-text",
|
|
160
150
|
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
161
151
|
}
|
|
162
152
|
},
|
|
@@ -173,12 +163,14 @@ var input = tv({
|
|
|
173
163
|
isClearable: {
|
|
174
164
|
true: {
|
|
175
165
|
input: "peer pr-6",
|
|
176
|
-
clearButton: "peer-[
|
|
166
|
+
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
177
167
|
}
|
|
178
168
|
},
|
|
179
169
|
isDisabled: {
|
|
180
170
|
true: {
|
|
181
|
-
base: "opacity-disabled pointer-events-none"
|
|
171
|
+
base: "opacity-disabled pointer-events-none",
|
|
172
|
+
inputWrapper: "pointer-events-none",
|
|
173
|
+
label: "pointer-events-none"
|
|
182
174
|
}
|
|
183
175
|
},
|
|
184
176
|
isInvalid: {
|
|
@@ -210,7 +202,7 @@ var input = tv({
|
|
|
210
202
|
"origin-top-left",
|
|
211
203
|
"transition-all",
|
|
212
204
|
"!duration-200",
|
|
213
|
-
"!ease-
|
|
205
|
+
"!ease-out",
|
|
214
206
|
"motion-reduce:transition-none"
|
|
215
207
|
],
|
|
216
208
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
@@ -238,7 +230,8 @@ var input = tv({
|
|
|
238
230
|
"group-data-[focus=true]:bg-primary-50",
|
|
239
231
|
"placeholder:text-primary"
|
|
240
232
|
],
|
|
241
|
-
input: "placeholder:text-primary"
|
|
233
|
+
input: "placeholder:text-primary",
|
|
234
|
+
label: "text-primary"
|
|
242
235
|
}
|
|
243
236
|
},
|
|
244
237
|
{
|
|
@@ -252,7 +245,8 @@ var input = tv({
|
|
|
252
245
|
"group-data-[focus=true]:bg-secondary-50",
|
|
253
246
|
"placeholder:text-secondary"
|
|
254
247
|
],
|
|
255
|
-
input: "placeholder:text-secondary"
|
|
248
|
+
input: "placeholder:text-secondary",
|
|
249
|
+
label: "text-secondary"
|
|
256
250
|
}
|
|
257
251
|
},
|
|
258
252
|
{
|
|
@@ -268,7 +262,8 @@ var input = tv({
|
|
|
268
262
|
"data-[hover=true]:bg-success-100",
|
|
269
263
|
"group-data-[focus=true]:bg-success-50"
|
|
270
264
|
],
|
|
271
|
-
input: "placeholder:text-success-600 dark:placeholder:text-success"
|
|
265
|
+
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
266
|
+
label: "text-success-600 dark:text-success"
|
|
272
267
|
}
|
|
273
268
|
},
|
|
274
269
|
{
|
|
@@ -284,7 +279,8 @@ var input = tv({
|
|
|
284
279
|
"data-[hover=true]:bg-warning-100",
|
|
285
280
|
"group-data-[focus=true]:bg-warning-50"
|
|
286
281
|
],
|
|
287
|
-
input: "placeholder:text-warning-600 dark:placeholder:text-warning"
|
|
282
|
+
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
283
|
+
label: "text-warning-600 dark:text-warning"
|
|
288
284
|
}
|
|
289
285
|
},
|
|
290
286
|
{
|
|
@@ -300,7 +296,8 @@ var input = tv({
|
|
|
300
296
|
"data-[hover=true]:bg-danger-100",
|
|
301
297
|
"group-data-[focus=true]:bg-danger-50"
|
|
302
298
|
],
|
|
303
|
-
input: "placeholder:text-danger dark:placeholder:text-danger-500"
|
|
299
|
+
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
300
|
+
label: "text-danger dark:text-danger-500"
|
|
304
301
|
}
|
|
305
302
|
},
|
|
306
303
|
{
|
|
@@ -347,70 +344,80 @@ var input = tv({
|
|
|
347
344
|
variant: "underlined",
|
|
348
345
|
color: "primary",
|
|
349
346
|
class: {
|
|
350
|
-
inputWrapper: "after:bg-primary"
|
|
347
|
+
inputWrapper: "after:bg-primary",
|
|
348
|
+
label: "text-primary"
|
|
351
349
|
}
|
|
352
350
|
},
|
|
353
351
|
{
|
|
354
352
|
variant: "underlined",
|
|
355
353
|
color: "secondary",
|
|
356
354
|
class: {
|
|
357
|
-
inputWrapper: "after:bg-secondary"
|
|
355
|
+
inputWrapper: "after:bg-secondary",
|
|
356
|
+
label: "text-secondary"
|
|
358
357
|
}
|
|
359
358
|
},
|
|
360
359
|
{
|
|
361
360
|
variant: "underlined",
|
|
362
361
|
color: "success",
|
|
363
362
|
class: {
|
|
364
|
-
inputWrapper: "after:bg-success"
|
|
363
|
+
inputWrapper: "after:bg-success",
|
|
364
|
+
label: "text-success"
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
variant: "underlined",
|
|
369
369
|
color: "warning",
|
|
370
370
|
class: {
|
|
371
|
-
inputWrapper: "after:bg-warning"
|
|
371
|
+
inputWrapper: "after:bg-warning",
|
|
372
|
+
label: "text-warning"
|
|
372
373
|
}
|
|
373
374
|
},
|
|
374
375
|
{
|
|
375
376
|
variant: "underlined",
|
|
376
377
|
color: "danger",
|
|
377
378
|
class: {
|
|
378
|
-
inputWrapper: "after:bg-danger"
|
|
379
|
+
inputWrapper: "after:bg-danger",
|
|
380
|
+
label: "text-danger"
|
|
379
381
|
}
|
|
380
382
|
},
|
|
381
383
|
{
|
|
382
384
|
variant: "bordered",
|
|
383
385
|
color: "primary",
|
|
384
386
|
class: {
|
|
385
|
-
inputWrapper: "group-data-[focus=true]:border-primary"
|
|
387
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
388
|
+
label: "text-primary"
|
|
386
389
|
}
|
|
387
390
|
},
|
|
388
391
|
{
|
|
389
392
|
variant: "bordered",
|
|
390
393
|
color: "secondary",
|
|
391
394
|
class: {
|
|
392
|
-
inputWrapper: "group-data-[focus=true]:border-secondary"
|
|
395
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
396
|
+
label: "text-secondary"
|
|
393
397
|
}
|
|
394
398
|
},
|
|
395
399
|
{
|
|
396
400
|
variant: "bordered",
|
|
397
401
|
color: "success",
|
|
398
402
|
class: {
|
|
399
|
-
inputWrapper: "group-data-[focus=true]:border-success"
|
|
403
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
404
|
+
label: "text-success"
|
|
400
405
|
}
|
|
401
406
|
},
|
|
402
407
|
{
|
|
403
408
|
variant: "bordered",
|
|
404
409
|
color: "warning",
|
|
405
410
|
class: {
|
|
406
|
-
inputWrapper: "group-data-[focus=true]:border-warning"
|
|
411
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
412
|
+
label: "text-warning"
|
|
407
413
|
}
|
|
408
414
|
},
|
|
409
415
|
{
|
|
410
416
|
variant: "bordered",
|
|
411
417
|
color: "danger",
|
|
412
418
|
class: {
|
|
413
|
-
inputWrapper: "group-data-[focus=true]:border-danger"
|
|
419
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
420
|
+
label: "text-danger"
|
|
414
421
|
}
|
|
415
422
|
},
|
|
416
423
|
{
|
|
@@ -500,7 +507,7 @@ var input = tv({
|
|
|
500
507
|
size: "lg",
|
|
501
508
|
class: {
|
|
502
509
|
label: "text-small",
|
|
503
|
-
inputWrapper: "h-16 py-2.5 gap-
|
|
510
|
+
inputWrapper: "h-16 py-2.5 gap-0"
|
|
504
511
|
}
|
|
505
512
|
},
|
|
506
513
|
{
|
|
@@ -509,22 +516,11 @@ var input = tv({
|
|
|
509
516
|
class: {
|
|
510
517
|
label: [
|
|
511
518
|
"font-normal",
|
|
512
|
-
"
|
|
513
|
-
"group-
|
|
514
|
-
"group-[.is-filled]:font-medium",
|
|
515
|
-
"group-focus-within:pointer-events-auto",
|
|
516
|
-
"group-[.is-filled]:pointer-events-auto"
|
|
519
|
+
"group-data-[filled-within=true]:font-medium",
|
|
520
|
+
"group-data-[filled-within=true]:pointer-events-auto"
|
|
517
521
|
]
|
|
518
522
|
}
|
|
519
523
|
},
|
|
520
|
-
{
|
|
521
|
-
isLabelPlaceholder: true,
|
|
522
|
-
labelPlacement: "inside",
|
|
523
|
-
class: {
|
|
524
|
-
inputWrapper: "group",
|
|
525
|
-
label: ["group-focus-within:text-foreground-600", "group-[.is-filled]:text-foreground-600"]
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
524
|
{
|
|
529
525
|
isLabelPlaceholder: true,
|
|
530
526
|
labelPlacement: "outside",
|
|
@@ -532,85 +528,21 @@ var input = tv({
|
|
|
532
528
|
base: "group relative justify-end",
|
|
533
529
|
label: [
|
|
534
530
|
"pb-0",
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
"
|
|
538
|
-
"
|
|
531
|
+
"z-20",
|
|
532
|
+
"opacity-60",
|
|
533
|
+
"top-1/2",
|
|
534
|
+
"-translate-y-1/2",
|
|
535
|
+
"group-data-[filled-within=true]:left-0",
|
|
536
|
+
"group-data-[filled-within=true]:opacity-100"
|
|
539
537
|
]
|
|
540
538
|
}
|
|
541
539
|
},
|
|
542
|
-
{
|
|
543
|
-
isLabelPlaceholder: true,
|
|
544
|
-
color: "primary",
|
|
545
|
-
class: {
|
|
546
|
-
label: ["group-focus-within:text-primary", "group-[.is-filled]:text-primary"]
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
isLabelPlaceholder: true,
|
|
551
|
-
color: "secondary",
|
|
552
|
-
class: {
|
|
553
|
-
label: ["group-focus-within:text-secondary", "group-[.is-filled]:text-secondary"]
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
isLabelPlaceholder: true,
|
|
558
|
-
color: "success",
|
|
559
|
-
class: {
|
|
560
|
-
label: ["group-focus-within:text-success", "group-[.is-filled]:text-success"]
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
isLabelPlaceholder: true,
|
|
565
|
-
color: "warning",
|
|
566
|
-
class: {
|
|
567
|
-
label: ["group-focus-within:text-warning", "group-[.is-filled]:text-warning"]
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
isLabelPlaceholder: true,
|
|
572
|
-
color: "danger",
|
|
573
|
-
class: {
|
|
574
|
-
label: ["group-focus-within:text-danger", "group-[.is-filled]:text-danger"]
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
isLabelPlaceholder: true,
|
|
579
|
-
variant: "underlined",
|
|
580
|
-
class: {
|
|
581
|
-
label: ["group-focus-within:pt-0", "group-[.is-filled]:pt-0"]
|
|
582
|
-
}
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
isLabelPlaceholder: true,
|
|
586
|
-
variant: "underlined",
|
|
587
|
-
size: "sm",
|
|
588
|
-
class: {
|
|
589
|
-
label: ["pt-3"]
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
isLabelPlaceholder: true,
|
|
594
|
-
variant: "underlined",
|
|
595
|
-
size: "md",
|
|
596
|
-
class: {
|
|
597
|
-
label: ["pt-4"]
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
isLabelPlaceholder: true,
|
|
602
|
-
variant: "underlined",
|
|
603
|
-
size: "lg",
|
|
604
|
-
class: {
|
|
605
|
-
label: ["pt-5"]
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
540
|
{
|
|
609
541
|
isLabelPlaceholder: true,
|
|
610
542
|
labelPlacement: "inside",
|
|
611
543
|
size: ["sm", "md"],
|
|
612
544
|
class: {
|
|
613
|
-
label: ["text-small", "group-
|
|
545
|
+
label: ["text-small", "group-data-[filled-within=true]:text-tiny"],
|
|
614
546
|
input: "pt-4"
|
|
615
547
|
}
|
|
616
548
|
},
|
|
@@ -619,7 +551,9 @@ var input = tv({
|
|
|
619
551
|
labelPlacement: "inside",
|
|
620
552
|
size: "sm",
|
|
621
553
|
class: {
|
|
622
|
-
label: [
|
|
554
|
+
label: [
|
|
555
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"
|
|
556
|
+
],
|
|
623
557
|
input: "pt-4"
|
|
624
558
|
}
|
|
625
559
|
},
|
|
@@ -628,7 +562,9 @@ var input = tv({
|
|
|
628
562
|
labelPlacement: "inside",
|
|
629
563
|
size: "md",
|
|
630
564
|
class: {
|
|
631
|
-
label: [
|
|
565
|
+
label: [
|
|
566
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
567
|
+
],
|
|
632
568
|
input: "pt-4"
|
|
633
569
|
}
|
|
634
570
|
},
|
|
@@ -639,12 +575,10 @@ var input = tv({
|
|
|
639
575
|
class: {
|
|
640
576
|
label: [
|
|
641
577
|
"text-medium",
|
|
642
|
-
"group-
|
|
643
|
-
"group-
|
|
644
|
-
"group-[.is-filled]:text-small",
|
|
645
|
-
"group-[.is-filled]:-translate-y-3"
|
|
578
|
+
"group-data-[filled-within=true]:text-small",
|
|
579
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
646
580
|
],
|
|
647
|
-
input: "pt-
|
|
581
|
+
input: "pt-5"
|
|
648
582
|
}
|
|
649
583
|
},
|
|
650
584
|
{
|
|
@@ -653,11 +587,10 @@ var input = tv({
|
|
|
653
587
|
size: "sm",
|
|
654
588
|
class: {
|
|
655
589
|
label: [
|
|
656
|
-
"text-tiny",
|
|
657
|
-
"bottom-2",
|
|
658
590
|
"left-2",
|
|
659
|
-
"
|
|
660
|
-
"group-[
|
|
591
|
+
"text-small",
|
|
592
|
+
"group-data-[filled-within=true]:text-tiny",
|
|
593
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
661
594
|
]
|
|
662
595
|
}
|
|
663
596
|
},
|
|
@@ -667,11 +600,9 @@ var input = tv({
|
|
|
667
600
|
size: "md",
|
|
668
601
|
class: {
|
|
669
602
|
label: [
|
|
670
|
-
"text-small",
|
|
671
|
-
"bottom-2.5",
|
|
672
603
|
"left-3",
|
|
673
|
-
"
|
|
674
|
-
"group-[
|
|
604
|
+
"text-small",
|
|
605
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
675
606
|
]
|
|
676
607
|
}
|
|
677
608
|
},
|
|
@@ -681,13 +612,10 @@ var input = tv({
|
|
|
681
612
|
size: "lg",
|
|
682
613
|
class: {
|
|
683
614
|
label: [
|
|
684
|
-
"text-medium",
|
|
685
|
-
"bottom-3",
|
|
686
615
|
"left-3",
|
|
687
|
-
"
|
|
688
|
-
"group-[
|
|
689
|
-
"group-
|
|
690
|
-
"group-[.is-filled]:bottom-14"
|
|
616
|
+
"text-medium",
|
|
617
|
+
"group-data-[filled-within=true]:text-small",
|
|
618
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
691
619
|
]
|
|
692
620
|
}
|
|
693
621
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-NW5W5ANO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
utilities
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y32IWEMZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
baseStyles
|
|
11
11
|
} from "./chunk-T7JNS25F.mjs";
|
|
@@ -145,6 +145,9 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
145
145
|
...addCommonColors ? commonColors : {},
|
|
146
146
|
...resolved.colors
|
|
147
147
|
},
|
|
148
|
+
scale: {
|
|
149
|
+
"80": "0.8"
|
|
150
|
+
},
|
|
148
151
|
height: {
|
|
149
152
|
divider: `var(--${prefix}-divider-weight)`
|
|
150
153
|
},
|
|
File without changes
|