@nextui-org/theme 2.1.8 → 2.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
- package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
- package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
- package/dist/chunk-76A2UI6G.mjs +243 -0
- package/dist/chunk-AQDGQGUV.mjs +391 -0
- package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
- package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
- package/dist/{chunk-PJV3MWBL.mjs → chunk-C3KZKKPN.mjs} +182 -49
- package/dist/{chunk-2T5RQ7SK.mjs → chunk-CLW3JMFF.mjs} +36 -6
- package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
- package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
- package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
- package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
- package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
- package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
- package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
- package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
- package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
- package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
- package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
- package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
- package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
- package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
- package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
- package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
- package/dist/{chunk-F76574GG.mjs → chunk-SCQJ4BM3.mjs} +105 -39
- package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
- package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
- package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
- package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
- package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
- package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
- package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
- package/dist/chunk-WBUVHAJX.mjs +37 -0
- package/dist/chunk-WHT6K6RC.mjs +58 -0
- package/dist/chunk-WNVF6X3M.mjs +171 -0
- package/dist/{chunk-Y33ZY7KH.mjs → chunk-WYVG7NY6.mjs} +34 -5
- package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
- package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
- package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
- package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
- package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
- package/dist/components/accordion.js +27 -34
- package/dist/components/accordion.mjs +3 -3
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +165 -0
- package/dist/components/autocomplete.mjs +8 -0
- package/dist/components/avatar.js +28 -35
- package/dist/components/avatar.mjs +3 -3
- package/dist/components/badge.d.ts +7 -7
- package/dist/components/badge.js +29 -36
- package/dist/components/badge.mjs +3 -3
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +357 -0
- package/dist/components/breadcrumbs.mjs +14 -0
- package/dist/components/button.d.ts +7 -7
- package/dist/components/button.js +104 -39
- package/dist/components/button.mjs +3 -3
- package/dist/components/card.js +26 -33
- package/dist/components/card.mjs +3 -3
- package/dist/components/checkbox.d.ts +163 -36
- package/dist/components/checkbox.js +59 -36
- package/dist/components/checkbox.mjs +3 -3
- package/dist/components/chip.js +26 -33
- package/dist/components/chip.mjs +3 -3
- package/dist/components/circular-progress.js +25 -32
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +25 -32
- package/dist/components/code.mjs +3 -3
- package/dist/components/divider.js +25 -32
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.d.ts +29 -3
- package/dist/components/drip.js +25 -32
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.d.ts +103 -35
- package/dist/components/dropdown.js +25 -32
- package/dist/components/dropdown.mjs +3 -3
- package/dist/components/image.js +25 -32
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +1271 -231
- package/dist/components/index.mjs +62 -48
- package/dist/components/input.d.ts +34 -41
- package/dist/components/input.js +205 -79
- package/dist/components/input.mjs +3 -3
- package/dist/components/kbd.js +25 -32
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +25 -32
- package/dist/components/link.mjs +3 -3
- package/dist/components/listbox.d.ts +1 -1
- package/dist/components/listbox.js +41 -34
- package/dist/components/listbox.mjs +3 -3
- package/dist/components/menu.d.ts +119 -40
- package/dist/components/menu.js +41 -34
- package/dist/components/menu.mjs +3 -3
- package/dist/components/modal.js +25 -32
- package/dist/components/modal.mjs +3 -3
- package/dist/components/navbar.js +29 -33
- package/dist/components/navbar.mjs +3 -3
- package/dist/components/pagination.js +46 -36
- package/dist/components/pagination.mjs +3 -3
- package/dist/components/popover.d.ts +136 -132
- package/dist/components/popover.js +98 -94
- package/dist/components/popover.mjs +3 -3
- package/dist/components/progress.js +25 -32
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.d.ts +135 -36
- package/dist/components/radio.js +57 -35
- package/dist/components/radio.mjs +3 -3
- package/dist/components/scroll-shadow.js +25 -32
- package/dist/components/scroll-shadow.mjs +2 -2
- package/dist/components/select.d.ts +30 -51
- package/dist/components/select.js +128 -69
- package/dist/components/select.mjs +3 -3
- package/dist/components/skeleton.js +26 -33
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +504 -0
- package/dist/components/slider.mjs +12 -0
- package/dist/components/snippet.js +25 -32
- package/dist/components/snippet.mjs +3 -3
- package/dist/components/spacer.js +25 -32
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.js +25 -32
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.js +25 -32
- package/dist/components/table.mjs +3 -3
- package/dist/components/tabs.js +25 -32
- package/dist/components/tabs.mjs +3 -3
- package/dist/components/toggle.js +25 -32
- package/dist/components/toggle.mjs +3 -3
- package/dist/components/user.d.ts +45 -29
- package/dist/components/user.js +25 -32
- package/dist/components/user.mjs +3 -3
- package/dist/default-layout.js +4 -1
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1381 -320
- package/dist/index.mjs +69 -53
- package/dist/plugin.js +24 -5
- package/dist/plugin.mjs +6 -6
- package/dist/types.d.ts +8 -0
- package/dist/utilities/index.d.ts +10 -0
- package/dist/utilities/index.js +10 -0
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +10 -0
- package/dist/utilities/transition.js +10 -0
- package/dist/utilities/transition.mjs +1 -1
- package/dist/utils/classes.d.ts +13 -1
- package/dist/utils/classes.js +10 -0
- package/dist/utils/classes.mjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.mjs +3 -1
- package/dist/utils/theme.js +4 -3
- package/dist/utils/theme.mjs +1 -1
- package/dist/utils/tv.d.ts +2 -2
- package/dist/utils/tv.js +25 -32
- package/dist/utils/tv.mjs +1 -1
- package/package.json +9 -9
- package/dist/chunk-6AEINX52.mjs +0 -44
- package/dist/chunk-SN5GEHHN.mjs +0 -160
- /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
package/dist/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
|
},
|
|
@@ -2623,6 +2704,12 @@ var checkbox = tv({
|
|
|
2623
2704
|
base: "opacity-disabled pointer-events-none"
|
|
2624
2705
|
}
|
|
2625
2706
|
},
|
|
2707
|
+
isInvalid: {
|
|
2708
|
+
true: {
|
|
2709
|
+
wrapper: "before:border-danger",
|
|
2710
|
+
label: "text-danger"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2626
2713
|
disableAnimation: {
|
|
2627
2714
|
true: {
|
|
2628
2715
|
wrapper: "transition-none",
|
|
@@ -2631,15 +2718,16 @@ var checkbox = tv({
|
|
|
2631
2718
|
},
|
|
2632
2719
|
false: {
|
|
2633
2720
|
wrapper: [
|
|
2634
|
-
"before:transition-
|
|
2721
|
+
"before:transition-colors",
|
|
2635
2722
|
"group-data-[pressed=true]:scale-95",
|
|
2636
2723
|
"transition-transform",
|
|
2637
2724
|
"after:transition-transform-opacity",
|
|
2638
2725
|
"after:!ease-linear",
|
|
2639
|
-
"after:!duration-200"
|
|
2726
|
+
"after:!duration-200",
|
|
2727
|
+
"motion-reduce:transition-none"
|
|
2640
2728
|
],
|
|
2641
|
-
icon: "transition-opacity",
|
|
2642
|
-
label: "transition-opacity before:transition-width"
|
|
2729
|
+
icon: "transition-opacity motion-reduce:transition-none",
|
|
2730
|
+
label: "transition-colors-opacity before:transition-width motion-reduce:transition-none"
|
|
2643
2731
|
}
|
|
2644
2732
|
}
|
|
2645
2733
|
},
|
|
@@ -2658,6 +2746,29 @@ var checkboxGroup = tv({
|
|
|
2658
2746
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2659
2747
|
description: "text-small text-foreground-400",
|
|
2660
2748
|
errorMessage: "text-small text-danger"
|
|
2749
|
+
},
|
|
2750
|
+
variants: {
|
|
2751
|
+
isRequired: {
|
|
2752
|
+
true: {
|
|
2753
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
isInvalid: {
|
|
2757
|
+
true: {
|
|
2758
|
+
description: "text-danger"
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
disableAnimation: {
|
|
2762
|
+
true: {},
|
|
2763
|
+
false: {
|
|
2764
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
defaultVariants: {
|
|
2769
|
+
isInvalid: false,
|
|
2770
|
+
isRequired: false,
|
|
2771
|
+
disableAnimation: false
|
|
2661
2772
|
}
|
|
2662
2773
|
});
|
|
2663
2774
|
|
|
@@ -2753,7 +2864,7 @@ var radio = tv({
|
|
|
2753
2864
|
isInvalid: {
|
|
2754
2865
|
true: {
|
|
2755
2866
|
control: "bg-danger text-danger-foreground",
|
|
2756
|
-
wrapper: "border-danger data-[selected=true]:border-danger",
|
|
2867
|
+
wrapper: "border-danger group-data-[selected=true]:border-danger",
|
|
2757
2868
|
label: "text-danger",
|
|
2758
2869
|
description: "text-danger-300"
|
|
2759
2870
|
}
|
|
@@ -2761,8 +2872,14 @@ var radio = tv({
|
|
|
2761
2872
|
disableAnimation: {
|
|
2762
2873
|
true: {},
|
|
2763
2874
|
false: {
|
|
2764
|
-
wrapper: [
|
|
2765
|
-
|
|
2875
|
+
wrapper: [
|
|
2876
|
+
"group-data-[pressed=true]:scale-95",
|
|
2877
|
+
"transition-transform-colors",
|
|
2878
|
+
"motion-reduce:transition-none"
|
|
2879
|
+
],
|
|
2880
|
+
control: "transition-transform-opacity motion-reduce:transition-none",
|
|
2881
|
+
label: "transition-colors motion-reduce:transition-none",
|
|
2882
|
+
description: "transition-colors motion-reduce:transition-none"
|
|
2766
2883
|
}
|
|
2767
2884
|
}
|
|
2768
2885
|
},
|
|
@@ -2781,6 +2898,29 @@ var radioGroup = tv({
|
|
|
2781
2898
|
wrapper: "flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",
|
|
2782
2899
|
description: "text-tiny text-foreground-400",
|
|
2783
2900
|
errorMessage: "text-tiny text-danger"
|
|
2901
|
+
},
|
|
2902
|
+
variants: {
|
|
2903
|
+
isRequired: {
|
|
2904
|
+
true: {
|
|
2905
|
+
label: "after:content-['*'] after:text-danger after:ml-0.5"
|
|
2906
|
+
}
|
|
2907
|
+
},
|
|
2908
|
+
isInvalid: {
|
|
2909
|
+
true: {
|
|
2910
|
+
description: "text-danger"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
disableAnimation: {
|
|
2914
|
+
true: {},
|
|
2915
|
+
false: {
|
|
2916
|
+
description: "transition-colors !duration-150 motion-reduce:transition-none"
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
},
|
|
2920
|
+
defaultVariants: {
|
|
2921
|
+
isInvalid: false,
|
|
2922
|
+
isRequired: false,
|
|
2923
|
+
disableAnimation: false
|
|
2784
2924
|
}
|
|
2785
2925
|
});
|
|
2786
2926
|
|
|
@@ -2811,6 +2951,7 @@ var pagination = tv({
|
|
|
2811
2951
|
"left-0",
|
|
2812
2952
|
"select-none",
|
|
2813
2953
|
"touch-none",
|
|
2954
|
+
"pointer-events-none",
|
|
2814
2955
|
"z-20"
|
|
2815
2956
|
],
|
|
2816
2957
|
forwardIcon: "hidden group-hover:block group-data-[focus-visible=true]:block data-[before=true]:rotate-180",
|
|
@@ -2900,7 +3041,12 @@ var pagination = tv({
|
|
|
2900
3041
|
},
|
|
2901
3042
|
false: {
|
|
2902
3043
|
item: ["data-[pressed=true]:scale-[0.97]", "transition-transform-background"],
|
|
2903
|
-
cursor: [
|
|
3044
|
+
cursor: [
|
|
3045
|
+
"data-[moving=true]:transition-transform",
|
|
3046
|
+
"!data-[moving=true]:duration-300",
|
|
3047
|
+
"opacity-0",
|
|
3048
|
+
"data-[moving]:opacity-100"
|
|
3049
|
+
]
|
|
2904
3050
|
}
|
|
2905
3051
|
}
|
|
2906
3052
|
},
|
|
@@ -3105,17 +3251,28 @@ var pagination = tv({
|
|
|
3105
3251
|
{
|
|
3106
3252
|
slots: ["item", "prev", "next"],
|
|
3107
3253
|
variant: "flat",
|
|
3108
|
-
class: [
|
|
3254
|
+
class: [
|
|
3255
|
+
"bg-default-100",
|
|
3256
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-200",
|
|
3257
|
+
"active:bg-default-300"
|
|
3258
|
+
]
|
|
3109
3259
|
},
|
|
3110
3260
|
{
|
|
3111
3261
|
slots: ["item", "prev", "next"],
|
|
3112
3262
|
variant: "faded",
|
|
3113
|
-
class: [
|
|
3263
|
+
class: [
|
|
3264
|
+
"bg-default-50",
|
|
3265
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3266
|
+
"active:bg-default-200"
|
|
3267
|
+
]
|
|
3114
3268
|
},
|
|
3115
3269
|
{
|
|
3116
3270
|
slots: ["item", "prev", "next"],
|
|
3117
3271
|
variant: "light",
|
|
3118
|
-
class: [
|
|
3272
|
+
class: [
|
|
3273
|
+
"[&[data-hover=true]:not([data-active=true])]:bg-default-100",
|
|
3274
|
+
"active:bg-default-200"
|
|
3275
|
+
]
|
|
3119
3276
|
},
|
|
3120
3277
|
{
|
|
3121
3278
|
slots: ["item", "cursor", "prev", "next"],
|
|
@@ -3356,7 +3513,7 @@ var accordionItem = tv({
|
|
|
3356
3513
|
],
|
|
3357
3514
|
startContent: "flex-shrink-0",
|
|
3358
3515
|
indicator: "text-default-400",
|
|
3359
|
-
titleWrapper: "flex-1 flex flex-col text-
|
|
3516
|
+
titleWrapper: "flex-1 flex flex-col text-start",
|
|
3360
3517
|
title: "text-foreground text-large",
|
|
3361
3518
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
3362
3519
|
content: "py-2"
|
|
@@ -3395,7 +3552,7 @@ var accordionItem = tv({
|
|
|
3395
3552
|
indicator: "transition-none"
|
|
3396
3553
|
},
|
|
3397
3554
|
false: {
|
|
3398
|
-
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"
|
|
3399
3556
|
}
|
|
3400
3557
|
}
|
|
3401
3558
|
},
|
|
@@ -3613,11 +3770,24 @@ var circularProgress = tv({
|
|
|
3613
3770
|
var input = tv({
|
|
3614
3771
|
slots: {
|
|
3615
3772
|
base: "group flex flex-col",
|
|
3616
|
-
label:
|
|
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
|
+
],
|
|
3617
3783
|
mainWrapper: "h-full",
|
|
3618
3784
|
inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
|
|
3619
|
-
innerWrapper: "inline-flex
|
|
3620
|
-
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
|
+
],
|
|
3621
3791
|
clearButton: [
|
|
3622
3792
|
"p-2",
|
|
3623
3793
|
"-m-2",
|
|
@@ -3686,7 +3856,8 @@ var input = tv({
|
|
|
3686
3856
|
"after:-bottom-[2px]",
|
|
3687
3857
|
"after:h-[2px]",
|
|
3688
3858
|
"group-data-[focus=true]:after:w-full"
|
|
3689
|
-
]
|
|
3859
|
+
],
|
|
3860
|
+
innerWrapper: "pb-1"
|
|
3690
3861
|
}
|
|
3691
3862
|
},
|
|
3692
3863
|
color: {
|
|
@@ -3741,11 +3912,12 @@ var input = tv({
|
|
|
3741
3912
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3742
3913
|
inputWrapper: "flex-1",
|
|
3743
3914
|
mainWrapper: "flex flex-col",
|
|
3744
|
-
label: "text-foreground pr-2"
|
|
3915
|
+
label: "relative text-foreground pr-2"
|
|
3745
3916
|
},
|
|
3746
3917
|
inside: {
|
|
3747
3918
|
label: "text-tiny cursor-text",
|
|
3748
|
-
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
3919
|
+
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
3920
|
+
innerWrapper: "items-end"
|
|
3749
3921
|
}
|
|
3750
3922
|
},
|
|
3751
3923
|
fullWidth: {
|
|
@@ -3753,11 +3925,6 @@ var input = tv({
|
|
|
3753
3925
|
base: "w-full"
|
|
3754
3926
|
}
|
|
3755
3927
|
},
|
|
3756
|
-
isLabelPlaceholder: {
|
|
3757
|
-
true: {
|
|
3758
|
-
label: "absolute z-10 pointer-events-none"
|
|
3759
|
-
}
|
|
3760
|
-
},
|
|
3761
3928
|
isClearable: {
|
|
3762
3929
|
true: {
|
|
3763
3930
|
input: "peer pr-6",
|
|
@@ -3784,12 +3951,14 @@ var input = tv({
|
|
|
3784
3951
|
},
|
|
3785
3952
|
isMultiline: {
|
|
3786
3953
|
true: {
|
|
3954
|
+
label: "relative",
|
|
3787
3955
|
inputWrapper: "!h-auto",
|
|
3788
|
-
input: "resize-none py-2"
|
|
3956
|
+
input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
|
|
3789
3957
|
}
|
|
3790
3958
|
},
|
|
3791
3959
|
disableAnimation: {
|
|
3792
3960
|
true: {
|
|
3961
|
+
input: "transition-none",
|
|
3793
3962
|
inputWrapper: "transition-none",
|
|
3794
3963
|
label: "transition-none"
|
|
3795
3964
|
},
|
|
@@ -3797,11 +3966,10 @@ var input = tv({
|
|
|
3797
3966
|
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
3798
3967
|
label: [
|
|
3799
3968
|
"will-change-auto",
|
|
3800
|
-
"origin-top-left",
|
|
3801
|
-
"transition-all",
|
|
3802
3969
|
"!duration-200",
|
|
3803
3970
|
"!ease-out",
|
|
3804
|
-
"motion-reduce:transition-none"
|
|
3971
|
+
"motion-reduce:transition-none",
|
|
3972
|
+
"transition-[transform,color,left,opacity]"
|
|
3805
3973
|
],
|
|
3806
3974
|
clearButton: ["transition-opacity", "motion-reduce:transition-none"]
|
|
3807
3975
|
}
|
|
@@ -3814,6 +3982,7 @@ var input = tv({
|
|
|
3814
3982
|
fullWidth: true,
|
|
3815
3983
|
labelPlacement: "inside",
|
|
3816
3984
|
isDisabled: false,
|
|
3985
|
+
isMultiline: false,
|
|
3817
3986
|
disableAnimation: false
|
|
3818
3987
|
},
|
|
3819
3988
|
compoundVariants: [
|
|
@@ -4061,6 +4230,13 @@ var input = tv({
|
|
|
4061
4230
|
]
|
|
4062
4231
|
}
|
|
4063
4232
|
},
|
|
4233
|
+
{
|
|
4234
|
+
labelPlacement: "inside",
|
|
4235
|
+
color: "default",
|
|
4236
|
+
class: {
|
|
4237
|
+
label: "group-data-[filled-within=true]:text-foreground-600"
|
|
4238
|
+
}
|
|
4239
|
+
},
|
|
4064
4240
|
{
|
|
4065
4241
|
isInvalid: true,
|
|
4066
4242
|
variant: "flat",
|
|
@@ -4109,19 +4285,28 @@ var input = tv({
|
|
|
4109
4285
|
}
|
|
4110
4286
|
},
|
|
4111
4287
|
{
|
|
4112
|
-
|
|
4288
|
+
labelPlacement: "inside",
|
|
4289
|
+
size: "sm",
|
|
4290
|
+
variant: ["bordered", "faded"],
|
|
4291
|
+
class: {
|
|
4292
|
+
inputWrapper: "py-1"
|
|
4293
|
+
}
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4113
4296
|
labelPlacement: ["inside", "outside"],
|
|
4114
4297
|
class: {
|
|
4115
|
-
label: [
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4298
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
labelPlacement: ["outside", "outside-left"],
|
|
4303
|
+
class: {
|
|
4304
|
+
input: "h-full"
|
|
4120
4305
|
}
|
|
4121
4306
|
},
|
|
4122
4307
|
{
|
|
4123
|
-
isLabelPlaceholder: true,
|
|
4124
4308
|
labelPlacement: "outside",
|
|
4309
|
+
isMultiline: false,
|
|
4125
4310
|
class: {
|
|
4126
4311
|
base: "group relative justify-end",
|
|
4127
4312
|
label: [
|
|
@@ -4136,110 +4321,215 @@ var input = tv({
|
|
|
4136
4321
|
}
|
|
4137
4322
|
},
|
|
4138
4323
|
{
|
|
4139
|
-
|
|
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
|
+
{
|
|
4140
4352
|
labelPlacement: "inside",
|
|
4141
4353
|
size: ["sm", "md"],
|
|
4142
4354
|
class: {
|
|
4143
|
-
label:
|
|
4144
|
-
input: "pt-4"
|
|
4355
|
+
label: "text-small"
|
|
4145
4356
|
}
|
|
4146
4357
|
},
|
|
4147
4358
|
{
|
|
4148
|
-
isLabelPlaceholder: true,
|
|
4149
4359
|
labelPlacement: "inside",
|
|
4360
|
+
isMultiline: false,
|
|
4150
4361
|
size: "sm",
|
|
4151
4362
|
class: {
|
|
4152
4363
|
label: [
|
|
4153
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
4154
|
-
]
|
|
4155
|
-
input: "pt-4"
|
|
4364
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
4365
|
+
]
|
|
4156
4366
|
}
|
|
4157
4367
|
},
|
|
4158
4368
|
{
|
|
4159
|
-
isLabelPlaceholder: true,
|
|
4160
4369
|
labelPlacement: "inside",
|
|
4370
|
+
isMultiline: false,
|
|
4161
4371
|
size: "md",
|
|
4162
4372
|
class: {
|
|
4163
4373
|
label: [
|
|
4164
|
-
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
4165
|
-
]
|
|
4166
|
-
input: "pt-4"
|
|
4374
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
4375
|
+
]
|
|
4167
4376
|
}
|
|
4168
4377
|
},
|
|
4169
4378
|
{
|
|
4170
|
-
isLabelPlaceholder: true,
|
|
4171
4379
|
labelPlacement: "inside",
|
|
4380
|
+
isMultiline: false,
|
|
4172
4381
|
size: "lg",
|
|
4173
4382
|
class: {
|
|
4174
4383
|
label: [
|
|
4175
4384
|
"text-medium",
|
|
4176
|
-
"group-data-[filled-within=true]
|
|
4177
|
-
|
|
4178
|
-
],
|
|
4179
|
-
input: "pt-5"
|
|
4385
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
4386
|
+
]
|
|
4180
4387
|
}
|
|
4181
4388
|
},
|
|
4182
4389
|
{
|
|
4183
|
-
|
|
4184
|
-
|
|
4390
|
+
labelPlacement: "inside",
|
|
4391
|
+
variant: ["faded", "bordered"],
|
|
4392
|
+
isMultiline: false,
|
|
4185
4393
|
size: "sm",
|
|
4186
4394
|
class: {
|
|
4187
4395
|
label: [
|
|
4188
|
-
"
|
|
4189
|
-
"text-small",
|
|
4190
|
-
"group-data-[filled-within=true]:text-tiny",
|
|
4191
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4396
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4192
4397
|
]
|
|
4193
4398
|
}
|
|
4194
4399
|
},
|
|
4195
4400
|
{
|
|
4196
|
-
|
|
4197
|
-
|
|
4401
|
+
labelPlacement: "inside",
|
|
4402
|
+
variant: ["faded", "bordered"],
|
|
4403
|
+
isMultiline: false,
|
|
4198
4404
|
size: "md",
|
|
4199
4405
|
class: {
|
|
4200
4406
|
label: [
|
|
4201
|
-
"
|
|
4202
|
-
"text-small",
|
|
4203
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4407
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
4204
4408
|
]
|
|
4205
4409
|
}
|
|
4206
4410
|
},
|
|
4207
4411
|
{
|
|
4208
|
-
|
|
4209
|
-
|
|
4412
|
+
labelPlacement: "inside",
|
|
4413
|
+
variant: ["faded", "bordered"],
|
|
4414
|
+
isMultiline: false,
|
|
4210
4415
|
size: "lg",
|
|
4211
4416
|
class: {
|
|
4212
4417
|
label: [
|
|
4213
|
-
"left-3",
|
|
4214
4418
|
"text-medium",
|
|
4215
|
-
"group-data-[filled-within=true]
|
|
4216
|
-
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4419
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
4217
4420
|
]
|
|
4218
4421
|
}
|
|
4219
4422
|
},
|
|
4220
4423
|
{
|
|
4221
|
-
labelPlacement: "
|
|
4424
|
+
labelPlacement: "inside",
|
|
4425
|
+
variant: "underlined",
|
|
4426
|
+
isMultiline: false,
|
|
4222
4427
|
size: "sm",
|
|
4223
4428
|
class: {
|
|
4224
|
-
label:
|
|
4429
|
+
label: [
|
|
4430
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
4431
|
+
]
|
|
4225
4432
|
}
|
|
4226
4433
|
},
|
|
4227
4434
|
{
|
|
4228
|
-
labelPlacement: "
|
|
4435
|
+
labelPlacement: "inside",
|
|
4436
|
+
variant: "underlined",
|
|
4437
|
+
isMultiline: false,
|
|
4229
4438
|
size: "md",
|
|
4230
4439
|
class: {
|
|
4231
|
-
label:
|
|
4440
|
+
label: [
|
|
4441
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
4442
|
+
]
|
|
4232
4443
|
}
|
|
4233
4444
|
},
|
|
4234
4445
|
{
|
|
4235
|
-
labelPlacement: "
|
|
4446
|
+
labelPlacement: "inside",
|
|
4447
|
+
variant: "underlined",
|
|
4236
4448
|
size: "lg",
|
|
4449
|
+
isMultiline: false,
|
|
4237
4450
|
class: {
|
|
4238
|
-
label:
|
|
4451
|
+
label: [
|
|
4452
|
+
"text-medium",
|
|
4453
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
4454
|
+
]
|
|
4239
4455
|
}
|
|
4240
|
-
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4456
|
+
},
|
|
4457
|
+
{
|
|
4458
|
+
labelPlacement: "outside",
|
|
4459
|
+
size: "sm",
|
|
4460
|
+
isMultiline: false,
|
|
4461
|
+
class: {
|
|
4462
|
+
label: [
|
|
4463
|
+
"left-2",
|
|
4464
|
+
"text-tiny",
|
|
4465
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
4466
|
+
],
|
|
4467
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
4468
|
+
}
|
|
4469
|
+
},
|
|
4470
|
+
{
|
|
4471
|
+
labelPlacement: "outside",
|
|
4472
|
+
size: "md",
|
|
4473
|
+
isMultiline: false,
|
|
4474
|
+
class: {
|
|
4475
|
+
label: [
|
|
4476
|
+
"left-3",
|
|
4477
|
+
"text-small",
|
|
4478
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4479
|
+
],
|
|
4480
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
4481
|
+
}
|
|
4482
|
+
},
|
|
4483
|
+
{
|
|
4484
|
+
labelPlacement: "outside",
|
|
4485
|
+
size: "lg",
|
|
4486
|
+
isMultiline: false,
|
|
4487
|
+
class: {
|
|
4488
|
+
label: [
|
|
4489
|
+
"left-3",
|
|
4490
|
+
"text-medium",
|
|
4491
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4492
|
+
],
|
|
4493
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
4494
|
+
}
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
labelPlacement: "outside-left",
|
|
4498
|
+
size: "sm",
|
|
4499
|
+
class: {
|
|
4500
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
4501
|
+
}
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
labelPlacement: "outside-left",
|
|
4505
|
+
size: "md",
|
|
4506
|
+
class: {
|
|
4507
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
labelPlacement: "outside-left",
|
|
4512
|
+
size: "lg",
|
|
4513
|
+
class: {
|
|
4514
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
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-150 motion-reduce:transition-none"
|
|
4529
|
+
}
|
|
4530
|
+
}
|
|
4531
|
+
]
|
|
4532
|
+
});
|
|
4243
4533
|
|
|
4244
4534
|
// src/components/dropdown.ts
|
|
4245
4535
|
var dropdown = tv({
|
|
@@ -5013,7 +5303,10 @@ var navbar = tv({
|
|
|
5013
5303
|
"gap-2",
|
|
5014
5304
|
"overflow-y-auto"
|
|
5015
5305
|
],
|
|
5016
|
-
menuItem: [
|
|
5306
|
+
menuItem: [
|
|
5307
|
+
"text-large",
|
|
5308
|
+
"data-[active=true]:font-semibold"
|
|
5309
|
+
]
|
|
5017
5310
|
},
|
|
5018
5311
|
variants: {
|
|
5019
5312
|
position: {
|
|
@@ -5726,7 +6019,7 @@ var skeleton = tv({
|
|
|
5726
6019
|
"after:-z-10",
|
|
5727
6020
|
"after:bg-content3",
|
|
5728
6021
|
"dark:after:bg-content2",
|
|
5729
|
-
"data-[loaded=true]
|
|
6022
|
+
"data-[loaded=true]:!bg-transparent",
|
|
5730
6023
|
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
|
|
5731
6024
|
"data-[loaded=true]:after:opacity-0"
|
|
5732
6025
|
],
|
|
@@ -5753,16 +6046,25 @@ var skeleton = tv({
|
|
|
5753
6046
|
var select = tv({
|
|
5754
6047
|
slots: {
|
|
5755
6048
|
base: "group inline-flex flex-col relative w-full",
|
|
5756
|
-
label:
|
|
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
|
+
],
|
|
5757
6059
|
mainWrapper: "w-full flex flex-col",
|
|
5758
6060
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
5759
6061
|
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
|
|
5760
6062
|
selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
|
|
5761
6063
|
spinner: "absolute right-3",
|
|
5762
|
-
value: "font-normal w-full text-left
|
|
6064
|
+
value: ["font-normal", "w-full", "text-left"],
|
|
5763
6065
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
5764
6066
|
listbox: "",
|
|
5765
|
-
|
|
6067
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
5766
6068
|
helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
|
|
5767
6069
|
description: "text-tiny text-foreground-400",
|
|
5768
6070
|
errorMessage: "text-tiny text-danger"
|
|
@@ -5820,7 +6122,9 @@ var select = tv({
|
|
|
5820
6122
|
}
|
|
5821
6123
|
},
|
|
5822
6124
|
color: {
|
|
5823
|
-
default: {
|
|
6125
|
+
default: {
|
|
6126
|
+
value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
|
|
6127
|
+
},
|
|
5824
6128
|
primary: {},
|
|
5825
6129
|
secondary: {},
|
|
5826
6130
|
success: {},
|
|
@@ -5866,7 +6170,7 @@ var select = tv({
|
|
|
5866
6170
|
},
|
|
5867
6171
|
"outside-left": {
|
|
5868
6172
|
base: "flex-row items-center flex-nowrap items-start",
|
|
5869
|
-
label: "text-foreground pr-2"
|
|
6173
|
+
label: "relative text-foreground pr-2"
|
|
5870
6174
|
},
|
|
5871
6175
|
inside: {
|
|
5872
6176
|
label: "text-tiny cursor-pointer",
|
|
@@ -5878,11 +6182,6 @@ var select = tv({
|
|
|
5878
6182
|
base: "w-full"
|
|
5879
6183
|
}
|
|
5880
6184
|
},
|
|
5881
|
-
isLabelPlaceholder: {
|
|
5882
|
-
true: {
|
|
5883
|
-
label: "absolute z-10"
|
|
5884
|
-
}
|
|
5885
|
-
},
|
|
5886
6185
|
isDisabled: {
|
|
5887
6186
|
true: {
|
|
5888
6187
|
base: "opacity-disabled pointer-events-none",
|
|
@@ -5892,7 +6191,7 @@ var select = tv({
|
|
|
5892
6191
|
isInvalid: {
|
|
5893
6192
|
true: {
|
|
5894
6193
|
label: "!text-danger",
|
|
5895
|
-
value: "text-danger",
|
|
6194
|
+
value: "!text-danger",
|
|
5896
6195
|
selectorIcon: "text-danger"
|
|
5897
6196
|
}
|
|
5898
6197
|
},
|
|
@@ -5921,9 +6220,9 @@ var select = tv({
|
|
|
5921
6220
|
label: [
|
|
5922
6221
|
"will-change-auto",
|
|
5923
6222
|
"origin-top-left",
|
|
5924
|
-
"transition-all",
|
|
5925
6223
|
"!duration-200",
|
|
5926
6224
|
"!ease-out",
|
|
6225
|
+
"transition-[transform,color,left,opacity]",
|
|
5927
6226
|
"motion-reduce:transition-none"
|
|
5928
6227
|
],
|
|
5929
6228
|
selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
@@ -6184,6 +6483,13 @@ var select = tv({
|
|
|
6184
6483
|
]
|
|
6185
6484
|
}
|
|
6186
6485
|
},
|
|
6486
|
+
{
|
|
6487
|
+
labelPlacement: "inside",
|
|
6488
|
+
color: "default",
|
|
6489
|
+
class: {
|
|
6490
|
+
label: "group-data-[filled=true]:text-foreground-600"
|
|
6491
|
+
}
|
|
6492
|
+
},
|
|
6187
6493
|
{
|
|
6188
6494
|
isInvalid: true,
|
|
6189
6495
|
variant: "flat",
|
|
@@ -6232,18 +6538,12 @@ var select = tv({
|
|
|
6232
6538
|
}
|
|
6233
6539
|
},
|
|
6234
6540
|
{
|
|
6235
|
-
isLabelPlaceholder: true,
|
|
6236
6541
|
labelPlacement: ["inside", "outside"],
|
|
6237
6542
|
class: {
|
|
6238
|
-
label: [
|
|
6239
|
-
"font-normal",
|
|
6240
|
-
"group-data-[filled=true]:font-medium",
|
|
6241
|
-
"group-data-[filled=true]:pointer-events-auto"
|
|
6242
|
-
]
|
|
6543
|
+
label: ["group-data-[filled=true]:pointer-events-auto"]
|
|
6243
6544
|
}
|
|
6244
6545
|
},
|
|
6245
6546
|
{
|
|
6246
|
-
isLabelPlaceholder: true,
|
|
6247
6547
|
labelPlacement: "outside",
|
|
6248
6548
|
class: {
|
|
6249
6549
|
base: "group relative justify-end",
|
|
@@ -6259,62 +6559,121 @@ var select = tv({
|
|
|
6259
6559
|
}
|
|
6260
6560
|
},
|
|
6261
6561
|
{
|
|
6262
|
-
|
|
6562
|
+
labelPlacement: ["inside"],
|
|
6563
|
+
class: {
|
|
6564
|
+
label: "group-data-[filled=true]:scale-85"
|
|
6565
|
+
}
|
|
6566
|
+
},
|
|
6567
|
+
{
|
|
6263
6568
|
labelPlacement: "inside",
|
|
6264
6569
|
size: ["sm", "md"],
|
|
6265
6570
|
class: {
|
|
6266
|
-
label:
|
|
6571
|
+
label: "text-small",
|
|
6267
6572
|
input: "pt-4"
|
|
6268
6573
|
}
|
|
6269
6574
|
},
|
|
6270
6575
|
{
|
|
6271
|
-
isLabelPlaceholder: true,
|
|
6272
6576
|
labelPlacement: "inside",
|
|
6273
6577
|
size: "sm",
|
|
6274
6578
|
class: {
|
|
6275
|
-
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-
|
|
6579
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
|
|
6276
6580
|
innerWrapper: "pt-4"
|
|
6277
6581
|
}
|
|
6278
6582
|
},
|
|
6279
6583
|
{
|
|
6280
|
-
isLabelPlaceholder: true,
|
|
6281
6584
|
labelPlacement: "inside",
|
|
6282
6585
|
size: "md",
|
|
6283
6586
|
class: {
|
|
6284
6587
|
label: [
|
|
6285
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-
|
|
6588
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
6286
6589
|
],
|
|
6287
6590
|
innerWrapper: "pt-4"
|
|
6288
6591
|
}
|
|
6289
6592
|
},
|
|
6290
6593
|
{
|
|
6291
|
-
isLabelPlaceholder: true,
|
|
6292
6594
|
labelPlacement: "inside",
|
|
6293
6595
|
size: "lg",
|
|
6294
6596
|
class: {
|
|
6295
6597
|
label: [
|
|
6296
6598
|
"text-medium",
|
|
6297
|
-
"group-data-[filled=true]
|
|
6298
|
-
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
|
|
6599
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
6299
6600
|
],
|
|
6300
6601
|
innerWrapper: "pt-5"
|
|
6301
6602
|
}
|
|
6302
6603
|
},
|
|
6303
6604
|
{
|
|
6304
|
-
|
|
6605
|
+
labelPlacement: "inside",
|
|
6606
|
+
variant: ["faded", "bordered"],
|
|
6607
|
+
size: "sm",
|
|
6608
|
+
class: {
|
|
6609
|
+
label: [
|
|
6610
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6611
|
+
]
|
|
6612
|
+
}
|
|
6613
|
+
},
|
|
6614
|
+
{
|
|
6615
|
+
labelPlacement: "inside",
|
|
6616
|
+
variant: ["faded", "bordered"],
|
|
6617
|
+
size: "md",
|
|
6618
|
+
class: {
|
|
6619
|
+
label: [
|
|
6620
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
6621
|
+
]
|
|
6622
|
+
}
|
|
6623
|
+
},
|
|
6624
|
+
{
|
|
6625
|
+
labelPlacement: "inside",
|
|
6626
|
+
variant: ["faded", "bordered"],
|
|
6627
|
+
size: "lg",
|
|
6628
|
+
class: {
|
|
6629
|
+
label: [
|
|
6630
|
+
"text-medium",
|
|
6631
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
6632
|
+
]
|
|
6633
|
+
}
|
|
6634
|
+
},
|
|
6635
|
+
{
|
|
6636
|
+
labelPlacement: "inside",
|
|
6637
|
+
variant: "underlined",
|
|
6638
|
+
size: "sm",
|
|
6639
|
+
class: {
|
|
6640
|
+
label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
|
|
6641
|
+
}
|
|
6642
|
+
},
|
|
6643
|
+
{
|
|
6644
|
+
labelPlacement: "inside",
|
|
6645
|
+
variant: "underlined",
|
|
6646
|
+
size: "md",
|
|
6647
|
+
class: {
|
|
6648
|
+
label: [
|
|
6649
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
6650
|
+
]
|
|
6651
|
+
}
|
|
6652
|
+
},
|
|
6653
|
+
{
|
|
6654
|
+
labelPlacement: "inside",
|
|
6655
|
+
variant: "underlined",
|
|
6656
|
+
size: "lg",
|
|
6657
|
+
class: {
|
|
6658
|
+
label: [
|
|
6659
|
+
"text-medium",
|
|
6660
|
+
"group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
6661
|
+
]
|
|
6662
|
+
}
|
|
6663
|
+
},
|
|
6664
|
+
{
|
|
6305
6665
|
labelPlacement: "outside",
|
|
6306
6666
|
size: "sm",
|
|
6307
6667
|
class: {
|
|
6308
6668
|
label: [
|
|
6309
6669
|
"left-2",
|
|
6310
|
-
"text-
|
|
6311
|
-
"group-data-[filled=true]:text-tiny",
|
|
6670
|
+
"text-tiny",
|
|
6312
6671
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6313
|
-
]
|
|
6672
|
+
],
|
|
6673
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
6314
6674
|
}
|
|
6315
6675
|
},
|
|
6316
6676
|
{
|
|
6317
|
-
isLabelPlaceholder: true,
|
|
6318
6677
|
labelPlacement: "outside",
|
|
6319
6678
|
size: "md",
|
|
6320
6679
|
class: {
|
|
@@ -6322,20 +6681,20 @@ var select = tv({
|
|
|
6322
6681
|
"left-3",
|
|
6323
6682
|
"text-small",
|
|
6324
6683
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6325
|
-
]
|
|
6684
|
+
],
|
|
6685
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
6326
6686
|
}
|
|
6327
6687
|
},
|
|
6328
6688
|
{
|
|
6329
|
-
isLabelPlaceholder: true,
|
|
6330
6689
|
labelPlacement: "outside",
|
|
6331
6690
|
size: "lg",
|
|
6332
6691
|
class: {
|
|
6333
6692
|
label: [
|
|
6334
6693
|
"left-3",
|
|
6335
6694
|
"text-medium",
|
|
6336
|
-
"group-data-[filled=true]:text-small",
|
|
6337
6695
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6338
|
-
]
|
|
6696
|
+
],
|
|
6697
|
+
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
6339
6698
|
}
|
|
6340
6699
|
}
|
|
6341
6700
|
]
|
|
@@ -6343,7 +6702,19 @@ var select = tv({
|
|
|
6343
6702
|
|
|
6344
6703
|
// src/components/menu.ts
|
|
6345
6704
|
var menu = tv({
|
|
6346
|
-
|
|
6705
|
+
slots: {
|
|
6706
|
+
base: "w-full relative flex flex-col gap-1 p-1",
|
|
6707
|
+
list: "w-full flex flex-col gap-0.5 outline-none",
|
|
6708
|
+
emptyContent: [
|
|
6709
|
+
"h-10",
|
|
6710
|
+
"px-2",
|
|
6711
|
+
"py-1.5",
|
|
6712
|
+
"w-full",
|
|
6713
|
+
"h-full",
|
|
6714
|
+
"text-foreground-400",
|
|
6715
|
+
"text-start"
|
|
6716
|
+
]
|
|
6717
|
+
}
|
|
6347
6718
|
});
|
|
6348
6719
|
var menuItem = tv({
|
|
6349
6720
|
slots: {
|
|
@@ -6437,7 +6808,9 @@ var menuItem = tv({
|
|
|
6437
6808
|
},
|
|
6438
6809
|
disableAnimation: {
|
|
6439
6810
|
true: {},
|
|
6440
|
-
false: {
|
|
6811
|
+
false: {
|
|
6812
|
+
base: "data-[hover=true]:transition-colors"
|
|
6813
|
+
}
|
|
6441
6814
|
}
|
|
6442
6815
|
},
|
|
6443
6816
|
defaultVariants: {
|
|
@@ -6818,94 +7191,758 @@ var scrollShadow = tv({
|
|
|
6818
7191
|
}
|
|
6819
7192
|
});
|
|
6820
7193
|
|
|
6821
|
-
// src/
|
|
6822
|
-
var
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
}
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
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
|
-
|
|
7194
|
+
// src/components/slider.ts
|
|
7195
|
+
var slider = tv({
|
|
7196
|
+
slots: {
|
|
7197
|
+
base: "flex flex-col w-full gap-1",
|
|
7198
|
+
labelWrapper: "w-full flex justify-between items-center",
|
|
7199
|
+
label: "",
|
|
7200
|
+
value: "",
|
|
7201
|
+
step: [
|
|
7202
|
+
"h-1.5",
|
|
7203
|
+
"w-1.5",
|
|
7204
|
+
"absolute",
|
|
7205
|
+
"rounded-full",
|
|
7206
|
+
"bg-default-300/50",
|
|
7207
|
+
"data-[in-range=true]:bg-background/50"
|
|
7208
|
+
],
|
|
7209
|
+
mark: [
|
|
7210
|
+
"absolute",
|
|
7211
|
+
"text-small",
|
|
7212
|
+
"cursor-default",
|
|
7213
|
+
"opacity-50",
|
|
7214
|
+
"data-[in-range=true]:opacity-100"
|
|
7215
|
+
],
|
|
7216
|
+
trackWrapper: "relative flex gap-2",
|
|
7217
|
+
track: ["flex", "w-full", "relative", "rounded-full", "bg-default-300/50"],
|
|
7218
|
+
filler: "h-full absolute",
|
|
7219
|
+
thumb: [
|
|
7220
|
+
"flex",
|
|
7221
|
+
"justify-center",
|
|
7222
|
+
"items-center",
|
|
7223
|
+
"before:absolute",
|
|
7224
|
+
"before:w-11",
|
|
7225
|
+
"before:h-11",
|
|
7226
|
+
"before:rounded-full",
|
|
7227
|
+
"after:shadow-small",
|
|
7228
|
+
"after:shadow-small",
|
|
7229
|
+
"after:bg-background",
|
|
7230
|
+
"data-[focused=true]:z-10",
|
|
7231
|
+
dataFocusVisibleClasses
|
|
7232
|
+
],
|
|
7233
|
+
startContent: [],
|
|
7234
|
+
endContent: []
|
|
7235
|
+
},
|
|
7236
|
+
variants: {
|
|
7237
|
+
size: {
|
|
7238
|
+
sm: {
|
|
7239
|
+
label: "text-small",
|
|
7240
|
+
value: "text-small",
|
|
7241
|
+
thumb: "w-5 h-5 after:w-4 after:h-4",
|
|
7242
|
+
step: "data-[in-range=false]:bg-default-200"
|
|
7243
|
+
},
|
|
7244
|
+
md: {
|
|
7245
|
+
thumb: "w-6 h-6 after:w-5 after:h-5",
|
|
7246
|
+
label: "text-small",
|
|
7247
|
+
value: "text-small"
|
|
7248
|
+
},
|
|
7249
|
+
lg: {
|
|
7250
|
+
thumb: "h-7 w-7 after:w-5 after:h-5",
|
|
7251
|
+
step: "w-2 h-2",
|
|
7252
|
+
label: "text-medium",
|
|
7253
|
+
value: "text-medium",
|
|
7254
|
+
mark: "mt-2"
|
|
7255
|
+
}
|
|
7256
|
+
},
|
|
7257
|
+
radius: {
|
|
7258
|
+
none: {
|
|
7259
|
+
thumb: "rounded-none after:rounded-none"
|
|
7260
|
+
},
|
|
7261
|
+
sm: {
|
|
7262
|
+
thumb: "rounded-[calc(theme(borderRadius.small)/2)] after:rounded-[calc(theme(borderRadius.small)/3)]"
|
|
7263
|
+
},
|
|
7264
|
+
md: {
|
|
7265
|
+
thumb: "rounded-[calc(theme(borderRadius.medium)/2)] after:rounded-[calc(theme(borderRadius.medium)/3)]"
|
|
7266
|
+
},
|
|
7267
|
+
lg: {
|
|
7268
|
+
thumb: "rounded-[calc(theme(borderRadius.large)/1.5)] after:rounded-[calc(theme(borderRadius.large)/2)]"
|
|
7269
|
+
},
|
|
7270
|
+
full: {
|
|
7271
|
+
thumb: "rounded-full after:rounded-full"
|
|
7272
|
+
}
|
|
7273
|
+
},
|
|
7274
|
+
color: {
|
|
7275
|
+
foreground: {
|
|
7276
|
+
filler: "bg-foreground",
|
|
7277
|
+
thumb: "bg-foreground"
|
|
7278
|
+
},
|
|
7279
|
+
primary: {
|
|
7280
|
+
filler: "bg-primary",
|
|
7281
|
+
thumb: "bg-primary"
|
|
7282
|
+
},
|
|
7283
|
+
secondary: {
|
|
7284
|
+
filler: "bg-secondary",
|
|
7285
|
+
thumb: "bg-secondary"
|
|
7286
|
+
},
|
|
7287
|
+
success: {
|
|
7288
|
+
filler: "bg-success",
|
|
7289
|
+
thumb: "bg-success"
|
|
7290
|
+
},
|
|
7291
|
+
warning: {
|
|
7292
|
+
filler: "bg-warning",
|
|
7293
|
+
thumb: "bg-warning"
|
|
7294
|
+
},
|
|
7295
|
+
danger: {
|
|
7296
|
+
filler: "bg-danger",
|
|
7297
|
+
thumb: "bg-danger"
|
|
7298
|
+
}
|
|
7299
|
+
},
|
|
7300
|
+
isVertical: {
|
|
7301
|
+
true: {
|
|
7302
|
+
base: "w-auto h-full flex-col-reverse items-center",
|
|
7303
|
+
trackWrapper: "flex-col h-full justify-center items-center",
|
|
7304
|
+
filler: "w-full h-auto",
|
|
7305
|
+
thumb: "left-1/2",
|
|
7306
|
+
track: "h-full border-y-transparent",
|
|
7307
|
+
labelWrapper: "flex-col justify-center items-center",
|
|
7308
|
+
step: ["left-1/2", "-translate-x-1/2", "translate-y-1/2"],
|
|
7309
|
+
mark: ["left-1/2", "ml-1", "translate-x-1/2", "-translate-y-1/2"]
|
|
7310
|
+
},
|
|
7311
|
+
false: {
|
|
7312
|
+
thumb: "top-1/2",
|
|
7313
|
+
trackWrapper: "items-center",
|
|
7314
|
+
track: "border-x-transparent",
|
|
7315
|
+
step: ["top-1/2", "-translate-x-1/2", "-translate-y-1/2"],
|
|
7316
|
+
mark: ["top-1/2", "mt-1", "-translate-x-1/2", "translate-y-1/2"]
|
|
7317
|
+
}
|
|
7318
|
+
},
|
|
7319
|
+
isDisabled: {
|
|
7320
|
+
false: {
|
|
7321
|
+
thumb: ["cursor-grab", "data-[dragging=true]:cursor-grabbing"]
|
|
7322
|
+
},
|
|
7323
|
+
true: {
|
|
7324
|
+
base: "opacity-disabled",
|
|
7325
|
+
thumb: "cursor-default"
|
|
7326
|
+
}
|
|
7327
|
+
},
|
|
7328
|
+
hasMarks: {
|
|
7329
|
+
true: {
|
|
7330
|
+
base: "mb-5"
|
|
7331
|
+
},
|
|
7332
|
+
false: {}
|
|
7333
|
+
},
|
|
7334
|
+
showOutline: {
|
|
7335
|
+
true: {
|
|
7336
|
+
thumb: "ring-2 ring-background"
|
|
7337
|
+
},
|
|
7338
|
+
false: {
|
|
7339
|
+
thumb: "ring-transparent border-0"
|
|
7340
|
+
}
|
|
7341
|
+
},
|
|
7342
|
+
hideValue: {
|
|
7343
|
+
true: {
|
|
7344
|
+
value: "sr-only"
|
|
7345
|
+
}
|
|
7346
|
+
},
|
|
7347
|
+
hideThumb: {
|
|
7348
|
+
true: {
|
|
7349
|
+
thumb: "sr-only",
|
|
7350
|
+
track: "overflow-hidden cursor-pointer"
|
|
7351
|
+
}
|
|
7352
|
+
},
|
|
7353
|
+
hasSingleThumb: {
|
|
7354
|
+
true: {},
|
|
7355
|
+
false: {}
|
|
7356
|
+
},
|
|
7357
|
+
disableAnimation: {
|
|
7358
|
+
true: {
|
|
7359
|
+
thumb: "data-[dragging=true]:after:scale-100"
|
|
7360
|
+
},
|
|
7361
|
+
false: {
|
|
7362
|
+
thumb: "after:transition-all motion-reduce:after:transition-none",
|
|
7363
|
+
mark: "transition-opacity motion-reduce:transition-none"
|
|
7364
|
+
}
|
|
7365
|
+
},
|
|
7366
|
+
disableThumbScale: {
|
|
7367
|
+
true: {},
|
|
7368
|
+
false: {
|
|
7369
|
+
thumb: "data-[dragging=true]:after:scale-80"
|
|
7370
|
+
}
|
|
7371
|
+
}
|
|
7372
|
+
},
|
|
7373
|
+
compoundVariants: [
|
|
7374
|
+
{
|
|
7375
|
+
size: ["sm", "md"],
|
|
7376
|
+
showOutline: false,
|
|
7377
|
+
class: {
|
|
7378
|
+
thumb: "shadow-small"
|
|
7379
|
+
}
|
|
7380
|
+
},
|
|
7381
|
+
{
|
|
7382
|
+
size: "sm",
|
|
7383
|
+
color: "foreground",
|
|
7384
|
+
class: {
|
|
7385
|
+
step: "data-[in-range=true]:bg-foreground"
|
|
7386
|
+
}
|
|
7387
|
+
},
|
|
7388
|
+
{
|
|
7389
|
+
size: "sm",
|
|
7390
|
+
color: "primary",
|
|
7391
|
+
class: {
|
|
7392
|
+
step: "data-[in-range=true]:bg-primary"
|
|
7393
|
+
}
|
|
7394
|
+
},
|
|
7395
|
+
{
|
|
7396
|
+
size: "sm",
|
|
7397
|
+
color: "secondary",
|
|
7398
|
+
class: {
|
|
7399
|
+
step: "data-[in-range=true]:bg-secondary"
|
|
7400
|
+
}
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
size: "sm",
|
|
7404
|
+
color: "success",
|
|
7405
|
+
class: {
|
|
7406
|
+
step: "data-[in-range=true]:bg-success"
|
|
7407
|
+
}
|
|
7408
|
+
},
|
|
7409
|
+
{
|
|
7410
|
+
size: "sm",
|
|
7411
|
+
color: "warning",
|
|
7412
|
+
class: {
|
|
7413
|
+
step: "data-[in-range=true]:bg-warning"
|
|
7414
|
+
}
|
|
7415
|
+
},
|
|
7416
|
+
{
|
|
7417
|
+
size: "sm",
|
|
7418
|
+
color: "danger",
|
|
7419
|
+
class: {
|
|
7420
|
+
step: "data-[in-range=true]:bg-danger"
|
|
7421
|
+
}
|
|
7422
|
+
},
|
|
7423
|
+
{
|
|
7424
|
+
size: "sm",
|
|
7425
|
+
isVertical: false,
|
|
7426
|
+
class: {
|
|
7427
|
+
track: "h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.5)/2)]"
|
|
7428
|
+
}
|
|
7429
|
+
},
|
|
7430
|
+
{
|
|
7431
|
+
size: "md",
|
|
7432
|
+
isVertical: false,
|
|
7433
|
+
class: {
|
|
7434
|
+
track: "h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.6)/2)]"
|
|
7435
|
+
}
|
|
7436
|
+
},
|
|
7437
|
+
{
|
|
7438
|
+
size: "lg",
|
|
7439
|
+
isVertical: false,
|
|
7440
|
+
class: {
|
|
7441
|
+
track: "h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-x-[calc(theme(spacing.7)/2)]"
|
|
7442
|
+
}
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
size: "sm",
|
|
7446
|
+
isVertical: true,
|
|
7447
|
+
class: {
|
|
7448
|
+
track: "w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.5)/2)]"
|
|
7449
|
+
}
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
size: "md",
|
|
7453
|
+
isVertical: true,
|
|
7454
|
+
class: {
|
|
7455
|
+
track: "w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.6)/2)]"
|
|
7456
|
+
}
|
|
7457
|
+
},
|
|
7458
|
+
{
|
|
7459
|
+
size: "lg",
|
|
7460
|
+
isVertical: true,
|
|
7461
|
+
class: {
|
|
7462
|
+
track: "w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] data-[thumb-hidden=false]:border-y-[calc(theme(spacing.7)/2)]"
|
|
7463
|
+
}
|
|
7464
|
+
},
|
|
7465
|
+
{
|
|
7466
|
+
color: "foreground",
|
|
7467
|
+
isVertical: false,
|
|
7468
|
+
hasSingleThumb: true,
|
|
7469
|
+
class: {
|
|
7470
|
+
track: "border-s-foreground"
|
|
7471
|
+
}
|
|
7472
|
+
},
|
|
7473
|
+
{
|
|
7474
|
+
color: "primary",
|
|
7475
|
+
isVertical: false,
|
|
7476
|
+
hasSingleThumb: true,
|
|
7477
|
+
class: {
|
|
7478
|
+
track: "border-s-primary"
|
|
7479
|
+
}
|
|
7480
|
+
},
|
|
7481
|
+
{
|
|
7482
|
+
color: "secondary",
|
|
7483
|
+
isVertical: false,
|
|
7484
|
+
hasSingleThumb: true,
|
|
7485
|
+
class: {
|
|
7486
|
+
track: "border-s-secondary"
|
|
7487
|
+
}
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
color: "success",
|
|
7491
|
+
isVertical: false,
|
|
7492
|
+
hasSingleThumb: true,
|
|
7493
|
+
class: {
|
|
7494
|
+
track: "border-s-success"
|
|
7495
|
+
}
|
|
7496
|
+
},
|
|
7497
|
+
{
|
|
7498
|
+
color: "warning",
|
|
7499
|
+
isVertical: false,
|
|
7500
|
+
hasSingleThumb: true,
|
|
7501
|
+
class: {
|
|
7502
|
+
track: "border-s-warning"
|
|
7503
|
+
}
|
|
7504
|
+
},
|
|
7505
|
+
{
|
|
7506
|
+
color: "danger",
|
|
7507
|
+
isVertical: false,
|
|
7508
|
+
hasSingleThumb: true,
|
|
7509
|
+
class: {
|
|
7510
|
+
track: "border-s-danger"
|
|
7511
|
+
}
|
|
7512
|
+
},
|
|
7513
|
+
{
|
|
7514
|
+
color: "foreground",
|
|
7515
|
+
isVertical: true,
|
|
7516
|
+
hasSingleThumb: true,
|
|
7517
|
+
class: {
|
|
7518
|
+
track: "border-b-foreground"
|
|
7519
|
+
}
|
|
7520
|
+
},
|
|
7521
|
+
{
|
|
7522
|
+
color: "primary",
|
|
7523
|
+
isVertical: true,
|
|
7524
|
+
hasSingleThumb: true,
|
|
7525
|
+
class: {
|
|
7526
|
+
track: "border-b-primary"
|
|
7527
|
+
}
|
|
7528
|
+
},
|
|
7529
|
+
{
|
|
7530
|
+
color: "secondary",
|
|
7531
|
+
isVertical: true,
|
|
7532
|
+
hasSingleThumb: true,
|
|
7533
|
+
class: {
|
|
7534
|
+
track: "border-b-secondary"
|
|
7535
|
+
}
|
|
7536
|
+
},
|
|
7537
|
+
{
|
|
7538
|
+
color: "success",
|
|
7539
|
+
isVertical: true,
|
|
7540
|
+
hasSingleThumb: true,
|
|
7541
|
+
class: {
|
|
7542
|
+
track: "border-b-success"
|
|
7543
|
+
}
|
|
7544
|
+
},
|
|
7545
|
+
{
|
|
7546
|
+
color: "warning",
|
|
7547
|
+
isVertical: true,
|
|
7548
|
+
hasSingleThumb: true,
|
|
7549
|
+
class: {
|
|
7550
|
+
track: "border-b-warning"
|
|
7551
|
+
}
|
|
7552
|
+
},
|
|
7553
|
+
{
|
|
7554
|
+
color: "danger",
|
|
7555
|
+
isVertical: true,
|
|
7556
|
+
hasSingleThumb: true,
|
|
7557
|
+
class: {
|
|
7558
|
+
track: "border-b-danger"
|
|
7559
|
+
}
|
|
7560
|
+
}
|
|
7561
|
+
],
|
|
7562
|
+
defaultVariants: {
|
|
7563
|
+
size: "md",
|
|
7564
|
+
color: "primary",
|
|
7565
|
+
radius: "full",
|
|
7566
|
+
hideValue: false,
|
|
7567
|
+
hideThumb: false,
|
|
7568
|
+
isDisabled: false,
|
|
7569
|
+
disableThumbScale: false,
|
|
7570
|
+
disableAnimation: false,
|
|
7571
|
+
showOutline: false
|
|
7572
|
+
}
|
|
7573
|
+
});
|
|
7574
|
+
|
|
7575
|
+
// src/components/breadcrumbs.ts
|
|
7576
|
+
var breadcrumbItem = tv({
|
|
7577
|
+
slots: {
|
|
7578
|
+
base: "flex items-center",
|
|
7579
|
+
item: [
|
|
7580
|
+
"flex gap-1 items-center",
|
|
7581
|
+
"cursor-pointer",
|
|
7582
|
+
"whitespace-nowrap",
|
|
7583
|
+
"line-clamp-1",
|
|
7584
|
+
"outline-none",
|
|
7585
|
+
"tap-highlight-transparent",
|
|
7586
|
+
...dataFocusVisibleClasses
|
|
7587
|
+
],
|
|
7588
|
+
separator: "text-default-400 px-1"
|
|
7589
|
+
},
|
|
7590
|
+
variants: {
|
|
7591
|
+
color: {
|
|
7592
|
+
foreground: {
|
|
7593
|
+
item: "text-foreground/50",
|
|
7594
|
+
separator: "text-foreground/50"
|
|
7595
|
+
},
|
|
7596
|
+
primary: {
|
|
7597
|
+
item: "text-primary/80",
|
|
7598
|
+
separator: "text-primary/80"
|
|
7599
|
+
},
|
|
7600
|
+
secondary: {
|
|
7601
|
+
item: "text-secondary/80",
|
|
7602
|
+
separator: "text-secondary/80"
|
|
7603
|
+
},
|
|
7604
|
+
success: {
|
|
7605
|
+
item: "text-success/80",
|
|
7606
|
+
separator: "text-success/80"
|
|
7607
|
+
},
|
|
7608
|
+
warning: {
|
|
7609
|
+
item: "text-warning/80",
|
|
7610
|
+
separator: "text-warning/80"
|
|
7611
|
+
},
|
|
7612
|
+
danger: {
|
|
7613
|
+
item: "text-danger/80",
|
|
7614
|
+
separator: "text-danger/80"
|
|
7615
|
+
}
|
|
7616
|
+
},
|
|
7617
|
+
size: {
|
|
7618
|
+
sm: {
|
|
7619
|
+
item: "text-tiny"
|
|
7620
|
+
},
|
|
7621
|
+
md: {
|
|
7622
|
+
item: "text-small"
|
|
7623
|
+
},
|
|
7624
|
+
lg: {
|
|
7625
|
+
item: "text-medium"
|
|
7626
|
+
}
|
|
7627
|
+
},
|
|
7628
|
+
underline: {
|
|
7629
|
+
none: {
|
|
7630
|
+
item: "no-underline"
|
|
7631
|
+
},
|
|
7632
|
+
hover: {
|
|
7633
|
+
item: "hover:underline"
|
|
7634
|
+
},
|
|
7635
|
+
always: {
|
|
7636
|
+
item: "underline"
|
|
7637
|
+
},
|
|
7638
|
+
active: {
|
|
7639
|
+
item: "active:underline"
|
|
7640
|
+
},
|
|
7641
|
+
focus: {
|
|
7642
|
+
item: "focus:underline"
|
|
7643
|
+
}
|
|
7644
|
+
},
|
|
7645
|
+
isCurrent: {
|
|
7646
|
+
true: {
|
|
7647
|
+
item: "cursor-default"
|
|
7648
|
+
},
|
|
7649
|
+
false: {
|
|
7650
|
+
item: ["hover:opacity-80", "active:opacity-disabled"]
|
|
7651
|
+
}
|
|
7652
|
+
},
|
|
7653
|
+
isDisabled: {
|
|
7654
|
+
true: {
|
|
7655
|
+
item: "opacity-disabled pointer-events-none",
|
|
7656
|
+
separator: "opacity-disabled"
|
|
7657
|
+
}
|
|
7658
|
+
},
|
|
7659
|
+
disableAnimation: {
|
|
7660
|
+
false: {
|
|
7661
|
+
item: "transition-opacity"
|
|
7662
|
+
},
|
|
7663
|
+
true: {
|
|
7664
|
+
item: "transition-none"
|
|
7665
|
+
}
|
|
7666
|
+
}
|
|
7667
|
+
},
|
|
7668
|
+
defaultVariants: {
|
|
7669
|
+
size: "md",
|
|
7670
|
+
color: "foreground",
|
|
7671
|
+
underline: "hover",
|
|
7672
|
+
isDisabled: false,
|
|
7673
|
+
disableAnimation: false
|
|
7674
|
+
},
|
|
7675
|
+
compoundVariants: [
|
|
7676
|
+
{
|
|
7677
|
+
isCurrent: true,
|
|
7678
|
+
color: "foreground",
|
|
7679
|
+
class: {
|
|
7680
|
+
item: "text-foreground"
|
|
7681
|
+
}
|
|
7682
|
+
},
|
|
7683
|
+
{
|
|
7684
|
+
isCurrent: true,
|
|
7685
|
+
color: "primary",
|
|
7686
|
+
class: {
|
|
7687
|
+
item: "text-primary"
|
|
7688
|
+
}
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
isCurrent: true,
|
|
7692
|
+
color: "secondary",
|
|
7693
|
+
class: {
|
|
7694
|
+
item: "text-secondary"
|
|
7695
|
+
}
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
isCurrent: true,
|
|
7699
|
+
color: "success",
|
|
7700
|
+
class: {
|
|
7701
|
+
item: "text-success"
|
|
7702
|
+
}
|
|
7703
|
+
},
|
|
7704
|
+
{
|
|
7705
|
+
isCurrent: true,
|
|
7706
|
+
color: "warning",
|
|
7707
|
+
class: {
|
|
7708
|
+
item: "text-warning"
|
|
7709
|
+
}
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
isCurrent: true,
|
|
7713
|
+
color: "danger",
|
|
7714
|
+
class: {
|
|
7715
|
+
item: "text-danger"
|
|
7716
|
+
}
|
|
7717
|
+
},
|
|
7718
|
+
{
|
|
7719
|
+
isCurrent: false,
|
|
7720
|
+
underline: "none",
|
|
7721
|
+
class: {
|
|
7722
|
+
item: "no-underline"
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
{
|
|
7726
|
+
underline: ["hover", "always", "active", "focus"],
|
|
7727
|
+
class: "underline-offset-4"
|
|
7728
|
+
}
|
|
7729
|
+
]
|
|
7730
|
+
});
|
|
7731
|
+
var breadcrumbs = tv({
|
|
7732
|
+
slots: {
|
|
7733
|
+
base: "",
|
|
7734
|
+
list: "flex flex-wrap list-none",
|
|
7735
|
+
ellipsis: "text-medium",
|
|
7736
|
+
separator: "text-default-400 px-1"
|
|
7737
|
+
},
|
|
7738
|
+
variants: {
|
|
7739
|
+
size: {
|
|
7740
|
+
sm: {},
|
|
7741
|
+
md: {},
|
|
7742
|
+
lg: {}
|
|
7743
|
+
},
|
|
7744
|
+
radius: {
|
|
7745
|
+
none: {
|
|
7746
|
+
list: "rounded-none"
|
|
7747
|
+
},
|
|
7748
|
+
sm: {
|
|
7749
|
+
list: "rounded-small"
|
|
7750
|
+
},
|
|
7751
|
+
md: {
|
|
7752
|
+
list: "rounded-medium"
|
|
7753
|
+
},
|
|
7754
|
+
lg: {
|
|
7755
|
+
list: "rounded-large"
|
|
7756
|
+
},
|
|
7757
|
+
full: {
|
|
7758
|
+
list: "rounded-full"
|
|
7759
|
+
}
|
|
7760
|
+
},
|
|
7761
|
+
variant: {
|
|
7762
|
+
solid: {
|
|
7763
|
+
list: "bg-default-100"
|
|
7764
|
+
},
|
|
7765
|
+
bordered: {
|
|
7766
|
+
list: "border-medium border-default-200 shadow-sm"
|
|
7767
|
+
},
|
|
7768
|
+
light: {}
|
|
7769
|
+
}
|
|
7770
|
+
},
|
|
7771
|
+
defaultVariants: {
|
|
7772
|
+
size: "md",
|
|
7773
|
+
radius: "sm",
|
|
7774
|
+
variant: "light"
|
|
7775
|
+
},
|
|
7776
|
+
compoundVariants: [
|
|
7777
|
+
{
|
|
7778
|
+
variant: ["solid", "bordered"],
|
|
7779
|
+
class: {
|
|
7780
|
+
list: "max-w-fit"
|
|
7781
|
+
}
|
|
7782
|
+
},
|
|
7783
|
+
{
|
|
7784
|
+
variant: ["solid", "bordered"],
|
|
7785
|
+
size: "sm",
|
|
7786
|
+
class: {
|
|
7787
|
+
list: "px-2 py-1"
|
|
7788
|
+
}
|
|
7789
|
+
},
|
|
7790
|
+
{
|
|
7791
|
+
variant: ["solid", "bordered"],
|
|
7792
|
+
size: "md",
|
|
7793
|
+
class: {
|
|
7794
|
+
list: "px-2.5 py-1.5"
|
|
7795
|
+
}
|
|
7796
|
+
},
|
|
7797
|
+
{
|
|
7798
|
+
variant: ["solid", "bordered"],
|
|
7799
|
+
size: "lg",
|
|
7800
|
+
class: {
|
|
7801
|
+
list: "px-3 py-2"
|
|
7802
|
+
}
|
|
7803
|
+
}
|
|
7804
|
+
]
|
|
7805
|
+
});
|
|
7806
|
+
|
|
7807
|
+
// src/components/autocomplete.ts
|
|
7808
|
+
var autocomplete = tv({
|
|
7809
|
+
slots: {
|
|
7810
|
+
base: "group inline-flex flex-column w-full",
|
|
7811
|
+
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
7812
|
+
listbox: "",
|
|
7813
|
+
popoverContent: "w-full p-1 overflow-hidden",
|
|
7814
|
+
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
7815
|
+
clearButton: [
|
|
7816
|
+
"text-medium",
|
|
7817
|
+
"translate-x-1",
|
|
7818
|
+
"cursor-text",
|
|
7819
|
+
"opacity-0",
|
|
7820
|
+
"text-default-500",
|
|
7821
|
+
"group-data-[invalid=true]:text-danger",
|
|
7822
|
+
"data-[visible=true]:opacity-100",
|
|
7823
|
+
"data-[visible=true]:cursor-pointer",
|
|
7824
|
+
"sm:data-[visible=true]:opacity-0",
|
|
7825
|
+
"sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
|
|
7826
|
+
],
|
|
7827
|
+
selectorButton: "text-medium"
|
|
7828
|
+
},
|
|
7829
|
+
variants: {
|
|
7830
|
+
disableClearable: {
|
|
7831
|
+
true: {
|
|
7832
|
+
clearButton: "hidden"
|
|
7833
|
+
},
|
|
7834
|
+
false: {}
|
|
7835
|
+
},
|
|
7836
|
+
disableAnimation: {
|
|
7837
|
+
true: {
|
|
7838
|
+
selectorButton: "transition-none"
|
|
7839
|
+
},
|
|
7840
|
+
false: {
|
|
7841
|
+
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
|
|
7842
|
+
}
|
|
7843
|
+
},
|
|
7844
|
+
disableSelectorIconRotation: {
|
|
7845
|
+
true: {},
|
|
7846
|
+
false: {
|
|
7847
|
+
selectorButton: "data-[open=true]:rotate-180"
|
|
7848
|
+
}
|
|
7849
|
+
}
|
|
7850
|
+
},
|
|
7851
|
+
defaultVariants: {
|
|
7852
|
+
disableAnimation: false,
|
|
7853
|
+
disableClearable: false,
|
|
7854
|
+
disableSelectorIconRotation: false
|
|
7855
|
+
}
|
|
7856
|
+
});
|
|
7857
|
+
|
|
7858
|
+
// src/colors/blue.ts
|
|
7859
|
+
var blue = {
|
|
7860
|
+
50: "#e6f1fe",
|
|
7861
|
+
100: "#cce3fd",
|
|
7862
|
+
200: "#99c7fb",
|
|
7863
|
+
300: "#66aaf9",
|
|
7864
|
+
400: "#338ef7",
|
|
7865
|
+
500: "#006FEE",
|
|
7866
|
+
600: "#005bc4",
|
|
7867
|
+
700: "#004493",
|
|
7868
|
+
800: "#002e62",
|
|
7869
|
+
900: "#001731"
|
|
7870
|
+
};
|
|
7871
|
+
|
|
7872
|
+
// src/colors/green.ts
|
|
7873
|
+
var green = {
|
|
7874
|
+
50: "#e8faf0",
|
|
7875
|
+
100: "#d1f4e0",
|
|
7876
|
+
200: "#a2e9c1",
|
|
7877
|
+
300: "#74dfa2",
|
|
7878
|
+
400: "#45d483",
|
|
7879
|
+
500: "#17c964",
|
|
7880
|
+
600: "#12a150",
|
|
7881
|
+
700: "#0e793c",
|
|
7882
|
+
800: "#095028",
|
|
7883
|
+
900: "#052814"
|
|
7884
|
+
};
|
|
7885
|
+
|
|
7886
|
+
// src/colors/pink.ts
|
|
7887
|
+
var pink = {
|
|
7888
|
+
50: "#ffedfa",
|
|
7889
|
+
100: "#ffdcf5",
|
|
7890
|
+
200: "#ffb8eb",
|
|
7891
|
+
300: "#ff95e1",
|
|
7892
|
+
400: "#ff71d7",
|
|
7893
|
+
500: "#ff4ecd",
|
|
7894
|
+
600: "#cc3ea4",
|
|
7895
|
+
700: "#992f7b",
|
|
7896
|
+
800: "#661f52",
|
|
7897
|
+
900: "#331029"
|
|
7898
|
+
};
|
|
7899
|
+
|
|
7900
|
+
// src/colors/purple.ts
|
|
7901
|
+
var purple = {
|
|
7902
|
+
50: "#f2eafa",
|
|
7903
|
+
100: "#e4d4f4",
|
|
7904
|
+
200: "#c9a9e9",
|
|
7905
|
+
300: "#ae7ede",
|
|
7906
|
+
400: "#9353d3",
|
|
7907
|
+
500: "#7828c8",
|
|
7908
|
+
600: "#6020a0",
|
|
7909
|
+
700: "#481878",
|
|
7910
|
+
800: "#301050",
|
|
7911
|
+
900: "#180828"
|
|
7912
|
+
};
|
|
7913
|
+
|
|
7914
|
+
// src/colors/red.ts
|
|
7915
|
+
var red = {
|
|
7916
|
+
50: "#fee7ef",
|
|
7917
|
+
100: "#fdd0df",
|
|
7918
|
+
200: "#faa0bf",
|
|
7919
|
+
300: "#f871a0",
|
|
7920
|
+
400: "#f54180",
|
|
7921
|
+
500: "#f31260",
|
|
7922
|
+
600: "#c20e4d",
|
|
7923
|
+
700: "#920b3a",
|
|
7924
|
+
800: "#610726",
|
|
7925
|
+
900: "#310413"
|
|
7926
|
+
};
|
|
7927
|
+
|
|
7928
|
+
// src/colors/yellow.ts
|
|
7929
|
+
var yellow = {
|
|
7930
|
+
50: "#fefce8",
|
|
7931
|
+
100: "#fdedd3",
|
|
7932
|
+
200: "#fbdba7",
|
|
7933
|
+
300: "#f9c97c",
|
|
7934
|
+
400: "#f7b750",
|
|
7935
|
+
500: "#f5a524",
|
|
7936
|
+
600: "#c4841d",
|
|
7937
|
+
700: "#936316",
|
|
7938
|
+
800: "#62420e",
|
|
7939
|
+
900: "#312107"
|
|
7940
|
+
};
|
|
7941
|
+
|
|
7942
|
+
// src/colors/cyan.ts
|
|
7943
|
+
var cyan = {
|
|
7944
|
+
50: "#F0FCFF",
|
|
7945
|
+
100: "#E6FAFE",
|
|
6909
7946
|
200: "#D7F8FE",
|
|
6910
7947
|
300: "#C3F4FD",
|
|
6911
7948
|
400: "#A5EEFD",
|
|
@@ -7255,6 +8292,11 @@ var transition_default = {
|
|
|
7255
8292
|
"transition-timing-function": "ease",
|
|
7256
8293
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
7257
8294
|
},
|
|
8295
|
+
".transition-size": {
|
|
8296
|
+
"transition-property": "width, height",
|
|
8297
|
+
"transition-timing-function": "ease",
|
|
8298
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
8299
|
+
},
|
|
7258
8300
|
".transition-left": {
|
|
7259
8301
|
"transition-property": "left",
|
|
7260
8302
|
"transition-timing-function": "ease",
|
|
@@ -7284,6 +8326,11 @@ var transition_default = {
|
|
|
7284
8326
|
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
|
|
7285
8327
|
"transition-timing-function": "ease",
|
|
7286
8328
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
8329
|
+
},
|
|
8330
|
+
".transition-transform-colors-opacity": {
|
|
8331
|
+
" transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
8332
|
+
"transition-timing-function": "ease",
|
|
8333
|
+
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
7287
8334
|
}
|
|
7288
8335
|
};
|
|
7289
8336
|
|
|
@@ -7333,6 +8380,7 @@ var utilities = {
|
|
|
7333
8380
|
|
|
7334
8381
|
// src/utils/theme.ts
|
|
7335
8382
|
var isBaseTheme = (theme) => theme === "light" || theme === "dark";
|
|
8383
|
+
var ROOT_FONT_SIZE = 16;
|
|
7336
8384
|
var baseScale = [1, 2, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
|
|
7337
8385
|
var extendedScale = [20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96];
|
|
7338
8386
|
var generateSpacingScale = (spacingUnit) => {
|
|
@@ -7353,7 +8401,7 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
7353
8401
|
};
|
|
7354
8402
|
const scale = { 0: "0px" };
|
|
7355
8403
|
Object.entries(scaleLabels).forEach(([label, multiplier]) => {
|
|
7356
|
-
scale[label] = multiplier ? `${spacingUnit * multiplier}
|
|
8404
|
+
scale[label] = multiplier ? `${spacingUnit * multiplier / ROOT_FONT_SIZE}rem` : `${spacingUnit / ROOT_FONT_SIZE}rem`;
|
|
7357
8405
|
});
|
|
7358
8406
|
baseScale.forEach((i) => {
|
|
7359
8407
|
let key = `${i}`;
|
|
@@ -7361,11 +8409,11 @@ var generateSpacingScale = (spacingUnit) => {
|
|
|
7361
8409
|
const [first, second] = key.split(".");
|
|
7362
8410
|
key = `${first}_${second}`;
|
|
7363
8411
|
}
|
|
7364
|
-
scale[key] = `${spacingUnit * i}
|
|
8412
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
7365
8413
|
});
|
|
7366
8414
|
extendedScale.forEach((i) => {
|
|
7367
8415
|
const key = `${i}`;
|
|
7368
|
-
scale[key] = `${spacingUnit * i}
|
|
8416
|
+
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
7369
8417
|
});
|
|
7370
8418
|
return scale;
|
|
7371
8419
|
};
|
|
@@ -7417,8 +8465,11 @@ var defaultLayout = {
|
|
|
7417
8465
|
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)"
|
|
7418
8466
|
}
|
|
7419
8467
|
};
|
|
7420
|
-
var lightLayout = {
|
|
8468
|
+
var lightLayout = {
|
|
8469
|
+
hoverOpacity: ".8"
|
|
8470
|
+
};
|
|
7421
8471
|
var darkLayout = {
|
|
8472
|
+
hoverOpacity: ".9",
|
|
7422
8473
|
boxShadow: {
|
|
7423
8474
|
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)",
|
|
7424
8475
|
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)",
|
|
@@ -7491,6 +8542,9 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
7491
8542
|
});
|
|
7492
8543
|
} else {
|
|
7493
8544
|
const layoutVariable = `--${prefix}-${key}`;
|
|
8545
|
+
if (layoutVariable.includes("opacity") && typeof value === "number") {
|
|
8546
|
+
value = value.toString().replace(/^0\./, ".");
|
|
8547
|
+
}
|
|
7494
8548
|
resolved.utilities[cssSelector][layoutVariable] = value;
|
|
7495
8549
|
}
|
|
7496
8550
|
});
|
|
@@ -7537,7 +8591,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
7537
8591
|
...resolved.colors
|
|
7538
8592
|
},
|
|
7539
8593
|
scale: {
|
|
7540
|
-
"80": "0.8"
|
|
8594
|
+
"80": "0.8",
|
|
8595
|
+
"85": "0.85"
|
|
7541
8596
|
},
|
|
7542
8597
|
height: {
|
|
7543
8598
|
divider: `var(--${prefix}-divider-weight)`
|
|
@@ -7567,6 +8622,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
7567
8622
|
large: `var(--${prefix}-radius-large)`
|
|
7568
8623
|
},
|
|
7569
8624
|
opacity: {
|
|
8625
|
+
hover: `var(--${prefix}-hover-opacity)`,
|
|
7570
8626
|
disabled: `var(--${prefix}-disabled-opacity)`
|
|
7571
8627
|
},
|
|
7572
8628
|
borderWidth: {
|
|
@@ -7655,10 +8711,13 @@ var nextui = (config = {}) => {
|
|
|
7655
8711
|
absoluteFullClasses,
|
|
7656
8712
|
accordion,
|
|
7657
8713
|
accordionItem,
|
|
8714
|
+
autocomplete,
|
|
7658
8715
|
avatar,
|
|
7659
8716
|
avatarGroup,
|
|
7660
8717
|
badge,
|
|
7661
8718
|
baseStyles,
|
|
8719
|
+
breadcrumbItem,
|
|
8720
|
+
breadcrumbs,
|
|
7662
8721
|
button,
|
|
7663
8722
|
buttonGroup,
|
|
7664
8723
|
card,
|
|
@@ -7667,6 +8726,7 @@ var nextui = (config = {}) => {
|
|
|
7667
8726
|
chip,
|
|
7668
8727
|
circularProgress,
|
|
7669
8728
|
code,
|
|
8729
|
+
collapseAdjacentVariantBorders,
|
|
7670
8730
|
colorVariants,
|
|
7671
8731
|
colors,
|
|
7672
8732
|
commonColors,
|
|
@@ -7704,6 +8764,7 @@ var nextui = (config = {}) => {
|
|
|
7704
8764
|
select,
|
|
7705
8765
|
semanticColors,
|
|
7706
8766
|
skeleton,
|
|
8767
|
+
slider,
|
|
7707
8768
|
snippet,
|
|
7708
8769
|
spacer,
|
|
7709
8770
|
spacingScaleKeys,
|