@nextui-org/theme 2.2.10 → 2.3.0-beta.0

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 (165) hide show
  1. package/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
  2. package/dist/{chunk-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
  3. package/dist/chunk-3XDFZGUJ.mjs +216 -0
  4. package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
  5. package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
  6. package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
  7. package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
  8. package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
  9. package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
  10. package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
  11. package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
  12. package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
  13. package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
  14. package/dist/chunk-EP7KPCL3.mjs +62 -0
  15. package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
  16. package/dist/{chunk-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
  17. package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
  18. package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
  19. package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
  20. package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
  21. package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
  22. package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
  23. package/dist/{chunk-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
  24. package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
  25. package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
  26. package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
  27. package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
  28. package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
  29. package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
  30. package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
  31. package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
  32. package/dist/{chunk-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
  33. package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
  34. package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
  35. package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
  36. package/dist/{chunk-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
  37. package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
  38. package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
  39. package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
  40. package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
  41. package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
  42. package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
  43. package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
  44. package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
  45. package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
  46. package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
  47. package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
  48. package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
  49. package/dist/components/accordion.js +8 -1
  50. package/dist/components/accordion.mjs +5 -5
  51. package/dist/components/alert.d.ts +344 -0
  52. package/dist/components/alert.js +355 -0
  53. package/dist/components/alert.mjs +12 -0
  54. package/dist/components/autocomplete.js +12 -5
  55. package/dist/components/autocomplete.mjs +3 -3
  56. package/dist/components/avatar.js +13 -6
  57. package/dist/components/avatar.mjs +5 -5
  58. package/dist/components/badge.js +13 -6
  59. package/dist/components/badge.mjs +5 -5
  60. package/dist/components/breadcrumbs.js +9 -2
  61. package/dist/components/breadcrumbs.mjs +5 -5
  62. package/dist/components/button.js +17 -7
  63. package/dist/components/button.mjs +5 -5
  64. package/dist/components/calendar.js +8 -1
  65. package/dist/components/calendar.mjs +5 -5
  66. package/dist/components/card.js +8 -1
  67. package/dist/components/card.mjs +5 -5
  68. package/dist/components/checkbox.js +19 -12
  69. package/dist/components/checkbox.mjs +5 -5
  70. package/dist/components/chip.js +13 -6
  71. package/dist/components/chip.mjs +5 -5
  72. package/dist/components/circular-progress.js +8 -1
  73. package/dist/components/circular-progress.mjs +3 -3
  74. package/dist/components/code.js +13 -6
  75. package/dist/components/code.mjs +5 -5
  76. package/dist/components/date-input.js +26 -19
  77. package/dist/components/date-input.mjs +3 -3
  78. package/dist/components/date-picker.js +12 -5
  79. package/dist/components/date-picker.mjs +3 -3
  80. package/dist/components/divider.js +8 -1
  81. package/dist/components/divider.mjs +3 -3
  82. package/dist/components/drawer.d.ts +358 -0
  83. package/dist/components/drawer.js +130 -0
  84. package/dist/components/drawer.mjs +8 -0
  85. package/dist/components/drip.js +8 -1
  86. package/dist/components/drip.mjs +3 -3
  87. package/dist/components/dropdown.js +8 -1
  88. package/dist/components/dropdown.mjs +5 -5
  89. package/dist/components/image.js +8 -1
  90. package/dist/components/image.mjs +3 -3
  91. package/dist/components/index.d.ts +2 -1
  92. package/dist/components/index.js +503 -210
  93. package/dist/components/index.mjs +68 -60
  94. package/dist/components/input.d.ts +7 -0
  95. package/dist/components/input.js +55 -47
  96. package/dist/components/input.mjs +5 -5
  97. package/dist/components/kbd.js +8 -1
  98. package/dist/components/kbd.mjs +3 -3
  99. package/dist/components/link.js +8 -1
  100. package/dist/components/link.mjs +5 -5
  101. package/dist/components/listbox.js +8 -1
  102. package/dist/components/listbox.mjs +5 -5
  103. package/dist/components/menu.js +8 -1
  104. package/dist/components/menu.mjs +5 -5
  105. package/dist/components/modal.js +9 -4
  106. package/dist/components/modal.mjs +5 -5
  107. package/dist/components/navbar.js +8 -1
  108. package/dist/components/navbar.mjs +5 -5
  109. package/dist/components/pagination.js +13 -6
  110. package/dist/components/pagination.mjs +5 -5
  111. package/dist/components/popover.js +13 -6
  112. package/dist/components/popover.mjs +5 -5
  113. package/dist/components/progress.js +44 -2
  114. package/dist/components/progress.mjs +3 -3
  115. package/dist/components/radio.js +22 -15
  116. package/dist/components/radio.mjs +5 -5
  117. package/dist/components/scroll-shadow.js +8 -1
  118. package/dist/components/scroll-shadow.mjs +3 -3
  119. package/dist/components/select.d.ts +21 -0
  120. package/dist/components/select.js +44 -44
  121. package/dist/components/select.mjs +5 -5
  122. package/dist/components/skeleton.js +8 -1
  123. package/dist/components/skeleton.mjs +3 -3
  124. package/dist/components/slider.js +8 -1
  125. package/dist/components/slider.mjs +5 -5
  126. package/dist/components/snippet.js +13 -6
  127. package/dist/components/snippet.mjs +5 -5
  128. package/dist/components/spacer.js +8 -1
  129. package/dist/components/spacer.mjs +3 -3
  130. package/dist/components/spinner.js +8 -1
  131. package/dist/components/spinner.mjs +3 -3
  132. package/dist/components/table.js +29 -22
  133. package/dist/components/table.mjs +5 -5
  134. package/dist/components/tabs.js +13 -6
  135. package/dist/components/tabs.mjs +5 -5
  136. package/dist/components/toggle.js +36 -38
  137. package/dist/components/toggle.mjs +5 -5
  138. package/dist/components/user.d.ts +26 -27
  139. package/dist/components/user.js +8 -1
  140. package/dist/components/user.mjs +5 -5
  141. package/dist/index.d.ts +2 -1
  142. package/dist/index.js +528 -224
  143. package/dist/index.mjs +74 -66
  144. package/dist/plugin.js +24 -13
  145. package/dist/plugin.mjs +4 -4
  146. package/dist/utilities/custom.d.ts +5 -0
  147. package/dist/utilities/custom.js +5 -0
  148. package/dist/utilities/custom.mjs +1 -1
  149. package/dist/utilities/index.d.ts +5 -0
  150. package/dist/utilities/index.js +5 -0
  151. package/dist/utilities/index.mjs +3 -3
  152. package/dist/utils/cn.js +9 -2
  153. package/dist/utils/cn.mjs +2 -2
  154. package/dist/utils/index.d.ts +0 -1
  155. package/dist/utils/index.js +14 -7
  156. package/dist/utils/index.mjs +5 -5
  157. package/dist/utils/tv.js +8 -1
  158. package/dist/utils/tv.mjs +2 -2
  159. package/dist/utils/tw-merge-config.d.ts +17 -3
  160. package/dist/utils/tw-merge-config.js +8 -1
  161. package/dist/utils/tw-merge-config.mjs +1 -1
  162. package/dist/utils/variants.js +5 -5
  163. package/dist/utils/variants.mjs +1 -1
  164. package/package.json +3 -12
  165. /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -24,9 +24,9 @@ var table = tv({
24
24
  table: "min-w-full h-auto",
25
25
  thead: "[&>tr]:first:rounded-lg",
26
26
  tbody: "",
27
- tr: ["group", "outline-none", ...dataFocusVisibleClasses],
27
+ tr: ["group/tr", "outline-none", ...dataFocusVisibleClasses],
28
28
  th: [
29
- "group",
29
+ "group/th",
30
30
  "px-3",
31
31
  "h-10",
32
32
  "text-start",
@@ -61,8 +61,8 @@ var table = tv({
61
61
  "before:inset-0",
62
62
  "before:opacity-0",
63
63
  "data-[selected=true]:before:opacity-100",
64
- "group-data-[disabled=true]:text-foreground-300",
65
- "group-data-[disabled=true]:cursor-not-allowed"
64
+ "group-data-[disabled=true]/tr:text-foreground-300",
65
+ "group-data-[disabled=true]/tr:cursor-not-allowed"
66
66
  ],
67
67
  tfoot: "",
68
68
  sortIcon: [
@@ -73,7 +73,7 @@ var table = tv({
73
73
  "inline-block",
74
74
  "transition-transform-opacity",
75
75
  "data-[visible=true]:opacity-100",
76
- "group-data-[hover=true]:opacity-100",
76
+ "group-data-[hover=true]/th:opacity-100",
77
77
  "data-[direction=ascending]:rotate-180"
78
78
  ],
79
79
  emptyWrapper: "text-foreground-400 align-middle text-center h-40",
@@ -144,9 +144,9 @@ var table = tv({
144
144
  isStriped: {
145
145
  true: {
146
146
  td: [
147
- "group-data-[odd=true]:before:bg-default-100",
148
- "group-data-[odd=true]:before:opacity-100",
149
- "group-data-[odd=true]:before:-z-10"
147
+ "group-data-[odd=true]/tr:before:bg-default-100",
148
+ "group-data-[odd=true]/tr:before:opacity-100",
149
+ "group-data-[odd=true]/tr:before:-z-10"
150
150
  ]
151
151
  }
152
152
  },
@@ -165,19 +165,19 @@ var table = tv({
165
165
  true: {
166
166
  tr: "cursor-default",
167
167
  td: [
168
- "group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100",
169
- "group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"
168
+ "group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-default-100",
169
+ "group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70"
170
170
  ]
171
171
  }
172
172
  },
173
173
  isMultiSelectable: {
174
174
  true: {
175
175
  td: [
176
- "group-data-[first=true]:first:before:rounded-ts-lg",
177
- "group-data-[first=true]:last:before:rounded-te-lg",
178
- "group-data-[middle=true]:before:rounded-none",
179
- "group-data-[last=true]:first:before:rounded-bs-lg",
180
- "group-data-[last=true]:last:before:rounded-be-lg"
176
+ "group-data-[first=true]/tr:first:before:rounded-ts-lg",
177
+ "group-data-[first=true]/tr:last:before:rounded-te-lg",
178
+ "group-data-[middle=true]/tr:before:rounded-none",
179
+ "group-data-[last=true]/tr:first:before:rounded-bs-lg",
180
+ "group-data-[last=true]/tr:last:before:rounded-be-lg"
181
181
  ]
182
182
  },
183
183
  false: {
@@ -222,42 +222,42 @@ var table = tv({
222
222
  isStriped: true,
223
223
  color: "default",
224
224
  class: {
225
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-default/60"
225
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-default/60"
226
226
  }
227
227
  },
228
228
  {
229
229
  isStriped: true,
230
230
  color: "primary",
231
231
  class: {
232
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-primary/20"
232
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-primary/20"
233
233
  }
234
234
  },
235
235
  {
236
236
  isStriped: true,
237
237
  color: "secondary",
238
238
  class: {
239
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-secondary/20"
239
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-secondary/20"
240
240
  }
241
241
  },
242
242
  {
243
243
  isStriped: true,
244
244
  color: "success",
245
245
  class: {
246
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-success/20"
246
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-success/20"
247
247
  }
248
248
  },
249
249
  {
250
250
  isStriped: true,
251
251
  color: "warning",
252
252
  class: {
253
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-warning/20"
253
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-warning/20"
254
254
  }
255
255
  },
256
256
  {
257
257
  isStriped: true,
258
258
  color: "danger",
259
259
  class: {
260
- td: "group-data-[odd=true]:data-[selected=true]:before:bg-danger/20"
260
+ td: "group-data-[odd=true]/tr:data-[selected=true]/tr:before:bg-danger/20"
261
261
  }
262
262
  }
263
263
  ]
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/autocomplete.ts
6
6
  var autocomplete = tv({
7
7
  slots: {
8
- base: "group/autocomplete inline-flex flex-column w-full",
8
+ base: "group inline-flex flex-column w-full",
9
9
  listboxWrapper: "scroll-py-6 max-h-64 w-full",
10
10
  listbox: "",
11
11
  popoverContent: "w-full p-1 overflow-hidden",
@@ -17,14 +17,14 @@ var autocomplete = tv({
17
17
  "opacity-0",
18
18
  "pointer-events-none",
19
19
  "text-default-500",
20
- "group-data-[invalid=true]/autocomplete:text-danger",
20
+ "group-data-[invalid=true]:text-danger",
21
21
  "data-[visible=true]:opacity-100",
22
22
  "data-[visible=true]:pointer-events-auto",
23
23
  "data-[visible=true]:cursor-pointer",
24
24
  "sm:data-[visible=true]:opacity-0",
25
25
  "sm:data-[visible=true]:pointer-events-none",
26
- "sm:group-data-[hover=true]:data-[visible=true]/autocomplete:opacity-100",
27
- "sm:group-data-[hover=true]:data-[visible=true]/autocomplete:pointer-events-auto"
26
+ "sm:group-data-[hover=true]:data-[visible=true]:opacity-100",
27
+ "sm:group-data-[hover=true]:data-[visible=true]:pointer-events-auto"
28
28
  ],
29
29
  selectorButton: "text-medium"
30
30
  },
@@ -0,0 +1,216 @@
1
+ import {
2
+ colorVariants
3
+ } from "./chunk-GQT3YUX3.mjs";
4
+ import {
5
+ tv
6
+ } from "./chunk-UWE6H66T.mjs";
7
+
8
+ // src/components/alert.ts
9
+ var alert = tv({
10
+ slots: {
11
+ base: "flex flex-row w-full flex-grow min-h-17 max-h-full py-3 px-4",
12
+ mainWrapper: [
13
+ "flex-grow min-h-11 max-h-full ms-2 flex flex-col box-border items-start text-inherit"
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",
17
+ closeButton: "relative text-inherit",
18
+ alertIcon: "fill-current w-6"
19
+ },
20
+ variants: {
21
+ color: {
22
+ default: {},
23
+ primary: {},
24
+ secondary: {},
25
+ success: {},
26
+ warning: {},
27
+ danger: {}
28
+ },
29
+ variant: {
30
+ solid: {},
31
+ flat: {},
32
+ bordered: {
33
+ base: "border-medium bg-transparent"
34
+ }
35
+ },
36
+ radius: {
37
+ none: {
38
+ base: "rounded-none"
39
+ },
40
+ sm: {
41
+ base: "rounded-small"
42
+ },
43
+ md: {
44
+ base: "rounded-medium"
45
+ },
46
+ lg: {
47
+ base: "rounded-large"
48
+ },
49
+ full: {
50
+ base: "rounded-full"
51
+ }
52
+ },
53
+ hasDescription: {
54
+ true: {
55
+ alertIcon: "mt-0.5"
56
+ },
57
+ false: {
58
+ base: "items-center",
59
+ mainWrapper: "justify-center"
60
+ }
61
+ }
62
+ },
63
+ defaultVariants: {
64
+ color: "default",
65
+ variant: "flat",
66
+ radius: "md"
67
+ },
68
+ compoundVariants: [
69
+ {
70
+ variant: "solid",
71
+ color: "default",
72
+ class: {
73
+ base: colorVariants.solid.default,
74
+ closeButton: "data-[hover]:bg-default-100",
75
+ alertIcon: "text-default-foreground"
76
+ }
77
+ },
78
+ {
79
+ variant: "solid",
80
+ color: "primary",
81
+ class: {
82
+ base: colorVariants.solid.primary
83
+ }
84
+ },
85
+ {
86
+ variant: "solid",
87
+ color: "secondary",
88
+ class: {
89
+ base: colorVariants.solid.secondary
90
+ }
91
+ },
92
+ {
93
+ variant: "solid",
94
+ color: "success",
95
+ class: {
96
+ base: colorVariants.solid.success
97
+ }
98
+ },
99
+ {
100
+ variant: "solid",
101
+ color: "warning",
102
+ class: {
103
+ base: colorVariants.solid.warning
104
+ }
105
+ },
106
+ {
107
+ variant: "solid",
108
+ color: "danger",
109
+ class: {
110
+ base: colorVariants.solid.danger
111
+ }
112
+ },
113
+ {
114
+ variant: "flat",
115
+ color: "default",
116
+ class: {
117
+ base: [colorVariants.flat.default, "text-default-foreground"],
118
+ description: "text-default-600",
119
+ closeButton: "text-default-400"
120
+ }
121
+ },
122
+ {
123
+ variant: "flat",
124
+ color: "primary",
125
+ class: {
126
+ base: colorVariants.flat.primary,
127
+ closeButton: "text-primary-400 data-[hover]:bg-primary-100"
128
+ }
129
+ },
130
+ {
131
+ variant: "flat",
132
+ color: "secondary",
133
+ class: {
134
+ base: colorVariants.flat.secondary,
135
+ closeButton: "text-secondary-400 data-[hover]:bg-secondary-100"
136
+ }
137
+ },
138
+ {
139
+ variant: "flat",
140
+ color: "success",
141
+ class: {
142
+ base: colorVariants.flat.success,
143
+ closeButton: "text-success-400 data-[hover]:bg-success-100"
144
+ }
145
+ },
146
+ {
147
+ variant: "flat",
148
+ color: "warning",
149
+ class: {
150
+ base: colorVariants.flat.warning,
151
+ closeButton: "text-warning-500 data-[hover]:bg-warning-200"
152
+ }
153
+ },
154
+ {
155
+ variant: "flat",
156
+ color: "danger",
157
+ class: {
158
+ base: colorVariants.flat.danger,
159
+ closeButton: "text-danger-400 data-[hover]:bg-danger-100"
160
+ }
161
+ },
162
+ {
163
+ variant: "bordered",
164
+ color: "default",
165
+ class: {
166
+ base: [colorVariants.bordered.default],
167
+ description: "text-default-600",
168
+ closeButton: "text-default-400"
169
+ }
170
+ },
171
+ {
172
+ variant: "bordered",
173
+ color: "primary",
174
+ class: {
175
+ base: [colorVariants.bordered.primary],
176
+ closeButton: "data-[hover]:bg-primary-50"
177
+ }
178
+ },
179
+ {
180
+ variant: "bordered",
181
+ color: "secondary",
182
+ class: {
183
+ base: [colorVariants.bordered.secondary],
184
+ closeButton: "data-[hover]:bg-secondary-50"
185
+ }
186
+ },
187
+ {
188
+ variant: "bordered",
189
+ color: "success",
190
+ class: {
191
+ base: [colorVariants.bordered.success],
192
+ closeButton: "data-[hover]:bg-success-50"
193
+ }
194
+ },
195
+ {
196
+ variant: "bordered",
197
+ color: "warning",
198
+ class: {
199
+ base: [colorVariants.bordered.warning],
200
+ closeButton: "data-[hover]:bg-warning-100"
201
+ }
202
+ },
203
+ {
204
+ variant: "bordered",
205
+ color: "danger",
206
+ class: {
207
+ base: [colorVariants.bordered.danger],
208
+ closeButton: "data-[hover]:bg-danger-50"
209
+ }
210
+ }
211
+ ]
212
+ });
213
+
214
+ export {
215
+ alert
216
+ };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  twMergeConfig
3
- } from "./chunk-BYWORP66.mjs";
3
+ } from "./chunk-GIXI35A3.mjs";
4
4
 
5
5
  // src/utils/cn.ts
6
6
  import clsx from "clsx";
7
7
  import { extendTailwindMerge } from "tailwind-merge";
8
- var twMerge = extendTailwindMerge(twMergeConfig);
8
+ var twMerge = extendTailwindMerge({ extend: twMergeConfig });
9
9
  function cn(...inputs) {
10
10
  return twMerge(clsx(inputs));
11
11
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
  import {
8
8
  ringClasses
9
9
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/spacer.ts
6
6
  var spacer = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/scroll-shadow.ts
6
6
  var verticalShadow = [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/circular-progress.ts
6
6
  var circularProgress = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/divider.ts
6
6
  var divider = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/drip.ts
6
6
  var drip = tv({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
 
5
5
  // src/components/spinner.ts
6
6
  var spinner = tv({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  colorVariants
3
- } from "./chunk-BZCSOIUI.mjs";
3
+ } from "./chunk-GQT3YUX3.mjs";
4
4
  import {
5
5
  tv
6
- } from "./chunk-N2KXC5ZE.mjs";
6
+ } from "./chunk-UWE6H66T.mjs";
7
7
  import {
8
8
  dataFocusVisibleClasses
9
9
  } from "./chunk-XHQUSKIE.mjs";
@@ -0,0 +1,62 @@
1
+ import {
2
+ tv
3
+ } from "./chunk-UWE6H66T.mjs";
4
+
5
+ // src/components/drawer.ts
6
+ var drawer = tv({
7
+ slots: {
8
+ base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"]
9
+ },
10
+ variants: {
11
+ size: {
12
+ xs: {
13
+ base: "max-w-xs max-h-[20rem]"
14
+ },
15
+ sm: {
16
+ base: "max-w-sm max-h-[24rem]"
17
+ },
18
+ md: {
19
+ base: "max-w-md max-h-[28rem]"
20
+ },
21
+ lg: {
22
+ base: "max-w-lg max-h-[32rem]"
23
+ },
24
+ xl: {
25
+ base: "max-w-xl max-h-[36rem]"
26
+ },
27
+ "2xl": {
28
+ base: "max-w-2xl max-h-[42rem]"
29
+ },
30
+ "3xl": {
31
+ base: "max-w-3xl max-h-[48rem]"
32
+ },
33
+ "4xl": {
34
+ base: "max-w-4xl max-h-[56rem]"
35
+ },
36
+ "5xl": {
37
+ base: "max-w-5xl max-h-[64rem]"
38
+ },
39
+ full: {
40
+ base: "max-w-full max-h-full h-[100dvh] !rounded-none"
41
+ }
42
+ },
43
+ placement: {
44
+ top: {
45
+ base: "inset-x-0 top-0 max-w-[none] rounded-t-none"
46
+ },
47
+ right: {
48
+ base: "inset-y-0 right-0 max-h-[none] rounded-r-none"
49
+ },
50
+ bottom: {
51
+ base: "inset-x-0 bottom-0 max-w-[none] rounded-b-none"
52
+ },
53
+ left: {
54
+ base: "inset-y-0 left-0 max-h-[none] rounded-l-none"
55
+ }
56
+ }
57
+ }
58
+ });
59
+
60
+ export {
61
+ drawer
62
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  dataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "./chunk-N2KXC5ZE.mjs";
3
+ } from "./chunk-UWE6H66T.mjs";
4
4
  import {
5
5
  groupDataFocusVisibleClasses
6
6
  } from "./chunk-XHQUSKIE.mjs";
@@ -8,7 +8,7 @@ import {
8
8
  // src/components/checkbox.ts
9
9
  var checkbox = tv({
10
10
  slots: {
11
- base: "group/checkbox relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
11
+ base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
12
12
  wrapper: [
13
13
  "relative",
14
14
  "inline-flex",
@@ -29,12 +29,12 @@ var checkbox = tv({
29
29
  "after:scale-50",
30
30
  "after:opacity-0",
31
31
  "after:origin-center",
32
- "group-data-[selected=true]/checkbox:after:scale-100",
33
- "group-data-[selected=true]/checkbox:after:opacity-100",
34
- "group-data-[hover=true]/checkbox:before:bg-default-100",
32
+ "group-data-[selected=true]:after:scale-100",
33
+ "group-data-[selected=true]:after:opacity-100",
34
+ "group-data-[hover=true]:before:bg-default-100",
35
35
  ...groupDataFocusVisibleClasses
36
36
  ],
37
- icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]/checkbox:opacity-100",
37
+ icon: "z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",
38
38
  label: "relative text-foreground select-none"
39
39
  },
40
40
  variants: {
@@ -61,7 +61,7 @@ var checkbox = tv({
61
61
  size: {
62
62
  sm: {
63
63
  wrapper: [
64
- "w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]",
64
+ "w-4 h-4 me-2",
65
65
  "rounded-[calc(theme(borderRadius.medium)*0.5)]",
66
66
  "before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
67
67
  "after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
@@ -71,7 +71,7 @@ var checkbox = tv({
71
71
  },
72
72
  md: {
73
73
  wrapper: [
74
- "w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]",
74
+ "w-5 h-5 me-2",
75
75
  "rounded-[calc(theme(borderRadius.medium)*0.6)]",
76
76
  "before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
77
77
  "after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
@@ -81,7 +81,7 @@ var checkbox = tv({
81
81
  },
82
82
  lg: {
83
83
  wrapper: [
84
- "w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
84
+ "w-6 h-6 me-2",
85
85
  "rounded-[calc(theme(borderRadius.medium)*0.7)]",
86
86
  "before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
87
87
  "after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
@@ -130,8 +130,8 @@ var checkbox = tv({
130
130
  "before:bg-foreground",
131
131
  "before:w-0",
132
132
  "before:h-0.5",
133
- "group-data-[selected=true]/checkbox:opacity-60",
134
- "group-data-[selected=true]/checkbox:before:w-full"
133
+ "group-data-[selected=true]:opacity-60",
134
+ "group-data-[selected=true]:before:w-full"
135
135
  ]
136
136
  }
137
137
  },
@@ -155,7 +155,7 @@ var checkbox = tv({
155
155
  false: {
156
156
  wrapper: [
157
157
  "before:transition-colors",
158
- "group-data-[pressed=true]/checkbox:scale-95",
158
+ "group-data-[pressed=true]:scale-95",
159
159
  "transition-transform",
160
160
  "after:transition-transform-opacity",
161
161
  "after:!ease-linear",