@nextui-org/theme 2.3.0-beta.5 → 2.3.0-beta.7

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.
@@ -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
- hasDescription: {
61
+ hideIcon: {
62
+ true: {
63
+ iconWrapper: string;
64
+ };
65
+ };
66
+ hideIconWrapper: {
59
67
  true: {
60
- alertIcon: string;
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
- hasDescription: {
122
+ hideIcon: {
108
123
  true: {
109
- alertIcon: string;
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
- hasDescription: {
175
+ hideIcon: {
176
+ true: {
177
+ iconWrapper: string;
178
+ };
179
+ };
180
+ hideIconWrapper: {
150
181
  true: {
151
- alertIcon: string;
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
- hasDescription: {
228
+ hideIcon: {
192
229
  true: {
193
- alertIcon: string;
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
- hasDescription: {
289
+ hideIcon: {
290
+ true: {
291
+ iconWrapper: string;
292
+ };
293
+ };
294
+ hideIconWrapper: {
241
295
  true: {
242
- alertIcon: string;
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
- hasDescription: {
350
+ hideIcon: {
290
351
  true: {
291
- alertIcon: string;
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
- hasDescription: {
403
+ hideIcon: {
332
404
  true: {
333
- alertIcon: string;
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;
@@ -147,14 +147,13 @@ var colorVariants = {
147
147
  // src/components/alert.ts
148
148
  var alert = tv({
149
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"
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: "text-small w-full font-medium block text-inherit leading-5",
153
+ description: "pl-[1px] text-small font-normal text-inherit",
154
+ closeButton: "relative text-inherit translate-x-1 -translate-y-1",
155
+ iconWrapper: "flex-none relative w-9 h-9 rounded-full",
156
+ alertIcon: "fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
158
157
  },
159
158
  variants: {
160
159
  color: {
@@ -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-medium bg-transparent"
174
+ base: "border-small bg-transparent"
173
175
  }
174
176
  },
175
177
  radius: {
@@ -189,12 +191,20 @@ var alert = tv({
189
191
  base: "rounded-full"
190
192
  }
191
193
  },
192
- hasDescription: {
194
+ hideIcon: {
193
195
  true: {
194
- alertIcon: "mt-0.5"
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
- base: "items-center",
207
+ base: "items-start",
198
208
  mainWrapper: "justify-center"
199
209
  }
200
210
  }
@@ -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,104 @@ var alert = tv({
250
262
  }
251
263
  },
252
264
  {
253
- variant: "flat",
265
+ variant: ["flat", "faded"],
254
266
  color: "default",
255
267
  class: {
256
- base: [colorVariants.flat.default, "text-default-foreground"],
268
+ base: [
269
+ colorVariants.flat.default,
270
+ "bg-default-100 dark:bg-default-50",
271
+ "text-default-foreground"
272
+ ],
257
273
  description: "text-default-600",
258
- closeButton: "text-default-400"
274
+ closeButton: "text-default-400",
275
+ iconWrapper: "bg-default-50 dark:bg-default-100 border-default-200"
276
+ }
277
+ },
278
+ {
279
+ variant: ["flat", "faded"],
280
+ color: "primary",
281
+ class: {
282
+ base: [colorVariants.flat.primary, "bg-primary-50"],
283
+ closeButton: "text-primary-500 data-[hover]:bg-primary-200",
284
+ iconWrapper: "bg-primary-50 dark:bg-primary-100 border-primary-100"
285
+ }
286
+ },
287
+ {
288
+ variant: ["flat", "faded"],
289
+ color: "secondary",
290
+ class: {
291
+ base: [colorVariants.flat.secondary, "bg-secondary-50"],
292
+ closeButton: "text-secondary-500 data-[hover]:bg-secondary-200",
293
+ iconWrapper: "bg-secondary-50 dark:bg-secondary-100 border-secondary-100"
294
+ }
295
+ },
296
+ {
297
+ variant: ["flat", "faded"],
298
+ color: "success",
299
+ class: {
300
+ base: [colorVariants.flat.success, "bg-success-50"],
301
+ closeButton: "text-success-500 data-[hover]:bg-success-200",
302
+ iconWrapper: "bg-success-50 dark:bg-success-100 border-success-100"
259
303
  }
260
304
  },
261
305
  {
262
- variant: "flat",
306
+ variant: ["flat", "faded"],
307
+ color: "warning",
308
+ class: {
309
+ base: [colorVariants.flat.warning, "bg-warning-50"],
310
+ closeButton: "text-warning-500 data-[hover]:bg-warning-200",
311
+ iconWrapper: "bg-warning-50 dark:bg-warning-100 border-warning-100"
312
+ }
313
+ },
314
+ {
315
+ variant: ["flat", "faded"],
316
+ color: "danger",
317
+ class: {
318
+ base: [colorVariants.flat.danger, "bg-danger-50"],
319
+ closeButton: "text-danger-500 data-[hover]:bg-danger-200",
320
+ iconWrapper: "bg-danger-50 dark:bg-danger-100 border-danger-100"
321
+ }
322
+ },
323
+ {
324
+ variant: "faded",
325
+ color: "default",
326
+ class: {
327
+ base: "border-default-300 dark:border-default-200"
328
+ }
329
+ },
330
+ {
331
+ variant: "faded",
263
332
  color: "primary",
264
333
  class: {
265
- base: colorVariants.flat.primary,
266
- closeButton: "text-primary-400 data-[hover]:bg-primary-100"
334
+ base: "border-primary-200"
267
335
  }
268
336
  },
269
337
  {
270
- variant: "flat",
338
+ variant: "faded",
271
339
  color: "secondary",
272
340
  class: {
273
- base: colorVariants.flat.secondary,
274
- closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
341
+ base: "border-secondary-200"
275
342
  }
276
343
  },
277
344
  {
278
- variant: "flat",
345
+ variant: "faded",
279
346
  color: "success",
280
347
  class: {
281
- base: colorVariants.flat.success,
282
- closeButton: "text-success-400 data-[hover]:bg-success-100"
348
+ base: "border-success-200 dark:border-success-100"
283
349
  }
284
350
  },
285
351
  {
286
- variant: "flat",
352
+ variant: "faded",
287
353
  color: "warning",
288
354
  class: {
289
- base: colorVariants.flat.warning,
290
- closeButton: "text-warning-500 data-[hover]:bg-warning-200"
355
+ base: "border-warning-200 dark:border-warning-100"
291
356
  }
292
357
  },
293
358
  {
294
- variant: "flat",
359
+ variant: "faded",
295
360
  color: "danger",
296
361
  class: {
297
- base: colorVariants.flat.danger,
298
- closeButton: "text-danger-400 data-[hover]:bg-danger-100"
362
+ base: "border-danger-200 dark:border-danger-100"
299
363
  }
300
364
  },
301
365
  {
@@ -346,6 +410,60 @@ var alert = tv({
346
410
  base: [colorVariants.bordered.danger],
347
411
  closeButton: "data-[hover]:bg-danger-50"
348
412
  }
413
+ },
414
+ {
415
+ variant: ["flat", "bordered", "faded"],
416
+ class: {
417
+ iconWrapper: "shadow-small"
418
+ }
419
+ },
420
+ {
421
+ variant: ["flat", "faded"],
422
+ class: {
423
+ iconWrapper: "shadow-small border-1"
424
+ }
425
+ },
426
+ {
427
+ variant: "bordered",
428
+ color: "default",
429
+ class: {
430
+ iconWrapper: "bg-default-200 dark:bg-default-100"
431
+ }
432
+ },
433
+ {
434
+ variant: "bordered",
435
+ color: "primary",
436
+ class: {
437
+ iconWrapper: "bg-primary-100 dark:bg-primary-50"
438
+ }
439
+ },
440
+ {
441
+ variant: "bordered",
442
+ color: "secondary",
443
+ class: {
444
+ iconWrapper: "bg-secondary-100 dark:bg-secondary-50"
445
+ }
446
+ },
447
+ {
448
+ variant: "bordered",
449
+ color: "success",
450
+ class: {
451
+ iconWrapper: "bg-success-100 dark:bg-success-50"
452
+ }
453
+ },
454
+ {
455
+ variant: "bordered",
456
+ color: "warning",
457
+ class: {
458
+ iconWrapper: "bg-warning-100 dark:bg-warning-50"
459
+ }
460
+ },
461
+ {
462
+ variant: "bordered",
463
+ color: "danger",
464
+ class: {
465
+ iconWrapper: "bg-danger-100 dark:bg-danger-50"
466
+ }
349
467
  }
350
468
  ]
351
469
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  alert
3
- } from "../chunk-3XDFZGUJ.mjs";
3
+ } from "../chunk-4NWHODJP.mjs";
4
4
  import "../chunk-IV3K5WDK.mjs";
5
5
  import "../chunk-GQT3YUX3.mjs";
6
6
  import "../chunk-46U6G7UJ.mjs";