@nextui-org/theme 2.3.0-beta.9 → 2.4.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/dist/chunk-6CPZ7K75.mjs +444 -0
- package/dist/{chunk-IZOPFGDE.mjs → chunk-6KWI4IHE.mjs} +82 -1
- package/dist/chunk-AHEUDQZM.mjs +18 -0
- package/dist/chunk-E257OVH3.mjs +12 -0
- package/dist/{chunk-LCMN7HGG.mjs → chunk-FVKQU6KS.mjs} +1 -1
- package/dist/{chunk-3ANIDDEW.mjs → chunk-LJXTFBEV.mjs} +2 -2
- package/dist/{chunk-K6KPB2U5.mjs → chunk-PTCUE3XA.mjs} +11 -1
- package/dist/{chunk-HIFLYEAM.mjs → chunk-QS3I2D2K.mjs} +1 -1
- package/dist/{chunk-HNRFZTEX.mjs → chunk-TK7HBD3N.mjs} +2 -1
- package/dist/{chunk-MXL6JCUG.mjs → chunk-Y2BFQAAT.mjs} +30 -6
- package/dist/{chunk-2TAKWWRG.mjs → chunk-ZZ2VSLD6.mjs} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.mjs +3 -2
- package/dist/components/alert.mjs +2 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/autocomplete.mjs +1 -1
- package/dist/components/avatar.mjs +2 -1
- package/dist/components/badge.mjs +2 -1
- package/dist/components/breadcrumbs.mjs +2 -1
- package/dist/components/button.mjs +2 -1
- package/dist/components/calendar.mjs +2 -1
- package/dist/components/card.mjs +2 -1
- package/dist/components/checkbox.mjs +2 -1
- package/dist/components/chip.mjs +2 -1
- package/dist/components/code.mjs +2 -1
- package/dist/components/date-input.d.ts +7 -0
- package/dist/components/date-input.js +2 -1
- package/dist/components/date-input.mjs +1 -1
- package/dist/components/dropdown.mjs +2 -1
- package/dist/components/form.d.ts +20 -0
- package/dist/components/{circular-progress.js → form.js} +9 -86
- package/dist/components/{circular-progress.mjs → form.mjs} +3 -3
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +490 -14
- package/dist/components/index.mjs +29 -22
- package/dist/components/input-otp.d.ts +603 -0
- package/dist/components/input-otp.js +518 -0
- package/dist/components/input-otp.mjs +13 -0
- package/dist/components/input.d.ts +21 -7
- package/dist/components/input.js +30 -6
- package/dist/components/input.mjs +3 -2
- package/dist/components/link.mjs +2 -1
- package/dist/components/listbox.js +11 -1
- package/dist/components/listbox.mjs +3 -2
- package/dist/components/menu.d.ts +70 -0
- package/dist/components/menu.js +11 -1
- package/dist/components/menu.mjs +3 -2
- package/dist/components/modal.mjs +2 -1
- package/dist/components/navbar.mjs +2 -1
- package/dist/components/pagination.mjs +2 -1
- package/dist/components/popover.mjs +2 -1
- package/dist/components/progress.d.ts +426 -1
- package/dist/components/progress.js +82 -0
- package/dist/components/progress.mjs +3 -1
- package/dist/components/radio.mjs +2 -1
- package/dist/components/select.js +2 -2
- package/dist/components/select.mjs +3 -2
- package/dist/components/slider.mjs +2 -1
- package/dist/components/snippet.mjs +2 -1
- package/dist/components/table.mjs +2 -1
- package/dist/components/tabs.mjs +2 -1
- package/dist/components/toggle.mjs +2 -1
- package/dist/components/user.mjs +2 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +510 -17
- package/dist/index.mjs +35 -25
- package/dist/plugin.mjs +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/index.mjs +5 -1
- package/dist/utils/merge-classes.d.ts +12 -0
- package/dist/utils/merge-classes.js +42 -0
- package/dist/utils/merge-classes.mjs +6 -0
- package/package.json +2 -2
- package/dist/chunk-AUN4SP2F.mjs +0 -89
- package/dist/components/circular-progress.d.ts +0 -430
- package/dist/{chunk-XZMJGJQX.mjs → chunk-3FZCW6LN.mjs} +3 -3
- /package/dist/{chunk-IV3K5WDK.mjs → chunk-3ZVSVLZD.mjs} +0 -0
- /package/dist/{chunk-MA4DKK64.mjs → chunk-CWYZ2GEH.mjs} +0 -0
|
@@ -15,6 +15,7 @@ var input = tv({
|
|
|
15
15
|
"z-10",
|
|
16
16
|
"pointer-events-none",
|
|
17
17
|
"origin-top-left",
|
|
18
|
+
"flex-shrink-0",
|
|
18
19
|
"rtl:origin-top-right",
|
|
19
20
|
"subpixel-antialiased",
|
|
20
21
|
"block",
|
|
@@ -35,10 +36,10 @@ var input = tv({
|
|
|
35
36
|
"p-2",
|
|
36
37
|
"-m-2",
|
|
37
38
|
"z-10",
|
|
38
|
-
"hidden",
|
|
39
39
|
"absolute",
|
|
40
40
|
"end-3",
|
|
41
41
|
"start-auto",
|
|
42
|
+
"pointer-events-none",
|
|
42
43
|
"appearance-none",
|
|
43
44
|
"outline-none",
|
|
44
45
|
"select-none",
|
|
@@ -127,6 +128,7 @@ var input = tv({
|
|
|
127
128
|
clearButton: "text-large"
|
|
128
129
|
},
|
|
129
130
|
lg: {
|
|
131
|
+
label: "text-medium",
|
|
130
132
|
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
131
133
|
input: "text-medium",
|
|
132
134
|
clearButton: "text-large"
|
|
@@ -160,7 +162,7 @@ var input = tv({
|
|
|
160
162
|
label: "relative text-foreground pe-2 ps-2 pointer-events-auto"
|
|
161
163
|
},
|
|
162
164
|
inside: {
|
|
163
|
-
label: "
|
|
165
|
+
label: "cursor-text",
|
|
164
166
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
165
167
|
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
166
168
|
}
|
|
@@ -174,7 +176,11 @@ var input = tv({
|
|
|
174
176
|
isClearable: {
|
|
175
177
|
true: {
|
|
176
178
|
input: "peer pe-6 input-search-cancel-button-none",
|
|
177
|
-
clearButton:
|
|
179
|
+
clearButton: [
|
|
180
|
+
"peer-data-[filled=true]:pointer-events-auto",
|
|
181
|
+
"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
|
|
182
|
+
"peer-data-[filled=true]:scale-100"
|
|
183
|
+
]
|
|
178
184
|
}
|
|
179
185
|
},
|
|
180
186
|
isDisabled: {
|
|
@@ -200,7 +206,8 @@ var input = tv({
|
|
|
200
206
|
label: "relative",
|
|
201
207
|
inputWrapper: "!h-auto",
|
|
202
208
|
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
203
|
-
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
209
|
+
input: "resize-none data-[hide-scroll=true]:scrollbar-hide",
|
|
210
|
+
clearButton: "absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"
|
|
204
211
|
}
|
|
205
212
|
},
|
|
206
213
|
disableAnimation: {
|
|
@@ -218,7 +225,14 @@ var input = tv({
|
|
|
218
225
|
"motion-reduce:transition-none",
|
|
219
226
|
"transition-[transform,color,left,opacity]"
|
|
220
227
|
],
|
|
221
|
-
clearButton: [
|
|
228
|
+
clearButton: [
|
|
229
|
+
"scale-90",
|
|
230
|
+
"ease-out",
|
|
231
|
+
"duration-150",
|
|
232
|
+
"transition-[opacity,transform]",
|
|
233
|
+
"motion-reduce:transition-none",
|
|
234
|
+
"motion-reduce:scale-100"
|
|
235
|
+
]
|
|
222
236
|
}
|
|
223
237
|
}
|
|
224
238
|
},
|
|
@@ -547,7 +561,6 @@ var input = tv({
|
|
|
547
561
|
labelPlacement: "inside",
|
|
548
562
|
size: "lg",
|
|
549
563
|
class: {
|
|
550
|
-
label: "text-small",
|
|
551
564
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
552
565
|
}
|
|
553
566
|
},
|
|
@@ -815,6 +828,17 @@ var input = tv({
|
|
|
815
828
|
class: {
|
|
816
829
|
inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
|
|
817
830
|
}
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
isClearable: true,
|
|
834
|
+
isMultiline: true,
|
|
835
|
+
class: {
|
|
836
|
+
clearButton: [
|
|
837
|
+
"group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block",
|
|
838
|
+
"group-data-[has-value=true]:scale-100",
|
|
839
|
+
"group-data-[has-value=true]:pointer-events-auto"
|
|
840
|
+
]
|
|
841
|
+
}
|
|
818
842
|
}
|
|
819
843
|
]
|
|
820
844
|
});
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var autocomplete = tv({
|
|
7
7
|
slots: {
|
|
8
8
|
base: "group inline-flex flex-column w-full",
|
|
9
|
-
listboxWrapper: "scroll-py-6
|
|
9
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
10
10
|
listbox: "",
|
|
11
11
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
12
12
|
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
@@ -110,7 +110,7 @@ var accordionItem = tv({
|
|
|
110
110
|
startContent: "flex-shrink-0",
|
|
111
111
|
indicator: "text-default-400",
|
|
112
112
|
titleWrapper: "flex-1 flex flex-col text-start",
|
|
113
|
-
title: "text-foreground text-
|
|
113
|
+
title: "text-foreground text-medium",
|
|
114
114
|
subtitle: "text-small text-foreground-500 font-normal",
|
|
115
115
|
content: "py-2"
|
|
116
116
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion,
|
|
3
3
|
accordionItem
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QS3I2D2K.mjs";
|
|
5
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
6
6
|
import "../chunk-GQT3YUX3.mjs";
|
|
7
7
|
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
9
|
import "../chunk-UWE6H66T.mjs";
|
|
9
10
|
import "../chunk-GIXI35A3.mjs";
|
|
10
11
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
alert
|
|
3
3
|
} from "../chunk-MO6TCUI5.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -74,7 +74,7 @@ var tv = (options, config) => {
|
|
|
74
74
|
var autocomplete = tv({
|
|
75
75
|
slots: {
|
|
76
76
|
base: "group inline-flex flex-column w-full",
|
|
77
|
-
listboxWrapper: "scroll-py-6
|
|
77
|
+
listboxWrapper: "scroll-py-6 w-full",
|
|
78
78
|
listbox: "",
|
|
79
79
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
80
80
|
endContentWrapper: "relative flex h-full items-center -mr-2",
|
|
@@ -2,9 +2,10 @@ import {
|
|
|
2
2
|
avatar,
|
|
3
3
|
avatarGroup
|
|
4
4
|
} from "../chunk-LWG2RR7B.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
6
6
|
import "../chunk-GQT3YUX3.mjs";
|
|
7
7
|
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
9
|
import "../chunk-UWE6H66T.mjs";
|
|
9
10
|
import "../chunk-GIXI35A3.mjs";
|
|
10
11
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
badge
|
|
3
3
|
} from "../chunk-XQI5RD6S.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -2,9 +2,10 @@ import {
|
|
|
2
2
|
breadcrumbItem,
|
|
3
3
|
breadcrumbs
|
|
4
4
|
} from "../chunk-KZ2I3V4D.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
6
6
|
import "../chunk-GQT3YUX3.mjs";
|
|
7
7
|
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
9
|
import "../chunk-UWE6H66T.mjs";
|
|
9
10
|
import "../chunk-GIXI35A3.mjs";
|
|
10
11
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -2,9 +2,10 @@ import {
|
|
|
2
2
|
button,
|
|
3
3
|
buttonGroup
|
|
4
4
|
} from "../chunk-YRDDKYYT.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
6
6
|
import "../chunk-GQT3YUX3.mjs";
|
|
7
7
|
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
9
|
import "../chunk-UWE6H66T.mjs";
|
|
9
10
|
import "../chunk-GIXI35A3.mjs";
|
|
10
11
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
calendar
|
|
3
3
|
} from "../chunk-VKSIQ7SR.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/components/card.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
card
|
|
3
3
|
} from "../chunk-YLHKOIZS.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -2,9 +2,10 @@ import {
|
|
|
2
2
|
checkbox,
|
|
3
3
|
checkboxGroup
|
|
4
4
|
} from "../chunk-FB2NWPDB.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
6
6
|
import "../chunk-GQT3YUX3.mjs";
|
|
7
7
|
import "../chunk-46U6G7UJ.mjs";
|
|
8
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
8
9
|
import "../chunk-UWE6H66T.mjs";
|
|
9
10
|
import "../chunk-GIXI35A3.mjs";
|
|
10
11
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/components/chip.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chip
|
|
3
3
|
} from "../chunk-5VB7JNVX.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
package/dist/components/code.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
code
|
|
3
3
|
} from "../chunk-JE6SPRGQ.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
5
5
|
import "../chunk-GQT3YUX3.mjs";
|
|
6
6
|
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
7
8
|
import "../chunk-UWE6H66T.mjs";
|
|
8
9
|
import "../chunk-GIXI35A3.mjs";
|
|
9
10
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -54,6 +54,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
54
54
|
clearButton: string;
|
|
55
55
|
};
|
|
56
56
|
lg: {
|
|
57
|
+
label: string;
|
|
57
58
|
input: string;
|
|
58
59
|
inputWrapper: string;
|
|
59
60
|
};
|
|
@@ -174,6 +175,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
174
175
|
clearButton: string;
|
|
175
176
|
};
|
|
176
177
|
lg: {
|
|
178
|
+
label: string;
|
|
177
179
|
input: string;
|
|
178
180
|
inputWrapper: string;
|
|
179
181
|
};
|
|
@@ -284,6 +286,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
284
286
|
clearButton: string;
|
|
285
287
|
};
|
|
286
288
|
lg: {
|
|
289
|
+
label: string;
|
|
287
290
|
input: string;
|
|
288
291
|
inputWrapper: string;
|
|
289
292
|
};
|
|
@@ -394,6 +397,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
394
397
|
clearButton: string;
|
|
395
398
|
};
|
|
396
399
|
lg: {
|
|
400
|
+
label: string;
|
|
397
401
|
input: string;
|
|
398
402
|
inputWrapper: string;
|
|
399
403
|
};
|
|
@@ -514,6 +518,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
514
518
|
clearButton: string;
|
|
515
519
|
};
|
|
516
520
|
lg: {
|
|
521
|
+
label: string;
|
|
517
522
|
input: string;
|
|
518
523
|
inputWrapper: string;
|
|
519
524
|
};
|
|
@@ -634,6 +639,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
634
639
|
clearButton: string;
|
|
635
640
|
};
|
|
636
641
|
lg: {
|
|
642
|
+
label: string;
|
|
637
643
|
input: string;
|
|
638
644
|
inputWrapper: string;
|
|
639
645
|
};
|
|
@@ -744,6 +750,7 @@ declare const dateInput: tailwind_variants.TVReturnType<{
|
|
|
744
750
|
clearButton: string;
|
|
745
751
|
};
|
|
746
752
|
lg: {
|
|
753
|
+
label: string;
|
|
747
754
|
input: string;
|
|
748
755
|
inputWrapper: string;
|
|
749
756
|
};
|
|
@@ -194,6 +194,7 @@ var dateInput = tv({
|
|
|
194
194
|
clearButton: "text-large"
|
|
195
195
|
},
|
|
196
196
|
lg: {
|
|
197
|
+
label: "text-medium",
|
|
197
198
|
input: "text-medium",
|
|
198
199
|
inputWrapper: "h-12 min-h-12 rounded-large"
|
|
199
200
|
}
|
|
@@ -431,7 +432,7 @@ var dateInput = tv({
|
|
|
431
432
|
labelPlacement: "inside",
|
|
432
433
|
size: "lg",
|
|
433
434
|
class: {
|
|
434
|
-
label: "text-
|
|
435
|
+
label: "text-medium",
|
|
435
436
|
inputWrapper: "h-16 py-2.5 gap-0"
|
|
436
437
|
}
|
|
437
438
|
},
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
dropdownMenu,
|
|
5
5
|
dropdownSection
|
|
6
6
|
} from "../chunk-EQPJSVMB.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CWYZ2GEH.mjs";
|
|
8
8
|
import "../chunk-GQT3YUX3.mjs";
|
|
9
9
|
import "../chunk-46U6G7UJ.mjs";
|
|
10
|
+
import "../chunk-AHEUDQZM.mjs";
|
|
10
11
|
import "../chunk-UWE6H66T.mjs";
|
|
11
12
|
import "../chunk-GIXI35A3.mjs";
|
|
12
13
|
import "../chunk-XHQUSKIE.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Card **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const classNames = form({...})
|
|
11
|
+
*
|
|
12
|
+
* <form className={base()}>
|
|
13
|
+
* // form content
|
|
14
|
+
* </form>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const form: tailwind_variants.TVReturnType<{} | {} | {}, undefined, "flex flex-col gap-2 items-start", tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, "flex flex-col gap-2 items-start", tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
18
|
+
type FormVariantProps = VariantProps<typeof form>;
|
|
19
|
+
|
|
20
|
+
export { FormVariantProps, form };
|
|
@@ -17,12 +17,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// src/components/
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
23
|
-
|
|
20
|
+
// src/components/form.ts
|
|
21
|
+
var form_exports = {};
|
|
22
|
+
__export(form_exports, {
|
|
23
|
+
form: () => form
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(form_exports);
|
|
26
26
|
|
|
27
27
|
// src/utils/tv.ts
|
|
28
28
|
var import_tailwind_variants = require("tailwind-variants");
|
|
@@ -70,88 +70,11 @@ var tv = (options, config) => {
|
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
// src/components/
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
77
|
-
label: "",
|
|
78
|
-
svgWrapper: "relative block",
|
|
79
|
-
svg: "z-0 relative overflow-hidden",
|
|
80
|
-
track: "h-full stroke-default-300/50",
|
|
81
|
-
indicator: "h-full stroke-current",
|
|
82
|
-
value: "absolute font-normal inset-0 flex items-center justify-center"
|
|
83
|
-
},
|
|
84
|
-
variants: {
|
|
85
|
-
color: {
|
|
86
|
-
default: {
|
|
87
|
-
svg: "text-default-400"
|
|
88
|
-
},
|
|
89
|
-
primary: {
|
|
90
|
-
svg: "text-primary"
|
|
91
|
-
},
|
|
92
|
-
secondary: {
|
|
93
|
-
svg: "text-secondary"
|
|
94
|
-
},
|
|
95
|
-
success: {
|
|
96
|
-
svg: "text-success"
|
|
97
|
-
},
|
|
98
|
-
warning: {
|
|
99
|
-
svg: "text-warning"
|
|
100
|
-
},
|
|
101
|
-
danger: {
|
|
102
|
-
svg: "text-danger"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
size: {
|
|
106
|
-
sm: {
|
|
107
|
-
svg: "w-8 h-8",
|
|
108
|
-
label: "text-small",
|
|
109
|
-
value: "text-[0.5rem]"
|
|
110
|
-
},
|
|
111
|
-
md: {
|
|
112
|
-
svg: "w-10 h-10",
|
|
113
|
-
label: "text-small",
|
|
114
|
-
value: "text-[0.55rem]"
|
|
115
|
-
},
|
|
116
|
-
lg: {
|
|
117
|
-
svg: "w-12 h-12",
|
|
118
|
-
label: "text-medium",
|
|
119
|
-
value: "text-[0.6rem]"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
isIndeterminate: {
|
|
123
|
-
true: {
|
|
124
|
-
svg: "animate-spinner-ease-spin"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
isDisabled: {
|
|
128
|
-
true: {
|
|
129
|
-
base: "opacity-disabled cursor-not-allowed"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
disableAnimation: {
|
|
133
|
-
true: {},
|
|
134
|
-
false: {
|
|
135
|
-
indicator: "transition-all !duration-500"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
defaultVariants: {
|
|
140
|
-
color: "primary",
|
|
141
|
-
size: "md",
|
|
142
|
-
isDisabled: false
|
|
143
|
-
},
|
|
144
|
-
compoundVariants: [
|
|
145
|
-
{
|
|
146
|
-
disableAnimation: true,
|
|
147
|
-
isIndeterminate: false,
|
|
148
|
-
class: {
|
|
149
|
-
svg: "!transition-none motion-reduce:transition-none"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
]
|
|
73
|
+
// src/components/form.ts
|
|
74
|
+
var form = tv({
|
|
75
|
+
base: "flex flex-col gap-2 items-start"
|
|
153
76
|
});
|
|
154
77
|
// Annotate the CommonJS export names for ESM import in node:
|
|
155
78
|
0 && (module.exports = {
|
|
156
|
-
|
|
79
|
+
form
|
|
157
80
|
});
|
|
@@ -15,8 +15,8 @@ export { RadioGroupSlots, RadioSlots, RadioVariantProps, radio, radioGroup } fro
|
|
|
15
15
|
export { PaginationSlots, PaginationVariantProps, pagination } from './pagination.js';
|
|
16
16
|
export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
|
|
17
17
|
export { AccordionGroupVariantProps, AccordionItemSlots, AccordionItemVariantProps, accordion, accordionItem } from './accordion.js';
|
|
18
|
-
export { ProgressSlots, ProgressVariantProps, progress } from './progress.js';
|
|
19
|
-
export {
|
|
18
|
+
export { CircularProgressSlots, CircularProgressVariantProps, ProgressSlots, ProgressVariantProps, circularProgress, progress } from './progress.js';
|
|
19
|
+
export { InputOtpReturnType, InputOtpSlots, InputOtpVariantProps, inputOtp } from './input-otp.js';
|
|
20
20
|
export { InputSlots, InputVariantProps, input } from './input.js';
|
|
21
21
|
export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection } from './dropdown.js';
|
|
22
22
|
export { ImageSlots, ImageVariantProps, image } from './image.js';
|
|
@@ -39,5 +39,6 @@ export { DateInputReturnType, DateInputSlots, DateInputVariantProps, dateInput }
|
|
|
39
39
|
export { DatePickerReturnType, DatePickerSlots, DatePickerVariantProps, DateRangePickerReturnType, DateRangePickerSlots, DateRangePickerVariantProps, datePicker, dateRangePicker } from './date-picker.js';
|
|
40
40
|
export { AlertSlots, AlertVariantProps, alert } from './alert.js';
|
|
41
41
|
export { DrawerVariants, drawer } from './drawer.js';
|
|
42
|
+
export { FormVariantProps, form } from './form.js';
|
|
42
43
|
import 'tailwind-variants';
|
|
43
44
|
import 'tailwind-variants/dist/config';
|