@nextui-org/theme 2.1.8 → 2.1.10

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 (164) 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-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
  4. package/dist/chunk-76A2UI6G.mjs +243 -0
  5. package/dist/chunk-AQDGQGUV.mjs +391 -0
  6. package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
  7. package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
  8. package/dist/{chunk-PJV3MWBL.mjs → chunk-C3KZKKPN.mjs} +182 -49
  9. package/dist/{chunk-2T5RQ7SK.mjs → chunk-CLW3JMFF.mjs} +36 -6
  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-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
  22. package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
  23. package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
  24. package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
  25. package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
  26. package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
  27. package/dist/{chunk-F76574GG.mjs → chunk-SCQJ4BM3.mjs} +105 -39
  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-Y33ZY7KH.mjs → chunk-WYVG7NY6.mjs} +34 -5
  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.d.ts +163 -36
  63. package/dist/components/checkbox.js +59 -36
  64. package/dist/components/checkbox.mjs +3 -3
  65. package/dist/components/chip.js +26 -33
  66. package/dist/components/chip.mjs +3 -3
  67. package/dist/components/circular-progress.js +25 -32
  68. package/dist/components/circular-progress.mjs +2 -2
  69. package/dist/components/code.js +25 -32
  70. package/dist/components/code.mjs +3 -3
  71. package/dist/components/divider.js +25 -32
  72. package/dist/components/divider.mjs +2 -2
  73. package/dist/components/drip.d.ts +29 -3
  74. package/dist/components/drip.js +25 -32
  75. package/dist/components/drip.mjs +2 -2
  76. package/dist/components/dropdown.d.ts +103 -35
  77. package/dist/components/dropdown.js +25 -32
  78. package/dist/components/dropdown.mjs +3 -3
  79. package/dist/components/image.js +25 -32
  80. package/dist/components/image.mjs +2 -2
  81. package/dist/components/index.d.ts +4 -1
  82. package/dist/components/index.js +1271 -231
  83. package/dist/components/index.mjs +62 -48
  84. package/dist/components/input.d.ts +34 -41
  85. package/dist/components/input.js +205 -79
  86. package/dist/components/input.mjs +3 -3
  87. package/dist/components/kbd.js +25 -32
  88. package/dist/components/kbd.mjs +2 -2
  89. package/dist/components/link.js +25 -32
  90. package/dist/components/link.mjs +3 -3
  91. package/dist/components/listbox.d.ts +1 -1
  92. package/dist/components/listbox.js +41 -34
  93. package/dist/components/listbox.mjs +3 -3
  94. package/dist/components/menu.d.ts +119 -40
  95. package/dist/components/menu.js +41 -34
  96. package/dist/components/menu.mjs +3 -3
  97. package/dist/components/modal.js +25 -32
  98. package/dist/components/modal.mjs +3 -3
  99. package/dist/components/navbar.js +29 -33
  100. package/dist/components/navbar.mjs +3 -3
  101. package/dist/components/pagination.js +46 -36
  102. package/dist/components/pagination.mjs +3 -3
  103. package/dist/components/popover.d.ts +136 -132
  104. package/dist/components/popover.js +98 -94
  105. package/dist/components/popover.mjs +3 -3
  106. package/dist/components/progress.js +25 -32
  107. package/dist/components/progress.mjs +2 -2
  108. package/dist/components/radio.d.ts +135 -36
  109. package/dist/components/radio.js +57 -35
  110. package/dist/components/radio.mjs +3 -3
  111. package/dist/components/scroll-shadow.js +25 -32
  112. package/dist/components/scroll-shadow.mjs +2 -2
  113. package/dist/components/select.d.ts +30 -51
  114. package/dist/components/select.js +128 -69
  115. package/dist/components/select.mjs +3 -3
  116. package/dist/components/skeleton.js +26 -33
  117. package/dist/components/skeleton.mjs +2 -2
  118. package/dist/components/slider.d.ts +1024 -0
  119. package/dist/components/slider.js +504 -0
  120. package/dist/components/slider.mjs +12 -0
  121. package/dist/components/snippet.js +25 -32
  122. package/dist/components/snippet.mjs +3 -3
  123. package/dist/components/spacer.js +25 -32
  124. package/dist/components/spacer.mjs +2 -2
  125. package/dist/components/spinner.js +25 -32
  126. package/dist/components/spinner.mjs +2 -2
  127. package/dist/components/table.js +25 -32
  128. package/dist/components/table.mjs +3 -3
  129. package/dist/components/tabs.js +25 -32
  130. package/dist/components/tabs.mjs +3 -3
  131. package/dist/components/toggle.js +25 -32
  132. package/dist/components/toggle.mjs +3 -3
  133. package/dist/components/user.d.ts +45 -29
  134. package/dist/components/user.js +25 -32
  135. package/dist/components/user.mjs +3 -3
  136. package/dist/default-layout.js +4 -1
  137. package/dist/default-layout.mjs +1 -1
  138. package/dist/index.d.ts +5 -2
  139. package/dist/index.js +1381 -320
  140. package/dist/index.mjs +69 -53
  141. package/dist/plugin.js +24 -5
  142. package/dist/plugin.mjs +6 -6
  143. package/dist/types.d.ts +8 -0
  144. package/dist/utilities/index.d.ts +10 -0
  145. package/dist/utilities/index.js +10 -0
  146. package/dist/utilities/index.mjs +2 -2
  147. package/dist/utilities/transition.d.ts +10 -0
  148. package/dist/utilities/transition.js +10 -0
  149. package/dist/utilities/transition.mjs +1 -1
  150. package/dist/utils/classes.d.ts +13 -1
  151. package/dist/utils/classes.js +10 -0
  152. package/dist/utils/classes.mjs +3 -1
  153. package/dist/utils/index.d.ts +1 -1
  154. package/dist/utils/index.js +10 -0
  155. package/dist/utils/index.mjs +3 -1
  156. package/dist/utils/theme.js +4 -3
  157. package/dist/utils/theme.mjs +1 -1
  158. package/dist/utils/tv.d.ts +2 -2
  159. package/dist/utils/tv.js +25 -32
  160. package/dist/utils/tv.mjs +1 -1
  161. package/package.json +9 -9
  162. package/dist/chunk-6AEINX52.mjs +0 -44
  163. package/dist/chunk-SN5GEHHN.mjs +0 -160
  164. /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
@@ -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/skeleton.ts
6
6
  var skeleton = tv({
@@ -28,7 +28,7 @@ var skeleton = tv({
28
28
  "after:-z-10",
29
29
  "after:bg-content3",
30
30
  "dark:after:bg-content2",
31
- "data-[loaded=true]:bg-transparent",
31
+ "data-[loaded=true]:!bg-transparent",
32
32
  "data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
33
33
  "data-[loaded=true]:after:opacity-0"
34
34
  ],
@@ -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,24 +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
- } from "./chunk-T7JNS25F.mjs";
6
+ } from "./chunk-XHQUSKIE.mjs";
7
7
 
8
8
  // src/components/select.ts
9
9
  var select = tv({
10
10
  slots: {
11
11
  base: "group inline-flex flex-col relative w-full",
12
- label: "block text-small font-medium text-foreground-500 pointer-events-none",
12
+ label: [
13
+ "block",
14
+ "absolute",
15
+ "z-10",
16
+ "origin-top-left",
17
+ "subpixel-antialiased",
18
+ "text-small",
19
+ "text-foreground-500",
20
+ "pointer-events-none"
21
+ ],
13
22
  mainWrapper: "w-full flex flex-col",
14
23
  trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
15
24
  innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
16
25
  selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
17
26
  spinner: "absolute right-3",
18
- value: "font-normal w-full text-left opacity-60 group-data-[filled=true]:opacity-100",
27
+ value: ["font-normal", "w-full", "text-left"],
19
28
  listboxWrapper: "scroll-py-6 max-h-64 w-full",
20
29
  listbox: "",
21
- popover: "w-full p-1 overflow-hidden",
30
+ popoverContent: "w-full p-1 overflow-hidden",
22
31
  helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
23
32
  description: "text-tiny text-foreground-400",
24
33
  errorMessage: "text-tiny text-danger"
@@ -76,7 +85,9 @@ var select = tv({
76
85
  }
77
86
  },
78
87
  color: {
79
- default: {},
88
+ default: {
89
+ value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
90
+ },
80
91
  primary: {},
81
92
  secondary: {},
82
93
  success: {},
@@ -122,7 +133,7 @@ var select = tv({
122
133
  },
123
134
  "outside-left": {
124
135
  base: "flex-row items-center flex-nowrap items-start",
125
- label: "text-foreground pr-2"
136
+ label: "relative text-foreground pr-2"
126
137
  },
127
138
  inside: {
128
139
  label: "text-tiny cursor-pointer",
@@ -134,11 +145,6 @@ var select = tv({
134
145
  base: "w-full"
135
146
  }
136
147
  },
137
- isLabelPlaceholder: {
138
- true: {
139
- label: "absolute z-10"
140
- }
141
- },
142
148
  isDisabled: {
143
149
  true: {
144
150
  base: "opacity-disabled pointer-events-none",
@@ -148,7 +154,7 @@ var select = tv({
148
154
  isInvalid: {
149
155
  true: {
150
156
  label: "!text-danger",
151
- value: "text-danger",
157
+ value: "!text-danger",
152
158
  selectorIcon: "text-danger"
153
159
  }
154
160
  },
@@ -177,9 +183,9 @@ var select = tv({
177
183
  label: [
178
184
  "will-change-auto",
179
185
  "origin-top-left",
180
- "transition-all",
181
186
  "!duration-200",
182
187
  "!ease-out",
188
+ "transition-[transform,color,left,opacity]",
183
189
  "motion-reduce:transition-none"
184
190
  ],
185
191
  selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
@@ -440,6 +446,13 @@ var select = tv({
440
446
  ]
441
447
  }
442
448
  },
449
+ {
450
+ labelPlacement: "inside",
451
+ color: "default",
452
+ class: {
453
+ label: "group-data-[filled=true]:text-foreground-600"
454
+ }
455
+ },
443
456
  {
444
457
  isInvalid: true,
445
458
  variant: "flat",
@@ -488,18 +501,12 @@ var select = tv({
488
501
  }
489
502
  },
490
503
  {
491
- isLabelPlaceholder: true,
492
504
  labelPlacement: ["inside", "outside"],
493
505
  class: {
494
- label: [
495
- "font-normal",
496
- "group-data-[filled=true]:font-medium",
497
- "group-data-[filled=true]:pointer-events-auto"
498
- ]
506
+ label: ["group-data-[filled=true]:pointer-events-auto"]
499
507
  }
500
508
  },
501
509
  {
502
- isLabelPlaceholder: true,
503
510
  labelPlacement: "outside",
504
511
  class: {
505
512
  base: "group relative justify-end",
@@ -515,62 +522,121 @@ var select = tv({
515
522
  }
516
523
  },
517
524
  {
518
- isLabelPlaceholder: true,
525
+ labelPlacement: ["inside"],
526
+ class: {
527
+ label: "group-data-[filled=true]:scale-85"
528
+ }
529
+ },
530
+ {
519
531
  labelPlacement: "inside",
520
532
  size: ["sm", "md"],
521
533
  class: {
522
- label: ["text-small", "group-data-[filled=true]:text-tiny"],
534
+ label: "text-small",
523
535
  input: "pt-4"
524
536
  }
525
537
  },
526
538
  {
527
- isLabelPlaceholder: true,
528
539
  labelPlacement: "inside",
529
540
  size: "sm",
530
541
  class: {
531
- label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"],
542
+ label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
532
543
  innerWrapper: "pt-4"
533
544
  }
534
545
  },
535
546
  {
536
- isLabelPlaceholder: true,
537
547
  labelPlacement: "inside",
538
548
  size: "md",
539
549
  class: {
540
550
  label: [
541
- "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
551
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
542
552
  ],
543
553
  innerWrapper: "pt-4"
544
554
  }
545
555
  },
546
556
  {
547
- isLabelPlaceholder: true,
548
557
  labelPlacement: "inside",
549
558
  size: "lg",
550
559
  class: {
551
560
  label: [
552
561
  "text-medium",
553
- "group-data-[filled=true]:text-small",
554
- "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
562
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
555
563
  ],
556
564
  innerWrapper: "pt-5"
557
565
  }
558
566
  },
559
567
  {
560
- isLabelPlaceholder: true,
568
+ labelPlacement: "inside",
569
+ variant: ["faded", "bordered"],
570
+ size: "sm",
571
+ class: {
572
+ label: [
573
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
574
+ ]
575
+ }
576
+ },
577
+ {
578
+ labelPlacement: "inside",
579
+ variant: ["faded", "bordered"],
580
+ size: "md",
581
+ class: {
582
+ label: [
583
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
584
+ ]
585
+ }
586
+ },
587
+ {
588
+ labelPlacement: "inside",
589
+ variant: ["faded", "bordered"],
590
+ size: "lg",
591
+ class: {
592
+ label: [
593
+ "text-medium",
594
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
595
+ ]
596
+ }
597
+ },
598
+ {
599
+ labelPlacement: "inside",
600
+ variant: "underlined",
601
+ size: "sm",
602
+ class: {
603
+ label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
604
+ }
605
+ },
606
+ {
607
+ labelPlacement: "inside",
608
+ variant: "underlined",
609
+ size: "md",
610
+ class: {
611
+ label: [
612
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
613
+ ]
614
+ }
615
+ },
616
+ {
617
+ labelPlacement: "inside",
618
+ variant: "underlined",
619
+ size: "lg",
620
+ class: {
621
+ label: [
622
+ "text-medium",
623
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
624
+ ]
625
+ }
626
+ },
627
+ {
561
628
  labelPlacement: "outside",
562
629
  size: "sm",
563
630
  class: {
564
631
  label: [
565
632
  "left-2",
566
- "text-small",
567
- "group-data-[filled=true]:text-tiny",
633
+ "text-tiny",
568
634
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
569
- ]
635
+ ],
636
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
570
637
  }
571
638
  },
572
639
  {
573
- isLabelPlaceholder: true,
574
640
  labelPlacement: "outside",
575
641
  size: "md",
576
642
  class: {
@@ -578,20 +644,20 @@ var select = tv({
578
644
  "left-3",
579
645
  "text-small",
580
646
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
581
- ]
647
+ ],
648
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
582
649
  }
583
650
  },
584
651
  {
585
- isLabelPlaceholder: true,
586
652
  labelPlacement: "outside",
587
653
  size: "lg",
588
654
  class: {
589
655
  label: [
590
656
  "left-3",
591
657
  "text-medium",
592
- "group-data-[filled=true]:text-small",
593
658
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
594
- ]
659
+ ],
660
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
595
661
  }
596
662
  }
597
663
  ]
@@ -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
+ };
@@ -0,0 +1,58 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-WBUVHAJX.mjs";
4
+
5
+ // src/components/autocomplete.ts
6
+ var autocomplete = tv({
7
+ slots: {
8
+ base: "group inline-flex flex-column w-full",
9
+ listboxWrapper: "scroll-py-6 max-h-64 w-full",
10
+ listbox: "",
11
+ popoverContent: "w-full p-1 overflow-hidden",
12
+ endContentWrapper: "relative flex h-full items-center -mr-2",
13
+ clearButton: [
14
+ "text-medium",
15
+ "translate-x-1",
16
+ "cursor-text",
17
+ "opacity-0",
18
+ "text-default-500",
19
+ "group-data-[invalid=true]:text-danger",
20
+ "data-[visible=true]:opacity-100",
21
+ "data-[visible=true]:cursor-pointer",
22
+ "sm:data-[visible=true]:opacity-0",
23
+ "sm:group-data-[hover=true]:data-[visible=true]:opacity-100"
24
+ ],
25
+ selectorButton: "text-medium"
26
+ },
27
+ variants: {
28
+ disableClearable: {
29
+ true: {
30
+ clearButton: "hidden"
31
+ },
32
+ false: {}
33
+ },
34
+ disableAnimation: {
35
+ true: {
36
+ selectorButton: "transition-none"
37
+ },
38
+ false: {
39
+ selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none"
40
+ }
41
+ },
42
+ disableSelectorIconRotation: {
43
+ true: {},
44
+ false: {
45
+ selectorButton: "data-[open=true]:rotate-180"
46
+ }
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ disableAnimation: false,
51
+ disableClearable: false,
52
+ disableSelectorIconRotation: false
53
+ }
54
+ });
55
+
56
+ export {
57
+ autocomplete
58
+ };