@sikka/hawa 0.48.0-next → 0.49.0-next

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 (303) hide show
  1. package/dist/accordion/index.js +3 -28
  2. package/dist/accordion/index.js.map +1 -1
  3. package/dist/accordion/index.mjs +3 -28
  4. package/dist/accordion/index.mjs.map +1 -1
  5. package/dist/alert/index.js +53 -98
  6. package/dist/alert/index.js.map +1 -1
  7. package/dist/alert/index.mjs +53 -98
  8. package/dist/alert/index.mjs.map +1 -1
  9. package/dist/appLayout/index.d.mts +2 -0
  10. package/dist/appLayout/index.d.ts +2 -0
  11. package/dist/appLayout/index.js +263 -409
  12. package/dist/appLayout/index.js.map +1 -1
  13. package/dist/appLayout/index.mjs +263 -409
  14. package/dist/appLayout/index.mjs.map +1 -1
  15. package/dist/appMenubar/index.js +15 -20
  16. package/dist/appMenubar/index.js.map +1 -1
  17. package/dist/appMenubar/index.mjs +15 -20
  18. package/dist/appMenubar/index.mjs.map +1 -1
  19. package/dist/appTabs/index.js +28 -37
  20. package/dist/appTabs/index.js.map +1 -1
  21. package/dist/appTabs/index.mjs +28 -37
  22. package/dist/appTabs/index.mjs.map +1 -1
  23. package/dist/appTopbar/index.js +125 -173
  24. package/dist/appTopbar/index.js.map +1 -1
  25. package/dist/appTopbar/index.mjs +125 -173
  26. package/dist/appTopbar/index.mjs.map +1 -1
  27. package/dist/avatar/index.js.map +1 -1
  28. package/dist/avatar/index.mjs.map +1 -1
  29. package/dist/backToTop/index.js +50 -82
  30. package/dist/backToTop/index.js.map +1 -1
  31. package/dist/backToTop/index.mjs +50 -82
  32. package/dist/backToTop/index.mjs.map +1 -1
  33. package/dist/badge/index.d.mts +1 -1
  34. package/dist/badge/index.d.ts +1 -1
  35. package/dist/badge/index.js +2 -18
  36. package/dist/badge/index.js.map +1 -1
  37. package/dist/badge/index.mjs +2 -18
  38. package/dist/badge/index.mjs.map +1 -1
  39. package/dist/blocks/auth/index.d.mts +1 -0
  40. package/dist/blocks/auth/index.d.ts +1 -0
  41. package/dist/blocks/auth/index.js +539 -792
  42. package/dist/blocks/auth/index.mjs +433 -604
  43. package/dist/blocks/feedback/index.js +214 -375
  44. package/dist/blocks/feedback/index.mjs +12 -25
  45. package/dist/blocks/index.d.mts +1 -0
  46. package/dist/blocks/index.d.ts +1 -0
  47. package/dist/blocks/index.js +940 -1445
  48. package/dist/blocks/index.mjs +469 -615
  49. package/dist/blocks/misc/index.js +136 -251
  50. package/dist/blocks/misc/index.mjs +29 -54
  51. package/dist/blocks/pricing/index.js +220 -397
  52. package/dist/blocks/pricing/index.mjs +63 -134
  53. package/dist/breadcrumb/index.js +1 -5
  54. package/dist/breadcrumb/index.js.map +1 -1
  55. package/dist/breadcrumb/index.mjs +1 -5
  56. package/dist/breadcrumb/index.mjs.map +1 -1
  57. package/dist/button/index.js +50 -82
  58. package/dist/button/index.js.map +1 -1
  59. package/dist/button/index.mjs +50 -82
  60. package/dist/button/index.mjs.map +1 -1
  61. package/dist/calendar/index.js +50 -82
  62. package/dist/calendar/index.js.map +1 -1
  63. package/dist/calendar/index.mjs +50 -82
  64. package/dist/calendar/index.mjs.map +1 -1
  65. package/dist/card/index.js +7 -35
  66. package/dist/card/index.js.map +1 -1
  67. package/dist/card/index.mjs +7 -35
  68. package/dist/card/index.mjs.map +1 -1
  69. package/dist/carousel/index.js +15 -27
  70. package/dist/carousel/index.js.map +1 -1
  71. package/dist/carousel/index.mjs +15 -27
  72. package/dist/carousel/index.mjs.map +1 -1
  73. package/dist/checkbox/index.js +2 -13
  74. package/dist/checkbox/index.js.map +1 -1
  75. package/dist/checkbox/index.mjs +2 -13
  76. package/dist/checkbox/index.mjs.map +1 -1
  77. package/dist/chip/index.js +2 -16
  78. package/dist/chip/index.js.map +1 -1
  79. package/dist/chip/index.mjs +2 -16
  80. package/dist/chip/index.mjs.map +1 -1
  81. package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
  82. package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
  83. package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
  84. package/dist/chunk-GHGWQVTM.mjs +150 -0
  85. package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
  86. package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
  87. package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
  88. package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
  89. package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
  90. package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
  91. package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
  92. package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
  93. package/dist/codeBlock/index.js +50 -82
  94. package/dist/codeBlock/index.js.map +1 -1
  95. package/dist/codeBlock/index.mjs +50 -82
  96. package/dist/codeBlock/index.mjs.map +1 -1
  97. package/dist/colorPicker/index.js +21 -33
  98. package/dist/colorPicker/index.js.map +1 -1
  99. package/dist/colorPicker/index.mjs +22 -37
  100. package/dist/colorPicker/index.mjs.map +1 -1
  101. package/dist/combobox/index.d.mts +1 -1
  102. package/dist/combobox/index.d.ts +1 -1
  103. package/dist/combobox/index.js +141 -223
  104. package/dist/combobox/index.js.map +1 -1
  105. package/dist/combobox/index.mjs +141 -223
  106. package/dist/combobox/index.mjs.map +1 -1
  107. package/dist/command/index.d.mts +1 -1
  108. package/dist/command/index.d.ts +1 -1
  109. package/dist/command/index.js +129 -212
  110. package/dist/command/index.js.map +1 -1
  111. package/dist/command/index.mjs +129 -212
  112. package/dist/command/index.mjs.map +1 -1
  113. package/dist/dataTable/index.js +254 -394
  114. package/dist/dataTable/index.js.map +1 -1
  115. package/dist/dataTable/index.mjs +254 -394
  116. package/dist/dataTable/index.mjs.map +1 -1
  117. package/dist/datePicker/index.js +64 -105
  118. package/dist/datePicker/index.js.map +1 -1
  119. package/dist/datePicker/index.mjs +64 -105
  120. package/dist/datePicker/index.mjs.map +1 -1
  121. package/dist/destroyableCard/index.js +8 -39
  122. package/dist/destroyableCard/index.js.map +1 -1
  123. package/dist/destroyableCard/index.mjs +8 -39
  124. package/dist/destroyableCard/index.mjs.map +1 -1
  125. package/dist/dialog/index.js +70 -122
  126. package/dist/dialog/index.js.map +1 -1
  127. package/dist/dialog/index.mjs +70 -122
  128. package/dist/dialog/index.mjs.map +1 -1
  129. package/dist/docsLayout/index.js +169 -358
  130. package/dist/docsLayout/index.js.map +1 -1
  131. package/dist/docsLayout/index.mjs +169 -358
  132. package/dist/docsLayout/index.mjs.map +1 -1
  133. package/dist/docsSidebar/index.js +9 -16
  134. package/dist/docsSidebar/index.js.map +1 -1
  135. package/dist/docsSidebar/index.mjs +9 -16
  136. package/dist/docsSidebar/index.mjs.map +1 -1
  137. package/dist/dropdownMenu/index.js +124 -164
  138. package/dist/dropdownMenu/index.js.map +1 -1
  139. package/dist/dropdownMenu/index.mjs +124 -164
  140. package/dist/dropdownMenu/index.mjs.map +1 -1
  141. package/dist/elements/index.d.mts +3 -3
  142. package/dist/elements/index.d.ts +3 -3
  143. package/dist/elements/index.js +841 -1505
  144. package/dist/elements/index.mjs +381 -718
  145. package/dist/fileDropzone/index.js +60 -159
  146. package/dist/fileDropzone/index.js.map +1 -1
  147. package/dist/fileDropzone/index.mjs +60 -159
  148. package/dist/fileDropzone/index.mjs.map +1 -1
  149. package/dist/glow/index.js +4 -16
  150. package/dist/glow/index.js.map +1 -1
  151. package/dist/glow/index.mjs +4 -16
  152. package/dist/glow/index.mjs.map +1 -1
  153. package/dist/hooks/index.d.mts +1 -5
  154. package/dist/hooks/index.d.ts +1 -5
  155. package/dist/hooks/index.js +11 -24
  156. package/dist/hooks/index.mjs +2 -2
  157. package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
  158. package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
  159. package/dist/index.css +1 -6
  160. package/dist/index.d.mts +7 -8
  161. package/dist/index.d.ts +7 -8
  162. package/dist/index.js +1549 -2512
  163. package/dist/index.mjs +1550 -2516
  164. package/dist/input/index.js +20 -29
  165. package/dist/input/index.js.map +1 -1
  166. package/dist/input/index.mjs +20 -29
  167. package/dist/input/index.mjs.map +1 -1
  168. package/dist/interfaceSettings/index.js +122 -163
  169. package/dist/interfaceSettings/index.js.map +1 -1
  170. package/dist/interfaceSettings/index.mjs +122 -163
  171. package/dist/interfaceSettings/index.mjs.map +1 -1
  172. package/dist/label/index.js +19 -26
  173. package/dist/label/index.js.map +1 -1
  174. package/dist/label/index.mjs +19 -26
  175. package/dist/label/index.mjs.map +1 -1
  176. package/dist/layout/index.d.mts +2 -0
  177. package/dist/layout/index.d.ts +2 -0
  178. package/dist/layout/index.js +434 -790
  179. package/dist/layout/index.mjs +143 -243
  180. package/dist/loading/index.js +30 -53
  181. package/dist/loading/index.js.map +1 -1
  182. package/dist/loading/index.mjs +30 -53
  183. package/dist/loading/index.mjs.map +1 -1
  184. package/dist/logos/index.js +66 -191
  185. package/dist/logos/index.js.map +1 -1
  186. package/dist/logos/index.mjs +66 -191
  187. package/dist/logos/index.mjs.map +1 -1
  188. package/dist/navbar/index.js +1 -4
  189. package/dist/navbar/index.js.map +1 -1
  190. package/dist/navbar/index.mjs +1 -4
  191. package/dist/navbar/index.mjs.map +1 -1
  192. package/dist/navigationMenu/index.js +14 -22
  193. package/dist/navigationMenu/index.js.map +1 -1
  194. package/dist/navigationMenu/index.mjs +14 -22
  195. package/dist/navigationMenu/index.mjs.map +1 -1
  196. package/dist/pagination/index.js +1 -5
  197. package/dist/pagination/index.js.map +1 -1
  198. package/dist/pagination/index.mjs +1 -5
  199. package/dist/pagination/index.mjs.map +1 -1
  200. package/dist/passwordInput/index.js +36 -65
  201. package/dist/passwordInput/index.js.map +1 -1
  202. package/dist/passwordInput/index.mjs +36 -65
  203. package/dist/passwordInput/index.mjs.map +1 -1
  204. package/dist/phoneInput/index.js +20 -29
  205. package/dist/phoneInput/index.js.map +1 -1
  206. package/dist/phoneInput/index.mjs +20 -29
  207. package/dist/phoneInput/index.mjs.map +1 -1
  208. package/dist/pinInput/index.js +14 -16
  209. package/dist/pinInput/index.js.map +1 -1
  210. package/dist/pinInput/index.mjs +14 -16
  211. package/dist/pinInput/index.mjs.map +1 -1
  212. package/dist/popover/index.js +14 -24
  213. package/dist/popover/index.js.map +1 -1
  214. package/dist/popover/index.mjs +14 -24
  215. package/dist/popover/index.mjs.map +1 -1
  216. package/dist/progress/index.js +19 -26
  217. package/dist/progress/index.js.map +1 -1
  218. package/dist/progress/index.mjs +19 -26
  219. package/dist/progress/index.mjs.map +1 -1
  220. package/dist/progressCircle/index.js +67 -71
  221. package/dist/progressCircle/index.js.map +1 -1
  222. package/dist/progressCircle/index.mjs +67 -71
  223. package/dist/progressCircle/index.mjs.map +1 -1
  224. package/dist/radio/index.js +122 -163
  225. package/dist/radio/index.js.map +1 -1
  226. package/dist/radio/index.mjs +122 -163
  227. package/dist/radio/index.mjs.map +1 -1
  228. package/dist/scrollArea/index.js.map +1 -1
  229. package/dist/scrollArea/index.mjs.map +1 -1
  230. package/dist/scrollIndicator/index.js +1 -4
  231. package/dist/scrollIndicator/index.js.map +1 -1
  232. package/dist/scrollIndicator/index.mjs +1 -4
  233. package/dist/scrollIndicator/index.mjs.map +1 -1
  234. package/dist/select/index.js +20 -29
  235. package/dist/select/index.js.map +1 -1
  236. package/dist/select/index.mjs +20 -29
  237. package/dist/select/index.mjs.map +1 -1
  238. package/dist/separator/index.js.map +1 -1
  239. package/dist/separator/index.mjs.map +1 -1
  240. package/dist/sheet/index.js +42 -53
  241. package/dist/sheet/index.js.map +1 -1
  242. package/dist/sheet/index.mjs +42 -53
  243. package/dist/sheet/index.mjs.map +1 -1
  244. package/dist/sidebar/index.js +66 -133
  245. package/dist/sidebar/index.js.map +1 -1
  246. package/dist/sidebar/index.mjs +66 -133
  247. package/dist/sidebar/index.mjs.map +1 -1
  248. package/dist/signature/index.js +19 -26
  249. package/dist/signature/index.js.map +1 -1
  250. package/dist/signature/index.mjs +19 -26
  251. package/dist/signature/index.mjs.map +1 -1
  252. package/dist/simpleTable/index.js +50 -81
  253. package/dist/simpleTable/index.js.map +1 -1
  254. package/dist/simpleTable/index.mjs +50 -81
  255. package/dist/simpleTable/index.mjs.map +1 -1
  256. package/dist/skeleton/index.js.map +1 -1
  257. package/dist/skeleton/index.mjs.map +1 -1
  258. package/dist/slider/index.js.map +1 -1
  259. package/dist/slider/index.mjs.map +1 -1
  260. package/dist/sonner/index.js.map +1 -1
  261. package/dist/sonner/index.mjs.map +1 -1
  262. package/dist/sortButton/index.js +50 -82
  263. package/dist/sortButton/index.js.map +1 -1
  264. package/dist/sortButton/index.mjs +50 -82
  265. package/dist/sortButton/index.mjs.map +1 -1
  266. package/dist/splitButton/index.js +214 -294
  267. package/dist/splitButton/index.js.map +1 -1
  268. package/dist/splitButton/index.mjs +214 -294
  269. package/dist/splitButton/index.mjs.map +1 -1
  270. package/dist/stats/index.js +7 -35
  271. package/dist/stats/index.js.map +1 -1
  272. package/dist/stats/index.mjs +7 -35
  273. package/dist/stats/index.mjs.map +1 -1
  274. package/dist/switch/index.js +24 -34
  275. package/dist/switch/index.js.map +1 -1
  276. package/dist/switch/index.mjs +24 -34
  277. package/dist/switch/index.mjs.map +1 -1
  278. package/dist/table/index.js +27 -29
  279. package/dist/table/index.js.map +1 -1
  280. package/dist/table/index.mjs +27 -29
  281. package/dist/table/index.mjs.map +1 -1
  282. package/dist/tabs/index.js +54 -76
  283. package/dist/tabs/index.js.map +1 -1
  284. package/dist/tabs/index.mjs +54 -76
  285. package/dist/tabs/index.mjs.map +1 -1
  286. package/dist/textarea/index.js +21 -38
  287. package/dist/textarea/index.js.map +1 -1
  288. package/dist/textarea/index.mjs +21 -38
  289. package/dist/textarea/index.mjs.map +1 -1
  290. package/dist/toast/index.js +2 -10
  291. package/dist/toast/index.js.map +1 -1
  292. package/dist/toast/index.mjs +2 -10
  293. package/dist/toast/index.mjs.map +1 -1
  294. package/dist/toaster/index.js +3 -16
  295. package/dist/toaster/index.js.map +1 -1
  296. package/dist/toaster/index.mjs +3 -16
  297. package/dist/toaster/index.mjs.map +1 -1
  298. package/dist/tooltip/index.js +19 -26
  299. package/dist/tooltip/index.js.map +1 -1
  300. package/dist/tooltip/index.mjs +19 -26
  301. package/dist/tooltip/index.mjs.map +1 -1
  302. package/package.json +12 -12
  303. package/dist/chunk-JP2N5WKD.mjs +0 -190
@@ -26,10 +26,10 @@ import {
26
26
  TabsList,
27
27
  TabsTrigger,
28
28
  Textarea
29
- } from "../chunk-GBLWUEYN.mjs";
29
+ } from "../chunk-ULRL4WI6.mjs";
30
30
  import {
31
31
  useClipboard
32
- } from "../chunk-WL7C2A5D.mjs";
32
+ } from "../chunk-WQR4XZGL.mjs";
33
33
  import {
34
34
  Sheet,
35
35
  SheetClose,
@@ -41,7 +41,7 @@ import {
41
41
  SheetPortal,
42
42
  SheetTitle,
43
43
  SheetTrigger
44
- } from "../chunk-WUMDFBEK.mjs";
44
+ } from "../chunk-3CHFVHTW.mjs";
45
45
  import {
46
46
  Button,
47
47
  Card,
@@ -81,10 +81,10 @@ import {
81
81
  buttonVariants,
82
82
  calculateLuminance,
83
83
  cn
84
- } from "../chunk-6SJUUJOV.mjs";
84
+ } from "../chunk-KDGJZPWK.mjs";
85
85
  import {
86
86
  __require
87
- } from "../chunk-2LUXOXAL.mjs";
87
+ } from "../chunk-5SQBJRWE.mjs";
88
88
 
89
89
  // elements/accordion/Accordion.tsx
90
90
  import * as React3 from "react";
@@ -180,18 +180,7 @@ var Accordion = React3.forwardRef(
180
180
  triggerclassNames
181
181
  )
182
182
  },
183
- /* @__PURE__ */ React3.createElement(
184
- "span",
185
- {
186
- className: cn(
187
- "hawa-flex hawa-flex-row",
188
- item.chip && "hawa-gap-2"
189
- )
190
- },
191
- item.trigger,
192
- " ",
193
- item.chip && /* @__PURE__ */ React3.createElement(Chip, { ...item.chip })
194
- )
183
+ /* @__PURE__ */ React3.createElement("span", { className: cn("hawa-flex hawa-flex-row", item.chip && "hawa-gap-2") }, item.trigger, " ", item.chip && /* @__PURE__ */ React3.createElement(Chip, { ...item.chip }))
195
184
  ),
196
185
  /* @__PURE__ */ React3.createElement(
197
186
  AccordionContent,
@@ -296,30 +285,22 @@ var NavigationMenuContent = React5.forwardRef(({ className, ...props }, ref) =>
296
285
  }
297
286
  ));
298
287
  var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React5.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React5.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React5.createElement("p", { className: "hawa-text-sm" }, subtitle))));
299
- var NavigationMenuViewport = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
300
- "div",
288
+ var NavigationMenuViewport = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement("div", { className: cn("hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center") }, /* @__PURE__ */ React5.createElement(
289
+ NavigationMenuPrimitive.Viewport,
301
290
  {
302
291
  className: cn(
303
- "hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
304
- )
305
- },
306
- /* @__PURE__ */ React5.createElement(
307
- NavigationMenuPrimitive.Viewport,
308
- {
309
- className: cn(
310
- "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90",
311
- // hawa-h-[var(--radix-navigation-menu-viewport-height)]
312
- // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
313
- className
314
- ),
315
- style: {
316
- height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
317
- },
318
- ref,
319
- ...props
320
- }
321
- )
322
- ));
292
+ "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90",
293
+ // hawa-h-[var(--radix-navigation-menu-viewport-height)]
294
+ // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
295
+ className
296
+ ),
297
+ style: {
298
+ height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
299
+ },
300
+ ref,
301
+ ...props
302
+ }
303
+ )));
323
304
  var NavigationMenuIndicator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
324
305
  NavigationMenuPrimitive.Indicator,
325
306
  {
@@ -393,23 +374,7 @@ var DialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PU
393
374
  }
394
375
  ));
395
376
  var DialogContent = React6.forwardRef(
396
- ({
397
- ids,
398
- className,
399
- classNames,
400
- children,
401
- persist,
402
- hideCloseButton,
403
- overlayProps,
404
- ...props
405
- }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React6.createElement(
406
- DialogOverlay,
407
- {
408
- className: classNames == null ? void 0 : classNames.overlay,
409
- id: ids == null ? void 0 : ids.overlay,
410
- ...overlayProps
411
- }
412
- ), /* @__PURE__ */ React6.createElement(
377
+ ({ ids, className, classNames, children, persist, hideCloseButton, overlayProps, ...props }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React6.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay, ...overlayProps }), /* @__PURE__ */ React6.createElement(
413
378
  DialogPrimitive.Content,
414
379
  {
415
380
  onPointerDownOutside: (e) => {
@@ -458,100 +423,87 @@ var DialogContent = React6.forwardRef(
458
423
  )
459
424
  ))
460
425
  );
461
- var DialogCarouselContent = React6.forwardRef(
462
- ({
463
- className,
464
- children,
465
- onPrev,
466
- persist,
467
- hideCloseButton,
468
- hidePrevButton,
426
+ var DialogCarouselContent = React6.forwardRef(({ className, children, onPrev, persist, hideCloseButton, hidePrevButton, ...props }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, null, /* @__PURE__ */ React6.createElement(DialogOverlay, null), /* @__PURE__ */ React6.createElement(
427
+ DialogPrimitive.Content,
428
+ {
429
+ onPointerDownOutside: (e) => {
430
+ if (persist) {
431
+ e.preventDefault();
432
+ }
433
+ },
434
+ ref,
435
+ className: cn(
436
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
437
+ className
438
+ ),
469
439
  ...props
470
- }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, null, /* @__PURE__ */ React6.createElement(DialogOverlay, null), /* @__PURE__ */ React6.createElement(
471
- DialogPrimitive.Content,
440
+ },
441
+ children,
442
+ /* @__PURE__ */ React6.createElement(
443
+ "div",
472
444
  {
473
- onPointerDownOutside: (e) => {
474
- if (persist) {
475
- e.preventDefault();
476
- }
477
- },
478
- ref,
479
445
  className: cn(
480
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
481
- className
482
- ),
483
- ...props
446
+ "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
447
+ onPrev ? "hawa-justify-between" : "hawa-justify-end"
448
+ )
484
449
  },
485
- children,
486
- /* @__PURE__ */ React6.createElement(
450
+ hidePrevButton ? /* @__PURE__ */ React6.createElement("div", null) : /* @__PURE__ */ React6.createElement(
487
451
  "div",
488
452
  {
453
+ onClick: onPrev,
489
454
  className: cn(
490
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
491
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
455
+ "hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
456
+ props.dir === "rtl" && "hawa-rotate-180"
492
457
  )
493
458
  },
494
- hidePrevButton ? /* @__PURE__ */ React6.createElement("div", null) : /* @__PURE__ */ React6.createElement(
495
- "div",
459
+ /* @__PURE__ */ React6.createElement(
460
+ "svg",
496
461
  {
497
- onClick: onPrev,
498
- className: cn(
499
- "hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
500
- props.dir === "rtl" && "hawa-rotate-180"
501
- )
462
+ xmlns: "http://www.w3.org/2000/svg",
463
+ width: "24",
464
+ height: "24",
465
+ viewBox: "0 0 24 24",
466
+ fill: "none",
467
+ className: "hawa-h-6 hawa-w-6",
468
+ stroke: "currentColor",
469
+ strokeWidth: "2",
470
+ strokeLinecap: "round",
471
+ strokeLinejoin: "round"
502
472
  },
503
- /* @__PURE__ */ React6.createElement(
504
- "svg",
505
- {
506
- xmlns: "http://www.w3.org/2000/svg",
507
- width: "24",
508
- height: "24",
509
- viewBox: "0 0 24 24",
510
- fill: "none",
511
- className: "hawa-h-6 hawa-w-6",
512
- stroke: "currentColor",
513
- strokeWidth: "2",
514
- strokeLinecap: "round",
515
- strokeLinejoin: "round"
516
- },
517
- /* @__PURE__ */ React6.createElement("path", { d: "m15 18-6-6 6-6" })
473
+ /* @__PURE__ */ React6.createElement("path", { d: "m15 18-6-6 6-6" })
474
+ )
475
+ ),
476
+ !hideCloseButton && /* @__PURE__ */ React6.createElement(
477
+ DialogPrimitive.Close,
478
+ {
479
+ className: cn(
480
+ "hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
481
+ props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
518
482
  )
519
- ),
520
- !hideCloseButton && /* @__PURE__ */ React6.createElement(
521
- DialogPrimitive.Close,
483
+ },
484
+ /* @__PURE__ */ React6.createElement(
485
+ "svg",
522
486
  {
523
- className: cn(
524
- "hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
525
- props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
526
- )
487
+ "aria-label": "Close Icon",
488
+ "aria-hidden": "true",
489
+ className: "hawa-h-6 hawa-w-6",
490
+ fill: "currentColor",
491
+ viewBox: "0 0 20 20"
527
492
  },
528
493
  /* @__PURE__ */ React6.createElement(
529
- "svg",
494
+ "path",
530
495
  {
531
- "aria-label": "Close Icon",
532
- "aria-hidden": "true",
533
- className: "hawa-h-6 hawa-w-6",
534
- fill: "currentColor",
535
- viewBox: "0 0 20 20"
536
- },
537
- /* @__PURE__ */ React6.createElement(
538
- "path",
539
- {
540
- fillRule: "evenodd",
541
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
542
- clipRule: "evenodd"
543
- }
544
- )
545
- ),
546
- /* @__PURE__ */ React6.createElement("span", { className: "hawa-sr-only" }, "Close")
547
- )
496
+ fillRule: "evenodd",
497
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
498
+ clipRule: "evenodd"
499
+ }
500
+ )
501
+ ),
502
+ /* @__PURE__ */ React6.createElement("span", { className: "hawa-sr-only" }, "Close")
548
503
  )
549
- ))
550
- );
551
- var DialogHeader = ({
552
- className,
553
- ...props
554
- }) => /* @__PURE__ */ React6.createElement(
504
+ )
505
+ )));
506
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React6.createElement(
555
507
  "div",
556
508
  {
557
509
  className: cn(
@@ -576,17 +528,11 @@ var DialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @
576
528
  DialogPrimitive.Description,
577
529
  {
578
530
  ref,
579
- className: cn(
580
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
581
- className
582
- ),
531
+ className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
583
532
  ...props
584
533
  }
585
534
  ));
586
- var DialogFooter = ({
587
- className,
588
- ...props
589
- }) => /* @__PURE__ */ React6.createElement(
535
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React6.createElement(
590
536
  "div",
591
537
  {
592
538
  className: cn(
@@ -627,11 +573,7 @@ var DialogCarousel = ({
627
573
  ))
628
574
  )));
629
575
  };
630
- var DialogSteps = ({
631
- currentStep,
632
- visibleStepRef,
633
- children
634
- }) => {
576
+ var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
635
577
  const [dialogHeight, setDialogHeight] = React6.useState(null);
636
578
  React6.useEffect(() => {
637
579
  if (visibleStepRef.current) {
@@ -660,21 +602,8 @@ var DialogSteps = ({
660
602
  ))
661
603
  );
662
604
  };
663
- var DialogStep = ({
664
- id,
665
- children,
666
- className,
667
- stepRef
668
- }) => {
669
- return /* @__PURE__ */ React6.createElement(
670
- "div",
671
- {
672
- id,
673
- ref: stepRef,
674
- className: cn("hawa-w-full hawa-px-1", className)
675
- },
676
- children
677
- );
605
+ var DialogStep = ({ id, children, className, stepRef }) => {
606
+ return /* @__PURE__ */ React6.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
678
607
  };
679
608
  var DialogBody = ({ children, className }) => {
680
609
  return /* @__PURE__ */ React6.createElement("div", { className: cn("hawa-py-6", className) }, children);
@@ -823,14 +752,16 @@ import {
823
752
 
824
753
  // elements/table/Table.tsx
825
754
  import * as React9 from "react";
826
- var Table = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React9.createElement(
827
- "table",
828
- {
829
- ref,
830
- className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
831
- ...props
832
- }
833
- )));
755
+ var Table = React9.forwardRef(
756
+ ({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React9.createElement(
757
+ "table",
758
+ {
759
+ ref,
760
+ className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
761
+ ...props
762
+ }
763
+ ))
764
+ );
834
765
  var TableHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
835
766
  "thead",
836
767
  {
@@ -863,26 +794,25 @@ var TableFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE
863
794
  "tfoot",
864
795
  {
865
796
  ref,
866
- className: cn(
867
- "hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
868
- className
869
- ),
870
- ...props
871
- }
872
- ));
873
- var TableRow = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
874
- "tr",
875
- {
876
- ref,
877
- className: cn(
878
- "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
879
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
880
- "[&:not(:last-child)]:hawa-border-b",
881
- className
882
- ),
797
+ className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className),
883
798
  ...props
884
799
  }
885
800
  ));
801
+ var TableRow = React9.forwardRef(
802
+ ({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
803
+ "tr",
804
+ {
805
+ ref,
806
+ className: cn(
807
+ "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
808
+ "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
809
+ "[&:not(:last-child)]:hawa-border-b",
810
+ className
811
+ ),
812
+ ...props
813
+ }
814
+ )
815
+ );
886
816
  var TableCell = React9.forwardRef(
887
817
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
888
818
  let paddingStyles = {
@@ -915,10 +845,7 @@ var TableCaption = React9.forwardRef(({ className, ...props }, ref) => /* @__PUR
915
845
  "caption",
916
846
  {
917
847
  ref,
918
- className: cn(
919
- "hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
920
- className
921
- ),
848
+ className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className),
922
849
  ...props
923
850
  }
924
851
  ));
@@ -950,9 +877,7 @@ var DataTable = ({
950
877
  const [sorting, setSorting] = React10.useState(
951
878
  props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
952
879
  );
953
- const [columnFilters, setColumnFilters] = React10.useState(
954
- []
955
- );
880
+ const [columnFilters, setColumnFilters] = React10.useState([]);
956
881
  const [globalFilter, setGlobalFilter] = React10.useState("");
957
882
  const [expanded, setExpanded] = React10.useState({});
958
883
  const [columnVisibility, setColumnVisibility] = React10.useState(() => {
@@ -1094,52 +1019,38 @@ var DataTable = ({
1094
1019
  )
1095
1020
  ) : null
1096
1021
  }
1097
- ), enableHideColumns && /* @__PURE__ */ React10.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React10.createElement(
1098
- Button,
1022
+ ), enableHideColumns && /* @__PURE__ */ React10.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React10.createElement(Button, { variant: "outline", className: "hawa-flex hawa-flex-row hawa-gap-2" }, ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns", /* @__PURE__ */ React10.createElement(
1023
+ "svg",
1099
1024
  {
1100
- variant: "outline",
1101
- className: "hawa-flex hawa-flex-row hawa-gap-2"
1025
+ width: "15",
1026
+ height: "15",
1027
+ viewBox: "0 0 15 15",
1028
+ fill: "none",
1029
+ xmlns: "http://www.w3.org/2000/svg"
1102
1030
  },
1103
- ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
1104
1031
  /* @__PURE__ */ React10.createElement(
1105
- "svg",
1032
+ "path",
1106
1033
  {
1107
- width: "15",
1108
- height: "15",
1109
- viewBox: "0 0 15 15",
1110
- fill: "none",
1111
- xmlns: "http://www.w3.org/2000/svg"
1112
- },
1113
- /* @__PURE__ */ React10.createElement(
1114
- "path",
1115
- {
1116
- d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
1117
- fill: "currentColor",
1118
- "fill-rule": "evenodd",
1119
- "clip-rule": "evenodd"
1120
- }
1121
- )
1034
+ d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
1035
+ fill: "currentColor",
1036
+ fillRule: "evenodd",
1037
+ clipRule: "evenodd"
1038
+ }
1122
1039
  )
1123
- )), /* @__PURE__ */ React10.createElement(
1124
- DropdownMenuContent,
1125
- {
1126
- align: props.direction === "rtl" ? "start" : "end"
1127
- },
1128
- table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1129
- var _a2, _b2;
1130
- return /* @__PURE__ */ React10.createElement(
1131
- DropdownMenuCheckboxItem,
1132
- {
1133
- key: column.id,
1134
- checked: column.getIsVisible(),
1135
- onCheckedChange: (value) => column.toggleVisibility(!!value)
1136
- },
1137
- translateFn ? translateFn(
1138
- ((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
1139
- ) : column.id
1140
- );
1141
- })
1142
- ))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
1040
+ ))), /* @__PURE__ */ React10.createElement(DropdownMenuContent, { align: props.direction === "rtl" ? "start" : "end" }, table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1041
+ var _a2, _b2;
1042
+ return /* @__PURE__ */ React10.createElement(
1043
+ DropdownMenuCheckboxItem,
1044
+ {
1045
+ key: column.id,
1046
+ checked: column.getIsVisible(),
1047
+ onCheckedChange: (value) => column.toggleVisibility(!!value)
1048
+ },
1049
+ translateFn ? translateFn(
1050
+ ((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
1051
+ ) : column.id
1052
+ );
1053
+ })))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
1143
1054
  return /* @__PURE__ */ React10.createElement(
1144
1055
  Button,
1145
1056
  {
@@ -1189,45 +1100,25 @@ var DataTable = ({
1189
1100
  width: `${header.column.columnDef.size}px !important`
1190
1101
  }
1191
1102
  },
1192
- header.isPlaceholder ? null : flexRender(
1193
- header.column.columnDef.header,
1194
- header.getContext()
1195
- )
1103
+ header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())
1196
1104
  );
1197
- })))), /* @__PURE__ */ React10.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React10.createElement(
1198
- TableRow,
1199
- {
1200
- key: row.id,
1201
- "data-state": row.getIsSelected() && "selected"
1202
- },
1203
- row.getVisibleCells().map((cell) => {
1204
- var _a2;
1205
- return /* @__PURE__ */ React10.createElement(
1206
- TableCell,
1207
- {
1208
- key: cell.id,
1209
- dir: props.direction,
1210
- style: {
1211
- maxWidth: `${cell.column.columnDef.maxSize}px !important`,
1212
- minWidth: `${cell.column.columnDef.minSize}px !important`,
1213
- width: `${cell.column.columnDef.size}px !important`
1214
- },
1215
- padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
1105
+ })))), /* @__PURE__ */ React10.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React10.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
1106
+ var _a2;
1107
+ return /* @__PURE__ */ React10.createElement(
1108
+ TableCell,
1109
+ {
1110
+ key: cell.id,
1111
+ dir: props.direction,
1112
+ style: {
1113
+ maxWidth: `${cell.column.columnDef.maxSize}px !important`,
1114
+ minWidth: `${cell.column.columnDef.minSize}px !important`,
1115
+ width: `${cell.column.columnDef.size}px !important`
1216
1116
  },
1217
- flexRender(
1218
- cell.column.columnDef.cell,
1219
- cell.getContext()
1220
- )
1221
- );
1222
- })
1223
- )) : /* @__PURE__ */ React10.createElement(TableRow, null, /* @__PURE__ */ React10.createElement(
1224
- TableCell,
1225
- {
1226
- colSpan: columns.length,
1227
- className: "hawa-h-24 hawa-text-center"
1228
- },
1229
- (_h = props.texts) == null ? void 0 : _h.noData
1230
- ))))),
1117
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
1118
+ },
1119
+ flexRender(cell.column.columnDef.cell, cell.getContext())
1120
+ );
1121
+ }))) : /* @__PURE__ */ React10.createElement(TableRow, null, /* @__PURE__ */ React10.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_h = props.texts) == null ? void 0 : _h.noData))))),
1231
1122
  /* @__PURE__ */ React10.createElement(
1232
1123
  "div",
1233
1124
  {
@@ -1237,16 +1128,7 @@ var DataTable = ({
1237
1128
  )
1238
1129
  },
1239
1130
  !props.showCount && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
1240
- props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React10.createElement(
1241
- "div",
1242
- {
1243
- className: "hawa-text-muted-foreground hawa-text-sm",
1244
- dir: props.direction
1245
- },
1246
- /* @__PURE__ */ React10.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
1247
- " ",
1248
- /* @__PURE__ */ React10.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1249
- ), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React10.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React10.createElement(
1131
+ props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React10.createElement("div", { className: "hawa-text-muted-foreground hawa-text-sm", dir: props.direction }, /* @__PURE__ */ React10.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total), " ", /* @__PURE__ */ React10.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React10.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React10.createElement(
1250
1132
  "div",
1251
1133
  {
1252
1134
  className: "hawa-text-muted-foreground hawa-text-sm",
@@ -1267,9 +1149,7 @@ var DataTable = ({
1267
1149
  direction: props.direction,
1268
1150
  items: (props.bulkActions || []).map((action) => ({
1269
1151
  ...action,
1270
- action: () => action.action(
1271
- table.getFilteredSelectedRowModel().rows
1272
- )
1152
+ action: () => action.action(table.getFilteredSelectedRowModel().rows)
1273
1153
  })),
1274
1154
  trigger: /* @__PURE__ */ React10.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
1275
1155
  }
@@ -1323,9 +1203,7 @@ var DataTable = ({
1323
1203
  size: "smallIcon",
1324
1204
  onClick: () => table.setPageIndex(0),
1325
1205
  disabled: !table.getCanPreviousPage(),
1326
- className: cn(
1327
- props.direction === "rtl" && "hawa-rotate-180"
1328
- )
1206
+ className: cn(props.direction === "rtl" && "hawa-rotate-180")
1329
1207
  },
1330
1208
  /* @__PURE__ */ React10.createElement(
1331
1209
  "svg",
@@ -1351,9 +1229,7 @@ var DataTable = ({
1351
1229
  size: "smallIcon",
1352
1230
  onClick: () => table.previousPage(),
1353
1231
  disabled: !table.getCanPreviousPage(),
1354
- className: cn(
1355
- props.direction === "rtl" && "hawa-rotate-180"
1356
- )
1232
+ className: cn(props.direction === "rtl" && "hawa-rotate-180")
1357
1233
  },
1358
1234
  /* @__PURE__ */ React10.createElement(
1359
1235
  "svg",
@@ -1379,9 +1255,7 @@ var DataTable = ({
1379
1255
  size: "smallIcon",
1380
1256
  onClick: () => table.nextPage(),
1381
1257
  disabled: !table.getCanNextPage(),
1382
- className: cn(
1383
- props.direction === "ltr" && "hawa-rotate-180"
1384
- )
1258
+ className: cn(props.direction === "ltr" && "hawa-rotate-180")
1385
1259
  },
1386
1260
  /* @__PURE__ */ React10.createElement(
1387
1261
  "svg",
@@ -1407,9 +1281,7 @@ var DataTable = ({
1407
1281
  size: "smallIcon",
1408
1282
  onClick: () => table.setPageIndex(table.getPageCount() - 1),
1409
1283
  disabled: !table.getCanNextPage(),
1410
- className: cn(
1411
- props.direction === "ltr" && "hawa-rotate-180"
1412
- )
1284
+ className: cn(props.direction === "ltr" && "hawa-rotate-180")
1413
1285
  },
1414
1286
  /* @__PURE__ */ React10.createElement(
1415
1287
  "svg",
@@ -1533,66 +1405,57 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
1533
1405
  import * as React12 from "react";
1534
1406
  import { Dialog as Dialog2 } from "@radix-ui/react-dialog";
1535
1407
  import { Command as CommandPrimitive } from "cmdk";
1536
- var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
1537
- CommandPrimitive,
1538
- {
1539
- ref,
1540
- className: cn(
1541
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
1542
- className
1543
- ),
1544
- ...props
1545
- }
1546
- ));
1547
- var CommandDialog = ({ children, ...props }) => {
1548
- return /* @__PURE__ */ React12.createElement(Dialog2, { ...props }, /* @__PURE__ */ React12.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React12.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
1549
- };
1550
- var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
1551
- "div",
1552
- {
1553
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
1554
- "cmdk-input-wrapper": ""
1555
- },
1556
- /* @__PURE__ */ React12.createElement(
1557
- "svg",
1558
- {
1559
- "aria-label": "Search Icon",
1560
- xmlns: "http://www.w3.org/2000/svg",
1561
- width: "24",
1562
- height: "24",
1563
- viewBox: "0 0 24 24",
1564
- fill: "none",
1565
- stroke: "currentColor",
1566
- strokeWidth: "2",
1567
- strokeLinecap: "round",
1568
- strokeLinejoin: "round",
1569
- className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
1570
- },
1571
- /* @__PURE__ */ React12.createElement("circle", { cx: "11", cy: "11", r: "8" }),
1572
- /* @__PURE__ */ React12.createElement("path", { d: "m21 21-4.3-4.3" })
1573
- ),
1574
- /* @__PURE__ */ React12.createElement(
1575
- CommandPrimitive.Input,
1408
+ var Command = React12.forwardRef(
1409
+ ({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
1410
+ CommandPrimitive,
1576
1411
  {
1577
1412
  ref,
1578
1413
  className: cn(
1579
- "hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1414
+ "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
1580
1415
  className
1581
1416
  ),
1582
1417
  ...props
1583
1418
  }
1584
1419
  )
1585
- ));
1586
- var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
1587
- CommandPrimitive.List,
1420
+ );
1421
+ var CommandDialog = ({ children, ...props }) => {
1422
+ return /* @__PURE__ */ React12.createElement(Dialog2, { ...props }, /* @__PURE__ */ React12.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React12.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
1423
+ };
1424
+ var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React12.createElement(
1425
+ "svg",
1426
+ {
1427
+ "aria-label": "Search Icon",
1428
+ xmlns: "http://www.w3.org/2000/svg",
1429
+ width: "24",
1430
+ height: "24",
1431
+ viewBox: "0 0 24 24",
1432
+ fill: "none",
1433
+ stroke: "currentColor",
1434
+ strokeWidth: "2",
1435
+ strokeLinecap: "round",
1436
+ strokeLinejoin: "round",
1437
+ className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
1438
+ },
1439
+ /* @__PURE__ */ React12.createElement("circle", { cx: "11", cy: "11", r: "8" }),
1440
+ /* @__PURE__ */ React12.createElement("path", { d: "m21 21-4.3-4.3" })
1441
+ ), /* @__PURE__ */ React12.createElement(
1442
+ CommandPrimitive.Input,
1588
1443
  {
1589
1444
  ref,
1590
1445
  className: cn(
1591
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
1446
+ "hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1592
1447
  className
1593
1448
  ),
1594
1449
  ...props
1595
1450
  }
1451
+ )));
1452
+ var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
1453
+ CommandPrimitive.List,
1454
+ {
1455
+ ref,
1456
+ className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
1457
+ ...props
1458
+ }
1596
1459
  ));
1597
1460
  var CommandEmpty = React12.forwardRef((props, ref) => /* @__PURE__ */ React12.createElement(
1598
1461
  CommandPrimitive.Empty,
@@ -1648,52 +1511,30 @@ var CommandShortcut = ({
1648
1511
  }
1649
1512
  );
1650
1513
  };
1651
- var FullCommand = ({
1652
- items,
1653
- direction = "ltr",
1654
- texts,
1655
- onActionClick
1656
- }) => {
1657
- return /* @__PURE__ */ React12.createElement(
1658
- Command,
1659
- {
1660
- dir: direction,
1661
- className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full"
1662
- },
1663
- /* @__PURE__ */ React12.createElement(
1664
- CommandInput,
1665
- {
1666
- placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..."
1667
- }
1668
- ),
1669
- /* @__PURE__ */ React12.createElement(CommandList, null, /* @__PURE__ */ React12.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
1670
- var _a;
1671
- if (item.type === "group") {
1672
- return /* @__PURE__ */ React12.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React12.createElement(
1673
- CommandItem,
1674
- {
1675
- key: subIndex,
1676
- onSelect: () => {
1677
- if (onActionClick) onActionClick();
1678
- subItem.action();
1679
- }
1680
- },
1681
- /* @__PURE__ */ React12.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
1682
- /* @__PURE__ */ React12.createElement("span", null, subItem.label),
1683
- subItem.shortcut && /* @__PURE__ */ React12.createElement(CommandShortcut, null, subItem.shortcut)
1684
- )));
1685
- } else if (item.type === "separator") {
1686
- return /* @__PURE__ */ React12.createElement(CommandSeparator, { key: index });
1687
- }
1688
- return null;
1689
- }))
1690
- );
1514
+ var FullCommand = ({ items, direction = "ltr", texts, onActionClick }) => {
1515
+ return /* @__PURE__ */ React12.createElement(Command, { dir: direction, className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full" }, /* @__PURE__ */ React12.createElement(CommandInput, { placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..." }), /* @__PURE__ */ React12.createElement(CommandList, null, /* @__PURE__ */ React12.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
1516
+ var _a;
1517
+ if (item.type === "group") {
1518
+ return /* @__PURE__ */ React12.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React12.createElement(
1519
+ CommandItem,
1520
+ {
1521
+ key: subIndex,
1522
+ onSelect: () => {
1523
+ if (onActionClick) onActionClick();
1524
+ subItem.action();
1525
+ }
1526
+ },
1527
+ /* @__PURE__ */ React12.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
1528
+ /* @__PURE__ */ React12.createElement("span", null, subItem.label),
1529
+ subItem.shortcut && /* @__PURE__ */ React12.createElement(CommandShortcut, null, subItem.shortcut)
1530
+ )));
1531
+ } else if (item.type === "separator") {
1532
+ return /* @__PURE__ */ React12.createElement(CommandSeparator, { key: index });
1533
+ }
1534
+ return null;
1535
+ })));
1691
1536
  };
1692
- var AppCommand = ({
1693
- commandProps,
1694
- dialogProps,
1695
- onActionClick
1696
- }) => {
1537
+ var AppCommand = ({ commandProps, dialogProps, onActionClick }) => {
1697
1538
  return /* @__PURE__ */ React12.createElement(Dialog2, { ...dialogProps }, /* @__PURE__ */ React12.createElement(
1698
1539
  DialogContent,
1699
1540
  {
@@ -1739,9 +1580,7 @@ var Combobox = React13.forwardRef(
1739
1580
  setOpen(open2);
1740
1581
  }
1741
1582
  };
1742
- const selectedItem = data.find(
1743
- (item) => getProperty(item, valueKey) === value
1744
- );
1583
+ const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
1745
1584
  return /* @__PURE__ */ React13.createElement(
1746
1585
  "div",
1747
1586
  {
@@ -1802,8 +1641,7 @@ var Combobox = React13.forwardRef(
1802
1641
  Command,
1803
1642
  {
1804
1643
  filter: (value2, search) => {
1805
- if (value2.toLowerCase().includes(search.toLowerCase()))
1806
- return 1;
1644
+ if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
1807
1645
  return 0;
1808
1646
  }
1809
1647
  },
@@ -1819,10 +1657,7 @@ var Combobox = React13.forwardRef(
1819
1657
  /* @__PURE__ */ React13.createElement(CommandList, null, /* @__PURE__ */ React13.createElement(
1820
1658
  CommandGroup,
1821
1659
  {
1822
- className: cn(
1823
- "hawa-max-h-[200px]",
1824
- data.length > 0 && "hawa-overflow-y-auto"
1825
- )
1660
+ className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
1826
1661
  },
1827
1662
  data.map((item, i) => /* @__PURE__ */ React13.createElement(
1828
1663
  CommandItem,
@@ -1830,13 +1665,9 @@ var Combobox = React13.forwardRef(
1830
1665
  key: i,
1831
1666
  onSelect: () => {
1832
1667
  const newValue = getProperty(item, valueKey);
1833
- setValue(
1834
- newValue === value ? "" : newValue
1835
- );
1668
+ setValue(newValue === value ? "" : newValue);
1836
1669
  if (props.onChange) {
1837
- props.onChange(
1838
- newValue === value ? "" : newValue
1839
- );
1670
+ props.onChange(newValue === value ? "" : newValue);
1840
1671
  }
1841
1672
  setOpen(false);
1842
1673
  }
@@ -1896,13 +1727,7 @@ var FileDropzone = ({
1896
1727
  var _a, _b, _c, _d, _e, _f;
1897
1728
  const [cmp, setCmp] = useState5(0);
1898
1729
  const [max, setMax] = useState5(0);
1899
- const {
1900
- getRootProps,
1901
- getInputProps,
1902
- fileRejections,
1903
- acceptedFiles,
1904
- isDragActive
1905
- } = useDropzone({
1730
+ const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = useDropzone({
1906
1731
  multiple: true,
1907
1732
  accept,
1908
1733
  maxSize,
@@ -1942,53 +1767,19 @@ var FileDropzone = ({
1942
1767
  const k = 1024;
1943
1768
  const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
1944
1769
  const i = Math.floor(Math.log(maxSize) / Math.log(1024));
1945
- setMax(
1946
- parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]
1947
- );
1770
+ setMax(parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]);
1948
1771
  }
1949
1772
  }, [maxSize]);
1950
1773
  const errs = fileRejections.map((rej, i) => {
1951
1774
  switch (rej.errors[0].code) {
1952
1775
  case "file-too-large":
1953
- return /* @__PURE__ */ React14.createElement(
1954
- Alert,
1955
- {
1956
- key: i,
1957
- text: rej.file.name,
1958
- title: texts.fileTooLarge,
1959
- severity: "error"
1960
- }
1961
- );
1776
+ return /* @__PURE__ */ React14.createElement(Alert, { key: i, text: rej.file.name, title: texts.fileTooLarge, severity: "error" });
1962
1777
  case "too-many-files":
1963
- return /* @__PURE__ */ React14.createElement(
1964
- Alert,
1965
- {
1966
- key: i,
1967
- text: rej.file.name,
1968
- title: texts.tooManyFiles,
1969
- severity: "error"
1970
- }
1971
- );
1778
+ return /* @__PURE__ */ React14.createElement(Alert, { key: i, text: rej.file.name, title: texts.tooManyFiles, severity: "error" });
1972
1779
  case "file-invalid-type":
1973
- return /* @__PURE__ */ React14.createElement(
1974
- Alert,
1975
- {
1976
- key: i,
1977
- text: rej.file.name,
1978
- title: texts.invalidFileType,
1979
- severity: "error"
1980
- }
1981
- );
1780
+ return /* @__PURE__ */ React14.createElement(Alert, { key: i, text: rej.file.name, title: texts.invalidFileType, severity: "error" });
1982
1781
  default:
1983
- return /* @__PURE__ */ React14.createElement(
1984
- Alert,
1985
- {
1986
- key: i,
1987
- text: rej.file.name,
1988
- title: rej.errors[0].code,
1989
- severity: "error"
1990
- }
1991
- );
1782
+ return /* @__PURE__ */ React14.createElement(Alert, { key: i, text: rej.file.name, title: rej.errors[0].code, severity: "error" });
1992
1783
  }
1993
1784
  });
1994
1785
  const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ React14.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React14.createElement(
@@ -2075,21 +1866,7 @@ var FileDropzone = ({
2075
1866
  acceptedFiles.length > 0 && /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2" }, /* @__PURE__ */ React14.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
2076
1867
  acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React14.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
2077
1868
  /* @__PURE__ */ React14.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
2078
- ), disclaimer && /* @__PURE__ */ React14.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React14.createElement(
2079
- "a",
2080
- {
2081
- href: termsLink,
2082
- className: "clickable-link hawa-text-muted-foreground/50"
2083
- },
2084
- (_d = texts.terms) != null ? _d : "Terms"
2085
- ), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React14.createElement(
2086
- "a",
2087
- {
2088
- href: privacyLink,
2089
- className: "clickable-link hawa-text-muted-foreground/50"
2090
- },
2091
- (_f = texts.privacyPolicy) != null ? _f : "Privacy Policy"
2092
- )));
1869
+ ), disclaimer && /* @__PURE__ */ React14.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React14.createElement("a", { href: termsLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_d = texts.terms) != null ? _d : "Terms"), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React14.createElement("a", { href: privacyLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_f = texts.privacyPolicy) != null ? _f : "Privacy Policy")));
2093
1870
  };
2094
1871
 
2095
1872
  // elements/sortButton/SortButton.tsx
@@ -2132,9 +1909,7 @@ import * as React16 from "react";
2132
1909
  import * as SwitchPrimitives from "@radix-ui/react-switch";
2133
1910
  var Switch = React16.forwardRef(
2134
1911
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
2135
- const [parentDirection, setParentDirection] = React16.useState(
2136
- null
2137
- );
1912
+ const [parentDirection, setParentDirection] = React16.useState(null);
2138
1913
  const parentRef = React16.useRef(null);
2139
1914
  React16.useEffect(() => {
2140
1915
  var _a;
@@ -2164,53 +1939,41 @@ var Switch = React16.forwardRef(
2164
1939
  full: "hawa-rounded-full",
2165
1940
  inherit: "hawa-rounded-inner"
2166
1941
  };
2167
- return /* @__PURE__ */ React16.createElement(
2168
- "div",
1942
+ return /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center", ref: parentRef }, /* @__PURE__ */ React16.createElement(
1943
+ SwitchPrimitives.Root,
2169
1944
  {
2170
- className: "hawa-flex hawa-flex-row hawa-items-center",
2171
- ref: parentRef
1945
+ className: cn(
1946
+ "data-[state=unchecked]:hawa-bg-primary/20",
1947
+ "data-[state=checked]:hawa-bg-primary",
1948
+ "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
1949
+ rootRoundednessStyles[roundedness],
1950
+ className,
1951
+ rootSize[size]
1952
+ ),
1953
+ ...props,
1954
+ ref
2172
1955
  },
2173
1956
  /* @__PURE__ */ React16.createElement(
2174
- SwitchPrimitives.Root,
1957
+ SwitchPrimitives.Thumb,
2175
1958
  {
2176
1959
  className: cn(
2177
- "data-[state=unchecked]:hawa-bg-primary/20",
2178
- "data-[state=checked]:hawa-bg-primary",
2179
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
2180
- rootRoundednessStyles[roundedness],
2181
- className,
2182
- rootSize[size]
2183
- ),
2184
- ...props,
2185
- ref
2186
- },
2187
- /* @__PURE__ */ React16.createElement(
2188
- SwitchPrimitives.Thumb,
2189
- {
2190
- className: cn(
2191
- thumbSize[size],
2192
- "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
2193
- "data-[state=checked]:hawa-bg-primary-foreground",
2194
- "hawa-bg-white dark:hawa-bg-background",
2195
- thumbRoundednessStyles[roundedness],
2196
- parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
2197
- )
2198
- }
2199
- )
2200
- ),
2201
- label && /* @__PURE__ */ React16.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
2202
- );
1960
+ thumbSize[size],
1961
+ "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
1962
+ "data-[state=checked]:hawa-bg-primary-foreground",
1963
+ "hawa-bg-white dark:hawa-bg-background",
1964
+ thumbRoundednessStyles[roundedness],
1965
+ parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
1966
+ )
1967
+ }
1968
+ )
1969
+ ), label && /* @__PURE__ */ React16.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label));
2203
1970
  }
2204
1971
  );
2205
1972
  Switch.displayName = SwitchPrimitives.Root.displayName;
2206
1973
 
2207
1974
  // elements/breadcrumb/Breadcrumb.tsx
2208
1975
  import React17 from "react";
2209
- var Breadcrumb = ({
2210
- breadcrumbLinks,
2211
- separator = ">",
2212
- size = "normal"
2213
- }) => {
1976
+ var Breadcrumb = ({ breadcrumbLinks, separator = ">", size = "normal" }) => {
2214
1977
  const textStyles = {
2215
1978
  normal: "",
2216
1979
  small: "hawa-text-sm",
@@ -2335,32 +2098,13 @@ var Badge = ({
2335
2098
  size === "large" && text && text
2336
2099
  ));
2337
2100
  };
2338
- var BadgedComponent = ({
2339
- children,
2340
- className,
2341
- hideBadge,
2342
- position,
2343
- size,
2344
- text
2345
- }) => {
2101
+ var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
2346
2102
  const ref = useRef5(null);
2347
- return /* @__PURE__ */ React19.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React19.createElement(
2348
- Badge,
2349
- {
2350
- size,
2351
- text,
2352
- position,
2353
- anchor: ref,
2354
- className: "hawa-z-10"
2355
- }
2356
- ), children);
2103
+ return /* @__PURE__ */ React19.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React19.createElement(Badge, { size, text, position, anchor: ref, className: "hawa-z-10" }), children);
2357
2104
  };
2358
2105
 
2359
2106
  // elements/colorPicker/ColorPicker.tsx
2360
- import React20, {
2361
- useState as useState8,
2362
- useEffect as useEffect7
2363
- } from "react";
2107
+ import React20, { useState as useState8, useEffect as useEffect7 } from "react";
2364
2108
  var ColorPicker = ({
2365
2109
  containerProps,
2366
2110
  colorPickerProps,
@@ -2407,10 +2151,7 @@ var ColorPicker = ({
2407
2151
  props.handleChange(e);
2408
2152
  }
2409
2153
  },
2410
- className: cn(
2411
- "hawa-mt-0 hawa-h-[38px] hawa-opacity-0",
2412
- props.colorPickerClassNames
2413
- ),
2154
+ className: cn("hawa-mt-0 hawa-h-[38px] hawa-opacity-0", props.colorPickerClassNames),
2414
2155
  ...colorPickerProps
2415
2156
  }
2416
2157
  )
@@ -2454,92 +2195,84 @@ function getLimitedValue(input) {
2454
2195
  return input;
2455
2196
  }
2456
2197
  }
2457
- var ProgressCircle = React21.forwardRef((props, ref) => {
2458
- const {
2459
- value: inputValue,
2460
- size = "md",
2461
- className,
2462
- showAnimation = true,
2463
- color,
2464
- tooltip,
2465
- radius: inputRadius,
2466
- strokeWidth: inputStrokeWidth,
2467
- children,
2468
- ...other
2469
- } = props;
2470
- const value = getLimitedValue(inputValue);
2471
- const radius = inputRadius != null ? inputRadius : size2config[size].radius;
2472
- const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
2473
- const normalizedRadius = radius - strokeWidth / 2;
2474
- const circumference = normalizedRadius * 2 * Math.PI;
2475
- const strokeDashoffset = value / 100 * circumference;
2476
- const offset = circumference - strokeDashoffset;
2477
- return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
2478
- "div",
2479
- {
2480
- ref,
2481
- className: cn(
2482
- "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
2483
- className
2484
- )
2485
- },
2486
- /* @__PURE__ */ React21.createElement(
2487
- "svg",
2198
+ var ProgressCircle = React21.forwardRef(
2199
+ (props, ref) => {
2200
+ const {
2201
+ value: inputValue,
2202
+ size = "md",
2203
+ className,
2204
+ showAnimation = true,
2205
+ color,
2206
+ tooltip,
2207
+ radius: inputRadius,
2208
+ strokeWidth: inputStrokeWidth,
2209
+ children,
2210
+ ...other
2211
+ } = props;
2212
+ const value = getLimitedValue(inputValue);
2213
+ const radius = inputRadius != null ? inputRadius : size2config[size].radius;
2214
+ const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
2215
+ const normalizedRadius = radius - strokeWidth / 2;
2216
+ const circumference = normalizedRadius * 2 * Math.PI;
2217
+ const strokeDashoffset = value / 100 * circumference;
2218
+ const offset = circumference - strokeDashoffset;
2219
+ return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
2220
+ "div",
2488
2221
  {
2489
- width: radius * 2,
2490
- height: radius * 2,
2491
- viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2492
- className: "hawa-rotate-180 hawa-transform"
2222
+ ref,
2223
+ className: cn("hawa-flex hawa-flex-col hawa-items-center hawa-justify-center", className)
2493
2224
  },
2494
2225
  /* @__PURE__ */ React21.createElement(
2495
- "circle",
2226
+ "svg",
2496
2227
  {
2497
- r: normalizedRadius,
2498
- cx: radius,
2499
- cy: radius,
2500
- strokeWidth,
2501
- fill: "transparent",
2502
- stroke: "",
2503
- strokeLinecap: "round",
2504
- className: cn(
2505
- "hawa-transition-colors hawa-ease-linear",
2506
- "hawa-stroke-primary/20"
2507
- )
2508
- }
2228
+ width: radius * 2,
2229
+ height: radius * 2,
2230
+ viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2231
+ className: "hawa-rotate-180 hawa-transform"
2232
+ },
2233
+ /* @__PURE__ */ React21.createElement(
2234
+ "circle",
2235
+ {
2236
+ r: normalizedRadius,
2237
+ cx: radius,
2238
+ cy: radius,
2239
+ strokeWidth,
2240
+ fill: "transparent",
2241
+ stroke: "",
2242
+ strokeLinecap: "round",
2243
+ className: cn("hawa-transition-colors hawa-ease-linear", "hawa-stroke-primary/20")
2244
+ }
2245
+ ),
2246
+ value > 0 ? /* @__PURE__ */ React21.createElement(
2247
+ "circle",
2248
+ {
2249
+ r: normalizedRadius,
2250
+ cx: radius,
2251
+ cy: radius,
2252
+ strokeWidth,
2253
+ strokeDasharray: circumference + " " + circumference,
2254
+ strokeDashoffset: offset,
2255
+ fill: "transparent",
2256
+ stroke: "",
2257
+ strokeLinecap: "round",
2258
+ className: cn(
2259
+ "hawa-transition-colors hawa-ease-linear",
2260
+ "hawa-stroke-primary",
2261
+ showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
2262
+ )
2263
+ }
2264
+ ) : null
2509
2265
  ),
2510
- value > 0 ? /* @__PURE__ */ React21.createElement(
2511
- "circle",
2512
- {
2513
- r: normalizedRadius,
2514
- cx: radius,
2515
- cy: radius,
2516
- strokeWidth,
2517
- strokeDasharray: circumference + " " + circumference,
2518
- strokeDashoffset: offset,
2519
- fill: "transparent",
2520
- stroke: "",
2521
- strokeLinecap: "round",
2522
- className: cn(
2523
- "hawa-transition-colors hawa-ease-linear",
2524
- "hawa-stroke-primary",
2525
- showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
2526
- )
2527
- }
2528
- ) : null
2529
- ),
2530
- /* @__PURE__ */ React21.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
2531
- ));
2532
- });
2266
+ /* @__PURE__ */ React21.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
2267
+ ));
2268
+ }
2269
+ );
2533
2270
  ProgressCircle.displayName = "ProgressCircle";
2534
2271
 
2535
2272
  // elements/pagination/Pagination.tsx
2536
2273
  import React22 from "react";
2537
2274
  import { Pagination as PaginationPrimitive } from "react-headless-pagination";
2538
- var Pagination = ({
2539
- direction,
2540
- totalPages,
2541
- currentPage
2542
- }) => {
2275
+ var Pagination = ({ direction, totalPages, currentPage }) => {
2543
2276
  const [page, setPage] = React22.useState(currentPage || 0);
2544
2277
  const handlePageChange = (page2) => {
2545
2278
  setPage(page2);
@@ -2647,14 +2380,7 @@ var Pagination = ({
2647
2380
  // elements/passwordInput/PasswordInput.tsx
2648
2381
  import React23, { useEffect as useEffect8, useState as useState9 } from "react";
2649
2382
  var PasswordStrengthIndicator = ({ strength }) => {
2650
- const strengthLevels = [
2651
- "none",
2652
- "very-weak",
2653
- "weak",
2654
- "medium",
2655
- "strong",
2656
- "very-strong"
2657
- ];
2383
+ const strengthLevels = ["none", "very-weak", "weak", "medium", "strong", "very-strong"];
2658
2384
  const strengthColors = {
2659
2385
  none: "hawa-bg-red-700",
2660
2386
  "very-weak": "hawa-bg-red-600",
@@ -2680,10 +2406,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
2680
2406
  }
2681
2407
  ));
2682
2408
  };
2683
- var PasswordInput = ({
2684
- hidePopover,
2685
- ...props
2686
- }) => {
2409
+ var PasswordInput = ({ hidePopover, ...props }) => {
2687
2410
  const [inputValue, setInputValue] = useState9("");
2688
2411
  const [isInputFocused, setIsInputFocused] = useState9(false);
2689
2412
  const [currentStr, setCurrentStr] = useState9(0);
@@ -2811,71 +2534,39 @@ var SimpleTable = ({
2811
2534
  columns,
2812
2535
  getCoreRowModel: getCoreRowModel2()
2813
2536
  });
2814
- return /* @__PURE__ */ React25.createElement(
2815
- "div",
2816
- {
2817
- className: cn(
2818
- "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4",
2819
- classNames
2820
- )
2821
- },
2822
- props.isLoading ? /* @__PURE__ */ React25.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React25.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React25.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React25.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React25.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
2823
- return /* @__PURE__ */ React25.createElement(
2824
- TableHead,
2825
- {
2826
- condensed: props.condensed,
2827
- dir: props.direction,
2828
- key: header.id,
2829
- style: {
2830
- maxWidth: header.column.columnDef.maxSize
2831
- }
2832
- },
2833
- header.isPlaceholder ? null : flexRender2(
2834
- header.column.columnDef.header,
2835
- header.getContext()
2836
- )
2837
- );
2838
- })))), /* @__PURE__ */ React25.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React25.createElement(
2839
- TableRow,
2537
+ return /* @__PURE__ */ React25.createElement("div", { className: cn("hawa-flex hawa-w-full hawa-flex-col hawa-gap-4", classNames) }, props.isLoading ? /* @__PURE__ */ React25.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React25.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React25.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React25.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React25.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
2538
+ return /* @__PURE__ */ React25.createElement(
2539
+ TableHead,
2840
2540
  {
2841
- key: row.id,
2842
- "data-state": row.getIsSelected() && "selected"
2541
+ condensed: props.condensed,
2542
+ dir: props.direction,
2543
+ key: header.id,
2544
+ style: {
2545
+ maxWidth: header.column.columnDef.maxSize
2546
+ }
2843
2547
  },
2844
- row.getVisibleCells().map((cell) => {
2845
- var _a2;
2846
- return /* @__PURE__ */ React25.createElement(
2847
- TableCell,
2848
- {
2849
- dir: props.direction,
2850
- padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
2851
- style: {
2852
- maxWidth: cell.column.columnDef.maxSize
2853
- },
2854
- key: cell.id
2855
- },
2856
- flexRender2(
2857
- cell.column.columnDef.cell,
2858
- cell.getContext()
2859
- )
2860
- );
2861
- })
2862
- )) : /* @__PURE__ */ React25.createElement(TableRow, null, /* @__PURE__ */ React25.createElement(
2548
+ header.isPlaceholder ? null : flexRender2(header.column.columnDef.header, header.getContext())
2549
+ );
2550
+ })))), /* @__PURE__ */ React25.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React25.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
2551
+ var _a2;
2552
+ return /* @__PURE__ */ React25.createElement(
2863
2553
  TableCell,
2864
2554
  {
2865
- colSpan: columns.length,
2866
- className: "hawa-h-24 hawa-text-center"
2555
+ dir: props.direction,
2556
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
2557
+ style: {
2558
+ maxWidth: cell.column.columnDef.maxSize
2559
+ },
2560
+ key: cell.id
2867
2561
  },
2868
- (_b = props.texts) == null ? void 0 : _b.noData
2869
- )), props.extra)))
2870
- );
2562
+ flexRender2(cell.column.columnDef.cell, cell.getContext())
2563
+ );
2564
+ }))) : /* @__PURE__ */ React25.createElement(TableRow, null, /* @__PURE__ */ React25.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_b = props.texts) == null ? void 0 : _b.noData)), props.extra))));
2871
2565
  };
2872
2566
 
2873
2567
  // elements/scrollIndicator/ScrollIndicator.tsx
2874
2568
  import React26, { useState as useState10, useEffect as useEffect9 } from "react";
2875
- var ScrollIndicator = ({
2876
- anchor,
2877
- inContainer = false
2878
- }) => {
2569
+ var ScrollIndicator = ({ anchor, inContainer = false }) => {
2879
2570
  const [scrollPercentage, setScrollPercentage] = useState10(0);
2880
2571
  const onScroll = () => {
2881
2572
  const scrollElement = anchor.current;
@@ -3137,34 +2828,22 @@ var Carousel = ({
3137
2828
  }
3138
2829
  ));
3139
2830
  };
3140
- var Dots = ({
3141
- onDotClick,
3142
- itemsLength,
3143
- selectedIndex,
3144
- direction
3145
- }) => {
2831
+ var Dots = ({ onDotClick, itemsLength, selectedIndex, direction }) => {
3146
2832
  const arr = new Array(itemsLength).fill(0);
3147
- return /* @__PURE__ */ React28.createElement(
3148
- "div",
3149
- {
3150
- dir: direction,
3151
- className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1"
3152
- },
3153
- arr.map((_, index) => {
3154
- const selected = index === selectedIndex;
3155
- return /* @__PURE__ */ React28.createElement(
3156
- "div",
3157
- {
3158
- key: index,
3159
- onClick: () => onDotClick(index),
3160
- className: cn(
3161
- "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
3162
- !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
3163
- )
3164
- }
3165
- );
3166
- })
3167
- );
2833
+ return /* @__PURE__ */ React28.createElement("div", { dir: direction, className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
2834
+ const selected = index === selectedIndex;
2835
+ return /* @__PURE__ */ React28.createElement(
2836
+ "div",
2837
+ {
2838
+ key: index,
2839
+ onClick: () => onDotClick(index),
2840
+ className: cn(
2841
+ "hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
2842
+ !selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
2843
+ )
2844
+ }
2845
+ );
2846
+ }));
3168
2847
  };
3169
2848
  var CarouselControls = (props) => {
3170
2849
  return /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2" }, /* @__PURE__ */ React28.createElement(
@@ -3334,11 +3013,7 @@ var ToastTitle = React30.forwardRef(({ className, size = "default", ...props },
3334
3013
  ToastPrimitives.Title,
3335
3014
  {
3336
3015
  ref,
3337
- className: cn(
3338
- "hawa-select-text hawa-text-sm hawa-font-semibold",
3339
- sizeStyles[size],
3340
- className
3341
- ),
3016
+ className: cn("hawa-select-text hawa-text-sm hawa-font-semibold", sizeStyles[size], className),
3342
3017
  ...props
3343
3018
  }
3344
3019
  ));
@@ -3347,11 +3022,7 @@ var ToastDescription = React30.forwardRef(({ className, size = "default", ...pro
3347
3022
  ToastPrimitives.Description,
3348
3023
  {
3349
3024
  ref,
3350
- className: cn(
3351
- "hawa-select-text hawa-opacity-90",
3352
- sizeStyles[size],
3353
- className
3354
- ),
3025
+ className: cn("hawa-select-text hawa-opacity-90", sizeStyles[size], className),
3355
3026
  ...props
3356
3027
  }
3357
3028
  ));
@@ -3392,12 +3063,7 @@ function Toaster(props) {
3392
3063
  action && /* @__PURE__ */ React31.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
3393
3064
  )
3394
3065
  ));
3395
- }), /* @__PURE__ */ React31.createElement(
3396
- ToastViewport,
3397
- {
3398
- className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
3399
- }
3400
- ));
3066
+ }), /* @__PURE__ */ React31.createElement(ToastViewport, { className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0") }));
3401
3067
  }
3402
3068
 
3403
3069
  // elements/destroyableCard/DestroyableCard.tsx
@@ -3417,10 +3083,7 @@ var DestroyableCard = ({
3417
3083
  return /* @__PURE__ */ React32.createElement(
3418
3084
  "div",
3419
3085
  {
3420
- className: cn(
3421
- "hawa-transition-all",
3422
- closed ? "hawa-opacity-0" : "hawa-opacity-100"
3423
- ),
3086
+ className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
3424
3087
  ref: popUpRef
3425
3088
  },
3426
3089
  /* @__PURE__ */ React32.createElement(