@nextui-org/theme 2.2.10 → 2.3.0-beta.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-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
- package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
- package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +12 -5
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +19 -12
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +26 -19
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +12 -5
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +503 -210
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +55 -47
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +22 -15
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +44 -44
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +36 -38
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +528 -224
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
|
@@ -1,144 +1,151 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-MA4DKK64.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spinner
|
|
4
|
+
} from "../chunk-DBPAK7QN.mjs";
|
|
5
|
+
import {
|
|
6
|
+
table
|
|
7
|
+
} from "../chunk-2ODFPLXN.mjs";
|
|
2
8
|
import {
|
|
3
9
|
tabs
|
|
4
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KTTXIYK2.mjs";
|
|
5
11
|
import {
|
|
6
12
|
toggle
|
|
7
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-FJGKW3ZE.mjs";
|
|
8
14
|
import {
|
|
9
15
|
user
|
|
10
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-GMZHMFEU.mjs";
|
|
17
|
+
import {
|
|
18
|
+
progress
|
|
19
|
+
} from "../chunk-IZOPFGDE.mjs";
|
|
20
|
+
import {
|
|
21
|
+
radio,
|
|
22
|
+
radioGroup
|
|
23
|
+
} from "../chunk-LVAEW6WR.mjs";
|
|
11
24
|
import {
|
|
12
25
|
scrollShadow
|
|
13
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-AN5I7NTT.mjs";
|
|
14
27
|
import {
|
|
15
28
|
select
|
|
16
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-HZ7J23VD.mjs";
|
|
17
30
|
import {
|
|
18
31
|
skeleton
|
|
19
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-OAHW4NON.mjs";
|
|
20
33
|
import {
|
|
21
34
|
slider
|
|
22
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-7IYRK3EV.mjs";
|
|
23
36
|
import {
|
|
24
37
|
snippet
|
|
25
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-SC2SILVU.mjs";
|
|
26
39
|
import {
|
|
27
40
|
spacer
|
|
28
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-AKXXHKTO.mjs";
|
|
29
42
|
import {
|
|
30
|
-
|
|
31
|
-
} from "../chunk-
|
|
43
|
+
kbd
|
|
44
|
+
} from "../chunk-VX7HAPUO.mjs";
|
|
32
45
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
link,
|
|
47
|
+
linkAnchorClasses
|
|
48
|
+
} from "../chunk-IAHJC7C4.mjs";
|
|
35
49
|
import "../chunk-YJLQTC7L.mjs";
|
|
36
50
|
import {
|
|
37
51
|
menu,
|
|
38
52
|
menuItem,
|
|
39
53
|
menuSection
|
|
40
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-K6KPB2U5.mjs";
|
|
41
55
|
import {
|
|
42
56
|
modal
|
|
43
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-N67DL6BW.mjs";
|
|
44
58
|
import {
|
|
45
59
|
navbar
|
|
46
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-UQZHSMVI.mjs";
|
|
47
61
|
import {
|
|
48
62
|
pagination
|
|
49
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-EGGHND3C.mjs";
|
|
50
64
|
import {
|
|
51
65
|
popover
|
|
52
|
-
} from "../chunk-
|
|
53
|
-
import {
|
|
54
|
-
progress
|
|
55
|
-
} from "../chunk-2KK3SUMT.mjs";
|
|
66
|
+
} from "../chunk-HHK47K4W.mjs";
|
|
56
67
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} from "../chunk-
|
|
68
|
+
datePicker,
|
|
69
|
+
dateRangePicker
|
|
70
|
+
} from "../chunk-QFGVVQRM.mjs";
|
|
60
71
|
import {
|
|
61
72
|
divider
|
|
62
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-AXSF7SRE.mjs";
|
|
74
|
+
import {
|
|
75
|
+
drawer
|
|
76
|
+
} from "../chunk-EP7KPCL3.mjs";
|
|
63
77
|
import {
|
|
64
78
|
drip
|
|
65
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-BWPOLXFL.mjs";
|
|
66
80
|
import {
|
|
67
81
|
dropdown,
|
|
68
82
|
dropdownItem,
|
|
69
83
|
dropdownMenu,
|
|
70
84
|
dropdownSection
|
|
71
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-EQPJSVMB.mjs";
|
|
72
86
|
import {
|
|
73
87
|
image
|
|
74
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-TOQXZATI.mjs";
|
|
75
89
|
import {
|
|
76
90
|
input
|
|
77
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-TNFNBUPA.mjs";
|
|
78
92
|
import {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
link,
|
|
83
|
-
linkAnchorClasses
|
|
84
|
-
} from "../chunk-C3SML4G4.mjs";
|
|
93
|
+
button,
|
|
94
|
+
buttonGroup
|
|
95
|
+
} from "../chunk-YRDDKYYT.mjs";
|
|
85
96
|
import {
|
|
86
97
|
calendar
|
|
87
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-VKSIQ7SR.mjs";
|
|
88
99
|
import {
|
|
89
100
|
card
|
|
90
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-YLHKOIZS.mjs";
|
|
91
102
|
import {
|
|
92
103
|
checkbox,
|
|
93
104
|
checkboxGroup
|
|
94
|
-
} from "../chunk-
|
|
105
|
+
} from "../chunk-FB2NWPDB.mjs";
|
|
95
106
|
import {
|
|
96
107
|
chip
|
|
97
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-5VB7JNVX.mjs";
|
|
98
109
|
import {
|
|
99
110
|
circularProgress
|
|
100
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-AUN4SP2F.mjs";
|
|
101
112
|
import {
|
|
102
113
|
code
|
|
103
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-JE6SPRGQ.mjs";
|
|
104
115
|
import {
|
|
105
116
|
dateInput
|
|
106
|
-
} from "../chunk-
|
|
107
|
-
import {
|
|
108
|
-
datePicker,
|
|
109
|
-
dateRangePicker
|
|
110
|
-
} from "../chunk-TSTU52NB.mjs";
|
|
117
|
+
} from "../chunk-HNRFZTEX.mjs";
|
|
111
118
|
import {
|
|
112
119
|
accordion,
|
|
113
120
|
accordionItem
|
|
114
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-HIFLYEAM.mjs";
|
|
122
|
+
import {
|
|
123
|
+
alert
|
|
124
|
+
} from "../chunk-3XDFZGUJ.mjs";
|
|
115
125
|
import {
|
|
116
126
|
autocomplete
|
|
117
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-2TAKWWRG.mjs";
|
|
118
128
|
import {
|
|
119
129
|
avatar,
|
|
120
130
|
avatarGroup
|
|
121
|
-
} from "../chunk-
|
|
131
|
+
} from "../chunk-LWG2RR7B.mjs";
|
|
122
132
|
import {
|
|
123
133
|
badge
|
|
124
|
-
} from "../chunk-
|
|
134
|
+
} from "../chunk-XQI5RD6S.mjs";
|
|
125
135
|
import {
|
|
126
136
|
breadcrumbItem,
|
|
127
137
|
breadcrumbs
|
|
128
|
-
} from "../chunk-
|
|
129
|
-
import {
|
|
130
|
-
button,
|
|
131
|
-
buttonGroup
|
|
132
|
-
} from "../chunk-XXQSA25O.mjs";
|
|
138
|
+
} from "../chunk-KZ2I3V4D.mjs";
|
|
133
139
|
import "../chunk-IV3K5WDK.mjs";
|
|
134
|
-
import "../chunk-
|
|
135
|
-
import "../chunk-
|
|
136
|
-
import "../chunk-
|
|
137
|
-
import "../chunk-
|
|
140
|
+
import "../chunk-GQT3YUX3.mjs";
|
|
141
|
+
import "../chunk-46U6G7UJ.mjs";
|
|
142
|
+
import "../chunk-UWE6H66T.mjs";
|
|
143
|
+
import "../chunk-GIXI35A3.mjs";
|
|
138
144
|
import "../chunk-XHQUSKIE.mjs";
|
|
139
145
|
export {
|
|
140
146
|
accordion,
|
|
141
147
|
accordionItem,
|
|
148
|
+
alert,
|
|
142
149
|
autocomplete,
|
|
143
150
|
avatar,
|
|
144
151
|
avatarGroup,
|
|
@@ -158,6 +165,7 @@ export {
|
|
|
158
165
|
datePicker,
|
|
159
166
|
dateRangePicker,
|
|
160
167
|
divider,
|
|
168
|
+
drawer,
|
|
161
169
|
drip,
|
|
162
170
|
dropdown,
|
|
163
171
|
dropdownItem,
|
|
@@ -101,6 +101,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
101
101
|
true: {
|
|
102
102
|
base: string;
|
|
103
103
|
};
|
|
104
|
+
false: {};
|
|
104
105
|
};
|
|
105
106
|
isClearable: {
|
|
106
107
|
true: {
|
|
@@ -238,6 +239,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
238
239
|
true: {
|
|
239
240
|
base: string;
|
|
240
241
|
};
|
|
242
|
+
false: {};
|
|
241
243
|
};
|
|
242
244
|
isClearable: {
|
|
243
245
|
true: {
|
|
@@ -364,6 +366,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
364
366
|
true: {
|
|
365
367
|
base: string;
|
|
366
368
|
};
|
|
369
|
+
false: {};
|
|
367
370
|
};
|
|
368
371
|
isClearable: {
|
|
369
372
|
true: {
|
|
@@ -490,6 +493,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
490
493
|
true: {
|
|
491
494
|
base: string;
|
|
492
495
|
};
|
|
496
|
+
false: {};
|
|
493
497
|
};
|
|
494
498
|
isClearable: {
|
|
495
499
|
true: {
|
|
@@ -627,6 +631,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
627
631
|
true: {
|
|
628
632
|
base: string;
|
|
629
633
|
};
|
|
634
|
+
false: {};
|
|
630
635
|
};
|
|
631
636
|
isClearable: {
|
|
632
637
|
true: {
|
|
@@ -764,6 +769,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
764
769
|
true: {
|
|
765
770
|
base: string;
|
|
766
771
|
};
|
|
772
|
+
false: {};
|
|
767
773
|
};
|
|
768
774
|
isClearable: {
|
|
769
775
|
true: {
|
|
@@ -890,6 +896,7 @@ declare const input: tailwind_variants.TVReturnType<{
|
|
|
890
896
|
true: {
|
|
891
897
|
base: string;
|
|
892
898
|
};
|
|
899
|
+
false: {};
|
|
893
900
|
};
|
|
894
901
|
isClearable: {
|
|
895
902
|
true: {
|
package/dist/components/input.js
CHANGED
|
@@ -39,7 +39,14 @@ var twMergeConfig = {
|
|
|
39
39
|
classGroups: {
|
|
40
40
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
41
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
-
"bg-image": [
|
|
42
|
+
"bg-image": [
|
|
43
|
+
"bg-stripe-gradient-default",
|
|
44
|
+
"bg-stripe-gradient-primary",
|
|
45
|
+
"bg-stripe-gradient-secondary",
|
|
46
|
+
"bg-stripe-gradient-success",
|
|
47
|
+
"bg-stripe-gradient-warning",
|
|
48
|
+
"bg-stripe-gradient-danger"
|
|
49
|
+
]
|
|
43
50
|
}
|
|
44
51
|
};
|
|
45
52
|
|
|
@@ -83,7 +90,7 @@ var groupDataFocusVisibleClasses = [
|
|
|
83
90
|
// src/components/input.ts
|
|
84
91
|
var input = tv({
|
|
85
92
|
slots: {
|
|
86
|
-
base: "group
|
|
93
|
+
base: "group flex flex-col data-[hidden=true]:hidden",
|
|
87
94
|
label: [
|
|
88
95
|
"absolute",
|
|
89
96
|
"z-10",
|
|
@@ -123,7 +130,7 @@ var input = tv({
|
|
|
123
130
|
"rounded-full",
|
|
124
131
|
...dataFocusVisibleClasses
|
|
125
132
|
],
|
|
126
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
133
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
127
134
|
description: "text-tiny text-foreground-400",
|
|
128
135
|
errorMessage: "text-tiny text-danger"
|
|
129
136
|
},
|
|
@@ -133,7 +140,7 @@ var input = tv({
|
|
|
133
140
|
inputWrapper: [
|
|
134
141
|
"bg-default-100",
|
|
135
142
|
"data-[hover=true]:bg-default-200",
|
|
136
|
-
"group-data-[focus=true]
|
|
143
|
+
"group-data-[focus=true]:bg-default-100"
|
|
137
144
|
]
|
|
138
145
|
},
|
|
139
146
|
faded: {
|
|
@@ -143,14 +150,14 @@ var input = tv({
|
|
|
143
150
|
"border-default-200",
|
|
144
151
|
"data-[hover=true]:border-default-400"
|
|
145
152
|
],
|
|
146
|
-
value: "group-data-[has-value=true]
|
|
153
|
+
value: "group-data-[has-value=true]:text-default-foreground"
|
|
147
154
|
},
|
|
148
155
|
bordered: {
|
|
149
156
|
inputWrapper: [
|
|
150
157
|
"border-medium",
|
|
151
158
|
"border-default-200",
|
|
152
159
|
"data-[hover=true]:border-default-400",
|
|
153
|
-
"group-data-[focus=true]
|
|
160
|
+
"group-data-[focus=true]:border-default-foreground"
|
|
154
161
|
]
|
|
155
162
|
},
|
|
156
163
|
underlined: {
|
|
@@ -174,10 +181,10 @@ var input = tv({
|
|
|
174
181
|
"after:-translate-x-1/2",
|
|
175
182
|
"after:-bottom-[2px]",
|
|
176
183
|
"after:h-[2px]",
|
|
177
|
-
"group-data-[focus=true]
|
|
184
|
+
"group-data-[focus=true]:after:w-full"
|
|
178
185
|
],
|
|
179
186
|
innerWrapper: "pb-1",
|
|
180
|
-
label: "group-data-[filled-within=true]
|
|
187
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
181
188
|
}
|
|
182
189
|
},
|
|
183
190
|
color: {
|
|
@@ -236,17 +243,18 @@ var input = tv({
|
|
|
236
243
|
inside: {
|
|
237
244
|
label: "text-tiny cursor-text",
|
|
238
245
|
inputWrapper: "flex-col items-start justify-center gap-0",
|
|
239
|
-
innerWrapper: "group-data-[has-label=true]
|
|
246
|
+
innerWrapper: "group-data-[has-label=true]:items-end"
|
|
240
247
|
}
|
|
241
248
|
},
|
|
242
249
|
fullWidth: {
|
|
243
250
|
true: {
|
|
244
251
|
base: "w-full"
|
|
245
|
-
}
|
|
252
|
+
},
|
|
253
|
+
false: {}
|
|
246
254
|
},
|
|
247
255
|
isClearable: {
|
|
248
256
|
true: {
|
|
249
|
-
input: "peer
|
|
257
|
+
input: "peer pe-6 input-search-cancel-button-none",
|
|
250
258
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
251
259
|
}
|
|
252
260
|
},
|
|
@@ -265,14 +273,14 @@ var input = tv({
|
|
|
265
273
|
},
|
|
266
274
|
isRequired: {
|
|
267
275
|
true: {
|
|
268
|
-
label: "after:content-['*'] after:text-danger after:
|
|
276
|
+
label: "after:content-['*'] after:text-danger after:ms-0.5"
|
|
269
277
|
}
|
|
270
278
|
},
|
|
271
279
|
isMultiline: {
|
|
272
280
|
true: {
|
|
273
281
|
label: "relative",
|
|
274
282
|
inputWrapper: "!h-auto",
|
|
275
|
-
innerWrapper: "items-start group-data-[has-label=true]
|
|
283
|
+
innerWrapper: "items-start group-data-[has-label=true]:items-start",
|
|
276
284
|
input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
|
|
277
285
|
}
|
|
278
286
|
},
|
|
@@ -309,7 +317,7 @@ var input = tv({
|
|
|
309
317
|
variant: "flat",
|
|
310
318
|
color: "default",
|
|
311
319
|
class: {
|
|
312
|
-
input: "group-data-[has-value=true]
|
|
320
|
+
input: "group-data-[has-value=true]:text-default-foreground"
|
|
313
321
|
}
|
|
314
322
|
},
|
|
315
323
|
{
|
|
@@ -320,7 +328,7 @@ var input = tv({
|
|
|
320
328
|
"bg-primary-50",
|
|
321
329
|
"data-[hover=true]:bg-primary-100",
|
|
322
330
|
"text-primary",
|
|
323
|
-
"group-data-[focus=true]
|
|
331
|
+
"group-data-[focus=true]:bg-primary-50",
|
|
324
332
|
"placeholder:text-primary"
|
|
325
333
|
],
|
|
326
334
|
input: "placeholder:text-primary",
|
|
@@ -335,7 +343,7 @@ var input = tv({
|
|
|
335
343
|
"bg-secondary-50",
|
|
336
344
|
"text-secondary",
|
|
337
345
|
"data-[hover=true]:bg-secondary-100",
|
|
338
|
-
"group-data-[focus=true]
|
|
346
|
+
"group-data-[focus=true]:bg-secondary-50",
|
|
339
347
|
"placeholder:text-secondary"
|
|
340
348
|
],
|
|
341
349
|
input: "placeholder:text-secondary",
|
|
@@ -353,7 +361,7 @@ var input = tv({
|
|
|
353
361
|
"placeholder:text-success-600",
|
|
354
362
|
"dark:placeholder:text-success",
|
|
355
363
|
"data-[hover=true]:bg-success-100",
|
|
356
|
-
"group-data-[focus=true]
|
|
364
|
+
"group-data-[focus=true]:bg-success-50"
|
|
357
365
|
],
|
|
358
366
|
input: "placeholder:text-success-600 dark:placeholder:text-success",
|
|
359
367
|
label: "text-success-600 dark:text-success"
|
|
@@ -370,7 +378,7 @@ var input = tv({
|
|
|
370
378
|
"placeholder:text-warning-600",
|
|
371
379
|
"dark:placeholder:text-warning",
|
|
372
380
|
"data-[hover=true]:bg-warning-100",
|
|
373
|
-
"group-data-[focus=true]
|
|
381
|
+
"group-data-[focus=true]:bg-warning-50"
|
|
374
382
|
],
|
|
375
383
|
input: "placeholder:text-warning-600 dark:placeholder:text-warning",
|
|
376
384
|
label: "text-warning-600 dark:text-warning"
|
|
@@ -387,7 +395,7 @@ var input = tv({
|
|
|
387
395
|
"placeholder:text-danger",
|
|
388
396
|
"dark:placeholder:text-danger-500",
|
|
389
397
|
"data-[hover=true]:bg-danger-100",
|
|
390
|
-
"group-data-[focus=true]
|
|
398
|
+
"group-data-[focus=true]:bg-danger-50"
|
|
391
399
|
],
|
|
392
400
|
input: "placeholder:text-danger dark:placeholder:text-danger-500",
|
|
393
401
|
label: "text-danger dark:text-danger-500"
|
|
@@ -437,7 +445,7 @@ var input = tv({
|
|
|
437
445
|
variant: "underlined",
|
|
438
446
|
color: "default",
|
|
439
447
|
class: {
|
|
440
|
-
input: "group-data-[has-value=true]
|
|
448
|
+
input: "group-data-[has-value=true]:text-foreground"
|
|
441
449
|
}
|
|
442
450
|
},
|
|
443
451
|
{
|
|
@@ -484,7 +492,7 @@ var input = tv({
|
|
|
484
492
|
variant: "bordered",
|
|
485
493
|
color: "primary",
|
|
486
494
|
class: {
|
|
487
|
-
inputWrapper: "group-data-[focus=true]
|
|
495
|
+
inputWrapper: "group-data-[focus=true]:border-primary",
|
|
488
496
|
label: "text-primary"
|
|
489
497
|
}
|
|
490
498
|
},
|
|
@@ -492,7 +500,7 @@ var input = tv({
|
|
|
492
500
|
variant: "bordered",
|
|
493
501
|
color: "secondary",
|
|
494
502
|
class: {
|
|
495
|
-
inputWrapper: "group-data-[focus=true]
|
|
503
|
+
inputWrapper: "group-data-[focus=true]:border-secondary",
|
|
496
504
|
label: "text-secondary"
|
|
497
505
|
}
|
|
498
506
|
},
|
|
@@ -500,7 +508,7 @@ var input = tv({
|
|
|
500
508
|
variant: "bordered",
|
|
501
509
|
color: "success",
|
|
502
510
|
class: {
|
|
503
|
-
inputWrapper: "group-data-[focus=true]
|
|
511
|
+
inputWrapper: "group-data-[focus=true]:border-success",
|
|
504
512
|
label: "text-success"
|
|
505
513
|
}
|
|
506
514
|
},
|
|
@@ -508,7 +516,7 @@ var input = tv({
|
|
|
508
516
|
variant: "bordered",
|
|
509
517
|
color: "warning",
|
|
510
518
|
class: {
|
|
511
|
-
inputWrapper: "group-data-[focus=true]
|
|
519
|
+
inputWrapper: "group-data-[focus=true]:border-warning",
|
|
512
520
|
label: "text-warning"
|
|
513
521
|
}
|
|
514
522
|
},
|
|
@@ -516,7 +524,7 @@ var input = tv({
|
|
|
516
524
|
variant: "bordered",
|
|
517
525
|
color: "danger",
|
|
518
526
|
class: {
|
|
519
|
-
inputWrapper: "group-data-[focus=true]
|
|
527
|
+
inputWrapper: "group-data-[focus=true]:border-danger",
|
|
520
528
|
label: "text-danger"
|
|
521
529
|
}
|
|
522
530
|
},
|
|
@@ -524,14 +532,14 @@ var input = tv({
|
|
|
524
532
|
labelPlacement: "inside",
|
|
525
533
|
color: "default",
|
|
526
534
|
class: {
|
|
527
|
-
label: "group-data-[filled-within=true]
|
|
535
|
+
label: "group-data-[filled-within=true]:text-default-600"
|
|
528
536
|
}
|
|
529
537
|
},
|
|
530
538
|
{
|
|
531
539
|
labelPlacement: "outside",
|
|
532
540
|
color: "default",
|
|
533
541
|
class: {
|
|
534
|
-
label: "group-data-[filled-within=true]
|
|
542
|
+
label: "group-data-[filled-within=true]:text-foreground"
|
|
535
543
|
}
|
|
536
544
|
},
|
|
537
545
|
{
|
|
@@ -584,7 +592,7 @@ var input = tv({
|
|
|
584
592
|
inputWrapper: [
|
|
585
593
|
"!bg-danger-50",
|
|
586
594
|
"data-[hover=true]:!bg-danger-100",
|
|
587
|
-
"group-data-[focus=true]
|
|
595
|
+
"group-data-[focus=true]:!bg-danger-50"
|
|
588
596
|
]
|
|
589
597
|
}
|
|
590
598
|
},
|
|
@@ -592,7 +600,7 @@ var input = tv({
|
|
|
592
600
|
isInvalid: true,
|
|
593
601
|
variant: "bordered",
|
|
594
602
|
class: {
|
|
595
|
-
inputWrapper: "!border-danger group-data-[focus=true]
|
|
603
|
+
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger"
|
|
596
604
|
}
|
|
597
605
|
},
|
|
598
606
|
{
|
|
@@ -635,7 +643,7 @@ var input = tv({
|
|
|
635
643
|
{
|
|
636
644
|
labelPlacement: ["inside", "outside"],
|
|
637
645
|
class: {
|
|
638
|
-
label: ["group-data-[filled-within=true]
|
|
646
|
+
label: ["group-data-[filled-within=true]:pointer-events-auto"]
|
|
639
647
|
}
|
|
640
648
|
},
|
|
641
649
|
{
|
|
@@ -648,14 +656,14 @@ var input = tv({
|
|
|
648
656
|
"z-20",
|
|
649
657
|
"top-1/2",
|
|
650
658
|
"-translate-y-1/2",
|
|
651
|
-
"group-data-[filled-within=true]
|
|
659
|
+
"group-data-[filled-within=true]:start-0"
|
|
652
660
|
]
|
|
653
661
|
}
|
|
654
662
|
},
|
|
655
663
|
{
|
|
656
664
|
labelPlacement: ["inside"],
|
|
657
665
|
class: {
|
|
658
|
-
label: ["group-data-[filled-within=true]
|
|
666
|
+
label: ["group-data-[filled-within=true]:scale-85"]
|
|
659
667
|
}
|
|
660
668
|
},
|
|
661
669
|
{
|
|
@@ -692,7 +700,7 @@ var input = tv({
|
|
|
692
700
|
size: "sm",
|
|
693
701
|
class: {
|
|
694
702
|
label: [
|
|
695
|
-
"group-data-[filled-within=true]
|
|
703
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
|
|
696
704
|
]
|
|
697
705
|
}
|
|
698
706
|
},
|
|
@@ -702,7 +710,7 @@ var input = tv({
|
|
|
702
710
|
size: "md",
|
|
703
711
|
class: {
|
|
704
712
|
label: [
|
|
705
|
-
"group-data-[filled-within=true]
|
|
713
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
|
|
706
714
|
]
|
|
707
715
|
}
|
|
708
716
|
},
|
|
@@ -713,7 +721,7 @@ var input = tv({
|
|
|
713
721
|
class: {
|
|
714
722
|
label: [
|
|
715
723
|
"text-medium",
|
|
716
|
-
"group-data-[filled-within=true]
|
|
724
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
|
|
717
725
|
]
|
|
718
726
|
}
|
|
719
727
|
},
|
|
@@ -724,7 +732,7 @@ var input = tv({
|
|
|
724
732
|
size: "sm",
|
|
725
733
|
class: {
|
|
726
734
|
label: [
|
|
727
|
-
"group-data-[filled-within=true]
|
|
735
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
728
736
|
]
|
|
729
737
|
}
|
|
730
738
|
},
|
|
@@ -735,7 +743,7 @@ var input = tv({
|
|
|
735
743
|
size: "md",
|
|
736
744
|
class: {
|
|
737
745
|
label: [
|
|
738
|
-
"group-data-[filled-within=true]
|
|
746
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
|
|
739
747
|
]
|
|
740
748
|
}
|
|
741
749
|
},
|
|
@@ -747,7 +755,7 @@ var input = tv({
|
|
|
747
755
|
class: {
|
|
748
756
|
label: [
|
|
749
757
|
"text-medium",
|
|
750
|
-
"group-data-[filled-within=true]
|
|
758
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
|
|
751
759
|
]
|
|
752
760
|
}
|
|
753
761
|
},
|
|
@@ -758,7 +766,7 @@ var input = tv({
|
|
|
758
766
|
size: "sm",
|
|
759
767
|
class: {
|
|
760
768
|
label: [
|
|
761
|
-
"group-data-[filled-within=true]
|
|
769
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
|
|
762
770
|
]
|
|
763
771
|
}
|
|
764
772
|
},
|
|
@@ -769,7 +777,7 @@ var input = tv({
|
|
|
769
777
|
size: "md",
|
|
770
778
|
class: {
|
|
771
779
|
label: [
|
|
772
|
-
"group-data-[filled-within=true]
|
|
780
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
|
|
773
781
|
]
|
|
774
782
|
}
|
|
775
783
|
},
|
|
@@ -781,7 +789,7 @@ var input = tv({
|
|
|
781
789
|
class: {
|
|
782
790
|
label: [
|
|
783
791
|
"text-medium",
|
|
784
|
-
"group-data-[filled-within=true]
|
|
792
|
+
"group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
|
|
785
793
|
]
|
|
786
794
|
}
|
|
787
795
|
},
|
|
@@ -793,7 +801,7 @@ var input = tv({
|
|
|
793
801
|
label: [
|
|
794
802
|
"start-2",
|
|
795
803
|
"text-tiny",
|
|
796
|
-
"group-data-[filled-within=true]
|
|
804
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
797
805
|
],
|
|
798
806
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
|
|
799
807
|
}
|
|
@@ -807,7 +815,7 @@ var input = tv({
|
|
|
807
815
|
"start-3",
|
|
808
816
|
"end-auto",
|
|
809
817
|
"text-small",
|
|
810
|
-
"group-data-[filled-within=true]
|
|
818
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
811
819
|
],
|
|
812
820
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
|
|
813
821
|
}
|
|
@@ -821,7 +829,7 @@ var input = tv({
|
|
|
821
829
|
"start-3",
|
|
822
830
|
"end-auto",
|
|
823
831
|
"text-medium",
|
|
824
|
-
"group-data-[filled-within=true]
|
|
832
|
+
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
825
833
|
],
|
|
826
834
|
base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
|
|
827
835
|
}
|
|
@@ -830,21 +838,21 @@ var input = tv({
|
|
|
830
838
|
labelPlacement: "outside-left",
|
|
831
839
|
size: "sm",
|
|
832
840
|
class: {
|
|
833
|
-
label: "group-data-[has-helper=true]
|
|
841
|
+
label: "group-data-[has-helper=true]:pt-2"
|
|
834
842
|
}
|
|
835
843
|
},
|
|
836
844
|
{
|
|
837
845
|
labelPlacement: "outside-left",
|
|
838
846
|
size: "md",
|
|
839
847
|
class: {
|
|
840
|
-
label: "group-data-[has-helper=true]
|
|
848
|
+
label: "group-data-[has-helper=true]:pt-3"
|
|
841
849
|
}
|
|
842
850
|
},
|
|
843
851
|
{
|
|
844
852
|
labelPlacement: "outside-left",
|
|
845
853
|
size: "lg",
|
|
846
854
|
class: {
|
|
847
|
-
label: "group-data-[has-helper=true]
|
|
855
|
+
label: "group-data-[has-helper=true]:pt-4"
|
|
848
856
|
}
|
|
849
857
|
},
|
|
850
858
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
input
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-TNFNBUPA.mjs";
|
|
4
4
|
import "../chunk-IV3K5WDK.mjs";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-GQT3YUX3.mjs";
|
|
6
|
+
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-UWE6H66T.mjs";
|
|
8
|
+
import "../chunk-GIXI35A3.mjs";
|
|
9
9
|
import "../chunk-XHQUSKIE.mjs";
|
|
10
10
|
export {
|
|
11
11
|
input
|