@nextui-org/theme 2.1.9 → 2.1.11

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 (162) hide show
  1. package/dist/{chunk-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
  2. package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
  3. package/dist/{chunk-F76574GG.mjs → chunk-6RI6HHSE.mjs} +126 -46
  4. package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
  5. package/dist/chunk-76A2UI6G.mjs +243 -0
  6. package/dist/chunk-AQDGQGUV.mjs +391 -0
  7. package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
  8. package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
  9. package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
  10. package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
  11. package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
  12. package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
  13. package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
  14. package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
  15. package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
  16. package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
  17. package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
  18. package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
  19. package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
  20. package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
  21. package/dist/{chunk-PJV3MWBL.mjs → chunk-KNUJMWVH.mjs} +185 -52
  22. package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
  23. package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
  24. package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
  25. package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
  26. package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
  27. package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
  28. package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
  29. package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
  30. package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
  31. package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
  32. package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
  33. package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
  34. package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
  35. package/dist/chunk-WBUVHAJX.mjs +37 -0
  36. package/dist/chunk-WHT6K6RC.mjs +58 -0
  37. package/dist/chunk-WNVF6X3M.mjs +171 -0
  38. package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
  39. package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
  40. package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
  41. package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
  42. package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
  43. package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
  44. package/dist/components/accordion.js +27 -34
  45. package/dist/components/accordion.mjs +3 -3
  46. package/dist/components/autocomplete.d.ts +180 -0
  47. package/dist/components/autocomplete.js +165 -0
  48. package/dist/components/autocomplete.mjs +8 -0
  49. package/dist/components/avatar.js +28 -35
  50. package/dist/components/avatar.mjs +3 -3
  51. package/dist/components/badge.d.ts +7 -7
  52. package/dist/components/badge.js +29 -36
  53. package/dist/components/badge.mjs +3 -3
  54. package/dist/components/breadcrumbs.d.ts +816 -0
  55. package/dist/components/breadcrumbs.js +357 -0
  56. package/dist/components/breadcrumbs.mjs +14 -0
  57. package/dist/components/button.d.ts +7 -7
  58. package/dist/components/button.js +104 -39
  59. package/dist/components/button.mjs +3 -3
  60. package/dist/components/card.js +26 -33
  61. package/dist/components/card.mjs +3 -3
  62. package/dist/components/checkbox.js +25 -32
  63. package/dist/components/checkbox.mjs +3 -3
  64. package/dist/components/chip.js +26 -33
  65. package/dist/components/chip.mjs +3 -3
  66. package/dist/components/circular-progress.js +25 -32
  67. package/dist/components/circular-progress.mjs +2 -2
  68. package/dist/components/code.js +25 -32
  69. package/dist/components/code.mjs +3 -3
  70. package/dist/components/divider.js +25 -32
  71. package/dist/components/divider.mjs +2 -2
  72. package/dist/components/drip.d.ts +29 -3
  73. package/dist/components/drip.js +25 -32
  74. package/dist/components/drip.mjs +2 -2
  75. package/dist/components/dropdown.d.ts +103 -35
  76. package/dist/components/dropdown.js +25 -32
  77. package/dist/components/dropdown.mjs +3 -3
  78. package/dist/components/image.js +25 -32
  79. package/dist/components/image.mjs +2 -2
  80. package/dist/components/index.d.ts +4 -1
  81. package/dist/components/index.js +1213 -218
  82. package/dist/components/index.mjs +62 -48
  83. package/dist/components/input.d.ts +37 -44
  84. package/dist/components/input.js +208 -82
  85. package/dist/components/input.mjs +3 -3
  86. package/dist/components/kbd.js +25 -32
  87. package/dist/components/kbd.mjs +2 -2
  88. package/dist/components/link.js +25 -32
  89. package/dist/components/link.mjs +3 -3
  90. package/dist/components/listbox.d.ts +1 -1
  91. package/dist/components/listbox.js +41 -34
  92. package/dist/components/listbox.mjs +3 -3
  93. package/dist/components/menu.d.ts +119 -40
  94. package/dist/components/menu.js +41 -34
  95. package/dist/components/menu.mjs +3 -3
  96. package/dist/components/modal.js +25 -32
  97. package/dist/components/modal.mjs +3 -3
  98. package/dist/components/navbar.js +29 -33
  99. package/dist/components/navbar.mjs +3 -3
  100. package/dist/components/pagination.js +46 -36
  101. package/dist/components/pagination.mjs +3 -3
  102. package/dist/components/popover.d.ts +136 -132
  103. package/dist/components/popover.js +98 -94
  104. package/dist/components/popover.mjs +3 -3
  105. package/dist/components/progress.js +25 -32
  106. package/dist/components/progress.mjs +2 -2
  107. package/dist/components/radio.js +26 -33
  108. package/dist/components/radio.mjs +3 -3
  109. package/dist/components/scroll-shadow.js +25 -32
  110. package/dist/components/scroll-shadow.mjs +2 -2
  111. package/dist/components/select.d.ts +40 -54
  112. package/dist/components/select.js +149 -76
  113. package/dist/components/select.mjs +3 -3
  114. package/dist/components/skeleton.js +26 -33
  115. package/dist/components/skeleton.mjs +2 -2
  116. package/dist/components/slider.d.ts +1024 -0
  117. package/dist/components/slider.js +504 -0
  118. package/dist/components/slider.mjs +12 -0
  119. package/dist/components/snippet.js +25 -32
  120. package/dist/components/snippet.mjs +3 -3
  121. package/dist/components/spacer.js +25 -32
  122. package/dist/components/spacer.mjs +2 -2
  123. package/dist/components/spinner.js +25 -32
  124. package/dist/components/spinner.mjs +2 -2
  125. package/dist/components/table.js +25 -32
  126. package/dist/components/table.mjs +3 -3
  127. package/dist/components/tabs.js +25 -32
  128. package/dist/components/tabs.mjs +3 -3
  129. package/dist/components/toggle.js +25 -32
  130. package/dist/components/toggle.mjs +3 -3
  131. package/dist/components/user.d.ts +45 -29
  132. package/dist/components/user.js +25 -32
  133. package/dist/components/user.mjs +3 -3
  134. package/dist/default-layout.js +4 -1
  135. package/dist/default-layout.mjs +1 -1
  136. package/dist/index.d.ts +5 -2
  137. package/dist/index.js +1403 -387
  138. package/dist/index.mjs +69 -53
  139. package/dist/plugin.js +24 -5
  140. package/dist/plugin.mjs +6 -6
  141. package/dist/types.d.ts +8 -0
  142. package/dist/utilities/index.d.ts +10 -0
  143. package/dist/utilities/index.js +10 -0
  144. package/dist/utilities/index.mjs +2 -2
  145. package/dist/utilities/transition.d.ts +10 -0
  146. package/dist/utilities/transition.js +10 -0
  147. package/dist/utilities/transition.mjs +1 -1
  148. package/dist/utils/classes.d.ts +13 -1
  149. package/dist/utils/classes.js +10 -0
  150. package/dist/utils/classes.mjs +3 -1
  151. package/dist/utils/index.d.ts +1 -1
  152. package/dist/utils/index.js +10 -0
  153. package/dist/utils/index.mjs +3 -1
  154. package/dist/utils/theme.js +4 -3
  155. package/dist/utils/theme.mjs +1 -1
  156. package/dist/utils/tv.d.ts +2 -2
  157. package/dist/utils/tv.js +25 -32
  158. package/dist/utils/tv.mjs +1 -1
  159. package/package.json +9 -9
  160. package/dist/chunk-6AEINX52.mjs +0 -44
  161. package/dist/chunk-SN5GEHHN.mjs +0 -160
  162. /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
@@ -1,20 +1,33 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses,
6
6
  groupDataFocusVisibleClasses
7
- } from "./chunk-T7JNS25F.mjs";
7
+ } from "./chunk-XHQUSKIE.mjs";
8
8
 
9
9
  // src/components/input.ts
10
10
  var input = tv({
11
11
  slots: {
12
- base: "group flex flex-col",
13
- label: "block text-small font-medium text-foreground-600",
12
+ base: ["group flex flex-col", "data-[has-helper=true]:mb-4"],
13
+ label: [
14
+ "absolute",
15
+ "z-10",
16
+ "pointer-events-none",
17
+ "origin-top-left",
18
+ "subpixel-antialiased",
19
+ "block",
20
+ "text-small",
21
+ "text-foreground-500"
22
+ ],
14
23
  mainWrapper: "h-full",
15
24
  inputWrapper: "relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",
16
- innerWrapper: "inline-flex h-full items-center w-full gap-1.5 box-border",
17
- input: "w-full h-full font-normal !bg-transparent outline-none placeholder:text-foreground-500",
25
+ innerWrapper: "inline-flex w-full items-center h-full box-border",
26
+ input: [
27
+ "w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
28
+ "data-[has-start-content=true]:ps-1.5",
29
+ "data-[has-end-content=true]:pe-1.5"
30
+ ],
18
31
  clearButton: [
19
32
  "p-2",
20
33
  "-m-2",
@@ -32,7 +45,7 @@ var input = tv({
32
45
  "rounded-full",
33
46
  ...dataFocusVisibleClasses
34
47
  ],
35
- helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
48
+ helperWrapper: "flex absolute -bottom-[calc(theme(fontSize.tiny)*1.5)] flex-col gap-1.5 px-1",
36
49
  description: "text-tiny text-foreground-400",
37
50
  errorMessage: "text-tiny text-danger"
38
51
  },
@@ -83,7 +96,8 @@ var input = tv({
83
96
  "after:-bottom-[2px]",
84
97
  "after:h-[2px]",
85
98
  "group-data-[focus=true]:after:w-full"
86
- ]
99
+ ],
100
+ innerWrapper: "pb-1"
87
101
  }
88
102
  },
89
103
  color: {
@@ -98,7 +112,7 @@ var input = tv({
98
112
  sm: {
99
113
  label: "text-tiny",
100
114
  inputWrapper: "h-unit-8 min-h-unit-8 px-2 rounded-small",
101
- input: "text-small",
115
+ input: "text-tiny",
102
116
  clearButton: "text-medium"
103
117
  },
104
118
  md: {
@@ -138,11 +152,12 @@ var input = tv({
138
152
  base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
139
153
  inputWrapper: "flex-1",
140
154
  mainWrapper: "flex flex-col",
141
- label: "text-foreground pr-2"
155
+ label: "relative text-foreground pr-2"
142
156
  },
143
157
  inside: {
144
158
  label: "text-tiny cursor-text",
145
- inputWrapper: "flex-col items-start justify-center gap-0"
159
+ inputWrapper: "flex-col items-start justify-center gap-0",
160
+ innerWrapper: "items-end"
146
161
  }
147
162
  },
148
163
  fullWidth: {
@@ -150,11 +165,6 @@ var input = tv({
150
165
  base: "w-full"
151
166
  }
152
167
  },
153
- isLabelPlaceholder: {
154
- true: {
155
- label: "absolute z-10 pointer-events-none"
156
- }
157
- },
158
168
  isClearable: {
159
169
  true: {
160
170
  input: "peer pr-6",
@@ -181,12 +191,14 @@ var input = tv({
181
191
  },
182
192
  isMultiline: {
183
193
  true: {
194
+ label: "relative",
184
195
  inputWrapper: "!h-auto",
185
- input: "resize-none py-2"
196
+ input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
186
197
  }
187
198
  },
188
199
  disableAnimation: {
189
200
  true: {
201
+ input: "transition-none",
190
202
  inputWrapper: "transition-none",
191
203
  label: "transition-none"
192
204
  },
@@ -194,11 +206,10 @@ var input = tv({
194
206
  inputWrapper: "transition-background motion-reduce:transition-none !duration-150",
195
207
  label: [
196
208
  "will-change-auto",
197
- "origin-top-left",
198
- "transition-all",
199
209
  "!duration-200",
200
210
  "!ease-out",
201
- "motion-reduce:transition-none"
211
+ "motion-reduce:transition-none",
212
+ "transition-[transform,color,left,opacity]"
202
213
  ],
203
214
  clearButton: ["transition-opacity", "motion-reduce:transition-none"]
204
215
  }
@@ -211,6 +222,7 @@ var input = tv({
211
222
  fullWidth: true,
212
223
  labelPlacement: "inside",
213
224
  isDisabled: false,
225
+ isMultiline: false,
214
226
  disableAnimation: false
215
227
  },
216
228
  compoundVariants: [
@@ -458,6 +470,13 @@ var input = tv({
458
470
  ]
459
471
  }
460
472
  },
473
+ {
474
+ labelPlacement: "inside",
475
+ color: "default",
476
+ class: {
477
+ label: "group-data-[filled-within=true]:text-foreground-600"
478
+ }
479
+ },
461
480
  {
462
481
  isInvalid: true,
463
482
  variant: "flat",
@@ -506,19 +525,28 @@ var input = tv({
506
525
  }
507
526
  },
508
527
  {
509
- isLabelPlaceholder: true,
528
+ labelPlacement: "inside",
529
+ size: "sm",
530
+ variant: ["bordered", "faded"],
531
+ class: {
532
+ inputWrapper: "py-1"
533
+ }
534
+ },
535
+ {
510
536
  labelPlacement: ["inside", "outside"],
511
537
  class: {
512
- label: [
513
- "font-normal",
514
- "group-data-[filled-within=true]:font-medium",
515
- "group-data-[filled-within=true]:pointer-events-auto"
516
- ]
538
+ label: ["group-data-[filled-within=true]:pointer-events-auto"]
539
+ }
540
+ },
541
+ {
542
+ labelPlacement: ["outside", "outside-left"],
543
+ class: {
544
+ input: "h-full"
517
545
  }
518
546
  },
519
547
  {
520
- isLabelPlaceholder: true,
521
548
  labelPlacement: "outside",
549
+ isMultiline: false,
522
550
  class: {
523
551
  base: "group relative justify-end",
524
552
  label: [
@@ -533,85 +561,176 @@ var input = tv({
533
561
  }
534
562
  },
535
563
  {
536
- isLabelPlaceholder: true,
564
+ labelPlacement: ["inside"],
565
+ class: {
566
+ label: ["group-data-[filled-within=true]:scale-85"]
567
+ }
568
+ },
569
+ {
570
+ labelPlacement: ["inside"],
571
+ variant: "flat",
572
+ size: ["md", "lg"],
573
+ class: {
574
+ innerWrapper: "pb-0.5"
575
+ }
576
+ },
577
+ {
578
+ variant: "underlined",
579
+ size: "sm",
580
+ class: {
581
+ innerWrapper: "pb-1"
582
+ }
583
+ },
584
+ {
585
+ variant: "underlined",
586
+ size: ["md", "lg"],
587
+ class: {
588
+ innerWrapper: "pb-1.5"
589
+ }
590
+ },
591
+ {
537
592
  labelPlacement: "inside",
538
593
  size: ["sm", "md"],
539
594
  class: {
540
- label: ["text-small", "group-data-[filled-within=true]:text-tiny"],
541
- input: "pt-4"
595
+ label: "text-small"
542
596
  }
543
597
  },
544
598
  {
545
- isLabelPlaceholder: true,
546
599
  labelPlacement: "inside",
600
+ isMultiline: false,
547
601
  size: "sm",
548
602
  class: {
549
603
  label: [
550
- "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"
551
- ],
552
- input: "pt-4"
604
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"
605
+ ]
553
606
  }
554
607
  },
555
608
  {
556
- isLabelPlaceholder: true,
557
609
  labelPlacement: "inside",
610
+ isMultiline: false,
558
611
  size: "md",
559
612
  class: {
560
613
  label: [
561
- "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
562
- ],
563
- input: "pt-4"
614
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
615
+ ]
564
616
  }
565
617
  },
566
618
  {
567
- isLabelPlaceholder: true,
568
619
  labelPlacement: "inside",
620
+ isMultiline: false,
569
621
  size: "lg",
570
622
  class: {
571
623
  label: [
572
624
  "text-medium",
573
- "group-data-[filled-within=true]:text-small",
574
- "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
575
- ],
576
- input: "pt-5"
625
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
626
+ ]
627
+ }
628
+ },
629
+ {
630
+ labelPlacement: "inside",
631
+ variant: ["faded", "bordered"],
632
+ isMultiline: false,
633
+ size: "sm",
634
+ class: {
635
+ label: [
636
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
637
+ ]
638
+ }
639
+ },
640
+ {
641
+ labelPlacement: "inside",
642
+ variant: ["faded", "bordered"],
643
+ isMultiline: false,
644
+ size: "md",
645
+ class: {
646
+ label: [
647
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
648
+ ]
649
+ }
650
+ },
651
+ {
652
+ labelPlacement: "inside",
653
+ variant: ["faded", "bordered"],
654
+ isMultiline: false,
655
+ size: "lg",
656
+ class: {
657
+ label: [
658
+ "text-medium",
659
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
660
+ ]
661
+ }
662
+ },
663
+ {
664
+ labelPlacement: "inside",
665
+ variant: "underlined",
666
+ isMultiline: false,
667
+ size: "sm",
668
+ class: {
669
+ label: [
670
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"
671
+ ]
672
+ }
673
+ },
674
+ {
675
+ labelPlacement: "inside",
676
+ variant: "underlined",
677
+ isMultiline: false,
678
+ size: "md",
679
+ class: {
680
+ label: [
681
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
682
+ ]
683
+ }
684
+ },
685
+ {
686
+ labelPlacement: "inside",
687
+ variant: "underlined",
688
+ size: "lg",
689
+ isMultiline: false,
690
+ class: {
691
+ label: [
692
+ "text-medium",
693
+ "group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
694
+ ]
577
695
  }
578
696
  },
579
697
  {
580
- isLabelPlaceholder: true,
581
698
  labelPlacement: "outside",
582
699
  size: "sm",
700
+ isMultiline: false,
583
701
  class: {
584
702
  label: [
585
703
  "left-2",
586
- "text-small",
587
- "group-data-[filled-within=true]:text-tiny",
704
+ "text-tiny",
588
705
  "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
589
- ]
706
+ ],
707
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
590
708
  }
591
709
  },
592
710
  {
593
- isLabelPlaceholder: true,
594
711
  labelPlacement: "outside",
595
712
  size: "md",
713
+ isMultiline: false,
596
714
  class: {
597
715
  label: [
598
716
  "left-3",
599
717
  "text-small",
600
718
  "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
601
- ]
719
+ ],
720
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
602
721
  }
603
722
  },
604
723
  {
605
- isLabelPlaceholder: true,
606
724
  labelPlacement: "outside",
607
725
  size: "lg",
726
+ isMultiline: false,
608
727
  class: {
609
728
  label: [
610
729
  "left-3",
611
730
  "text-medium",
612
- "group-data-[filled-within=true]:text-small",
613
731
  "group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
614
- ]
732
+ ],
733
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
615
734
  }
616
735
  },
617
736
  {
@@ -634,6 +753,20 @@ var input = tv({
634
753
  class: {
635
754
  label: "group-data-[has-helper=true]:pt-4"
636
755
  }
756
+ },
757
+ {
758
+ labelPlacement: "inside",
759
+ isMultiline: true,
760
+ class: {
761
+ input: "pt-0"
762
+ }
763
+ },
764
+ {
765
+ isMultiline: true,
766
+ disableAnimation: false,
767
+ class: {
768
+ input: "transition-height !duration-100 motion-reduce:transition-none"
769
+ }
637
770
  }
638
771
  ]
639
772
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
 
5
5
  // src/components/divider.ts
6
6
  var divider = tv({
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-WBUVHAJX.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
- } from "./chunk-T7JNS25F.mjs";
9
+ } from "./chunk-XHQUSKIE.mjs";
10
10
 
11
11
  // src/components/tabs.ts
12
12
  var tabs = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
 
5
5
  // src/components/spacer.ts
6
6
  var spacer = tv({
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-WBUVHAJX.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
- } from "./chunk-T7JNS25F.mjs";
9
+ } from "./chunk-XHQUSKIE.mjs";
10
10
 
11
11
  // src/components/pagination.ts
12
12
  var pagination = tv({
@@ -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"],
@@ -1,13 +1,25 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
- } from "./chunk-T7JNS25F.mjs";
6
+ } from "./chunk-XHQUSKIE.mjs";
7
7
 
8
8
  // src/components/menu.ts
9
9
  var menu = tv({
10
- base: "w-full flex flex-col gap-0.5 p-1 outline-none"
10
+ slots: {
11
+ base: "w-full relative flex flex-col gap-1 p-1",
12
+ list: "w-full flex flex-col gap-0.5 outline-none",
13
+ emptyContent: [
14
+ "h-10",
15
+ "px-2",
16
+ "py-1.5",
17
+ "w-full",
18
+ "h-full",
19
+ "text-foreground-400",
20
+ "text-start"
21
+ ]
22
+ }
11
23
  });
12
24
  var menuItem = tv({
13
25
  slots: {
@@ -101,7 +113,9 @@ var menuItem = tv({
101
113
  },
102
114
  disableAnimation: {
103
115
  true: {},
104
- false: {}
116
+ false: {
117
+ base: "data-[hover=true]:transition-colors"
118
+ }
105
119
  }
106
120
  },
107
121
  defaultVariants: {
@@ -1,12 +1,12 @@
1
- import {
2
- transition_default
3
- } from "./chunk-KPK2JQIF.mjs";
4
1
  import {
5
2
  custom_default
6
3
  } from "./chunk-DI2L75XK.mjs";
7
4
  import {
8
5
  scrollbar_hide_default
9
6
  } from "./chunk-4Z22WXZX.mjs";
7
+ import {
8
+ transition_default
9
+ } from "./chunk-G3PB7L4N.mjs";
10
10
 
11
11
  // src/utilities/index.ts
12
12
  var utilities = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
- } from "./chunk-T7JNS25F.mjs";
6
+ } from "./chunk-XHQUSKIE.mjs";
7
7
 
8
8
  // src/components/toggle.ts
9
9
  var toggle = tv({
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-WBUVHAJX.mjs";
7
7
 
8
8
  // src/components/snippet.ts
9
9
  var snippet = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
 
5
5
  // src/components/scroll-shadow.ts
6
6
  var verticalShadow = [
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-2PIR7DFM.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-6AEINX52.mjs";
6
+ } from "./chunk-WBUVHAJX.mjs";
7
7
  import {
8
8
  ringClasses
9
- } from "./chunk-T7JNS25F.mjs";
9
+ } from "./chunk-XHQUSKIE.mjs";
10
10
 
11
11
  // src/components/chip.ts
12
12
  var chip = tv({
@@ -76,7 +76,7 @@ var chip = tv({
76
76
  },
77
77
  size: {
78
78
  sm: {
79
- base: "px-1 h-6 text-small",
79
+ base: "px-1 h-6 text-tiny",
80
80
  content: "px-1",
81
81
  closeButton: "text-medium",
82
82
  avatar: "w-4 h-4"
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
- } from "./chunk-T7JNS25F.mjs";
6
+ } from "./chunk-XHQUSKIE.mjs";
7
7
 
8
8
  // src/components/user.ts
9
9
  var user = tv({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-6AEINX52.mjs";
3
+ } from "./chunk-WBUVHAJX.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
- } from "./chunk-T7JNS25F.mjs";
6
+ } from "./chunk-XHQUSKIE.mjs";
7
7
 
8
8
  // src/components/table.ts
9
9
  var table = tv({
@@ -31,8 +31,11 @@ var defaultLayout = {
31
31
  large: "0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"
32
32
  }
33
33
  };
34
- var lightLayout = {};
34
+ var lightLayout = {
35
+ hoverOpacity: ".8"
36
+ };
35
37
  var darkLayout = {
38
+ hoverOpacity: ".9",
36
39
  boxShadow: {
37
40
  small: "0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
38
41
  medium: "0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)",
@@ -0,0 +1,37 @@
1
+ import {
2
+ mappedSpacingScaleKeys
3
+ } from "./chunk-WA5F6AED.mjs";
4
+
5
+ // src/utils/tv.ts
6
+ import { createTV } from "tailwind-variants";
7
+ var COMMON_UNITS = ["small", "medium", "large"];
8
+ var tv = createTV({
9
+ twMerge: true,
10
+ twMergeConfig: {
11
+ theme: {
12
+ opacity: ["disabled"],
13
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
14
+ borderWidth: COMMON_UNITS,
15
+ borderRadius: COMMON_UNITS
16
+ },
17
+ classGroups: {
18
+ shadow: [{ shadow: COMMON_UNITS }],
19
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
20
+ "bg-image": ["bg-stripe-gradient"],
21
+ "min-w": [
22
+ {
23
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
24
+ }
25
+ ],
26
+ "min-h": [
27
+ {
28
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ });
34
+
35
+ export {
36
+ tv
37
+ };