@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
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
|
},
|
|
@@ -2751,7 +2831,7 @@ var radio = tv({
|
|
|
2751
2831
|
isInvalid: {
|
|
2752
2832
|
true: {
|
|
2753
2833
|
control: "bg-danger text-danger-foreground",
|
|
2754
|
-
wrapper: "border-danger data-[selected=true]:border-danger",
|
|
2834
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2755
2835
|
label: "text-danger",
|
|
2756
2836
|
description: "text-danger-300"
|
|
2757
2837
|
}
|
|
@@ -2838,6 +2918,7 @@ var pagination = tv({
|
|
|
2838
2918
|
"left-0",
|
|
2839
2919
|
"select-none",
|
|
2840
2920
|
"touch-none",
|
|
2921
|
+
"pointer-events-none",
|
|
2841
2922
|
"z-20"
|
|
2842
2923
|
],
|
|
2843
2924
|
forwardIcon: "hidden group-hover:block group-data-[focus-visible=true]:block data-[before=true]:rotate-180",
|
|
@@ -2927,7 +3008,12 @@ var pagination = tv({
|
|
|
2927
3008
|
},
|
|
2928
3009
|
false: {
|
|
2929
3010
|
item: ["data-[pressed=true]:scale-[0.97]", "transition-transform-background"],
|
|
2930
|
-
cursor: [
|
|
3011
|
+
cursor: [
|
|
3012
|
+
"data-[moving=true]:transition-transform",
|
|
3013
|
+
"!data-[moving=true]:duration-300",
|
|
3014
|
+
"opacity-0",
|
|
3015
|
+
"data-[moving]:opacity-100"
|
|
3016
|
+
]
|
|
2931
3017
|
}
|
|
2932
3018
|
}
|
|
2933
3019
|
},
|
|
@@ -3132,17 +3218,28 @@ var pagination = tv({
|
|
|
3132
3218
|
{
|
|
3133
3219
|
slots: ["item", "prev", "next"],
|
|
3134
3220
|
variant: "flat",
|
|
3135
|
-
class: [
|
|
3221
|
+
class: [
|
|
3222
|
+
"bg-default-100",
|
|
3223
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-200",
|
|
3224
|
+
"active:bg-default-300"
|
|
3225
|
+
]
|
|
3136
3226
|
},
|
|
3137
3227
|
{
|
|
3138
3228
|
slots: ["item", "prev", "next"],
|
|
3139
3229
|
variant: "faded",
|
|
3140
|
-
class: [
|
|
3230
|
+
class: [
|
|
3231
|
+
"bg-default-50",
|
|
3232
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3233
|
+
"active:bg-default-200"
|
|
3234
|
+
]
|
|
3141
3235
|
},
|
|
3142
3236
|
{
|
|
3143
3237
|
slots: ["item", "prev", "next"],
|
|
3144
3238
|
variant: "light",
|
|
3145
|
-
class: [
|
|
3239
|
+
class: [
|
|
3240
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3241
|
+
"active:bg-default-200"
|
|
3242
|
+
]
|
|
3146
3243
|
},
|
|
3147
3244
|
{
|
|
3148
3245
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -3383,7 +3480,7 @@ var accordionItem = tv({
|
|
|
3383
3480
|
],
|
|
3384
3481
|
startContent: "flex-shrink-0",
|
|
3385
3482
|
indicator: "text-default-400",
|
|
3386
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
3483
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
3387
3484
|
title: "text-foreground text-large",
|
|
3388
3485
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
3389
3486
|
content: "py-2"
|
|
@@ -3422,7 +3519,7 @@ var accordionItem = tv({
|
|
|
3422
3519
|
indicator: "transition-none"
|
|
3423
3520
|
},
|
|
3424
3521
|
false: {
|
|
3425
|
-
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"
|
|
3426
3523
|
}
|
|
3427
3524
|
}
|
|
3428
3525
|
},
|
|
@@ -3639,12 +3736,25 @@ var circularProgress = tv({
|
|
|
3639
3736
|
// src/components/input.ts
|
|
3640
3737
|
var input = tv({
|
|
3641
3738
|
slots: {
|
|
3642
|
-
base: "group flex flex-col",
|
|
3643
|
-
label:
|
|
3739
|
+
base: ["group flex flex-col", "data-[has-helper=true]:mb-4"],
|
|
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
|
+
],
|
|
3644
3750
|
mainWrapper: "h-full",
|
|
3645
3751
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3646
|
-
innerWrapper: "inline-flex
|
|
3647
|
-
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
|
+
],
|
|
3648
3758
|
clearButton: [
|
|
3649
3759
|
"p-2",
|
|
3650
3760
|
"-m-2",
|
|
@@ -3662,7 +3772,7 @@ var input = tv({
|
|
|
3662
3772
|
"rounded-full",
|
|
3663
3773
|
...dataFocusVisibleClasses
|
|
3664
3774
|
],
|
|
3665
|
-
helperWrapper: "flex
|
|
3775
|
+
helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
|
|
3666
3776
|
description: "text-tiny text-foreground-400",
|
|
3667
3777
|
errorMessage: "text-tiny text-danger"
|
|
3668
3778
|
},
|
|
@@ -3713,7 +3823,8 @@ var input = tv({
|
|
|
3713
3823
|
"after:-bottom-[2px]",
|
|
3714
3824
|
"after:h-[2px]",
|
|
3715
3825
|
"group-data-[focus=true]:after:w-full"
|
|
3716
|
-
]
|
|
3826
|
+
],
|
|
3827
|
+
innerWrapper: "pb-1"
|
|
3717
3828
|
}
|
|
3718
3829
|
},
|
|
3719
3830
|
color: {
|
|
@@ -3728,7 +3839,7 @@ var input = tv({
|
|
|
3728
3839
|
sm: {
|
|
3729
3840
|
label: "text-tiny",
|
|
3730
3841
|
inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
3731
|
-
input: "text-
|
|
3842
|
+
input: "text-tiny",
|
|
3732
3843
|
clearButton: "text-medium"
|
|
3733
3844
|
},
|
|
3734
3845
|
md: {
|
|
@@ -3768,11 +3879,12 @@ var input = tv({
|
|
|
3768
3879
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3769
3880
|
inputWrapper: "flex-1",
|
|
3770
3881
|
mainWrapper: "flex flex-col",
|
|
3771
|
-
label: "text-foreground pr-2"
|
|
3882
|
+
label: "relative text-foreground pr-2"
|
|
3772
3883
|
},
|
|
3773
3884
|
inside: {
|
|
3774
3885
|
label: "text-tiny cursor-text",
|
|
3775
|
-
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
3886
|
+
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3887
|
+
innerWrapper: "items-end"
|
|
3776
3888
|
}
|
|
3777
3889
|
},
|
|
3778
3890
|
fullWidth: {
|
|
@@ -3780,11 +3892,6 @@ var input = tv({
|
|
|
3780
3892
|
base: "w-full"
|
|
3781
3893
|
}
|
|
3782
3894
|
},
|
|
3783
|
-
isLabelPlaceholder: {
|
|
3784
|
-
true: {
|
|
3785
|
-
label: "absolute z-10 pointer-events-none"
|
|
3786
|
-
}
|
|
3787
|
-
},
|
|
3788
3895
|
isClearable: {
|
|
3789
3896
|
true: {
|
|
3790
3897
|
input: "peer pr-6",
|
|
@@ -3811,12 +3918,14 @@ var input = tv({
|
|
|
3811
3918
|
},
|
|
3812
3919
|
isMultiline: {
|
|
3813
3920
|
true: {
|
|
3921
|
+
label: "relative",
|
|
3814
3922
|
inputWrapper: "!h-auto",
|
|
3815
|
-
input: "resize-none py-2"
|
|
3923
|
+
input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
|
|
3816
3924
|
}
|
|
3817
3925
|
},
|
|
3818
3926
|
disableAnimation: {
|
|
3819
3927
|
true: {
|
|
3928
|
+
input: "transition-none",
|
|
3820
3929
|
inputWrapper: "transition-none",
|
|
3821
3930
|
label: "transition-none"
|
|
3822
3931
|
},
|
|
@@ -3824,11 +3933,10 @@ var input = tv({
|
|
|
3824
3933
|
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
3825
3934
|
label: [
|
|
3826
3935
|
"will-change-auto",
|
|
3827
|
-
"origin-top-left",
|
|
3828
|
-
"transition-all",
|
|
3829
3936
|
"!duration-200",
|
|
3830
3937
|
"!ease-out",
|
|
3831
|
-
"motion-reduce:transition-none"
|
|
3938
|
+
"motion-reduce:transition-none",
|
|
3939
|
+
"transition-[transform,color,left,opacity]"
|
|
3832
3940
|
],
|
|
3833
3941
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
3834
3942
|
}
|
|
@@ -3841,6 +3949,7 @@ var input = tv({
|
|
|
3841
3949
|
fullWidth: true,
|
|
3842
3950
|
labelPlacement: "inside",
|
|
3843
3951
|
isDisabled: false,
|
|
3952
|
+
isMultiline: false,
|
|
3844
3953
|
disableAnimation: false
|
|
3845
3954
|
},
|
|
3846
3955
|
compoundVariants: [
|
|
@@ -4088,6 +4197,13 @@ var input = tv({
|
|
|
4088
4197
|
]
|
|
4089
4198
|
}
|
|
4090
4199
|
},
|
|
4200
|
+
{
|
|
4201
|
+
labelPlacement: "inside",
|
|
4202
|
+
color: "default",
|
|
4203
|
+
class: {
|
|
4204
|
+
label: "group-data-[filled-within=true]:text-foreground-600"
|
|
4205
|
+
}
|
|
4206
|
+
},
|
|
4091
4207
|
{
|
|
4092
4208
|
isInvalid: true,
|
|
4093
4209
|
variant: "flat",
|
|
@@ -4136,19 +4252,28 @@ var input = tv({
|
|
|
4136
4252
|
}
|
|
4137
4253
|
},
|
|
4138
4254
|
{
|
|
4139
|
-
|
|
4255
|
+
labelPlacement: "inside",
|
|
4256
|
+
size: "sm",
|
|
4257
|
+
variant: ["bordered", "faded"],
|
|
4258
|
+
class: {
|
|
4259
|
+
inputWrapper: "py-1"
|
|
4260
|
+
}
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4140
4263
|
labelPlacement: ["inside", "outside"],
|
|
4141
4264
|
class: {
|
|
4142
|
-
label: [
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4265
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4266
|
+
}
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
labelPlacement: ["outside", "outside-left"],
|
|
4270
|
+
class: {
|
|
4271
|
+
input: "h-full"
|
|
4147
4272
|
}
|
|
4148
4273
|
},
|
|
4149
4274
|
{
|
|
4150
|
-
isLabelPlaceholder: true,
|
|
4151
4275
|
labelPlacement: "outside",
|
|
4276
|
+
isMultiline: false,
|
|
4152
4277
|
class: {
|
|
4153
4278
|
base: "group relative justify-end",
|
|
4154
4279
|
label: [
|
|
@@ -4163,85 +4288,176 @@ var input = tv({
|
|
|
4163
4288
|
}
|
|
4164
4289
|
},
|
|
4165
4290
|
{
|
|
4166
|
-
|
|
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
|
+
{
|
|
4167
4319
|
labelPlacement: "inside",
|
|
4168
4320
|
size: ["sm", "md"],
|
|
4169
4321
|
class: {
|
|
4170
|
-
label:
|
|
4171
|
-
input: "pt-4"
|
|
4322
|
+
label: "text-small"
|
|
4172
4323
|
}
|
|
4173
4324
|
},
|
|
4174
4325
|
{
|
|
4175
|
-
isLabelPlaceholder: true,
|
|
4176
4326
|
labelPlacement: "inside",
|
|
4327
|
+
isMultiline: false,
|
|
4177
4328
|
size: "sm",
|
|
4178
4329
|
class: {
|
|
4179
4330
|
label: [
|
|
4180
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
4181
|
-
]
|
|
4182
|
-
input: "pt-4"
|
|
4331
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4332
|
+
]
|
|
4183
4333
|
}
|
|
4184
4334
|
},
|
|
4185
4335
|
{
|
|
4186
|
-
isLabelPlaceholder: true,
|
|
4187
4336
|
labelPlacement: "inside",
|
|
4337
|
+
isMultiline: false,
|
|
4188
4338
|
size: "md",
|
|
4189
4339
|
class: {
|
|
4190
4340
|
label: [
|
|
4191
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
4192
|
-
]
|
|
4193
|
-
input: "pt-4"
|
|
4341
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4342
|
+
]
|
|
4194
4343
|
}
|
|
4195
4344
|
},
|
|
4196
4345
|
{
|
|
4197
|
-
isLabelPlaceholder: true,
|
|
4198
4346
|
labelPlacement: "inside",
|
|
4347
|
+
isMultiline: false,
|
|
4199
4348
|
size: "lg",
|
|
4200
4349
|
class: {
|
|
4201
4350
|
label: [
|
|
4202
4351
|
"text-medium",
|
|
4203
|
-
"group-data-[filled-within=true]
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4352
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4353
|
+
]
|
|
4354
|
+
}
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
labelPlacement: "inside",
|
|
4358
|
+
variant: ["faded", "bordered"],
|
|
4359
|
+
isMultiline: false,
|
|
4360
|
+
size: "sm",
|
|
4361
|
+
class: {
|
|
4362
|
+
label: [
|
|
4363
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4364
|
+
]
|
|
4365
|
+
}
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
labelPlacement: "inside",
|
|
4369
|
+
variant: ["faded", "bordered"],
|
|
4370
|
+
isMultiline: false,
|
|
4371
|
+
size: "md",
|
|
4372
|
+
class: {
|
|
4373
|
+
label: [
|
|
4374
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4375
|
+
]
|
|
4376
|
+
}
|
|
4377
|
+
},
|
|
4378
|
+
{
|
|
4379
|
+
labelPlacement: "inside",
|
|
4380
|
+
variant: ["faded", "bordered"],
|
|
4381
|
+
isMultiline: false,
|
|
4382
|
+
size: "lg",
|
|
4383
|
+
class: {
|
|
4384
|
+
label: [
|
|
4385
|
+
"text-medium",
|
|
4386
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4387
|
+
]
|
|
4388
|
+
}
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
labelPlacement: "inside",
|
|
4392
|
+
variant: "underlined",
|
|
4393
|
+
isMultiline: false,
|
|
4394
|
+
size: "sm",
|
|
4395
|
+
class: {
|
|
4396
|
+
label: [
|
|
4397
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4398
|
+
]
|
|
4399
|
+
}
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
labelPlacement: "inside",
|
|
4403
|
+
variant: "underlined",
|
|
4404
|
+
isMultiline: false,
|
|
4405
|
+
size: "md",
|
|
4406
|
+
class: {
|
|
4407
|
+
label: [
|
|
4408
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4409
|
+
]
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
labelPlacement: "inside",
|
|
4414
|
+
variant: "underlined",
|
|
4415
|
+
size: "lg",
|
|
4416
|
+
isMultiline: false,
|
|
4417
|
+
class: {
|
|
4418
|
+
label: [
|
|
4419
|
+
"text-medium",
|
|
4420
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4421
|
+
]
|
|
4207
4422
|
}
|
|
4208
4423
|
},
|
|
4209
4424
|
{
|
|
4210
|
-
isLabelPlaceholder: true,
|
|
4211
4425
|
labelPlacement: "outside",
|
|
4212
4426
|
size: "sm",
|
|
4427
|
+
isMultiline: false,
|
|
4213
4428
|
class: {
|
|
4214
4429
|
label: [
|
|
4215
4430
|
"left-2",
|
|
4216
|
-
"text-
|
|
4217
|
-
"group-data-[filled-within=true]:text-tiny",
|
|
4431
|
+
"text-tiny",
|
|
4218
4432
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4219
|
-
]
|
|
4433
|
+
],
|
|
4434
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4220
4435
|
}
|
|
4221
4436
|
},
|
|
4222
4437
|
{
|
|
4223
|
-
isLabelPlaceholder: true,
|
|
4224
4438
|
labelPlacement: "outside",
|
|
4225
4439
|
size: "md",
|
|
4440
|
+
isMultiline: false,
|
|
4226
4441
|
class: {
|
|
4227
4442
|
label: [
|
|
4228
4443
|
"left-3",
|
|
4229
4444
|
"text-small",
|
|
4230
4445
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4231
|
-
]
|
|
4446
|
+
],
|
|
4447
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4232
4448
|
}
|
|
4233
4449
|
},
|
|
4234
4450
|
{
|
|
4235
|
-
isLabelPlaceholder: true,
|
|
4236
4451
|
labelPlacement: "outside",
|
|
4237
4452
|
size: "lg",
|
|
4453
|
+
isMultiline: false,
|
|
4238
4454
|
class: {
|
|
4239
4455
|
label: [
|
|
4240
4456
|
"left-3",
|
|
4241
4457
|
"text-medium",
|
|
4242
|
-
"group-data-[filled-within=true]:text-small",
|
|
4243
4458
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4244
|
-
]
|
|
4459
|
+
],
|
|
4460
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4245
4461
|
}
|
|
4246
4462
|
},
|
|
4247
4463
|
{
|
|
@@ -4264,6 +4480,20 @@ var input = tv({
|
|
|
4264
4480
|
class: {
|
|
4265
4481
|
label: "group-data-[has-helper=true]:pt-4"
|
|
4266
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-100 motion-reduce:transition-none"
|
|
4496
|
+
}
|
|
4267
4497
|
}
|
|
4268
4498
|
]
|
|
4269
4499
|
});
|
|
@@ -5040,7 +5270,10 @@ var navbar = tv({
|
|
|
5040
5270
|
"gap-2",
|
|
5041
5271
|
"overflow-y-auto"
|
|
5042
5272
|
],
|
|
5043
|
-
menuItem: [
|
|
5273
|
+
menuItem: [
|
|
5274
|
+
"text-large",
|
|
5275
|
+
"data-[active=true]:font-semibold"
|
|
5276
|
+
]
|
|
5044
5277
|
},
|
|
5045
5278
|
variants: {
|
|
5046
5279
|
position: {
|
|
@@ -5753,7 +5986,7 @@ var skeleton = tv({
|
|
|
5753
5986
|
"after:-z-10",
|
|
5754
5987
|
"after:bg-content3",
|
|
5755
5988
|
"dark:after:bg-content2",
|
|
5756
|
-
"data-[loaded=true]
|
|
5989
|
+
"data-[loaded=true]:!bg-transparent",
|
|
5757
5990
|
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
5758
5991
|
"data-[loaded=true]:after:opacity-0"
|
|
5759
5992
|
],
|
|
@@ -5779,18 +6012,27 @@ var skeleton = tv({
|
|
|
5779
6012
|
// src/components/select.ts
|
|
5780
6013
|
var select = tv({
|
|
5781
6014
|
slots: {
|
|
5782
|
-
base: "group inline-flex flex-col relative w-full",
|
|
5783
|
-
label:
|
|
6015
|
+
base: ["group inline-flex flex-col relative w-full", "data-[has-helper=true]:mb-4"],
|
|
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
|
+
],
|
|
5784
6026
|
mainWrapper: "w-full flex flex-col",
|
|
5785
6027
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
5786
|
-
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
6028
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
5787
6029
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
5788
6030
|
spinner: "absolute right-3",
|
|
5789
|
-
value: "font-normal w-full text-left
|
|
6031
|
+
value: ["font-normal", "w-full", "text-left"],
|
|
5790
6032
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
5791
6033
|
listbox: "",
|
|
5792
|
-
|
|
5793
|
-
helperWrapper: "flex
|
|
6034
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
6035
|
+
helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
|
|
5794
6036
|
description: "text-tiny text-foreground-400",
|
|
5795
6037
|
errorMessage: "text-tiny text-danger"
|
|
5796
6038
|
},
|
|
@@ -5847,7 +6089,9 @@ var select = tv({
|
|
|
5847
6089
|
}
|
|
5848
6090
|
},
|
|
5849
6091
|
color: {
|
|
5850
|
-
default: {
|
|
6092
|
+
default: {
|
|
6093
|
+
value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
|
|
6094
|
+
},
|
|
5851
6095
|
primary: {},
|
|
5852
6096
|
secondary: {},
|
|
5853
6097
|
success: {},
|
|
@@ -5858,7 +6102,7 @@ var select = tv({
|
|
|
5858
6102
|
sm: {
|
|
5859
6103
|
label: "text-tiny",
|
|
5860
6104
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
5861
|
-
value: "text-
|
|
6105
|
+
value: "text-tiny"
|
|
5862
6106
|
},
|
|
5863
6107
|
md: {
|
|
5864
6108
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -5893,7 +6137,7 @@ var select = tv({
|
|
|
5893
6137
|
},
|
|
5894
6138
|
"outside-left": {
|
|
5895
6139
|
base: "flex-row items-center flex-nowrap items-start",
|
|
5896
|
-
label: "text-foreground pr-2"
|
|
6140
|
+
label: "relative text-foreground pr-2"
|
|
5897
6141
|
},
|
|
5898
6142
|
inside: {
|
|
5899
6143
|
label: "text-tiny cursor-pointer",
|
|
@@ -5905,11 +6149,6 @@ var select = tv({
|
|
|
5905
6149
|
base: "w-full"
|
|
5906
6150
|
}
|
|
5907
6151
|
},
|
|
5908
|
-
isLabelPlaceholder: {
|
|
5909
|
-
true: {
|
|
5910
|
-
label: "absolute z-10"
|
|
5911
|
-
}
|
|
5912
|
-
},
|
|
5913
6152
|
isDisabled: {
|
|
5914
6153
|
true: {
|
|
5915
6154
|
base: "opacity-disabled pointer-events-none",
|
|
@@ -5919,7 +6158,7 @@ var select = tv({
|
|
|
5919
6158
|
isInvalid: {
|
|
5920
6159
|
true: {
|
|
5921
6160
|
label: "!text-danger",
|
|
5922
|
-
value: "text-danger",
|
|
6161
|
+
value: "!text-danger",
|
|
5923
6162
|
selectorIcon: "text-danger"
|
|
5924
6163
|
}
|
|
5925
6164
|
},
|
|
@@ -5930,6 +6169,7 @@ var select = tv({
|
|
|
5930
6169
|
},
|
|
5931
6170
|
isMultiline: {
|
|
5932
6171
|
true: {
|
|
6172
|
+
label: "relative",
|
|
5933
6173
|
trigger: "!h-auto"
|
|
5934
6174
|
},
|
|
5935
6175
|
false: {
|
|
@@ -5948,9 +6188,9 @@ var select = tv({
|
|
|
5948
6188
|
label: [
|
|
5949
6189
|
"will-change-auto",
|
|
5950
6190
|
"origin-top-left",
|
|
5951
|
-
"transition-all",
|
|
5952
6191
|
"!duration-200",
|
|
5953
6192
|
"!ease-out",
|
|
6193
|
+
"transition-[transform,color,left,opacity]",
|
|
5954
6194
|
"motion-reduce:transition-none"
|
|
5955
6195
|
],
|
|
5956
6196
|
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
@@ -6212,9 +6452,16 @@ var select = tv({
|
|
|
6212
6452
|
}
|
|
6213
6453
|
},
|
|
6214
6454
|
{
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
class: {
|
|
6455
|
+
labelPlacement: "inside",
|
|
6456
|
+
color: "default",
|
|
6457
|
+
class: {
|
|
6458
|
+
label: "group-data-[filled=true]:text-foreground-600"
|
|
6459
|
+
}
|
|
6460
|
+
},
|
|
6461
|
+
{
|
|
6462
|
+
isInvalid: true,
|
|
6463
|
+
variant: "flat",
|
|
6464
|
+
class: {
|
|
6218
6465
|
trigger: [
|
|
6219
6466
|
"bg-danger-50",
|
|
6220
6467
|
"data-[hover=true]:bg-danger-100",
|
|
@@ -6240,14 +6487,14 @@ var select = tv({
|
|
|
6240
6487
|
labelPlacement: "inside",
|
|
6241
6488
|
size: "sm",
|
|
6242
6489
|
class: {
|
|
6243
|
-
trigger: "h-12 py-1.5 px-3"
|
|
6490
|
+
trigger: "h-12 min-h-unit-12 py-1.5 px-3"
|
|
6244
6491
|
}
|
|
6245
6492
|
},
|
|
6246
6493
|
{
|
|
6247
6494
|
labelPlacement: "inside",
|
|
6248
6495
|
size: "md",
|
|
6249
6496
|
class: {
|
|
6250
|
-
trigger: "h-14 py-2"
|
|
6497
|
+
trigger: "h-14 min-h-unit-14 py-2"
|
|
6251
6498
|
}
|
|
6252
6499
|
},
|
|
6253
6500
|
{
|
|
@@ -6255,23 +6502,18 @@ var select = tv({
|
|
|
6255
6502
|
size: "lg",
|
|
6256
6503
|
class: {
|
|
6257
6504
|
label: "text-small",
|
|
6258
|
-
trigger: "h-16 py-2.5 gap-0"
|
|
6505
|
+
trigger: "h-16 min-h-unit-16 py-2.5 gap-0"
|
|
6259
6506
|
}
|
|
6260
6507
|
},
|
|
6261
6508
|
{
|
|
6262
|
-
isLabelPlaceholder: true,
|
|
6263
6509
|
labelPlacement: ["inside", "outside"],
|
|
6264
6510
|
class: {
|
|
6265
|
-
label: [
|
|
6266
|
-
"font-normal",
|
|
6267
|
-
"group-data-[filled=true]:font-medium",
|
|
6268
|
-
"group-data-[filled=true]:pointer-events-auto"
|
|
6269
|
-
]
|
|
6511
|
+
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
6270
6512
|
}
|
|
6271
6513
|
},
|
|
6272
6514
|
{
|
|
6273
|
-
isLabelPlaceholder: true,
|
|
6274
6515
|
labelPlacement: "outside",
|
|
6516
|
+
isMultiline: false,
|
|
6275
6517
|
class: {
|
|
6276
6518
|
base: "group relative justify-end",
|
|
6277
6519
|
label: [
|
|
@@ -6286,83 +6528,154 @@ var select = tv({
|
|
|
6286
6528
|
}
|
|
6287
6529
|
},
|
|
6288
6530
|
{
|
|
6289
|
-
|
|
6531
|
+
labelPlacement: ["inside"],
|
|
6532
|
+
class: {
|
|
6533
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6534
|
+
}
|
|
6535
|
+
},
|
|
6536
|
+
{
|
|
6290
6537
|
labelPlacement: "inside",
|
|
6291
6538
|
size: ["sm", "md"],
|
|
6292
6539
|
class: {
|
|
6293
|
-
label:
|
|
6540
|
+
label: "text-small",
|
|
6294
6541
|
input: "pt-4"
|
|
6295
6542
|
}
|
|
6296
6543
|
},
|
|
6297
6544
|
{
|
|
6298
|
-
isLabelPlaceholder: true,
|
|
6299
6545
|
labelPlacement: "inside",
|
|
6546
|
+
isMultiline: false,
|
|
6300
6547
|
size: "sm",
|
|
6301
6548
|
class: {
|
|
6302
|
-
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
6549
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6303
6550
|
innerWrapper: "pt-4"
|
|
6304
6551
|
}
|
|
6305
6552
|
},
|
|
6306
6553
|
{
|
|
6307
|
-
isLabelPlaceholder: true,
|
|
6308
6554
|
labelPlacement: "inside",
|
|
6555
|
+
isMultiline: false,
|
|
6309
6556
|
size: "md",
|
|
6310
6557
|
class: {
|
|
6311
6558
|
label: [
|
|
6312
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
6559
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6313
6560
|
],
|
|
6314
6561
|
innerWrapper: "pt-4"
|
|
6315
6562
|
}
|
|
6316
6563
|
},
|
|
6317
6564
|
{
|
|
6318
|
-
isLabelPlaceholder: true,
|
|
6319
6565
|
labelPlacement: "inside",
|
|
6566
|
+
isMultiline: false,
|
|
6320
6567
|
size: "lg",
|
|
6321
6568
|
class: {
|
|
6322
6569
|
label: [
|
|
6323
6570
|
"text-medium",
|
|
6324
|
-
"group-data-[filled=true]
|
|
6325
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
6571
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6326
6572
|
],
|
|
6327
6573
|
innerWrapper: "pt-5"
|
|
6328
6574
|
}
|
|
6329
6575
|
},
|
|
6330
6576
|
{
|
|
6331
|
-
|
|
6577
|
+
labelPlacement: "inside",
|
|
6578
|
+
variant: ["faded", "bordered"],
|
|
6579
|
+
isMultiline: false,
|
|
6580
|
+
size: "sm",
|
|
6581
|
+
class: {
|
|
6582
|
+
label: [
|
|
6583
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6584
|
+
]
|
|
6585
|
+
}
|
|
6586
|
+
},
|
|
6587
|
+
{
|
|
6588
|
+
labelPlacement: "inside",
|
|
6589
|
+
variant: ["faded", "bordered"],
|
|
6590
|
+
isMultiline: false,
|
|
6591
|
+
size: "md",
|
|
6592
|
+
class: {
|
|
6593
|
+
label: [
|
|
6594
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6595
|
+
]
|
|
6596
|
+
}
|
|
6597
|
+
},
|
|
6598
|
+
{
|
|
6599
|
+
labelPlacement: "inside",
|
|
6600
|
+
variant: ["faded", "bordered"],
|
|
6601
|
+
isMultiline: false,
|
|
6602
|
+
size: "lg",
|
|
6603
|
+
class: {
|
|
6604
|
+
label: [
|
|
6605
|
+
"text-medium",
|
|
6606
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6607
|
+
]
|
|
6608
|
+
}
|
|
6609
|
+
},
|
|
6610
|
+
{
|
|
6611
|
+
labelPlacement: "inside",
|
|
6612
|
+
variant: "underlined",
|
|
6613
|
+
isMultiline: false,
|
|
6614
|
+
size: "sm",
|
|
6615
|
+
class: {
|
|
6616
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6617
|
+
}
|
|
6618
|
+
},
|
|
6619
|
+
{
|
|
6620
|
+
labelPlacement: "inside",
|
|
6621
|
+
variant: "underlined",
|
|
6622
|
+
isMultiline: false,
|
|
6623
|
+
size: "md",
|
|
6624
|
+
class: {
|
|
6625
|
+
label: [
|
|
6626
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6627
|
+
]
|
|
6628
|
+
}
|
|
6629
|
+
},
|
|
6630
|
+
{
|
|
6631
|
+
labelPlacement: "inside",
|
|
6632
|
+
variant: "underlined",
|
|
6633
|
+
isMultiline: false,
|
|
6634
|
+
size: "lg",
|
|
6635
|
+
class: {
|
|
6636
|
+
label: [
|
|
6637
|
+
"text-medium",
|
|
6638
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6639
|
+
]
|
|
6640
|
+
}
|
|
6641
|
+
},
|
|
6642
|
+
{
|
|
6332
6643
|
labelPlacement: "outside",
|
|
6333
6644
|
size: "sm",
|
|
6645
|
+
isMultiline: false,
|
|
6334
6646
|
class: {
|
|
6335
6647
|
label: [
|
|
6336
6648
|
"left-2",
|
|
6337
|
-
"text-
|
|
6338
|
-
"group-data-[filled=true]:text-tiny",
|
|
6649
|
+
"text-tiny",
|
|
6339
6650
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6340
|
-
]
|
|
6651
|
+
],
|
|
6652
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6341
6653
|
}
|
|
6342
6654
|
},
|
|
6343
6655
|
{
|
|
6344
|
-
isLabelPlaceholder: true,
|
|
6345
6656
|
labelPlacement: "outside",
|
|
6657
|
+
isMultiline: false,
|
|
6346
6658
|
size: "md",
|
|
6347
6659
|
class: {
|
|
6348
6660
|
label: [
|
|
6349
6661
|
"left-3",
|
|
6350
6662
|
"text-small",
|
|
6351
6663
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6352
|
-
]
|
|
6664
|
+
],
|
|
6665
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6353
6666
|
}
|
|
6354
6667
|
},
|
|
6355
6668
|
{
|
|
6356
|
-
isLabelPlaceholder: true,
|
|
6357
6669
|
labelPlacement: "outside",
|
|
6670
|
+
isMultiline: false,
|
|
6358
6671
|
size: "lg",
|
|
6359
6672
|
class: {
|
|
6360
6673
|
label: [
|
|
6361
6674
|
"left-3",
|
|
6362
6675
|
"text-medium",
|
|
6363
|
-
"group-data-[filled=true]:text-small",
|
|
6364
6676
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6365
|
-
]
|
|
6677
|
+
],
|
|
6678
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6366
6679
|
}
|
|
6367
6680
|
}
|
|
6368
6681
|
]
|
|
@@ -6370,7 +6683,19 @@ var select = tv({
|
|
|
6370
6683
|
|
|
6371
6684
|
// src/components/menu.ts
|
|
6372
6685
|
var menu = tv({
|
|
6373
|
-
|
|
6686
|
+
slots: {
|
|
6687
|
+
base: "w-full relative flex flex-col gap-1 p-1",
|
|
6688
|
+
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6689
|
+
emptyContent: [
|
|
6690
|
+
"h-10",
|
|
6691
|
+
"px-2",
|
|
6692
|
+
"py-1.5",
|
|
6693
|
+
"w-full",
|
|
6694
|
+
"h-full",
|
|
6695
|
+
"text-foreground-400",
|
|
6696
|
+
"text-start"
|
|
6697
|
+
]
|
|
6698
|
+
}
|
|
6374
6699
|
});
|
|
6375
6700
|
var menuItem = tv({
|
|
6376
6701
|
slots: {
|
|
@@ -6464,7 +6789,9 @@ var menuItem = tv({
|
|
|
6464
6789
|
},
|
|
6465
6790
|
disableAnimation: {
|
|
6466
6791
|
true: {},
|
|
6467
|
-
false: {
|
|
6792
|
+
false: {
|
|
6793
|
+
base: "data-[hover=true]:transition-colors"
|
|
6794
|
+
}
|
|
6468
6795
|
}
|
|
6469
6796
|
},
|
|
6470
6797
|
defaultVariants: {
|
|
@@ -6844,13 +7171,680 @@ var scrollShadow = tv({
|
|
|
6844
7171
|
hideScrollBar: false
|
|
6845
7172
|
}
|
|
6846
7173
|
});
|
|
7174
|
+
|
|
7175
|
+
// src/components/slider.ts
|
|
7176
|
+
var slider = tv({
|
|
7177
|
+
slots: {
|
|
7178
|
+
base: "flex flex-col w-full gap-1",
|
|
7179
|
+
labelWrapper: "w-full flex justify-between items-center",
|
|
7180
|
+
label: "",
|
|
7181
|
+
value: "",
|
|
7182
|
+
step: [
|
|
7183
|
+
"h-1.5",
|
|
7184
|
+
"w-1.5",
|
|
7185
|
+
"absolute",
|
|
7186
|
+
"rounded-full",
|
|
7187
|
+
"bg-default-300/50",
|
|
7188
|
+
"data-[in-range=true]:bg-background/50"
|
|
7189
|
+
],
|
|
7190
|
+
mark: [
|
|
7191
|
+
"absolute",
|
|
7192
|
+
"text-small",
|
|
7193
|
+
"cursor-default",
|
|
7194
|
+
"opacity-50",
|
|
7195
|
+
"data-[in-range=true]:opacity-100"
|
|
7196
|
+
],
|
|
7197
|
+
trackWrapper: "relative flex gap-2",
|
|
7198
|
+
track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
|
|
7199
|
+
filler: "h-full absolute",
|
|
7200
|
+
thumb: [
|
|
7201
|
+
"flex",
|
|
7202
|
+
"justify-center",
|
|
7203
|
+
"items-center",
|
|
7204
|
+
"before:absolute",
|
|
7205
|
+
"before:w-11",
|
|
7206
|
+
"before:h-11",
|
|
7207
|
+
"before:rounded-full",
|
|
7208
|
+
"after:shadow-small",
|
|
7209
|
+
"after:shadow-small",
|
|
7210
|
+
"after:bg-background",
|
|
7211
|
+
"data-[focused=true]:z-10",
|
|
7212
|
+
dataFocusVisibleClasses
|
|
7213
|
+
],
|
|
7214
|
+
startContent: [],
|
|
7215
|
+
endContent: []
|
|
7216
|
+
},
|
|
7217
|
+
variants: {
|
|
7218
|
+
size: {
|
|
7219
|
+
sm: {
|
|
7220
|
+
label: "text-small",
|
|
7221
|
+
value: "text-small",
|
|
7222
|
+
thumb: "w-5 h-5 after:w-4 after:h-4",
|
|
7223
|
+
step: "data-[in-range=false]:bg-default-200"
|
|
7224
|
+
},
|
|
7225
|
+
md: {
|
|
7226
|
+
thumb: "w-6 h-6 after:w-5 after:h-5",
|
|
7227
|
+
label: "text-small",
|
|
7228
|
+
value: "text-small"
|
|
7229
|
+
},
|
|
7230
|
+
lg: {
|
|
7231
|
+
thumb: "h-7 w-7 after:w-5 after:h-5",
|
|
7232
|
+
step: "w-2 h-2",
|
|
7233
|
+
label: "text-medium",
|
|
7234
|
+
value: "text-medium",
|
|
7235
|
+
mark: "mt-2"
|
|
7236
|
+
}
|
|
7237
|
+
},
|
|
7238
|
+
radius: {
|
|
7239
|
+
none: {
|
|
7240
|
+
thumb: "rounded-none after:rounded-none"
|
|
7241
|
+
},
|
|
7242
|
+
sm: {
|
|
7243
|
+
thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
|
|
7244
|
+
},
|
|
7245
|
+
md: {
|
|
7246
|
+
thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
|
|
7247
|
+
},
|
|
7248
|
+
lg: {
|
|
7249
|
+
thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
|
|
7250
|
+
},
|
|
7251
|
+
full: {
|
|
7252
|
+
thumb: "rounded-full after:rounded-full"
|
|
7253
|
+
}
|
|
7254
|
+
},
|
|
7255
|
+
color: {
|
|
7256
|
+
foreground: {
|
|
7257
|
+
filler: "bg-foreground",
|
|
7258
|
+
thumb: "bg-foreground"
|
|
7259
|
+
},
|
|
7260
|
+
primary: {
|
|
7261
|
+
filler: "bg-primary",
|
|
7262
|
+
thumb: "bg-primary"
|
|
7263
|
+
},
|
|
7264
|
+
secondary: {
|
|
7265
|
+
filler: "bg-secondary",
|
|
7266
|
+
thumb: "bg-secondary"
|
|
7267
|
+
},
|
|
7268
|
+
success: {
|
|
7269
|
+
filler: "bg-success",
|
|
7270
|
+
thumb: "bg-success"
|
|
7271
|
+
},
|
|
7272
|
+
warning: {
|
|
7273
|
+
filler: "bg-warning",
|
|
7274
|
+
thumb: "bg-warning"
|
|
7275
|
+
},
|
|
7276
|
+
danger: {
|
|
7277
|
+
filler: "bg-danger",
|
|
7278
|
+
thumb: "bg-danger"
|
|
7279
|
+
}
|
|
7280
|
+
},
|
|
7281
|
+
isVertical: {
|
|
7282
|
+
true: {
|
|
7283
|
+
base: "w-auto h-full flex-col-reverse items-center",
|
|
7284
|
+
trackWrapper: "flex-col h-full justify-center items-center",
|
|
7285
|
+
filler: "w-full h-auto",
|
|
7286
|
+
thumb: "left-1/2",
|
|
7287
|
+
track: "h-full border-y-transparent",
|
|
7288
|
+
labelWrapper: "flex-col justify-center items-center",
|
|
7289
|
+
step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
|
|
7290
|
+
mark: ["left-1/2", "ml-1", "translate-x-1/2", "-translate-y-1/2"]
|
|
7291
|
+
},
|
|
7292
|
+
false: {
|
|
7293
|
+
thumb: "top-1/2",
|
|
7294
|
+
trackWrapper: "items-center",
|
|
7295
|
+
track: "border-x-transparent",
|
|
7296
|
+
step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
|
|
7297
|
+
mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
|
|
7298
|
+
}
|
|
7299
|
+
},
|
|
7300
|
+
isDisabled: {
|
|
7301
|
+
false: {
|
|
7302
|
+
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
7303
|
+
},
|
|
7304
|
+
true: {
|
|
7305
|
+
base: "opacity-disabled",
|
|
7306
|
+
thumb: "cursor-default"
|
|
7307
|
+
}
|
|
7308
|
+
},
|
|
7309
|
+
hasMarks: {
|
|
7310
|
+
true: {
|
|
7311
|
+
base: "mb-5"
|
|
7312
|
+
},
|
|
7313
|
+
false: {}
|
|
7314
|
+
},
|
|
7315
|
+
showOutline: {
|
|
7316
|
+
true: {
|
|
7317
|
+
thumb: "ring-2 ring-background"
|
|
7318
|
+
},
|
|
7319
|
+
false: {
|
|
7320
|
+
thumb: "ring-transparent border-0"
|
|
7321
|
+
}
|
|
7322
|
+
},
|
|
7323
|
+
hideValue: {
|
|
7324
|
+
true: {
|
|
7325
|
+
value: "sr-only"
|
|
7326
|
+
}
|
|
7327
|
+
},
|
|
7328
|
+
hideThumb: {
|
|
7329
|
+
true: {
|
|
7330
|
+
thumb: "sr-only",
|
|
7331
|
+
track: "overflow-hidden cursor-pointer"
|
|
7332
|
+
}
|
|
7333
|
+
},
|
|
7334
|
+
hasSingleThumb: {
|
|
7335
|
+
true: {},
|
|
7336
|
+
false: {}
|
|
7337
|
+
},
|
|
7338
|
+
disableAnimation: {
|
|
7339
|
+
true: {
|
|
7340
|
+
thumb: "data-[dragging=true]:after:scale-100"
|
|
7341
|
+
},
|
|
7342
|
+
false: {
|
|
7343
|
+
thumb: "after:transition-all motion-reduce:after:transition-none",
|
|
7344
|
+
mark: "transition-opacity motion-reduce:transition-none"
|
|
7345
|
+
}
|
|
7346
|
+
},
|
|
7347
|
+
disableThumbScale: {
|
|
7348
|
+
true: {},
|
|
7349
|
+
false: {
|
|
7350
|
+
thumb: "data-[dragging=true]:after:scale-80"
|
|
7351
|
+
}
|
|
7352
|
+
}
|
|
7353
|
+
},
|
|
7354
|
+
compoundVariants: [
|
|
7355
|
+
{
|
|
7356
|
+
size: ["sm", "md"],
|
|
7357
|
+
showOutline: false,
|
|
7358
|
+
class: {
|
|
7359
|
+
thumb: "shadow-small"
|
|
7360
|
+
}
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
size: "sm",
|
|
7364
|
+
color: "foreground",
|
|
7365
|
+
class: {
|
|
7366
|
+
step: "data-[in-range=true]:bg-foreground"
|
|
7367
|
+
}
|
|
7368
|
+
},
|
|
7369
|
+
{
|
|
7370
|
+
size: "sm",
|
|
7371
|
+
color: "primary",
|
|
7372
|
+
class: {
|
|
7373
|
+
step: "data-[in-range=true]:bg-primary"
|
|
7374
|
+
}
|
|
7375
|
+
},
|
|
7376
|
+
{
|
|
7377
|
+
size: "sm",
|
|
7378
|
+
color: "secondary",
|
|
7379
|
+
class: {
|
|
7380
|
+
step: "data-[in-range=true]:bg-secondary"
|
|
7381
|
+
}
|
|
7382
|
+
},
|
|
7383
|
+
{
|
|
7384
|
+
size: "sm",
|
|
7385
|
+
color: "success",
|
|
7386
|
+
class: {
|
|
7387
|
+
step: "data-[in-range=true]:bg-success"
|
|
7388
|
+
}
|
|
7389
|
+
},
|
|
7390
|
+
{
|
|
7391
|
+
size: "sm",
|
|
7392
|
+
color: "warning",
|
|
7393
|
+
class: {
|
|
7394
|
+
step: "data-[in-range=true]:bg-warning"
|
|
7395
|
+
}
|
|
7396
|
+
},
|
|
7397
|
+
{
|
|
7398
|
+
size: "sm",
|
|
7399
|
+
color: "danger",
|
|
7400
|
+
class: {
|
|
7401
|
+
step: "data-[in-range=true]:bg-danger"
|
|
7402
|
+
}
|
|
7403
|
+
},
|
|
7404
|
+
{
|
|
7405
|
+
size: "sm",
|
|
7406
|
+
isVertical: false,
|
|
7407
|
+
class: {
|
|
7408
|
+
track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
|
|
7409
|
+
}
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
size: "md",
|
|
7413
|
+
isVertical: false,
|
|
7414
|
+
class: {
|
|
7415
|
+
track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
|
|
7416
|
+
}
|
|
7417
|
+
},
|
|
7418
|
+
{
|
|
7419
|
+
size: "lg",
|
|
7420
|
+
isVertical: false,
|
|
7421
|
+
class: {
|
|
7422
|
+
track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
|
|
7423
|
+
}
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
size: "sm",
|
|
7427
|
+
isVertical: true,
|
|
7428
|
+
class: {
|
|
7429
|
+
track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
|
|
7430
|
+
}
|
|
7431
|
+
},
|
|
7432
|
+
{
|
|
7433
|
+
size: "md",
|
|
7434
|
+
isVertical: true,
|
|
7435
|
+
class: {
|
|
7436
|
+
track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
|
|
7437
|
+
}
|
|
7438
|
+
},
|
|
7439
|
+
{
|
|
7440
|
+
size: "lg",
|
|
7441
|
+
isVertical: true,
|
|
7442
|
+
class: {
|
|
7443
|
+
track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
|
|
7444
|
+
}
|
|
7445
|
+
},
|
|
7446
|
+
{
|
|
7447
|
+
color: "foreground",
|
|
7448
|
+
isVertical: false,
|
|
7449
|
+
hasSingleThumb: true,
|
|
7450
|
+
class: {
|
|
7451
|
+
track: "border-s-foreground"
|
|
7452
|
+
}
|
|
7453
|
+
},
|
|
7454
|
+
{
|
|
7455
|
+
color: "primary",
|
|
7456
|
+
isVertical: false,
|
|
7457
|
+
hasSingleThumb: true,
|
|
7458
|
+
class: {
|
|
7459
|
+
track: "border-s-primary"
|
|
7460
|
+
}
|
|
7461
|
+
},
|
|
7462
|
+
{
|
|
7463
|
+
color: "secondary",
|
|
7464
|
+
isVertical: false,
|
|
7465
|
+
hasSingleThumb: true,
|
|
7466
|
+
class: {
|
|
7467
|
+
track: "border-s-secondary"
|
|
7468
|
+
}
|
|
7469
|
+
},
|
|
7470
|
+
{
|
|
7471
|
+
color: "success",
|
|
7472
|
+
isVertical: false,
|
|
7473
|
+
hasSingleThumb: true,
|
|
7474
|
+
class: {
|
|
7475
|
+
track: "border-s-success"
|
|
7476
|
+
}
|
|
7477
|
+
},
|
|
7478
|
+
{
|
|
7479
|
+
color: "warning",
|
|
7480
|
+
isVertical: false,
|
|
7481
|
+
hasSingleThumb: true,
|
|
7482
|
+
class: {
|
|
7483
|
+
track: "border-s-warning"
|
|
7484
|
+
}
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
color: "danger",
|
|
7488
|
+
isVertical: false,
|
|
7489
|
+
hasSingleThumb: true,
|
|
7490
|
+
class: {
|
|
7491
|
+
track: "border-s-danger"
|
|
7492
|
+
}
|
|
7493
|
+
},
|
|
7494
|
+
{
|
|
7495
|
+
color: "foreground",
|
|
7496
|
+
isVertical: true,
|
|
7497
|
+
hasSingleThumb: true,
|
|
7498
|
+
class: {
|
|
7499
|
+
track: "border-b-foreground"
|
|
7500
|
+
}
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
color: "primary",
|
|
7504
|
+
isVertical: true,
|
|
7505
|
+
hasSingleThumb: true,
|
|
7506
|
+
class: {
|
|
7507
|
+
track: "border-b-primary"
|
|
7508
|
+
}
|
|
7509
|
+
},
|
|
7510
|
+
{
|
|
7511
|
+
color: "secondary",
|
|
7512
|
+
isVertical: true,
|
|
7513
|
+
hasSingleThumb: true,
|
|
7514
|
+
class: {
|
|
7515
|
+
track: "border-b-secondary"
|
|
7516
|
+
}
|
|
7517
|
+
},
|
|
7518
|
+
{
|
|
7519
|
+
color: "success",
|
|
7520
|
+
isVertical: true,
|
|
7521
|
+
hasSingleThumb: true,
|
|
7522
|
+
class: {
|
|
7523
|
+
track: "border-b-success"
|
|
7524
|
+
}
|
|
7525
|
+
},
|
|
7526
|
+
{
|
|
7527
|
+
color: "warning",
|
|
7528
|
+
isVertical: true,
|
|
7529
|
+
hasSingleThumb: true,
|
|
7530
|
+
class: {
|
|
7531
|
+
track: "border-b-warning"
|
|
7532
|
+
}
|
|
7533
|
+
},
|
|
7534
|
+
{
|
|
7535
|
+
color: "danger",
|
|
7536
|
+
isVertical: true,
|
|
7537
|
+
hasSingleThumb: true,
|
|
7538
|
+
class: {
|
|
7539
|
+
track: "border-b-danger"
|
|
7540
|
+
}
|
|
7541
|
+
}
|
|
7542
|
+
],
|
|
7543
|
+
defaultVariants: {
|
|
7544
|
+
size: "md",
|
|
7545
|
+
color: "primary",
|
|
7546
|
+
radius: "full",
|
|
7547
|
+
hideValue: false,
|
|
7548
|
+
hideThumb: false,
|
|
7549
|
+
isDisabled: false,
|
|
7550
|
+
disableThumbScale: false,
|
|
7551
|
+
disableAnimation: false,
|
|
7552
|
+
showOutline: false
|
|
7553
|
+
}
|
|
7554
|
+
});
|
|
7555
|
+
|
|
7556
|
+
// src/components/breadcrumbs.ts
|
|
7557
|
+
var breadcrumbItem = tv({
|
|
7558
|
+
slots: {
|
|
7559
|
+
base: "flex items-center",
|
|
7560
|
+
item: [
|
|
7561
|
+
"flex gap-1 items-center",
|
|
7562
|
+
"cursor-pointer",
|
|
7563
|
+
"whitespace-nowrap",
|
|
7564
|
+
"line-clamp-1",
|
|
7565
|
+
"outline-none",
|
|
7566
|
+
"tap-highlight-transparent",
|
|
7567
|
+
...dataFocusVisibleClasses
|
|
7568
|
+
],
|
|
7569
|
+
separator: "text-default-400 px-1"
|
|
7570
|
+
},
|
|
7571
|
+
variants: {
|
|
7572
|
+
color: {
|
|
7573
|
+
foreground: {
|
|
7574
|
+
item: "text-foreground/50",
|
|
7575
|
+
separator: "text-foreground/50"
|
|
7576
|
+
},
|
|
7577
|
+
primary: {
|
|
7578
|
+
item: "text-primary/80",
|
|
7579
|
+
separator: "text-primary/80"
|
|
7580
|
+
},
|
|
7581
|
+
secondary: {
|
|
7582
|
+
item: "text-secondary/80",
|
|
7583
|
+
separator: "text-secondary/80"
|
|
7584
|
+
},
|
|
7585
|
+
success: {
|
|
7586
|
+
item: "text-success/80",
|
|
7587
|
+
separator: "text-success/80"
|
|
7588
|
+
},
|
|
7589
|
+
warning: {
|
|
7590
|
+
item: "text-warning/80",
|
|
7591
|
+
separator: "text-warning/80"
|
|
7592
|
+
},
|
|
7593
|
+
danger: {
|
|
7594
|
+
item: "text-danger/80",
|
|
7595
|
+
separator: "text-danger/80"
|
|
7596
|
+
}
|
|
7597
|
+
},
|
|
7598
|
+
size: {
|
|
7599
|
+
sm: {
|
|
7600
|
+
item: "text-tiny"
|
|
7601
|
+
},
|
|
7602
|
+
md: {
|
|
7603
|
+
item: "text-small"
|
|
7604
|
+
},
|
|
7605
|
+
lg: {
|
|
7606
|
+
item: "text-medium"
|
|
7607
|
+
}
|
|
7608
|
+
},
|
|
7609
|
+
underline: {
|
|
7610
|
+
none: {
|
|
7611
|
+
item: "no-underline"
|
|
7612
|
+
},
|
|
7613
|
+
hover: {
|
|
7614
|
+
item: "hover:underline"
|
|
7615
|
+
},
|
|
7616
|
+
always: {
|
|
7617
|
+
item: "underline"
|
|
7618
|
+
},
|
|
7619
|
+
active: {
|
|
7620
|
+
item: "active:underline"
|
|
7621
|
+
},
|
|
7622
|
+
focus: {
|
|
7623
|
+
item: "focus:underline"
|
|
7624
|
+
}
|
|
7625
|
+
},
|
|
7626
|
+
isCurrent: {
|
|
7627
|
+
true: {
|
|
7628
|
+
item: "cursor-default"
|
|
7629
|
+
},
|
|
7630
|
+
false: {
|
|
7631
|
+
item: ["hover:opacity-80", "active:opacity-disabled"]
|
|
7632
|
+
}
|
|
7633
|
+
},
|
|
7634
|
+
isDisabled: {
|
|
7635
|
+
true: {
|
|
7636
|
+
item: "opacity-disabled pointer-events-none",
|
|
7637
|
+
separator: "opacity-disabled"
|
|
7638
|
+
}
|
|
7639
|
+
},
|
|
7640
|
+
disableAnimation: {
|
|
7641
|
+
false: {
|
|
7642
|
+
item: "transition-opacity"
|
|
7643
|
+
},
|
|
7644
|
+
true: {
|
|
7645
|
+
item: "transition-none"
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
},
|
|
7649
|
+
defaultVariants: {
|
|
7650
|
+
size: "md",
|
|
7651
|
+
color: "foreground",
|
|
7652
|
+
underline: "hover",
|
|
7653
|
+
isDisabled: false,
|
|
7654
|
+
disableAnimation: false
|
|
7655
|
+
},
|
|
7656
|
+
compoundVariants: [
|
|
7657
|
+
{
|
|
7658
|
+
isCurrent: true,
|
|
7659
|
+
color: "foreground",
|
|
7660
|
+
class: {
|
|
7661
|
+
item: "text-foreground"
|
|
7662
|
+
}
|
|
7663
|
+
},
|
|
7664
|
+
{
|
|
7665
|
+
isCurrent: true,
|
|
7666
|
+
color: "primary",
|
|
7667
|
+
class: {
|
|
7668
|
+
item: "text-primary"
|
|
7669
|
+
}
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
isCurrent: true,
|
|
7673
|
+
color: "secondary",
|
|
7674
|
+
class: {
|
|
7675
|
+
item: "text-secondary"
|
|
7676
|
+
}
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
isCurrent: true,
|
|
7680
|
+
color: "success",
|
|
7681
|
+
class: {
|
|
7682
|
+
item: "text-success"
|
|
7683
|
+
}
|
|
7684
|
+
},
|
|
7685
|
+
{
|
|
7686
|
+
isCurrent: true,
|
|
7687
|
+
color: "warning",
|
|
7688
|
+
class: {
|
|
7689
|
+
item: "text-warning"
|
|
7690
|
+
}
|
|
7691
|
+
},
|
|
7692
|
+
{
|
|
7693
|
+
isCurrent: true,
|
|
7694
|
+
color: "danger",
|
|
7695
|
+
class: {
|
|
7696
|
+
item: "text-danger"
|
|
7697
|
+
}
|
|
7698
|
+
},
|
|
7699
|
+
{
|
|
7700
|
+
isCurrent: false,
|
|
7701
|
+
underline: "none",
|
|
7702
|
+
class: {
|
|
7703
|
+
item: "no-underline"
|
|
7704
|
+
}
|
|
7705
|
+
},
|
|
7706
|
+
{
|
|
7707
|
+
underline: ["hover", "always", "active", "focus"],
|
|
7708
|
+
class: "underline-offset-4"
|
|
7709
|
+
}
|
|
7710
|
+
]
|
|
7711
|
+
});
|
|
7712
|
+
var breadcrumbs = tv({
|
|
7713
|
+
slots: {
|
|
7714
|
+
base: "",
|
|
7715
|
+
list: "flex flex-wrap list-none",
|
|
7716
|
+
ellipsis: "text-medium",
|
|
7717
|
+
separator: "text-default-400 px-1"
|
|
7718
|
+
},
|
|
7719
|
+
variants: {
|
|
7720
|
+
size: {
|
|
7721
|
+
sm: {},
|
|
7722
|
+
md: {},
|
|
7723
|
+
lg: {}
|
|
7724
|
+
},
|
|
7725
|
+
radius: {
|
|
7726
|
+
none: {
|
|
7727
|
+
list: "rounded-none"
|
|
7728
|
+
},
|
|
7729
|
+
sm: {
|
|
7730
|
+
list: "rounded-small"
|
|
7731
|
+
},
|
|
7732
|
+
md: {
|
|
7733
|
+
list: "rounded-medium"
|
|
7734
|
+
},
|
|
7735
|
+
lg: {
|
|
7736
|
+
list: "rounded-large"
|
|
7737
|
+
},
|
|
7738
|
+
full: {
|
|
7739
|
+
list: "rounded-full"
|
|
7740
|
+
}
|
|
7741
|
+
},
|
|
7742
|
+
variant: {
|
|
7743
|
+
solid: {
|
|
7744
|
+
list: "bg-default-100"
|
|
7745
|
+
},
|
|
7746
|
+
bordered: {
|
|
7747
|
+
list: "border-medium border-default-200 shadow-sm"
|
|
7748
|
+
},
|
|
7749
|
+
light: {}
|
|
7750
|
+
}
|
|
7751
|
+
},
|
|
7752
|
+
defaultVariants: {
|
|
7753
|
+
size: "md",
|
|
7754
|
+
radius: "sm",
|
|
7755
|
+
variant: "light"
|
|
7756
|
+
},
|
|
7757
|
+
compoundVariants: [
|
|
7758
|
+
{
|
|
7759
|
+
variant: ["solid", "bordered"],
|
|
7760
|
+
class: {
|
|
7761
|
+
list: "max-w-fit"
|
|
7762
|
+
}
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
variant: ["solid", "bordered"],
|
|
7766
|
+
size: "sm",
|
|
7767
|
+
class: {
|
|
7768
|
+
list: "px-2 py-1"
|
|
7769
|
+
}
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
variant: ["solid", "bordered"],
|
|
7773
|
+
size: "md",
|
|
7774
|
+
class: {
|
|
7775
|
+
list: "px-2.5 py-1.5"
|
|
7776
|
+
}
|
|
7777
|
+
},
|
|
7778
|
+
{
|
|
7779
|
+
variant: ["solid", "bordered"],
|
|
7780
|
+
size: "lg",
|
|
7781
|
+
class: {
|
|
7782
|
+
list: "px-3 py-2"
|
|
7783
|
+
}
|
|
7784
|
+
}
|
|
7785
|
+
]
|
|
7786
|
+
});
|
|
7787
|
+
|
|
7788
|
+
// src/components/autocomplete.ts
|
|
7789
|
+
var autocomplete = tv({
|
|
7790
|
+
slots: {
|
|
7791
|
+
base: "group inline-flex flex-column w-full",
|
|
7792
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
7793
|
+
listbox: "",
|
|
7794
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
7795
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
7796
|
+
clearButton: [
|
|
7797
|
+
"text-medium",
|
|
7798
|
+
"translate-x-1",
|
|
7799
|
+
"cursor-text",
|
|
7800
|
+
"opacity-0",
|
|
7801
|
+
"text-default-500",
|
|
7802
|
+
"group-data-[invalid=true]:text-danger",
|
|
7803
|
+
"data-[visible=true]:opacity-100",
|
|
7804
|
+
"data-[visible=true]:cursor-pointer",
|
|
7805
|
+
"sm:data-[visible=true]:opacity-0",
|
|
7806
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
7807
|
+
],
|
|
7808
|
+
selectorButton: "text-medium"
|
|
7809
|
+
},
|
|
7810
|
+
variants: {
|
|
7811
|
+
disableClearable: {
|
|
7812
|
+
true: {
|
|
7813
|
+
clearButton: "hidden"
|
|
7814
|
+
},
|
|
7815
|
+
false: {}
|
|
7816
|
+
},
|
|
7817
|
+
disableAnimation: {
|
|
7818
|
+
true: {
|
|
7819
|
+
selectorButton: "transition-none"
|
|
7820
|
+
},
|
|
7821
|
+
false: {
|
|
7822
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
7823
|
+
}
|
|
7824
|
+
},
|
|
7825
|
+
disableSelectorIconRotation: {
|
|
7826
|
+
true: {},
|
|
7827
|
+
false: {
|
|
7828
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
7829
|
+
}
|
|
7830
|
+
}
|
|
7831
|
+
},
|
|
7832
|
+
defaultVariants: {
|
|
7833
|
+
disableAnimation: false,
|
|
7834
|
+
disableClearable: false,
|
|
7835
|
+
disableSelectorIconRotation: false
|
|
7836
|
+
}
|
|
7837
|
+
});
|
|
6847
7838
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6848
7839
|
0 && (module.exports = {
|
|
6849
7840
|
accordion,
|
|
6850
7841
|
accordionItem,
|
|
7842
|
+
autocomplete,
|
|
6851
7843
|
avatar,
|
|
6852
7844
|
avatarGroup,
|
|
6853
7845
|
badge,
|
|
7846
|
+
breadcrumbItem,
|
|
7847
|
+
breadcrumbs,
|
|
6854
7848
|
button,
|
|
6855
7849
|
buttonGroup,
|
|
6856
7850
|
card,
|
|
@@ -6886,6 +7880,7 @@ var scrollShadow = tv({
|
|
|
6886
7880
|
scrollShadow,
|
|
6887
7881
|
select,
|
|
6888
7882
|
skeleton,
|
|
7883
|
+
slider,
|
|
6889
7884
|
snippet,
|
|
6890
7885
|
spacer,
|
|
6891
7886
|
spinner,
|