@nextui-org/theme 2.3.0-beta.4 → 2.3.0-beta.6
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-3XDFZGUJ.mjs → chunk-SKCOO5MF.mjs} +131 -23
- package/dist/components/alert.d.ts +97 -17
- package/dist/components/alert.js +131 -23
- package/dist/components/alert.mjs +1 -1
- package/dist/components/index.js +131 -23
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +131 -23
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -8,13 +8,12 @@ import {
|
|
|
8
8
|
// src/components/alert.ts
|
|
9
9
|
var alert = tv({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "flex flex-row w-full
|
|
12
|
-
mainWrapper:
|
|
13
|
-
|
|
14
|
-
],
|
|
15
|
-
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
16
|
-
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
11
|
+
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
|
12
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
|
|
13
|
+
title: "w-full font-medium block text-inherit leading-5",
|
|
14
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
17
15
|
closeButton: "relative text-inherit",
|
|
16
|
+
iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
|
|
18
17
|
alertIcon: "fill-current w-6"
|
|
19
18
|
},
|
|
20
19
|
variants: {
|
|
@@ -29,8 +28,11 @@ var alert = tv({
|
|
|
29
28
|
variant: {
|
|
30
29
|
solid: {},
|
|
31
30
|
flat: {},
|
|
31
|
+
faded: {
|
|
32
|
+
base: "border-small"
|
|
33
|
+
},
|
|
32
34
|
bordered: {
|
|
33
|
-
base: "border-
|
|
35
|
+
base: "border-small bg-transparent"
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
radius: {
|
|
@@ -50,10 +52,18 @@ var alert = tv({
|
|
|
50
52
|
base: "rounded-full"
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
|
-
|
|
55
|
+
hideIcon: {
|
|
54
56
|
true: {
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
+
iconWrapper: "hidden"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
hideIconWrapper: {
|
|
61
|
+
true: {
|
|
62
|
+
base: "gap-x-0",
|
|
63
|
+
iconWrapper: "!bg-transparent !shadow-none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
hasDescription: {
|
|
57
67
|
false: {
|
|
58
68
|
base: "items-center",
|
|
59
69
|
mainWrapper: "justify-center"
|
|
@@ -63,7 +73,9 @@ var alert = tv({
|
|
|
63
73
|
defaultVariants: {
|
|
64
74
|
color: "default",
|
|
65
75
|
variant: "flat",
|
|
66
|
-
radius: "md"
|
|
76
|
+
radius: "md",
|
|
77
|
+
hideIcon: false,
|
|
78
|
+
hideIconWrapper: false
|
|
67
79
|
},
|
|
68
80
|
compoundVariants: [
|
|
69
81
|
{
|
|
@@ -111,52 +123,100 @@ var alert = tv({
|
|
|
111
123
|
}
|
|
112
124
|
},
|
|
113
125
|
{
|
|
114
|
-
variant: "flat",
|
|
126
|
+
variant: ["flat", "faded"],
|
|
115
127
|
color: "default",
|
|
116
128
|
class: {
|
|
117
129
|
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
118
130
|
description: "text-default-600",
|
|
119
|
-
closeButton: "text-default-400"
|
|
131
|
+
closeButton: "text-default-400",
|
|
132
|
+
iconWrapper: "bg-default-50 dark:bg-default-100"
|
|
120
133
|
}
|
|
121
134
|
},
|
|
122
135
|
{
|
|
123
|
-
variant: "flat",
|
|
136
|
+
variant: ["flat", "faded"],
|
|
124
137
|
color: "primary",
|
|
125
138
|
class: {
|
|
126
139
|
base: colorVariants.flat.primary,
|
|
127
|
-
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
140
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100",
|
|
141
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100"
|
|
128
142
|
}
|
|
129
143
|
},
|
|
130
144
|
{
|
|
131
|
-
variant: "flat",
|
|
145
|
+
variant: ["flat", "faded"],
|
|
132
146
|
color: "secondary",
|
|
133
147
|
class: {
|
|
134
148
|
base: colorVariants.flat.secondary,
|
|
135
|
-
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
149
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
|
|
150
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
|
|
136
151
|
}
|
|
137
152
|
},
|
|
138
153
|
{
|
|
139
|
-
variant: "flat",
|
|
154
|
+
variant: ["flat", "faded"],
|
|
140
155
|
color: "success",
|
|
141
156
|
class: {
|
|
142
157
|
base: colorVariants.flat.success,
|
|
143
|
-
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
158
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100",
|
|
159
|
+
iconWrapper: "bg-success-50 dark:bg-success-100"
|
|
144
160
|
}
|
|
145
161
|
},
|
|
146
162
|
{
|
|
147
|
-
variant: "flat",
|
|
163
|
+
variant: ["flat", "faded"],
|
|
148
164
|
color: "warning",
|
|
149
165
|
class: {
|
|
150
166
|
base: colorVariants.flat.warning,
|
|
151
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
167
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
168
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100"
|
|
152
169
|
}
|
|
153
170
|
},
|
|
154
171
|
{
|
|
155
|
-
variant: "flat",
|
|
172
|
+
variant: ["flat", "faded"],
|
|
156
173
|
color: "danger",
|
|
157
174
|
class: {
|
|
158
175
|
base: colorVariants.flat.danger,
|
|
159
|
-
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
176
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100",
|
|
177
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
variant: "faded",
|
|
182
|
+
color: "default",
|
|
183
|
+
class: {
|
|
184
|
+
base: "border-default"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
variant: "faded",
|
|
189
|
+
color: "primary",
|
|
190
|
+
class: {
|
|
191
|
+
base: "border-primary"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
variant: "faded",
|
|
196
|
+
color: "secondary",
|
|
197
|
+
class: {
|
|
198
|
+
base: "border-secondary"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
variant: "faded",
|
|
203
|
+
color: "success",
|
|
204
|
+
class: {
|
|
205
|
+
base: "border-success"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
variant: "faded",
|
|
210
|
+
color: "warning",
|
|
211
|
+
class: {
|
|
212
|
+
base: "border-warning"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
variant: "faded",
|
|
217
|
+
color: "danger",
|
|
218
|
+
class: {
|
|
219
|
+
base: "border-danger"
|
|
160
220
|
}
|
|
161
221
|
},
|
|
162
222
|
{
|
|
@@ -207,6 +267,54 @@ var alert = tv({
|
|
|
207
267
|
base: [colorVariants.bordered.danger],
|
|
208
268
|
closeButton: "data-[hover]:bg-danger-50"
|
|
209
269
|
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
variant: ["flat", "bordered", "faded"],
|
|
273
|
+
class: {
|
|
274
|
+
iconWrapper: "shadow-small"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
variant: "bordered",
|
|
279
|
+
color: "default",
|
|
280
|
+
class: {
|
|
281
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
variant: "bordered",
|
|
286
|
+
color: "primary",
|
|
287
|
+
class: {
|
|
288
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
variant: "bordered",
|
|
293
|
+
color: "secondary",
|
|
294
|
+
class: {
|
|
295
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
variant: "bordered",
|
|
300
|
+
color: "success",
|
|
301
|
+
class: {
|
|
302
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
variant: "bordered",
|
|
307
|
+
color: "warning",
|
|
308
|
+
class: {
|
|
309
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
variant: "bordered",
|
|
314
|
+
color: "danger",
|
|
315
|
+
class: {
|
|
316
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
317
|
+
}
|
|
210
318
|
}
|
|
211
319
|
]
|
|
212
320
|
});
|
|
@@ -34,6 +34,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
34
34
|
variant: {
|
|
35
35
|
solid: {};
|
|
36
36
|
flat: {};
|
|
37
|
+
faded: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
37
40
|
bordered: {
|
|
38
41
|
base: string;
|
|
39
42
|
};
|
|
@@ -55,10 +58,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
55
58
|
base: string;
|
|
56
59
|
};
|
|
57
60
|
};
|
|
58
|
-
|
|
61
|
+
hideIcon: {
|
|
62
|
+
true: {
|
|
63
|
+
iconWrapper: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
hideIconWrapper: {
|
|
59
67
|
true: {
|
|
60
|
-
|
|
68
|
+
base: string;
|
|
69
|
+
iconWrapper: string;
|
|
61
70
|
};
|
|
71
|
+
};
|
|
72
|
+
hasDescription: {
|
|
62
73
|
false: {
|
|
63
74
|
base: string;
|
|
64
75
|
mainWrapper: string;
|
|
@@ -66,10 +77,11 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
66
77
|
};
|
|
67
78
|
}, {
|
|
68
79
|
base: string;
|
|
69
|
-
mainWrapper: string
|
|
80
|
+
mainWrapper: string;
|
|
70
81
|
title: string;
|
|
71
82
|
description: string;
|
|
72
83
|
closeButton: string;
|
|
84
|
+
iconWrapper: string;
|
|
73
85
|
alertIcon: string;
|
|
74
86
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
75
87
|
color: {
|
|
@@ -83,6 +95,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
83
95
|
variant: {
|
|
84
96
|
solid: {};
|
|
85
97
|
flat: {};
|
|
98
|
+
faded: {
|
|
99
|
+
base: string;
|
|
100
|
+
};
|
|
86
101
|
bordered: {
|
|
87
102
|
base: string;
|
|
88
103
|
};
|
|
@@ -104,10 +119,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
104
119
|
base: string;
|
|
105
120
|
};
|
|
106
121
|
};
|
|
107
|
-
|
|
122
|
+
hideIcon: {
|
|
108
123
|
true: {
|
|
109
|
-
|
|
124
|
+
iconWrapper: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
hideIconWrapper: {
|
|
128
|
+
true: {
|
|
129
|
+
base: string;
|
|
130
|
+
iconWrapper: string;
|
|
110
131
|
};
|
|
132
|
+
};
|
|
133
|
+
hasDescription: {
|
|
111
134
|
false: {
|
|
112
135
|
base: string;
|
|
113
136
|
mainWrapper: string;
|
|
@@ -125,6 +148,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
125
148
|
variant: {
|
|
126
149
|
solid: {};
|
|
127
150
|
flat: {};
|
|
151
|
+
faded: {
|
|
152
|
+
base: string;
|
|
153
|
+
};
|
|
128
154
|
bordered: {
|
|
129
155
|
base: string;
|
|
130
156
|
};
|
|
@@ -146,10 +172,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
146
172
|
base: string;
|
|
147
173
|
};
|
|
148
174
|
};
|
|
149
|
-
|
|
175
|
+
hideIcon: {
|
|
176
|
+
true: {
|
|
177
|
+
iconWrapper: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
hideIconWrapper: {
|
|
150
181
|
true: {
|
|
151
|
-
|
|
182
|
+
base: string;
|
|
183
|
+
iconWrapper: string;
|
|
152
184
|
};
|
|
185
|
+
};
|
|
186
|
+
hasDescription: {
|
|
153
187
|
false: {
|
|
154
188
|
base: string;
|
|
155
189
|
mainWrapper: string;
|
|
@@ -167,6 +201,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
167
201
|
variant: {
|
|
168
202
|
solid: {};
|
|
169
203
|
flat: {};
|
|
204
|
+
faded: {
|
|
205
|
+
base: string;
|
|
206
|
+
};
|
|
170
207
|
bordered: {
|
|
171
208
|
base: string;
|
|
172
209
|
};
|
|
@@ -188,10 +225,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
188
225
|
base: string;
|
|
189
226
|
};
|
|
190
227
|
};
|
|
191
|
-
|
|
228
|
+
hideIcon: {
|
|
192
229
|
true: {
|
|
193
|
-
|
|
230
|
+
iconWrapper: string;
|
|
194
231
|
};
|
|
232
|
+
};
|
|
233
|
+
hideIconWrapper: {
|
|
234
|
+
true: {
|
|
235
|
+
base: string;
|
|
236
|
+
iconWrapper: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
hasDescription: {
|
|
195
240
|
false: {
|
|
196
241
|
base: string;
|
|
197
242
|
mainWrapper: string;
|
|
@@ -199,10 +244,11 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
199
244
|
};
|
|
200
245
|
}, {
|
|
201
246
|
base: string;
|
|
202
|
-
mainWrapper: string
|
|
247
|
+
mainWrapper: string;
|
|
203
248
|
title: string;
|
|
204
249
|
description: string;
|
|
205
250
|
closeButton: string;
|
|
251
|
+
iconWrapper: string;
|
|
206
252
|
alertIcon: string;
|
|
207
253
|
}, tailwind_variants.TVReturnType<{
|
|
208
254
|
color: {
|
|
@@ -216,6 +262,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
216
262
|
variant: {
|
|
217
263
|
solid: {};
|
|
218
264
|
flat: {};
|
|
265
|
+
faded: {
|
|
266
|
+
base: string;
|
|
267
|
+
};
|
|
219
268
|
bordered: {
|
|
220
269
|
base: string;
|
|
221
270
|
};
|
|
@@ -237,10 +286,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
237
286
|
base: string;
|
|
238
287
|
};
|
|
239
288
|
};
|
|
240
|
-
|
|
289
|
+
hideIcon: {
|
|
290
|
+
true: {
|
|
291
|
+
iconWrapper: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
hideIconWrapper: {
|
|
241
295
|
true: {
|
|
242
|
-
|
|
296
|
+
base: string;
|
|
297
|
+
iconWrapper: string;
|
|
243
298
|
};
|
|
299
|
+
};
|
|
300
|
+
hasDescription: {
|
|
244
301
|
false: {
|
|
245
302
|
base: string;
|
|
246
303
|
mainWrapper: string;
|
|
@@ -248,10 +305,11 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
248
305
|
};
|
|
249
306
|
}, {
|
|
250
307
|
base: string;
|
|
251
|
-
mainWrapper: string
|
|
308
|
+
mainWrapper: string;
|
|
252
309
|
title: string;
|
|
253
310
|
description: string;
|
|
254
311
|
closeButton: string;
|
|
312
|
+
iconWrapper: string;
|
|
255
313
|
alertIcon: string;
|
|
256
314
|
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
257
315
|
color: {
|
|
@@ -265,6 +323,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
265
323
|
variant: {
|
|
266
324
|
solid: {};
|
|
267
325
|
flat: {};
|
|
326
|
+
faded: {
|
|
327
|
+
base: string;
|
|
328
|
+
};
|
|
268
329
|
bordered: {
|
|
269
330
|
base: string;
|
|
270
331
|
};
|
|
@@ -286,10 +347,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
286
347
|
base: string;
|
|
287
348
|
};
|
|
288
349
|
};
|
|
289
|
-
|
|
350
|
+
hideIcon: {
|
|
290
351
|
true: {
|
|
291
|
-
|
|
352
|
+
iconWrapper: string;
|
|
292
353
|
};
|
|
354
|
+
};
|
|
355
|
+
hideIconWrapper: {
|
|
356
|
+
true: {
|
|
357
|
+
base: string;
|
|
358
|
+
iconWrapper: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
hasDescription: {
|
|
293
362
|
false: {
|
|
294
363
|
base: string;
|
|
295
364
|
mainWrapper: string;
|
|
@@ -307,6 +376,9 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
307
376
|
variant: {
|
|
308
377
|
solid: {};
|
|
309
378
|
flat: {};
|
|
379
|
+
faded: {
|
|
380
|
+
base: string;
|
|
381
|
+
};
|
|
310
382
|
bordered: {
|
|
311
383
|
base: string;
|
|
312
384
|
};
|
|
@@ -328,10 +400,18 @@ declare const alert: tailwind_variants.TVReturnType<{
|
|
|
328
400
|
base: string;
|
|
329
401
|
};
|
|
330
402
|
};
|
|
331
|
-
|
|
403
|
+
hideIcon: {
|
|
332
404
|
true: {
|
|
333
|
-
|
|
405
|
+
iconWrapper: string;
|
|
334
406
|
};
|
|
407
|
+
};
|
|
408
|
+
hideIconWrapper: {
|
|
409
|
+
true: {
|
|
410
|
+
base: string;
|
|
411
|
+
iconWrapper: string;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
hasDescription: {
|
|
335
415
|
false: {
|
|
336
416
|
base: string;
|
|
337
417
|
mainWrapper: string;
|
package/dist/components/alert.js
CHANGED
|
@@ -147,13 +147,12 @@ var colorVariants = {
|
|
|
147
147
|
// src/components/alert.ts
|
|
148
148
|
var alert = tv({
|
|
149
149
|
slots: {
|
|
150
|
-
base: "flex flex-row w-full
|
|
151
|
-
mainWrapper:
|
|
152
|
-
|
|
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",
|
|
150
|
+
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
|
151
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
|
|
152
|
+
title: "w-full font-medium block text-inherit leading-5",
|
|
153
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
156
154
|
closeButton: "relative text-inherit",
|
|
155
|
+
iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
|
|
157
156
|
alertIcon: "fill-current w-6"
|
|
158
157
|
},
|
|
159
158
|
variants: {
|
|
@@ -168,8 +167,11 @@ var alert = tv({
|
|
|
168
167
|
variant: {
|
|
169
168
|
solid: {},
|
|
170
169
|
flat: {},
|
|
170
|
+
faded: {
|
|
171
|
+
base: "border-small"
|
|
172
|
+
},
|
|
171
173
|
bordered: {
|
|
172
|
-
base: "border-
|
|
174
|
+
base: "border-small bg-transparent"
|
|
173
175
|
}
|
|
174
176
|
},
|
|
175
177
|
radius: {
|
|
@@ -189,10 +191,18 @@ var alert = tv({
|
|
|
189
191
|
base: "rounded-full"
|
|
190
192
|
}
|
|
191
193
|
},
|
|
192
|
-
|
|
194
|
+
hideIcon: {
|
|
193
195
|
true: {
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
+
iconWrapper: "hidden"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
hideIconWrapper: {
|
|
200
|
+
true: {
|
|
201
|
+
base: "gap-x-0",
|
|
202
|
+
iconWrapper: "!bg-transparent !shadow-none"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
hasDescription: {
|
|
196
206
|
false: {
|
|
197
207
|
base: "items-center",
|
|
198
208
|
mainWrapper: "justify-center"
|
|
@@ -202,7 +212,9 @@ var alert = tv({
|
|
|
202
212
|
defaultVariants: {
|
|
203
213
|
color: "default",
|
|
204
214
|
variant: "flat",
|
|
205
|
-
radius: "md"
|
|
215
|
+
radius: "md",
|
|
216
|
+
hideIcon: false,
|
|
217
|
+
hideIconWrapper: false
|
|
206
218
|
},
|
|
207
219
|
compoundVariants: [
|
|
208
220
|
{
|
|
@@ -250,52 +262,100 @@ var alert = tv({
|
|
|
250
262
|
}
|
|
251
263
|
},
|
|
252
264
|
{
|
|
253
|
-
variant: "flat",
|
|
265
|
+
variant: ["flat", "faded"],
|
|
254
266
|
color: "default",
|
|
255
267
|
class: {
|
|
256
268
|
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
257
269
|
description: "text-default-600",
|
|
258
|
-
closeButton: "text-default-400"
|
|
270
|
+
closeButton: "text-default-400",
|
|
271
|
+
iconWrapper: "bg-default-50 dark:bg-default-100"
|
|
259
272
|
}
|
|
260
273
|
},
|
|
261
274
|
{
|
|
262
|
-
variant: "flat",
|
|
275
|
+
variant: ["flat", "faded"],
|
|
263
276
|
color: "primary",
|
|
264
277
|
class: {
|
|
265
278
|
base: colorVariants.flat.primary,
|
|
266
|
-
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
279
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100",
|
|
280
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100"
|
|
267
281
|
}
|
|
268
282
|
},
|
|
269
283
|
{
|
|
270
|
-
variant: "flat",
|
|
284
|
+
variant: ["flat", "faded"],
|
|
271
285
|
color: "secondary",
|
|
272
286
|
class: {
|
|
273
287
|
base: colorVariants.flat.secondary,
|
|
274
|
-
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
288
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
|
|
289
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
|
|
275
290
|
}
|
|
276
291
|
},
|
|
277
292
|
{
|
|
278
|
-
variant: "flat",
|
|
293
|
+
variant: ["flat", "faded"],
|
|
279
294
|
color: "success",
|
|
280
295
|
class: {
|
|
281
296
|
base: colorVariants.flat.success,
|
|
282
|
-
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
297
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100",
|
|
298
|
+
iconWrapper: "bg-success-50 dark:bg-success-100"
|
|
283
299
|
}
|
|
284
300
|
},
|
|
285
301
|
{
|
|
286
|
-
variant: "flat",
|
|
302
|
+
variant: ["flat", "faded"],
|
|
287
303
|
color: "warning",
|
|
288
304
|
class: {
|
|
289
305
|
base: colorVariants.flat.warning,
|
|
290
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
306
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
307
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100"
|
|
291
308
|
}
|
|
292
309
|
},
|
|
293
310
|
{
|
|
294
|
-
variant: "flat",
|
|
311
|
+
variant: ["flat", "faded"],
|
|
295
312
|
color: "danger",
|
|
296
313
|
class: {
|
|
297
314
|
base: colorVariants.flat.danger,
|
|
298
|
-
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
315
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100",
|
|
316
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
variant: "faded",
|
|
321
|
+
color: "default",
|
|
322
|
+
class: {
|
|
323
|
+
base: "border-default"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
variant: "faded",
|
|
328
|
+
color: "primary",
|
|
329
|
+
class: {
|
|
330
|
+
base: "border-primary"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
variant: "faded",
|
|
335
|
+
color: "secondary",
|
|
336
|
+
class: {
|
|
337
|
+
base: "border-secondary"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
variant: "faded",
|
|
342
|
+
color: "success",
|
|
343
|
+
class: {
|
|
344
|
+
base: "border-success"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
variant: "faded",
|
|
349
|
+
color: "warning",
|
|
350
|
+
class: {
|
|
351
|
+
base: "border-warning"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
variant: "faded",
|
|
356
|
+
color: "danger",
|
|
357
|
+
class: {
|
|
358
|
+
base: "border-danger"
|
|
299
359
|
}
|
|
300
360
|
},
|
|
301
361
|
{
|
|
@@ -346,6 +406,54 @@ var alert = tv({
|
|
|
346
406
|
base: [colorVariants.bordered.danger],
|
|
347
407
|
closeButton: "data-[hover]:bg-danger-50"
|
|
348
408
|
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
variant: ["flat", "bordered", "faded"],
|
|
412
|
+
class: {
|
|
413
|
+
iconWrapper: "shadow-small"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
variant: "bordered",
|
|
418
|
+
color: "default",
|
|
419
|
+
class: {
|
|
420
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
variant: "bordered",
|
|
425
|
+
color: "primary",
|
|
426
|
+
class: {
|
|
427
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
variant: "bordered",
|
|
432
|
+
color: "secondary",
|
|
433
|
+
class: {
|
|
434
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
variant: "bordered",
|
|
439
|
+
color: "success",
|
|
440
|
+
class: {
|
|
441
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
variant: "bordered",
|
|
446
|
+
color: "warning",
|
|
447
|
+
class: {
|
|
448
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
variant: "bordered",
|
|
453
|
+
color: "danger",
|
|
454
|
+
class: {
|
|
455
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
456
|
+
}
|
|
349
457
|
}
|
|
350
458
|
]
|
|
351
459
|
});
|
package/dist/components/index.js
CHANGED
|
@@ -8837,13 +8837,12 @@ var dateRangePicker = tv({
|
|
|
8837
8837
|
// src/components/alert.ts
|
|
8838
8838
|
var alert = tv({
|
|
8839
8839
|
slots: {
|
|
8840
|
-
base: "flex flex-row w-full
|
|
8841
|
-
mainWrapper:
|
|
8842
|
-
|
|
8843
|
-
],
|
|
8844
|
-
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
8845
|
-
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
8840
|
+
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
|
8841
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
|
|
8842
|
+
title: "w-full font-medium block text-inherit leading-5",
|
|
8843
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
8846
8844
|
closeButton: "relative text-inherit",
|
|
8845
|
+
iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
|
|
8847
8846
|
alertIcon: "fill-current w-6"
|
|
8848
8847
|
},
|
|
8849
8848
|
variants: {
|
|
@@ -8858,8 +8857,11 @@ var alert = tv({
|
|
|
8858
8857
|
variant: {
|
|
8859
8858
|
solid: {},
|
|
8860
8859
|
flat: {},
|
|
8860
|
+
faded: {
|
|
8861
|
+
base: "border-small"
|
|
8862
|
+
},
|
|
8861
8863
|
bordered: {
|
|
8862
|
-
base: "border-
|
|
8864
|
+
base: "border-small bg-transparent"
|
|
8863
8865
|
}
|
|
8864
8866
|
},
|
|
8865
8867
|
radius: {
|
|
@@ -8879,10 +8881,18 @@ var alert = tv({
|
|
|
8879
8881
|
base: "rounded-full"
|
|
8880
8882
|
}
|
|
8881
8883
|
},
|
|
8882
|
-
|
|
8884
|
+
hideIcon: {
|
|
8883
8885
|
true: {
|
|
8884
|
-
|
|
8885
|
-
}
|
|
8886
|
+
iconWrapper: "hidden"
|
|
8887
|
+
}
|
|
8888
|
+
},
|
|
8889
|
+
hideIconWrapper: {
|
|
8890
|
+
true: {
|
|
8891
|
+
base: "gap-x-0",
|
|
8892
|
+
iconWrapper: "!bg-transparent !shadow-none"
|
|
8893
|
+
}
|
|
8894
|
+
},
|
|
8895
|
+
hasDescription: {
|
|
8886
8896
|
false: {
|
|
8887
8897
|
base: "items-center",
|
|
8888
8898
|
mainWrapper: "justify-center"
|
|
@@ -8892,7 +8902,9 @@ var alert = tv({
|
|
|
8892
8902
|
defaultVariants: {
|
|
8893
8903
|
color: "default",
|
|
8894
8904
|
variant: "flat",
|
|
8895
|
-
radius: "md"
|
|
8905
|
+
radius: "md",
|
|
8906
|
+
hideIcon: false,
|
|
8907
|
+
hideIconWrapper: false
|
|
8896
8908
|
},
|
|
8897
8909
|
compoundVariants: [
|
|
8898
8910
|
{
|
|
@@ -8940,52 +8952,100 @@ var alert = tv({
|
|
|
8940
8952
|
}
|
|
8941
8953
|
},
|
|
8942
8954
|
{
|
|
8943
|
-
variant: "flat",
|
|
8955
|
+
variant: ["flat", "faded"],
|
|
8944
8956
|
color: "default",
|
|
8945
8957
|
class: {
|
|
8946
8958
|
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
8947
8959
|
description: "text-default-600",
|
|
8948
|
-
closeButton: "text-default-400"
|
|
8960
|
+
closeButton: "text-default-400",
|
|
8961
|
+
iconWrapper: "bg-default-50 dark:bg-default-100"
|
|
8949
8962
|
}
|
|
8950
8963
|
},
|
|
8951
8964
|
{
|
|
8952
|
-
variant: "flat",
|
|
8965
|
+
variant: ["flat", "faded"],
|
|
8953
8966
|
color: "primary",
|
|
8954
8967
|
class: {
|
|
8955
8968
|
base: colorVariants.flat.primary,
|
|
8956
|
-
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
8969
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100",
|
|
8970
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100"
|
|
8957
8971
|
}
|
|
8958
8972
|
},
|
|
8959
8973
|
{
|
|
8960
|
-
variant: "flat",
|
|
8974
|
+
variant: ["flat", "faded"],
|
|
8961
8975
|
color: "secondary",
|
|
8962
8976
|
class: {
|
|
8963
8977
|
base: colorVariants.flat.secondary,
|
|
8964
|
-
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
8978
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
|
|
8979
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
|
|
8965
8980
|
}
|
|
8966
8981
|
},
|
|
8967
8982
|
{
|
|
8968
|
-
variant: "flat",
|
|
8983
|
+
variant: ["flat", "faded"],
|
|
8969
8984
|
color: "success",
|
|
8970
8985
|
class: {
|
|
8971
8986
|
base: colorVariants.flat.success,
|
|
8972
|
-
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
8987
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100",
|
|
8988
|
+
iconWrapper: "bg-success-50 dark:bg-success-100"
|
|
8973
8989
|
}
|
|
8974
8990
|
},
|
|
8975
8991
|
{
|
|
8976
|
-
variant: "flat",
|
|
8992
|
+
variant: ["flat", "faded"],
|
|
8977
8993
|
color: "warning",
|
|
8978
8994
|
class: {
|
|
8979
8995
|
base: colorVariants.flat.warning,
|
|
8980
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
8996
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
8997
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100"
|
|
8981
8998
|
}
|
|
8982
8999
|
},
|
|
8983
9000
|
{
|
|
8984
|
-
variant: "flat",
|
|
9001
|
+
variant: ["flat", "faded"],
|
|
8985
9002
|
color: "danger",
|
|
8986
9003
|
class: {
|
|
8987
9004
|
base: colorVariants.flat.danger,
|
|
8988
|
-
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
9005
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100",
|
|
9006
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100"
|
|
9007
|
+
}
|
|
9008
|
+
},
|
|
9009
|
+
{
|
|
9010
|
+
variant: "faded",
|
|
9011
|
+
color: "default",
|
|
9012
|
+
class: {
|
|
9013
|
+
base: "border-default"
|
|
9014
|
+
}
|
|
9015
|
+
},
|
|
9016
|
+
{
|
|
9017
|
+
variant: "faded",
|
|
9018
|
+
color: "primary",
|
|
9019
|
+
class: {
|
|
9020
|
+
base: "border-primary"
|
|
9021
|
+
}
|
|
9022
|
+
},
|
|
9023
|
+
{
|
|
9024
|
+
variant: "faded",
|
|
9025
|
+
color: "secondary",
|
|
9026
|
+
class: {
|
|
9027
|
+
base: "border-secondary"
|
|
9028
|
+
}
|
|
9029
|
+
},
|
|
9030
|
+
{
|
|
9031
|
+
variant: "faded",
|
|
9032
|
+
color: "success",
|
|
9033
|
+
class: {
|
|
9034
|
+
base: "border-success"
|
|
9035
|
+
}
|
|
9036
|
+
},
|
|
9037
|
+
{
|
|
9038
|
+
variant: "faded",
|
|
9039
|
+
color: "warning",
|
|
9040
|
+
class: {
|
|
9041
|
+
base: "border-warning"
|
|
9042
|
+
}
|
|
9043
|
+
},
|
|
9044
|
+
{
|
|
9045
|
+
variant: "faded",
|
|
9046
|
+
color: "danger",
|
|
9047
|
+
class: {
|
|
9048
|
+
base: "border-danger"
|
|
8989
9049
|
}
|
|
8990
9050
|
},
|
|
8991
9051
|
{
|
|
@@ -9036,6 +9096,54 @@ var alert = tv({
|
|
|
9036
9096
|
base: [colorVariants.bordered.danger],
|
|
9037
9097
|
closeButton: "data-[hover]:bg-danger-50"
|
|
9038
9098
|
}
|
|
9099
|
+
},
|
|
9100
|
+
{
|
|
9101
|
+
variant: ["flat", "bordered", "faded"],
|
|
9102
|
+
class: {
|
|
9103
|
+
iconWrapper: "shadow-small"
|
|
9104
|
+
}
|
|
9105
|
+
},
|
|
9106
|
+
{
|
|
9107
|
+
variant: "bordered",
|
|
9108
|
+
color: "default",
|
|
9109
|
+
class: {
|
|
9110
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
9111
|
+
}
|
|
9112
|
+
},
|
|
9113
|
+
{
|
|
9114
|
+
variant: "bordered",
|
|
9115
|
+
color: "primary",
|
|
9116
|
+
class: {
|
|
9117
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
9118
|
+
}
|
|
9119
|
+
},
|
|
9120
|
+
{
|
|
9121
|
+
variant: "bordered",
|
|
9122
|
+
color: "secondary",
|
|
9123
|
+
class: {
|
|
9124
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
9125
|
+
}
|
|
9126
|
+
},
|
|
9127
|
+
{
|
|
9128
|
+
variant: "bordered",
|
|
9129
|
+
color: "success",
|
|
9130
|
+
class: {
|
|
9131
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
9132
|
+
}
|
|
9133
|
+
},
|
|
9134
|
+
{
|
|
9135
|
+
variant: "bordered",
|
|
9136
|
+
color: "warning",
|
|
9137
|
+
class: {
|
|
9138
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
9139
|
+
}
|
|
9140
|
+
},
|
|
9141
|
+
{
|
|
9142
|
+
variant: "bordered",
|
|
9143
|
+
color: "danger",
|
|
9144
|
+
class: {
|
|
9145
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
9146
|
+
}
|
|
9039
9147
|
}
|
|
9040
9148
|
]
|
|
9041
9149
|
});
|
package/dist/index.js
CHANGED
|
@@ -8882,13 +8882,12 @@ var dateRangePicker = tv({
|
|
|
8882
8882
|
// src/components/alert.ts
|
|
8883
8883
|
var alert = tv({
|
|
8884
8884
|
slots: {
|
|
8885
|
-
base: "flex flex-row w-full
|
|
8886
|
-
mainWrapper:
|
|
8887
|
-
|
|
8888
|
-
],
|
|
8889
|
-
title: "w-full text-medium font-normal block min-h-6 max-h-full text-inherit",
|
|
8890
|
-
description: "text-small font-normal min-h-5 max-h-full text-inherit",
|
|
8885
|
+
base: "flex flex-grow flex-row w-full items-start py-3 px-4 gap-x-1",
|
|
8886
|
+
mainWrapper: "h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit",
|
|
8887
|
+
title: "w-full font-medium block text-inherit leading-5",
|
|
8888
|
+
description: "pl-[1px] text-small font-normal text-inherit",
|
|
8891
8889
|
closeButton: "relative text-inherit",
|
|
8890
|
+
iconWrapper: "flex items-center justify-center w-9 h-9 rounded-full",
|
|
8892
8891
|
alertIcon: "fill-current w-6"
|
|
8893
8892
|
},
|
|
8894
8893
|
variants: {
|
|
@@ -8903,8 +8902,11 @@ var alert = tv({
|
|
|
8903
8902
|
variant: {
|
|
8904
8903
|
solid: {},
|
|
8905
8904
|
flat: {},
|
|
8905
|
+
faded: {
|
|
8906
|
+
base: "border-small"
|
|
8907
|
+
},
|
|
8906
8908
|
bordered: {
|
|
8907
|
-
base: "border-
|
|
8909
|
+
base: "border-small bg-transparent"
|
|
8908
8910
|
}
|
|
8909
8911
|
},
|
|
8910
8912
|
radius: {
|
|
@@ -8924,10 +8926,18 @@ var alert = tv({
|
|
|
8924
8926
|
base: "rounded-full"
|
|
8925
8927
|
}
|
|
8926
8928
|
},
|
|
8927
|
-
|
|
8929
|
+
hideIcon: {
|
|
8928
8930
|
true: {
|
|
8929
|
-
|
|
8930
|
-
}
|
|
8931
|
+
iconWrapper: "hidden"
|
|
8932
|
+
}
|
|
8933
|
+
},
|
|
8934
|
+
hideIconWrapper: {
|
|
8935
|
+
true: {
|
|
8936
|
+
base: "gap-x-0",
|
|
8937
|
+
iconWrapper: "!bg-transparent !shadow-none"
|
|
8938
|
+
}
|
|
8939
|
+
},
|
|
8940
|
+
hasDescription: {
|
|
8931
8941
|
false: {
|
|
8932
8942
|
base: "items-center",
|
|
8933
8943
|
mainWrapper: "justify-center"
|
|
@@ -8937,7 +8947,9 @@ var alert = tv({
|
|
|
8937
8947
|
defaultVariants: {
|
|
8938
8948
|
color: "default",
|
|
8939
8949
|
variant: "flat",
|
|
8940
|
-
radius: "md"
|
|
8950
|
+
radius: "md",
|
|
8951
|
+
hideIcon: false,
|
|
8952
|
+
hideIconWrapper: false
|
|
8941
8953
|
},
|
|
8942
8954
|
compoundVariants: [
|
|
8943
8955
|
{
|
|
@@ -8985,52 +8997,100 @@ var alert = tv({
|
|
|
8985
8997
|
}
|
|
8986
8998
|
},
|
|
8987
8999
|
{
|
|
8988
|
-
variant: "flat",
|
|
9000
|
+
variant: ["flat", "faded"],
|
|
8989
9001
|
color: "default",
|
|
8990
9002
|
class: {
|
|
8991
9003
|
base: [colorVariants.flat.default, "text-default-foreground"],
|
|
8992
9004
|
description: "text-default-600",
|
|
8993
|
-
closeButton: "text-default-400"
|
|
9005
|
+
closeButton: "text-default-400",
|
|
9006
|
+
iconWrapper: "bg-default-50 dark:bg-default-100"
|
|
8994
9007
|
}
|
|
8995
9008
|
},
|
|
8996
9009
|
{
|
|
8997
|
-
variant: "flat",
|
|
9010
|
+
variant: ["flat", "faded"],
|
|
8998
9011
|
color: "primary",
|
|
8999
9012
|
class: {
|
|
9000
9013
|
base: colorVariants.flat.primary,
|
|
9001
|
-
closeButton: "text-primary-400 data-[hover]:bg-primary-100"
|
|
9014
|
+
closeButton: "text-primary-400 data-[hover]:bg-primary-100",
|
|
9015
|
+
iconWrapper: "bg-primary-50 dark:bg-primary-100"
|
|
9002
9016
|
}
|
|
9003
9017
|
},
|
|
9004
9018
|
{
|
|
9005
|
-
variant: "flat",
|
|
9019
|
+
variant: ["flat", "faded"],
|
|
9006
9020
|
color: "secondary",
|
|
9007
9021
|
class: {
|
|
9008
9022
|
base: colorVariants.flat.secondary,
|
|
9009
|
-
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
|
|
9023
|
+
closeButton: "text-secondary-400 data-[hover]:bg-secondary-100",
|
|
9024
|
+
iconWrapper: "bg-secondary-50 dark:bg-secondary-100"
|
|
9010
9025
|
}
|
|
9011
9026
|
},
|
|
9012
9027
|
{
|
|
9013
|
-
variant: "flat",
|
|
9028
|
+
variant: ["flat", "faded"],
|
|
9014
9029
|
color: "success",
|
|
9015
9030
|
class: {
|
|
9016
9031
|
base: colorVariants.flat.success,
|
|
9017
|
-
closeButton: "text-success-400 data-[hover]:bg-success-100"
|
|
9032
|
+
closeButton: "text-success-400 data-[hover]:bg-success-100",
|
|
9033
|
+
iconWrapper: "bg-success-50 dark:bg-success-100"
|
|
9018
9034
|
}
|
|
9019
9035
|
},
|
|
9020
9036
|
{
|
|
9021
|
-
variant: "flat",
|
|
9037
|
+
variant: ["flat", "faded"],
|
|
9022
9038
|
color: "warning",
|
|
9023
9039
|
class: {
|
|
9024
9040
|
base: colorVariants.flat.warning,
|
|
9025
|
-
closeButton: "text-warning-500 data-[hover]:bg-warning-200"
|
|
9041
|
+
closeButton: "text-warning-500 data-[hover]:bg-warning-200",
|
|
9042
|
+
iconWrapper: "bg-warning-50 dark:bg-warning-100"
|
|
9026
9043
|
}
|
|
9027
9044
|
},
|
|
9028
9045
|
{
|
|
9029
|
-
variant: "flat",
|
|
9046
|
+
variant: ["flat", "faded"],
|
|
9030
9047
|
color: "danger",
|
|
9031
9048
|
class: {
|
|
9032
9049
|
base: colorVariants.flat.danger,
|
|
9033
|
-
closeButton: "text-danger-400 data-[hover]:bg-danger-100"
|
|
9050
|
+
closeButton: "text-danger-400 data-[hover]:bg-danger-100",
|
|
9051
|
+
iconWrapper: "bg-danger-50 dark:bg-danger-100"
|
|
9052
|
+
}
|
|
9053
|
+
},
|
|
9054
|
+
{
|
|
9055
|
+
variant: "faded",
|
|
9056
|
+
color: "default",
|
|
9057
|
+
class: {
|
|
9058
|
+
base: "border-default"
|
|
9059
|
+
}
|
|
9060
|
+
},
|
|
9061
|
+
{
|
|
9062
|
+
variant: "faded",
|
|
9063
|
+
color: "primary",
|
|
9064
|
+
class: {
|
|
9065
|
+
base: "border-primary"
|
|
9066
|
+
}
|
|
9067
|
+
},
|
|
9068
|
+
{
|
|
9069
|
+
variant: "faded",
|
|
9070
|
+
color: "secondary",
|
|
9071
|
+
class: {
|
|
9072
|
+
base: "border-secondary"
|
|
9073
|
+
}
|
|
9074
|
+
},
|
|
9075
|
+
{
|
|
9076
|
+
variant: "faded",
|
|
9077
|
+
color: "success",
|
|
9078
|
+
class: {
|
|
9079
|
+
base: "border-success"
|
|
9080
|
+
}
|
|
9081
|
+
},
|
|
9082
|
+
{
|
|
9083
|
+
variant: "faded",
|
|
9084
|
+
color: "warning",
|
|
9085
|
+
class: {
|
|
9086
|
+
base: "border-warning"
|
|
9087
|
+
}
|
|
9088
|
+
},
|
|
9089
|
+
{
|
|
9090
|
+
variant: "faded",
|
|
9091
|
+
color: "danger",
|
|
9092
|
+
class: {
|
|
9093
|
+
base: "border-danger"
|
|
9034
9094
|
}
|
|
9035
9095
|
},
|
|
9036
9096
|
{
|
|
@@ -9081,6 +9141,54 @@ var alert = tv({
|
|
|
9081
9141
|
base: [colorVariants.bordered.danger],
|
|
9082
9142
|
closeButton: "data-[hover]:bg-danger-50"
|
|
9083
9143
|
}
|
|
9144
|
+
},
|
|
9145
|
+
{
|
|
9146
|
+
variant: ["flat", "bordered", "faded"],
|
|
9147
|
+
class: {
|
|
9148
|
+
iconWrapper: "shadow-small"
|
|
9149
|
+
}
|
|
9150
|
+
},
|
|
9151
|
+
{
|
|
9152
|
+
variant: "bordered",
|
|
9153
|
+
color: "default",
|
|
9154
|
+
class: {
|
|
9155
|
+
iconWrapper: "bg-default-200 dark:bg-default-100"
|
|
9156
|
+
}
|
|
9157
|
+
},
|
|
9158
|
+
{
|
|
9159
|
+
variant: "bordered",
|
|
9160
|
+
color: "primary",
|
|
9161
|
+
class: {
|
|
9162
|
+
iconWrapper: "bg-primary-100 dark:bg-primary-50"
|
|
9163
|
+
}
|
|
9164
|
+
},
|
|
9165
|
+
{
|
|
9166
|
+
variant: "bordered",
|
|
9167
|
+
color: "secondary",
|
|
9168
|
+
class: {
|
|
9169
|
+
iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
|
|
9170
|
+
}
|
|
9171
|
+
},
|
|
9172
|
+
{
|
|
9173
|
+
variant: "bordered",
|
|
9174
|
+
color: "success",
|
|
9175
|
+
class: {
|
|
9176
|
+
iconWrapper: "bg-success-100 dark:bg-success-50"
|
|
9177
|
+
}
|
|
9178
|
+
},
|
|
9179
|
+
{
|
|
9180
|
+
variant: "bordered",
|
|
9181
|
+
color: "warning",
|
|
9182
|
+
class: {
|
|
9183
|
+
iconWrapper: "bg-warning-100 dark:bg-warning-50"
|
|
9184
|
+
}
|
|
9185
|
+
},
|
|
9186
|
+
{
|
|
9187
|
+
variant: "bordered",
|
|
9188
|
+
color: "danger",
|
|
9189
|
+
class: {
|
|
9190
|
+
iconWrapper: "bg-danger-100 dark:bg-danger-50"
|
|
9191
|
+
}
|
|
9084
9192
|
}
|
|
9085
9193
|
]
|
|
9086
9194
|
});
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextui-org/theme",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.6",
|
|
4
4
|
"description": "The default theme for NextUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"clsx": "^1.2.1",
|
|
45
45
|
"tailwind-variants": "^0.1.20",
|
|
46
46
|
"tailwind-merge": "^2.5.2",
|
|
47
|
-
"@nextui-org/shared-utils": "2.0.9-beta.
|
|
47
|
+
"@nextui-org/shared-utils": "2.0.9-beta.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"tailwindcss": ">=3.4.0"
|