@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/index.js
CHANGED
|
@@ -29,10 +29,13 @@ __export(src_exports, {
|
|
|
29
29
|
absoluteFullClasses: () => absoluteFullClasses,
|
|
30
30
|
accordion: () => accordion,
|
|
31
31
|
accordionItem: () => accordionItem,
|
|
32
|
+
autocomplete: () => autocomplete,
|
|
32
33
|
avatar: () => avatar,
|
|
33
34
|
avatarGroup: () => avatarGroup,
|
|
34
35
|
badge: () => badge,
|
|
35
36
|
baseStyles: () => baseStyles,
|
|
37
|
+
breadcrumbItem: () => breadcrumbItem,
|
|
38
|
+
breadcrumbs: () => breadcrumbs,
|
|
36
39
|
button: () => button,
|
|
37
40
|
buttonGroup: () => buttonGroup,
|
|
38
41
|
card: () => card,
|
|
@@ -41,6 +44,7 @@ __export(src_exports, {
|
|
|
41
44
|
chip: () => chip,
|
|
42
45
|
circularProgress: () => circularProgress,
|
|
43
46
|
code: () => code,
|
|
47
|
+
collapseAdjacentVariantBorders: () => collapseAdjacentVariantBorders,
|
|
44
48
|
colorVariants: () => colorVariants,
|
|
45
49
|
colors: () => colors,
|
|
46
50
|
commonColors: () => commonColors,
|
|
@@ -78,6 +82,7 @@ __export(src_exports, {
|
|
|
78
82
|
select: () => select,
|
|
79
83
|
semanticColors: () => semanticColors,
|
|
80
84
|
skeleton: () => skeleton,
|
|
85
|
+
slider: () => slider,
|
|
81
86
|
snippet: () => snippet,
|
|
82
87
|
spacer: () => spacer,
|
|
83
88
|
spacingScaleKeys: () => spacingScaleKeys,
|
|
@@ -149,39 +154,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
|
149
154
|
|
|
150
155
|
// src/utils/tv.ts
|
|
151
156
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
152
|
-
var tv = (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
],
|
|
176
|
-
"min-h": [
|
|
177
|
-
{
|
|
178
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
|
157
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
158
|
+
twMerge: true,
|
|
159
|
+
twMergeConfig: {
|
|
160
|
+
theme: {
|
|
161
|
+
opacity: ["disabled"],
|
|
162
|
+
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
|
|
163
|
+
borderWidth: COMMON_UNITS,
|
|
164
|
+
borderRadius: COMMON_UNITS
|
|
165
|
+
},
|
|
166
|
+
classGroups: {
|
|
167
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
168
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
169
|
+
"bg-image": ["bg-stripe-gradient"],
|
|
170
|
+
"min-w": [
|
|
171
|
+
{
|
|
172
|
+
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"min-h": [
|
|
176
|
+
{
|
|
177
|
+
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
182
180
|
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
181
|
+
}
|
|
182
|
+
});
|
|
185
183
|
|
|
186
184
|
// src/utils/classes.ts
|
|
187
185
|
var baseStyles = (prefix) => ({
|
|
@@ -224,6 +222,14 @@ var translateCenterClasses = [
|
|
|
224
222
|
"-translate-y-1/2"
|
|
225
223
|
];
|
|
226
224
|
var absoluteFullClasses = ["absolute", "inset-0"];
|
|
225
|
+
var collapseAdjacentVariantBorders = {
|
|
226
|
+
default: ["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
227
|
+
primary: ["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
228
|
+
secondary: ["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
229
|
+
success: ["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
230
|
+
warning: ["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],
|
|
231
|
+
danger: ["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]
|
|
232
|
+
};
|
|
227
233
|
|
|
228
234
|
// src/utils/variants.ts
|
|
229
235
|
var solid = {
|
|
@@ -311,7 +317,7 @@ var avatar = tv({
|
|
|
311
317
|
"overflow-hidden",
|
|
312
318
|
"align-middle",
|
|
313
319
|
"text-white",
|
|
314
|
-
"z-
|
|
320
|
+
"z-0",
|
|
315
321
|
...dataFocusVisibleClasses
|
|
316
322
|
],
|
|
317
323
|
img: [
|
|
@@ -398,7 +404,7 @@ var avatar = tv({
|
|
|
398
404
|
isInGroup: {
|
|
399
405
|
true: {
|
|
400
406
|
base: [
|
|
401
|
-
"-
|
|
407
|
+
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
402
408
|
"data-[focus-visible=true]:-translate-x-3"
|
|
403
409
|
]
|
|
404
410
|
}
|
|
@@ -426,7 +432,7 @@ var avatar = tv({
|
|
|
426
432
|
color: "primary",
|
|
427
433
|
isBordered: true,
|
|
428
434
|
class: {
|
|
429
|
-
base: "ring-
|
|
435
|
+
base: "ring-primary"
|
|
430
436
|
}
|
|
431
437
|
},
|
|
432
438
|
{
|
|
@@ -500,7 +506,7 @@ var card = tv({
|
|
|
500
506
|
"flex",
|
|
501
507
|
"flex-1",
|
|
502
508
|
"w-full",
|
|
503
|
-
"p-
|
|
509
|
+
"p-3",
|
|
504
510
|
"flex-auto",
|
|
505
511
|
"flex-col",
|
|
506
512
|
"place-content-inherit",
|
|
@@ -792,7 +798,7 @@ var button = tv({
|
|
|
792
798
|
},
|
|
793
799
|
disableAnimation: {
|
|
794
800
|
true: "!transition-none",
|
|
795
|
-
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors motion-reduce:transition-none"
|
|
801
|
+
false: "data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"
|
|
796
802
|
}
|
|
797
803
|
},
|
|
798
804
|
defaultVariants: {
|
|
@@ -1015,30 +1021,90 @@ var button = tv({
|
|
|
1015
1021
|
color: "danger",
|
|
1016
1022
|
class: colorVariants.ghost.danger
|
|
1017
1023
|
},
|
|
1024
|
+
{
|
|
1025
|
+
isInGroup: true,
|
|
1026
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
1027
|
+
},
|
|
1018
1028
|
{
|
|
1019
1029
|
isInGroup: true,
|
|
1020
1030
|
size: "sm",
|
|
1021
|
-
class: "rounded-none first:rounded-
|
|
1031
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
1022
1032
|
},
|
|
1023
1033
|
{
|
|
1024
1034
|
isInGroup: true,
|
|
1025
1035
|
size: "md",
|
|
1026
|
-
class: "rounded-none first:rounded-
|
|
1036
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
1027
1037
|
},
|
|
1028
1038
|
{
|
|
1029
1039
|
isInGroup: true,
|
|
1030
1040
|
size: "lg",
|
|
1031
|
-
class: "rounded-none first:rounded-
|
|
1041
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
1032
1042
|
},
|
|
1033
1043
|
{
|
|
1034
1044
|
isInGroup: true,
|
|
1035
1045
|
isRounded: true,
|
|
1036
|
-
class: "rounded-none first:rounded-
|
|
1046
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
isInGroup: true,
|
|
1050
|
+
radius: "none",
|
|
1051
|
+
class: "rounded-none first:rounded-s-none last:rounded-e-none"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
isInGroup: true,
|
|
1055
|
+
radius: "sm",
|
|
1056
|
+
class: "rounded-none first:rounded-s-small last:rounded-e-small"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
isInGroup: true,
|
|
1060
|
+
radius: "md",
|
|
1061
|
+
class: "rounded-none first:rounded-s-medium last:rounded-e-medium"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
isInGroup: true,
|
|
1065
|
+
radius: "lg",
|
|
1066
|
+
class: "rounded-none first:rounded-s-large last:rounded-e-large"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
isInGroup: true,
|
|
1070
|
+
radius: "full",
|
|
1071
|
+
class: "rounded-none first:rounded-s-full last:rounded-e-full"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
isInGroup: true,
|
|
1075
|
+
variant: ["ghost", "bordered"],
|
|
1076
|
+
color: "default",
|
|
1077
|
+
className: collapseAdjacentVariantBorders.default
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
isInGroup: true,
|
|
1081
|
+
variant: ["ghost", "bordered"],
|
|
1082
|
+
color: "primary",
|
|
1083
|
+
className: collapseAdjacentVariantBorders.primary
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
isInGroup: true,
|
|
1087
|
+
variant: ["ghost", "bordered"],
|
|
1088
|
+
color: "secondary",
|
|
1089
|
+
className: collapseAdjacentVariantBorders.secondary
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
isInGroup: true,
|
|
1093
|
+
variant: ["ghost", "bordered"],
|
|
1094
|
+
color: "success",
|
|
1095
|
+
className: collapseAdjacentVariantBorders.success
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
isInGroup: true,
|
|
1099
|
+
variant: ["ghost", "bordered"],
|
|
1100
|
+
color: "warning",
|
|
1101
|
+
className: collapseAdjacentVariantBorders.warning
|
|
1037
1102
|
},
|
|
1038
1103
|
{
|
|
1039
1104
|
isInGroup: true,
|
|
1040
|
-
variant: ["
|
|
1041
|
-
|
|
1105
|
+
variant: ["ghost", "bordered"],
|
|
1106
|
+
color: "danger",
|
|
1107
|
+
className: collapseAdjacentVariantBorders.danger
|
|
1042
1108
|
},
|
|
1043
1109
|
{
|
|
1044
1110
|
isIconOnly: true,
|
|
@@ -1054,6 +1120,10 @@ var button = tv({
|
|
|
1054
1120
|
isIconOnly: true,
|
|
1055
1121
|
size: "lg",
|
|
1056
1122
|
class: "min-w-unit-12 w-unit-12 h-unit-12"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
1126
|
+
class: "data-[hover=true]:opacity-hover"
|
|
1057
1127
|
}
|
|
1058
1128
|
]
|
|
1059
1129
|
});
|
|
@@ -1225,107 +1295,118 @@ var code = tv({
|
|
|
1225
1295
|
var popover = tv({
|
|
1226
1296
|
slots: {
|
|
1227
1297
|
base: [
|
|
1228
|
-
"z-
|
|
1298
|
+
"z-0",
|
|
1229
1299
|
"relative",
|
|
1300
|
+
"bg-transparent",
|
|
1301
|
+
"before:content-['']",
|
|
1302
|
+
"before:hidden",
|
|
1303
|
+
"before:z-[-1]",
|
|
1304
|
+
"before:absolute",
|
|
1305
|
+
"before:rotate-45",
|
|
1306
|
+
"before:w-2.5",
|
|
1307
|
+
"before:h-2.5",
|
|
1308
|
+
"before:rounded-sm",
|
|
1309
|
+
"data-[arrow=true]:before:block",
|
|
1310
|
+
"data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1311
|
+
"data-[placement=top]:before:left-1/2",
|
|
1312
|
+
"data-[placement=top]:before:-translate-x-1/2",
|
|
1313
|
+
"data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1314
|
+
"data-[placement=top-start]:before:left-3",
|
|
1315
|
+
"data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1316
|
+
"data-[placement=top-end]:before:right-3",
|
|
1317
|
+
"data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1318
|
+
"data-[placement=bottom]:before:left-1/2",
|
|
1319
|
+
"data-[placement=bottom]:before:-translate-x-1/2",
|
|
1320
|
+
"data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1321
|
+
"data-[placement=bottom-start]:before:left-3",
|
|
1322
|
+
"data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]",
|
|
1323
|
+
"data-[placement=bottom-end]:before:right-3",
|
|
1324
|
+
"data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]",
|
|
1325
|
+
"data-[placement=left]:before:top-1/2",
|
|
1326
|
+
"data-[placement=left]:before:-translate-y-1/2",
|
|
1327
|
+
"data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1328
|
+
"data-[placement=left-start]:before:top-1/4",
|
|
1329
|
+
"data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1330
|
+
"data-[placement=left-end]:before:bottom-1/4",
|
|
1331
|
+
"data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]",
|
|
1332
|
+
"data-[placement=right]:before:top-1/2",
|
|
1333
|
+
"data-[placement=right]:before:-translate-y-1/2",
|
|
1334
|
+
"data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1335
|
+
"data-[placement=right-start]:before:top-1/4",
|
|
1336
|
+
"data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]",
|
|
1337
|
+
"data-[placement=right-end]:before:bottom-1/4",
|
|
1338
|
+
...dataFocusVisibleClasses
|
|
1339
|
+
],
|
|
1340
|
+
content: [
|
|
1341
|
+
"z-10",
|
|
1342
|
+
"px-2.5",
|
|
1343
|
+
"py-1",
|
|
1344
|
+
"w-full",
|
|
1230
1345
|
"inline-flex",
|
|
1231
1346
|
"flex-col",
|
|
1232
1347
|
"items-center",
|
|
1233
1348
|
"justify-center",
|
|
1234
1349
|
"box-border",
|
|
1235
1350
|
"subpixel-antialiased",
|
|
1236
|
-
"px-4",
|
|
1237
|
-
"py-1",
|
|
1238
1351
|
"outline-none",
|
|
1239
|
-
"box-border"
|
|
1240
|
-
...dataFocusVisibleClasses
|
|
1352
|
+
"box-border"
|
|
1241
1353
|
],
|
|
1242
1354
|
trigger: ["z-10"],
|
|
1243
1355
|
backdrop: ["hidden"],
|
|
1244
|
-
arrow: [
|
|
1245
|
-
"z-[-1]",
|
|
1246
|
-
"absolute",
|
|
1247
|
-
"rotate-45",
|
|
1248
|
-
"w-2.5",
|
|
1249
|
-
"h-2.5",
|
|
1250
|
-
"rounded-sm",
|
|
1251
|
-
"data-[placement=top]:-bottom-1",
|
|
1252
|
-
"data-[placement=top]:-translate-x-1/2",
|
|
1253
|
-
"data-[placement=top-start]:-bottom-1",
|
|
1254
|
-
"data-[placement=top-start]:-translate-x-8",
|
|
1255
|
-
"data-[placement=top-end]:-bottom-1",
|
|
1256
|
-
"data-[placement=top-end]:translate-x-6",
|
|
1257
|
-
"data-[placement=bottom]:-top-1",
|
|
1258
|
-
"data-[placement=bottom]:-translate-x-1/2",
|
|
1259
|
-
"data-[placement=bottom-start]:-top-1",
|
|
1260
|
-
"data-[placement=bottom-start]:-translate-x-8",
|
|
1261
|
-
"data-[placement=bottom-end]:-top-1",
|
|
1262
|
-
"data-[placement=bottom-end]:translate-x-6",
|
|
1263
|
-
"data-[placement=left]:-right-1",
|
|
1264
|
-
"data-[placement=left]:-translate-y-1/2",
|
|
1265
|
-
"data-[placement=left-start]:-right-1",
|
|
1266
|
-
"data-[placement=left-start]:-translate-y-3",
|
|
1267
|
-
"data-[placement=left-end]:-right-1",
|
|
1268
|
-
"data-[placement=left-end]:translate-y-0.5",
|
|
1269
|
-
"data-[placement=right]:-left-1",
|
|
1270
|
-
"data-[placement=right]:-translate-y-1/2",
|
|
1271
|
-
"data-[placement=right-start]:-left-1",
|
|
1272
|
-
"data-[placement=right-start]:-translate-y-3",
|
|
1273
|
-
"data-[placement=right-end]:-left-1",
|
|
1274
|
-
"data-[placement=right-end]:translate-y-0.5"
|
|
1275
|
-
]
|
|
1356
|
+
arrow: []
|
|
1276
1357
|
},
|
|
1277
1358
|
variants: {
|
|
1278
1359
|
size: {
|
|
1279
|
-
sm: {
|
|
1280
|
-
md: {
|
|
1281
|
-
lg: {
|
|
1360
|
+
sm: { content: "text-tiny" },
|
|
1361
|
+
md: { content: "text-small" },
|
|
1362
|
+
lg: { content: "text-medium" }
|
|
1282
1363
|
},
|
|
1283
1364
|
color: {
|
|
1284
1365
|
default: {
|
|
1285
|
-
base: "bg-content1",
|
|
1286
|
-
|
|
1366
|
+
base: "before:bg-content1 before:shadow-small",
|
|
1367
|
+
content: "bg-content1"
|
|
1287
1368
|
},
|
|
1288
1369
|
foreground: {
|
|
1289
|
-
base:
|
|
1290
|
-
|
|
1370
|
+
base: "before:bg-foreground",
|
|
1371
|
+
content: colorVariants.solid.foreground
|
|
1291
1372
|
},
|
|
1292
1373
|
primary: {
|
|
1293
|
-
base:
|
|
1294
|
-
|
|
1374
|
+
base: "before:bg-primary",
|
|
1375
|
+
content: colorVariants.solid.primary
|
|
1295
1376
|
},
|
|
1296
1377
|
secondary: {
|
|
1297
|
-
base:
|
|
1298
|
-
|
|
1378
|
+
base: "before:bg-secondary",
|
|
1379
|
+
content: colorVariants.solid.secondary
|
|
1299
1380
|
},
|
|
1300
1381
|
success: {
|
|
1301
|
-
base:
|
|
1302
|
-
|
|
1382
|
+
base: "before:bg-success",
|
|
1383
|
+
content: colorVariants.solid.success
|
|
1303
1384
|
},
|
|
1304
1385
|
warning: {
|
|
1305
|
-
base:
|
|
1306
|
-
|
|
1386
|
+
base: "before:bg-warning",
|
|
1387
|
+
content: colorVariants.solid.warning
|
|
1307
1388
|
},
|
|
1308
1389
|
danger: {
|
|
1309
|
-
base:
|
|
1310
|
-
|
|
1390
|
+
base: "before:bg-danger",
|
|
1391
|
+
content: colorVariants.solid.danger
|
|
1311
1392
|
}
|
|
1312
1393
|
},
|
|
1313
1394
|
radius: {
|
|
1314
|
-
none: {
|
|
1315
|
-
sm: {
|
|
1316
|
-
md: {
|
|
1317
|
-
lg: {
|
|
1318
|
-
full: {
|
|
1395
|
+
none: { content: "rounded-none" },
|
|
1396
|
+
sm: { content: "rounded-small" },
|
|
1397
|
+
md: { content: "rounded-medium" },
|
|
1398
|
+
lg: { content: "rounded-large" },
|
|
1399
|
+
full: { content: "rounded-full" }
|
|
1319
1400
|
},
|
|
1320
1401
|
shadow: {
|
|
1321
1402
|
sm: {
|
|
1322
|
-
|
|
1403
|
+
content: "shadow-small"
|
|
1323
1404
|
},
|
|
1324
1405
|
md: {
|
|
1325
|
-
|
|
1406
|
+
content: "shadow-medium"
|
|
1326
1407
|
},
|
|
1327
1408
|
lg: {
|
|
1328
|
-
|
|
1409
|
+
content: "shadow-large"
|
|
1329
1410
|
}
|
|
1330
1411
|
},
|
|
1331
1412
|
backdrop: {
|
|
@@ -1732,7 +1813,7 @@ var chip = tv({
|
|
|
1732
1813
|
},
|
|
1733
1814
|
size: {
|
|
1734
1815
|
sm: {
|
|
1735
|
-
base: "px-1 h-6 text-
|
|
1816
|
+
base: "px-1 h-6 text-tiny",
|
|
1736
1817
|
content: "px-1",
|
|
1737
1818
|
closeButton: "text-medium",
|
|
1738
1819
|
avatar: "w-4 h-4"
|
|
@@ -2199,12 +2280,12 @@ var badge = tv({
|
|
|
2199
2280
|
badge: "transition-transform-opacity !ease-soft-spring !duration-300"
|
|
2200
2281
|
}
|
|
2201
2282
|
},
|
|
2202
|
-
|
|
2283
|
+
showOutline: {
|
|
2203
2284
|
true: {
|
|
2204
|
-
badge: "border-
|
|
2285
|
+
badge: "border-2 border-background"
|
|
2205
2286
|
},
|
|
2206
2287
|
false: {
|
|
2207
|
-
badge: "border-
|
|
2288
|
+
badge: "border-transparent border-0"
|
|
2208
2289
|
}
|
|
2209
2290
|
}
|
|
2210
2291
|
},
|
|
@@ -2214,7 +2295,7 @@ var badge = tv({
|
|
|
2214
2295
|
size: "md",
|
|
2215
2296
|
shape: "rectangle",
|
|
2216
2297
|
placement: "top-right",
|
|
2217
|
-
|
|
2298
|
+
showOutline: true,
|
|
2218
2299
|
disableAnimation: false,
|
|
2219
2300
|
isInvisible: false
|
|
2220
2301
|
},
|
|
@@ -2783,7 +2864,7 @@ var radio = tv({
|
|
|
2783
2864
|
isInvalid: {
|
|
2784
2865
|
true: {
|
|
2785
2866
|
control: "bg-danger text-danger-foreground",
|
|
2786
|
-
wrapper: "border-danger data-[selected=true]:border-danger",
|
|
2867
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2787
2868
|
label: "text-danger",
|
|
2788
2869
|
description: "text-danger-300"
|
|
2789
2870
|
}
|
|
@@ -2870,6 +2951,7 @@ var pagination = tv({
|
|
|
2870
2951
|
"left-0",
|
|
2871
2952
|
"select-none",
|
|
2872
2953
|
"touch-none",
|
|
2954
|
+
"pointer-events-none",
|
|
2873
2955
|
"z-20"
|
|
2874
2956
|
],
|
|
2875
2957
|
forwardIcon: "hidden group-hover:block group-data-[focus-visible=true]:block data-[before=true]:rotate-180",
|
|
@@ -2959,7 +3041,12 @@ var pagination = tv({
|
|
|
2959
3041
|
},
|
|
2960
3042
|
false: {
|
|
2961
3043
|
item: ["data-[pressed=true]:scale-[0.97]", "transition-transform-background"],
|
|
2962
|
-
cursor: [
|
|
3044
|
+
cursor: [
|
|
3045
|
+
"data-[moving=true]:transition-transform",
|
|
3046
|
+
"!data-[moving=true]:duration-300",
|
|
3047
|
+
"opacity-0",
|
|
3048
|
+
"data-[moving]:opacity-100"
|
|
3049
|
+
]
|
|
2963
3050
|
}
|
|
2964
3051
|
}
|
|
2965
3052
|
},
|
|
@@ -3164,17 +3251,28 @@ var pagination = tv({
|
|
|
3164
3251
|
{
|
|
3165
3252
|
slots: ["item", "prev", "next"],
|
|
3166
3253
|
variant: "flat",
|
|
3167
|
-
class: [
|
|
3254
|
+
class: [
|
|
3255
|
+
"bg-default-100",
|
|
3256
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-200",
|
|
3257
|
+
"active:bg-default-300"
|
|
3258
|
+
]
|
|
3168
3259
|
},
|
|
3169
3260
|
{
|
|
3170
3261
|
slots: ["item", "prev", "next"],
|
|
3171
3262
|
variant: "faded",
|
|
3172
|
-
class: [
|
|
3263
|
+
class: [
|
|
3264
|
+
"bg-default-50",
|
|
3265
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3266
|
+
"active:bg-default-200"
|
|
3267
|
+
]
|
|
3173
3268
|
},
|
|
3174
3269
|
{
|
|
3175
3270
|
slots: ["item", "prev", "next"],
|
|
3176
3271
|
variant: "light",
|
|
3177
|
-
class: [
|
|
3272
|
+
class: [
|
|
3273
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3274
|
+
"active:bg-default-200"
|
|
3275
|
+
]
|
|
3178
3276
|
},
|
|
3179
3277
|
{
|
|
3180
3278
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -3415,7 +3513,7 @@ var accordionItem = tv({
|
|
|
3415
3513
|
],
|
|
3416
3514
|
startContent: "flex-shrink-0",
|
|
3417
3515
|
indicator: "text-default-400",
|
|
3418
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
3516
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
3419
3517
|
title: "text-foreground text-large",
|
|
3420
3518
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
3421
3519
|
content: "py-2"
|
|
@@ -3454,7 +3552,7 @@ var accordionItem = tv({
|
|
|
3454
3552
|
indicator: "transition-none"
|
|
3455
3553
|
},
|
|
3456
3554
|
false: {
|
|
3457
|
-
indicator: "rotate-0 data-[open=true]:-rotate-90"
|
|
3555
|
+
indicator: "rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"
|
|
3458
3556
|
}
|
|
3459
3557
|
}
|
|
3460
3558
|
},
|
|
@@ -3671,12 +3769,25 @@ var circularProgress = tv({
|
|
|
3671
3769
|
// src/components/input.ts
|
|
3672
3770
|
var input = tv({
|
|
3673
3771
|
slots: {
|
|
3674
|
-
base: "group flex flex-col",
|
|
3675
|
-
label:
|
|
3772
|
+
base: ["group flex flex-col", "data-[has-helper=true]:mb-4"],
|
|
3773
|
+
label: [
|
|
3774
|
+
"absolute",
|
|
3775
|
+
"z-10",
|
|
3776
|
+
"pointer-events-none",
|
|
3777
|
+
"origin-top-left",
|
|
3778
|
+
"subpixel-antialiased",
|
|
3779
|
+
"block",
|
|
3780
|
+
"text-small",
|
|
3781
|
+
"text-foreground-500"
|
|
3782
|
+
],
|
|
3676
3783
|
mainWrapper: "h-full",
|
|
3677
3784
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3678
|
-
innerWrapper: "inline-flex
|
|
3679
|
-
input:
|
|
3785
|
+
innerWrapper: "inline-flex w-full items-center h-full box-border",
|
|
3786
|
+
input: [
|
|
3787
|
+
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
|
3788
|
+
"data-[has-start-content=true]:ps-1.5",
|
|
3789
|
+
"data-[has-end-content=true]:pe-1.5"
|
|
3790
|
+
],
|
|
3680
3791
|
clearButton: [
|
|
3681
3792
|
"p-2",
|
|
3682
3793
|
"-m-2",
|
|
@@ -3694,7 +3805,7 @@ var input = tv({
|
|
|
3694
3805
|
"rounded-full",
|
|
3695
3806
|
...dataFocusVisibleClasses
|
|
3696
3807
|
],
|
|
3697
|
-
helperWrapper: "flex
|
|
3808
|
+
helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
|
|
3698
3809
|
description: "text-tiny text-foreground-400",
|
|
3699
3810
|
errorMessage: "text-tiny text-danger"
|
|
3700
3811
|
},
|
|
@@ -3745,7 +3856,8 @@ var input = tv({
|
|
|
3745
3856
|
"after:-bottom-[2px]",
|
|
3746
3857
|
"after:h-[2px]",
|
|
3747
3858
|
"group-data-[focus=true]:after:w-full"
|
|
3748
|
-
]
|
|
3859
|
+
],
|
|
3860
|
+
innerWrapper: "pb-1"
|
|
3749
3861
|
}
|
|
3750
3862
|
},
|
|
3751
3863
|
color: {
|
|
@@ -3760,7 +3872,7 @@ var input = tv({
|
|
|
3760
3872
|
sm: {
|
|
3761
3873
|
label: "text-tiny",
|
|
3762
3874
|
inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
3763
|
-
input: "text-
|
|
3875
|
+
input: "text-tiny",
|
|
3764
3876
|
clearButton: "text-medium"
|
|
3765
3877
|
},
|
|
3766
3878
|
md: {
|
|
@@ -3800,11 +3912,12 @@ var input = tv({
|
|
|
3800
3912
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3801
3913
|
inputWrapper: "flex-1",
|
|
3802
3914
|
mainWrapper: "flex flex-col",
|
|
3803
|
-
label: "text-foreground pr-2"
|
|
3915
|
+
label: "relative text-foreground pr-2"
|
|
3804
3916
|
},
|
|
3805
3917
|
inside: {
|
|
3806
3918
|
label: "text-tiny cursor-text",
|
|
3807
|
-
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
3919
|
+
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3920
|
+
innerWrapper: "items-end"
|
|
3808
3921
|
}
|
|
3809
3922
|
},
|
|
3810
3923
|
fullWidth: {
|
|
@@ -3812,11 +3925,6 @@ var input = tv({
|
|
|
3812
3925
|
base: "w-full"
|
|
3813
3926
|
}
|
|
3814
3927
|
},
|
|
3815
|
-
isLabelPlaceholder: {
|
|
3816
|
-
true: {
|
|
3817
|
-
label: "absolute z-10 pointer-events-none"
|
|
3818
|
-
}
|
|
3819
|
-
},
|
|
3820
3928
|
isClearable: {
|
|
3821
3929
|
true: {
|
|
3822
3930
|
input: "peer pr-6",
|
|
@@ -3843,12 +3951,14 @@ var input = tv({
|
|
|
3843
3951
|
},
|
|
3844
3952
|
isMultiline: {
|
|
3845
3953
|
true: {
|
|
3954
|
+
label: "relative",
|
|
3846
3955
|
inputWrapper: "!h-auto",
|
|
3847
|
-
input: "resize-none py-2"
|
|
3956
|
+
input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
|
|
3848
3957
|
}
|
|
3849
3958
|
},
|
|
3850
3959
|
disableAnimation: {
|
|
3851
3960
|
true: {
|
|
3961
|
+
input: "transition-none",
|
|
3852
3962
|
inputWrapper: "transition-none",
|
|
3853
3963
|
label: "transition-none"
|
|
3854
3964
|
},
|
|
@@ -3856,11 +3966,10 @@ var input = tv({
|
|
|
3856
3966
|
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
3857
3967
|
label: [
|
|
3858
3968
|
"will-change-auto",
|
|
3859
|
-
"origin-top-left",
|
|
3860
|
-
"transition-all",
|
|
3861
3969
|
"!duration-200",
|
|
3862
3970
|
"!ease-out",
|
|
3863
|
-
"motion-reduce:transition-none"
|
|
3971
|
+
"motion-reduce:transition-none",
|
|
3972
|
+
"transition-[transform,color,left,opacity]"
|
|
3864
3973
|
],
|
|
3865
3974
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
3866
3975
|
}
|
|
@@ -3873,6 +3982,7 @@ var input = tv({
|
|
|
3873
3982
|
fullWidth: true,
|
|
3874
3983
|
labelPlacement: "inside",
|
|
3875
3984
|
isDisabled: false,
|
|
3985
|
+
isMultiline: false,
|
|
3876
3986
|
disableAnimation: false
|
|
3877
3987
|
},
|
|
3878
3988
|
compoundVariants: [
|
|
@@ -4120,6 +4230,13 @@ var input = tv({
|
|
|
4120
4230
|
]
|
|
4121
4231
|
}
|
|
4122
4232
|
},
|
|
4233
|
+
{
|
|
4234
|
+
labelPlacement: "inside",
|
|
4235
|
+
color: "default",
|
|
4236
|
+
class: {
|
|
4237
|
+
label: "group-data-[filled-within=true]:text-foreground-600"
|
|
4238
|
+
}
|
|
4239
|
+
},
|
|
4123
4240
|
{
|
|
4124
4241
|
isInvalid: true,
|
|
4125
4242
|
variant: "flat",
|
|
@@ -4168,19 +4285,28 @@ var input = tv({
|
|
|
4168
4285
|
}
|
|
4169
4286
|
},
|
|
4170
4287
|
{
|
|
4171
|
-
|
|
4288
|
+
labelPlacement: "inside",
|
|
4289
|
+
size: "sm",
|
|
4290
|
+
variant: ["bordered", "faded"],
|
|
4291
|
+
class: {
|
|
4292
|
+
inputWrapper: "py-1"
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4172
4296
|
labelPlacement: ["inside", "outside"],
|
|
4173
4297
|
class: {
|
|
4174
|
-
label: [
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4298
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
labelPlacement: ["outside", "outside-left"],
|
|
4303
|
+
class: {
|
|
4304
|
+
input: "h-full"
|
|
4179
4305
|
}
|
|
4180
4306
|
},
|
|
4181
4307
|
{
|
|
4182
|
-
isLabelPlaceholder: true,
|
|
4183
4308
|
labelPlacement: "outside",
|
|
4309
|
+
isMultiline: false,
|
|
4184
4310
|
class: {
|
|
4185
4311
|
base: "group relative justify-end",
|
|
4186
4312
|
label: [
|
|
@@ -4195,85 +4321,176 @@ var input = tv({
|
|
|
4195
4321
|
}
|
|
4196
4322
|
},
|
|
4197
4323
|
{
|
|
4198
|
-
|
|
4324
|
+
labelPlacement: ["inside"],
|
|
4325
|
+
class: {
|
|
4326
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
4327
|
+
}
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
labelPlacement: ["inside"],
|
|
4331
|
+
variant: "flat",
|
|
4332
|
+
size: ["md", "lg"],
|
|
4333
|
+
class: {
|
|
4334
|
+
innerWrapper: "pb-0.5"
|
|
4335
|
+
}
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
variant: "underlined",
|
|
4339
|
+
size: "sm",
|
|
4340
|
+
class: {
|
|
4341
|
+
innerWrapper: "pb-1"
|
|
4342
|
+
}
|
|
4343
|
+
},
|
|
4344
|
+
{
|
|
4345
|
+
variant: "underlined",
|
|
4346
|
+
size: ["md", "lg"],
|
|
4347
|
+
class: {
|
|
4348
|
+
innerWrapper: "pb-1.5"
|
|
4349
|
+
}
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4199
4352
|
labelPlacement: "inside",
|
|
4200
4353
|
size: ["sm", "md"],
|
|
4201
4354
|
class: {
|
|
4202
|
-
label:
|
|
4203
|
-
input: "pt-4"
|
|
4355
|
+
label: "text-small"
|
|
4204
4356
|
}
|
|
4205
4357
|
},
|
|
4206
4358
|
{
|
|
4207
|
-
isLabelPlaceholder: true,
|
|
4208
4359
|
labelPlacement: "inside",
|
|
4360
|
+
isMultiline: false,
|
|
4209
4361
|
size: "sm",
|
|
4210
4362
|
class: {
|
|
4211
4363
|
label: [
|
|
4212
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
4213
|
-
]
|
|
4214
|
-
input: "pt-4"
|
|
4364
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4365
|
+
]
|
|
4215
4366
|
}
|
|
4216
4367
|
},
|
|
4217
4368
|
{
|
|
4218
|
-
isLabelPlaceholder: true,
|
|
4219
4369
|
labelPlacement: "inside",
|
|
4370
|
+
isMultiline: false,
|
|
4220
4371
|
size: "md",
|
|
4221
4372
|
class: {
|
|
4222
4373
|
label: [
|
|
4223
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
4224
|
-
]
|
|
4225
|
-
input: "pt-4"
|
|
4374
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4375
|
+
]
|
|
4226
4376
|
}
|
|
4227
4377
|
},
|
|
4228
4378
|
{
|
|
4229
|
-
isLabelPlaceholder: true,
|
|
4230
4379
|
labelPlacement: "inside",
|
|
4380
|
+
isMultiline: false,
|
|
4231
4381
|
size: "lg",
|
|
4232
4382
|
class: {
|
|
4233
4383
|
label: [
|
|
4234
4384
|
"text-medium",
|
|
4235
|
-
"group-data-[filled-within=true]
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4385
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4386
|
+
]
|
|
4387
|
+
}
|
|
4388
|
+
},
|
|
4389
|
+
{
|
|
4390
|
+
labelPlacement: "inside",
|
|
4391
|
+
variant: ["faded", "bordered"],
|
|
4392
|
+
isMultiline: false,
|
|
4393
|
+
size: "sm",
|
|
4394
|
+
class: {
|
|
4395
|
+
label: [
|
|
4396
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4397
|
+
]
|
|
4398
|
+
}
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
labelPlacement: "inside",
|
|
4402
|
+
variant: ["faded", "bordered"],
|
|
4403
|
+
isMultiline: false,
|
|
4404
|
+
size: "md",
|
|
4405
|
+
class: {
|
|
4406
|
+
label: [
|
|
4407
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4408
|
+
]
|
|
4409
|
+
}
|
|
4410
|
+
},
|
|
4411
|
+
{
|
|
4412
|
+
labelPlacement: "inside",
|
|
4413
|
+
variant: ["faded", "bordered"],
|
|
4414
|
+
isMultiline: false,
|
|
4415
|
+
size: "lg",
|
|
4416
|
+
class: {
|
|
4417
|
+
label: [
|
|
4418
|
+
"text-medium",
|
|
4419
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4420
|
+
]
|
|
4421
|
+
}
|
|
4422
|
+
},
|
|
4423
|
+
{
|
|
4424
|
+
labelPlacement: "inside",
|
|
4425
|
+
variant: "underlined",
|
|
4426
|
+
isMultiline: false,
|
|
4427
|
+
size: "sm",
|
|
4428
|
+
class: {
|
|
4429
|
+
label: [
|
|
4430
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4431
|
+
]
|
|
4432
|
+
}
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
labelPlacement: "inside",
|
|
4436
|
+
variant: "underlined",
|
|
4437
|
+
isMultiline: false,
|
|
4438
|
+
size: "md",
|
|
4439
|
+
class: {
|
|
4440
|
+
label: [
|
|
4441
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4442
|
+
]
|
|
4443
|
+
}
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
labelPlacement: "inside",
|
|
4447
|
+
variant: "underlined",
|
|
4448
|
+
size: "lg",
|
|
4449
|
+
isMultiline: false,
|
|
4450
|
+
class: {
|
|
4451
|
+
label: [
|
|
4452
|
+
"text-medium",
|
|
4453
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4454
|
+
]
|
|
4239
4455
|
}
|
|
4240
4456
|
},
|
|
4241
4457
|
{
|
|
4242
|
-
isLabelPlaceholder: true,
|
|
4243
4458
|
labelPlacement: "outside",
|
|
4244
4459
|
size: "sm",
|
|
4460
|
+
isMultiline: false,
|
|
4245
4461
|
class: {
|
|
4246
4462
|
label: [
|
|
4247
4463
|
"left-2",
|
|
4248
|
-
"text-
|
|
4249
|
-
"group-data-[filled-within=true]:text-tiny",
|
|
4464
|
+
"text-tiny",
|
|
4250
4465
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4251
|
-
]
|
|
4466
|
+
],
|
|
4467
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4252
4468
|
}
|
|
4253
4469
|
},
|
|
4254
4470
|
{
|
|
4255
|
-
isLabelPlaceholder: true,
|
|
4256
4471
|
labelPlacement: "outside",
|
|
4257
4472
|
size: "md",
|
|
4473
|
+
isMultiline: false,
|
|
4258
4474
|
class: {
|
|
4259
4475
|
label: [
|
|
4260
4476
|
"left-3",
|
|
4261
4477
|
"text-small",
|
|
4262
4478
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4263
|
-
]
|
|
4479
|
+
],
|
|
4480
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4264
4481
|
}
|
|
4265
4482
|
},
|
|
4266
4483
|
{
|
|
4267
|
-
isLabelPlaceholder: true,
|
|
4268
4484
|
labelPlacement: "outside",
|
|
4269
4485
|
size: "lg",
|
|
4486
|
+
isMultiline: false,
|
|
4270
4487
|
class: {
|
|
4271
4488
|
label: [
|
|
4272
4489
|
"left-3",
|
|
4273
4490
|
"text-medium",
|
|
4274
|
-
"group-data-[filled-within=true]:text-small",
|
|
4275
4491
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4276
|
-
]
|
|
4492
|
+
],
|
|
4493
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4277
4494
|
}
|
|
4278
4495
|
},
|
|
4279
4496
|
{
|
|
@@ -4296,6 +4513,20 @@ var input = tv({
|
|
|
4296
4513
|
class: {
|
|
4297
4514
|
label: "group-data-[has-helper=true]:pt-4"
|
|
4298
4515
|
}
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
labelPlacement: "inside",
|
|
4519
|
+
isMultiline: true,
|
|
4520
|
+
class: {
|
|
4521
|
+
input: "pt-0"
|
|
4522
|
+
}
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
isMultiline: true,
|
|
4526
|
+
disableAnimation: false,
|
|
4527
|
+
class: {
|
|
4528
|
+
input: "transition-height !duration-100 motion-reduce:transition-none"
|
|
4529
|
+
}
|
|
4299
4530
|
}
|
|
4300
4531
|
]
|
|
4301
4532
|
});
|
|
@@ -5072,7 +5303,10 @@ var navbar = tv({
|
|
|
5072
5303
|
"gap-2",
|
|
5073
5304
|
"overflow-y-auto"
|
|
5074
5305
|
],
|
|
5075
|
-
menuItem: [
|
|
5306
|
+
menuItem: [
|
|
5307
|
+
"text-large",
|
|
5308
|
+
"data-[active=true]:font-semibold"
|
|
5309
|
+
]
|
|
5076
5310
|
},
|
|
5077
5311
|
variants: {
|
|
5078
5312
|
position: {
|
|
@@ -5785,7 +6019,7 @@ var skeleton = tv({
|
|
|
5785
6019
|
"after:-z-10",
|
|
5786
6020
|
"after:bg-content3",
|
|
5787
6021
|
"dark:after:bg-content2",
|
|
5788
|
-
"data-[loaded=true]
|
|
6022
|
+
"data-[loaded=true]:!bg-transparent",
|
|
5789
6023
|
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
5790
6024
|
"data-[loaded=true]:after:opacity-0"
|
|
5791
6025
|
],
|
|
@@ -5811,18 +6045,27 @@ var skeleton = tv({
|
|
|
5811
6045
|
// src/components/select.ts
|
|
5812
6046
|
var select = tv({
|
|
5813
6047
|
slots: {
|
|
5814
|
-
base: "group inline-flex flex-col relative w-full",
|
|
5815
|
-
label:
|
|
6048
|
+
base: ["group inline-flex flex-col relative w-full", "data-[has-helper=true]:mb-4"],
|
|
6049
|
+
label: [
|
|
6050
|
+
"block",
|
|
6051
|
+
"absolute",
|
|
6052
|
+
"z-10",
|
|
6053
|
+
"origin-top-left",
|
|
6054
|
+
"subpixel-antialiased",
|
|
6055
|
+
"text-small",
|
|
6056
|
+
"text-foreground-500",
|
|
6057
|
+
"pointer-events-none"
|
|
6058
|
+
],
|
|
5816
6059
|
mainWrapper: "w-full flex flex-col",
|
|
5817
6060
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
5818
|
-
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
6061
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] min-h-unit-4 items-center gap-1.5 box-border",
|
|
5819
6062
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
5820
6063
|
spinner: "absolute right-3",
|
|
5821
|
-
value: "font-normal w-full text-left
|
|
6064
|
+
value: ["font-normal", "w-full", "text-left"],
|
|
5822
6065
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
5823
6066
|
listbox: "",
|
|
5824
|
-
|
|
5825
|
-
helperWrapper: "flex
|
|
6067
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
6068
|
+
helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
|
|
5826
6069
|
description: "text-tiny text-foreground-400",
|
|
5827
6070
|
errorMessage: "text-tiny text-danger"
|
|
5828
6071
|
},
|
|
@@ -5879,7 +6122,9 @@ var select = tv({
|
|
|
5879
6122
|
}
|
|
5880
6123
|
},
|
|
5881
6124
|
color: {
|
|
5882
|
-
default: {
|
|
6125
|
+
default: {
|
|
6126
|
+
value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
|
|
6127
|
+
},
|
|
5883
6128
|
primary: {},
|
|
5884
6129
|
secondary: {},
|
|
5885
6130
|
success: {},
|
|
@@ -5890,7 +6135,7 @@ var select = tv({
|
|
|
5890
6135
|
sm: {
|
|
5891
6136
|
label: "text-tiny",
|
|
5892
6137
|
trigger: "h-unit-8 min-h-unit-8 px-2 rounded-small",
|
|
5893
|
-
value: "text-
|
|
6138
|
+
value: "text-tiny"
|
|
5894
6139
|
},
|
|
5895
6140
|
md: {
|
|
5896
6141
|
trigger: "h-unit-10 min-h-unit-10 rounded-medium",
|
|
@@ -5925,7 +6170,7 @@ var select = tv({
|
|
|
5925
6170
|
},
|
|
5926
6171
|
"outside-left": {
|
|
5927
6172
|
base: "flex-row items-center flex-nowrap items-start",
|
|
5928
|
-
label: "text-foreground pr-2"
|
|
6173
|
+
label: "relative text-foreground pr-2"
|
|
5929
6174
|
},
|
|
5930
6175
|
inside: {
|
|
5931
6176
|
label: "text-tiny cursor-pointer",
|
|
@@ -5937,12 +6182,7 @@ var select = tv({
|
|
|
5937
6182
|
base: "w-full"
|
|
5938
6183
|
}
|
|
5939
6184
|
},
|
|
5940
|
-
|
|
5941
|
-
true: {
|
|
5942
|
-
label: "absolute z-10"
|
|
5943
|
-
}
|
|
5944
|
-
},
|
|
5945
|
-
isDisabled: {
|
|
6185
|
+
isDisabled: {
|
|
5946
6186
|
true: {
|
|
5947
6187
|
base: "opacity-disabled pointer-events-none",
|
|
5948
6188
|
trigger: "pointer-events-none"
|
|
@@ -5951,7 +6191,7 @@ var select = tv({
|
|
|
5951
6191
|
isInvalid: {
|
|
5952
6192
|
true: {
|
|
5953
6193
|
label: "!text-danger",
|
|
5954
|
-
value: "text-danger",
|
|
6194
|
+
value: "!text-danger",
|
|
5955
6195
|
selectorIcon: "text-danger"
|
|
5956
6196
|
}
|
|
5957
6197
|
},
|
|
@@ -5962,6 +6202,7 @@ var select = tv({
|
|
|
5962
6202
|
},
|
|
5963
6203
|
isMultiline: {
|
|
5964
6204
|
true: {
|
|
6205
|
+
label: "relative",
|
|
5965
6206
|
trigger: "!h-auto"
|
|
5966
6207
|
},
|
|
5967
6208
|
false: {
|
|
@@ -5980,9 +6221,9 @@ var select = tv({
|
|
|
5980
6221
|
label: [
|
|
5981
6222
|
"will-change-auto",
|
|
5982
6223
|
"origin-top-left",
|
|
5983
|
-
"transition-all",
|
|
5984
6224
|
"!duration-200",
|
|
5985
6225
|
"!ease-out",
|
|
6226
|
+
"transition-[transform,color,left,opacity]",
|
|
5986
6227
|
"motion-reduce:transition-none"
|
|
5987
6228
|
],
|
|
5988
6229
|
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
@@ -6243,6 +6484,13 @@ var select = tv({
|
|
|
6243
6484
|
]
|
|
6244
6485
|
}
|
|
6245
6486
|
},
|
|
6487
|
+
{
|
|
6488
|
+
labelPlacement: "inside",
|
|
6489
|
+
color: "default",
|
|
6490
|
+
class: {
|
|
6491
|
+
label: "group-data-[filled=true]:text-foreground-600"
|
|
6492
|
+
}
|
|
6493
|
+
},
|
|
6246
6494
|
{
|
|
6247
6495
|
isInvalid: true,
|
|
6248
6496
|
variant: "flat",
|
|
@@ -6272,14 +6520,14 @@ var select = tv({
|
|
|
6272
6520
|
labelPlacement: "inside",
|
|
6273
6521
|
size: "sm",
|
|
6274
6522
|
class: {
|
|
6275
|
-
trigger: "h-12 py-1.5 px-3"
|
|
6523
|
+
trigger: "h-12 min-h-unit-12 py-1.5 px-3"
|
|
6276
6524
|
}
|
|
6277
6525
|
},
|
|
6278
6526
|
{
|
|
6279
6527
|
labelPlacement: "inside",
|
|
6280
6528
|
size: "md",
|
|
6281
6529
|
class: {
|
|
6282
|
-
trigger: "h-14 py-2"
|
|
6530
|
+
trigger: "h-14 min-h-unit-14 py-2"
|
|
6283
6531
|
}
|
|
6284
6532
|
},
|
|
6285
6533
|
{
|
|
@@ -6287,23 +6535,18 @@ var select = tv({
|
|
|
6287
6535
|
size: "lg",
|
|
6288
6536
|
class: {
|
|
6289
6537
|
label: "text-small",
|
|
6290
|
-
trigger: "h-16 py-2.5 gap-0"
|
|
6538
|
+
trigger: "h-16 min-h-unit-16 py-2.5 gap-0"
|
|
6291
6539
|
}
|
|
6292
6540
|
},
|
|
6293
6541
|
{
|
|
6294
|
-
isLabelPlaceholder: true,
|
|
6295
6542
|
labelPlacement: ["inside", "outside"],
|
|
6296
6543
|
class: {
|
|
6297
|
-
label: [
|
|
6298
|
-
"font-normal",
|
|
6299
|
-
"group-data-[filled=true]:font-medium",
|
|
6300
|
-
"group-data-[filled=true]:pointer-events-auto"
|
|
6301
|
-
]
|
|
6544
|
+
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
6302
6545
|
}
|
|
6303
6546
|
},
|
|
6304
6547
|
{
|
|
6305
|
-
isLabelPlaceholder: true,
|
|
6306
6548
|
labelPlacement: "outside",
|
|
6549
|
+
isMultiline: false,
|
|
6307
6550
|
class: {
|
|
6308
6551
|
base: "group relative justify-end",
|
|
6309
6552
|
label: [
|
|
@@ -6318,83 +6561,154 @@ var select = tv({
|
|
|
6318
6561
|
}
|
|
6319
6562
|
},
|
|
6320
6563
|
{
|
|
6321
|
-
|
|
6564
|
+
labelPlacement: ["inside"],
|
|
6565
|
+
class: {
|
|
6566
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6567
|
+
}
|
|
6568
|
+
},
|
|
6569
|
+
{
|
|
6322
6570
|
labelPlacement: "inside",
|
|
6323
6571
|
size: ["sm", "md"],
|
|
6324
6572
|
class: {
|
|
6325
|
-
label:
|
|
6573
|
+
label: "text-small",
|
|
6326
6574
|
input: "pt-4"
|
|
6327
6575
|
}
|
|
6328
6576
|
},
|
|
6329
6577
|
{
|
|
6330
|
-
isLabelPlaceholder: true,
|
|
6331
6578
|
labelPlacement: "inside",
|
|
6579
|
+
isMultiline: false,
|
|
6332
6580
|
size: "sm",
|
|
6333
6581
|
class: {
|
|
6334
|
-
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
6582
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6335
6583
|
innerWrapper: "pt-4"
|
|
6336
6584
|
}
|
|
6337
6585
|
},
|
|
6338
6586
|
{
|
|
6339
|
-
isLabelPlaceholder: true,
|
|
6340
6587
|
labelPlacement: "inside",
|
|
6588
|
+
isMultiline: false,
|
|
6341
6589
|
size: "md",
|
|
6342
6590
|
class: {
|
|
6343
6591
|
label: [
|
|
6344
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
6592
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6345
6593
|
],
|
|
6346
6594
|
innerWrapper: "pt-4"
|
|
6347
6595
|
}
|
|
6348
6596
|
},
|
|
6349
6597
|
{
|
|
6350
|
-
isLabelPlaceholder: true,
|
|
6351
6598
|
labelPlacement: "inside",
|
|
6599
|
+
isMultiline: false,
|
|
6352
6600
|
size: "lg",
|
|
6353
6601
|
class: {
|
|
6354
6602
|
label: [
|
|
6355
6603
|
"text-medium",
|
|
6356
|
-
"group-data-[filled=true]
|
|
6357
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
6604
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6358
6605
|
],
|
|
6359
6606
|
innerWrapper: "pt-5"
|
|
6360
6607
|
}
|
|
6361
6608
|
},
|
|
6362
6609
|
{
|
|
6363
|
-
|
|
6610
|
+
labelPlacement: "inside",
|
|
6611
|
+
variant: ["faded", "bordered"],
|
|
6612
|
+
isMultiline: false,
|
|
6613
|
+
size: "sm",
|
|
6614
|
+
class: {
|
|
6615
|
+
label: [
|
|
6616
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6617
|
+
]
|
|
6618
|
+
}
|
|
6619
|
+
},
|
|
6620
|
+
{
|
|
6621
|
+
labelPlacement: "inside",
|
|
6622
|
+
variant: ["faded", "bordered"],
|
|
6623
|
+
isMultiline: false,
|
|
6624
|
+
size: "md",
|
|
6625
|
+
class: {
|
|
6626
|
+
label: [
|
|
6627
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6628
|
+
]
|
|
6629
|
+
}
|
|
6630
|
+
},
|
|
6631
|
+
{
|
|
6632
|
+
labelPlacement: "inside",
|
|
6633
|
+
variant: ["faded", "bordered"],
|
|
6634
|
+
isMultiline: false,
|
|
6635
|
+
size: "lg",
|
|
6636
|
+
class: {
|
|
6637
|
+
label: [
|
|
6638
|
+
"text-medium",
|
|
6639
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6640
|
+
]
|
|
6641
|
+
}
|
|
6642
|
+
},
|
|
6643
|
+
{
|
|
6644
|
+
labelPlacement: "inside",
|
|
6645
|
+
variant: "underlined",
|
|
6646
|
+
isMultiline: false,
|
|
6647
|
+
size: "sm",
|
|
6648
|
+
class: {
|
|
6649
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6650
|
+
}
|
|
6651
|
+
},
|
|
6652
|
+
{
|
|
6653
|
+
labelPlacement: "inside",
|
|
6654
|
+
variant: "underlined",
|
|
6655
|
+
isMultiline: false,
|
|
6656
|
+
size: "md",
|
|
6657
|
+
class: {
|
|
6658
|
+
label: [
|
|
6659
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6660
|
+
]
|
|
6661
|
+
}
|
|
6662
|
+
},
|
|
6663
|
+
{
|
|
6664
|
+
labelPlacement: "inside",
|
|
6665
|
+
variant: "underlined",
|
|
6666
|
+
isMultiline: false,
|
|
6667
|
+
size: "lg",
|
|
6668
|
+
class: {
|
|
6669
|
+
label: [
|
|
6670
|
+
"text-medium",
|
|
6671
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6672
|
+
]
|
|
6673
|
+
}
|
|
6674
|
+
},
|
|
6675
|
+
{
|
|
6364
6676
|
labelPlacement: "outside",
|
|
6365
6677
|
size: "sm",
|
|
6678
|
+
isMultiline: false,
|
|
6366
6679
|
class: {
|
|
6367
6680
|
label: [
|
|
6368
6681
|
"left-2",
|
|
6369
|
-
"text-
|
|
6370
|
-
"group-data-[filled=true]:text-tiny",
|
|
6682
|
+
"text-tiny",
|
|
6371
6683
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6372
|
-
]
|
|
6684
|
+
],
|
|
6685
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6373
6686
|
}
|
|
6374
6687
|
},
|
|
6375
6688
|
{
|
|
6376
|
-
isLabelPlaceholder: true,
|
|
6377
6689
|
labelPlacement: "outside",
|
|
6690
|
+
isMultiline: false,
|
|
6378
6691
|
size: "md",
|
|
6379
6692
|
class: {
|
|
6380
6693
|
label: [
|
|
6381
6694
|
"left-3",
|
|
6382
6695
|
"text-small",
|
|
6383
6696
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6384
|
-
]
|
|
6697
|
+
],
|
|
6698
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6385
6699
|
}
|
|
6386
6700
|
},
|
|
6387
6701
|
{
|
|
6388
|
-
isLabelPlaceholder: true,
|
|
6389
6702
|
labelPlacement: "outside",
|
|
6703
|
+
isMultiline: false,
|
|
6390
6704
|
size: "lg",
|
|
6391
6705
|
class: {
|
|
6392
6706
|
label: [
|
|
6393
6707
|
"left-3",
|
|
6394
6708
|
"text-medium",
|
|
6395
|
-
"group-data-[filled=true]:text-small",
|
|
6396
6709
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6397
|
-
]
|
|
6710
|
+
],
|
|
6711
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6398
6712
|
}
|
|
6399
6713
|
}
|
|
6400
6714
|
]
|
|
@@ -6402,7 +6716,19 @@ var select = tv({
|
|
|
6402
6716
|
|
|
6403
6717
|
// src/components/menu.ts
|
|
6404
6718
|
var menu = tv({
|
|
6405
|
-
|
|
6719
|
+
slots: {
|
|
6720
|
+
base: "w-full relative flex flex-col gap-1 p-1",
|
|
6721
|
+
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6722
|
+
emptyContent: [
|
|
6723
|
+
"h-10",
|
|
6724
|
+
"px-2",
|
|
6725
|
+
"py-1.5",
|
|
6726
|
+
"w-full",
|
|
6727
|
+
"h-full",
|
|
6728
|
+
"text-foreground-400",
|
|
6729
|
+
"text-start"
|
|
6730
|
+
]
|
|
6731
|
+
}
|
|
6406
6732
|
});
|
|
6407
6733
|
var menuItem = tv({
|
|
6408
6734
|
slots: {
|
|
@@ -6496,7 +6822,9 @@ var menuItem = tv({
|
|
|
6496
6822
|
},
|
|
6497
6823
|
disableAnimation: {
|
|
6498
6824
|
true: {},
|
|
6499
|
-
false: {
|
|
6825
|
+
false: {
|
|
6826
|
+
base: "data-[hover=true]:transition-colors"
|
|
6827
|
+
}
|
|
6500
6828
|
}
|
|
6501
6829
|
},
|
|
6502
6830
|
defaultVariants: {
|
|
@@ -6877,172 +7205,836 @@ var scrollShadow = tv({
|
|
|
6877
7205
|
}
|
|
6878
7206
|
});
|
|
6879
7207
|
|
|
6880
|
-
// src/
|
|
6881
|
-
var
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
}
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
}
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
}
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
}
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
}
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7208
|
+
// src/components/slider.ts
|
|
7209
|
+
var slider = tv({
|
|
7210
|
+
slots: {
|
|
7211
|
+
base: "flex flex-col w-full gap-1",
|
|
7212
|
+
labelWrapper: "w-full flex justify-between items-center",
|
|
7213
|
+
label: "",
|
|
7214
|
+
value: "",
|
|
7215
|
+
step: [
|
|
7216
|
+
"h-1.5",
|
|
7217
|
+
"w-1.5",
|
|
7218
|
+
"absolute",
|
|
7219
|
+
"rounded-full",
|
|
7220
|
+
"bg-default-300/50",
|
|
7221
|
+
"data-[in-range=true]:bg-background/50"
|
|
7222
|
+
],
|
|
7223
|
+
mark: [
|
|
7224
|
+
"absolute",
|
|
7225
|
+
"text-small",
|
|
7226
|
+
"cursor-default",
|
|
7227
|
+
"opacity-50",
|
|
7228
|
+
"data-[in-range=true]:opacity-100"
|
|
7229
|
+
],
|
|
7230
|
+
trackWrapper: "relative flex gap-2",
|
|
7231
|
+
track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
|
|
7232
|
+
filler: "h-full absolute",
|
|
7233
|
+
thumb: [
|
|
7234
|
+
"flex",
|
|
7235
|
+
"justify-center",
|
|
7236
|
+
"items-center",
|
|
7237
|
+
"before:absolute",
|
|
7238
|
+
"before:w-11",
|
|
7239
|
+
"before:h-11",
|
|
7240
|
+
"before:rounded-full",
|
|
7241
|
+
"after:shadow-small",
|
|
7242
|
+
"after:shadow-small",
|
|
7243
|
+
"after:bg-background",
|
|
7244
|
+
"data-[focused=true]:z-10",
|
|
7245
|
+
dataFocusVisibleClasses
|
|
7246
|
+
],
|
|
7247
|
+
startContent: [],
|
|
7248
|
+
endContent: []
|
|
7249
|
+
},
|
|
7250
|
+
variants: {
|
|
7251
|
+
size: {
|
|
7252
|
+
sm: {
|
|
7253
|
+
label: "text-small",
|
|
7254
|
+
value: "text-small",
|
|
7255
|
+
thumb: "w-5 h-5 after:w-4 after:h-4",
|
|
7256
|
+
step: "data-[in-range=false]:bg-default-200"
|
|
7257
|
+
},
|
|
7258
|
+
md: {
|
|
7259
|
+
thumb: "w-6 h-6 after:w-5 after:h-5",
|
|
7260
|
+
label: "text-small",
|
|
7261
|
+
value: "text-small"
|
|
7262
|
+
},
|
|
7263
|
+
lg: {
|
|
7264
|
+
thumb: "h-7 w-7 after:w-5 after:h-5",
|
|
7265
|
+
step: "w-2 h-2",
|
|
7266
|
+
label: "text-medium",
|
|
7267
|
+
value: "text-medium",
|
|
7268
|
+
mark: "mt-2"
|
|
7269
|
+
}
|
|
7270
|
+
},
|
|
7271
|
+
radius: {
|
|
7272
|
+
none: {
|
|
7273
|
+
thumb: "rounded-none after:rounded-none"
|
|
7274
|
+
},
|
|
7275
|
+
sm: {
|
|
7276
|
+
thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
|
|
7277
|
+
},
|
|
7278
|
+
md: {
|
|
7279
|
+
thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
|
|
7280
|
+
},
|
|
7281
|
+
lg: {
|
|
7282
|
+
thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
|
|
7283
|
+
},
|
|
7284
|
+
full: {
|
|
7285
|
+
thumb: "rounded-full after:rounded-full"
|
|
7286
|
+
}
|
|
7287
|
+
},
|
|
7288
|
+
color: {
|
|
7289
|
+
foreground: {
|
|
7290
|
+
filler: "bg-foreground",
|
|
7291
|
+
thumb: "bg-foreground"
|
|
7292
|
+
},
|
|
7293
|
+
primary: {
|
|
7294
|
+
filler: "bg-primary",
|
|
7295
|
+
thumb: "bg-primary"
|
|
7296
|
+
},
|
|
7297
|
+
secondary: {
|
|
7298
|
+
filler: "bg-secondary",
|
|
7299
|
+
thumb: "bg-secondary"
|
|
7300
|
+
},
|
|
7301
|
+
success: {
|
|
7302
|
+
filler: "bg-success",
|
|
7303
|
+
thumb: "bg-success"
|
|
7304
|
+
},
|
|
7305
|
+
warning: {
|
|
7306
|
+
filler: "bg-warning",
|
|
7307
|
+
thumb: "bg-warning"
|
|
7308
|
+
},
|
|
7309
|
+
danger: {
|
|
7310
|
+
filler: "bg-danger",
|
|
7311
|
+
thumb: "bg-danger"
|
|
7312
|
+
}
|
|
7313
|
+
},
|
|
7314
|
+
isVertical: {
|
|
7315
|
+
true: {
|
|
7316
|
+
base: "w-auto h-full flex-col-reverse items-center",
|
|
7317
|
+
trackWrapper: "flex-col h-full justify-center items-center",
|
|
7318
|
+
filler: "w-full h-auto",
|
|
7319
|
+
thumb: "left-1/2",
|
|
7320
|
+
track: "h-full border-y-transparent",
|
|
7321
|
+
labelWrapper: "flex-col justify-center items-center",
|
|
7322
|
+
step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
|
|
7323
|
+
mark: ["left-1/2", "ml-1", "translate-x-1/2", "-translate-y-1/2"]
|
|
7324
|
+
},
|
|
7325
|
+
false: {
|
|
7326
|
+
thumb: "top-1/2",
|
|
7327
|
+
trackWrapper: "items-center",
|
|
7328
|
+
track: "border-x-transparent",
|
|
7329
|
+
step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
|
|
7330
|
+
mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
|
|
7331
|
+
}
|
|
7332
|
+
},
|
|
7333
|
+
isDisabled: {
|
|
7334
|
+
false: {
|
|
7335
|
+
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
7336
|
+
},
|
|
7337
|
+
true: {
|
|
7338
|
+
base: "opacity-disabled",
|
|
7339
|
+
thumb: "cursor-default"
|
|
7340
|
+
}
|
|
7341
|
+
},
|
|
7342
|
+
hasMarks: {
|
|
7343
|
+
true: {
|
|
7344
|
+
base: "mb-5"
|
|
7345
|
+
},
|
|
7346
|
+
false: {}
|
|
7347
|
+
},
|
|
7348
|
+
showOutline: {
|
|
7349
|
+
true: {
|
|
7350
|
+
thumb: "ring-2 ring-background"
|
|
7351
|
+
},
|
|
7352
|
+
false: {
|
|
7353
|
+
thumb: "ring-transparent border-0"
|
|
7354
|
+
}
|
|
7355
|
+
},
|
|
7356
|
+
hideValue: {
|
|
7357
|
+
true: {
|
|
7358
|
+
value: "sr-only"
|
|
7359
|
+
}
|
|
7360
|
+
},
|
|
7361
|
+
hideThumb: {
|
|
7362
|
+
true: {
|
|
7363
|
+
thumb: "sr-only",
|
|
7364
|
+
track: "overflow-hidden cursor-pointer"
|
|
7365
|
+
}
|
|
7366
|
+
},
|
|
7367
|
+
hasSingleThumb: {
|
|
7368
|
+
true: {},
|
|
7369
|
+
false: {}
|
|
7370
|
+
},
|
|
7371
|
+
disableAnimation: {
|
|
7372
|
+
true: {
|
|
7373
|
+
thumb: "data-[dragging=true]:after:scale-100"
|
|
7374
|
+
},
|
|
7375
|
+
false: {
|
|
7376
|
+
thumb: "after:transition-all motion-reduce:after:transition-none",
|
|
7377
|
+
mark: "transition-opacity motion-reduce:transition-none"
|
|
7378
|
+
}
|
|
7379
|
+
},
|
|
7380
|
+
disableThumbScale: {
|
|
7381
|
+
true: {},
|
|
7382
|
+
false: {
|
|
7383
|
+
thumb: "data-[dragging=true]:after:scale-80"
|
|
7384
|
+
}
|
|
7385
|
+
}
|
|
7386
|
+
},
|
|
7387
|
+
compoundVariants: [
|
|
7388
|
+
{
|
|
7389
|
+
size: ["sm", "md"],
|
|
7390
|
+
showOutline: false,
|
|
7391
|
+
class: {
|
|
7392
|
+
thumb: "shadow-small"
|
|
7393
|
+
}
|
|
7394
|
+
},
|
|
7395
|
+
{
|
|
7396
|
+
size: "sm",
|
|
7397
|
+
color: "foreground",
|
|
7398
|
+
class: {
|
|
7399
|
+
step: "data-[in-range=true]:bg-foreground"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
size: "sm",
|
|
7404
|
+
color: "primary",
|
|
7405
|
+
class: {
|
|
7406
|
+
step: "data-[in-range=true]:bg-primary"
|
|
7407
|
+
}
|
|
7408
|
+
},
|
|
7409
|
+
{
|
|
7410
|
+
size: "sm",
|
|
7411
|
+
color: "secondary",
|
|
7412
|
+
class: {
|
|
7413
|
+
step: "data-[in-range=true]:bg-secondary"
|
|
7414
|
+
}
|
|
7415
|
+
},
|
|
7416
|
+
{
|
|
7417
|
+
size: "sm",
|
|
7418
|
+
color: "success",
|
|
7419
|
+
class: {
|
|
7420
|
+
step: "data-[in-range=true]:bg-success"
|
|
7421
|
+
}
|
|
7422
|
+
},
|
|
7423
|
+
{
|
|
7424
|
+
size: "sm",
|
|
7425
|
+
color: "warning",
|
|
7426
|
+
class: {
|
|
7427
|
+
step: "data-[in-range=true]:bg-warning"
|
|
7428
|
+
}
|
|
7429
|
+
},
|
|
7430
|
+
{
|
|
7431
|
+
size: "sm",
|
|
7432
|
+
color: "danger",
|
|
7433
|
+
class: {
|
|
7434
|
+
step: "data-[in-range=true]:bg-danger"
|
|
7435
|
+
}
|
|
7436
|
+
},
|
|
7437
|
+
{
|
|
7438
|
+
size: "sm",
|
|
7439
|
+
isVertical: false,
|
|
7440
|
+
class: {
|
|
7441
|
+
track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
|
|
7442
|
+
}
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
size: "md",
|
|
7446
|
+
isVertical: false,
|
|
7447
|
+
class: {
|
|
7448
|
+
track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
|
|
7449
|
+
}
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
size: "lg",
|
|
7453
|
+
isVertical: false,
|
|
7454
|
+
class: {
|
|
7455
|
+
track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
|
|
7456
|
+
}
|
|
7457
|
+
},
|
|
7458
|
+
{
|
|
7459
|
+
size: "sm",
|
|
7460
|
+
isVertical: true,
|
|
7461
|
+
class: {
|
|
7462
|
+
track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
|
|
7463
|
+
}
|
|
7464
|
+
},
|
|
7465
|
+
{
|
|
7466
|
+
size: "md",
|
|
7467
|
+
isVertical: true,
|
|
7468
|
+
class: {
|
|
7469
|
+
track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
|
|
7470
|
+
}
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
size: "lg",
|
|
7474
|
+
isVertical: true,
|
|
7475
|
+
class: {
|
|
7476
|
+
track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
|
|
7477
|
+
}
|
|
7478
|
+
},
|
|
7479
|
+
{
|
|
7480
|
+
color: "foreground",
|
|
7481
|
+
isVertical: false,
|
|
7482
|
+
hasSingleThumb: true,
|
|
7483
|
+
class: {
|
|
7484
|
+
track: "border-s-foreground"
|
|
7485
|
+
}
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
color: "primary",
|
|
7489
|
+
isVertical: false,
|
|
7490
|
+
hasSingleThumb: true,
|
|
7491
|
+
class: {
|
|
7492
|
+
track: "border-s-primary"
|
|
7493
|
+
}
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
color: "secondary",
|
|
7497
|
+
isVertical: false,
|
|
7498
|
+
hasSingleThumb: true,
|
|
7499
|
+
class: {
|
|
7500
|
+
track: "border-s-secondary"
|
|
7501
|
+
}
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
color: "success",
|
|
7505
|
+
isVertical: false,
|
|
7506
|
+
hasSingleThumb: true,
|
|
7507
|
+
class: {
|
|
7508
|
+
track: "border-s-success"
|
|
7509
|
+
}
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
color: "warning",
|
|
7513
|
+
isVertical: false,
|
|
7514
|
+
hasSingleThumb: true,
|
|
7515
|
+
class: {
|
|
7516
|
+
track: "border-s-warning"
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7519
|
+
{
|
|
7520
|
+
color: "danger",
|
|
7521
|
+
isVertical: false,
|
|
7522
|
+
hasSingleThumb: true,
|
|
7523
|
+
class: {
|
|
7524
|
+
track: "border-s-danger"
|
|
7525
|
+
}
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
color: "foreground",
|
|
7529
|
+
isVertical: true,
|
|
7530
|
+
hasSingleThumb: true,
|
|
7531
|
+
class: {
|
|
7532
|
+
track: "border-b-foreground"
|
|
7533
|
+
}
|
|
7534
|
+
},
|
|
7535
|
+
{
|
|
7536
|
+
color: "primary",
|
|
7537
|
+
isVertical: true,
|
|
7538
|
+
hasSingleThumb: true,
|
|
7539
|
+
class: {
|
|
7540
|
+
track: "border-b-primary"
|
|
7541
|
+
}
|
|
7542
|
+
},
|
|
7543
|
+
{
|
|
7544
|
+
color: "secondary",
|
|
7545
|
+
isVertical: true,
|
|
7546
|
+
hasSingleThumb: true,
|
|
7547
|
+
class: {
|
|
7548
|
+
track: "border-b-secondary"
|
|
7549
|
+
}
|
|
7550
|
+
},
|
|
7551
|
+
{
|
|
7552
|
+
color: "success",
|
|
7553
|
+
isVertical: true,
|
|
7554
|
+
hasSingleThumb: true,
|
|
7555
|
+
class: {
|
|
7556
|
+
track: "border-b-success"
|
|
7557
|
+
}
|
|
7558
|
+
},
|
|
7559
|
+
{
|
|
7560
|
+
color: "warning",
|
|
7561
|
+
isVertical: true,
|
|
7562
|
+
hasSingleThumb: true,
|
|
7563
|
+
class: {
|
|
7564
|
+
track: "border-b-warning"
|
|
7565
|
+
}
|
|
7566
|
+
},
|
|
7567
|
+
{
|
|
7568
|
+
color: "danger",
|
|
7569
|
+
isVertical: true,
|
|
7570
|
+
hasSingleThumb: true,
|
|
7571
|
+
class: {
|
|
7572
|
+
track: "border-b-danger"
|
|
7573
|
+
}
|
|
7574
|
+
}
|
|
7575
|
+
],
|
|
7576
|
+
defaultVariants: {
|
|
7577
|
+
size: "md",
|
|
7578
|
+
color: "primary",
|
|
7579
|
+
radius: "full",
|
|
7580
|
+
hideValue: false,
|
|
7581
|
+
hideThumb: false,
|
|
7582
|
+
isDisabled: false,
|
|
7583
|
+
disableThumbScale: false,
|
|
7584
|
+
disableAnimation: false,
|
|
7585
|
+
showOutline: false
|
|
7586
|
+
}
|
|
7587
|
+
});
|
|
7588
|
+
|
|
7589
|
+
// src/components/breadcrumbs.ts
|
|
7590
|
+
var breadcrumbItem = tv({
|
|
7591
|
+
slots: {
|
|
7592
|
+
base: "flex items-center",
|
|
7593
|
+
item: [
|
|
7594
|
+
"flex gap-1 items-center",
|
|
7595
|
+
"cursor-pointer",
|
|
7596
|
+
"whitespace-nowrap",
|
|
7597
|
+
"line-clamp-1",
|
|
7598
|
+
"outline-none",
|
|
7599
|
+
"tap-highlight-transparent",
|
|
7600
|
+
...dataFocusVisibleClasses
|
|
7601
|
+
],
|
|
7602
|
+
separator: "text-default-400 px-1"
|
|
7603
|
+
},
|
|
7604
|
+
variants: {
|
|
7605
|
+
color: {
|
|
7606
|
+
foreground: {
|
|
7607
|
+
item: "text-foreground/50",
|
|
7608
|
+
separator: "text-foreground/50"
|
|
7609
|
+
},
|
|
7610
|
+
primary: {
|
|
7611
|
+
item: "text-primary/80",
|
|
7612
|
+
separator: "text-primary/80"
|
|
7613
|
+
},
|
|
7614
|
+
secondary: {
|
|
7615
|
+
item: "text-secondary/80",
|
|
7616
|
+
separator: "text-secondary/80"
|
|
7617
|
+
},
|
|
7618
|
+
success: {
|
|
7619
|
+
item: "text-success/80",
|
|
7620
|
+
separator: "text-success/80"
|
|
7621
|
+
},
|
|
7622
|
+
warning: {
|
|
7623
|
+
item: "text-warning/80",
|
|
7624
|
+
separator: "text-warning/80"
|
|
7625
|
+
},
|
|
7626
|
+
danger: {
|
|
7627
|
+
item: "text-danger/80",
|
|
7628
|
+
separator: "text-danger/80"
|
|
7629
|
+
}
|
|
7630
|
+
},
|
|
7631
|
+
size: {
|
|
7632
|
+
sm: {
|
|
7633
|
+
item: "text-tiny"
|
|
7634
|
+
},
|
|
7635
|
+
md: {
|
|
7636
|
+
item: "text-small"
|
|
7637
|
+
},
|
|
7638
|
+
lg: {
|
|
7639
|
+
item: "text-medium"
|
|
7640
|
+
}
|
|
7641
|
+
},
|
|
7642
|
+
underline: {
|
|
7643
|
+
none: {
|
|
7644
|
+
item: "no-underline"
|
|
7645
|
+
},
|
|
7646
|
+
hover: {
|
|
7647
|
+
item: "hover:underline"
|
|
7648
|
+
},
|
|
7649
|
+
always: {
|
|
7650
|
+
item: "underline"
|
|
7651
|
+
},
|
|
7652
|
+
active: {
|
|
7653
|
+
item: "active:underline"
|
|
7654
|
+
},
|
|
7655
|
+
focus: {
|
|
7656
|
+
item: "focus:underline"
|
|
7657
|
+
}
|
|
7658
|
+
},
|
|
7659
|
+
isCurrent: {
|
|
7660
|
+
true: {
|
|
7661
|
+
item: "cursor-default"
|
|
7662
|
+
},
|
|
7663
|
+
false: {
|
|
7664
|
+
item: ["hover:opacity-80", "active:opacity-disabled"]
|
|
7665
|
+
}
|
|
7666
|
+
},
|
|
7667
|
+
isDisabled: {
|
|
7668
|
+
true: {
|
|
7669
|
+
item: "opacity-disabled pointer-events-none",
|
|
7670
|
+
separator: "opacity-disabled"
|
|
7671
|
+
}
|
|
7672
|
+
},
|
|
7673
|
+
disableAnimation: {
|
|
7674
|
+
false: {
|
|
7675
|
+
item: "transition-opacity"
|
|
7676
|
+
},
|
|
7677
|
+
true: {
|
|
7678
|
+
item: "transition-none"
|
|
7679
|
+
}
|
|
7680
|
+
}
|
|
7681
|
+
},
|
|
7682
|
+
defaultVariants: {
|
|
7683
|
+
size: "md",
|
|
7684
|
+
color: "foreground",
|
|
7685
|
+
underline: "hover",
|
|
7686
|
+
isDisabled: false,
|
|
7687
|
+
disableAnimation: false
|
|
7688
|
+
},
|
|
7689
|
+
compoundVariants: [
|
|
7690
|
+
{
|
|
7691
|
+
isCurrent: true,
|
|
7692
|
+
color: "foreground",
|
|
7693
|
+
class: {
|
|
7694
|
+
item: "text-foreground"
|
|
7695
|
+
}
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
isCurrent: true,
|
|
7699
|
+
color: "primary",
|
|
7700
|
+
class: {
|
|
7701
|
+
item: "text-primary"
|
|
7702
|
+
}
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
isCurrent: true,
|
|
7706
|
+
color: "secondary",
|
|
7707
|
+
class: {
|
|
7708
|
+
item: "text-secondary"
|
|
7709
|
+
}
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
isCurrent: true,
|
|
7713
|
+
color: "success",
|
|
7714
|
+
class: {
|
|
7715
|
+
item: "text-success"
|
|
7716
|
+
}
|
|
7717
|
+
},
|
|
7718
|
+
{
|
|
7719
|
+
isCurrent: true,
|
|
7720
|
+
color: "warning",
|
|
7721
|
+
class: {
|
|
7722
|
+
item: "text-warning"
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
{
|
|
7726
|
+
isCurrent: true,
|
|
7727
|
+
color: "danger",
|
|
7728
|
+
class: {
|
|
7729
|
+
item: "text-danger"
|
|
7730
|
+
}
|
|
7731
|
+
},
|
|
7732
|
+
{
|
|
7733
|
+
isCurrent: false,
|
|
7734
|
+
underline: "none",
|
|
7735
|
+
class: {
|
|
7736
|
+
item: "no-underline"
|
|
7737
|
+
}
|
|
7738
|
+
},
|
|
7739
|
+
{
|
|
7740
|
+
underline: ["hover", "always", "active", "focus"],
|
|
7741
|
+
class: "underline-offset-4"
|
|
7742
|
+
}
|
|
7743
|
+
]
|
|
7744
|
+
});
|
|
7745
|
+
var breadcrumbs = tv({
|
|
7746
|
+
slots: {
|
|
7747
|
+
base: "",
|
|
7748
|
+
list: "flex flex-wrap list-none",
|
|
7749
|
+
ellipsis: "text-medium",
|
|
7750
|
+
separator: "text-default-400 px-1"
|
|
7751
|
+
},
|
|
7752
|
+
variants: {
|
|
7753
|
+
size: {
|
|
7754
|
+
sm: {},
|
|
7755
|
+
md: {},
|
|
7756
|
+
lg: {}
|
|
7757
|
+
},
|
|
7758
|
+
radius: {
|
|
7759
|
+
none: {
|
|
7760
|
+
list: "rounded-none"
|
|
7761
|
+
},
|
|
7762
|
+
sm: {
|
|
7763
|
+
list: "rounded-small"
|
|
7764
|
+
},
|
|
7765
|
+
md: {
|
|
7766
|
+
list: "rounded-medium"
|
|
7767
|
+
},
|
|
7768
|
+
lg: {
|
|
7769
|
+
list: "rounded-large"
|
|
7770
|
+
},
|
|
7771
|
+
full: {
|
|
7772
|
+
list: "rounded-full"
|
|
7773
|
+
}
|
|
7774
|
+
},
|
|
7775
|
+
variant: {
|
|
7776
|
+
solid: {
|
|
7777
|
+
list: "bg-default-100"
|
|
7778
|
+
},
|
|
7779
|
+
bordered: {
|
|
7780
|
+
list: "border-medium border-default-200 shadow-sm"
|
|
7781
|
+
},
|
|
7782
|
+
light: {}
|
|
7783
|
+
}
|
|
7784
|
+
},
|
|
7785
|
+
defaultVariants: {
|
|
7786
|
+
size: "md",
|
|
7787
|
+
radius: "sm",
|
|
7788
|
+
variant: "light"
|
|
7789
|
+
},
|
|
7790
|
+
compoundVariants: [
|
|
7791
|
+
{
|
|
7792
|
+
variant: ["solid", "bordered"],
|
|
7793
|
+
class: {
|
|
7794
|
+
list: "max-w-fit"
|
|
7795
|
+
}
|
|
7796
|
+
},
|
|
7797
|
+
{
|
|
7798
|
+
variant: ["solid", "bordered"],
|
|
7799
|
+
size: "sm",
|
|
7800
|
+
class: {
|
|
7801
|
+
list: "px-2 py-1"
|
|
7802
|
+
}
|
|
7803
|
+
},
|
|
7804
|
+
{
|
|
7805
|
+
variant: ["solid", "bordered"],
|
|
7806
|
+
size: "md",
|
|
7807
|
+
class: {
|
|
7808
|
+
list: "px-2.5 py-1.5"
|
|
7809
|
+
}
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
variant: ["solid", "bordered"],
|
|
7813
|
+
size: "lg",
|
|
7814
|
+
class: {
|
|
7815
|
+
list: "px-3 py-2"
|
|
7816
|
+
}
|
|
7817
|
+
}
|
|
7818
|
+
]
|
|
7819
|
+
});
|
|
7820
|
+
|
|
7821
|
+
// src/components/autocomplete.ts
|
|
7822
|
+
var autocomplete = tv({
|
|
7823
|
+
slots: {
|
|
7824
|
+
base: "group inline-flex flex-column w-full",
|
|
7825
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
7826
|
+
listbox: "",
|
|
7827
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
7828
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
7829
|
+
clearButton: [
|
|
7830
|
+
"text-medium",
|
|
7831
|
+
"translate-x-1",
|
|
7832
|
+
"cursor-text",
|
|
7833
|
+
"opacity-0",
|
|
7834
|
+
"text-default-500",
|
|
7835
|
+
"group-data-[invalid=true]:text-danger",
|
|
7836
|
+
"data-[visible=true]:opacity-100",
|
|
7837
|
+
"data-[visible=true]:cursor-pointer",
|
|
7838
|
+
"sm:data-[visible=true]:opacity-0",
|
|
7839
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
7840
|
+
],
|
|
7841
|
+
selectorButton: "text-medium"
|
|
7842
|
+
},
|
|
7843
|
+
variants: {
|
|
7844
|
+
disableClearable: {
|
|
7845
|
+
true: {
|
|
7846
|
+
clearButton: "hidden"
|
|
7847
|
+
},
|
|
7848
|
+
false: {}
|
|
7849
|
+
},
|
|
7850
|
+
disableAnimation: {
|
|
7851
|
+
true: {
|
|
7852
|
+
selectorButton: "transition-none"
|
|
7853
|
+
},
|
|
7854
|
+
false: {
|
|
7855
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
7856
|
+
}
|
|
7857
|
+
},
|
|
7858
|
+
disableSelectorIconRotation: {
|
|
7859
|
+
true: {},
|
|
7860
|
+
false: {
|
|
7861
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
7862
|
+
}
|
|
7863
|
+
}
|
|
7864
|
+
},
|
|
7865
|
+
defaultVariants: {
|
|
7866
|
+
disableAnimation: false,
|
|
7867
|
+
disableClearable: false,
|
|
7868
|
+
disableSelectorIconRotation: false
|
|
7869
|
+
}
|
|
7870
|
+
});
|
|
7871
|
+
|
|
7872
|
+
// src/colors/blue.ts
|
|
7873
|
+
var blue = {
|
|
7874
|
+
50: "#e6f1fe",
|
|
7875
|
+
100: "#cce3fd",
|
|
7876
|
+
200: "#99c7fb",
|
|
7877
|
+
300: "#66aaf9",
|
|
7878
|
+
400: "#338ef7",
|
|
7879
|
+
500: "#006FEE",
|
|
7880
|
+
600: "#005bc4",
|
|
7881
|
+
700: "#004493",
|
|
7882
|
+
800: "#002e62",
|
|
7883
|
+
900: "#001731"
|
|
7884
|
+
};
|
|
7885
|
+
|
|
7886
|
+
// src/colors/green.ts
|
|
7887
|
+
var green = {
|
|
7888
|
+
50: "#e8faf0",
|
|
7889
|
+
100: "#d1f4e0",
|
|
7890
|
+
200: "#a2e9c1",
|
|
7891
|
+
300: "#74dfa2",
|
|
7892
|
+
400: "#45d483",
|
|
7893
|
+
500: "#17c964",
|
|
7894
|
+
600: "#12a150",
|
|
7895
|
+
700: "#0e793c",
|
|
7896
|
+
800: "#095028",
|
|
7897
|
+
900: "#052814"
|
|
7898
|
+
};
|
|
7899
|
+
|
|
7900
|
+
// src/colors/pink.ts
|
|
7901
|
+
var pink = {
|
|
7902
|
+
50: "#ffedfa",
|
|
7903
|
+
100: "#ffdcf5",
|
|
7904
|
+
200: "#ffb8eb",
|
|
7905
|
+
300: "#ff95e1",
|
|
7906
|
+
400: "#ff71d7",
|
|
7907
|
+
500: "#ff4ecd",
|
|
7908
|
+
600: "#cc3ea4",
|
|
7909
|
+
700: "#992f7b",
|
|
7910
|
+
800: "#661f52",
|
|
7911
|
+
900: "#331029"
|
|
7912
|
+
};
|
|
7913
|
+
|
|
7914
|
+
// src/colors/purple.ts
|
|
7915
|
+
var purple = {
|
|
7916
|
+
50: "#f2eafa",
|
|
7917
|
+
100: "#e4d4f4",
|
|
7918
|
+
200: "#c9a9e9",
|
|
7919
|
+
300: "#ae7ede",
|
|
7920
|
+
400: "#9353d3",
|
|
7921
|
+
500: "#7828c8",
|
|
7922
|
+
600: "#6020a0",
|
|
7923
|
+
700: "#481878",
|
|
7924
|
+
800: "#301050",
|
|
7925
|
+
900: "#180828"
|
|
7926
|
+
};
|
|
7927
|
+
|
|
7928
|
+
// src/colors/red.ts
|
|
7929
|
+
var red = {
|
|
7930
|
+
50: "#fee7ef",
|
|
7931
|
+
100: "#fdd0df",
|
|
7932
|
+
200: "#faa0bf",
|
|
7933
|
+
300: "#f871a0",
|
|
7934
|
+
400: "#f54180",
|
|
7935
|
+
500: "#f31260",
|
|
7936
|
+
600: "#c20e4d",
|
|
7937
|
+
700: "#920b3a",
|
|
7938
|
+
800: "#610726",
|
|
7939
|
+
900: "#310413"
|
|
7940
|
+
};
|
|
7941
|
+
|
|
7942
|
+
// src/colors/yellow.ts
|
|
7943
|
+
var yellow = {
|
|
7944
|
+
50: "#fefce8",
|
|
7945
|
+
100: "#fdedd3",
|
|
7946
|
+
200: "#fbdba7",
|
|
7947
|
+
300: "#f9c97c",
|
|
7948
|
+
400: "#f7b750",
|
|
7949
|
+
500: "#f5a524",
|
|
7950
|
+
600: "#c4841d",
|
|
7951
|
+
700: "#936316",
|
|
7952
|
+
800: "#62420e",
|
|
7953
|
+
900: "#312107"
|
|
7954
|
+
};
|
|
7955
|
+
|
|
7956
|
+
// src/colors/cyan.ts
|
|
7957
|
+
var cyan = {
|
|
7958
|
+
50: "#F0FCFF",
|
|
7959
|
+
100: "#E6FAFE",
|
|
7960
|
+
200: "#D7F8FE",
|
|
7961
|
+
300: "#C3F4FD",
|
|
7962
|
+
400: "#A5EEFD",
|
|
7963
|
+
500: "#7EE7FC",
|
|
7964
|
+
600: "#06B7DB",
|
|
7965
|
+
700: "#09AACD",
|
|
7966
|
+
800: "#0E8AAA",
|
|
7967
|
+
900: "#053B48"
|
|
7968
|
+
};
|
|
7969
|
+
|
|
7970
|
+
// src/colors/zinc.ts
|
|
7971
|
+
var zinc = {
|
|
7972
|
+
"50": "#fafafa",
|
|
7973
|
+
"100": "#f4f4f5",
|
|
7974
|
+
"200": "#e4e4e7",
|
|
7975
|
+
"300": "#d4d4d8",
|
|
7976
|
+
"400": "#a1a1aa",
|
|
7977
|
+
"500": "#71717a",
|
|
7978
|
+
"600": "#52525b",
|
|
7979
|
+
"700": "#3f3f46",
|
|
7980
|
+
"800": "#27272a",
|
|
7981
|
+
"900": "#18181b"
|
|
7982
|
+
};
|
|
7983
|
+
|
|
7984
|
+
// src/colors/common.ts
|
|
7985
|
+
var commonColors = {
|
|
7986
|
+
white: "#ffffff",
|
|
7987
|
+
black: "#000000",
|
|
7988
|
+
blue,
|
|
7989
|
+
green,
|
|
7990
|
+
pink,
|
|
7991
|
+
purple,
|
|
7992
|
+
red,
|
|
7993
|
+
yellow,
|
|
7994
|
+
cyan,
|
|
7995
|
+
zinc
|
|
7996
|
+
};
|
|
7997
|
+
|
|
7998
|
+
// src/colors/semantic.ts
|
|
7999
|
+
var import_color2k = require("color2k");
|
|
8000
|
+
|
|
8001
|
+
// src/utils/object.ts
|
|
8002
|
+
var import_flat = __toESM(require("flat"));
|
|
8003
|
+
function swapColorValues(colors2) {
|
|
8004
|
+
const swappedColors = {};
|
|
8005
|
+
const keys = Object.keys(colors2);
|
|
8006
|
+
const length = keys.length;
|
|
8007
|
+
for (let i = 0; i < length / 2; i++) {
|
|
8008
|
+
const key1 = keys[i];
|
|
8009
|
+
const key2 = keys[length - 1 - i];
|
|
8010
|
+
swappedColors[key1] = colors2[key2];
|
|
8011
|
+
swappedColors[key2] = colors2[key1];
|
|
8012
|
+
}
|
|
8013
|
+
if (length % 2 !== 0) {
|
|
8014
|
+
const middleKey = keys[Math.floor(length / 2)];
|
|
8015
|
+
swappedColors[middleKey] = colors2[middleKey];
|
|
8016
|
+
}
|
|
8017
|
+
return swappedColors;
|
|
8018
|
+
}
|
|
8019
|
+
function removeDefaultKeys(obj) {
|
|
8020
|
+
const newObj = {};
|
|
8021
|
+
for (const key in obj) {
|
|
8022
|
+
if (key.endsWith("-DEFAULT")) {
|
|
8023
|
+
newObj[key.replace("-DEFAULT", "")] = obj[key];
|
|
8024
|
+
continue;
|
|
8025
|
+
}
|
|
8026
|
+
newObj[key] = obj[key];
|
|
8027
|
+
}
|
|
8028
|
+
return newObj;
|
|
8029
|
+
}
|
|
8030
|
+
var flattenThemeObject = (obj) => removeDefaultKeys(
|
|
8031
|
+
(0, import_flat.default)(obj, {
|
|
8032
|
+
safe: true,
|
|
8033
|
+
delimiter: "-"
|
|
8034
|
+
})
|
|
8035
|
+
);
|
|
8036
|
+
|
|
8037
|
+
// src/colors/semantic.ts
|
|
7046
8038
|
var base = {
|
|
7047
8039
|
light: {
|
|
7048
8040
|
background: {
|
|
@@ -7314,6 +8306,11 @@ var transition_default = {
|
|
|
7314
8306
|
"transition-timing-function": "ease",
|
|
7315
8307
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
7316
8308
|
},
|
|
8309
|
+
".transition-size": {
|
|
8310
|
+
"transition-property": "width, height",
|
|
8311
|
+
"transition-timing-function": "ease",
|
|
8312
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
8313
|
+
},
|
|
7317
8314
|
".transition-left": {
|
|
7318
8315
|
"transition-property": "left",
|
|
7319
8316
|
"transition-timing-function": "ease",
|
|
@@ -7343,6 +8340,11 @@ var transition_default = {
|
|
|
7343
8340
|
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
7344
8341
|
"transition-timing-function": "ease",
|
|
7345
8342
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
8343
|
+
},
|
|
8344
|
+
".transition-transform-colors-opacity": {
|
|
8345
|
+
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
8346
|
+
"transition-timing-function": "ease",
|
|
8347
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
7346
8348
|
}
|
|
7347
8349
|
};
|
|
7348
8350
|
|
|
@@ -7392,6 +8394,7 @@ var utilities = {
|
|
|
7392
8394
|
|
|
7393
8395
|
// src/utils/theme.ts
|
|
7394
8396
|
var isBaseTheme = (theme) => theme === "light" || theme === "dark";
|
|
8397
|
+
var ROOT_FONT_SIZE = 16;
|
|
7395
8398
|
var baseScale = [1, 2, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
|
|
7396
8399
|
var extendedScale = [20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96];
|
|
7397
8400
|
var generateSpacingScale = (spacingUnit) => {
|
|
@@ -7412,7 +8415,7 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
7412
8415
|
};
|
|
7413
8416
|
const scale = { 0: "0px" };
|
|
7414
8417
|
Object.entries(scaleLabels).forEach(([label, multiplier]) => {
|
|
7415
|
-
scale[label] = multiplier ? `${spacingUnit * multiplier}
|
|
8418
|
+
scale[label] = multiplier ? `${spacingUnit * multiplier / ROOT_FONT_SIZE}rem` : `${spacingUnit / ROOT_FONT_SIZE}rem`;
|
|
7416
8419
|
});
|
|
7417
8420
|
baseScale.forEach((i) => {
|
|
7418
8421
|
let key = `${i}`;
|
|
@@ -7420,11 +8423,11 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
7420
8423
|
const [first, second] = key.split(".");
|
|
7421
8424
|
key = `${first}_${second}`;
|
|
7422
8425
|
}
|
|
7423
|
-
scale[key] = `${spacingUnit * i}
|
|
8426
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
7424
8427
|
});
|
|
7425
8428
|
extendedScale.forEach((i) => {
|
|
7426
8429
|
const key = `${i}`;
|
|
7427
|
-
scale[key] = `${spacingUnit * i}
|
|
8430
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
7428
8431
|
});
|
|
7429
8432
|
return scale;
|
|
7430
8433
|
};
|
|
@@ -7476,8 +8479,11 @@ var defaultLayout = {
|
|
|
7476
8479
|
large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
|
|
7477
8480
|
}
|
|
7478
8481
|
};
|
|
7479
|
-
var lightLayout = {
|
|
8482
|
+
var lightLayout = {
|
|
8483
|
+
hoverOpacity: ".8"
|
|
8484
|
+
};
|
|
7480
8485
|
var darkLayout = {
|
|
8486
|
+
hoverOpacity: ".9",
|
|
7481
8487
|
boxShadow: {
|
|
7482
8488
|
small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
7483
8489
|
medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
|
|
@@ -7550,6 +8556,9 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
7550
8556
|
});
|
|
7551
8557
|
} else {
|
|
7552
8558
|
const layoutVariable = `--${prefix}-${key}`;
|
|
8559
|
+
if (layoutVariable.includes("opacity") && typeof value === "number") {
|
|
8560
|
+
value = value.toString().replace(/^0\./, ".");
|
|
8561
|
+
}
|
|
7553
8562
|
resolved.utilities[cssSelector][layoutVariable] = value;
|
|
7554
8563
|
}
|
|
7555
8564
|
});
|
|
@@ -7596,7 +8605,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
7596
8605
|
...resolved.colors
|
|
7597
8606
|
},
|
|
7598
8607
|
scale: {
|
|
7599
|
-
"80": "0.8"
|
|
8608
|
+
"80": "0.8",
|
|
8609
|
+
"85": "0.85"
|
|
7600
8610
|
},
|
|
7601
8611
|
height: {
|
|
7602
8612
|
divider: `var(--${prefix}-divider-weight)`
|
|
@@ -7626,6 +8636,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
7626
8636
|
large: `var(--${prefix}-radius-large)`
|
|
7627
8637
|
},
|
|
7628
8638
|
opacity: {
|
|
8639
|
+
hover: `var(--${prefix}-hover-opacity)`,
|
|
7629
8640
|
disabled: `var(--${prefix}-disabled-opacity)`
|
|
7630
8641
|
},
|
|
7631
8642
|
borderWidth: {
|
|
@@ -7714,10 +8725,13 @@ var nextui = (config = {}) => {
|
|
|
7714
8725
|
absoluteFullClasses,
|
|
7715
8726
|
accordion,
|
|
7716
8727
|
accordionItem,
|
|
8728
|
+
autocomplete,
|
|
7717
8729
|
avatar,
|
|
7718
8730
|
avatarGroup,
|
|
7719
8731
|
badge,
|
|
7720
8732
|
baseStyles,
|
|
8733
|
+
breadcrumbItem,
|
|
8734
|
+
breadcrumbs,
|
|
7721
8735
|
button,
|
|
7722
8736
|
buttonGroup,
|
|
7723
8737
|
card,
|
|
@@ -7726,6 +8740,7 @@ var nextui = (config = {}) => {
|
|
|
7726
8740
|
chip,
|
|
7727
8741
|
circularProgress,
|
|
7728
8742
|
code,
|
|
8743
|
+
collapseAdjacentVariantBorders,
|
|
7729
8744
|
colorVariants,
|
|
7730
8745
|
colors,
|
|
7731
8746
|
commonColors,
|
|
@@ -7763,6 +8778,7 @@ var nextui = (config = {}) => {
|
|
|
7763
8778
|
select,
|
|
7764
8779
|
semanticColors,
|
|
7765
8780
|
skeleton,
|
|
8781
|
+
slider,
|
|
7766
8782
|
snippet,
|
|
7767
8783
|
spacer,
|
|
7768
8784
|
spacingScaleKeys,
|