@nextui-org/theme 2.1.8 → 2.1.10
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-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-PJV3MWBL.mjs → chunk-C3KZKKPN.mjs} +182 -49
- package/dist/{chunk-2T5RQ7SK.mjs → chunk-CLW3JMFF.mjs} +36 -6
- 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-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-F76574GG.mjs → chunk-SCQJ4BM3.mjs} +105 -39
- 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-Y33ZY7KH.mjs → chunk-WYVG7NY6.mjs} +34 -5
- 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.d.ts +163 -36
- package/dist/components/checkbox.js +59 -36
- 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 +1271 -231
- package/dist/components/index.mjs +62 -48
- package/dist/components/input.d.ts +34 -41
- package/dist/components/input.js +205 -79
- 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.d.ts +135 -36
- package/dist/components/radio.js +57 -35
- 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 +30 -51
- package/dist/components/select.js +128 -69
- 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 +1381 -320
- 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
package/dist/components/index.js
CHANGED
|
@@ -22,9 +22,12 @@ var components_exports = {};
|
|
|
22
22
|
__export(components_exports, {
|
|
23
23
|
accordion: () => accordion,
|
|
24
24
|
accordionItem: () => accordionItem,
|
|
25
|
+
autocomplete: () => autocomplete,
|
|
25
26
|
avatar: () => avatar,
|
|
26
27
|
avatarGroup: () => avatarGroup,
|
|
27
28
|
badge: () => badge,
|
|
29
|
+
breadcrumbItem: () => breadcrumbItem,
|
|
30
|
+
breadcrumbs: () => breadcrumbs,
|
|
28
31
|
button: () => button,
|
|
29
32
|
buttonGroup: () => buttonGroup,
|
|
30
33
|
card: () => card,
|
|
@@ -60,6 +63,7 @@ __export(components_exports, {
|
|
|
60
63
|
scrollShadow: () => scrollShadow,
|
|
61
64
|
select: () => select,
|
|
62
65
|
skeleton: () => skeleton,
|
|
66
|
+
slider: () => slider,
|
|
63
67
|
snippet: () => snippet,
|
|
64
68
|
spacer: () => spacer,
|
|
65
69
|
spinner: () => spinner,
|
|
@@ -128,39 +132,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
|
128
132
|
|
|
129
133
|
// src/utils/tv.ts
|
|
130
134
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
131
|
-
var tv = (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
],
|
|
155
|
-
"min-h": [
|
|
156
|
-
{
|
|
157
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
|
135
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
136
|
+
twMerge: true,
|
|
137
|
+
twMergeConfig: {
|
|
138
|
+
theme: {
|
|
139
|
+
opacity: ["disabled"],
|
|
140
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
141
|
+
borderWidth: COMMON_UNITS,
|
|
142
|
+
borderRadius: COMMON_UNITS
|
|
143
|
+
},
|
|
144
|
+
classGroups: {
|
|
145
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
146
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
147
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
148
|
+
"min-w": [
|
|
149
|
+
{
|
|
150
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"min-h": [
|
|
154
|
+
{
|
|
155
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
161
158
|
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
159
|
+
}
|
|
160
|
+
});
|
|
164
161
|
|
|
165
162
|
// src/utils/classes.ts
|
|
166
163
|
var dataFocusVisibleClasses = [
|
|
@@ -192,6 +189,14 @@ var translateCenterClasses = [
|
|
|
192
189
|
"-translate-x-1/2",
|
|
193
190
|
"-translate-y-1/2"
|
|
194
191
|
];
|
|
192
|
+
var collapseAdjacentVariantBorders = {
|
|
193
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
194
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
195
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
196
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
197
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
198
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
199
|
+
};
|
|
195
200
|
|
|
196
201
|
// src/utils/variants.ts
|
|
197
202
|
var solid = {
|
|
@@ -279,7 +284,7 @@ var avatar = tv({
|
|
|
279
284
|
"overflow-hidden",
|
|
280
285
|
"align-middle",
|
|
281
286
|
"text-white",
|
|
282
|
-
"z-
|
|
287
|
+
"z-0",
|
|
283
288
|
...dataFocusVisibleClasses
|
|
284
289
|
],
|
|
285
290
|
img: [
|
|
@@ -366,7 +371,7 @@ var avatar = tv({
|
|
|
366
371
|
isInGroup: {
|
|
367
372
|
true: {
|
|
368
373
|
base: [
|
|
369
|
-
"-
|
|
374
|
+
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
370
375
|
"data-[focus-visible=true]:-translate-x-3"
|
|
371
376
|
]
|
|
372
377
|
}
|
|
@@ -394,7 +399,7 @@ var avatar = tv({
|
|
|
394
399
|
color: "primary",
|
|
395
400
|
isBordered: true,
|
|
396
401
|
class: {
|
|
397
|
-
base: "ring-
|
|
402
|
+
base: "ring-primary"
|
|
398
403
|
}
|
|
399
404
|
},
|
|
400
405
|
{
|
|
@@ -468,7 +473,7 @@ var card = tv({
|
|
|
468
473
|
"flex",
|
|
469
474
|
"flex-1",
|
|
470
475
|
"w-full",
|
|
471
|
-
"p-
|
|
476
|
+
"p-3",
|
|
472
477
|
"flex-auto",
|
|
473
478
|
"flex-col",
|
|
474
479
|
"place-content-inherit",
|
|
@@ -760,7 +765,7 @@ var button = tv({
|
|
|
760
765
|
},
|
|
761
766
|
disableAnimation: {
|
|
762
767
|
true: "!transition-none",
|
|
763
|
-
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"
|
|
768
|
+
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"
|
|
764
769
|
}
|
|
765
770
|
},
|
|
766
771
|
defaultVariants: {
|
|
@@ -983,30 +988,90 @@ var button = tv({
|
|
|
983
988
|
color: "danger",
|
|
984
989
|
class: colorVariants.ghost.danger
|
|
985
990
|
},
|
|
991
|
+
{
|
|
992
|
+
isInGroup: true,
|
|
993
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
994
|
+
},
|
|
986
995
|
{
|
|
987
996
|
isInGroup: true,
|
|
988
997
|
size: "sm",
|
|
989
|
-
class: "rounded-none first:rounded-
|
|
998
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
990
999
|
},
|
|
991
1000
|
{
|
|
992
1001
|
isInGroup: true,
|
|
993
1002
|
size: "md",
|
|
994
|
-
class: "rounded-none first:rounded-
|
|
1003
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
995
1004
|
},
|
|
996
1005
|
{
|
|
997
1006
|
isInGroup: true,
|
|
998
1007
|
size: "lg",
|
|
999
|
-
class: "rounded-none first:rounded-
|
|
1008
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
1000
1009
|
},
|
|
1001
1010
|
{
|
|
1002
1011
|
isInGroup: true,
|
|
1003
1012
|
isRounded: true,
|
|
1004
|
-
class: "rounded-none first:rounded-
|
|
1013
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
isInGroup: true,
|
|
1017
|
+
radius: "none",
|
|
1018
|
+
class: "rounded-none first:rounded-s-none last:rounded-e-none"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
isInGroup: true,
|
|
1022
|
+
radius: "sm",
|
|
1023
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
isInGroup: true,
|
|
1027
|
+
radius: "md",
|
|
1028
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
isInGroup: true,
|
|
1032
|
+
radius: "lg",
|
|
1033
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
isInGroup: true,
|
|
1037
|
+
radius: "full",
|
|
1038
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
isInGroup: true,
|
|
1042
|
+
variant: ["ghost", "bordered"],
|
|
1043
|
+
color: "default",
|
|
1044
|
+
className: collapseAdjacentVariantBorders.default
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
isInGroup: true,
|
|
1048
|
+
variant: ["ghost", "bordered"],
|
|
1049
|
+
color: "primary",
|
|
1050
|
+
className: collapseAdjacentVariantBorders.primary
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
isInGroup: true,
|
|
1054
|
+
variant: ["ghost", "bordered"],
|
|
1055
|
+
color: "secondary",
|
|
1056
|
+
className: collapseAdjacentVariantBorders.secondary
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
isInGroup: true,
|
|
1060
|
+
variant: ["ghost", "bordered"],
|
|
1061
|
+
color: "success",
|
|
1062
|
+
className: collapseAdjacentVariantBorders.success
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
isInGroup: true,
|
|
1066
|
+
variant: ["ghost", "bordered"],
|
|
1067
|
+
color: "warning",
|
|
1068
|
+
className: collapseAdjacentVariantBorders.warning
|
|
1005
1069
|
},
|
|
1006
1070
|
{
|
|
1007
1071
|
isInGroup: true,
|
|
1008
|
-
variant: ["
|
|
1009
|
-
|
|
1072
|
+
variant: ["ghost", "bordered"],
|
|
1073
|
+
color: "danger",
|
|
1074
|
+
className: collapseAdjacentVariantBorders.danger
|
|
1010
1075
|
},
|
|
1011
1076
|
{
|
|
1012
1077
|
isIconOnly: true,
|
|
@@ -1022,6 +1087,10 @@ var button = tv({
|
|
|
1022
1087
|
isIconOnly: true,
|
|
1023
1088
|
size: "lg",
|
|
1024
1089
|
class: "min-w-unit-12 w-unit-12 h-unit-12"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
1093
|
+
class: "data-[hover=true]:opacity-hover"
|
|
1025
1094
|
}
|
|
1026
1095
|
]
|
|
1027
1096
|
});
|
|
@@ -1193,107 +1262,118 @@ var code = tv({
|
|
|
1193
1262
|
var popover = tv({
|
|
1194
1263
|
slots: {
|
|
1195
1264
|
base: [
|
|
1196
|
-
"z-
|
|
1265
|
+
"z-0",
|
|
1197
1266
|
"relative",
|
|
1267
|
+
"bg-transparent",
|
|
1268
|
+
"before:content-['']",
|
|
1269
|
+
"before:hidden",
|
|
1270
|
+
"before:z-[-1]",
|
|
1271
|
+
"before:absolute",
|
|
1272
|
+
"before:rotate-45",
|
|
1273
|
+
"before:w-2.5",
|
|
1274
|
+
"before:h-2.5",
|
|
1275
|
+
"before:rounded-sm",
|
|
1276
|
+
"data-[arrow=true]:before:block",
|
|
1277
|
+
"data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1278
|
+
"data-[placement=top]:before:left-1/2",
|
|
1279
|
+
"data-[placement=top]:before:-translate-x-1/2",
|
|
1280
|
+
"data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1281
|
+
"data-[placement=top-start]:before:left-3",
|
|
1282
|
+
"data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1283
|
+
"data-[placement=top-end]:before:right-3",
|
|
1284
|
+
"data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1285
|
+
"data-[placement=bottom]:before:left-1/2",
|
|
1286
|
+
"data-[placement=bottom]:before:-translate-x-1/2",
|
|
1287
|
+
"data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1288
|
+
"data-[placement=bottom-start]:before:left-3",
|
|
1289
|
+
"data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1290
|
+
"data-[placement=bottom-end]:before:right-3",
|
|
1291
|
+
"data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]",
|
|
1292
|
+
"data-[placement=left]:before:top-1/2",
|
|
1293
|
+
"data-[placement=left]:before:-translate-y-1/2",
|
|
1294
|
+
"data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1295
|
+
"data-[placement=left-start]:before:top-1/4",
|
|
1296
|
+
"data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1297
|
+
"data-[placement=left-end]:before:bottom-1/4",
|
|
1298
|
+
"data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]",
|
|
1299
|
+
"data-[placement=right]:before:top-1/2",
|
|
1300
|
+
"data-[placement=right]:before:-translate-y-1/2",
|
|
1301
|
+
"data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1302
|
+
"data-[placement=right-start]:before:top-1/4",
|
|
1303
|
+
"data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1304
|
+
"data-[placement=right-end]:before:bottom-1/4",
|
|
1305
|
+
...dataFocusVisibleClasses
|
|
1306
|
+
],
|
|
1307
|
+
content: [
|
|
1308
|
+
"z-10",
|
|
1309
|
+
"px-2.5",
|
|
1310
|
+
"py-1",
|
|
1311
|
+
"w-full",
|
|
1198
1312
|
"inline-flex",
|
|
1199
1313
|
"flex-col",
|
|
1200
1314
|
"items-center",
|
|
1201
1315
|
"justify-center",
|
|
1202
1316
|
"box-border",
|
|
1203
1317
|
"subpixel-antialiased",
|
|
1204
|
-
"px-4",
|
|
1205
|
-
"py-1",
|
|
1206
1318
|
"outline-none",
|
|
1207
|
-
"box-border"
|
|
1208
|
-
...dataFocusVisibleClasses
|
|
1319
|
+
"box-border"
|
|
1209
1320
|
],
|
|
1210
1321
|
trigger: ["z-10"],
|
|
1211
1322
|
backdrop: ["hidden"],
|
|
1212
|
-
arrow: [
|
|
1213
|
-
"z-[-1]",
|
|
1214
|
-
"absolute",
|
|
1215
|
-
"rotate-45",
|
|
1216
|
-
"w-2.5",
|
|
1217
|
-
"h-2.5",
|
|
1218
|
-
"rounded-sm",
|
|
1219
|
-
"data-[placement=top]:-bottom-1",
|
|
1220
|
-
"data-[placement=top]:-translate-x-1/2",
|
|
1221
|
-
"data-[placement=top-start]:-bottom-1",
|
|
1222
|
-
"data-[placement=top-start]:-translate-x-8",
|
|
1223
|
-
"data-[placement=top-end]:-bottom-1",
|
|
1224
|
-
"data-[placement=top-end]:translate-x-6",
|
|
1225
|
-
"data-[placement=bottom]:-top-1",
|
|
1226
|
-
"data-[placement=bottom]:-translate-x-1/2",
|
|
1227
|
-
"data-[placement=bottom-start]:-top-1",
|
|
1228
|
-
"data-[placement=bottom-start]:-translate-x-8",
|
|
1229
|
-
"data-[placement=bottom-end]:-top-1",
|
|
1230
|
-
"data-[placement=bottom-end]:translate-x-6",
|
|
1231
|
-
"data-[placement=left]:-right-1",
|
|
1232
|
-
"data-[placement=left]:-translate-y-1/2",
|
|
1233
|
-
"data-[placement=left-start]:-right-1",
|
|
1234
|
-
"data-[placement=left-start]:-translate-y-3",
|
|
1235
|
-
"data-[placement=left-end]:-right-1",
|
|
1236
|
-
"data-[placement=left-end]:translate-y-0.5",
|
|
1237
|
-
"data-[placement=right]:-left-1",
|
|
1238
|
-
"data-[placement=right]:-translate-y-1/2",
|
|
1239
|
-
"data-[placement=right-start]:-left-1",
|
|
1240
|
-
"data-[placement=right-start]:-translate-y-3",
|
|
1241
|
-
"data-[placement=right-end]:-left-1",
|
|
1242
|
-
"data-[placement=right-end]:translate-y-0.5"
|
|
1243
|
-
]
|
|
1323
|
+
arrow: []
|
|
1244
1324
|
},
|
|
1245
1325
|
variants: {
|
|
1246
1326
|
size: {
|
|
1247
|
-
sm: {
|
|
1248
|
-
md: {
|
|
1249
|
-
lg: {
|
|
1327
|
+
sm: { content: "text-tiny" },
|
|
1328
|
+
md: { content: "text-small" },
|
|
1329
|
+
lg: { content: "text-medium" }
|
|
1250
1330
|
},
|
|
1251
1331
|
color: {
|
|
1252
1332
|
default: {
|
|
1253
|
-
base: "bg-content1",
|
|
1254
|
-
|
|
1333
|
+
base: "before:bg-content1 before:shadow-small",
|
|
1334
|
+
content: "bg-content1"
|
|
1255
1335
|
},
|
|
1256
1336
|
foreground: {
|
|
1257
|
-
base:
|
|
1258
|
-
|
|
1337
|
+
base: "before:bg-foreground",
|
|
1338
|
+
content: colorVariants.solid.foreground
|
|
1259
1339
|
},
|
|
1260
1340
|
primary: {
|
|
1261
|
-
base:
|
|
1262
|
-
|
|
1341
|
+
base: "before:bg-primary",
|
|
1342
|
+
content: colorVariants.solid.primary
|
|
1263
1343
|
},
|
|
1264
1344
|
secondary: {
|
|
1265
|
-
base:
|
|
1266
|
-
|
|
1345
|
+
base: "before:bg-secondary",
|
|
1346
|
+
content: colorVariants.solid.secondary
|
|
1267
1347
|
},
|
|
1268
1348
|
success: {
|
|
1269
|
-
base:
|
|
1270
|
-
|
|
1349
|
+
base: "before:bg-success",
|
|
1350
|
+
content: colorVariants.solid.success
|
|
1271
1351
|
},
|
|
1272
1352
|
warning: {
|
|
1273
|
-
base:
|
|
1274
|
-
|
|
1353
|
+
base: "before:bg-warning",
|
|
1354
|
+
content: colorVariants.solid.warning
|
|
1275
1355
|
},
|
|
1276
1356
|
danger: {
|
|
1277
|
-
base:
|
|
1278
|
-
|
|
1357
|
+
base: "before:bg-danger",
|
|
1358
|
+
content: colorVariants.solid.danger
|
|
1279
1359
|
}
|
|
1280
1360
|
},
|
|
1281
1361
|
radius: {
|
|
1282
|
-
none: {
|
|
1283
|
-
sm: {
|
|
1284
|
-
md: {
|
|
1285
|
-
lg: {
|
|
1286
|
-
full: {
|
|
1362
|
+
none: { content: "rounded-none" },
|
|
1363
|
+
sm: { content: "rounded-small" },
|
|
1364
|
+
md: { content: "rounded-medium" },
|
|
1365
|
+
lg: { content: "rounded-large" },
|
|
1366
|
+
full: { content: "rounded-full" }
|
|
1287
1367
|
},
|
|
1288
1368
|
shadow: {
|
|
1289
1369
|
sm: {
|
|
1290
|
-
|
|
1370
|
+
content: "shadow-small"
|
|
1291
1371
|
},
|
|
1292
1372
|
md: {
|
|
1293
|
-
|
|
1373
|
+
content: "shadow-medium"
|
|
1294
1374
|
},
|
|
1295
1375
|
lg: {
|
|
1296
|
-
|
|
1376
|
+
content: "shadow-large"
|
|
1297
1377
|
}
|
|
1298
1378
|
},
|
|
1299
1379
|
backdrop: {
|
|
@@ -1700,7 +1780,7 @@ var chip = tv({
|
|
|
1700
1780
|
},
|
|
1701
1781
|
size: {
|
|
1702
1782
|
sm: {
|
|
1703
|
-
base: "px-1 h-6 text-
|
|
1783
|
+
base: "px-1 h-6 text-tiny",
|
|
1704
1784
|
content: "px-1",
|
|
1705
1785
|
closeButton: "text-medium",
|
|
1706
1786
|
avatar: "w-4 h-4"
|
|
@@ -2167,12 +2247,12 @@ var badge = tv({
|
|
|
2167
2247
|
badge: "transition-transform-opacity !ease-soft-spring !duration-300"
|
|
2168
2248
|
}
|
|
2169
2249
|
},
|
|
2170
|
-
|
|
2250
|
+
showOutline: {
|
|
2171
2251
|
true: {
|
|
2172
|
-
badge: "border-
|
|
2252
|
+
badge: "border-2 border-background"
|
|
2173
2253
|
},
|
|
2174
2254
|
false: {
|
|
2175
|
-
badge: "border-
|
|
2255
|
+
badge: "border-transparent border-0"
|
|
2176
2256
|
}
|
|
2177
2257
|
}
|
|
2178
2258
|
},
|
|
@@ -2182,7 +2262,7 @@ var badge = tv({
|
|
|
2182
2262
|
size: "md",
|
|
2183
2263
|
shape: "rectangle",
|
|
2184
2264
|
placement: "top-right",
|
|
2185
|
-
|
|
2265
|
+
showOutline: true,
|
|
2186
2266
|
disableAnimation: false,
|
|
2187
2267
|
isInvisible: false
|
|
2188
2268
|
},
|
|
@@ -2591,6 +2671,12 @@ var checkbox = tv({
|
|
|
2591
2671
|
base: "opacity-disabled pointer-events-none"
|
|
2592
2672
|
}
|
|
2593
2673
|
},
|
|
2674
|
+
isInvalid: {
|
|
2675
|
+
true: {
|
|
2676
|
+
wrapper: "before:border-danger",
|
|
2677
|
+
label: "text-danger"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2594
2680
|
disableAnimation: {
|
|
2595
2681
|
true: {
|
|
2596
2682
|
wrapper: "transition-none",
|
|
@@ -2599,15 +2685,16 @@ var checkbox = tv({
|
|
|
2599
2685
|
},
|
|
2600
2686
|
false: {
|
|
2601
2687
|
wrapper: [
|
|
2602
|
-
"before:transition-
|
|
2688
|
+
"before:transition-colors",
|
|
2603
2689
|
"group-data-[pressed=true]:scale-95",
|
|
2604
2690
|
"transition-transform",
|
|
2605
2691
|
"after:transition-transform-opacity",
|
|
2606
2692
|
"after:!ease-linear",
|
|
2607
|
-
"after:!duration-200"
|
|
2693
|
+
"after:!duration-200",
|
|
2694
|
+
"motion-reduce:transition-none"
|
|
2608
2695
|
],
|
|
2609
|
-
icon: "transition-opacity",
|
|
2610
|
-
label: "transition-opacity before:transition-width"
|
|
2696
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
2697
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
2611
2698
|
}
|
|
2612
2699
|
}
|
|
2613
2700
|
},
|
|
@@ -2626,6 +2713,29 @@ var checkboxGroup = tv({
|
|
|
2626
2713
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2627
2714
|
description: "text-small text-foreground-400",
|
|
2628
2715
|
errorMessage: "text-small text-danger"
|
|
2716
|
+
},
|
|
2717
|
+
variants: {
|
|
2718
|
+
isRequired: {
|
|
2719
|
+
true: {
|
|
2720
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2721
|
+
}
|
|
2722
|
+
},
|
|
2723
|
+
isInvalid: {
|
|
2724
|
+
true: {
|
|
2725
|
+
description: "text-danger"
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
disableAnimation: {
|
|
2729
|
+
true: {},
|
|
2730
|
+
false: {
|
|
2731
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
},
|
|
2735
|
+
defaultVariants: {
|
|
2736
|
+
isInvalid: false,
|
|
2737
|
+
isRequired: false,
|
|
2738
|
+
disableAnimation: false
|
|
2629
2739
|
}
|
|
2630
2740
|
});
|
|
2631
2741
|
|
|
@@ -2721,7 +2831,7 @@ var radio = tv({
|
|
|
2721
2831
|
isInvalid: {
|
|
2722
2832
|
true: {
|
|
2723
2833
|
control: "bg-danger text-danger-foreground",
|
|
2724
|
-
wrapper: "border-danger data-[selected=true]:border-danger",
|
|
2834
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2725
2835
|
label: "text-danger",
|
|
2726
2836
|
description: "text-danger-300"
|
|
2727
2837
|
}
|
|
@@ -2729,8 +2839,14 @@ var radio = tv({
|
|
|
2729
2839
|
disableAnimation: {
|
|
2730
2840
|
true: {},
|
|
2731
2841
|
false: {
|
|
2732
|
-
wrapper: [
|
|
2733
|
-
|
|
2842
|
+
wrapper: [
|
|
2843
|
+
"group-data-[pressed=true]:scale-95",
|
|
2844
|
+
"transition-transform-colors",
|
|
2845
|
+
"motion-reduce:transition-none"
|
|
2846
|
+
],
|
|
2847
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
2848
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
2849
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
2734
2850
|
}
|
|
2735
2851
|
}
|
|
2736
2852
|
},
|
|
@@ -2749,6 +2865,29 @@ var radioGroup = tv({
|
|
|
2749
2865
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2750
2866
|
description: "text-tiny text-foreground-400",
|
|
2751
2867
|
errorMessage: "text-tiny text-danger"
|
|
2868
|
+
},
|
|
2869
|
+
variants: {
|
|
2870
|
+
isRequired: {
|
|
2871
|
+
true: {
|
|
2872
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
isInvalid: {
|
|
2876
|
+
true: {
|
|
2877
|
+
description: "text-danger"
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
disableAnimation: {
|
|
2881
|
+
true: {},
|
|
2882
|
+
false: {
|
|
2883
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
},
|
|
2887
|
+
defaultVariants: {
|
|
2888
|
+
isInvalid: false,
|
|
2889
|
+
isRequired: false,
|
|
2890
|
+
disableAnimation: false
|
|
2752
2891
|
}
|
|
2753
2892
|
});
|
|
2754
2893
|
|
|
@@ -2779,6 +2918,7 @@ var pagination = tv({
|
|
|
2779
2918
|
"left-0",
|
|
2780
2919
|
"select-none",
|
|
2781
2920
|
"touch-none",
|
|
2921
|
+
"pointer-events-none",
|
|
2782
2922
|
"z-20"
|
|
2783
2923
|
],
|
|
2784
2924
|
forwardIcon: "hidden group-hover:block group-data-[focus-visible=true]:block data-[before=true]:rotate-180",
|
|
@@ -2868,7 +3008,12 @@ var pagination = tv({
|
|
|
2868
3008
|
},
|
|
2869
3009
|
false: {
|
|
2870
3010
|
item: ["data-[pressed=true]:scale-[0.97]", "transition-transform-background"],
|
|
2871
|
-
cursor: [
|
|
3011
|
+
cursor: [
|
|
3012
|
+
"data-[moving=true]:transition-transform",
|
|
3013
|
+
"!data-[moving=true]:duration-300",
|
|
3014
|
+
"opacity-0",
|
|
3015
|
+
"data-[moving]:opacity-100"
|
|
3016
|
+
]
|
|
2872
3017
|
}
|
|
2873
3018
|
}
|
|
2874
3019
|
},
|
|
@@ -3073,17 +3218,28 @@ var pagination = tv({
|
|
|
3073
3218
|
{
|
|
3074
3219
|
slots: ["item", "prev", "next"],
|
|
3075
3220
|
variant: "flat",
|
|
3076
|
-
class: [
|
|
3221
|
+
class: [
|
|
3222
|
+
"bg-default-100",
|
|
3223
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-200",
|
|
3224
|
+
"active:bg-default-300"
|
|
3225
|
+
]
|
|
3077
3226
|
},
|
|
3078
3227
|
{
|
|
3079
3228
|
slots: ["item", "prev", "next"],
|
|
3080
3229
|
variant: "faded",
|
|
3081
|
-
class: [
|
|
3230
|
+
class: [
|
|
3231
|
+
"bg-default-50",
|
|
3232
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3233
|
+
"active:bg-default-200"
|
|
3234
|
+
]
|
|
3082
3235
|
},
|
|
3083
3236
|
{
|
|
3084
3237
|
slots: ["item", "prev", "next"],
|
|
3085
3238
|
variant: "light",
|
|
3086
|
-
class: [
|
|
3239
|
+
class: [
|
|
3240
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3241
|
+
"active:bg-default-200"
|
|
3242
|
+
]
|
|
3087
3243
|
},
|
|
3088
3244
|
{
|
|
3089
3245
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -3324,7 +3480,7 @@ var accordionItem = tv({
|
|
|
3324
3480
|
],
|
|
3325
3481
|
startContent: "flex-shrink-0",
|
|
3326
3482
|
indicator: "text-default-400",
|
|
3327
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
3483
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
3328
3484
|
title: "text-foreground text-large",
|
|
3329
3485
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
3330
3486
|
content: "py-2"
|
|
@@ -3363,7 +3519,7 @@ var accordionItem = tv({
|
|
|
3363
3519
|
indicator: "transition-none"
|
|
3364
3520
|
},
|
|
3365
3521
|
false: {
|
|
3366
|
-
indicator: "rotate-0 data-[open=true]:-rotate-90"
|
|
3522
|
+
indicator: "rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"
|
|
3367
3523
|
}
|
|
3368
3524
|
}
|
|
3369
3525
|
},
|
|
@@ -3581,11 +3737,24 @@ var circularProgress = tv({
|
|
|
3581
3737
|
var input = tv({
|
|
3582
3738
|
slots: {
|
|
3583
3739
|
base: "group flex flex-col",
|
|
3584
|
-
label:
|
|
3740
|
+
label: [
|
|
3741
|
+
"absolute",
|
|
3742
|
+
"z-10",
|
|
3743
|
+
"pointer-events-none",
|
|
3744
|
+
"origin-top-left",
|
|
3745
|
+
"subpixel-antialiased",
|
|
3746
|
+
"block",
|
|
3747
|
+
"text-small",
|
|
3748
|
+
"text-foreground-500"
|
|
3749
|
+
],
|
|
3585
3750
|
mainWrapper: "h-full",
|
|
3586
3751
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3587
|
-
innerWrapper: "inline-flex
|
|
3588
|
-
input:
|
|
3752
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
3753
|
+
input: [
|
|
3754
|
+
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
3755
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
3756
|
+
"data-[has-end-content=true]:pe-1.5"
|
|
3757
|
+
],
|
|
3589
3758
|
clearButton: [
|
|
3590
3759
|
"p-2",
|
|
3591
3760
|
"-m-2",
|
|
@@ -3654,7 +3823,8 @@ var input = tv({
|
|
|
3654
3823
|
"after:-bottom-[2px]",
|
|
3655
3824
|
"after:h-[2px]",
|
|
3656
3825
|
"group-data-[focus=true]:after:w-full"
|
|
3657
|
-
]
|
|
3826
|
+
],
|
|
3827
|
+
innerWrapper: "pb-1"
|
|
3658
3828
|
}
|
|
3659
3829
|
},
|
|
3660
3830
|
color: {
|
|
@@ -3709,11 +3879,12 @@ var input = tv({
|
|
|
3709
3879
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3710
3880
|
inputWrapper: "flex-1",
|
|
3711
3881
|
mainWrapper: "flex flex-col",
|
|
3712
|
-
label: "text-foreground pr-2"
|
|
3882
|
+
label: "relative text-foreground pr-2"
|
|
3713
3883
|
},
|
|
3714
3884
|
inside: {
|
|
3715
3885
|
label: "text-tiny cursor-text",
|
|
3716
|
-
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
3886
|
+
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3887
|
+
innerWrapper: "items-end"
|
|
3717
3888
|
}
|
|
3718
3889
|
},
|
|
3719
3890
|
fullWidth: {
|
|
@@ -3721,11 +3892,6 @@ var input = tv({
|
|
|
3721
3892
|
base: "w-full"
|
|
3722
3893
|
}
|
|
3723
3894
|
},
|
|
3724
|
-
isLabelPlaceholder: {
|
|
3725
|
-
true: {
|
|
3726
|
-
label: "absolute z-10 pointer-events-none"
|
|
3727
|
-
}
|
|
3728
|
-
},
|
|
3729
3895
|
isClearable: {
|
|
3730
3896
|
true: {
|
|
3731
3897
|
input: "peer pr-6",
|
|
@@ -3752,12 +3918,14 @@ var input = tv({
|
|
|
3752
3918
|
},
|
|
3753
3919
|
isMultiline: {
|
|
3754
3920
|
true: {
|
|
3921
|
+
label: "relative",
|
|
3755
3922
|
inputWrapper: "!h-auto",
|
|
3756
|
-
input: "resize-none py-2"
|
|
3923
|
+
input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
|
|
3757
3924
|
}
|
|
3758
3925
|
},
|
|
3759
3926
|
disableAnimation: {
|
|
3760
3927
|
true: {
|
|
3928
|
+
input: "transition-none",
|
|
3761
3929
|
inputWrapper: "transition-none",
|
|
3762
3930
|
label: "transition-none"
|
|
3763
3931
|
},
|
|
@@ -3765,11 +3933,10 @@ var input = tv({
|
|
|
3765
3933
|
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
3766
3934
|
label: [
|
|
3767
3935
|
"will-change-auto",
|
|
3768
|
-
"origin-top-left",
|
|
3769
|
-
"transition-all",
|
|
3770
3936
|
"!duration-200",
|
|
3771
3937
|
"!ease-out",
|
|
3772
|
-
"motion-reduce:transition-none"
|
|
3938
|
+
"motion-reduce:transition-none",
|
|
3939
|
+
"transition-[transform,color,left,opacity]"
|
|
3773
3940
|
],
|
|
3774
3941
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
3775
3942
|
}
|
|
@@ -3782,6 +3949,7 @@ var input = tv({
|
|
|
3782
3949
|
fullWidth: true,
|
|
3783
3950
|
labelPlacement: "inside",
|
|
3784
3951
|
isDisabled: false,
|
|
3952
|
+
isMultiline: false,
|
|
3785
3953
|
disableAnimation: false
|
|
3786
3954
|
},
|
|
3787
3955
|
compoundVariants: [
|
|
@@ -4029,6 +4197,13 @@ var input = tv({
|
|
|
4029
4197
|
]
|
|
4030
4198
|
}
|
|
4031
4199
|
},
|
|
4200
|
+
{
|
|
4201
|
+
labelPlacement: "inside",
|
|
4202
|
+
color: "default",
|
|
4203
|
+
class: {
|
|
4204
|
+
label: "group-data-[filled-within=true]:text-foreground-600"
|
|
4205
|
+
}
|
|
4206
|
+
},
|
|
4032
4207
|
{
|
|
4033
4208
|
isInvalid: true,
|
|
4034
4209
|
variant: "flat",
|
|
@@ -4077,19 +4252,28 @@ var input = tv({
|
|
|
4077
4252
|
}
|
|
4078
4253
|
},
|
|
4079
4254
|
{
|
|
4080
|
-
|
|
4255
|
+
labelPlacement: "inside",
|
|
4256
|
+
size: "sm",
|
|
4257
|
+
variant: ["bordered", "faded"],
|
|
4258
|
+
class: {
|
|
4259
|
+
inputWrapper: "py-1"
|
|
4260
|
+
}
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4081
4263
|
labelPlacement: ["inside", "outside"],
|
|
4082
4264
|
class: {
|
|
4083
|
-
label: [
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4265
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4266
|
+
}
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
labelPlacement: ["outside", "outside-left"],
|
|
4270
|
+
class: {
|
|
4271
|
+
input: "h-full"
|
|
4088
4272
|
}
|
|
4089
4273
|
},
|
|
4090
4274
|
{
|
|
4091
|
-
isLabelPlaceholder: true,
|
|
4092
4275
|
labelPlacement: "outside",
|
|
4276
|
+
isMultiline: false,
|
|
4093
4277
|
class: {
|
|
4094
4278
|
base: "group relative justify-end",
|
|
4095
4279
|
label: [
|
|
@@ -4104,114 +4288,219 @@ var input = tv({
|
|
|
4104
4288
|
}
|
|
4105
4289
|
},
|
|
4106
4290
|
{
|
|
4107
|
-
|
|
4291
|
+
labelPlacement: ["inside"],
|
|
4292
|
+
class: {
|
|
4293
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
4294
|
+
}
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
labelPlacement: ["inside"],
|
|
4298
|
+
variant: "flat",
|
|
4299
|
+
size: ["md", "lg"],
|
|
4300
|
+
class: {
|
|
4301
|
+
innerWrapper: "pb-0.5"
|
|
4302
|
+
}
|
|
4303
|
+
},
|
|
4304
|
+
{
|
|
4305
|
+
variant: "underlined",
|
|
4306
|
+
size: "sm",
|
|
4307
|
+
class: {
|
|
4308
|
+
innerWrapper: "pb-1"
|
|
4309
|
+
}
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
variant: "underlined",
|
|
4313
|
+
size: ["md", "lg"],
|
|
4314
|
+
class: {
|
|
4315
|
+
innerWrapper: "pb-1.5"
|
|
4316
|
+
}
|
|
4317
|
+
},
|
|
4318
|
+
{
|
|
4108
4319
|
labelPlacement: "inside",
|
|
4109
4320
|
size: ["sm", "md"],
|
|
4110
4321
|
class: {
|
|
4111
|
-
label:
|
|
4112
|
-
input: "pt-4"
|
|
4322
|
+
label: "text-small"
|
|
4113
4323
|
}
|
|
4114
4324
|
},
|
|
4115
4325
|
{
|
|
4116
|
-
isLabelPlaceholder: true,
|
|
4117
4326
|
labelPlacement: "inside",
|
|
4327
|
+
isMultiline: false,
|
|
4118
4328
|
size: "sm",
|
|
4119
4329
|
class: {
|
|
4120
4330
|
label: [
|
|
4121
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
4122
|
-
]
|
|
4123
|
-
input: "pt-4"
|
|
4331
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4332
|
+
]
|
|
4124
4333
|
}
|
|
4125
4334
|
},
|
|
4126
4335
|
{
|
|
4127
|
-
isLabelPlaceholder: true,
|
|
4128
4336
|
labelPlacement: "inside",
|
|
4337
|
+
isMultiline: false,
|
|
4129
4338
|
size: "md",
|
|
4130
4339
|
class: {
|
|
4131
4340
|
label: [
|
|
4132
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
4133
|
-
]
|
|
4134
|
-
input: "pt-4"
|
|
4341
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4342
|
+
]
|
|
4135
4343
|
}
|
|
4136
4344
|
},
|
|
4137
4345
|
{
|
|
4138
|
-
isLabelPlaceholder: true,
|
|
4139
4346
|
labelPlacement: "inside",
|
|
4347
|
+
isMultiline: false,
|
|
4140
4348
|
size: "lg",
|
|
4141
4349
|
class: {
|
|
4142
4350
|
label: [
|
|
4143
4351
|
"text-medium",
|
|
4144
|
-
"group-data-[filled-within=true]
|
|
4145
|
-
|
|
4146
|
-
],
|
|
4147
|
-
input: "pt-5"
|
|
4352
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4353
|
+
]
|
|
4148
4354
|
}
|
|
4149
4355
|
},
|
|
4150
4356
|
{
|
|
4151
|
-
|
|
4152
|
-
|
|
4357
|
+
labelPlacement: "inside",
|
|
4358
|
+
variant: ["faded", "bordered"],
|
|
4359
|
+
isMultiline: false,
|
|
4153
4360
|
size: "sm",
|
|
4154
4361
|
class: {
|
|
4155
4362
|
label: [
|
|
4156
|
-
"
|
|
4157
|
-
"text-small",
|
|
4158
|
-
"group-data-[filled-within=true]:text-tiny",
|
|
4159
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4363
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4160
4364
|
]
|
|
4161
4365
|
}
|
|
4162
4366
|
},
|
|
4163
4367
|
{
|
|
4164
|
-
|
|
4165
|
-
|
|
4368
|
+
labelPlacement: "inside",
|
|
4369
|
+
variant: ["faded", "bordered"],
|
|
4370
|
+
isMultiline: false,
|
|
4166
4371
|
size: "md",
|
|
4167
4372
|
class: {
|
|
4168
4373
|
label: [
|
|
4169
|
-
"
|
|
4170
|
-
"text-small",
|
|
4171
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4374
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4172
4375
|
]
|
|
4173
4376
|
}
|
|
4174
4377
|
},
|
|
4175
4378
|
{
|
|
4176
|
-
|
|
4177
|
-
|
|
4379
|
+
labelPlacement: "inside",
|
|
4380
|
+
variant: ["faded", "bordered"],
|
|
4381
|
+
isMultiline: false,
|
|
4178
4382
|
size: "lg",
|
|
4179
4383
|
class: {
|
|
4180
4384
|
label: [
|
|
4181
|
-
"left-3",
|
|
4182
4385
|
"text-medium",
|
|
4183
|
-
"group-data-[filled-within=true]
|
|
4184
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4386
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4185
4387
|
]
|
|
4186
4388
|
}
|
|
4187
4389
|
},
|
|
4188
4390
|
{
|
|
4189
|
-
labelPlacement: "
|
|
4391
|
+
labelPlacement: "inside",
|
|
4392
|
+
variant: "underlined",
|
|
4393
|
+
isMultiline: false,
|
|
4190
4394
|
size: "sm",
|
|
4191
4395
|
class: {
|
|
4192
|
-
label:
|
|
4396
|
+
label: [
|
|
4397
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4398
|
+
]
|
|
4193
4399
|
}
|
|
4194
4400
|
},
|
|
4195
4401
|
{
|
|
4196
|
-
labelPlacement: "
|
|
4402
|
+
labelPlacement: "inside",
|
|
4403
|
+
variant: "underlined",
|
|
4404
|
+
isMultiline: false,
|
|
4197
4405
|
size: "md",
|
|
4198
4406
|
class: {
|
|
4199
|
-
label:
|
|
4407
|
+
label: [
|
|
4408
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4409
|
+
]
|
|
4200
4410
|
}
|
|
4201
4411
|
},
|
|
4202
4412
|
{
|
|
4203
|
-
labelPlacement: "
|
|
4413
|
+
labelPlacement: "inside",
|
|
4414
|
+
variant: "underlined",
|
|
4204
4415
|
size: "lg",
|
|
4416
|
+
isMultiline: false,
|
|
4205
4417
|
class: {
|
|
4206
|
-
label:
|
|
4418
|
+
label: [
|
|
4419
|
+
"text-medium",
|
|
4420
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4421
|
+
]
|
|
4207
4422
|
}
|
|
4208
|
-
}
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4423
|
+
},
|
|
4424
|
+
{
|
|
4425
|
+
labelPlacement: "outside",
|
|
4426
|
+
size: "sm",
|
|
4427
|
+
isMultiline: false,
|
|
4428
|
+
class: {
|
|
4429
|
+
label: [
|
|
4430
|
+
"left-2",
|
|
4431
|
+
"text-tiny",
|
|
4432
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4433
|
+
],
|
|
4434
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4435
|
+
}
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
labelPlacement: "outside",
|
|
4439
|
+
size: "md",
|
|
4440
|
+
isMultiline: false,
|
|
4441
|
+
class: {
|
|
4442
|
+
label: [
|
|
4443
|
+
"left-3",
|
|
4444
|
+
"text-small",
|
|
4445
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4446
|
+
],
|
|
4447
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4448
|
+
}
|
|
4449
|
+
},
|
|
4450
|
+
{
|
|
4451
|
+
labelPlacement: "outside",
|
|
4452
|
+
size: "lg",
|
|
4453
|
+
isMultiline: false,
|
|
4454
|
+
class: {
|
|
4455
|
+
label: [
|
|
4456
|
+
"left-3",
|
|
4457
|
+
"text-medium",
|
|
4458
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4459
|
+
],
|
|
4460
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4461
|
+
}
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
labelPlacement: "outside-left",
|
|
4465
|
+
size: "sm",
|
|
4466
|
+
class: {
|
|
4467
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
4468
|
+
}
|
|
4469
|
+
},
|
|
4470
|
+
{
|
|
4471
|
+
labelPlacement: "outside-left",
|
|
4472
|
+
size: "md",
|
|
4473
|
+
class: {
|
|
4474
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
4475
|
+
}
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
labelPlacement: "outside-left",
|
|
4479
|
+
size: "lg",
|
|
4480
|
+
class: {
|
|
4481
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
4482
|
+
}
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
labelPlacement: "inside",
|
|
4486
|
+
isMultiline: true,
|
|
4487
|
+
class: {
|
|
4488
|
+
input: "pt-0"
|
|
4489
|
+
}
|
|
4490
|
+
},
|
|
4491
|
+
{
|
|
4492
|
+
isMultiline: true,
|
|
4493
|
+
disableAnimation: false,
|
|
4494
|
+
class: {
|
|
4495
|
+
input: "transition-height !duration-150 motion-reduce:transition-none"
|
|
4496
|
+
}
|
|
4497
|
+
}
|
|
4498
|
+
]
|
|
4499
|
+
});
|
|
4500
|
+
|
|
4501
|
+
// src/components/dropdown.ts
|
|
4502
|
+
var dropdown = tv({
|
|
4503
|
+
base: ["w-full", "p-1", "min-w-[200px]"]
|
|
4215
4504
|
});
|
|
4216
4505
|
var dropdownItem = tv({
|
|
4217
4506
|
slots: {
|
|
@@ -4981,7 +5270,10 @@ var navbar = tv({
|
|
|
4981
5270
|
"gap-2",
|
|
4982
5271
|
"overflow-y-auto"
|
|
4983
5272
|
],
|
|
4984
|
-
menuItem: [
|
|
5273
|
+
menuItem: [
|
|
5274
|
+
"text-large",
|
|
5275
|
+
"data-[active=true]:font-semibold"
|
|
5276
|
+
]
|
|
4985
5277
|
},
|
|
4986
5278
|
variants: {
|
|
4987
5279
|
position: {
|
|
@@ -5694,7 +5986,7 @@ var skeleton = tv({
|
|
|
5694
5986
|
"after:-z-10",
|
|
5695
5987
|
"after:bg-content3",
|
|
5696
5988
|
"dark:after:bg-content2",
|
|
5697
|
-
"data-[loaded=true]
|
|
5989
|
+
"data-[loaded=true]:!bg-transparent",
|
|
5698
5990
|
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
5699
5991
|
"data-[loaded=true]:after:opacity-0"
|
|
5700
5992
|
],
|
|
@@ -5721,16 +6013,25 @@ var skeleton = tv({
|
|
|
5721
6013
|
var select = tv({
|
|
5722
6014
|
slots: {
|
|
5723
6015
|
base: "group inline-flex flex-col relative w-full",
|
|
5724
|
-
label:
|
|
6016
|
+
label: [
|
|
6017
|
+
"block",
|
|
6018
|
+
"absolute",
|
|
6019
|
+
"z-10",
|
|
6020
|
+
"origin-top-left",
|
|
6021
|
+
"subpixel-antialiased",
|
|
6022
|
+
"text-small",
|
|
6023
|
+
"text-foreground-500",
|
|
6024
|
+
"pointer-events-none"
|
|
6025
|
+
],
|
|
5725
6026
|
mainWrapper: "w-full flex flex-col",
|
|
5726
6027
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
5727
6028
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
5728
6029
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
5729
6030
|
spinner: "absolute right-3",
|
|
5730
|
-
value: "font-normal w-full text-left
|
|
6031
|
+
value: ["font-normal", "w-full", "text-left"],
|
|
5731
6032
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
5732
6033
|
listbox: "",
|
|
5733
|
-
|
|
6034
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
5734
6035
|
helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
|
|
5735
6036
|
description: "text-tiny text-foreground-400",
|
|
5736
6037
|
errorMessage: "text-tiny text-danger"
|
|
@@ -5788,7 +6089,9 @@ var select = tv({
|
|
|
5788
6089
|
}
|
|
5789
6090
|
},
|
|
5790
6091
|
color: {
|
|
5791
|
-
default: {
|
|
6092
|
+
default: {
|
|
6093
|
+
value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
|
|
6094
|
+
},
|
|
5792
6095
|
primary: {},
|
|
5793
6096
|
secondary: {},
|
|
5794
6097
|
success: {},
|
|
@@ -5834,7 +6137,7 @@ var select = tv({
|
|
|
5834
6137
|
},
|
|
5835
6138
|
"outside-left": {
|
|
5836
6139
|
base: "flex-row items-center flex-nowrap items-start",
|
|
5837
|
-
label: "text-foreground pr-2"
|
|
6140
|
+
label: "relative text-foreground pr-2"
|
|
5838
6141
|
},
|
|
5839
6142
|
inside: {
|
|
5840
6143
|
label: "text-tiny cursor-pointer",
|
|
@@ -5846,11 +6149,6 @@ var select = tv({
|
|
|
5846
6149
|
base: "w-full"
|
|
5847
6150
|
}
|
|
5848
6151
|
},
|
|
5849
|
-
isLabelPlaceholder: {
|
|
5850
|
-
true: {
|
|
5851
|
-
label: "absolute z-10"
|
|
5852
|
-
}
|
|
5853
|
-
},
|
|
5854
6152
|
isDisabled: {
|
|
5855
6153
|
true: {
|
|
5856
6154
|
base: "opacity-disabled pointer-events-none",
|
|
@@ -5860,7 +6158,7 @@ var select = tv({
|
|
|
5860
6158
|
isInvalid: {
|
|
5861
6159
|
true: {
|
|
5862
6160
|
label: "!text-danger",
|
|
5863
|
-
value: "text-danger",
|
|
6161
|
+
value: "!text-danger",
|
|
5864
6162
|
selectorIcon: "text-danger"
|
|
5865
6163
|
}
|
|
5866
6164
|
},
|
|
@@ -5889,9 +6187,9 @@ var select = tv({
|
|
|
5889
6187
|
label: [
|
|
5890
6188
|
"will-change-auto",
|
|
5891
6189
|
"origin-top-left",
|
|
5892
|
-
"transition-all",
|
|
5893
6190
|
"!duration-200",
|
|
5894
6191
|
"!ease-out",
|
|
6192
|
+
"transition-[transform,color,left,opacity]",
|
|
5895
6193
|
"motion-reduce:transition-none"
|
|
5896
6194
|
],
|
|
5897
6195
|
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
@@ -6152,6 +6450,13 @@ var select = tv({
|
|
|
6152
6450
|
]
|
|
6153
6451
|
}
|
|
6154
6452
|
},
|
|
6453
|
+
{
|
|
6454
|
+
labelPlacement: "inside",
|
|
6455
|
+
color: "default",
|
|
6456
|
+
class: {
|
|
6457
|
+
label: "group-data-[filled=true]:text-foreground-600"
|
|
6458
|
+
}
|
|
6459
|
+
},
|
|
6155
6460
|
{
|
|
6156
6461
|
isInvalid: true,
|
|
6157
6462
|
variant: "flat",
|
|
@@ -6200,18 +6505,12 @@ var select = tv({
|
|
|
6200
6505
|
}
|
|
6201
6506
|
},
|
|
6202
6507
|
{
|
|
6203
|
-
isLabelPlaceholder: true,
|
|
6204
6508
|
labelPlacement: ["inside", "outside"],
|
|
6205
6509
|
class: {
|
|
6206
|
-
label: [
|
|
6207
|
-
"font-normal",
|
|
6208
|
-
"group-data-[filled=true]:font-medium",
|
|
6209
|
-
"group-data-[filled=true]:pointer-events-auto"
|
|
6210
|
-
]
|
|
6510
|
+
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
6211
6511
|
}
|
|
6212
6512
|
},
|
|
6213
6513
|
{
|
|
6214
|
-
isLabelPlaceholder: true,
|
|
6215
6514
|
labelPlacement: "outside",
|
|
6216
6515
|
class: {
|
|
6217
6516
|
base: "group relative justify-end",
|
|
@@ -6227,62 +6526,121 @@ var select = tv({
|
|
|
6227
6526
|
}
|
|
6228
6527
|
},
|
|
6229
6528
|
{
|
|
6230
|
-
|
|
6529
|
+
labelPlacement: ["inside"],
|
|
6530
|
+
class: {
|
|
6531
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6532
|
+
}
|
|
6533
|
+
},
|
|
6534
|
+
{
|
|
6231
6535
|
labelPlacement: "inside",
|
|
6232
6536
|
size: ["sm", "md"],
|
|
6233
6537
|
class: {
|
|
6234
|
-
label:
|
|
6538
|
+
label: "text-small",
|
|
6235
6539
|
input: "pt-4"
|
|
6236
6540
|
}
|
|
6237
6541
|
},
|
|
6238
6542
|
{
|
|
6239
|
-
isLabelPlaceholder: true,
|
|
6240
6543
|
labelPlacement: "inside",
|
|
6241
6544
|
size: "sm",
|
|
6242
6545
|
class: {
|
|
6243
|
-
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
6546
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6244
6547
|
innerWrapper: "pt-4"
|
|
6245
6548
|
}
|
|
6246
6549
|
},
|
|
6247
6550
|
{
|
|
6248
|
-
isLabelPlaceholder: true,
|
|
6249
6551
|
labelPlacement: "inside",
|
|
6250
6552
|
size: "md",
|
|
6251
6553
|
class: {
|
|
6252
6554
|
label: [
|
|
6253
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
6555
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6254
6556
|
],
|
|
6255
6557
|
innerWrapper: "pt-4"
|
|
6256
6558
|
}
|
|
6257
6559
|
},
|
|
6258
6560
|
{
|
|
6259
|
-
isLabelPlaceholder: true,
|
|
6260
6561
|
labelPlacement: "inside",
|
|
6261
6562
|
size: "lg",
|
|
6262
6563
|
class: {
|
|
6263
6564
|
label: [
|
|
6264
6565
|
"text-medium",
|
|
6265
|
-
"group-data-[filled=true]
|
|
6266
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
6566
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6267
6567
|
],
|
|
6268
6568
|
innerWrapper: "pt-5"
|
|
6269
6569
|
}
|
|
6270
6570
|
},
|
|
6271
6571
|
{
|
|
6272
|
-
|
|
6572
|
+
labelPlacement: "inside",
|
|
6573
|
+
variant: ["faded", "bordered"],
|
|
6574
|
+
size: "sm",
|
|
6575
|
+
class: {
|
|
6576
|
+
label: [
|
|
6577
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6578
|
+
]
|
|
6579
|
+
}
|
|
6580
|
+
},
|
|
6581
|
+
{
|
|
6582
|
+
labelPlacement: "inside",
|
|
6583
|
+
variant: ["faded", "bordered"],
|
|
6584
|
+
size: "md",
|
|
6585
|
+
class: {
|
|
6586
|
+
label: [
|
|
6587
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6588
|
+
]
|
|
6589
|
+
}
|
|
6590
|
+
},
|
|
6591
|
+
{
|
|
6592
|
+
labelPlacement: "inside",
|
|
6593
|
+
variant: ["faded", "bordered"],
|
|
6594
|
+
size: "lg",
|
|
6595
|
+
class: {
|
|
6596
|
+
label: [
|
|
6597
|
+
"text-medium",
|
|
6598
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6599
|
+
]
|
|
6600
|
+
}
|
|
6601
|
+
},
|
|
6602
|
+
{
|
|
6603
|
+
labelPlacement: "inside",
|
|
6604
|
+
variant: "underlined",
|
|
6605
|
+
size: "sm",
|
|
6606
|
+
class: {
|
|
6607
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6608
|
+
}
|
|
6609
|
+
},
|
|
6610
|
+
{
|
|
6611
|
+
labelPlacement: "inside",
|
|
6612
|
+
variant: "underlined",
|
|
6613
|
+
size: "md",
|
|
6614
|
+
class: {
|
|
6615
|
+
label: [
|
|
6616
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6617
|
+
]
|
|
6618
|
+
}
|
|
6619
|
+
},
|
|
6620
|
+
{
|
|
6621
|
+
labelPlacement: "inside",
|
|
6622
|
+
variant: "underlined",
|
|
6623
|
+
size: "lg",
|
|
6624
|
+
class: {
|
|
6625
|
+
label: [
|
|
6626
|
+
"text-medium",
|
|
6627
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6628
|
+
]
|
|
6629
|
+
}
|
|
6630
|
+
},
|
|
6631
|
+
{
|
|
6273
6632
|
labelPlacement: "outside",
|
|
6274
6633
|
size: "sm",
|
|
6275
6634
|
class: {
|
|
6276
6635
|
label: [
|
|
6277
6636
|
"left-2",
|
|
6278
|
-
"text-
|
|
6279
|
-
"group-data-[filled=true]:text-tiny",
|
|
6637
|
+
"text-tiny",
|
|
6280
6638
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6281
|
-
]
|
|
6639
|
+
],
|
|
6640
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6282
6641
|
}
|
|
6283
6642
|
},
|
|
6284
6643
|
{
|
|
6285
|
-
isLabelPlaceholder: true,
|
|
6286
6644
|
labelPlacement: "outside",
|
|
6287
6645
|
size: "md",
|
|
6288
6646
|
class: {
|
|
@@ -6290,20 +6648,20 @@ var select = tv({
|
|
|
6290
6648
|
"left-3",
|
|
6291
6649
|
"text-small",
|
|
6292
6650
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6293
|
-
]
|
|
6651
|
+
],
|
|
6652
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6294
6653
|
}
|
|
6295
6654
|
},
|
|
6296
6655
|
{
|
|
6297
|
-
isLabelPlaceholder: true,
|
|
6298
6656
|
labelPlacement: "outside",
|
|
6299
6657
|
size: "lg",
|
|
6300
6658
|
class: {
|
|
6301
6659
|
label: [
|
|
6302
6660
|
"left-3",
|
|
6303
6661
|
"text-medium",
|
|
6304
|
-
"group-data-[filled=true]:text-small",
|
|
6305
6662
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6306
|
-
]
|
|
6663
|
+
],
|
|
6664
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6307
6665
|
}
|
|
6308
6666
|
}
|
|
6309
6667
|
]
|
|
@@ -6311,7 +6669,19 @@ var select = tv({
|
|
|
6311
6669
|
|
|
6312
6670
|
// src/components/menu.ts
|
|
6313
6671
|
var menu = tv({
|
|
6314
|
-
|
|
6672
|
+
slots: {
|
|
6673
|
+
base: "w-full relative flex flex-col gap-1 p-1",
|
|
6674
|
+
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6675
|
+
emptyContent: [
|
|
6676
|
+
"h-10",
|
|
6677
|
+
"px-2",
|
|
6678
|
+
"py-1.5",
|
|
6679
|
+
"w-full",
|
|
6680
|
+
"h-full",
|
|
6681
|
+
"text-foreground-400",
|
|
6682
|
+
"text-start"
|
|
6683
|
+
]
|
|
6684
|
+
}
|
|
6315
6685
|
});
|
|
6316
6686
|
var menuItem = tv({
|
|
6317
6687
|
slots: {
|
|
@@ -6405,7 +6775,9 @@ var menuItem = tv({
|
|
|
6405
6775
|
},
|
|
6406
6776
|
disableAnimation: {
|
|
6407
6777
|
true: {},
|
|
6408
|
-
false: {
|
|
6778
|
+
false: {
|
|
6779
|
+
base: "data-[hover=true]:transition-colors"
|
|
6780
|
+
}
|
|
6409
6781
|
}
|
|
6410
6782
|
},
|
|
6411
6783
|
defaultVariants: {
|
|
@@ -6785,13 +7157,680 @@ var scrollShadow = tv({
|
|
|
6785
7157
|
hideScrollBar: false
|
|
6786
7158
|
}
|
|
6787
7159
|
});
|
|
7160
|
+
|
|
7161
|
+
// src/components/slider.ts
|
|
7162
|
+
var slider = tv({
|
|
7163
|
+
slots: {
|
|
7164
|
+
base: "flex flex-col w-full gap-1",
|
|
7165
|
+
labelWrapper: "w-full flex justify-between items-center",
|
|
7166
|
+
label: "",
|
|
7167
|
+
value: "",
|
|
7168
|
+
step: [
|
|
7169
|
+
"h-1.5",
|
|
7170
|
+
"w-1.5",
|
|
7171
|
+
"absolute",
|
|
7172
|
+
"rounded-full",
|
|
7173
|
+
"bg-default-300/50",
|
|
7174
|
+
"data-[in-range=true]:bg-background/50"
|
|
7175
|
+
],
|
|
7176
|
+
mark: [
|
|
7177
|
+
"absolute",
|
|
7178
|
+
"text-small",
|
|
7179
|
+
"cursor-default",
|
|
7180
|
+
"opacity-50",
|
|
7181
|
+
"data-[in-range=true]:opacity-100"
|
|
7182
|
+
],
|
|
7183
|
+
trackWrapper: "relative flex gap-2",
|
|
7184
|
+
track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
|
|
7185
|
+
filler: "h-full absolute",
|
|
7186
|
+
thumb: [
|
|
7187
|
+
"flex",
|
|
7188
|
+
"justify-center",
|
|
7189
|
+
"items-center",
|
|
7190
|
+
"before:absolute",
|
|
7191
|
+
"before:w-11",
|
|
7192
|
+
"before:h-11",
|
|
7193
|
+
"before:rounded-full",
|
|
7194
|
+
"after:shadow-small",
|
|
7195
|
+
"after:shadow-small",
|
|
7196
|
+
"after:bg-background",
|
|
7197
|
+
"data-[focused=true]:z-10",
|
|
7198
|
+
dataFocusVisibleClasses
|
|
7199
|
+
],
|
|
7200
|
+
startContent: [],
|
|
7201
|
+
endContent: []
|
|
7202
|
+
},
|
|
7203
|
+
variants: {
|
|
7204
|
+
size: {
|
|
7205
|
+
sm: {
|
|
7206
|
+
label: "text-small",
|
|
7207
|
+
value: "text-small",
|
|
7208
|
+
thumb: "w-5 h-5 after:w-4 after:h-4",
|
|
7209
|
+
step: "data-[in-range=false]:bg-default-200"
|
|
7210
|
+
},
|
|
7211
|
+
md: {
|
|
7212
|
+
thumb: "w-6 h-6 after:w-5 after:h-5",
|
|
7213
|
+
label: "text-small",
|
|
7214
|
+
value: "text-small"
|
|
7215
|
+
},
|
|
7216
|
+
lg: {
|
|
7217
|
+
thumb: "h-7 w-7 after:w-5 after:h-5",
|
|
7218
|
+
step: "w-2 h-2",
|
|
7219
|
+
label: "text-medium",
|
|
7220
|
+
value: "text-medium",
|
|
7221
|
+
mark: "mt-2"
|
|
7222
|
+
}
|
|
7223
|
+
},
|
|
7224
|
+
radius: {
|
|
7225
|
+
none: {
|
|
7226
|
+
thumb: "rounded-none after:rounded-none"
|
|
7227
|
+
},
|
|
7228
|
+
sm: {
|
|
7229
|
+
thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
|
|
7230
|
+
},
|
|
7231
|
+
md: {
|
|
7232
|
+
thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
|
|
7233
|
+
},
|
|
7234
|
+
lg: {
|
|
7235
|
+
thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
|
|
7236
|
+
},
|
|
7237
|
+
full: {
|
|
7238
|
+
thumb: "rounded-full after:rounded-full"
|
|
7239
|
+
}
|
|
7240
|
+
},
|
|
7241
|
+
color: {
|
|
7242
|
+
foreground: {
|
|
7243
|
+
filler: "bg-foreground",
|
|
7244
|
+
thumb: "bg-foreground"
|
|
7245
|
+
},
|
|
7246
|
+
primary: {
|
|
7247
|
+
filler: "bg-primary",
|
|
7248
|
+
thumb: "bg-primary"
|
|
7249
|
+
},
|
|
7250
|
+
secondary: {
|
|
7251
|
+
filler: "bg-secondary",
|
|
7252
|
+
thumb: "bg-secondary"
|
|
7253
|
+
},
|
|
7254
|
+
success: {
|
|
7255
|
+
filler: "bg-success",
|
|
7256
|
+
thumb: "bg-success"
|
|
7257
|
+
},
|
|
7258
|
+
warning: {
|
|
7259
|
+
filler: "bg-warning",
|
|
7260
|
+
thumb: "bg-warning"
|
|
7261
|
+
},
|
|
7262
|
+
danger: {
|
|
7263
|
+
filler: "bg-danger",
|
|
7264
|
+
thumb: "bg-danger"
|
|
7265
|
+
}
|
|
7266
|
+
},
|
|
7267
|
+
isVertical: {
|
|
7268
|
+
true: {
|
|
7269
|
+
base: "w-auto h-full flex-col-reverse items-center",
|
|
7270
|
+
trackWrapper: "flex-col h-full justify-center items-center",
|
|
7271
|
+
filler: "w-full h-auto",
|
|
7272
|
+
thumb: "left-1/2",
|
|
7273
|
+
track: "h-full border-y-transparent",
|
|
7274
|
+
labelWrapper: "flex-col justify-center items-center",
|
|
7275
|
+
step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
|
|
7276
|
+
mark: ["left-1/2", "ml-1", "translate-x-1/2", "-translate-y-1/2"]
|
|
7277
|
+
},
|
|
7278
|
+
false: {
|
|
7279
|
+
thumb: "top-1/2",
|
|
7280
|
+
trackWrapper: "items-center",
|
|
7281
|
+
track: "border-x-transparent",
|
|
7282
|
+
step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
|
|
7283
|
+
mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
|
|
7284
|
+
}
|
|
7285
|
+
},
|
|
7286
|
+
isDisabled: {
|
|
7287
|
+
false: {
|
|
7288
|
+
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
7289
|
+
},
|
|
7290
|
+
true: {
|
|
7291
|
+
base: "opacity-disabled",
|
|
7292
|
+
thumb: "cursor-default"
|
|
7293
|
+
}
|
|
7294
|
+
},
|
|
7295
|
+
hasMarks: {
|
|
7296
|
+
true: {
|
|
7297
|
+
base: "mb-5"
|
|
7298
|
+
},
|
|
7299
|
+
false: {}
|
|
7300
|
+
},
|
|
7301
|
+
showOutline: {
|
|
7302
|
+
true: {
|
|
7303
|
+
thumb: "ring-2 ring-background"
|
|
7304
|
+
},
|
|
7305
|
+
false: {
|
|
7306
|
+
thumb: "ring-transparent border-0"
|
|
7307
|
+
}
|
|
7308
|
+
},
|
|
7309
|
+
hideValue: {
|
|
7310
|
+
true: {
|
|
7311
|
+
value: "sr-only"
|
|
7312
|
+
}
|
|
7313
|
+
},
|
|
7314
|
+
hideThumb: {
|
|
7315
|
+
true: {
|
|
7316
|
+
thumb: "sr-only",
|
|
7317
|
+
track: "overflow-hidden cursor-pointer"
|
|
7318
|
+
}
|
|
7319
|
+
},
|
|
7320
|
+
hasSingleThumb: {
|
|
7321
|
+
true: {},
|
|
7322
|
+
false: {}
|
|
7323
|
+
},
|
|
7324
|
+
disableAnimation: {
|
|
7325
|
+
true: {
|
|
7326
|
+
thumb: "data-[dragging=true]:after:scale-100"
|
|
7327
|
+
},
|
|
7328
|
+
false: {
|
|
7329
|
+
thumb: "after:transition-all motion-reduce:after:transition-none",
|
|
7330
|
+
mark: "transition-opacity motion-reduce:transition-none"
|
|
7331
|
+
}
|
|
7332
|
+
},
|
|
7333
|
+
disableThumbScale: {
|
|
7334
|
+
true: {},
|
|
7335
|
+
false: {
|
|
7336
|
+
thumb: "data-[dragging=true]:after:scale-80"
|
|
7337
|
+
}
|
|
7338
|
+
}
|
|
7339
|
+
},
|
|
7340
|
+
compoundVariants: [
|
|
7341
|
+
{
|
|
7342
|
+
size: ["sm", "md"],
|
|
7343
|
+
showOutline: false,
|
|
7344
|
+
class: {
|
|
7345
|
+
thumb: "shadow-small"
|
|
7346
|
+
}
|
|
7347
|
+
},
|
|
7348
|
+
{
|
|
7349
|
+
size: "sm",
|
|
7350
|
+
color: "foreground",
|
|
7351
|
+
class: {
|
|
7352
|
+
step: "data-[in-range=true]:bg-foreground"
|
|
7353
|
+
}
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
size: "sm",
|
|
7357
|
+
color: "primary",
|
|
7358
|
+
class: {
|
|
7359
|
+
step: "data-[in-range=true]:bg-primary"
|
|
7360
|
+
}
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
size: "sm",
|
|
7364
|
+
color: "secondary",
|
|
7365
|
+
class: {
|
|
7366
|
+
step: "data-[in-range=true]:bg-secondary"
|
|
7367
|
+
}
|
|
7368
|
+
},
|
|
7369
|
+
{
|
|
7370
|
+
size: "sm",
|
|
7371
|
+
color: "success",
|
|
7372
|
+
class: {
|
|
7373
|
+
step: "data-[in-range=true]:bg-success"
|
|
7374
|
+
}
|
|
7375
|
+
},
|
|
7376
|
+
{
|
|
7377
|
+
size: "sm",
|
|
7378
|
+
color: "warning",
|
|
7379
|
+
class: {
|
|
7380
|
+
step: "data-[in-range=true]:bg-warning"
|
|
7381
|
+
}
|
|
7382
|
+
},
|
|
7383
|
+
{
|
|
7384
|
+
size: "sm",
|
|
7385
|
+
color: "danger",
|
|
7386
|
+
class: {
|
|
7387
|
+
step: "data-[in-range=true]:bg-danger"
|
|
7388
|
+
}
|
|
7389
|
+
},
|
|
7390
|
+
{
|
|
7391
|
+
size: "sm",
|
|
7392
|
+
isVertical: false,
|
|
7393
|
+
class: {
|
|
7394
|
+
track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
|
|
7395
|
+
}
|
|
7396
|
+
},
|
|
7397
|
+
{
|
|
7398
|
+
size: "md",
|
|
7399
|
+
isVertical: false,
|
|
7400
|
+
class: {
|
|
7401
|
+
track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
|
|
7402
|
+
}
|
|
7403
|
+
},
|
|
7404
|
+
{
|
|
7405
|
+
size: "lg",
|
|
7406
|
+
isVertical: false,
|
|
7407
|
+
class: {
|
|
7408
|
+
track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
|
|
7409
|
+
}
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
size: "sm",
|
|
7413
|
+
isVertical: true,
|
|
7414
|
+
class: {
|
|
7415
|
+
track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
|
|
7416
|
+
}
|
|
7417
|
+
},
|
|
7418
|
+
{
|
|
7419
|
+
size: "md",
|
|
7420
|
+
isVertical: true,
|
|
7421
|
+
class: {
|
|
7422
|
+
track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
|
|
7423
|
+
}
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
size: "lg",
|
|
7427
|
+
isVertical: true,
|
|
7428
|
+
class: {
|
|
7429
|
+
track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
|
|
7430
|
+
}
|
|
7431
|
+
},
|
|
7432
|
+
{
|
|
7433
|
+
color: "foreground",
|
|
7434
|
+
isVertical: false,
|
|
7435
|
+
hasSingleThumb: true,
|
|
7436
|
+
class: {
|
|
7437
|
+
track: "border-s-foreground"
|
|
7438
|
+
}
|
|
7439
|
+
},
|
|
7440
|
+
{
|
|
7441
|
+
color: "primary",
|
|
7442
|
+
isVertical: false,
|
|
7443
|
+
hasSingleThumb: true,
|
|
7444
|
+
class: {
|
|
7445
|
+
track: "border-s-primary"
|
|
7446
|
+
}
|
|
7447
|
+
},
|
|
7448
|
+
{
|
|
7449
|
+
color: "secondary",
|
|
7450
|
+
isVertical: false,
|
|
7451
|
+
hasSingleThumb: true,
|
|
7452
|
+
class: {
|
|
7453
|
+
track: "border-s-secondary"
|
|
7454
|
+
}
|
|
7455
|
+
},
|
|
7456
|
+
{
|
|
7457
|
+
color: "success",
|
|
7458
|
+
isVertical: false,
|
|
7459
|
+
hasSingleThumb: true,
|
|
7460
|
+
class: {
|
|
7461
|
+
track: "border-s-success"
|
|
7462
|
+
}
|
|
7463
|
+
},
|
|
7464
|
+
{
|
|
7465
|
+
color: "warning",
|
|
7466
|
+
isVertical: false,
|
|
7467
|
+
hasSingleThumb: true,
|
|
7468
|
+
class: {
|
|
7469
|
+
track: "border-s-warning"
|
|
7470
|
+
}
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
color: "danger",
|
|
7474
|
+
isVertical: false,
|
|
7475
|
+
hasSingleThumb: true,
|
|
7476
|
+
class: {
|
|
7477
|
+
track: "border-s-danger"
|
|
7478
|
+
}
|
|
7479
|
+
},
|
|
7480
|
+
{
|
|
7481
|
+
color: "foreground",
|
|
7482
|
+
isVertical: true,
|
|
7483
|
+
hasSingleThumb: true,
|
|
7484
|
+
class: {
|
|
7485
|
+
track: "border-b-foreground"
|
|
7486
|
+
}
|
|
7487
|
+
},
|
|
7488
|
+
{
|
|
7489
|
+
color: "primary",
|
|
7490
|
+
isVertical: true,
|
|
7491
|
+
hasSingleThumb: true,
|
|
7492
|
+
class: {
|
|
7493
|
+
track: "border-b-primary"
|
|
7494
|
+
}
|
|
7495
|
+
},
|
|
7496
|
+
{
|
|
7497
|
+
color: "secondary",
|
|
7498
|
+
isVertical: true,
|
|
7499
|
+
hasSingleThumb: true,
|
|
7500
|
+
class: {
|
|
7501
|
+
track: "border-b-secondary"
|
|
7502
|
+
}
|
|
7503
|
+
},
|
|
7504
|
+
{
|
|
7505
|
+
color: "success",
|
|
7506
|
+
isVertical: true,
|
|
7507
|
+
hasSingleThumb: true,
|
|
7508
|
+
class: {
|
|
7509
|
+
track: "border-b-success"
|
|
7510
|
+
}
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
color: "warning",
|
|
7514
|
+
isVertical: true,
|
|
7515
|
+
hasSingleThumb: true,
|
|
7516
|
+
class: {
|
|
7517
|
+
track: "border-b-warning"
|
|
7518
|
+
}
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
color: "danger",
|
|
7522
|
+
isVertical: true,
|
|
7523
|
+
hasSingleThumb: true,
|
|
7524
|
+
class: {
|
|
7525
|
+
track: "border-b-danger"
|
|
7526
|
+
}
|
|
7527
|
+
}
|
|
7528
|
+
],
|
|
7529
|
+
defaultVariants: {
|
|
7530
|
+
size: "md",
|
|
7531
|
+
color: "primary",
|
|
7532
|
+
radius: "full",
|
|
7533
|
+
hideValue: false,
|
|
7534
|
+
hideThumb: false,
|
|
7535
|
+
isDisabled: false,
|
|
7536
|
+
disableThumbScale: false,
|
|
7537
|
+
disableAnimation: false,
|
|
7538
|
+
showOutline: false
|
|
7539
|
+
}
|
|
7540
|
+
});
|
|
7541
|
+
|
|
7542
|
+
// src/components/breadcrumbs.ts
|
|
7543
|
+
var breadcrumbItem = tv({
|
|
7544
|
+
slots: {
|
|
7545
|
+
base: "flex items-center",
|
|
7546
|
+
item: [
|
|
7547
|
+
"flex gap-1 items-center",
|
|
7548
|
+
"cursor-pointer",
|
|
7549
|
+
"whitespace-nowrap",
|
|
7550
|
+
"line-clamp-1",
|
|
7551
|
+
"outline-none",
|
|
7552
|
+
"tap-highlight-transparent",
|
|
7553
|
+
...dataFocusVisibleClasses
|
|
7554
|
+
],
|
|
7555
|
+
separator: "text-default-400 px-1"
|
|
7556
|
+
},
|
|
7557
|
+
variants: {
|
|
7558
|
+
color: {
|
|
7559
|
+
foreground: {
|
|
7560
|
+
item: "text-foreground/50",
|
|
7561
|
+
separator: "text-foreground/50"
|
|
7562
|
+
},
|
|
7563
|
+
primary: {
|
|
7564
|
+
item: "text-primary/80",
|
|
7565
|
+
separator: "text-primary/80"
|
|
7566
|
+
},
|
|
7567
|
+
secondary: {
|
|
7568
|
+
item: "text-secondary/80",
|
|
7569
|
+
separator: "text-secondary/80"
|
|
7570
|
+
},
|
|
7571
|
+
success: {
|
|
7572
|
+
item: "text-success/80",
|
|
7573
|
+
separator: "text-success/80"
|
|
7574
|
+
},
|
|
7575
|
+
warning: {
|
|
7576
|
+
item: "text-warning/80",
|
|
7577
|
+
separator: "text-warning/80"
|
|
7578
|
+
},
|
|
7579
|
+
danger: {
|
|
7580
|
+
item: "text-danger/80",
|
|
7581
|
+
separator: "text-danger/80"
|
|
7582
|
+
}
|
|
7583
|
+
},
|
|
7584
|
+
size: {
|
|
7585
|
+
sm: {
|
|
7586
|
+
item: "text-tiny"
|
|
7587
|
+
},
|
|
7588
|
+
md: {
|
|
7589
|
+
item: "text-small"
|
|
7590
|
+
},
|
|
7591
|
+
lg: {
|
|
7592
|
+
item: "text-medium"
|
|
7593
|
+
}
|
|
7594
|
+
},
|
|
7595
|
+
underline: {
|
|
7596
|
+
none: {
|
|
7597
|
+
item: "no-underline"
|
|
7598
|
+
},
|
|
7599
|
+
hover: {
|
|
7600
|
+
item: "hover:underline"
|
|
7601
|
+
},
|
|
7602
|
+
always: {
|
|
7603
|
+
item: "underline"
|
|
7604
|
+
},
|
|
7605
|
+
active: {
|
|
7606
|
+
item: "active:underline"
|
|
7607
|
+
},
|
|
7608
|
+
focus: {
|
|
7609
|
+
item: "focus:underline"
|
|
7610
|
+
}
|
|
7611
|
+
},
|
|
7612
|
+
isCurrent: {
|
|
7613
|
+
true: {
|
|
7614
|
+
item: "cursor-default"
|
|
7615
|
+
},
|
|
7616
|
+
false: {
|
|
7617
|
+
item: ["hover:opacity-80", "active:opacity-disabled"]
|
|
7618
|
+
}
|
|
7619
|
+
},
|
|
7620
|
+
isDisabled: {
|
|
7621
|
+
true: {
|
|
7622
|
+
item: "opacity-disabled pointer-events-none",
|
|
7623
|
+
separator: "opacity-disabled"
|
|
7624
|
+
}
|
|
7625
|
+
},
|
|
7626
|
+
disableAnimation: {
|
|
7627
|
+
false: {
|
|
7628
|
+
item: "transition-opacity"
|
|
7629
|
+
},
|
|
7630
|
+
true: {
|
|
7631
|
+
item: "transition-none"
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
},
|
|
7635
|
+
defaultVariants: {
|
|
7636
|
+
size: "md",
|
|
7637
|
+
color: "foreground",
|
|
7638
|
+
underline: "hover",
|
|
7639
|
+
isDisabled: false,
|
|
7640
|
+
disableAnimation: false
|
|
7641
|
+
},
|
|
7642
|
+
compoundVariants: [
|
|
7643
|
+
{
|
|
7644
|
+
isCurrent: true,
|
|
7645
|
+
color: "foreground",
|
|
7646
|
+
class: {
|
|
7647
|
+
item: "text-foreground"
|
|
7648
|
+
}
|
|
7649
|
+
},
|
|
7650
|
+
{
|
|
7651
|
+
isCurrent: true,
|
|
7652
|
+
color: "primary",
|
|
7653
|
+
class: {
|
|
7654
|
+
item: "text-primary"
|
|
7655
|
+
}
|
|
7656
|
+
},
|
|
7657
|
+
{
|
|
7658
|
+
isCurrent: true,
|
|
7659
|
+
color: "secondary",
|
|
7660
|
+
class: {
|
|
7661
|
+
item: "text-secondary"
|
|
7662
|
+
}
|
|
7663
|
+
},
|
|
7664
|
+
{
|
|
7665
|
+
isCurrent: true,
|
|
7666
|
+
color: "success",
|
|
7667
|
+
class: {
|
|
7668
|
+
item: "text-success"
|
|
7669
|
+
}
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
isCurrent: true,
|
|
7673
|
+
color: "warning",
|
|
7674
|
+
class: {
|
|
7675
|
+
item: "text-warning"
|
|
7676
|
+
}
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
isCurrent: true,
|
|
7680
|
+
color: "danger",
|
|
7681
|
+
class: {
|
|
7682
|
+
item: "text-danger"
|
|
7683
|
+
}
|
|
7684
|
+
},
|
|
7685
|
+
{
|
|
7686
|
+
isCurrent: false,
|
|
7687
|
+
underline: "none",
|
|
7688
|
+
class: {
|
|
7689
|
+
item: "no-underline"
|
|
7690
|
+
}
|
|
7691
|
+
},
|
|
7692
|
+
{
|
|
7693
|
+
underline: ["hover", "always", "active", "focus"],
|
|
7694
|
+
class: "underline-offset-4"
|
|
7695
|
+
}
|
|
7696
|
+
]
|
|
7697
|
+
});
|
|
7698
|
+
var breadcrumbs = tv({
|
|
7699
|
+
slots: {
|
|
7700
|
+
base: "",
|
|
7701
|
+
list: "flex flex-wrap list-none",
|
|
7702
|
+
ellipsis: "text-medium",
|
|
7703
|
+
separator: "text-default-400 px-1"
|
|
7704
|
+
},
|
|
7705
|
+
variants: {
|
|
7706
|
+
size: {
|
|
7707
|
+
sm: {},
|
|
7708
|
+
md: {},
|
|
7709
|
+
lg: {}
|
|
7710
|
+
},
|
|
7711
|
+
radius: {
|
|
7712
|
+
none: {
|
|
7713
|
+
list: "rounded-none"
|
|
7714
|
+
},
|
|
7715
|
+
sm: {
|
|
7716
|
+
list: "rounded-small"
|
|
7717
|
+
},
|
|
7718
|
+
md: {
|
|
7719
|
+
list: "rounded-medium"
|
|
7720
|
+
},
|
|
7721
|
+
lg: {
|
|
7722
|
+
list: "rounded-large"
|
|
7723
|
+
},
|
|
7724
|
+
full: {
|
|
7725
|
+
list: "rounded-full"
|
|
7726
|
+
}
|
|
7727
|
+
},
|
|
7728
|
+
variant: {
|
|
7729
|
+
solid: {
|
|
7730
|
+
list: "bg-default-100"
|
|
7731
|
+
},
|
|
7732
|
+
bordered: {
|
|
7733
|
+
list: "border-medium border-default-200 shadow-sm"
|
|
7734
|
+
},
|
|
7735
|
+
light: {}
|
|
7736
|
+
}
|
|
7737
|
+
},
|
|
7738
|
+
defaultVariants: {
|
|
7739
|
+
size: "md",
|
|
7740
|
+
radius: "sm",
|
|
7741
|
+
variant: "light"
|
|
7742
|
+
},
|
|
7743
|
+
compoundVariants: [
|
|
7744
|
+
{
|
|
7745
|
+
variant: ["solid", "bordered"],
|
|
7746
|
+
class: {
|
|
7747
|
+
list: "max-w-fit"
|
|
7748
|
+
}
|
|
7749
|
+
},
|
|
7750
|
+
{
|
|
7751
|
+
variant: ["solid", "bordered"],
|
|
7752
|
+
size: "sm",
|
|
7753
|
+
class: {
|
|
7754
|
+
list: "px-2 py-1"
|
|
7755
|
+
}
|
|
7756
|
+
},
|
|
7757
|
+
{
|
|
7758
|
+
variant: ["solid", "bordered"],
|
|
7759
|
+
size: "md",
|
|
7760
|
+
class: {
|
|
7761
|
+
list: "px-2.5 py-1.5"
|
|
7762
|
+
}
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
variant: ["solid", "bordered"],
|
|
7766
|
+
size: "lg",
|
|
7767
|
+
class: {
|
|
7768
|
+
list: "px-3 py-2"
|
|
7769
|
+
}
|
|
7770
|
+
}
|
|
7771
|
+
]
|
|
7772
|
+
});
|
|
7773
|
+
|
|
7774
|
+
// src/components/autocomplete.ts
|
|
7775
|
+
var autocomplete = tv({
|
|
7776
|
+
slots: {
|
|
7777
|
+
base: "group inline-flex flex-column w-full",
|
|
7778
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
7779
|
+
listbox: "",
|
|
7780
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
7781
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
7782
|
+
clearButton: [
|
|
7783
|
+
"text-medium",
|
|
7784
|
+
"translate-x-1",
|
|
7785
|
+
"cursor-text",
|
|
7786
|
+
"opacity-0",
|
|
7787
|
+
"text-default-500",
|
|
7788
|
+
"group-data-[invalid=true]:text-danger",
|
|
7789
|
+
"data-[visible=true]:opacity-100",
|
|
7790
|
+
"data-[visible=true]:cursor-pointer",
|
|
7791
|
+
"sm:data-[visible=true]:opacity-0",
|
|
7792
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
7793
|
+
],
|
|
7794
|
+
selectorButton: "text-medium"
|
|
7795
|
+
},
|
|
7796
|
+
variants: {
|
|
7797
|
+
disableClearable: {
|
|
7798
|
+
true: {
|
|
7799
|
+
clearButton: "hidden"
|
|
7800
|
+
},
|
|
7801
|
+
false: {}
|
|
7802
|
+
},
|
|
7803
|
+
disableAnimation: {
|
|
7804
|
+
true: {
|
|
7805
|
+
selectorButton: "transition-none"
|
|
7806
|
+
},
|
|
7807
|
+
false: {
|
|
7808
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
7809
|
+
}
|
|
7810
|
+
},
|
|
7811
|
+
disableSelectorIconRotation: {
|
|
7812
|
+
true: {},
|
|
7813
|
+
false: {
|
|
7814
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
7815
|
+
}
|
|
7816
|
+
}
|
|
7817
|
+
},
|
|
7818
|
+
defaultVariants: {
|
|
7819
|
+
disableAnimation: false,
|
|
7820
|
+
disableClearable: false,
|
|
7821
|
+
disableSelectorIconRotation: false
|
|
7822
|
+
}
|
|
7823
|
+
});
|
|
6788
7824
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6789
7825
|
0 && (module.exports = {
|
|
6790
7826
|
accordion,
|
|
6791
7827
|
accordionItem,
|
|
7828
|
+
autocomplete,
|
|
6792
7829
|
avatar,
|
|
6793
7830
|
avatarGroup,
|
|
6794
7831
|
badge,
|
|
7832
|
+
breadcrumbItem,
|
|
7833
|
+
breadcrumbs,
|
|
6795
7834
|
button,
|
|
6796
7835
|
buttonGroup,
|
|
6797
7836
|
card,
|
|
@@ -6827,6 +7866,7 @@ var scrollShadow = tv({
|
|
|
6827
7866
|
scrollShadow,
|
|
6828
7867
|
select,
|
|
6829
7868
|
skeleton,
|
|
7869
|
+
slider,
|
|
6830
7870
|
snippet,
|
|
6831
7871
|
spacer,
|
|
6832
7872
|
spinner,
|