@nextui-org/theme 2.2.11 → 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-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- 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-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- 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-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- 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-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- 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-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- 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 +8 -1
- 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 +11 -4
- 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 +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- 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 +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- 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 +10 -3
- 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 +13 -3
- 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 +17 -10
- 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 +392 -69
- 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
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
* Alert wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const {base, mainWrapper, title, description, closeButton, alertIcon} = alert({...})
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* <div className={base()}>
|
|
14
|
+
* {alertIcon}
|
|
15
|
+
* <div className={mainWrapper()}>
|
|
16
|
+
* <div className={title()}>Title</div>
|
|
17
|
+
* <div className={description()}>Description</div>
|
|
18
|
+
* </div>
|
|
19
|
+
* <button>
|
|
20
|
+
* // close button
|
|
21
|
+
* </button>
|
|
22
|
+
* </div>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const alert: tailwind_variants.TVReturnType<{
|
|
26
|
+
color: {
|
|
27
|
+
default: {};
|
|
28
|
+
primary: {};
|
|
29
|
+
secondary: {};
|
|
30
|
+
success: {};
|
|
31
|
+
warning: {};
|
|
32
|
+
danger: {};
|
|
33
|
+
};
|
|
34
|
+
variant: {
|
|
35
|
+
solid: {};
|
|
36
|
+
flat: {};
|
|
37
|
+
bordered: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
radius: {
|
|
42
|
+
none: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
sm: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
md: {
|
|
49
|
+
base: string;
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
base: string;
|
|
53
|
+
};
|
|
54
|
+
full: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
hasDescription: {
|
|
59
|
+
true: {
|
|
60
|
+
alertIcon: string;
|
|
61
|
+
};
|
|
62
|
+
false: {
|
|
63
|
+
base: string;
|
|
64
|
+
mainWrapper: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
base: string;
|
|
69
|
+
mainWrapper: string[];
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
closeButton: string;
|
|
73
|
+
alertIcon: string;
|
|
74
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
75
|
+
color: {
|
|
76
|
+
default: {};
|
|
77
|
+
primary: {};
|
|
78
|
+
secondary: {};
|
|
79
|
+
success: {};
|
|
80
|
+
warning: {};
|
|
81
|
+
danger: {};
|
|
82
|
+
};
|
|
83
|
+
variant: {
|
|
84
|
+
solid: {};
|
|
85
|
+
flat: {};
|
|
86
|
+
bordered: {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
radius: {
|
|
91
|
+
none: {
|
|
92
|
+
base: string;
|
|
93
|
+
};
|
|
94
|
+
sm: {
|
|
95
|
+
base: string;
|
|
96
|
+
};
|
|
97
|
+
md: {
|
|
98
|
+
base: string;
|
|
99
|
+
};
|
|
100
|
+
lg: {
|
|
101
|
+
base: string;
|
|
102
|
+
};
|
|
103
|
+
full: {
|
|
104
|
+
base: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
hasDescription: {
|
|
108
|
+
true: {
|
|
109
|
+
alertIcon: string;
|
|
110
|
+
};
|
|
111
|
+
false: {
|
|
112
|
+
base: string;
|
|
113
|
+
mainWrapper: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
color: {
|
|
118
|
+
default: {};
|
|
119
|
+
primary: {};
|
|
120
|
+
secondary: {};
|
|
121
|
+
success: {};
|
|
122
|
+
warning: {};
|
|
123
|
+
danger: {};
|
|
124
|
+
};
|
|
125
|
+
variant: {
|
|
126
|
+
solid: {};
|
|
127
|
+
flat: {};
|
|
128
|
+
bordered: {
|
|
129
|
+
base: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
radius: {
|
|
133
|
+
none: {
|
|
134
|
+
base: string;
|
|
135
|
+
};
|
|
136
|
+
sm: {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
md: {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
lg: {
|
|
143
|
+
base: string;
|
|
144
|
+
};
|
|
145
|
+
full: {
|
|
146
|
+
base: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
hasDescription: {
|
|
150
|
+
true: {
|
|
151
|
+
alertIcon: string;
|
|
152
|
+
};
|
|
153
|
+
false: {
|
|
154
|
+
base: string;
|
|
155
|
+
mainWrapper: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}>, {
|
|
159
|
+
color: {
|
|
160
|
+
default: {};
|
|
161
|
+
primary: {};
|
|
162
|
+
secondary: {};
|
|
163
|
+
success: {};
|
|
164
|
+
warning: {};
|
|
165
|
+
danger: {};
|
|
166
|
+
};
|
|
167
|
+
variant: {
|
|
168
|
+
solid: {};
|
|
169
|
+
flat: {};
|
|
170
|
+
bordered: {
|
|
171
|
+
base: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
radius: {
|
|
175
|
+
none: {
|
|
176
|
+
base: string;
|
|
177
|
+
};
|
|
178
|
+
sm: {
|
|
179
|
+
base: string;
|
|
180
|
+
};
|
|
181
|
+
md: {
|
|
182
|
+
base: string;
|
|
183
|
+
};
|
|
184
|
+
lg: {
|
|
185
|
+
base: string;
|
|
186
|
+
};
|
|
187
|
+
full: {
|
|
188
|
+
base: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
hasDescription: {
|
|
192
|
+
true: {
|
|
193
|
+
alertIcon: string;
|
|
194
|
+
};
|
|
195
|
+
false: {
|
|
196
|
+
base: string;
|
|
197
|
+
mainWrapper: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
}, {
|
|
201
|
+
base: string;
|
|
202
|
+
mainWrapper: string[];
|
|
203
|
+
title: string;
|
|
204
|
+
description: string;
|
|
205
|
+
closeButton: string;
|
|
206
|
+
alertIcon: string;
|
|
207
|
+
}, tailwind_variants.TVReturnType<{
|
|
208
|
+
color: {
|
|
209
|
+
default: {};
|
|
210
|
+
primary: {};
|
|
211
|
+
secondary: {};
|
|
212
|
+
success: {};
|
|
213
|
+
warning: {};
|
|
214
|
+
danger: {};
|
|
215
|
+
};
|
|
216
|
+
variant: {
|
|
217
|
+
solid: {};
|
|
218
|
+
flat: {};
|
|
219
|
+
bordered: {
|
|
220
|
+
base: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
radius: {
|
|
224
|
+
none: {
|
|
225
|
+
base: string;
|
|
226
|
+
};
|
|
227
|
+
sm: {
|
|
228
|
+
base: string;
|
|
229
|
+
};
|
|
230
|
+
md: {
|
|
231
|
+
base: string;
|
|
232
|
+
};
|
|
233
|
+
lg: {
|
|
234
|
+
base: string;
|
|
235
|
+
};
|
|
236
|
+
full: {
|
|
237
|
+
base: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
hasDescription: {
|
|
241
|
+
true: {
|
|
242
|
+
alertIcon: string;
|
|
243
|
+
};
|
|
244
|
+
false: {
|
|
245
|
+
base: string;
|
|
246
|
+
mainWrapper: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}, {
|
|
250
|
+
base: string;
|
|
251
|
+
mainWrapper: string[];
|
|
252
|
+
title: string;
|
|
253
|
+
description: string;
|
|
254
|
+
closeButton: string;
|
|
255
|
+
alertIcon: string;
|
|
256
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
257
|
+
color: {
|
|
258
|
+
default: {};
|
|
259
|
+
primary: {};
|
|
260
|
+
secondary: {};
|
|
261
|
+
success: {};
|
|
262
|
+
warning: {};
|
|
263
|
+
danger: {};
|
|
264
|
+
};
|
|
265
|
+
variant: {
|
|
266
|
+
solid: {};
|
|
267
|
+
flat: {};
|
|
268
|
+
bordered: {
|
|
269
|
+
base: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
radius: {
|
|
273
|
+
none: {
|
|
274
|
+
base: string;
|
|
275
|
+
};
|
|
276
|
+
sm: {
|
|
277
|
+
base: string;
|
|
278
|
+
};
|
|
279
|
+
md: {
|
|
280
|
+
base: string;
|
|
281
|
+
};
|
|
282
|
+
lg: {
|
|
283
|
+
base: string;
|
|
284
|
+
};
|
|
285
|
+
full: {
|
|
286
|
+
base: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
hasDescription: {
|
|
290
|
+
true: {
|
|
291
|
+
alertIcon: string;
|
|
292
|
+
};
|
|
293
|
+
false: {
|
|
294
|
+
base: string;
|
|
295
|
+
mainWrapper: string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
}, {
|
|
299
|
+
color: {
|
|
300
|
+
default: {};
|
|
301
|
+
primary: {};
|
|
302
|
+
secondary: {};
|
|
303
|
+
success: {};
|
|
304
|
+
warning: {};
|
|
305
|
+
danger: {};
|
|
306
|
+
};
|
|
307
|
+
variant: {
|
|
308
|
+
solid: {};
|
|
309
|
+
flat: {};
|
|
310
|
+
bordered: {
|
|
311
|
+
base: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
radius: {
|
|
315
|
+
none: {
|
|
316
|
+
base: string;
|
|
317
|
+
};
|
|
318
|
+
sm: {
|
|
319
|
+
base: string;
|
|
320
|
+
};
|
|
321
|
+
md: {
|
|
322
|
+
base: string;
|
|
323
|
+
};
|
|
324
|
+
lg: {
|
|
325
|
+
base: string;
|
|
326
|
+
};
|
|
327
|
+
full: {
|
|
328
|
+
base: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
hasDescription: {
|
|
332
|
+
true: {
|
|
333
|
+
alertIcon: string;
|
|
334
|
+
};
|
|
335
|
+
false: {
|
|
336
|
+
base: string;
|
|
337
|
+
mainWrapper: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
}>, unknown, unknown, undefined>>;
|
|
341
|
+
type AlertVariantProps = VariantProps<typeof alert>;
|
|
342
|
+
type AlertSlots = keyof ReturnType<typeof alert>;
|
|
343
|
+
|
|
344
|
+
export { AlertSlots, AlertVariantProps, alert };
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/alert.ts
|
|
21
|
+
var alert_exports = {};
|
|
22
|
+
__export(alert_exports, {
|
|
23
|
+
alert: () => alert
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(alert_exports);
|
|
26
|
+
|
|
27
|
+
// src/utils/tv.ts
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/utils/tw-merge-config.ts
|
|
31
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
32
|
+
var twMergeConfig = {
|
|
33
|
+
theme: {
|
|
34
|
+
opacity: ["disabled"],
|
|
35
|
+
spacing: ["divider"],
|
|
36
|
+
borderWidth: COMMON_UNITS,
|
|
37
|
+
borderRadius: COMMON_UNITS
|
|
38
|
+
},
|
|
39
|
+
classGroups: {
|
|
40
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
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
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/utils/tv.ts
|
|
54
|
+
var tv = (options, config) => {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
57
|
+
...config,
|
|
58
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
59
|
+
twMergeConfig: {
|
|
60
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
61
|
+
theme: {
|
|
62
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
63
|
+
...twMergeConfig.theme
|
|
64
|
+
},
|
|
65
|
+
classGroups: {
|
|
66
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
67
|
+
...twMergeConfig.classGroups
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// src/utils/variants.ts
|
|
74
|
+
var solid = {
|
|
75
|
+
default: "bg-default text-default-foreground",
|
|
76
|
+
primary: "bg-primary text-primary-foreground",
|
|
77
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
78
|
+
success: "bg-success text-success-foreground",
|
|
79
|
+
warning: "bg-warning text-warning-foreground",
|
|
80
|
+
danger: "bg-danger text-danger-foreground",
|
|
81
|
+
foreground: "bg-foreground text-background"
|
|
82
|
+
};
|
|
83
|
+
var shadow = {
|
|
84
|
+
default: "shadow-lg shadow-default/50 bg-default text-default-foreground",
|
|
85
|
+
primary: "shadow-lg shadow-primary/40 bg-primary text-primary-foreground",
|
|
86
|
+
secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",
|
|
87
|
+
success: "shadow-lg shadow-success/40 bg-success text-success-foreground",
|
|
88
|
+
warning: "shadow-lg shadow-warning/40 bg-warning text-warning-foreground",
|
|
89
|
+
danger: "shadow-lg shadow-danger/40 bg-danger text-danger-foreground",
|
|
90
|
+
foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
|
|
91
|
+
};
|
|
92
|
+
var bordered = {
|
|
93
|
+
default: "bg-transparent border-default text-foreground",
|
|
94
|
+
primary: "bg-transparent border-primary text-primary",
|
|
95
|
+
secondary: "bg-transparent border-secondary text-secondary",
|
|
96
|
+
success: "bg-transparent border-success text-success",
|
|
97
|
+
warning: "bg-transparent border-warning text-warning",
|
|
98
|
+
danger: "bg-transparent border-danger text-danger",
|
|
99
|
+
foreground: "bg-transparent border-foreground text-foreground"
|
|
100
|
+
};
|
|
101
|
+
var flat = {
|
|
102
|
+
default: "bg-default/40 text-default-700",
|
|
103
|
+
primary: "bg-primary/20 text-primary-600",
|
|
104
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
105
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
106
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
107
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
108
|
+
foreground: "bg-foreground/10 text-foreground"
|
|
109
|
+
};
|
|
110
|
+
var faded = {
|
|
111
|
+
default: "border-default bg-default-100 text-default-foreground",
|
|
112
|
+
primary: "border-default bg-default-100 text-primary",
|
|
113
|
+
secondary: "border-default bg-default-100 text-secondary",
|
|
114
|
+
success: "border-default bg-default-100 text-success",
|
|
115
|
+
warning: "border-default bg-default-100 text-warning",
|
|
116
|
+
danger: "border-default bg-default-100 text-danger",
|
|
117
|
+
foreground: "border-default bg-default-100 text-foreground"
|
|
118
|
+
};
|
|
119
|
+
var light = {
|
|
120
|
+
default: "bg-transparent text-default-foreground",
|
|
121
|
+
primary: "bg-transparent text-primary",
|
|
122
|
+
secondary: "bg-transparent text-secondary",
|
|
123
|
+
success: "bg-transparent text-success",
|
|
124
|
+
warning: "bg-transparent text-warning",
|
|
125
|
+
danger: "bg-transparent text-danger",
|
|
126
|
+
foreground: "bg-transparent text-foreground"
|
|
127
|
+
};
|
|
128
|
+
var ghost = {
|
|
129
|
+
default: "border-default text-default-foreground",
|
|
130
|
+
primary: "border-primary text-primary",
|
|
131
|
+
secondary: "border-secondary text-secondary",
|
|
132
|
+
success: "border-success text-success",
|
|
133
|
+
warning: "border-warning text-warning",
|
|
134
|
+
danger: "border-danger text-danger",
|
|
135
|
+
foreground: "border-foreground text-foreground hover:!bg-foreground"
|
|
136
|
+
};
|
|
137
|
+
var colorVariants = {
|
|
138
|
+
solid,
|
|
139
|
+
shadow,
|
|
140
|
+
bordered,
|
|
141
|
+
flat,
|
|
142
|
+
faded,
|
|
143
|
+
light,
|
|
144
|
+
ghost
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// src/components/alert.ts
|
|
148
|
+
var alert = tv({
|
|
149
|
+
slots: {
|
|
150
|
+
base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
|
|
151
|
+
mainWrapper: [
|
|
152
|
+
"flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
|
|
153
|
+
],
|
|
154
|
+
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
155
|
+
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
156
|
+
closeButton: "relative text-inherit",
|
|
157
|
+
alertIcon: "fill-current w-6"
|
|
158
|
+
},
|
|
159
|
+
variants: {
|
|
160
|
+
color: {
|
|
161
|
+
default: {},
|
|
162
|
+
primary: {},
|
|
163
|
+
secondary: {},
|
|
164
|
+
success: {},
|
|
165
|
+
warning: {},
|
|
166
|
+
danger: {}
|
|
167
|
+
},
|
|
168
|
+
variant: {
|
|
169
|
+
solid: {},
|
|
170
|
+
flat: {},
|
|
171
|
+
bordered: {
|
|
172
|
+
base: "border-medium bg-transparent"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
radius: {
|
|
176
|
+
none: {
|
|
177
|
+
base: "rounded-none"
|
|
178
|
+
},
|
|
179
|
+
sm: {
|
|
180
|
+
base: "rounded-small"
|
|
181
|
+
},
|
|
182
|
+
md: {
|
|
183
|
+
base: "rounded-medium"
|
|
184
|
+
},
|
|
185
|
+
lg: {
|
|
186
|
+
base: "rounded-large"
|
|
187
|
+
},
|
|
188
|
+
full: {
|
|
189
|
+
base: "rounded-full"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
hasDescription: {
|
|
193
|
+
true: {
|
|
194
|
+
alertIcon: "mt-0.5"
|
|
195
|
+
},
|
|
196
|
+
false: {
|
|
197
|
+
base: "items-center",
|
|
198
|
+
mainWrapper: "justify-center"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
defaultVariants: {
|
|
203
|
+
color: "default",
|
|
204
|
+
variant: "flat",
|
|
205
|
+
radius: "md"
|
|
206
|
+
},
|
|
207
|
+
compoundVariants: [
|
|
208
|
+
{
|
|
209
|
+
variant: "solid",
|
|
210
|
+
color: "default",
|
|
211
|
+
class: {
|
|
212
|
+
base: colorVariants.solid.default,
|
|
213
|
+
closeButton: "data-[hover]:bg-default-100",
|
|
214
|
+
alertIcon: "text-default-foreground"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
variant: "solid",
|
|
219
|
+
color: "primary",
|
|
220
|
+
class: {
|
|
221
|
+
base: colorVariants.solid.primary
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
variant: "solid",
|
|
226
|
+
color: "secondary",
|
|
227
|
+
class: {
|
|
228
|
+
base: colorVariants.solid.secondary
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
variant: "solid",
|
|
233
|
+
color: "success",
|
|
234
|
+
class: {
|
|
235
|
+
base: colorVariants.solid.success
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
variant: "solid",
|
|
240
|
+
color: "warning",
|
|
241
|
+
class: {
|
|
242
|
+
base: colorVariants.solid.warning
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
variant: "solid",
|
|
247
|
+
color: "danger",
|
|
248
|
+
class: {
|
|
249
|
+
base: colorVariants.solid.danger
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
variant: "flat",
|
|
254
|
+
color: "default",
|
|
255
|
+
class: {
|
|
256
|
+
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
257
|
+
description: "text-default-600",
|
|
258
|
+
closeButton: "text-default-400"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
variant: "flat",
|
|
263
|
+
color: "primary",
|
|
264
|
+
class: {
|
|
265
|
+
base: colorVariants.flat.primary,
|
|
266
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
variant: "flat",
|
|
271
|
+
color: "secondary",
|
|
272
|
+
class: {
|
|
273
|
+
base: colorVariants.flat.secondary,
|
|
274
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
variant: "flat",
|
|
279
|
+
color: "success",
|
|
280
|
+
class: {
|
|
281
|
+
base: colorVariants.flat.success,
|
|
282
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
variant: "flat",
|
|
287
|
+
color: "warning",
|
|
288
|
+
class: {
|
|
289
|
+
base: colorVariants.flat.warning,
|
|
290
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
variant: "flat",
|
|
295
|
+
color: "danger",
|
|
296
|
+
class: {
|
|
297
|
+
base: colorVariants.flat.danger,
|
|
298
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
variant: "bordered",
|
|
303
|
+
color: "default",
|
|
304
|
+
class: {
|
|
305
|
+
base: [colorVariants.bordered.default],
|
|
306
|
+
description: "text-default-600",
|
|
307
|
+
closeButton: "text-default-400"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
variant: "bordered",
|
|
312
|
+
color: "primary",
|
|
313
|
+
class: {
|
|
314
|
+
base: [colorVariants.bordered.primary],
|
|
315
|
+
closeButton: "data-[hover]:bg-primary-50"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
variant: "bordered",
|
|
320
|
+
color: "secondary",
|
|
321
|
+
class: {
|
|
322
|
+
base: [colorVariants.bordered.secondary],
|
|
323
|
+
closeButton: "data-[hover]:bg-secondary-50"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
variant: "bordered",
|
|
328
|
+
color: "success",
|
|
329
|
+
class: {
|
|
330
|
+
base: [colorVariants.bordered.success],
|
|
331
|
+
closeButton: "data-[hover]:bg-success-50"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
variant: "bordered",
|
|
336
|
+
color: "warning",
|
|
337
|
+
class: {
|
|
338
|
+
base: [colorVariants.bordered.warning],
|
|
339
|
+
closeButton: "data-[hover]:bg-warning-100"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
variant: "bordered",
|
|
344
|
+
color: "danger",
|
|
345
|
+
class: {
|
|
346
|
+
base: [colorVariants.bordered.danger],
|
|
347
|
+
closeButton: "data-[hover]:bg-danger-50"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
});
|
|
352
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
353
|
+
0 && (module.exports = {
|
|
354
|
+
alert
|
|
355
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
alert
|
|
3
|
+
} from "../chunk-3XDFZGUJ.mjs";
|
|
4
|
+
import "../chunk-IV3K5WDK.mjs";
|
|
5
|
+
import "../chunk-GQT3YUX3.mjs";
|
|
6
|
+
import "../chunk-46U6G7UJ.mjs";
|
|
7
|
+
import "../chunk-UWE6H66T.mjs";
|
|
8
|
+
import "../chunk-GIXI35A3.mjs";
|
|
9
|
+
import "../chunk-XHQUSKIE.mjs";
|
|
10
|
+
export {
|
|
11
|
+
alert
|
|
12
|
+
};
|
|
@@ -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
|
|