@nextui-org/theme 2.1.17 → 2.2.0
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/README.md +1 -1
- package/dist/{chunk-XY766PDD.mjs → chunk-3FZU25GR.mjs} +2 -1
- package/dist/{chunk-CVU6I4IJ.mjs → chunk-4ZM6AI3H.mjs} +1 -1
- package/dist/{chunk-LQGOKGQV.mjs → chunk-524WVPFR.mjs} +1 -1
- package/dist/{chunk-RJKUWMDJ.mjs → chunk-6XJJCV76.mjs} +1 -1
- package/dist/{chunk-S7W5DQP2.mjs → chunk-726LN7M3.mjs} +1 -1
- package/dist/{chunk-PXVLYT7W.mjs → chunk-7ELFOVMX.mjs} +1 -1
- package/dist/{chunk-FXXH62BP.mjs → chunk-7ODIBITJ.mjs} +9 -9
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/{chunk-G2RPAV6S.mjs → chunk-AC6F4DT6.mjs} +23 -4
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-AGUZRGXC.mjs} +1 -1
- package/dist/{chunk-U4EMZ2CQ.mjs → chunk-AO2AAOEJ.mjs} +2 -2
- package/dist/{chunk-3BNHFA72.mjs → chunk-AT4OXKKK.mjs} +1 -1
- package/dist/chunk-BHDPFX6P.mjs +400 -0
- package/dist/chunk-BLAJANNW.mjs +43 -0
- package/dist/{chunk-5EJVI4V3.mjs → chunk-CTY7IP65.mjs} +29 -13
- package/dist/{chunk-DXTDUHS5.mjs → chunk-CUUGEIPA.mjs} +1 -1
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/{chunk-4JBYJQSP.mjs → chunk-ECP4S2VZ.mjs} +1 -1
- package/dist/{chunk-B55QBA5E.mjs → chunk-FRI2VDCA.mjs} +1 -1
- package/dist/{chunk-6AEINX52.mjs → chunk-GMMETTYU.mjs} +2 -16
- package/dist/{chunk-Y5VJSYKV.mjs → chunk-GMUSZ3YF.mjs} +1 -1
- package/dist/{chunk-FHNC7F3W.mjs → chunk-HGSHFC5N.mjs} +7 -1
- package/dist/{chunk-G3PB7L4N.mjs → chunk-HPFX3B3F.mjs} +1 -30
- package/dist/{chunk-VZI6SR6H.mjs → chunk-HUBDRSA4.mjs} +1 -2
- package/dist/{chunk-33DU6C7I.mjs → chunk-I6ESTKKY.mjs} +9 -9
- package/dist/{chunk-EGP3AT4R.mjs → chunk-IP3D7KVB.mjs} +3 -1
- package/dist/{chunk-Q3TEEYQJ.mjs → chunk-JQTFOIV7.mjs} +1 -1
- package/dist/{chunk-JBHEJMGV.mjs → chunk-KCOC3H6R.mjs} +1 -1
- package/dist/{chunk-ZWJMJMVY.mjs → chunk-KVPPQD2E.mjs} +27 -5
- package/dist/{chunk-WBNF66V7.mjs → chunk-LDBYFTHC.mjs} +1 -1
- package/dist/{chunk-GOHT67J3.mjs → chunk-MUWHEIW6.mjs} +13 -6
- package/dist/{chunk-2SNOAR5H.mjs → chunk-NAUU2OUH.mjs} +1 -1
- package/dist/{chunk-QYW2VWAB.mjs → chunk-NYSEAAK5.mjs} +4 -4
- package/dist/{chunk-LENRVMCD.mjs → chunk-OQIS4MXV.mjs} +1 -1
- package/dist/{chunk-NAY2XKLY.mjs → chunk-PSEUPXFL.mjs} +1 -1
- package/dist/{chunk-SPRRISBY.mjs → chunk-RNAP5C4C.mjs} +1 -1
- package/dist/{chunk-L37EV5TN.mjs → chunk-S573WUYY.mjs} +1 -1
- package/dist/{chunk-777XXWYS.mjs → chunk-SEKJ6A6T.mjs} +19 -2
- package/dist/{chunk-YSXRNNDV.mjs → chunk-UODOTC2G.mjs} +1 -1
- package/dist/{chunk-77O7KLUI.mjs → chunk-V5ZTBGGO.mjs} +1 -1
- package/dist/{chunk-MUPUMXL7.mjs → chunk-VDRJHB4F.mjs} +7 -4
- package/dist/{chunk-EC4F6RJF.mjs → chunk-W6DVXJB3.mjs} +1 -1
- package/dist/{chunk-XPLXQDB3.mjs → chunk-WAAJG22Y.mjs} +1 -1
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/{chunk-TDMF44G6.mjs → chunk-X7N3NQ6S.mjs} +1 -1
- package/dist/{chunk-5QVKTCUZ.mjs → chunk-YSA7EQBH.mjs} +12 -47
- package/dist/components/accordion.js +2 -67
- package/dist/components/accordion.mjs +2 -3
- package/dist/components/autocomplete.js +2 -67
- package/dist/components/autocomplete.mjs +2 -3
- package/dist/components/avatar.d.ts +14 -4
- package/dist/components/avatar.js +8 -70
- package/dist/components/avatar.mjs +2 -3
- package/dist/components/badge.js +2 -67
- package/dist/components/badge.mjs +2 -3
- package/dist/components/breadcrumbs.js +2 -67
- package/dist/components/breadcrumbs.mjs +2 -3
- package/dist/components/button.d.ts +35 -35
- package/dist/components/button.js +10 -75
- package/dist/components/button.mjs +2 -3
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +455 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.js +2 -67
- package/dist/components/card.mjs +2 -3
- package/dist/components/checkbox.js +5 -70
- package/dist/components/checkbox.mjs +2 -3
- package/dist/components/chip.js +24 -70
- package/dist/components/chip.mjs +2 -3
- package/dist/components/circular-progress.js +2 -67
- package/dist/components/circular-progress.mjs +2 -3
- package/dist/components/code.js +2 -67
- package/dist/components/code.mjs +2 -3
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +265 -0
- package/dist/components/date-picker.js +93 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.js +2 -67
- package/dist/components/divider.mjs +2 -3
- package/dist/components/drip.d.ts +2 -32
- package/dist/components/drip.js +2 -67
- package/dist/components/drip.mjs +2 -3
- package/dist/components/dropdown.d.ts +4 -64
- package/dist/components/dropdown.js +2 -67
- package/dist/components/dropdown.mjs +2 -3
- package/dist/components/image.js +2 -67
- package/dist/components/image.mjs +2 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +959 -115
- package/dist/components/index.mjs +72 -59
- package/dist/components/input.js +14 -72
- package/dist/components/input.mjs +2 -3
- package/dist/components/kbd.js +3 -67
- package/dist/components/kbd.mjs +2 -3
- package/dist/components/link.js +2 -67
- package/dist/components/link.mjs +2 -3
- package/dist/components/listbox.js +2 -67
- package/dist/components/listbox.mjs +2 -3
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/menu.js +2 -67
- package/dist/components/menu.mjs +2 -3
- package/dist/components/modal.js +4 -67
- package/dist/components/modal.mjs +2 -3
- package/dist/components/navbar.js +2 -67
- package/dist/components/navbar.mjs +2 -3
- package/dist/components/pagination.js +2 -67
- package/dist/components/pagination.mjs +2 -3
- package/dist/components/popover.d.ts +42 -0
- package/dist/components/popover.js +8 -67
- package/dist/components/popover.mjs +2 -3
- package/dist/components/progress.js +2 -67
- package/dist/components/progress.mjs +2 -3
- package/dist/components/radio.js +2 -67
- package/dist/components/radio.mjs +2 -3
- package/dist/components/scroll-shadow.js +2 -67
- package/dist/components/scroll-shadow.mjs +2 -3
- package/dist/components/select.js +30 -79
- package/dist/components/select.mjs +2 -3
- package/dist/components/skeleton.js +3 -68
- package/dist/components/skeleton.mjs +2 -3
- package/dist/components/slider.js +2 -67
- package/dist/components/slider.mjs +2 -3
- package/dist/components/snippet.js +2 -67
- package/dist/components/snippet.mjs +2 -3
- package/dist/components/spacer.js +2 -67
- package/dist/components/spacer.mjs +2 -3
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +2 -67
- package/dist/components/spinner.mjs +2 -3
- package/dist/components/table.js +28 -71
- package/dist/components/table.mjs +2 -3
- package/dist/components/tabs.d.ts +115 -0
- package/dist/components/tabs.js +20 -68
- package/dist/components/tabs.mjs +2 -3
- package/dist/components/toggle.js +10 -75
- package/dist/components/toggle.mjs +2 -3
- package/dist/components/user.d.ts +1 -1
- package/dist/components/user.js +2 -67
- package/dist/components/user.mjs +2 -3
- package/dist/default-layout.js +1 -2
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1150 -428
- package/dist/index.mjs +78 -69
- package/dist/plugin.js +6 -177
- package/dist/plugin.mjs +5 -6
- package/dist/types.d.ts +1 -11
- package/dist/types.js +0 -64
- package/dist/types.mjs +1 -8
- package/dist/utilities/index.d.ts +0 -30
- package/dist/utilities/index.js +0 -30
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +2 -31
- package/dist/utilities/transition.js +4 -31
- package/dist/utilities/transition.mjs +3 -1
- package/dist/utils/theme.d.ts +1 -3
- package/dist/utils/theme.js +0 -110
- package/dist/utils/theme.mjs +1 -6
- package/dist/utils/tv.js +2 -67
- package/dist/utils/tv.mjs +1 -2
- package/package.json +5 -5
- package/dist/chunk-DGMET46Q.mjs +0 -63
- package/dist/chunk-WA5F6AED.mjs +0 -57
- /package/dist/{chunk-T6HAGWX5.mjs → chunk-UVXYPGDZ.mjs} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -30,12 +30,16 @@ __export(components_exports, {
|
|
|
30
30
|
breadcrumbs: () => breadcrumbs,
|
|
31
31
|
button: () => button,
|
|
32
32
|
buttonGroup: () => buttonGroup,
|
|
33
|
+
calendar: () => calendar,
|
|
33
34
|
card: () => card,
|
|
34
35
|
checkbox: () => checkbox,
|
|
35
36
|
checkboxGroup: () => checkboxGroup,
|
|
36
37
|
chip: () => chip,
|
|
37
38
|
circularProgress: () => circularProgress,
|
|
38
39
|
code: () => code,
|
|
40
|
+
dateInput: () => dateInput,
|
|
41
|
+
datePicker: () => datePicker,
|
|
42
|
+
dateRangePicker: () => dateRangePicker,
|
|
39
43
|
divider: () => divider,
|
|
40
44
|
drip: () => drip,
|
|
41
45
|
dropdown: () => dropdown,
|
|
@@ -76,61 +80,6 @@ module.exports = __toCommonJS(components_exports);
|
|
|
76
80
|
|
|
77
81
|
// src/utils/tv.ts
|
|
78
82
|
var import_tailwind_variants = require("tailwind-variants");
|
|
79
|
-
|
|
80
|
-
// src/types.ts
|
|
81
|
-
var spacingScaleKeys = [
|
|
82
|
-
"0",
|
|
83
|
-
"xs",
|
|
84
|
-
"sm",
|
|
85
|
-
"md",
|
|
86
|
-
"lg",
|
|
87
|
-
"xl",
|
|
88
|
-
"2xl",
|
|
89
|
-
"3xl",
|
|
90
|
-
"4xl",
|
|
91
|
-
"5xl",
|
|
92
|
-
"6xl",
|
|
93
|
-
"7xl",
|
|
94
|
-
"8xl",
|
|
95
|
-
"9xl",
|
|
96
|
-
"1",
|
|
97
|
-
"2",
|
|
98
|
-
"3",
|
|
99
|
-
"3.5",
|
|
100
|
-
"4",
|
|
101
|
-
"5",
|
|
102
|
-
"6",
|
|
103
|
-
"7",
|
|
104
|
-
"8",
|
|
105
|
-
"9",
|
|
106
|
-
"10",
|
|
107
|
-
"11",
|
|
108
|
-
"12",
|
|
109
|
-
"13",
|
|
110
|
-
"14",
|
|
111
|
-
"15",
|
|
112
|
-
"16",
|
|
113
|
-
"17",
|
|
114
|
-
"18",
|
|
115
|
-
"20",
|
|
116
|
-
"24",
|
|
117
|
-
"28",
|
|
118
|
-
"32",
|
|
119
|
-
"36",
|
|
120
|
-
"40",
|
|
121
|
-
"44",
|
|
122
|
-
"48",
|
|
123
|
-
"52",
|
|
124
|
-
"56",
|
|
125
|
-
"60",
|
|
126
|
-
"64",
|
|
127
|
-
"72",
|
|
128
|
-
"80",
|
|
129
|
-
"96"
|
|
130
|
-
];
|
|
131
|
-
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
132
|
-
|
|
133
|
-
// src/utils/tv.ts
|
|
134
83
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
135
84
|
var tv = (options, config) => {
|
|
136
85
|
var _a, _b, _c;
|
|
@@ -142,7 +91,7 @@ var tv = (options, config) => {
|
|
|
142
91
|
theme: {
|
|
143
92
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
144
93
|
opacity: ["disabled"],
|
|
145
|
-
spacing: ["divider"
|
|
94
|
+
spacing: ["divider"],
|
|
146
95
|
borderWidth: COMMON_UNITS,
|
|
147
96
|
borderRadius: COMMON_UNITS
|
|
148
97
|
},
|
|
@@ -150,17 +99,7 @@ var tv = (options, config) => {
|
|
|
150
99
|
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
151
100
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
152
101
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
153
|
-
"bg-image": ["bg-stripe-gradient"]
|
|
154
|
-
"min-w": [
|
|
155
|
-
{
|
|
156
|
-
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"min-h": [
|
|
160
|
-
{
|
|
161
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
162
|
-
}
|
|
163
|
-
]
|
|
102
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
164
103
|
}
|
|
165
104
|
}
|
|
166
105
|
});
|
|
@@ -378,8 +317,8 @@ var avatar = tv({
|
|
|
378
317
|
isInGroup: {
|
|
379
318
|
true: {
|
|
380
319
|
base: [
|
|
381
|
-
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
382
|
-
"data-[focus-visible=true]:-translate-x-3"
|
|
320
|
+
"-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform",
|
|
321
|
+
"data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"
|
|
383
322
|
]
|
|
384
323
|
}
|
|
385
324
|
},
|
|
@@ -440,7 +379,10 @@ var avatar = tv({
|
|
|
440
379
|
]
|
|
441
380
|
});
|
|
442
381
|
var avatarGroup = tv({
|
|
443
|
-
|
|
382
|
+
slots: {
|
|
383
|
+
base: "flex items-center justify-center h-auto w-max-content",
|
|
384
|
+
count: "hover:-translate-x-0"
|
|
385
|
+
},
|
|
444
386
|
variants: {
|
|
445
387
|
isGrid: {
|
|
446
388
|
true: "inline-grid grid-cols-4 gap-3"
|
|
@@ -738,9 +680,9 @@ var button = tv({
|
|
|
738
680
|
ghost: "border-medium bg-transparent"
|
|
739
681
|
},
|
|
740
682
|
size: {
|
|
741
|
-
sm: "px-
|
|
742
|
-
md: "px-
|
|
743
|
-
lg: "px-
|
|
683
|
+
sm: "px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",
|
|
684
|
+
md: "px-4 min-w-20 h-10 text-small gap-2 rounded-medium",
|
|
685
|
+
lg: "px-6 min-w-24 h-12 text-medium gap-3 rounded-large"
|
|
744
686
|
},
|
|
745
687
|
color: {
|
|
746
688
|
default: "",
|
|
@@ -767,8 +709,8 @@ var button = tv({
|
|
|
767
709
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
768
710
|
},
|
|
769
711
|
isIconOnly: {
|
|
770
|
-
true: "px-
|
|
771
|
-
false: "[&>svg]:max-w-[theme(spacing.
|
|
712
|
+
true: "px-0 !gap-0",
|
|
713
|
+
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
772
714
|
},
|
|
773
715
|
disableAnimation: {
|
|
774
716
|
true: "!transition-none",
|
|
@@ -1083,17 +1025,17 @@ var button = tv({
|
|
|
1083
1025
|
{
|
|
1084
1026
|
isIconOnly: true,
|
|
1085
1027
|
size: "sm",
|
|
1086
|
-
class: "min-w-
|
|
1028
|
+
class: "min-w-8 w-8 h-8"
|
|
1087
1029
|
},
|
|
1088
1030
|
{
|
|
1089
1031
|
isIconOnly: true,
|
|
1090
1032
|
size: "md",
|
|
1091
|
-
class: "min-w-
|
|
1033
|
+
class: "min-w-10 w-10 h-10"
|
|
1092
1034
|
},
|
|
1093
1035
|
{
|
|
1094
1036
|
isIconOnly: true,
|
|
1095
1037
|
size: "lg",
|
|
1096
|
-
class: "min-w-
|
|
1038
|
+
class: "min-w-12 w-12 h-12"
|
|
1097
1039
|
},
|
|
1098
1040
|
{
|
|
1099
1041
|
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
@@ -1402,6 +1344,12 @@ var popover = tv({
|
|
|
1402
1344
|
true: {
|
|
1403
1345
|
base: "animate-none"
|
|
1404
1346
|
}
|
|
1347
|
+
},
|
|
1348
|
+
isDropdownDisabled: {
|
|
1349
|
+
true: {
|
|
1350
|
+
trigger: "opacity-disabled pointer-events-none"
|
|
1351
|
+
},
|
|
1352
|
+
false: {}
|
|
1405
1353
|
}
|
|
1406
1354
|
},
|
|
1407
1355
|
defaultVariants: {
|
|
@@ -1725,6 +1673,7 @@ var chip = tv({
|
|
|
1725
1673
|
base: [
|
|
1726
1674
|
"relative",
|
|
1727
1675
|
"max-w-fit",
|
|
1676
|
+
"min-w-min",
|
|
1728
1677
|
"inline-flex",
|
|
1729
1678
|
"items-center",
|
|
1730
1679
|
"justify-between",
|
|
@@ -2107,28 +2056,36 @@ var chip = tv({
|
|
|
2107
2056
|
},
|
|
2108
2057
|
{
|
|
2109
2058
|
isOneChar: true,
|
|
2059
|
+
hasStartContent: false,
|
|
2060
|
+
hasEndContent: false,
|
|
2110
2061
|
size: "sm",
|
|
2111
2062
|
class: {
|
|
2112
|
-
base: "w-5 h-5 min-w-
|
|
2063
|
+
base: "w-5 h-5 min-w-5 min-h-5"
|
|
2113
2064
|
}
|
|
2114
2065
|
},
|
|
2115
2066
|
{
|
|
2116
2067
|
isOneChar: true,
|
|
2068
|
+
hasStartContent: false,
|
|
2069
|
+
hasEndContent: false,
|
|
2117
2070
|
size: "md",
|
|
2118
2071
|
class: {
|
|
2119
|
-
base: "w-6 h-6 min-w-
|
|
2072
|
+
base: "w-6 h-6 min-w-6 min-h-6"
|
|
2120
2073
|
}
|
|
2121
2074
|
},
|
|
2122
2075
|
{
|
|
2123
2076
|
isOneChar: true,
|
|
2077
|
+
hasStartContent: false,
|
|
2078
|
+
hasEndContent: false,
|
|
2124
2079
|
size: "lg",
|
|
2125
2080
|
class: {
|
|
2126
|
-
base: "w-7 h-7 min-w-
|
|
2081
|
+
base: "w-7 h-7 min-w-7 min-h-7"
|
|
2127
2082
|
}
|
|
2128
2083
|
},
|
|
2129
2084
|
{
|
|
2130
2085
|
isOneChar: true,
|
|
2131
2086
|
isCloseable: false,
|
|
2087
|
+
hasStartContent: false,
|
|
2088
|
+
hasEndContent: false,
|
|
2132
2089
|
class: {
|
|
2133
2090
|
base: "px-0 justify-center",
|
|
2134
2091
|
content: "px-0 flex-none"
|
|
@@ -2137,10 +2094,20 @@ var chip = tv({
|
|
|
2137
2094
|
{
|
|
2138
2095
|
isOneChar: true,
|
|
2139
2096
|
isCloseable: true,
|
|
2097
|
+
hasStartContent: false,
|
|
2098
|
+
hasEndContent: false,
|
|
2140
2099
|
class: {
|
|
2141
2100
|
base: "w-auto"
|
|
2142
2101
|
}
|
|
2143
2102
|
},
|
|
2103
|
+
{
|
|
2104
|
+
isOneChar: true,
|
|
2105
|
+
variant: "dot",
|
|
2106
|
+
class: {
|
|
2107
|
+
base: "w-auto h-7 px-1 items-center",
|
|
2108
|
+
content: "px-2"
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2144
2111
|
{
|
|
2145
2112
|
hasStartContent: true,
|
|
2146
2113
|
size: "sm",
|
|
@@ -2599,7 +2566,7 @@ var checkbox = tv({
|
|
|
2599
2566
|
size: {
|
|
2600
2567
|
sm: {
|
|
2601
2568
|
wrapper: [
|
|
2602
|
-
"w-4 h-4 mr-2",
|
|
2569
|
+
"w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
2603
2570
|
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2604
2571
|
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
2605
2572
|
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
|
|
@@ -2609,7 +2576,7 @@ var checkbox = tv({
|
|
|
2609
2576
|
},
|
|
2610
2577
|
md: {
|
|
2611
2578
|
wrapper: [
|
|
2612
|
-
"w-5 h-5 mr-2",
|
|
2579
|
+
"w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
2613
2580
|
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2614
2581
|
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
2615
2582
|
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
|
|
@@ -2619,7 +2586,7 @@ var checkbox = tv({
|
|
|
2619
2586
|
},
|
|
2620
2587
|
lg: {
|
|
2621
2588
|
wrapper: [
|
|
2622
|
-
"w-6 h-6 mr-2",
|
|
2589
|
+
"w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
2623
2590
|
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2624
2591
|
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
2625
2592
|
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
|
|
@@ -3317,8 +3284,8 @@ var toggle = tv({
|
|
|
3317
3284
|
"rounded-full",
|
|
3318
3285
|
"origin-right"
|
|
3319
3286
|
],
|
|
3320
|
-
startContent: "z-0 absolute left-1.5 text-current",
|
|
3321
|
-
endContent: "z-0 absolute right-1.5 text-default-600",
|
|
3287
|
+
startContent: "z-0 absolute left-1.5 rtl:right-1.5 rtl:left-[unset] text-current",
|
|
3288
|
+
endContent: "z-0 absolute right-1.5 rtl:left-1.5 rtl:right-[unset] text-default-600",
|
|
3322
3289
|
thumbIcon: "text-black",
|
|
3323
3290
|
label: "relative text-foreground select-none"
|
|
3324
3291
|
},
|
|
@@ -3363,30 +3330,30 @@ var toggle = tv({
|
|
|
3363
3330
|
},
|
|
3364
3331
|
size: {
|
|
3365
3332
|
sm: {
|
|
3366
|
-
wrapper: "w-10 h-6 mr-2",
|
|
3333
|
+
wrapper: "w-10 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
3367
3334
|
thumb: [
|
|
3368
3335
|
"w-4 h-4 text-tiny",
|
|
3369
|
-
"group-data-[selected=true]:ml-4"
|
|
3336
|
+
"group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
|
|
3370
3337
|
],
|
|
3371
3338
|
endContent: "text-tiny",
|
|
3372
3339
|
startContent: "text-tiny",
|
|
3373
3340
|
label: "text-small"
|
|
3374
3341
|
},
|
|
3375
3342
|
md: {
|
|
3376
|
-
wrapper: "w-12 h-7 mr-2",
|
|
3343
|
+
wrapper: "w-12 h-7 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
3377
3344
|
thumb: [
|
|
3378
3345
|
"w-5 h-5 text-small",
|
|
3379
|
-
"group-data-[selected=true]:ml-5"
|
|
3346
|
+
"group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
|
|
3380
3347
|
],
|
|
3381
3348
|
endContent: "text-small",
|
|
3382
3349
|
startContent: "text-small",
|
|
3383
3350
|
label: "text-medium"
|
|
3384
3351
|
},
|
|
3385
3352
|
lg: {
|
|
3386
|
-
wrapper: "w-14 h-8 mr-2",
|
|
3353
|
+
wrapper: "w-14 h-8 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
3387
3354
|
thumb: [
|
|
3388
3355
|
"w-6 h-6 text-medium",
|
|
3389
|
-
"group-data-[selected=true]:ml-6"
|
|
3356
|
+
"group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
|
|
3390
3357
|
],
|
|
3391
3358
|
endContent: "text-medium",
|
|
3392
3359
|
startContent: "text-medium",
|
|
@@ -3749,6 +3716,7 @@ var input = tv({
|
|
|
3749
3716
|
"z-10",
|
|
3750
3717
|
"pointer-events-none",
|
|
3751
3718
|
"origin-top-left",
|
|
3719
|
+
"rtl:origin-top-right",
|
|
3752
3720
|
"subpixel-antialiased",
|
|
3753
3721
|
"block",
|
|
3754
3722
|
"text-small",
|
|
@@ -3769,6 +3737,8 @@ var input = tv({
|
|
|
3769
3737
|
"hidden",
|
|
3770
3738
|
"absolute",
|
|
3771
3739
|
"right-3",
|
|
3740
|
+
"rtl:right-auto",
|
|
3741
|
+
"rtl:left-3",
|
|
3772
3742
|
"appearance-none",
|
|
3773
3743
|
"outline-none",
|
|
3774
3744
|
"select-none",
|
|
@@ -3847,17 +3817,17 @@ var input = tv({
|
|
|
3847
3817
|
size: {
|
|
3848
3818
|
sm: {
|
|
3849
3819
|
label: "text-tiny",
|
|
3850
|
-
inputWrapper: "h-
|
|
3820
|
+
inputWrapper: "h-8 min-h-8 px-2 rounded-small",
|
|
3851
3821
|
input: "text-small",
|
|
3852
3822
|
clearButton: "text-medium"
|
|
3853
3823
|
},
|
|
3854
3824
|
md: {
|
|
3855
|
-
inputWrapper: "h-
|
|
3825
|
+
inputWrapper: "h-10 min-h-10 rounded-medium",
|
|
3856
3826
|
input: "text-small",
|
|
3857
3827
|
clearButton: "text-large"
|
|
3858
3828
|
},
|
|
3859
3829
|
lg: {
|
|
3860
|
-
inputWrapper: "h-
|
|
3830
|
+
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
3861
3831
|
input: "text-medium",
|
|
3862
3832
|
clearButton: "text-large"
|
|
3863
3833
|
}
|
|
@@ -3887,7 +3857,7 @@ var input = tv({
|
|
|
3887
3857
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
3888
3858
|
inputWrapper: "flex-1",
|
|
3889
3859
|
mainWrapper: "flex flex-col",
|
|
3890
|
-
label: "relative text-foreground pr-2"
|
|
3860
|
+
label: "relative text-foreground pr-2 rtl:pr-0 rtl:pl-2"
|
|
3891
3861
|
},
|
|
3892
3862
|
inside: {
|
|
3893
3863
|
label: "text-tiny cursor-text",
|
|
@@ -3902,7 +3872,7 @@ var input = tv({
|
|
|
3902
3872
|
},
|
|
3903
3873
|
isClearable: {
|
|
3904
3874
|
true: {
|
|
3905
|
-
input: "peer pr-6",
|
|
3875
|
+
input: "peer pr-6 rtl:pr-0 rtl:pl-6",
|
|
3906
3876
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
3907
3877
|
}
|
|
3908
3878
|
},
|
|
@@ -4468,6 +4438,8 @@ var input = tv({
|
|
|
4468
4438
|
class: {
|
|
4469
4439
|
label: [
|
|
4470
4440
|
"left-3",
|
|
4441
|
+
"rtl:left-auto",
|
|
4442
|
+
"rtl:right-3",
|
|
4471
4443
|
"text-small",
|
|
4472
4444
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
4473
4445
|
],
|
|
@@ -4481,6 +4453,8 @@ var input = tv({
|
|
|
4481
4453
|
class: {
|
|
4482
4454
|
label: [
|
|
4483
4455
|
"left-3",
|
|
4456
|
+
"rtl:left-auto",
|
|
4457
|
+
"rtl:right-3",
|
|
4484
4458
|
"text-medium",
|
|
4485
4459
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
4486
4460
|
],
|
|
@@ -5080,6 +5054,8 @@ var modal = tv({
|
|
|
5080
5054
|
"select-none",
|
|
5081
5055
|
"top-1",
|
|
5082
5056
|
"right-1",
|
|
5057
|
+
"rtl:left-1",
|
|
5058
|
+
"rtl:right-[unset]",
|
|
5083
5059
|
"p-2",
|
|
5084
5060
|
"text-foreground-500",
|
|
5085
5061
|
"rounded-full",
|
|
@@ -5422,6 +5398,7 @@ var table = tv({
|
|
|
5422
5398
|
"px-3",
|
|
5423
5399
|
"h-10",
|
|
5424
5400
|
"text-left",
|
|
5401
|
+
"rtl:text-right",
|
|
5425
5402
|
"align-middle",
|
|
5426
5403
|
"bg-default-100",
|
|
5427
5404
|
"whitespace-nowrap",
|
|
@@ -5429,7 +5406,11 @@ var table = tv({
|
|
|
5429
5406
|
"text-tiny",
|
|
5430
5407
|
"font-semibold",
|
|
5431
5408
|
"first:rounded-l-lg",
|
|
5409
|
+
"rtl:first:rounded-r-lg",
|
|
5410
|
+
"rtl:first:rounded-l-[unset]",
|
|
5432
5411
|
"last:rounded-r-lg",
|
|
5412
|
+
"rtl:last:rounded-l-lg",
|
|
5413
|
+
"rtl:last:rounded-r-[unset]",
|
|
5433
5414
|
"outline-none",
|
|
5434
5415
|
"data-[sortable=true]:transition-colors",
|
|
5435
5416
|
"data-[sortable=true]:cursor-pointer",
|
|
@@ -5454,7 +5435,8 @@ var table = tv({
|
|
|
5454
5435
|
"before:inset-0",
|
|
5455
5436
|
"before:opacity-0",
|
|
5456
5437
|
"data-[selected=true]:before:opacity-100",
|
|
5457
|
-
"group-data-[disabled=true]:text-foreground-300"
|
|
5438
|
+
"group-data-[disabled=true]:text-foreground-300",
|
|
5439
|
+
"group-data-[disabled=true]:cursor-not-allowed"
|
|
5458
5440
|
],
|
|
5459
5441
|
tfoot: "",
|
|
5460
5442
|
sortIcon: [
|
|
@@ -5537,7 +5519,8 @@ var table = tv({
|
|
|
5537
5519
|
true: {
|
|
5538
5520
|
td: [
|
|
5539
5521
|
"group-data-[odd=true]:before:bg-default-100",
|
|
5540
|
-
"group-data-[odd=true]:before:opacity-100"
|
|
5522
|
+
"group-data-[odd=true]:before:opacity-100",
|
|
5523
|
+
"group-data-[odd=true]:before:-z-10"
|
|
5541
5524
|
]
|
|
5542
5525
|
}
|
|
5543
5526
|
},
|
|
@@ -5565,14 +5548,29 @@ var table = tv({
|
|
|
5565
5548
|
true: {
|
|
5566
5549
|
td: [
|
|
5567
5550
|
"group-data-[first=true]:first:before:rounded-tl-lg",
|
|
5551
|
+
"group-data-[first=true]:rtl:first:before:rounded-tr-lg",
|
|
5552
|
+
"group-data-[first=true]:rtl:first:before:rounded-tl-[unset]",
|
|
5568
5553
|
"group-data-[first=true]:last:before:rounded-tr-lg",
|
|
5554
|
+
"group-data-[first=true]:rtl:last:before:rounded-tl-lg",
|
|
5555
|
+
"group-data-[first=true]:rtl:last:before:rounded-tr-[unset]",
|
|
5569
5556
|
"group-data-[middle=true]:before:rounded-none",
|
|
5570
5557
|
"group-data-[last=true]:first:before:rounded-bl-lg",
|
|
5571
|
-
"group-data-[last=true]:
|
|
5558
|
+
"group-data-[last=true]:rtl:first:before:rounded-br-lg",
|
|
5559
|
+
"group-data-[last=true]:rtl:first:before:rounded-bl-[unset]",
|
|
5560
|
+
"group-data-[last=true]:last:before:rounded-br-lg",
|
|
5561
|
+
"group-data-[last=true]:rtl:last:before:rounded-bl-lg",
|
|
5562
|
+
"group-data-[last=true]:rtl:last:before:rounded-br-[unset]"
|
|
5572
5563
|
]
|
|
5573
5564
|
},
|
|
5574
5565
|
false: {
|
|
5575
|
-
td: [
|
|
5566
|
+
td: [
|
|
5567
|
+
"first:before:rounded-l-lg",
|
|
5568
|
+
"rtl:first:before:rounded-r-lg",
|
|
5569
|
+
"rtl:first:before:rounded-l-[unset]",
|
|
5570
|
+
"last:before:rounded-r-lg",
|
|
5571
|
+
"rtl:last:before:rounded-l-lg",
|
|
5572
|
+
"rtl:last:before:rounded-r-[unset]"
|
|
5573
|
+
]
|
|
5576
5574
|
}
|
|
5577
5575
|
},
|
|
5578
5576
|
fullWidth: {
|
|
@@ -5632,6 +5630,7 @@ var kbd = tv({
|
|
|
5632
5630
|
"py-0.5",
|
|
5633
5631
|
"inline-flex",
|
|
5634
5632
|
"space-x-0.5",
|
|
5633
|
+
"rtl:space-x-reverse",
|
|
5635
5634
|
"items-center",
|
|
5636
5635
|
"font-sans",
|
|
5637
5636
|
"font-normal",
|
|
@@ -5698,7 +5697,8 @@ var tabs = tv({
|
|
|
5698
5697
|
"px-1",
|
|
5699
5698
|
"outline-none",
|
|
5700
5699
|
...dataFocusVisibleClasses
|
|
5701
|
-
]
|
|
5700
|
+
],
|
|
5701
|
+
wrapper: []
|
|
5702
5702
|
},
|
|
5703
5703
|
variants: {
|
|
5704
5704
|
variant: {
|
|
@@ -5786,6 +5786,22 @@ var tabs = tv({
|
|
|
5786
5786
|
tab: "transition-none",
|
|
5787
5787
|
tabContent: "transition-none"
|
|
5788
5788
|
}
|
|
5789
|
+
},
|
|
5790
|
+
placement: {
|
|
5791
|
+
top: {},
|
|
5792
|
+
start: {
|
|
5793
|
+
tabList: "flex-col",
|
|
5794
|
+
panel: "py-0 px-3",
|
|
5795
|
+
wrapper: "flex"
|
|
5796
|
+
},
|
|
5797
|
+
end: {
|
|
5798
|
+
tabList: "flex-col",
|
|
5799
|
+
panel: "py-0 px-3",
|
|
5800
|
+
wrapper: "flex flex-row-reverse"
|
|
5801
|
+
},
|
|
5802
|
+
bottom: {
|
|
5803
|
+
wrapper: "flex flex-col-reverse"
|
|
5804
|
+
}
|
|
5789
5805
|
}
|
|
5790
5806
|
},
|
|
5791
5807
|
defaultVariants: {
|
|
@@ -6050,7 +6066,7 @@ var skeleton = tv({
|
|
|
6050
6066
|
variants: {
|
|
6051
6067
|
disableAnimation: {
|
|
6052
6068
|
true: {
|
|
6053
|
-
base: "before:transition-none",
|
|
6069
|
+
base: "before:animate-none before:transition-none after:transition-none",
|
|
6054
6070
|
content: "transition-none"
|
|
6055
6071
|
},
|
|
6056
6072
|
false: {
|
|
@@ -6073,6 +6089,7 @@ var select = tv({
|
|
|
6073
6089
|
"absolute",
|
|
6074
6090
|
"z-10",
|
|
6075
6091
|
"origin-top-left",
|
|
6092
|
+
"rtl:origin-top-right",
|
|
6076
6093
|
"subpixel-antialiased",
|
|
6077
6094
|
"text-small",
|
|
6078
6095
|
"text-foreground-500",
|
|
@@ -6080,10 +6097,10 @@ var select = tv({
|
|
|
6080
6097
|
],
|
|
6081
6098
|
mainWrapper: "w-full flex flex-col",
|
|
6082
6099
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
6083
|
-
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.
|
|
6084
|
-
selectorIcon: "absolute right-3 w-
|
|
6085
|
-
spinner: "absolute right-3",
|
|
6086
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-left"],
|
|
6100
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
6101
|
+
selectorIcon: "absolute right-3 rtl:left-3 rtl:right-[unset] w-4 h-4",
|
|
6102
|
+
spinner: "absolute right-3 rtl:left-3 rtl:right-[unset]",
|
|
6103
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
|
|
6087
6104
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
6088
6105
|
listbox: "",
|
|
6089
6106
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -6157,15 +6174,15 @@ var select = tv({
|
|
|
6157
6174
|
size: {
|
|
6158
6175
|
sm: {
|
|
6159
6176
|
label: "text-tiny",
|
|
6160
|
-
trigger: "h-
|
|
6177
|
+
trigger: "h-8 min-h-8 px-2 rounded-small",
|
|
6161
6178
|
value: "text-small"
|
|
6162
6179
|
},
|
|
6163
6180
|
md: {
|
|
6164
|
-
trigger: "h-
|
|
6181
|
+
trigger: "h-10 min-h-10 rounded-medium",
|
|
6165
6182
|
value: "text-small"
|
|
6166
6183
|
},
|
|
6167
6184
|
lg: {
|
|
6168
|
-
trigger: "h-
|
|
6185
|
+
trigger: "h-12 min-h-12 rounded-large",
|
|
6169
6186
|
value: "text-medium"
|
|
6170
6187
|
}
|
|
6171
6188
|
},
|
|
@@ -6192,7 +6209,7 @@ var select = tv({
|
|
|
6192
6209
|
},
|
|
6193
6210
|
"outside-left": {
|
|
6194
6211
|
base: "flex-row items-center flex-nowrap items-start",
|
|
6195
|
-
label: "relative pr-2 text-foreground"
|
|
6212
|
+
label: "relative pr-2 rtl:pl-2 rtl:pr-[unset] text-foreground"
|
|
6196
6213
|
},
|
|
6197
6214
|
inside: {
|
|
6198
6215
|
label: "text-tiny cursor-pointer",
|
|
@@ -6243,6 +6260,7 @@ var select = tv({
|
|
|
6243
6260
|
label: [
|
|
6244
6261
|
"will-change-auto",
|
|
6245
6262
|
"origin-top-left",
|
|
6263
|
+
"rtl:origin-top-right",
|
|
6246
6264
|
"!duration-200",
|
|
6247
6265
|
"!ease-out",
|
|
6248
6266
|
"transition-[transform,color,left,opacity]",
|
|
@@ -6563,14 +6581,14 @@ var select = tv({
|
|
|
6563
6581
|
labelPlacement: "inside",
|
|
6564
6582
|
size: "sm",
|
|
6565
6583
|
class: {
|
|
6566
|
-
trigger: "h-12 min-h-
|
|
6584
|
+
trigger: "h-12 min-h-12 py-1.5 px-3"
|
|
6567
6585
|
}
|
|
6568
6586
|
},
|
|
6569
6587
|
{
|
|
6570
6588
|
labelPlacement: "inside",
|
|
6571
6589
|
size: "md",
|
|
6572
6590
|
class: {
|
|
6573
|
-
trigger: "h-14 min-h-
|
|
6591
|
+
trigger: "h-14 min-h-14 py-2"
|
|
6574
6592
|
}
|
|
6575
6593
|
},
|
|
6576
6594
|
{
|
|
@@ -6578,7 +6596,7 @@ var select = tv({
|
|
|
6578
6596
|
size: "lg",
|
|
6579
6597
|
class: {
|
|
6580
6598
|
label: "text-small",
|
|
6581
|
-
trigger: "h-16 min-h-
|
|
6599
|
+
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
6582
6600
|
}
|
|
6583
6601
|
},
|
|
6584
6602
|
{
|
|
@@ -6592,7 +6610,15 @@ var select = tv({
|
|
|
6592
6610
|
isMultiline: false,
|
|
6593
6611
|
class: {
|
|
6594
6612
|
base: "group relative justify-end",
|
|
6595
|
-
label: [
|
|
6613
|
+
label: [
|
|
6614
|
+
"pb-0",
|
|
6615
|
+
"z-20",
|
|
6616
|
+
"top-1/2",
|
|
6617
|
+
"-translate-y-1/2",
|
|
6618
|
+
"group-data-[filled=true]:left-0",
|
|
6619
|
+
"rtl:group-data-[filled=true]:right-0",
|
|
6620
|
+
"rtl:group-data-[filled=true]:left-[unset]"
|
|
6621
|
+
]
|
|
6596
6622
|
}
|
|
6597
6623
|
},
|
|
6598
6624
|
{
|
|
@@ -6713,6 +6739,8 @@ var select = tv({
|
|
|
6713
6739
|
class: {
|
|
6714
6740
|
label: [
|
|
6715
6741
|
"left-2",
|
|
6742
|
+
"rtl:right-2",
|
|
6743
|
+
"rtl:left-[unset]",
|
|
6716
6744
|
"text-tiny",
|
|
6717
6745
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
6718
6746
|
],
|
|
@@ -6726,6 +6754,8 @@ var select = tv({
|
|
|
6726
6754
|
class: {
|
|
6727
6755
|
label: [
|
|
6728
6756
|
"left-3",
|
|
6757
|
+
"rtl:right-3",
|
|
6758
|
+
"rtl:left-[unset]",
|
|
6729
6759
|
"text-small",
|
|
6730
6760
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
6731
6761
|
],
|
|
@@ -6739,6 +6769,8 @@ var select = tv({
|
|
|
6739
6769
|
class: {
|
|
6740
6770
|
label: [
|
|
6741
6771
|
"left-3",
|
|
6772
|
+
"rtl:right-3",
|
|
6773
|
+
"rtl:left-[unset]",
|
|
6742
6774
|
"text-medium",
|
|
6743
6775
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
6744
6776
|
],
|
|
@@ -7915,6 +7947,814 @@ var autocomplete = tv({
|
|
|
7915
7947
|
disableSelectorIconRotation: false
|
|
7916
7948
|
}
|
|
7917
7949
|
});
|
|
7950
|
+
|
|
7951
|
+
// src/components/calendar.ts
|
|
7952
|
+
var calendar = tv({
|
|
7953
|
+
slots: {
|
|
7954
|
+
base: [
|
|
7955
|
+
"relative w-fit max-w-full shadow-small inline-block overflow-y-hidden",
|
|
7956
|
+
"rounded-large overflow-x-auto bg-default-50 dark:bg-background"
|
|
7957
|
+
],
|
|
7958
|
+
prevButton: [],
|
|
7959
|
+
nextButton: [],
|
|
7960
|
+
headerWrapper: [
|
|
7961
|
+
"px-4 py-2 flex items-center justify-between gap-2 bg-content1",
|
|
7962
|
+
"[&_.chevron-icon]:flex-none",
|
|
7963
|
+
"after:content-['']",
|
|
7964
|
+
"after:bg-content1 origin-top",
|
|
7965
|
+
"after:w-full after:h-0",
|
|
7966
|
+
"after:absolute after:top-0 after:left-0"
|
|
7967
|
+
],
|
|
7968
|
+
header: "flex w-full items-center justify-center gap-2 z-10",
|
|
7969
|
+
title: "text-default-500 text-small font-medium",
|
|
7970
|
+
content: "w-fit",
|
|
7971
|
+
gridWrapper: "flex max-w-full overflow-hidden pb-2 h-auto relative",
|
|
7972
|
+
grid: "w-full border-collapse z-0",
|
|
7973
|
+
gridHeader: "bg-content1 shadow-[0px_20px_20px_0px_rgb(0_0_0/0.05)]",
|
|
7974
|
+
gridHeaderRow: "px-4 pb-2 flex justify-center text-default-400",
|
|
7975
|
+
gridHeaderCell: "flex w-8 justify-center items-center font-medium text-small",
|
|
7976
|
+
gridBody: "",
|
|
7977
|
+
gridBodyRow: "flex justify-center items-center first:mt-2",
|
|
7978
|
+
cell: "py-0.5 px-0",
|
|
7979
|
+
cellButton: [
|
|
7980
|
+
"w-8 h-8 flex items-center text-foreground justify-center rounded-full",
|
|
7981
|
+
"box-border appearance-none select-none whitespace-nowrap font-normal",
|
|
7982
|
+
"subpixel-antialiased overflow-hidden tap-highlight-transparent",
|
|
7983
|
+
"data-[disabled=true]:text-default-300",
|
|
7984
|
+
"data-[disabled=true]:cursor-default",
|
|
7985
|
+
"data-[readonly=true]:cursor-default",
|
|
7986
|
+
"data-[disabled=true]:transition-none",
|
|
7987
|
+
"data-[unavailable=true]:text-default-300",
|
|
7988
|
+
"data-[unavailable=true]:cursor-default",
|
|
7989
|
+
"data-[unavailable=true]:line-through",
|
|
7990
|
+
...dataFocusVisibleClasses
|
|
7991
|
+
],
|
|
7992
|
+
pickerWrapper: "absolute inset-x-0 top-0 flex w-full h-[var(--picker-height)] justify-center opacity-0 pointer-events-none",
|
|
7993
|
+
pickerMonthList: "items-start",
|
|
7994
|
+
pickerYearList: "items-center",
|
|
7995
|
+
pickerHighlight: "h-8 bg-default-200 absolute w-[calc(100%_-_16px)] rounded-medium z-0 top-1/2 -translate-y-1/2 pointer-events-none",
|
|
7996
|
+
pickerItem: [
|
|
7997
|
+
"w-full flex text-foreground items-center h-8 leading-[32px] min-h-[32px] snap-center text-large z-20",
|
|
7998
|
+
"data-[pressed=true]:opacity-50",
|
|
7999
|
+
...dataFocusVisibleClasses
|
|
8000
|
+
],
|
|
8001
|
+
helperWrapper: "px-4 pb-2 max-w-[270px] flex justify-start flex-wrap items-center",
|
|
8002
|
+
errorMessage: "text-small text-danger break-words max-w-full"
|
|
8003
|
+
},
|
|
8004
|
+
variants: {
|
|
8005
|
+
color: {
|
|
8006
|
+
foreground: {},
|
|
8007
|
+
primary: {},
|
|
8008
|
+
secondary: {},
|
|
8009
|
+
success: {},
|
|
8010
|
+
warning: {},
|
|
8011
|
+
danger: {}
|
|
8012
|
+
},
|
|
8013
|
+
isRange: {
|
|
8014
|
+
true: {
|
|
8015
|
+
cellButton: [
|
|
8016
|
+
"relative",
|
|
8017
|
+
"overflow-visible",
|
|
8018
|
+
"before:content-[''] before:absolute before:inset-0 before:z-[-1] before:rounded-none",
|
|
8019
|
+
"data-[outside-month=true]:before:hidden",
|
|
8020
|
+
"data-[selected=true]:data-[range-selection=true]:data-[outside-month=true]:bg-transparent",
|
|
8021
|
+
"data-[selected=true]:data-[range-selection=true]:data-[outside-month=true]:text-default-300",
|
|
8022
|
+
"data-[range-start=true]:before:rounded-l-full",
|
|
8023
|
+
"data-[selection-start=true]:before:rounded-l-full",
|
|
8024
|
+
"data-[range-end=true]:before:rounded-r-full",
|
|
8025
|
+
"data-[selection-end=true]:before:rounded-r-full",
|
|
8026
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:rounded-full",
|
|
8027
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:rounded-full"
|
|
8028
|
+
]
|
|
8029
|
+
},
|
|
8030
|
+
false: {}
|
|
8031
|
+
},
|
|
8032
|
+
hideDisabledDates: {
|
|
8033
|
+
true: {
|
|
8034
|
+
cellButton: "data-[disabled=true]:opacity-0"
|
|
8035
|
+
},
|
|
8036
|
+
false: {}
|
|
8037
|
+
},
|
|
8038
|
+
isHeaderWrapperExpanded: {
|
|
8039
|
+
true: {
|
|
8040
|
+
headerWrapper: ["[&_.chevron-icon]:rotate-180", "after:h-full", "after:z-0"],
|
|
8041
|
+
pickerWrapper: "opacity-100 pointer-events-auto z-10",
|
|
8042
|
+
gridWrapper: "h-[var(--picker-height)] overflow-y-hidden",
|
|
8043
|
+
grid: "opacity-0 pointer-events-none",
|
|
8044
|
+
nextButton: "opacity-0 pointer-events-none",
|
|
8045
|
+
prevButton: "opacity-0 pointer-events-none"
|
|
8046
|
+
},
|
|
8047
|
+
false: {}
|
|
8048
|
+
},
|
|
8049
|
+
showMonthAndYearPickers: {
|
|
8050
|
+
true: {
|
|
8051
|
+
base: "[--picker-height:224px]",
|
|
8052
|
+
header: "h-8 bg-default-100 rounded-full"
|
|
8053
|
+
},
|
|
8054
|
+
false: {}
|
|
8055
|
+
},
|
|
8056
|
+
showShadow: {
|
|
8057
|
+
true: {
|
|
8058
|
+
cellButton: "data-[selected=true]:shadow-md"
|
|
8059
|
+
},
|
|
8060
|
+
false: {
|
|
8061
|
+
cellButton: "shadow-none data-[selected=true]:shadow-none"
|
|
8062
|
+
}
|
|
8063
|
+
},
|
|
8064
|
+
disableAnimation: {
|
|
8065
|
+
true: {
|
|
8066
|
+
cellButton: "transition-none"
|
|
8067
|
+
},
|
|
8068
|
+
false: {
|
|
8069
|
+
headerWrapper: ["[&_.chevron-icon]:transition-transform", "after:transition-height"],
|
|
8070
|
+
grid: "transition-opacity",
|
|
8071
|
+
cellButton: ["origin-center transition-[transform,background-color,color] !duration-150"],
|
|
8072
|
+
pickerWrapper: "transition-opacity !duration-250",
|
|
8073
|
+
pickerItem: "transition-opacity"
|
|
8074
|
+
}
|
|
8075
|
+
}
|
|
8076
|
+
},
|
|
8077
|
+
defaultVariants: {
|
|
8078
|
+
color: "primary",
|
|
8079
|
+
showShadow: false,
|
|
8080
|
+
hideDisabledDates: false,
|
|
8081
|
+
showMonthAndYearPickers: false,
|
|
8082
|
+
disableAnimation: false
|
|
8083
|
+
},
|
|
8084
|
+
compoundVariants: [
|
|
8085
|
+
{
|
|
8086
|
+
isRange: false,
|
|
8087
|
+
color: "foreground",
|
|
8088
|
+
class: {
|
|
8089
|
+
cellButton: [
|
|
8090
|
+
"data-[hover=true]:bg-default-200",
|
|
8091
|
+
"data-[selected=true]:bg-foreground",
|
|
8092
|
+
"data-[selected=true]:text-background",
|
|
8093
|
+
"data-[hover=true]:bg-foreground-200",
|
|
8094
|
+
"data-[hover=true]:text-foreground-600",
|
|
8095
|
+
"data-[selected=true]:data-[hover=true]:bg-foreground",
|
|
8096
|
+
"data-[selected=true]:data-[hover=true]:text-background"
|
|
8097
|
+
]
|
|
8098
|
+
}
|
|
8099
|
+
},
|
|
8100
|
+
{
|
|
8101
|
+
isRange: false,
|
|
8102
|
+
color: "primary",
|
|
8103
|
+
class: {
|
|
8104
|
+
cellButton: [
|
|
8105
|
+
"data-[selected=true]:bg-primary",
|
|
8106
|
+
"data-[selected=true]:text-primary-foreground",
|
|
8107
|
+
"data-[hover=true]:bg-primary-50",
|
|
8108
|
+
"data-[hover=true]:text-primary-400",
|
|
8109
|
+
"data-[selected=true]:data-[hover=true]:bg-primary",
|
|
8110
|
+
"data-[selected=true]:data-[hover=true]:text-primary-foreground"
|
|
8111
|
+
]
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
{
|
|
8115
|
+
isRange: false,
|
|
8116
|
+
color: "secondary",
|
|
8117
|
+
class: {
|
|
8118
|
+
cellButton: [
|
|
8119
|
+
"data-[selected=true]:bg-secondary",
|
|
8120
|
+
"data-[selected=true]:text-secondary-foreground",
|
|
8121
|
+
"data-[hover=true]:bg-secondary-50",
|
|
8122
|
+
"data-[hover=true]:text-secondary-400",
|
|
8123
|
+
"data-[selected=true]:data-[hover=true]:bg-secondary",
|
|
8124
|
+
"data-[selected=true]:data-[hover=true]:text-secondary-foreground"
|
|
8125
|
+
]
|
|
8126
|
+
}
|
|
8127
|
+
},
|
|
8128
|
+
{
|
|
8129
|
+
isRange: false,
|
|
8130
|
+
color: "success",
|
|
8131
|
+
class: {
|
|
8132
|
+
cellButton: [
|
|
8133
|
+
"data-[selected=true]:bg-success",
|
|
8134
|
+
"data-[selected=true]:text-success-foreground",
|
|
8135
|
+
"data-[hover=true]:bg-success-100",
|
|
8136
|
+
"data-[hover=true]:text-success-600",
|
|
8137
|
+
"dark:data-[hover=true]:bg-success-50",
|
|
8138
|
+
"dark:data-[hover=true]:text-success-500",
|
|
8139
|
+
"data-[selected=true]:data-[hover=true]:bg-success",
|
|
8140
|
+
"dark:data-[selected=true]:data-[hover=true]:bg-success",
|
|
8141
|
+
"dark:data-[selected=true]:data-[hover=true]:text-success-foreground",
|
|
8142
|
+
"data-[selected=true]:data-[hover=true]:text-success-foreground"
|
|
8143
|
+
]
|
|
8144
|
+
}
|
|
8145
|
+
},
|
|
8146
|
+
{
|
|
8147
|
+
isRange: false,
|
|
8148
|
+
color: "warning",
|
|
8149
|
+
class: {
|
|
8150
|
+
cellButton: [
|
|
8151
|
+
"data-[selected=true]:bg-warning",
|
|
8152
|
+
"data-[selected=true]:text-warning-foreground",
|
|
8153
|
+
"data-[hover=true]:bg-warning-100",
|
|
8154
|
+
"data-[hover=true]:text-warning-600",
|
|
8155
|
+
"dark:data-[hover=true]:bg-warning-50",
|
|
8156
|
+
"dark:data-[hover=true]:text-warning-500",
|
|
8157
|
+
"data-[selected=true]:data-[hover=true]:bg-warning",
|
|
8158
|
+
"dark:data-[selected=true]:data-[hover=true]:bg-warning",
|
|
8159
|
+
"dark:data-[selected=true]:data-[hover=true]:text-warning-foreground",
|
|
8160
|
+
"data-[selected=true]:data-[hover=true]:text-warning-foreground"
|
|
8161
|
+
]
|
|
8162
|
+
}
|
|
8163
|
+
},
|
|
8164
|
+
{
|
|
8165
|
+
isRange: false,
|
|
8166
|
+
color: "danger",
|
|
8167
|
+
class: {
|
|
8168
|
+
cellButton: [
|
|
8169
|
+
"data-[selected=true]:bg-danger",
|
|
8170
|
+
"data-[selected=true]:text-danger-foreground",
|
|
8171
|
+
"data-[hover=true]:bg-danger-100",
|
|
8172
|
+
"data-[hover=true]:text-danger-500",
|
|
8173
|
+
"dark:data-[hover=true]:bg-danger-50",
|
|
8174
|
+
"dark:data-[hover=true]:text-danger-500",
|
|
8175
|
+
"data-[selected=true]:data-[hover=true]:bg-danger",
|
|
8176
|
+
"dark:data-[selected=true]:data-[hover=true]:bg-danger",
|
|
8177
|
+
"dark:data-[selected=true]:data-[hover=true]:text-danger-foreground",
|
|
8178
|
+
"data-[selected=true]:data-[hover=true]:text-danger-foreground"
|
|
8179
|
+
]
|
|
8180
|
+
}
|
|
8181
|
+
},
|
|
8182
|
+
{
|
|
8183
|
+
isRange: true,
|
|
8184
|
+
color: "foreground",
|
|
8185
|
+
class: {
|
|
8186
|
+
cellButton: [
|
|
8187
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-foreground/10",
|
|
8188
|
+
"data-[selected=true]:data-[range-selection=true]:text-foreground",
|
|
8189
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-foreground",
|
|
8190
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-background",
|
|
8191
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-foreground",
|
|
8192
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-background"
|
|
8193
|
+
]
|
|
8194
|
+
}
|
|
8195
|
+
},
|
|
8196
|
+
{
|
|
8197
|
+
isRange: true,
|
|
8198
|
+
color: "primary",
|
|
8199
|
+
class: {
|
|
8200
|
+
cellButton: [
|
|
8201
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-primary-50",
|
|
8202
|
+
"data-[selected=true]:data-[range-selection=true]:text-primary",
|
|
8203
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-primary",
|
|
8204
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-primary-foreground",
|
|
8205
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-primary",
|
|
8206
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-primary-foreground"
|
|
8207
|
+
]
|
|
8208
|
+
}
|
|
8209
|
+
},
|
|
8210
|
+
{
|
|
8211
|
+
isRange: true,
|
|
8212
|
+
color: "secondary",
|
|
8213
|
+
class: {
|
|
8214
|
+
cellButton: [
|
|
8215
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-secondary-50",
|
|
8216
|
+
"data-[selected=true]:data-[range-selection=true]:text-secondary",
|
|
8217
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-secondary",
|
|
8218
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-secondary-foreground",
|
|
8219
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-secondary",
|
|
8220
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-secondary-foreground"
|
|
8221
|
+
]
|
|
8222
|
+
}
|
|
8223
|
+
},
|
|
8224
|
+
{
|
|
8225
|
+
isRange: true,
|
|
8226
|
+
color: "success",
|
|
8227
|
+
class: {
|
|
8228
|
+
cellButton: [
|
|
8229
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-success-100",
|
|
8230
|
+
"data-[selected=true]:data-[range-selection=true]:text-success-600",
|
|
8231
|
+
"dark:data-[selected=true]:data-[range-selection=true]:before:bg-success-50",
|
|
8232
|
+
"dark:data-[selected=true]:data-[range-selection=true]:text-success-500",
|
|
8233
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-success",
|
|
8234
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-success-foreground",
|
|
8235
|
+
"dark:data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-success-foreground",
|
|
8236
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-success",
|
|
8237
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-success-foreground",
|
|
8238
|
+
"dark:data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-success-foreground"
|
|
8239
|
+
]
|
|
8240
|
+
}
|
|
8241
|
+
},
|
|
8242
|
+
{
|
|
8243
|
+
isRange: true,
|
|
8244
|
+
color: "warning",
|
|
8245
|
+
class: {
|
|
8246
|
+
cellButton: [
|
|
8247
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-warning-100",
|
|
8248
|
+
"dark:data-[selected=true]:data-[range-selection=true]:before:bg-warning-50",
|
|
8249
|
+
"data-[selected=true]:data-[range-selection=true]:text-warning-500",
|
|
8250
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-warning",
|
|
8251
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-warning-foreground",
|
|
8252
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-warning",
|
|
8253
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-warning-foreground"
|
|
8254
|
+
]
|
|
8255
|
+
}
|
|
8256
|
+
},
|
|
8257
|
+
{
|
|
8258
|
+
isRange: true,
|
|
8259
|
+
color: "danger",
|
|
8260
|
+
class: {
|
|
8261
|
+
cellButton: [
|
|
8262
|
+
"data-[selected=true]:data-[range-selection=true]:before:bg-danger-50",
|
|
8263
|
+
"data-[selected=true]:data-[range-selection=true]:text-danger-500",
|
|
8264
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:bg-danger",
|
|
8265
|
+
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:text-danger-foreground",
|
|
8266
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:bg-danger",
|
|
8267
|
+
"data-[selected=true]:data-[selection-end=true]:data-[range-selection=true]:text-danger-foreground"
|
|
8268
|
+
]
|
|
8269
|
+
}
|
|
8270
|
+
},
|
|
8271
|
+
{
|
|
8272
|
+
showShadow: true,
|
|
8273
|
+
color: "foreground",
|
|
8274
|
+
class: {
|
|
8275
|
+
cellButton: "data-[selected=true]:shadow-foreground/40"
|
|
8276
|
+
}
|
|
8277
|
+
},
|
|
8278
|
+
{
|
|
8279
|
+
showShadow: true,
|
|
8280
|
+
color: "primary",
|
|
8281
|
+
class: {
|
|
8282
|
+
cellButton: "data-[selected=true]:shadow-primary/40"
|
|
8283
|
+
}
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
showShadow: true,
|
|
8287
|
+
color: "secondary",
|
|
8288
|
+
class: {
|
|
8289
|
+
cellButton: "data-[selected=true]:shadow-secondary/40"
|
|
8290
|
+
}
|
|
8291
|
+
},
|
|
8292
|
+
{
|
|
8293
|
+
showShadow: true,
|
|
8294
|
+
color: "success",
|
|
8295
|
+
class: {
|
|
8296
|
+
cellButton: "data-[selected=true]:shadow-success/40"
|
|
8297
|
+
}
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
showShadow: true,
|
|
8301
|
+
color: "warning",
|
|
8302
|
+
class: {
|
|
8303
|
+
cellButton: "data-[selected=true]:shadow-warning/40"
|
|
8304
|
+
}
|
|
8305
|
+
},
|
|
8306
|
+
{
|
|
8307
|
+
showShadow: true,
|
|
8308
|
+
color: "danger",
|
|
8309
|
+
class: {
|
|
8310
|
+
cellButton: "data-[selected=true]:shadow-danger/40"
|
|
8311
|
+
}
|
|
8312
|
+
},
|
|
8313
|
+
{
|
|
8314
|
+
showShadow: true,
|
|
8315
|
+
isRange: true,
|
|
8316
|
+
class: {
|
|
8317
|
+
cellButton: [
|
|
8318
|
+
"data-[selected=true]:shadow-none",
|
|
8319
|
+
"data-[selected=true]:data-[selection-start=true]:shadow-md",
|
|
8320
|
+
"data-[selected=true]:data-[selection-end=true]:shadow-md"
|
|
8321
|
+
]
|
|
8322
|
+
}
|
|
8323
|
+
}
|
|
8324
|
+
],
|
|
8325
|
+
compoundSlots: [
|
|
8326
|
+
{
|
|
8327
|
+
slots: ["prevButton", "nextButton"],
|
|
8328
|
+
class: ["text-medium", "text-default-400"]
|
|
8329
|
+
},
|
|
8330
|
+
{
|
|
8331
|
+
slots: ["pickerMonthList", "pickerYearList"],
|
|
8332
|
+
class: [
|
|
8333
|
+
"flex flex-col px-4 overflow-y-scroll scrollbar-hide snap-y snap-mandatory",
|
|
8334
|
+
"[--scroll-shadow-size:100px]",
|
|
8335
|
+
"[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"
|
|
8336
|
+
]
|
|
8337
|
+
}
|
|
8338
|
+
]
|
|
8339
|
+
});
|
|
8340
|
+
|
|
8341
|
+
// src/components/date-input.ts
|
|
8342
|
+
var dateInput = tv({
|
|
8343
|
+
slots: {
|
|
8344
|
+
base: "group flex flex-col",
|
|
8345
|
+
label: [
|
|
8346
|
+
"block subpixel-antialiased text-small text-default-600",
|
|
8347
|
+
"group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
|
|
8348
|
+
"group-data-[invalid=true]:text-danger"
|
|
8349
|
+
],
|
|
8350
|
+
inputWrapper: [
|
|
8351
|
+
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
|
|
8352
|
+
"cursor-text tap-highlight-transparent shadow-sm"
|
|
8353
|
+
],
|
|
8354
|
+
input: "flex h-full gap-x-0.5 w-full font-normal",
|
|
8355
|
+
innerWrapper: [
|
|
8356
|
+
"flex items-center text-default-400 w-full gap-x-2 h-6",
|
|
8357
|
+
"group-data-[invalid=true]:text-danger"
|
|
8358
|
+
],
|
|
8359
|
+
segment: [
|
|
8360
|
+
"group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
8361
|
+
"inline-block outline-none focus:shadow-sm rounded-md",
|
|
8362
|
+
"text-foreground-500 data-[editable=true]:text-foreground",
|
|
8363
|
+
"data-[editable=true]:data-[placeholder=true]:text-foreground-500",
|
|
8364
|
+
"data-[invalid=true]:text-danger-300 data-[invalid=true]:data-[editable=true]:text-danger",
|
|
8365
|
+
"data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
|
|
8366
|
+
"data-[invalid=true]:data-[editable=true]:focus:text-danger"
|
|
8367
|
+
],
|
|
8368
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
8369
|
+
description: "text-tiny text-foreground-400",
|
|
8370
|
+
errorMessage: "text-tiny text-danger"
|
|
8371
|
+
},
|
|
8372
|
+
variants: {
|
|
8373
|
+
variant: {
|
|
8374
|
+
flat: {
|
|
8375
|
+
inputWrapper: [
|
|
8376
|
+
"bg-default-100",
|
|
8377
|
+
"hover:bg-default-200",
|
|
8378
|
+
"focus-within:hover:bg-default-100",
|
|
8379
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8380
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8381
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8382
|
+
]
|
|
8383
|
+
},
|
|
8384
|
+
faded: {
|
|
8385
|
+
inputWrapper: [
|
|
8386
|
+
"bg-default-100",
|
|
8387
|
+
"border-medium",
|
|
8388
|
+
"border-default-200",
|
|
8389
|
+
"hover:border-default-400",
|
|
8390
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
8391
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
8392
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
8393
|
+
]
|
|
8394
|
+
},
|
|
8395
|
+
bordered: {
|
|
8396
|
+
inputWrapper: [
|
|
8397
|
+
"border-medium",
|
|
8398
|
+
"border-default-200",
|
|
8399
|
+
"hover:border-default-400",
|
|
8400
|
+
"focus-within:border-default-foreground",
|
|
8401
|
+
"focus-within:hover:border-default-foreground",
|
|
8402
|
+
"group-data-[invalid=true]:border-danger",
|
|
8403
|
+
"group-data-[invalid=true]:hover:border-danger",
|
|
8404
|
+
"group-data-[invalid=true]:focus-within:hover:border-danger"
|
|
8405
|
+
]
|
|
8406
|
+
},
|
|
8407
|
+
underlined: {
|
|
8408
|
+
inputWrapper: [
|
|
8409
|
+
"px-1",
|
|
8410
|
+
"pb-1",
|
|
8411
|
+
"gap-0",
|
|
8412
|
+
"relative",
|
|
8413
|
+
"box-border",
|
|
8414
|
+
"border-b-medium",
|
|
8415
|
+
"shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]",
|
|
8416
|
+
"border-default-200",
|
|
8417
|
+
"!rounded-none",
|
|
8418
|
+
"hover:border-default-300",
|
|
8419
|
+
"after:content-['']",
|
|
8420
|
+
"after:w-0",
|
|
8421
|
+
"after:origin-center",
|
|
8422
|
+
"after:bg-default-foreground",
|
|
8423
|
+
"after:absolute",
|
|
8424
|
+
"after:left-1/2",
|
|
8425
|
+
"after:-translate-x-1/2",
|
|
8426
|
+
"after:-bottom-[2px]",
|
|
8427
|
+
"after:h-[2px]",
|
|
8428
|
+
"focus-within:after:w-full",
|
|
8429
|
+
"group-data-[invalid=true]:after:bg-danger"
|
|
8430
|
+
]
|
|
8431
|
+
}
|
|
8432
|
+
},
|
|
8433
|
+
color: {
|
|
8434
|
+
default: {
|
|
8435
|
+
segment: "focus:bg-default-400/50 data-[editable=true]:focus:text-default-foreground"
|
|
8436
|
+
},
|
|
8437
|
+
primary: {
|
|
8438
|
+
segment: "focus:bg-primary-400/50 data-[editable=true]:focus:text-primary"
|
|
8439
|
+
},
|
|
8440
|
+
secondary: {
|
|
8441
|
+
segment: "focus:bg-secondary-400/50 data-[editable=true]:focus:text-secondary"
|
|
8442
|
+
},
|
|
8443
|
+
success: {
|
|
8444
|
+
segment: "focus:bg-success-400/50 dark:focus:bg-success-400/20 data-[editable=true]:focus:text-success"
|
|
8445
|
+
},
|
|
8446
|
+
warning: {
|
|
8447
|
+
segment: "focus:bg-warning-400/50 dark:focus:bg-warning-400/20 data-[editable=true]:focus:text-warning"
|
|
8448
|
+
},
|
|
8449
|
+
danger: {
|
|
8450
|
+
segment: "focus:bg-danger-400/50 dark:focus:bg-danger-400/20 data-[editable=true]:focus:text-danger"
|
|
8451
|
+
}
|
|
8452
|
+
},
|
|
8453
|
+
size: {
|
|
8454
|
+
sm: {
|
|
8455
|
+
label: "text-tiny",
|
|
8456
|
+
input: "text-small",
|
|
8457
|
+
inputWrapper: "h-8 min-h-8 px-2 rounded-small"
|
|
8458
|
+
},
|
|
8459
|
+
md: {
|
|
8460
|
+
input: "text-small",
|
|
8461
|
+
inputWrapper: "h-10 min-h-10 rounded-medium",
|
|
8462
|
+
clearButton: "text-large"
|
|
8463
|
+
},
|
|
8464
|
+
lg: {
|
|
8465
|
+
input: "text-medium",
|
|
8466
|
+
inputWrapper: "h-12 min-h-12 rounded-large"
|
|
8467
|
+
}
|
|
8468
|
+
},
|
|
8469
|
+
radius: {
|
|
8470
|
+
none: {
|
|
8471
|
+
inputWrapper: "rounded-none"
|
|
8472
|
+
},
|
|
8473
|
+
sm: {
|
|
8474
|
+
inputWrapper: "rounded-small"
|
|
8475
|
+
},
|
|
8476
|
+
md: {
|
|
8477
|
+
inputWrapper: "rounded-medium"
|
|
8478
|
+
},
|
|
8479
|
+
lg: {
|
|
8480
|
+
inputWrapper: "rounded-large"
|
|
8481
|
+
},
|
|
8482
|
+
full: {
|
|
8483
|
+
inputWrapper: "rounded-full"
|
|
8484
|
+
}
|
|
8485
|
+
},
|
|
8486
|
+
labelPlacement: {
|
|
8487
|
+
outside: {
|
|
8488
|
+
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
8489
|
+
label: "w-full text-foreground",
|
|
8490
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
|
|
8491
|
+
},
|
|
8492
|
+
"outside-left": {
|
|
8493
|
+
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
8494
|
+
label: "relative text-foreground",
|
|
8495
|
+
inputWrapper: "relative flex-1",
|
|
8496
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] left-0 rtl:right-0"
|
|
8497
|
+
},
|
|
8498
|
+
inside: {
|
|
8499
|
+
label: "w-full text-tiny cursor-text",
|
|
8500
|
+
inputWrapper: "flex-col items-start justify-center gap-0"
|
|
8501
|
+
}
|
|
8502
|
+
},
|
|
8503
|
+
fullWidth: {
|
|
8504
|
+
true: {
|
|
8505
|
+
base: "w-full",
|
|
8506
|
+
inputWrapper: "w-full"
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
isDisabled: {
|
|
8510
|
+
true: {
|
|
8511
|
+
base: "opacity-disabled pointer-events-none",
|
|
8512
|
+
inputWrapper: "pointer-events-none",
|
|
8513
|
+
label: "pointer-events-none"
|
|
8514
|
+
}
|
|
8515
|
+
},
|
|
8516
|
+
disableAnimation: {
|
|
8517
|
+
true: {
|
|
8518
|
+
label: "transition-none",
|
|
8519
|
+
input: "transition-none",
|
|
8520
|
+
inputWrapper: "transition-none"
|
|
8521
|
+
},
|
|
8522
|
+
false: {
|
|
8523
|
+
label: [
|
|
8524
|
+
"!ease-out",
|
|
8525
|
+
"!duration-200",
|
|
8526
|
+
"will-change-auto",
|
|
8527
|
+
"motion-reduce:transition-none",
|
|
8528
|
+
"transition-[color,opacity]"
|
|
8529
|
+
],
|
|
8530
|
+
inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
|
|
8531
|
+
segment: "transition-colors motion-reduce:transition-none"
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
},
|
|
8535
|
+
defaultVariants: {
|
|
8536
|
+
variant: "flat",
|
|
8537
|
+
color: "default",
|
|
8538
|
+
size: "md",
|
|
8539
|
+
fullWidth: true,
|
|
8540
|
+
labelPlacement: "inside",
|
|
8541
|
+
isDisabled: false,
|
|
8542
|
+
disableAnimation: false
|
|
8543
|
+
},
|
|
8544
|
+
compoundVariants: [
|
|
8545
|
+
{
|
|
8546
|
+
variant: "flat",
|
|
8547
|
+
color: "primary",
|
|
8548
|
+
class: {
|
|
8549
|
+
innerWrapper: "text-primary",
|
|
8550
|
+
inputWrapper: ["bg-primary-50", "hover:bg-primary-100", "focus-within:bg-primary-50"],
|
|
8551
|
+
segment: "text-primary-300 data-[editable=true]:data-[placeholder=true]:text-primary-300 data-[editable=true]:text-primary",
|
|
8552
|
+
label: "text-primary"
|
|
8553
|
+
}
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
variant: "flat",
|
|
8557
|
+
color: "secondary",
|
|
8558
|
+
class: {
|
|
8559
|
+
innerWrapper: "text-secondary",
|
|
8560
|
+
inputWrapper: ["bg-secondary-50", "hover:bg-secondary-100", "focus-within:bg-secondary-50"],
|
|
8561
|
+
segment: "text-secondary-300 data-[editable=true]:data-[placeholder=true]:text-secondary-300 data-[editable=true]:text-secondary",
|
|
8562
|
+
label: "text-secondary"
|
|
8563
|
+
}
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
variant: "flat",
|
|
8567
|
+
color: "success",
|
|
8568
|
+
class: {
|
|
8569
|
+
innerWrapper: "text-success-600 dark:text-success",
|
|
8570
|
+
inputWrapper: ["bg-success-50", "hover:bg-success-100", "focus-within:bg-success-50"],
|
|
8571
|
+
segment: "text-success-400 data-[editable=true]:data-[placeholder=true]:text-success-400 data-[editable=true]:text-success-600 data-[editable=true]:focus:text-success-600",
|
|
8572
|
+
label: "text-success-600 dark:text-success"
|
|
8573
|
+
}
|
|
8574
|
+
},
|
|
8575
|
+
{
|
|
8576
|
+
variant: "flat",
|
|
8577
|
+
color: "warning",
|
|
8578
|
+
class: {
|
|
8579
|
+
innerWrapper: "text-warning-600 dark:text-warning",
|
|
8580
|
+
inputWrapper: ["bg-warning-50", "hover:bg-warning-100", "focus-within:bg-warning-50"],
|
|
8581
|
+
segment: "text-warning-400 data-[editable=true]:data-[placeholder=true]:text-warning-400 data-[editable=true]:text-warning-600 data-[editable=true]:focus:text-warning-600",
|
|
8582
|
+
label: "text-warning-600 dark:text-warning"
|
|
8583
|
+
}
|
|
8584
|
+
},
|
|
8585
|
+
{
|
|
8586
|
+
variant: "flat",
|
|
8587
|
+
color: "danger",
|
|
8588
|
+
class: {
|
|
8589
|
+
innerWrapper: "text-danger",
|
|
8590
|
+
inputWrapper: ["bg-danger-50", "hover:bg-danger-100", "focus-within:bg-danger-50"],
|
|
8591
|
+
segment: "text-danger-300 data-[editable=true]:data-[placeholder=true]:text-danger-300 data-[editable=true]:text-danger",
|
|
8592
|
+
label: "text-danger"
|
|
8593
|
+
}
|
|
8594
|
+
},
|
|
8595
|
+
{
|
|
8596
|
+
variant: ["bordered", "faded"],
|
|
8597
|
+
color: "primary",
|
|
8598
|
+
class: {
|
|
8599
|
+
innerWrapper: "text-primary",
|
|
8600
|
+
inputWrapper: ["focus-within:border-primary", "focus-within:hover:border-primary"],
|
|
8601
|
+
label: "text-primary"
|
|
8602
|
+
}
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
variant: ["bordered", "faded"],
|
|
8606
|
+
color: "secondary",
|
|
8607
|
+
class: {
|
|
8608
|
+
innerWrapper: "text-secondary",
|
|
8609
|
+
inputWrapper: ["focus-within:border-secondary", "focus-within:hover:border-secondary"],
|
|
8610
|
+
label: "text-secondary"
|
|
8611
|
+
}
|
|
8612
|
+
},
|
|
8613
|
+
{
|
|
8614
|
+
variant: ["bordered", "faded"],
|
|
8615
|
+
color: "success",
|
|
8616
|
+
class: {
|
|
8617
|
+
innerWrapper: "text-success",
|
|
8618
|
+
inputWrapper: ["focus-within:border-success", "focus-within:hover:border-success"],
|
|
8619
|
+
label: "text-success"
|
|
8620
|
+
}
|
|
8621
|
+
},
|
|
8622
|
+
{
|
|
8623
|
+
variant: ["bordered", "faded"],
|
|
8624
|
+
color: "warning",
|
|
8625
|
+
class: {
|
|
8626
|
+
innerWrapper: "text-warning",
|
|
8627
|
+
inputWrapper: ["focus-within:border-warning", "focus-within:hover:border-warning"],
|
|
8628
|
+
label: "text-warning"
|
|
8629
|
+
}
|
|
8630
|
+
},
|
|
8631
|
+
{
|
|
8632
|
+
variant: ["bordered", "faded"],
|
|
8633
|
+
color: "danger",
|
|
8634
|
+
class: {
|
|
8635
|
+
innerWrapper: "text-danger",
|
|
8636
|
+
inputWrapper: ["focus-within:border-danger", "focus-within:hover:border-danger"],
|
|
8637
|
+
label: "text-danger"
|
|
8638
|
+
}
|
|
8639
|
+
},
|
|
8640
|
+
{
|
|
8641
|
+
variant: "underlined",
|
|
8642
|
+
color: "primary",
|
|
8643
|
+
class: {
|
|
8644
|
+
innerWrapper: "text-primary",
|
|
8645
|
+
inputWrapper: "after:bg-primary",
|
|
8646
|
+
label: "text-primary"
|
|
8647
|
+
}
|
|
8648
|
+
},
|
|
8649
|
+
{
|
|
8650
|
+
variant: "underlined",
|
|
8651
|
+
color: "secondary",
|
|
8652
|
+
class: {
|
|
8653
|
+
innerWrapper: "text-secondary",
|
|
8654
|
+
inputWrapper: "after:bg-secondary",
|
|
8655
|
+
label: "text-secondary"
|
|
8656
|
+
}
|
|
8657
|
+
},
|
|
8658
|
+
{
|
|
8659
|
+
variant: "underlined",
|
|
8660
|
+
color: "success",
|
|
8661
|
+
class: {
|
|
8662
|
+
innerWrapper: "text-success",
|
|
8663
|
+
inputWrapper: "after:bg-success",
|
|
8664
|
+
label: "text-success"
|
|
8665
|
+
}
|
|
8666
|
+
},
|
|
8667
|
+
{
|
|
8668
|
+
variant: "underlined",
|
|
8669
|
+
color: "warning",
|
|
8670
|
+
class: {
|
|
8671
|
+
innerWrapper: "text-warning",
|
|
8672
|
+
inputWrapper: "after:bg-warning",
|
|
8673
|
+
label: "text-warning"
|
|
8674
|
+
}
|
|
8675
|
+
},
|
|
8676
|
+
{
|
|
8677
|
+
variant: "underlined",
|
|
8678
|
+
color: "danger",
|
|
8679
|
+
class: {
|
|
8680
|
+
innerWrapper: "text-danger",
|
|
8681
|
+
inputWrapper: "after:bg-danger",
|
|
8682
|
+
label: "text-danger"
|
|
8683
|
+
}
|
|
8684
|
+
},
|
|
8685
|
+
{
|
|
8686
|
+
labelPlacement: "inside",
|
|
8687
|
+
size: "sm",
|
|
8688
|
+
class: {
|
|
8689
|
+
inputWrapper: "h-12 py-1.5 px-3"
|
|
8690
|
+
}
|
|
8691
|
+
},
|
|
8692
|
+
{
|
|
8693
|
+
labelPlacement: "inside",
|
|
8694
|
+
size: "md",
|
|
8695
|
+
class: {
|
|
8696
|
+
inputWrapper: "h-14 py-2"
|
|
8697
|
+
}
|
|
8698
|
+
},
|
|
8699
|
+
{
|
|
8700
|
+
labelPlacement: "inside",
|
|
8701
|
+
size: "lg",
|
|
8702
|
+
class: {
|
|
8703
|
+
label: "text-small",
|
|
8704
|
+
inputWrapper: "h-16 py-2.5 gap-0"
|
|
8705
|
+
}
|
|
8706
|
+
},
|
|
8707
|
+
{
|
|
8708
|
+
disableAnimation: false,
|
|
8709
|
+
variant: ["faded", "bordered"],
|
|
8710
|
+
class: {
|
|
8711
|
+
inputWrapper: "transition-colors motion-reduce:transition-none"
|
|
8712
|
+
}
|
|
8713
|
+
},
|
|
8714
|
+
{
|
|
8715
|
+
disableAnimation: false,
|
|
8716
|
+
variant: "underlined",
|
|
8717
|
+
class: {
|
|
8718
|
+
inputWrapper: "after:transition-width motion-reduce:after:transition-none"
|
|
8719
|
+
}
|
|
8720
|
+
}
|
|
8721
|
+
]
|
|
8722
|
+
});
|
|
8723
|
+
|
|
8724
|
+
// src/components/date-picker.ts
|
|
8725
|
+
var datePicker = tv({
|
|
8726
|
+
slots: {
|
|
8727
|
+
base: "group w-full",
|
|
8728
|
+
selectorButton: "-mr-2 text-inherit",
|
|
8729
|
+
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
8730
|
+
popoverContent: "p-0 w-full",
|
|
8731
|
+
calendar: "w-[var(--calendar-width)] shadow-none",
|
|
8732
|
+
calendarContent: "w-[var(--calendar-width)]",
|
|
8733
|
+
timeInputLabel: "font-medium",
|
|
8734
|
+
timeInput: "px-5 pb-4 flex-wrap gap-x-6"
|
|
8735
|
+
},
|
|
8736
|
+
variants: {
|
|
8737
|
+
hasMultipleMonths: {
|
|
8738
|
+
true: {
|
|
8739
|
+
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))]",
|
|
8740
|
+
calendarContent: "w-[calc(var(--visible-months)_*_var(--calendar-width))]"
|
|
8741
|
+
},
|
|
8742
|
+
false: {}
|
|
8743
|
+
}
|
|
8744
|
+
},
|
|
8745
|
+
defaultVariants: {
|
|
8746
|
+
hasMultipleMonths: false
|
|
8747
|
+
}
|
|
8748
|
+
});
|
|
8749
|
+
var dateRangePicker = tv({
|
|
8750
|
+
extend: datePicker,
|
|
8751
|
+
slots: {
|
|
8752
|
+
calendar: "group",
|
|
8753
|
+
bottomContent: "flex flex-col gap-y-2",
|
|
8754
|
+
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
|
|
8755
|
+
separator: "-mx-1 text-inherit"
|
|
8756
|
+
}
|
|
8757
|
+
});
|
|
7918
8758
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7919
8759
|
0 && (module.exports = {
|
|
7920
8760
|
accordion,
|
|
@@ -7927,12 +8767,16 @@ var autocomplete = tv({
|
|
|
7927
8767
|
breadcrumbs,
|
|
7928
8768
|
button,
|
|
7929
8769
|
buttonGroup,
|
|
8770
|
+
calendar,
|
|
7930
8771
|
card,
|
|
7931
8772
|
checkbox,
|
|
7932
8773
|
checkboxGroup,
|
|
7933
8774
|
chip,
|
|
7934
8775
|
circularProgress,
|
|
7935
8776
|
code,
|
|
8777
|
+
dateInput,
|
|
8778
|
+
datePicker,
|
|
8779
|
+
dateRangePicker,
|
|
7936
8780
|
divider,
|
|
7937
8781
|
drip,
|
|
7938
8782
|
dropdown,
|