@nextui-org/theme 2.1.9 → 2.1.11
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-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
- package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
- package/dist/{chunk-F76574GG.mjs → chunk-6RI6HHSE.mjs} +126 -46
- package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
- package/dist/chunk-76A2UI6G.mjs +243 -0
- package/dist/chunk-AQDGQGUV.mjs +391 -0
- package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
- package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
- package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
- package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
- package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
- package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
- package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
- package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
- package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
- package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
- package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
- package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
- package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
- package/dist/{chunk-PJV3MWBL.mjs → chunk-KNUJMWVH.mjs} +185 -52
- package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
- package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
- package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
- package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
- package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
- package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
- package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
- package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
- package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
- package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
- package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
- package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
- package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
- package/dist/chunk-WBUVHAJX.mjs +37 -0
- package/dist/chunk-WHT6K6RC.mjs +58 -0
- package/dist/chunk-WNVF6X3M.mjs +171 -0
- package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
- package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
- package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
- package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
- package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
- package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
- package/dist/components/accordion.js +27 -34
- package/dist/components/accordion.mjs +3 -3
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +165 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.js +28 -35
- package/dist/components/avatar.mjs +3 -3
- package/dist/components/badge.d.ts +7 -7
- package/dist/components/badge.js +29 -36
- package/dist/components/badge.mjs +3 -3
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +357 -0
- package/dist/components/breadcrumbs.mjs +14 -0
- package/dist/components/button.d.ts +7 -7
- package/dist/components/button.js +104 -39
- package/dist/components/button.mjs +3 -3
- package/dist/components/card.js +26 -33
- package/dist/components/card.mjs +3 -3
- package/dist/components/checkbox.js +25 -32
- package/dist/components/checkbox.mjs +3 -3
- package/dist/components/chip.js +26 -33
- package/dist/components/chip.mjs +3 -3
- package/dist/components/circular-progress.js +25 -32
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +25 -32
- package/dist/components/code.mjs +3 -3
- package/dist/components/divider.js +25 -32
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.d.ts +29 -3
- package/dist/components/drip.js +25 -32
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.d.ts +103 -35
- package/dist/components/dropdown.js +25 -32
- package/dist/components/dropdown.mjs +3 -3
- package/dist/components/image.js +25 -32
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +1213 -218
- package/dist/components/index.mjs +62 -48
- package/dist/components/input.d.ts +37 -44
- package/dist/components/input.js +208 -82
- package/dist/components/input.mjs +3 -3
- package/dist/components/kbd.js +25 -32
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +25 -32
- package/dist/components/link.mjs +3 -3
- package/dist/components/listbox.d.ts +1 -1
- package/dist/components/listbox.js +41 -34
- package/dist/components/listbox.mjs +3 -3
- package/dist/components/menu.d.ts +119 -40
- package/dist/components/menu.js +41 -34
- package/dist/components/menu.mjs +3 -3
- package/dist/components/modal.js +25 -32
- package/dist/components/modal.mjs +3 -3
- package/dist/components/navbar.js +29 -33
- package/dist/components/navbar.mjs +3 -3
- package/dist/components/pagination.js +46 -36
- package/dist/components/pagination.mjs +3 -3
- package/dist/components/popover.d.ts +136 -132
- package/dist/components/popover.js +98 -94
- package/dist/components/popover.mjs +3 -3
- package/dist/components/progress.js +25 -32
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.js +26 -33
- package/dist/components/radio.mjs +3 -3
- package/dist/components/scroll-shadow.js +25 -32
- package/dist/components/scroll-shadow.mjs +2 -2
- package/dist/components/select.d.ts +40 -54
- package/dist/components/select.js +149 -76
- package/dist/components/select.mjs +3 -3
- package/dist/components/skeleton.js +26 -33
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +504 -0
- package/dist/components/slider.mjs +12 -0
- package/dist/components/snippet.js +25 -32
- package/dist/components/snippet.mjs +3 -3
- package/dist/components/spacer.js +25 -32
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.js +25 -32
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.js +25 -32
- package/dist/components/table.mjs +3 -3
- package/dist/components/tabs.js +25 -32
- package/dist/components/tabs.mjs +3 -3
- package/dist/components/toggle.js +25 -32
- package/dist/components/toggle.mjs +3 -3
- package/dist/components/user.d.ts +45 -29
- package/dist/components/user.js +25 -32
- package/dist/components/user.mjs +3 -3
- package/dist/default-layout.js +4 -1
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1403 -387
- package/dist/index.mjs +69 -53
- package/dist/plugin.js +24 -5
- package/dist/plugin.mjs +6 -6
- package/dist/types.d.ts +8 -0
- package/dist/utilities/index.d.ts +10 -0
- package/dist/utilities/index.js +10 -0
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +10 -0
- package/dist/utilities/transition.js +10 -0
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +10 -0
- package/dist/utils/classes.mjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.mjs +3 -1
- package/dist/utils/theme.js +4 -3
- package/dist/utils/theme.mjs +1 -1
- package/dist/utils/tv.d.ts +2 -2
- package/dist/utils/tv.js +25 -32
- package/dist/utils/tv.mjs +1 -1
- package/package.json +9 -9
- package/dist/chunk-6AEINX52.mjs +0 -44
- package/dist/chunk-SN5GEHHN.mjs +0 -160
- /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/select.ts
|
|
9
9
|
var select = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "group inline-flex flex-col relative w-full",
|
|
12
|
-
label:
|
|
11
|
+
base: ["group inline-flex flex-col relative w-full", "data-[has-helper=true]:mb-4"],
|
|
12
|
+
label: [
|
|
13
|
+
"block",
|
|
14
|
+
"absolute",
|
|
15
|
+
"z-10",
|
|
16
|
+
"origin-top-left",
|
|
17
|
+
"subpixel-antialiased",
|
|
18
|
+
"text-small",
|
|
19
|
+
"text-foreground-500",
|
|
20
|
+
"pointer-events-none"
|
|
21
|
+
],
|
|
13
22
|
mainWrapper: "w-full flex flex-col",
|
|
14
23
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
15
|
-
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
24
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
16
25
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
17
26
|
spinner: "absolute right-3",
|
|
18
|
-
value: "font-normal w-full text-left
|
|
27
|
+
value: ["font-normal", "w-full", "text-left"],
|
|
19
28
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
20
29
|
listbox: "",
|
|
21
|
-
|
|
22
|
-
helperWrapper: "flex
|
|
30
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
31
|
+
helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
|
|
23
32
|
description: "text-tiny text-foreground-400",
|
|
24
33
|
errorMessage: "text-tiny text-danger"
|
|
25
34
|
},
|
|
@@ -76,7 +85,9 @@ var select = tv({
|
|
|
76
85
|
}
|
|
77
86
|
},
|
|
78
87
|
color: {
|
|
79
|
-
default: {
|
|
88
|
+
default: {
|
|
89
|
+
value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
|
|
90
|
+
},
|
|
80
91
|
primary: {},
|
|
81
92
|
secondary: {},
|
|
82
93
|
success: {},
|
|
@@ -87,7 +98,7 @@ var select = tv({
|
|
|
87
98
|
sm: {
|
|
88
99
|
label: "text-tiny",
|
|
89
100
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
90
|
-
value: "text-
|
|
101
|
+
value: "text-tiny"
|
|
91
102
|
},
|
|
92
103
|
md: {
|
|
93
104
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -122,7 +133,7 @@ var select = tv({
|
|
|
122
133
|
},
|
|
123
134
|
"outside-left": {
|
|
124
135
|
base: "flex-row items-center flex-nowrap items-start",
|
|
125
|
-
label: "text-foreground pr-2"
|
|
136
|
+
label: "relative text-foreground pr-2"
|
|
126
137
|
},
|
|
127
138
|
inside: {
|
|
128
139
|
label: "text-tiny cursor-pointer",
|
|
@@ -134,11 +145,6 @@ var select = tv({
|
|
|
134
145
|
base: "w-full"
|
|
135
146
|
}
|
|
136
147
|
},
|
|
137
|
-
isLabelPlaceholder: {
|
|
138
|
-
true: {
|
|
139
|
-
label: "absolute z-10"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
148
|
isDisabled: {
|
|
143
149
|
true: {
|
|
144
150
|
base: "opacity-disabled pointer-events-none",
|
|
@@ -148,7 +154,7 @@ var select = tv({
|
|
|
148
154
|
isInvalid: {
|
|
149
155
|
true: {
|
|
150
156
|
label: "!text-danger",
|
|
151
|
-
value: "text-danger",
|
|
157
|
+
value: "!text-danger",
|
|
152
158
|
selectorIcon: "text-danger"
|
|
153
159
|
}
|
|
154
160
|
},
|
|
@@ -159,6 +165,7 @@ var select = tv({
|
|
|
159
165
|
},
|
|
160
166
|
isMultiline: {
|
|
161
167
|
true: {
|
|
168
|
+
label: "relative",
|
|
162
169
|
trigger: "!h-auto"
|
|
163
170
|
},
|
|
164
171
|
false: {
|
|
@@ -177,9 +184,9 @@ var select = tv({
|
|
|
177
184
|
label: [
|
|
178
185
|
"will-change-auto",
|
|
179
186
|
"origin-top-left",
|
|
180
|
-
"transition-all",
|
|
181
187
|
"!duration-200",
|
|
182
188
|
"!ease-out",
|
|
189
|
+
"transition-[transform,color,left,opacity]",
|
|
183
190
|
"motion-reduce:transition-none"
|
|
184
191
|
],
|
|
185
192
|
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
@@ -440,6 +447,13 @@ var select = tv({
|
|
|
440
447
|
]
|
|
441
448
|
}
|
|
442
449
|
},
|
|
450
|
+
{
|
|
451
|
+
labelPlacement: "inside",
|
|
452
|
+
color: "default",
|
|
453
|
+
class: {
|
|
454
|
+
label: "group-data-[filled=true]:text-foreground-600"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
443
457
|
{
|
|
444
458
|
isInvalid: true,
|
|
445
459
|
variant: "flat",
|
|
@@ -469,14 +483,14 @@ var select = tv({
|
|
|
469
483
|
labelPlacement: "inside",
|
|
470
484
|
size: "sm",
|
|
471
485
|
class: {
|
|
472
|
-
trigger: "h-12 py-1.5 px-3"
|
|
486
|
+
trigger: "h-12 min-h-unit-12 py-1.5 px-3"
|
|
473
487
|
}
|
|
474
488
|
},
|
|
475
489
|
{
|
|
476
490
|
labelPlacement: "inside",
|
|
477
491
|
size: "md",
|
|
478
492
|
class: {
|
|
479
|
-
trigger: "h-14 py-2"
|
|
493
|
+
trigger: "h-14 min-h-unit-14 py-2"
|
|
480
494
|
}
|
|
481
495
|
},
|
|
482
496
|
{
|
|
@@ -484,23 +498,18 @@ var select = tv({
|
|
|
484
498
|
size: "lg",
|
|
485
499
|
class: {
|
|
486
500
|
label: "text-small",
|
|
487
|
-
trigger: "h-16 py-2.5 gap-0"
|
|
501
|
+
trigger: "h-16 min-h-unit-16 py-2.5 gap-0"
|
|
488
502
|
}
|
|
489
503
|
},
|
|
490
504
|
{
|
|
491
|
-
isLabelPlaceholder: true,
|
|
492
505
|
labelPlacement: ["inside", "outside"],
|
|
493
506
|
class: {
|
|
494
|
-
label: [
|
|
495
|
-
"font-normal",
|
|
496
|
-
"group-data-[filled=true]:font-medium",
|
|
497
|
-
"group-data-[filled=true]:pointer-events-auto"
|
|
498
|
-
]
|
|
507
|
+
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
499
508
|
}
|
|
500
509
|
},
|
|
501
510
|
{
|
|
502
|
-
isLabelPlaceholder: true,
|
|
503
511
|
labelPlacement: "outside",
|
|
512
|
+
isMultiline: false,
|
|
504
513
|
class: {
|
|
505
514
|
base: "group relative justify-end",
|
|
506
515
|
label: [
|
|
@@ -515,83 +524,154 @@ var select = tv({
|
|
|
515
524
|
}
|
|
516
525
|
},
|
|
517
526
|
{
|
|
518
|
-
|
|
527
|
+
labelPlacement: ["inside"],
|
|
528
|
+
class: {
|
|
529
|
+
label: "group-data-[filled=true]:scale-85"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
{
|
|
519
533
|
labelPlacement: "inside",
|
|
520
534
|
size: ["sm", "md"],
|
|
521
535
|
class: {
|
|
522
|
-
label:
|
|
536
|
+
label: "text-small",
|
|
523
537
|
input: "pt-4"
|
|
524
538
|
}
|
|
525
539
|
},
|
|
526
540
|
{
|
|
527
|
-
isLabelPlaceholder: true,
|
|
528
541
|
labelPlacement: "inside",
|
|
542
|
+
isMultiline: false,
|
|
529
543
|
size: "sm",
|
|
530
544
|
class: {
|
|
531
|
-
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
545
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
532
546
|
innerWrapper: "pt-4"
|
|
533
547
|
}
|
|
534
548
|
},
|
|
535
549
|
{
|
|
536
|
-
isLabelPlaceholder: true,
|
|
537
550
|
labelPlacement: "inside",
|
|
551
|
+
isMultiline: false,
|
|
538
552
|
size: "md",
|
|
539
553
|
class: {
|
|
540
554
|
label: [
|
|
541
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
555
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
542
556
|
],
|
|
543
557
|
innerWrapper: "pt-4"
|
|
544
558
|
}
|
|
545
559
|
},
|
|
546
560
|
{
|
|
547
|
-
isLabelPlaceholder: true,
|
|
548
561
|
labelPlacement: "inside",
|
|
562
|
+
isMultiline: false,
|
|
549
563
|
size: "lg",
|
|
550
564
|
class: {
|
|
551
565
|
label: [
|
|
552
566
|
"text-medium",
|
|
553
|
-
"group-data-[filled=true]
|
|
554
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
567
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
555
568
|
],
|
|
556
569
|
innerWrapper: "pt-5"
|
|
557
570
|
}
|
|
558
571
|
},
|
|
559
572
|
{
|
|
560
|
-
|
|
573
|
+
labelPlacement: "inside",
|
|
574
|
+
variant: ["faded", "bordered"],
|
|
575
|
+
isMultiline: false,
|
|
576
|
+
size: "sm",
|
|
577
|
+
class: {
|
|
578
|
+
label: [
|
|
579
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
labelPlacement: "inside",
|
|
585
|
+
variant: ["faded", "bordered"],
|
|
586
|
+
isMultiline: false,
|
|
587
|
+
size: "md",
|
|
588
|
+
class: {
|
|
589
|
+
label: [
|
|
590
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
labelPlacement: "inside",
|
|
596
|
+
variant: ["faded", "bordered"],
|
|
597
|
+
isMultiline: false,
|
|
598
|
+
size: "lg",
|
|
599
|
+
class: {
|
|
600
|
+
label: [
|
|
601
|
+
"text-medium",
|
|
602
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
603
|
+
]
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
labelPlacement: "inside",
|
|
608
|
+
variant: "underlined",
|
|
609
|
+
isMultiline: false,
|
|
610
|
+
size: "sm",
|
|
611
|
+
class: {
|
|
612
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
labelPlacement: "inside",
|
|
617
|
+
variant: "underlined",
|
|
618
|
+
isMultiline: false,
|
|
619
|
+
size: "md",
|
|
620
|
+
class: {
|
|
621
|
+
label: [
|
|
622
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
labelPlacement: "inside",
|
|
628
|
+
variant: "underlined",
|
|
629
|
+
isMultiline: false,
|
|
630
|
+
size: "lg",
|
|
631
|
+
class: {
|
|
632
|
+
label: [
|
|
633
|
+
"text-medium",
|
|
634
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
635
|
+
]
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
561
639
|
labelPlacement: "outside",
|
|
562
640
|
size: "sm",
|
|
641
|
+
isMultiline: false,
|
|
563
642
|
class: {
|
|
564
643
|
label: [
|
|
565
644
|
"left-2",
|
|
566
|
-
"text-
|
|
567
|
-
"group-data-[filled=true]:text-tiny",
|
|
645
|
+
"text-tiny",
|
|
568
646
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
569
|
-
]
|
|
647
|
+
],
|
|
648
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
570
649
|
}
|
|
571
650
|
},
|
|
572
651
|
{
|
|
573
|
-
isLabelPlaceholder: true,
|
|
574
652
|
labelPlacement: "outside",
|
|
653
|
+
isMultiline: false,
|
|
575
654
|
size: "md",
|
|
576
655
|
class: {
|
|
577
656
|
label: [
|
|
578
657
|
"left-3",
|
|
579
658
|
"text-small",
|
|
580
659
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
581
|
-
]
|
|
660
|
+
],
|
|
661
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
582
662
|
}
|
|
583
663
|
},
|
|
584
664
|
{
|
|
585
|
-
isLabelPlaceholder: true,
|
|
586
665
|
labelPlacement: "outside",
|
|
666
|
+
isMultiline: false,
|
|
587
667
|
size: "lg",
|
|
588
668
|
class: {
|
|
589
669
|
label: [
|
|
590
670
|
"left-3",
|
|
591
671
|
"text-medium",
|
|
592
|
-
"group-data-[filled=true]:text-small",
|
|
593
672
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
594
|
-
]
|
|
673
|
+
],
|
|
674
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
595
675
|
}
|
|
596
676
|
}
|
|
597
677
|
]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
utilities
|
|
3
|
+
} from "./chunk-S7W5DQP2.mjs";
|
|
1
4
|
import {
|
|
2
5
|
createSpacingUnits,
|
|
3
6
|
generateSpacingScale,
|
|
4
7
|
isBaseTheme
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
utilities
|
|
8
|
-
} from "./chunk-Y32IWEMZ.mjs";
|
|
8
|
+
} from "./chunk-DGMET46Q.mjs";
|
|
9
9
|
import {
|
|
10
10
|
baseStyles
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
semanticColors
|
|
14
14
|
} from "./chunk-G4RCK475.mjs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
darkLayout,
|
|
20
20
|
defaultLayout,
|
|
21
21
|
lightLayout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VZI6SR6H.mjs";
|
|
23
23
|
import {
|
|
24
24
|
animations
|
|
25
25
|
} from "./chunk-DMASP6FA.mjs";
|
|
@@ -100,6 +100,9 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
100
100
|
});
|
|
101
101
|
} else {
|
|
102
102
|
const layoutVariable = `--${prefix}-${key}`;
|
|
103
|
+
if (layoutVariable.includes("opacity") && typeof value === "number") {
|
|
104
|
+
value = value.toString().replace(/^0\./, ".");
|
|
105
|
+
}
|
|
103
106
|
resolved.utilities[cssSelector][layoutVariable] = value;
|
|
104
107
|
}
|
|
105
108
|
});
|
|
@@ -146,7 +149,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
146
149
|
...resolved.colors
|
|
147
150
|
},
|
|
148
151
|
scale: {
|
|
149
|
-
"80": "0.8"
|
|
152
|
+
"80": "0.8",
|
|
153
|
+
"85": "0.85"
|
|
150
154
|
},
|
|
151
155
|
height: {
|
|
152
156
|
divider: `var(--${prefix}-divider-weight)`
|
|
@@ -176,6 +180,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
176
180
|
large: `var(--${prefix}-radius-large)`
|
|
177
181
|
},
|
|
178
182
|
opacity: {
|
|
183
|
+
hover: `var(--${prefix}-hover-opacity)`,
|
|
179
184
|
disabled: `var(--${prefix}-disabled-opacity)`
|
|
180
185
|
},
|
|
181
186
|
borderWidth: {
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-WBUVHAJX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
dataFocusVisibleClasses
|
|
6
|
+
} from "./chunk-XHQUSKIE.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/breadcrumbs.ts
|
|
9
|
+
var breadcrumbItem = tv({
|
|
10
|
+
slots: {
|
|
11
|
+
base: "flex items-center",
|
|
12
|
+
item: [
|
|
13
|
+
"flex gap-1 items-center",
|
|
14
|
+
"cursor-pointer",
|
|
15
|
+
"whitespace-nowrap",
|
|
16
|
+
"line-clamp-1",
|
|
17
|
+
"outline-none",
|
|
18
|
+
"tap-highlight-transparent",
|
|
19
|
+
...dataFocusVisibleClasses
|
|
20
|
+
],
|
|
21
|
+
separator: "text-default-400 px-1"
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
color: {
|
|
25
|
+
foreground: {
|
|
26
|
+
item: "text-foreground/50",
|
|
27
|
+
separator: "text-foreground/50"
|
|
28
|
+
},
|
|
29
|
+
primary: {
|
|
30
|
+
item: "text-primary/80",
|
|
31
|
+
separator: "text-primary/80"
|
|
32
|
+
},
|
|
33
|
+
secondary: {
|
|
34
|
+
item: "text-secondary/80",
|
|
35
|
+
separator: "text-secondary/80"
|
|
36
|
+
},
|
|
37
|
+
success: {
|
|
38
|
+
item: "text-success/80",
|
|
39
|
+
separator: "text-success/80"
|
|
40
|
+
},
|
|
41
|
+
warning: {
|
|
42
|
+
item: "text-warning/80",
|
|
43
|
+
separator: "text-warning/80"
|
|
44
|
+
},
|
|
45
|
+
danger: {
|
|
46
|
+
item: "text-danger/80",
|
|
47
|
+
separator: "text-danger/80"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
item: "text-tiny"
|
|
53
|
+
},
|
|
54
|
+
md: {
|
|
55
|
+
item: "text-small"
|
|
56
|
+
},
|
|
57
|
+
lg: {
|
|
58
|
+
item: "text-medium"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
underline: {
|
|
62
|
+
none: {
|
|
63
|
+
item: "no-underline"
|
|
64
|
+
},
|
|
65
|
+
hover: {
|
|
66
|
+
item: "hover:underline"
|
|
67
|
+
},
|
|
68
|
+
always: {
|
|
69
|
+
item: "underline"
|
|
70
|
+
},
|
|
71
|
+
active: {
|
|
72
|
+
item: "active:underline"
|
|
73
|
+
},
|
|
74
|
+
focus: {
|
|
75
|
+
item: "focus:underline"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
isCurrent: {
|
|
79
|
+
true: {
|
|
80
|
+
item: "cursor-default"
|
|
81
|
+
},
|
|
82
|
+
false: {
|
|
83
|
+
item: ["hover:opacity-80", "active:opacity-disabled"]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
isDisabled: {
|
|
87
|
+
true: {
|
|
88
|
+
item: "opacity-disabled pointer-events-none",
|
|
89
|
+
separator: "opacity-disabled"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
disableAnimation: {
|
|
93
|
+
false: {
|
|
94
|
+
item: "transition-opacity"
|
|
95
|
+
},
|
|
96
|
+
true: {
|
|
97
|
+
item: "transition-none"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
size: "md",
|
|
103
|
+
color: "foreground",
|
|
104
|
+
underline: "hover",
|
|
105
|
+
isDisabled: false,
|
|
106
|
+
disableAnimation: false
|
|
107
|
+
},
|
|
108
|
+
compoundVariants: [
|
|
109
|
+
{
|
|
110
|
+
isCurrent: true,
|
|
111
|
+
color: "foreground",
|
|
112
|
+
class: {
|
|
113
|
+
item: "text-foreground"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
isCurrent: true,
|
|
118
|
+
color: "primary",
|
|
119
|
+
class: {
|
|
120
|
+
item: "text-primary"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
isCurrent: true,
|
|
125
|
+
color: "secondary",
|
|
126
|
+
class: {
|
|
127
|
+
item: "text-secondary"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
isCurrent: true,
|
|
132
|
+
color: "success",
|
|
133
|
+
class: {
|
|
134
|
+
item: "text-success"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
isCurrent: true,
|
|
139
|
+
color: "warning",
|
|
140
|
+
class: {
|
|
141
|
+
item: "text-warning"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
isCurrent: true,
|
|
146
|
+
color: "danger",
|
|
147
|
+
class: {
|
|
148
|
+
item: "text-danger"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
isCurrent: false,
|
|
153
|
+
underline: "none",
|
|
154
|
+
class: {
|
|
155
|
+
item: "no-underline"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
underline: ["hover", "always", "active", "focus"],
|
|
160
|
+
class: "underline-offset-4"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
var breadcrumbs = tv({
|
|
165
|
+
slots: {
|
|
166
|
+
base: "",
|
|
167
|
+
list: "flex flex-wrap list-none",
|
|
168
|
+
ellipsis: "text-medium",
|
|
169
|
+
separator: "text-default-400 px-1"
|
|
170
|
+
},
|
|
171
|
+
variants: {
|
|
172
|
+
size: {
|
|
173
|
+
sm: {},
|
|
174
|
+
md: {},
|
|
175
|
+
lg: {}
|
|
176
|
+
},
|
|
177
|
+
radius: {
|
|
178
|
+
none: {
|
|
179
|
+
list: "rounded-none"
|
|
180
|
+
},
|
|
181
|
+
sm: {
|
|
182
|
+
list: "rounded-small"
|
|
183
|
+
},
|
|
184
|
+
md: {
|
|
185
|
+
list: "rounded-medium"
|
|
186
|
+
},
|
|
187
|
+
lg: {
|
|
188
|
+
list: "rounded-large"
|
|
189
|
+
},
|
|
190
|
+
full: {
|
|
191
|
+
list: "rounded-full"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
variant: {
|
|
195
|
+
solid: {
|
|
196
|
+
list: "bg-default-100"
|
|
197
|
+
},
|
|
198
|
+
bordered: {
|
|
199
|
+
list: "border-medium border-default-200 shadow-sm"
|
|
200
|
+
},
|
|
201
|
+
light: {}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
defaultVariants: {
|
|
205
|
+
size: "md",
|
|
206
|
+
radius: "sm",
|
|
207
|
+
variant: "light"
|
|
208
|
+
},
|
|
209
|
+
compoundVariants: [
|
|
210
|
+
{
|
|
211
|
+
variant: ["solid", "bordered"],
|
|
212
|
+
class: {
|
|
213
|
+
list: "max-w-fit"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
variant: ["solid", "bordered"],
|
|
218
|
+
size: "sm",
|
|
219
|
+
class: {
|
|
220
|
+
list: "px-2 py-1"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
variant: ["solid", "bordered"],
|
|
225
|
+
size: "md",
|
|
226
|
+
class: {
|
|
227
|
+
list: "px-2.5 py-1.5"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
variant: ["solid", "bordered"],
|
|
232
|
+
size: "lg",
|
|
233
|
+
class: {
|
|
234
|
+
list: "px-3 py-2"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
export {
|
|
241
|
+
breadcrumbItem,
|
|
242
|
+
breadcrumbs
|
|
243
|
+
};
|