@nextui-org/theme 2.1.3 → 2.1.5

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.
Files changed (48) hide show
  1. package/dist/{chunk-FZZINZOQ.mjs → chunk-ER6JQ3OQ.mjs} +21 -4
  2. package/dist/{chunk-PBGVMEDL.mjs → chunk-PJV3MWBL.mjs} +24 -8
  3. package/dist/{chunk-NVPBHMUQ.mjs → chunk-X3O5NF4F.mjs} +4 -7
  4. package/dist/components/accordion.d.ts +153 -2
  5. package/dist/components/avatar.d.ts +227 -2
  6. package/dist/components/badge.d.ts +199 -1
  7. package/dist/components/button.d.ts +155 -2
  8. package/dist/components/card.d.ts +225 -1
  9. package/dist/components/checkbox.d.ts +250 -2
  10. package/dist/components/chip.d.ts +304 -1
  11. package/dist/components/circular-progress.d.ts +171 -1
  12. package/dist/components/code.d.ts +64 -1
  13. package/dist/components/divider.d.ts +16 -1
  14. package/dist/components/drip.d.ts +1 -1
  15. package/dist/components/dropdown.d.ts +135 -4
  16. package/dist/components/image.d.ts +141 -1
  17. package/dist/components/index.js +49 -19
  18. package/dist/components/index.mjs +3 -3
  19. package/dist/components/input.d.ts +386 -20
  20. package/dist/components/input.js +24 -8
  21. package/dist/components/input.mjs +1 -1
  22. package/dist/components/kbd.d.ts +5 -1
  23. package/dist/components/link.d.ts +94 -1
  24. package/dist/components/menu.d.ts +152 -3
  25. package/dist/components/modal.d.ts +315 -1
  26. package/dist/components/navbar.d.ts +174 -1
  27. package/dist/components/pagination.d.ts +239 -1
  28. package/dist/components/pagination.js +21 -4
  29. package/dist/components/pagination.mjs +1 -1
  30. package/dist/components/popover.d.ts +276 -1
  31. package/dist/components/progress.d.ts +91 -1
  32. package/dist/components/radio.d.ts +231 -2
  33. package/dist/components/scroll-shadow.d.ts +28 -1
  34. package/dist/components/select.d.ts +390 -17
  35. package/dist/components/select.js +4 -7
  36. package/dist/components/select.mjs +1 -1
  37. package/dist/components/skeleton.d.ts +37 -1
  38. package/dist/components/snippet.d.ts +165 -1
  39. package/dist/components/spacer.d.ts +16 -1
  40. package/dist/components/spinner.d.ts +232 -1
  41. package/dist/components/table.d.ts +311 -1
  42. package/dist/components/tabs.d.ts +269 -1
  43. package/dist/components/toggle.d.ts +192 -1
  44. package/dist/components/user.d.ts +11 -1
  45. package/dist/index.js +49 -19
  46. package/dist/index.mjs +3 -3
  47. package/dist/types.d.ts +1 -1
  48. package/package.json +2 -2
@@ -35,6 +35,7 @@ var pagination = tv({
35
35
  "left-0",
36
36
  "select-none",
37
37
  "touch-none",
38
+ "pointer-events-none",
38
39
  "z-20"
39
40
  ],
40
41
  forwardIcon: "hidden group-hover:block group-data-[focus-visible=true]:block data-[before=true]:rotate-180",
@@ -124,7 +125,12 @@ var pagination = tv({
124
125
  },
125
126
  false: {
126
127
  item: ["data-[pressed=true]:scale-[0.97]", "transition-transform-background"],
127
- cursor: ["transition-transform", "!duration-300"]
128
+ cursor: [
129
+ "data-[moving=true]:transition-transform",
130
+ "!data-[moving=true]:duration-300",
131
+ "opacity-0",
132
+ "data-[moving]:opacity-100"
133
+ ]
128
134
  }
129
135
  }
130
136
  },
@@ -329,17 +335,28 @@ var pagination = tv({
329
335
  {
330
336
  slots: ["item", "prev", "next"],
331
337
  variant: "flat",
332
- class: ["bg-default-100", "data-[hover=true]:bg-default-200", "active:bg-default-300"]
338
+ class: [
339
+ "bg-default-100",
340
+ "[&[data-hover=true]:not([data-active=true])]:bg-default-200",
341
+ "active:bg-default-300"
342
+ ]
333
343
  },
334
344
  {
335
345
  slots: ["item", "prev", "next"],
336
346
  variant: "faded",
337
- class: ["bg-default-50", "data-[hover=true]:bg-default-100", "active:bg-default-200"]
347
+ class: [
348
+ "bg-default-50",
349
+ "[&[data-hover=true]:not([data-active=true])]:bg-default-100",
350
+ "active:bg-default-200"
351
+ ]
338
352
  },
339
353
  {
340
354
  slots: ["item", "prev", "next"],
341
355
  variant: "light",
342
- class: ["data-[hover=true]:bg-default-100", "active:bg-default-200"]
356
+ class: [
357
+ "[&[data-hover=true]:not([data-active=true])]:bg-default-100",
358
+ "active:bg-default-200"
359
+ ]
343
360
  },
344
361
  {
345
362
  slots: ["item", "cursor", "prev", "next"],
@@ -131,19 +131,14 @@ var input = tv({
131
131
  },
132
132
  labelPlacement: {
133
133
  outside: {
134
- base: "data-[has-helper=true]:pb-4",
135
134
  label: "text-foreground pb-1.5",
136
- mainWrapper: "flex flex-col",
137
- description: "absolute left-1",
138
- errorMessage: "absolute left-1"
135
+ mainWrapper: "flex flex-col"
139
136
  },
140
137
  "outside-left": {
141
- base: "flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",
138
+ base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
142
139
  inputWrapper: "flex-1",
143
140
  mainWrapper: "flex flex-col",
144
- label: "text-foreground pr-2",
145
- description: "absolute left-1",
146
- errorMessage: "absolute left-1"
141
+ label: "text-foreground pr-2"
147
142
  },
148
143
  inside: {
149
144
  label: "text-tiny cursor-text",
@@ -618,6 +613,27 @@ var input = tv({
618
613
  "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
619
614
  ]
620
615
  }
616
+ },
617
+ {
618
+ labelPlacement: "outside-left",
619
+ size: "sm",
620
+ class: {
621
+ label: "group-data-[has-helper=true]:pt-2"
622
+ }
623
+ },
624
+ {
625
+ labelPlacement: "outside-left",
626
+ size: "md",
627
+ class: {
628
+ label: "group-data-[has-helper=true]:pt-3"
629
+ }
630
+ },
631
+ {
632
+ labelPlacement: "outside-left",
633
+ size: "lg",
634
+ class: {
635
+ label: "group-data-[has-helper=true]:pt-4"
636
+ }
621
637
  }
622
638
  ]
623
639
  });
@@ -10,6 +10,7 @@ var select = tv({
10
10
  slots: {
11
11
  base: "group inline-flex flex-col relative w-full",
12
12
  label: "block text-small font-medium text-foreground-500 pointer-events-none",
13
+ mainWrapper: "w-full flex flex-col",
13
14
  trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
14
15
  innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
15
16
  selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
@@ -117,15 +118,11 @@ var select = tv({
117
118
  labelPlacement: {
118
119
  outside: {
119
120
  base: "data-[has-helper=true]:pb-4 flex flex-col",
120
- label: "text-foreground pb-1.5",
121
- description: "absolute left-1",
122
- errorMessage: "absolute left-1"
121
+ label: "text-foreground pb-1.5"
123
122
  },
124
123
  "outside-left": {
125
- base: "flex-row items-center flex-nowrap data-[has-helper=true]:pb-4",
126
- label: "text-foreground pr-2",
127
- description: "absolute left-1",
128
- errorMessage: "absolute left-1"
124
+ base: "flex-row items-center flex-nowrap items-start",
125
+ label: "text-foreground pr-2"
129
126
  },
130
127
  inside: {
131
128
  label: "text-tiny cursor-pointer",
@@ -52,7 +52,37 @@ declare const accordion: tailwind_variants.TVReturnType<{
52
52
  fullWidth: {
53
53
  true: "w-full";
54
54
  };
55
- }, undefined>;
55
+ }, undefined, tailwind_variants.TVReturnType<{
56
+ variant: {
57
+ light: "";
58
+ shadow: "px-4 shadow-medium rounded-medium bg-content1";
59
+ bordered: "px-4 border-medium border-divider rounded-medium";
60
+ splitted: "group is-splitted flex flex-col gap-2";
61
+ };
62
+ fullWidth: {
63
+ true: "w-full";
64
+ };
65
+ }, undefined, "px-2", tailwind_variants_dist_config.TVConfig<{
66
+ variant: {
67
+ light: "";
68
+ shadow: "px-4 shadow-medium rounded-medium bg-content1";
69
+ bordered: "px-4 border-medium border-divider rounded-medium";
70
+ splitted: "group is-splitted flex flex-col gap-2";
71
+ };
72
+ fullWidth: {
73
+ true: "w-full";
74
+ };
75
+ }, {
76
+ variant: {
77
+ light: "";
78
+ shadow: "px-4 shadow-medium rounded-medium bg-content1";
79
+ bordered: "px-4 border-medium border-divider rounded-medium";
80
+ splitted: "group is-splitted flex flex-col gap-2";
81
+ };
82
+ fullWidth: {
83
+ true: "w-full";
84
+ };
85
+ }>, unknown, unknown, undefined>>;
56
86
  /**
57
87
  * AccordionItem wrapper **Tailwind Variants** component
58
88
  *
@@ -243,7 +273,128 @@ declare const accordionItem: tailwind_variants.TVReturnType<{
243
273
  title: string;
244
274
  subtitle: string;
245
275
  content: string;
246
- }>;
276
+ }, tailwind_variants.TVReturnType<{
277
+ isCompact: {
278
+ true: {
279
+ trigger: string;
280
+ title: string;
281
+ subtitle: string;
282
+ indicator: string;
283
+ content: string;
284
+ };
285
+ };
286
+ isDisabled: {
287
+ true: {
288
+ base: string;
289
+ };
290
+ };
291
+ hideIndicator: {
292
+ true: {
293
+ indicator: string;
294
+ };
295
+ };
296
+ disableAnimation: {
297
+ true: {
298
+ content: string;
299
+ };
300
+ false: {
301
+ indicator: string;
302
+ trigger: string;
303
+ };
304
+ };
305
+ disableIndicatorAnimation: {
306
+ true: {
307
+ indicator: string;
308
+ };
309
+ false: {
310
+ indicator: string;
311
+ };
312
+ };
313
+ }, {
314
+ base: string[];
315
+ heading: string;
316
+ trigger: string[];
317
+ startContent: string;
318
+ indicator: string;
319
+ titleWrapper: string;
320
+ title: string;
321
+ subtitle: string;
322
+ content: string;
323
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
324
+ isCompact: {
325
+ true: {
326
+ trigger: string;
327
+ title: string;
328
+ subtitle: string;
329
+ indicator: string;
330
+ content: string;
331
+ };
332
+ };
333
+ isDisabled: {
334
+ true: {
335
+ base: string;
336
+ };
337
+ };
338
+ hideIndicator: {
339
+ true: {
340
+ indicator: string;
341
+ };
342
+ };
343
+ disableAnimation: {
344
+ true: {
345
+ content: string;
346
+ };
347
+ false: {
348
+ indicator: string;
349
+ trigger: string;
350
+ };
351
+ };
352
+ disableIndicatorAnimation: {
353
+ true: {
354
+ indicator: string;
355
+ };
356
+ false: {
357
+ indicator: string;
358
+ };
359
+ };
360
+ }, {
361
+ isCompact: {
362
+ true: {
363
+ trigger: string;
364
+ title: string;
365
+ subtitle: string;
366
+ indicator: string;
367
+ content: string;
368
+ };
369
+ };
370
+ isDisabled: {
371
+ true: {
372
+ base: string;
373
+ };
374
+ };
375
+ hideIndicator: {
376
+ true: {
377
+ indicator: string;
378
+ };
379
+ };
380
+ disableAnimation: {
381
+ true: {
382
+ content: string;
383
+ };
384
+ false: {
385
+ indicator: string;
386
+ trigger: string;
387
+ };
388
+ };
389
+ disableIndicatorAnimation: {
390
+ true: {
391
+ indicator: string;
392
+ };
393
+ false: {
394
+ indicator: string;
395
+ };
396
+ };
397
+ }>, unknown, unknown, undefined>>;
247
398
  type AccordionGroupVariantProps = VariantProps<typeof accordion>;
248
399
  type AccordionItemVariantProps = VariantProps<typeof accordionItem>;
249
400
  type AccordionItemSlots = keyof ReturnType<typeof accordionItem>;
@@ -302,7 +302,220 @@ declare const avatar: tailwind_variants.TVReturnType<{
302
302
  fallback: string[];
303
303
  name: string[];
304
304
  icon: string[];
305
- }>;
305
+ }, tailwind_variants.TVReturnType<{
306
+ size: {
307
+ sm: {
308
+ base: string;
309
+ };
310
+ md: {
311
+ base: string;
312
+ };
313
+ lg: {
314
+ base: string;
315
+ };
316
+ };
317
+ color: {
318
+ default: {
319
+ base: string;
320
+ };
321
+ primary: {
322
+ base: string;
323
+ };
324
+ secondary: {
325
+ base: string;
326
+ };
327
+ success: {
328
+ base: string;
329
+ };
330
+ warning: {
331
+ base: string;
332
+ };
333
+ danger: {
334
+ base: string;
335
+ };
336
+ };
337
+ radius: {
338
+ none: {
339
+ base: string;
340
+ };
341
+ sm: {
342
+ base: string;
343
+ };
344
+ md: {
345
+ base: string;
346
+ };
347
+ lg: {
348
+ base: string;
349
+ };
350
+ full: {
351
+ base: string;
352
+ };
353
+ };
354
+ isBordered: {
355
+ true: {
356
+ base: string;
357
+ };
358
+ };
359
+ isDisabled: {
360
+ true: {
361
+ base: string;
362
+ };
363
+ };
364
+ isInGroup: {
365
+ true: {
366
+ base: string[];
367
+ };
368
+ };
369
+ isInGridGroup: {
370
+ true: {
371
+ base: string;
372
+ };
373
+ };
374
+ }, {
375
+ base: string[];
376
+ img: string[];
377
+ fallback: string[];
378
+ name: string[];
379
+ icon: string[];
380
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
381
+ size: {
382
+ sm: {
383
+ base: string;
384
+ };
385
+ md: {
386
+ base: string;
387
+ };
388
+ lg: {
389
+ base: string;
390
+ };
391
+ };
392
+ color: {
393
+ default: {
394
+ base: string;
395
+ };
396
+ primary: {
397
+ base: string;
398
+ };
399
+ secondary: {
400
+ base: string;
401
+ };
402
+ success: {
403
+ base: string;
404
+ };
405
+ warning: {
406
+ base: string;
407
+ };
408
+ danger: {
409
+ base: string;
410
+ };
411
+ };
412
+ radius: {
413
+ none: {
414
+ base: string;
415
+ };
416
+ sm: {
417
+ base: string;
418
+ };
419
+ md: {
420
+ base: string;
421
+ };
422
+ lg: {
423
+ base: string;
424
+ };
425
+ full: {
426
+ base: string;
427
+ };
428
+ };
429
+ isBordered: {
430
+ true: {
431
+ base: string;
432
+ };
433
+ };
434
+ isDisabled: {
435
+ true: {
436
+ base: string;
437
+ };
438
+ };
439
+ isInGroup: {
440
+ true: {
441
+ base: string[];
442
+ };
443
+ };
444
+ isInGridGroup: {
445
+ true: {
446
+ base: string;
447
+ };
448
+ };
449
+ }, {
450
+ size: {
451
+ sm: {
452
+ base: string;
453
+ };
454
+ md: {
455
+ base: string;
456
+ };
457
+ lg: {
458
+ base: string;
459
+ };
460
+ };
461
+ color: {
462
+ default: {
463
+ base: string;
464
+ };
465
+ primary: {
466
+ base: string;
467
+ };
468
+ secondary: {
469
+ base: string;
470
+ };
471
+ success: {
472
+ base: string;
473
+ };
474
+ warning: {
475
+ base: string;
476
+ };
477
+ danger: {
478
+ base: string;
479
+ };
480
+ };
481
+ radius: {
482
+ none: {
483
+ base: string;
484
+ };
485
+ sm: {
486
+ base: string;
487
+ };
488
+ md: {
489
+ base: string;
490
+ };
491
+ lg: {
492
+ base: string;
493
+ };
494
+ full: {
495
+ base: string;
496
+ };
497
+ };
498
+ isBordered: {
499
+ true: {
500
+ base: string;
501
+ };
502
+ };
503
+ isDisabled: {
504
+ true: {
505
+ base: string;
506
+ };
507
+ };
508
+ isInGroup: {
509
+ true: {
510
+ base: string[];
511
+ };
512
+ };
513
+ isInGridGroup: {
514
+ true: {
515
+ base: string;
516
+ };
517
+ };
518
+ }>, unknown, unknown, undefined>>;
306
519
  /**
307
520
  * AvatarGroup wrapper **Tailwind Variants** component
308
521
  *
@@ -329,7 +542,19 @@ declare const avatarGroup: tailwind_variants.TVReturnType<{
329
542
  isGrid: {
330
543
  true: "inline-grid grid-cols-4 gap-3";
331
544
  };
332
- }, undefined>;
545
+ }, undefined, tailwind_variants.TVReturnType<{
546
+ isGrid: {
547
+ true: "inline-grid grid-cols-4 gap-3";
548
+ };
549
+ }, undefined, "flex items-center justify-center h-auto w-max-content", tailwind_variants_dist_config.TVConfig<{
550
+ isGrid: {
551
+ true: "inline-grid grid-cols-4 gap-3";
552
+ };
553
+ }, {
554
+ isGrid: {
555
+ true: "inline-grid grid-cols-4 gap-3";
556
+ };
557
+ }>, unknown, unknown, undefined>>;
333
558
  type AvatarGroupVariantProps = VariantProps<typeof avatarGroup>;
334
559
  type AvatarVariantProps = VariantProps<typeof avatar>;
335
560
  type AvatarSlots = keyof ReturnType<typeof avatar>;