@sikka/hawa 0.48.1-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 (299) 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.js +202 -468
  40. package/dist/blocks/auth/index.mjs +96 -280
  41. package/dist/blocks/feedback/index.js +214 -375
  42. package/dist/blocks/feedback/index.mjs +12 -25
  43. package/dist/blocks/index.js +604 -1122
  44. package/dist/blocks/index.mjs +132 -291
  45. package/dist/blocks/misc/index.js +136 -251
  46. package/dist/blocks/misc/index.mjs +29 -54
  47. package/dist/blocks/pricing/index.js +220 -397
  48. package/dist/blocks/pricing/index.mjs +63 -134
  49. package/dist/breadcrumb/index.js +1 -5
  50. package/dist/breadcrumb/index.js.map +1 -1
  51. package/dist/breadcrumb/index.mjs +1 -5
  52. package/dist/breadcrumb/index.mjs.map +1 -1
  53. package/dist/button/index.js +50 -82
  54. package/dist/button/index.js.map +1 -1
  55. package/dist/button/index.mjs +50 -82
  56. package/dist/button/index.mjs.map +1 -1
  57. package/dist/calendar/index.js +50 -82
  58. package/dist/calendar/index.js.map +1 -1
  59. package/dist/calendar/index.mjs +50 -82
  60. package/dist/calendar/index.mjs.map +1 -1
  61. package/dist/card/index.js +7 -35
  62. package/dist/card/index.js.map +1 -1
  63. package/dist/card/index.mjs +7 -35
  64. package/dist/card/index.mjs.map +1 -1
  65. package/dist/carousel/index.js +15 -27
  66. package/dist/carousel/index.js.map +1 -1
  67. package/dist/carousel/index.mjs +15 -27
  68. package/dist/carousel/index.mjs.map +1 -1
  69. package/dist/checkbox/index.js +2 -13
  70. package/dist/checkbox/index.js.map +1 -1
  71. package/dist/checkbox/index.mjs +2 -13
  72. package/dist/checkbox/index.mjs.map +1 -1
  73. package/dist/chip/index.js +2 -16
  74. package/dist/chip/index.js.map +1 -1
  75. package/dist/chip/index.mjs +2 -16
  76. package/dist/chip/index.mjs.map +1 -1
  77. package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
  78. package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
  79. package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
  80. package/dist/chunk-GHGWQVTM.mjs +150 -0
  81. package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
  82. package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
  83. package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
  84. package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
  85. package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
  86. package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
  87. package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
  88. package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
  89. package/dist/codeBlock/index.js +50 -82
  90. package/dist/codeBlock/index.js.map +1 -1
  91. package/dist/codeBlock/index.mjs +50 -82
  92. package/dist/codeBlock/index.mjs.map +1 -1
  93. package/dist/colorPicker/index.js +21 -33
  94. package/dist/colorPicker/index.js.map +1 -1
  95. package/dist/colorPicker/index.mjs +22 -37
  96. package/dist/colorPicker/index.mjs.map +1 -1
  97. package/dist/combobox/index.d.mts +1 -1
  98. package/dist/combobox/index.d.ts +1 -1
  99. package/dist/combobox/index.js +141 -223
  100. package/dist/combobox/index.js.map +1 -1
  101. package/dist/combobox/index.mjs +141 -223
  102. package/dist/combobox/index.mjs.map +1 -1
  103. package/dist/command/index.d.mts +1 -1
  104. package/dist/command/index.d.ts +1 -1
  105. package/dist/command/index.js +129 -212
  106. package/dist/command/index.js.map +1 -1
  107. package/dist/command/index.mjs +129 -212
  108. package/dist/command/index.mjs.map +1 -1
  109. package/dist/dataTable/index.js +254 -394
  110. package/dist/dataTable/index.js.map +1 -1
  111. package/dist/dataTable/index.mjs +254 -394
  112. package/dist/dataTable/index.mjs.map +1 -1
  113. package/dist/datePicker/index.js +64 -105
  114. package/dist/datePicker/index.js.map +1 -1
  115. package/dist/datePicker/index.mjs +64 -105
  116. package/dist/datePicker/index.mjs.map +1 -1
  117. package/dist/destroyableCard/index.js +8 -39
  118. package/dist/destroyableCard/index.js.map +1 -1
  119. package/dist/destroyableCard/index.mjs +8 -39
  120. package/dist/destroyableCard/index.mjs.map +1 -1
  121. package/dist/dialog/index.js +70 -122
  122. package/dist/dialog/index.js.map +1 -1
  123. package/dist/dialog/index.mjs +70 -122
  124. package/dist/dialog/index.mjs.map +1 -1
  125. package/dist/docsLayout/index.js +169 -358
  126. package/dist/docsLayout/index.js.map +1 -1
  127. package/dist/docsLayout/index.mjs +169 -358
  128. package/dist/docsLayout/index.mjs.map +1 -1
  129. package/dist/docsSidebar/index.js +9 -16
  130. package/dist/docsSidebar/index.js.map +1 -1
  131. package/dist/docsSidebar/index.mjs +9 -16
  132. package/dist/docsSidebar/index.mjs.map +1 -1
  133. package/dist/dropdownMenu/index.js +124 -164
  134. package/dist/dropdownMenu/index.js.map +1 -1
  135. package/dist/dropdownMenu/index.mjs +124 -164
  136. package/dist/dropdownMenu/index.mjs.map +1 -1
  137. package/dist/elements/index.d.mts +3 -3
  138. package/dist/elements/index.d.ts +3 -3
  139. package/dist/elements/index.js +841 -1505
  140. package/dist/elements/index.mjs +381 -718
  141. package/dist/fileDropzone/index.js +60 -159
  142. package/dist/fileDropzone/index.js.map +1 -1
  143. package/dist/fileDropzone/index.mjs +60 -159
  144. package/dist/fileDropzone/index.mjs.map +1 -1
  145. package/dist/glow/index.js +4 -16
  146. package/dist/glow/index.js.map +1 -1
  147. package/dist/glow/index.mjs +4 -16
  148. package/dist/glow/index.mjs.map +1 -1
  149. package/dist/hooks/index.d.mts +1 -5
  150. package/dist/hooks/index.d.ts +1 -5
  151. package/dist/hooks/index.js +11 -24
  152. package/dist/hooks/index.mjs +2 -2
  153. package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
  154. package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
  155. package/dist/index.css +1 -2
  156. package/dist/index.d.mts +6 -8
  157. package/dist/index.d.ts +6 -8
  158. package/dist/index.js +1194 -2170
  159. package/dist/index.mjs +1195 -2174
  160. package/dist/input/index.js +20 -29
  161. package/dist/input/index.js.map +1 -1
  162. package/dist/input/index.mjs +20 -29
  163. package/dist/input/index.mjs.map +1 -1
  164. package/dist/interfaceSettings/index.js +122 -163
  165. package/dist/interfaceSettings/index.js.map +1 -1
  166. package/dist/interfaceSettings/index.mjs +122 -163
  167. package/dist/interfaceSettings/index.mjs.map +1 -1
  168. package/dist/label/index.js +19 -26
  169. package/dist/label/index.js.map +1 -1
  170. package/dist/label/index.mjs +19 -26
  171. package/dist/label/index.mjs.map +1 -1
  172. package/dist/layout/index.d.mts +2 -0
  173. package/dist/layout/index.d.ts +2 -0
  174. package/dist/layout/index.js +434 -790
  175. package/dist/layout/index.mjs +143 -243
  176. package/dist/loading/index.js +30 -53
  177. package/dist/loading/index.js.map +1 -1
  178. package/dist/loading/index.mjs +30 -53
  179. package/dist/loading/index.mjs.map +1 -1
  180. package/dist/logos/index.js +66 -191
  181. package/dist/logos/index.js.map +1 -1
  182. package/dist/logos/index.mjs +66 -191
  183. package/dist/logos/index.mjs.map +1 -1
  184. package/dist/navbar/index.js +1 -4
  185. package/dist/navbar/index.js.map +1 -1
  186. package/dist/navbar/index.mjs +1 -4
  187. package/dist/navbar/index.mjs.map +1 -1
  188. package/dist/navigationMenu/index.js +14 -22
  189. package/dist/navigationMenu/index.js.map +1 -1
  190. package/dist/navigationMenu/index.mjs +14 -22
  191. package/dist/navigationMenu/index.mjs.map +1 -1
  192. package/dist/pagination/index.js +1 -5
  193. package/dist/pagination/index.js.map +1 -1
  194. package/dist/pagination/index.mjs +1 -5
  195. package/dist/pagination/index.mjs.map +1 -1
  196. package/dist/passwordInput/index.js +36 -65
  197. package/dist/passwordInput/index.js.map +1 -1
  198. package/dist/passwordInput/index.mjs +36 -65
  199. package/dist/passwordInput/index.mjs.map +1 -1
  200. package/dist/phoneInput/index.js +20 -29
  201. package/dist/phoneInput/index.js.map +1 -1
  202. package/dist/phoneInput/index.mjs +20 -29
  203. package/dist/phoneInput/index.mjs.map +1 -1
  204. package/dist/pinInput/index.js +14 -16
  205. package/dist/pinInput/index.js.map +1 -1
  206. package/dist/pinInput/index.mjs +14 -16
  207. package/dist/pinInput/index.mjs.map +1 -1
  208. package/dist/popover/index.js +14 -24
  209. package/dist/popover/index.js.map +1 -1
  210. package/dist/popover/index.mjs +14 -24
  211. package/dist/popover/index.mjs.map +1 -1
  212. package/dist/progress/index.js +19 -26
  213. package/dist/progress/index.js.map +1 -1
  214. package/dist/progress/index.mjs +19 -26
  215. package/dist/progress/index.mjs.map +1 -1
  216. package/dist/progressCircle/index.js +67 -71
  217. package/dist/progressCircle/index.js.map +1 -1
  218. package/dist/progressCircle/index.mjs +67 -71
  219. package/dist/progressCircle/index.mjs.map +1 -1
  220. package/dist/radio/index.js +122 -163
  221. package/dist/radio/index.js.map +1 -1
  222. package/dist/radio/index.mjs +122 -163
  223. package/dist/radio/index.mjs.map +1 -1
  224. package/dist/scrollArea/index.js.map +1 -1
  225. package/dist/scrollArea/index.mjs.map +1 -1
  226. package/dist/scrollIndicator/index.js +1 -4
  227. package/dist/scrollIndicator/index.js.map +1 -1
  228. package/dist/scrollIndicator/index.mjs +1 -4
  229. package/dist/scrollIndicator/index.mjs.map +1 -1
  230. package/dist/select/index.js +20 -29
  231. package/dist/select/index.js.map +1 -1
  232. package/dist/select/index.mjs +20 -29
  233. package/dist/select/index.mjs.map +1 -1
  234. package/dist/separator/index.js.map +1 -1
  235. package/dist/separator/index.mjs.map +1 -1
  236. package/dist/sheet/index.js +42 -53
  237. package/dist/sheet/index.js.map +1 -1
  238. package/dist/sheet/index.mjs +42 -53
  239. package/dist/sheet/index.mjs.map +1 -1
  240. package/dist/sidebar/index.js +66 -133
  241. package/dist/sidebar/index.js.map +1 -1
  242. package/dist/sidebar/index.mjs +66 -133
  243. package/dist/sidebar/index.mjs.map +1 -1
  244. package/dist/signature/index.js +19 -26
  245. package/dist/signature/index.js.map +1 -1
  246. package/dist/signature/index.mjs +19 -26
  247. package/dist/signature/index.mjs.map +1 -1
  248. package/dist/simpleTable/index.js +50 -81
  249. package/dist/simpleTable/index.js.map +1 -1
  250. package/dist/simpleTable/index.mjs +50 -81
  251. package/dist/simpleTable/index.mjs.map +1 -1
  252. package/dist/skeleton/index.js.map +1 -1
  253. package/dist/skeleton/index.mjs.map +1 -1
  254. package/dist/slider/index.js.map +1 -1
  255. package/dist/slider/index.mjs.map +1 -1
  256. package/dist/sonner/index.js.map +1 -1
  257. package/dist/sonner/index.mjs.map +1 -1
  258. package/dist/sortButton/index.js +50 -82
  259. package/dist/sortButton/index.js.map +1 -1
  260. package/dist/sortButton/index.mjs +50 -82
  261. package/dist/sortButton/index.mjs.map +1 -1
  262. package/dist/splitButton/index.js +214 -294
  263. package/dist/splitButton/index.js.map +1 -1
  264. package/dist/splitButton/index.mjs +214 -294
  265. package/dist/splitButton/index.mjs.map +1 -1
  266. package/dist/stats/index.js +7 -35
  267. package/dist/stats/index.js.map +1 -1
  268. package/dist/stats/index.mjs +7 -35
  269. package/dist/stats/index.mjs.map +1 -1
  270. package/dist/switch/index.js +24 -34
  271. package/dist/switch/index.js.map +1 -1
  272. package/dist/switch/index.mjs +24 -34
  273. package/dist/switch/index.mjs.map +1 -1
  274. package/dist/table/index.js +27 -29
  275. package/dist/table/index.js.map +1 -1
  276. package/dist/table/index.mjs +27 -29
  277. package/dist/table/index.mjs.map +1 -1
  278. package/dist/tabs/index.js +54 -76
  279. package/dist/tabs/index.js.map +1 -1
  280. package/dist/tabs/index.mjs +54 -76
  281. package/dist/tabs/index.mjs.map +1 -1
  282. package/dist/textarea/index.js +21 -38
  283. package/dist/textarea/index.js.map +1 -1
  284. package/dist/textarea/index.mjs +21 -38
  285. package/dist/textarea/index.mjs.map +1 -1
  286. package/dist/toast/index.js +2 -10
  287. package/dist/toast/index.js.map +1 -1
  288. package/dist/toast/index.mjs +2 -10
  289. package/dist/toast/index.mjs.map +1 -1
  290. package/dist/toaster/index.js +3 -16
  291. package/dist/toaster/index.js.map +1 -1
  292. package/dist/toaster/index.mjs +3 -16
  293. package/dist/toaster/index.mjs.map +1 -1
  294. package/dist/tooltip/index.js +19 -26
  295. package/dist/tooltip/index.js.map +1 -1
  296. package/dist/tooltip/index.mjs +19 -26
  297. package/dist/tooltip/index.mjs.map +1 -1
  298. package/package.json +12 -12
  299. package/dist/chunk-JP2N5WKD.mjs +0 -190
@@ -25,9 +25,7 @@ import { cva } from "class-variance-authority";
25
25
 
26
26
  // elements/helperText/HelperText.tsx
27
27
  import React from "react";
28
- var HelperText = ({
29
- helperText
30
- }) => /* @__PURE__ */ React.createElement(
28
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
31
29
  "p",
32
30
  {
33
31
  className: cn(
@@ -78,38 +76,31 @@ var Tooltip = ({
78
76
  delayDuration = 300,
79
77
  ...props
80
78
  }) => {
81
- return /* @__PURE__ */ React2.createElement(
82
- TooltipPrimitive.TooltipProvider,
79
+ return /* @__PURE__ */ React2.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ React2.createElement(
80
+ TooltipPrimitive.Root,
83
81
  {
84
- delayDuration,
85
- ...providerProps
82
+ open: !disabled && open,
83
+ defaultOpen,
84
+ onOpenChange,
85
+ ...props
86
86
  },
87
+ /* @__PURE__ */ React2.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
87
88
  /* @__PURE__ */ React2.createElement(
88
- TooltipPrimitive.Root,
89
+ TooltipContent,
89
90
  {
90
- open: !disabled && open,
91
- defaultOpen,
92
- onOpenChange,
93
- ...props
91
+ size,
92
+ side,
93
+ align: "center",
94
+ ...contentProps,
95
+ style: {
96
+ ...contentProps == null ? void 0 : contentProps.style,
97
+ maxWidth: "var(--radix-tooltip-content-available-width)",
98
+ maxHeight: "var(--radix-tooltip-content-available-height)"
99
+ }
94
100
  },
95
- /* @__PURE__ */ React2.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
96
- /* @__PURE__ */ React2.createElement(
97
- TooltipContent,
98
- {
99
- size,
100
- side,
101
- align: "center",
102
- ...contentProps,
103
- style: {
104
- ...contentProps == null ? void 0 : contentProps.style,
105
- maxWidth: "var(--radix-tooltip-content-available-width)",
106
- maxHeight: "var(--radix-tooltip-content-available-height)"
107
- }
108
- },
109
- content
110
- )
101
+ content
111
102
  )
112
- );
103
+ ));
113
104
  };
114
105
 
115
106
  // elements/label/Label.tsx
@@ -186,57 +177,42 @@ var Loading = ({
186
177
  };
187
178
  switch (design.split("-")[0]) {
188
179
  case "dots":
189
- return /* @__PURE__ */ React4.createElement(
180
+ return /* @__PURE__ */ React4.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ React4.createElement(
190
181
  "div",
191
182
  {
192
183
  className: cn(
193
- "hawa-flex hawa-flex-row hawa-gap-2",
194
- classNames == null ? void 0 : classNames.container
184
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
185
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
186
+ animationStyles[design.split("-")[1]],
187
+ color ? color : "hawa-bg-primary"
195
188
  )
196
- },
197
- /* @__PURE__ */ React4.createElement(
198
- "div",
199
- {
200
- className: cn(
201
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
202
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
203
- animationStyles[design.split("-")[1]],
204
- color ? color : "hawa-bg-primary"
205
- )
206
- }
207
- ),
208
- /* @__PURE__ */ React4.createElement(
209
- "div",
210
- {
211
- className: cn(
212
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
213
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
214
- animationStyles[design.split("-")[1]],
215
- color ? color : "hawa-bg-primary"
216
- )
217
- }
218
- ),
219
- /* @__PURE__ */ React4.createElement(
220
- "div",
221
- {
222
- className: cn(
223
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
224
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
225
- animationStyles[design.split("-")[1]],
226
- color ? color : "hawa-bg-primary"
227
- )
228
- }
229
- )
230
- );
189
+ }
190
+ ), /* @__PURE__ */ React4.createElement(
191
+ "div",
192
+ {
193
+ className: cn(
194
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
195
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
196
+ animationStyles[design.split("-")[1]],
197
+ color ? color : "hawa-bg-primary"
198
+ )
199
+ }
200
+ ), /* @__PURE__ */ React4.createElement(
201
+ "div",
202
+ {
203
+ className: cn(
204
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
205
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
206
+ animationStyles[design.split("-")[1]],
207
+ color ? color : "hawa-bg-primary"
208
+ )
209
+ }
210
+ ));
231
211
  case "square":
232
212
  return /* @__PURE__ */ React4.createElement(
233
213
  "svg",
234
214
  {
235
- className: cn(
236
- "squircle-container",
237
- sizeStyles[size],
238
- classNames == null ? void 0 : classNames.container
239
- ),
215
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container),
240
216
  viewBox: "0 0 35 35",
241
217
  height: "35",
242
218
  width: "35"
@@ -277,11 +253,7 @@ var Loading = ({
277
253
  height: "37",
278
254
  width: "37",
279
255
  preserveAspectRatio: "xMidYMid meet",
280
- className: cn(
281
- "squircle-container",
282
- sizeStyles[size],
283
- classNames == null ? void 0 : classNames.container
284
- )
256
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
285
257
  },
286
258
  /* @__PURE__ */ React4.createElement(
287
259
  "path",
@@ -324,11 +296,7 @@ var Loading = ({
324
296
  viewBox: "0 0 40 40",
325
297
  height: "40",
326
298
  width: "40",
327
- className: cn(
328
- "circle-container",
329
- sizeStyles[size],
330
- classNames == null ? void 0 : classNames.container
331
- )
299
+ className: cn("circle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
332
300
  },
333
301
  /* @__PURE__ */ React4.createElement(
334
302
  "circle",
@@ -496,16 +464,7 @@ var Checkbox = ({
496
464
  size === "default" ? "hawa-items-top" : "hawa-items-center"
497
465
  )
498
466
  },
499
- /* @__PURE__ */ React6.createElement(
500
- CheckboxElement,
501
- {
502
- ...props,
503
- size,
504
- radius,
505
- disabled,
506
- id
507
- }
508
- ),
467
+ /* @__PURE__ */ React6.createElement(CheckboxElement, { ...props, size, radius, disabled, id }),
509
468
  (label || helperText) && /* @__PURE__ */ React6.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React6.createElement(
510
469
  "label",
511
470
  {
@@ -580,9 +539,7 @@ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default",
580
539
  /* @__PURE__ */ React6.createElement(
581
540
  CheckboxPrimitive.Indicator,
582
541
  {
583
- className: cn(
584
- "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
585
- )
542
+ className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
586
543
  },
587
544
  /* @__PURE__ */ React6.createElement(
588
545
  "svg",
@@ -771,17 +728,11 @@ var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) =>
771
728
  }
772
729
  ));
773
730
  DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
774
- var DropdownMenuShortcut = ({
775
- className,
776
- ...props
777
- }) => {
731
+ var DropdownMenuShortcut = ({ className, ...props }) => {
778
732
  return /* @__PURE__ */ React7.createElement(
779
733
  "span",
780
734
  {
781
- className: cn(
782
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
783
- className
784
- ),
735
+ className: cn("hawa-text-xs hawa-tracking-widest hawa-opacity-60", className),
785
736
  ...props
786
737
  }
787
738
  );
@@ -818,178 +769,144 @@ var DropdownMenu = ({
818
769
  default: "hawa-px-2 hawa-py-3 ",
819
770
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
820
771
  };
821
- let [values, setValues] = React7.useState(
822
- items.map((item) => item.currentOption)
823
- );
824
- return /* @__PURE__ */ React7.createElement(
825
- DropdownMenuRoot,
772
+ let [values, setValues] = React7.useState(items.map((item) => item.currentOption));
773
+ return /* @__PURE__ */ React7.createElement(DropdownMenuRoot, { onOpenChange, open, modal: false, dir: direction }, /* @__PURE__ */ React7.createElement(
774
+ DropdownMenuTrigger,
826
775
  {
827
- onOpenChange,
828
- open,
829
- modal: false,
830
- dir: direction
776
+ asChild: true,
777
+ className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
778
+ ...triggerProps
831
779
  },
832
- /* @__PURE__ */ React7.createElement(
833
- DropdownMenuTrigger,
834
- {
835
- asChild: true,
836
- className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
837
- ...triggerProps
838
- },
839
- trigger
840
- ),
841
- /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(
842
- DropdownMenuContent,
843
- {
844
- side,
845
- sideOffset,
846
- align,
847
- alignOffset,
848
- className: cn(
849
- className,
850
- classNames == null ? void 0 : classNames.content,
851
- widthStyles[width],
852
- "hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
853
- ),
854
- style: {
855
- maxHeight: "var(--radix-dropdown-menu-content-available-height)"
856
- },
857
- ...contentProps
780
+ trigger
781
+ ), /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(
782
+ DropdownMenuContent,
783
+ {
784
+ side,
785
+ sideOffset,
786
+ align,
787
+ alignOffset,
788
+ className: cn(
789
+ className,
790
+ classNames == null ? void 0 : classNames.content,
791
+ widthStyles[width],
792
+ "hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
793
+ ),
794
+ style: {
795
+ maxHeight: "var(--radix-dropdown-menu-content-available-height)"
858
796
  },
859
- header && header,
860
- items && items.map((item, index) => {
861
- var _a;
862
- const ItemLinkComponent = item.slug ? LinkComponent : "a";
863
- if (item.itemType === "separator") {
864
- return /* @__PURE__ */ React7.createElement(
865
- DropdownMenuSeparator,
866
- {
867
- key: index,
868
- className: classNames == null ? void 0 : classNames.separator
869
- }
870
- );
871
- } else if (item.itemType === "label") {
872
- return /* @__PURE__ */ React7.createElement(DropdownMenuLabel, { key: index }, item.label);
873
- } else if (item.itemType === "radio") {
874
- let dd = item.currentOption;
875
- return /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
876
- DropdownMenuSubTrigger,
877
- {
878
- dir: direction,
879
- className: cn(sizeStyles[size])
880
- },
881
- item.icon && item.icon,
882
- item.label && item.label
883
- ), /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React7.createElement(
884
- DropdownMenuRadioGroup,
885
- {
886
- value: values[index],
887
- onValueChange: (e) => {
888
- let newValues = [...values];
889
- newValues[index] = e;
890
- setValues(newValues);
891
- console.log("changing to ", e);
892
- if (item.onOptionChange) {
893
- item.onOptionChange(e);
894
- }
797
+ ...contentProps
798
+ },
799
+ header && header,
800
+ items && items.map((item, index) => {
801
+ var _a;
802
+ const ItemLinkComponent = item.slug ? LinkComponent : "a";
803
+ if (item.itemType === "separator") {
804
+ return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, { key: index, className: classNames == null ? void 0 : classNames.separator });
805
+ } else if (item.itemType === "label") {
806
+ return /* @__PURE__ */ React7.createElement(DropdownMenuLabel, { key: index }, item.label);
807
+ } else if (item.itemType === "radio") {
808
+ let dd = item.currentOption;
809
+ return /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React7.createElement(
810
+ DropdownMenuRadioGroup,
811
+ {
812
+ value: values[index],
813
+ onValueChange: (e) => {
814
+ let newValues = [...values];
815
+ newValues[index] = e;
816
+ setValues(newValues);
817
+ console.log("changing to ", e);
818
+ if (item.onOptionChange) {
819
+ item.onOptionChange(e);
895
820
  }
896
- },
897
- (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React7.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
898
- )));
899
- } else if (item.itemType === "custom") {
900
- return /* @__PURE__ */ React7.createElement("div", { key: index }, item.content);
901
- } else {
902
- return item.subitems ? /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
903
- DropdownMenuSubTrigger,
904
- {
905
- dir: direction,
906
- className: cn(sizeStyles[size])
907
- },
908
- item.icon && item.icon,
909
- item.label && item.label
910
- ), /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
911
- const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
912
- return /* @__PURE__ */ React7.createElement(
913
- DropdownMenuItem,
914
- {
915
- key: subIndex,
916
- LinkComponent: SubitemLinkComponent,
917
- slug: subitem.slug,
918
- disabled: subitem.disabled,
919
- className: cn(
920
- sizeStyles[size],
921
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
922
- ),
923
- onMouseDown: (event) => {
924
- if (event.button === 1 || event.button === 0 && event.ctrlKey) {
925
- event.preventDefault();
926
- if (subitem.onMiddleClick) {
927
- subitem.onMiddleClick(item.value);
928
- }
929
- }
930
- },
931
- onSelect: () => {
932
- subitem.action && subitem.action();
933
- if (onItemSelect) {
934
- onItemSelect(subitem.value);
935
- }
936
- }
937
- },
938
- subitem.icon && subitem.icon,
939
- subitem.label && subitem.label
940
- );
941
- })))) : /* @__PURE__ */ React7.createElement(
821
+ }
822
+ },
823
+ (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React7.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
824
+ )));
825
+ } else if (item.itemType === "custom") {
826
+ return /* @__PURE__ */ React7.createElement("div", { key: index }, item.content);
827
+ } else {
828
+ return item.subitems ? /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
829
+ const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
830
+ return /* @__PURE__ */ React7.createElement(
942
831
  DropdownMenuItem,
943
832
  {
944
- LinkComponent: ItemLinkComponent,
945
- slug: item.slug,
946
- key: index,
947
- disabled: item.disabled,
833
+ key: subIndex,
834
+ LinkComponent: SubitemLinkComponent,
835
+ slug: subitem.slug,
836
+ disabled: subitem.disabled,
837
+ className: cn(
838
+ sizeStyles[size],
839
+ !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
840
+ ),
948
841
  onMouseDown: (event) => {
949
842
  if (event.button === 1 || event.button === 0 && event.ctrlKey) {
950
843
  event.preventDefault();
951
- if (item.onMiddleClick) {
952
- item.onMiddleClick(item.value);
844
+ if (subitem.onMiddleClick) {
845
+ subitem.onMiddleClick(item.value);
953
846
  }
954
847
  }
955
848
  },
956
- onClick: (event) => {
957
- if (item.onClick) {
958
- item.onClick(item.value);
849
+ onSelect: () => {
850
+ subitem.action && subitem.action();
851
+ if (onItemSelect) {
852
+ onItemSelect(subitem.value);
959
853
  }
960
- },
961
- onSelect: (e) => {
962
- if (item.presist) {
963
- e.preventDefault();
854
+ }
855
+ },
856
+ subitem.icon && subitem.icon,
857
+ subitem.label && subitem.label
858
+ );
859
+ })))) : /* @__PURE__ */ React7.createElement(
860
+ DropdownMenuItem,
861
+ {
862
+ LinkComponent: ItemLinkComponent,
863
+ slug: item.slug,
864
+ key: index,
865
+ disabled: item.disabled,
866
+ onMouseDown: (event) => {
867
+ if (event.button === 1 || event.button === 0 && event.ctrlKey) {
868
+ event.preventDefault();
869
+ if (item.onMiddleClick) {
870
+ item.onMiddleClick(item.value);
964
871
  }
965
- if (item.action) {
966
- item.action();
967
- if (onItemSelect) {
968
- onItemSelect(item.value);
969
- }
970
- } else {
971
- if (onItemSelect) {
972
- onItemSelect(item.value);
973
- }
872
+ }
873
+ },
874
+ onClick: (event) => {
875
+ if (item.onClick) {
876
+ item.onClick(item.value);
877
+ }
878
+ },
879
+ onSelect: (e) => {
880
+ if (item.presist) {
881
+ e.preventDefault();
882
+ }
883
+ if (item.action) {
884
+ item.action();
885
+ if (onItemSelect) {
886
+ onItemSelect(item.value);
974
887
  }
975
- },
976
- end: item.end,
977
- shortcut: item.shortcut,
978
- badged: item.badged,
979
- className: cn(
980
- sizeStyles[size],
981
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
982
- item.presist && "focus:hawa-bg-transparent",
983
- classNames == null ? void 0 : classNames.item
984
- )
888
+ } else {
889
+ if (onItemSelect) {
890
+ onItemSelect(item.value);
891
+ }
892
+ }
985
893
  },
986
- item.icon && item.icon,
987
- item.label && item.label
988
- );
989
- }
990
- })
991
- ))
992
- );
894
+ end: item.end,
895
+ shortcut: item.shortcut,
896
+ badged: item.badged,
897
+ className: cn(
898
+ sizeStyles[size],
899
+ !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
900
+ item.presist && "focus:hawa-bg-transparent",
901
+ classNames == null ? void 0 : classNames.item
902
+ )
903
+ },
904
+ item.icon && item.icon,
905
+ item.label && item.label
906
+ );
907
+ }
908
+ })
909
+ )));
993
910
  };
994
911
 
995
912
  // elements/input/Input.tsx
@@ -1209,14 +1126,16 @@ var Input = forwardRef5(
1209
1126
 
1210
1127
  // elements/table/Table.tsx
1211
1128
  import * as React10 from "react";
1212
- var Table = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React10.createElement(
1213
- "table",
1214
- {
1215
- ref,
1216
- className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
1217
- ...props
1218
- }
1219
- )));
1129
+ var Table = React10.forwardRef(
1130
+ ({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React10.createElement(
1131
+ "table",
1132
+ {
1133
+ ref,
1134
+ className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
1135
+ ...props
1136
+ }
1137
+ ))
1138
+ );
1220
1139
  var TableHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1221
1140
  "thead",
1222
1141
  {
@@ -1249,26 +1168,25 @@ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
1249
1168
  "tfoot",
1250
1169
  {
1251
1170
  ref,
1252
- className: cn(
1253
- "hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
1254
- className
1255
- ),
1256
- ...props
1257
- }
1258
- ));
1259
- var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1260
- "tr",
1261
- {
1262
- ref,
1263
- className: cn(
1264
- "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
1265
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
1266
- "[&:not(:last-child)]:hawa-border-b",
1267
- className
1268
- ),
1171
+ className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className),
1269
1172
  ...props
1270
1173
  }
1271
1174
  ));
1175
+ var TableRow = React10.forwardRef(
1176
+ ({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1177
+ "tr",
1178
+ {
1179
+ ref,
1180
+ className: cn(
1181
+ "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
1182
+ "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
1183
+ "[&:not(:last-child)]:hawa-border-b",
1184
+ className
1185
+ ),
1186
+ ...props
1187
+ }
1188
+ )
1189
+ );
1272
1190
  var TableCell = React10.forwardRef(
1273
1191
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1274
1192
  let paddingStyles = {
@@ -1301,10 +1219,7 @@ var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
1301
1219
  "caption",
1302
1220
  {
1303
1221
  ref,
1304
- className: cn(
1305
- "hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
1306
- className
1307
- ),
1222
+ className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className),
1308
1223
  ...props
1309
1224
  }
1310
1225
  ));
@@ -1336,9 +1251,7 @@ var DataTable = ({
1336
1251
  const [sorting, setSorting] = React11.useState(
1337
1252
  props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
1338
1253
  );
1339
- const [columnFilters, setColumnFilters] = React11.useState(
1340
- []
1341
- );
1254
+ const [columnFilters, setColumnFilters] = React11.useState([]);
1342
1255
  const [globalFilter, setGlobalFilter] = React11.useState("");
1343
1256
  const [expanded, setExpanded] = React11.useState({});
1344
1257
  const [columnVisibility, setColumnVisibility] = React11.useState(() => {
@@ -1480,52 +1393,38 @@ var DataTable = ({
1480
1393
  )
1481
1394
  ) : null
1482
1395
  }
1483
- ), enableHideColumns && /* @__PURE__ */ React11.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React11.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React11.createElement(
1484
- Button,
1396
+ ), enableHideColumns && /* @__PURE__ */ React11.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React11.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React11.createElement(Button, { variant: "outline", className: "hawa-flex hawa-flex-row hawa-gap-2" }, ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns", /* @__PURE__ */ React11.createElement(
1397
+ "svg",
1485
1398
  {
1486
- variant: "outline",
1487
- className: "hawa-flex hawa-flex-row hawa-gap-2"
1399
+ width: "15",
1400
+ height: "15",
1401
+ viewBox: "0 0 15 15",
1402
+ fill: "none",
1403
+ xmlns: "http://www.w3.org/2000/svg"
1488
1404
  },
1489
- ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
1490
1405
  /* @__PURE__ */ React11.createElement(
1491
- "svg",
1406
+ "path",
1492
1407
  {
1493
- width: "15",
1494
- height: "15",
1495
- viewBox: "0 0 15 15",
1496
- fill: "none",
1497
- xmlns: "http://www.w3.org/2000/svg"
1498
- },
1499
- /* @__PURE__ */ React11.createElement(
1500
- "path",
1501
- {
1502
- 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",
1503
- fill: "currentColor",
1504
- "fill-rule": "evenodd",
1505
- "clip-rule": "evenodd"
1506
- }
1507
- )
1408
+ 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",
1409
+ fill: "currentColor",
1410
+ fillRule: "evenodd",
1411
+ clipRule: "evenodd"
1412
+ }
1508
1413
  )
1509
- )), /* @__PURE__ */ React11.createElement(
1510
- DropdownMenuContent,
1511
- {
1512
- align: props.direction === "rtl" ? "start" : "end"
1513
- },
1514
- table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1515
- var _a2, _b2;
1516
- return /* @__PURE__ */ React11.createElement(
1517
- DropdownMenuCheckboxItem,
1518
- {
1519
- key: column.id,
1520
- checked: column.getIsVisible(),
1521
- onCheckedChange: (value) => column.toggleVisibility(!!value)
1522
- },
1523
- translateFn ? translateFn(
1524
- ((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
1525
- ) : column.id
1526
- );
1527
- })
1528
- ))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
1414
+ ))), /* @__PURE__ */ React11.createElement(DropdownMenuContent, { align: props.direction === "rtl" ? "start" : "end" }, table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1415
+ var _a2, _b2;
1416
+ return /* @__PURE__ */ React11.createElement(
1417
+ DropdownMenuCheckboxItem,
1418
+ {
1419
+ key: column.id,
1420
+ checked: column.getIsVisible(),
1421
+ onCheckedChange: (value) => column.toggleVisibility(!!value)
1422
+ },
1423
+ translateFn ? translateFn(
1424
+ ((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
1425
+ ) : column.id
1426
+ );
1427
+ })))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
1529
1428
  return /* @__PURE__ */ React11.createElement(
1530
1429
  Button,
1531
1430
  {
@@ -1575,45 +1474,25 @@ var DataTable = ({
1575
1474
  width: `${header.column.columnDef.size}px !important`
1576
1475
  }
1577
1476
  },
1578
- header.isPlaceholder ? null : flexRender(
1579
- header.column.columnDef.header,
1580
- header.getContext()
1581
- )
1477
+ header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())
1582
1478
  );
1583
- })))), /* @__PURE__ */ React11.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React11.createElement(
1584
- TableRow,
1585
- {
1586
- key: row.id,
1587
- "data-state": row.getIsSelected() && "selected"
1588
- },
1589
- row.getVisibleCells().map((cell) => {
1590
- var _a2;
1591
- return /* @__PURE__ */ React11.createElement(
1592
- TableCell,
1593
- {
1594
- key: cell.id,
1595
- dir: props.direction,
1596
- style: {
1597
- maxWidth: `${cell.column.columnDef.maxSize}px !important`,
1598
- minWidth: `${cell.column.columnDef.minSize}px !important`,
1599
- width: `${cell.column.columnDef.size}px !important`
1600
- },
1601
- padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
1479
+ })))), /* @__PURE__ */ React11.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React11.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
1480
+ var _a2;
1481
+ return /* @__PURE__ */ React11.createElement(
1482
+ TableCell,
1483
+ {
1484
+ key: cell.id,
1485
+ dir: props.direction,
1486
+ style: {
1487
+ maxWidth: `${cell.column.columnDef.maxSize}px !important`,
1488
+ minWidth: `${cell.column.columnDef.minSize}px !important`,
1489
+ width: `${cell.column.columnDef.size}px !important`
1602
1490
  },
1603
- flexRender(
1604
- cell.column.columnDef.cell,
1605
- cell.getContext()
1606
- )
1607
- );
1608
- })
1609
- )) : /* @__PURE__ */ React11.createElement(TableRow, null, /* @__PURE__ */ React11.createElement(
1610
- TableCell,
1611
- {
1612
- colSpan: columns.length,
1613
- className: "hawa-h-24 hawa-text-center"
1614
- },
1615
- (_h = props.texts) == null ? void 0 : _h.noData
1616
- ))))),
1491
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
1492
+ },
1493
+ flexRender(cell.column.columnDef.cell, cell.getContext())
1494
+ );
1495
+ }))) : /* @__PURE__ */ React11.createElement(TableRow, null, /* @__PURE__ */ React11.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_h = props.texts) == null ? void 0 : _h.noData))))),
1617
1496
  /* @__PURE__ */ React11.createElement(
1618
1497
  "div",
1619
1498
  {
@@ -1623,16 +1502,7 @@ var DataTable = ({
1623
1502
  )
1624
1503
  },
1625
1504
  !props.showCount && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
1626
- props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React11.createElement(
1627
- "div",
1628
- {
1629
- className: "hawa-text-muted-foreground hawa-text-sm",
1630
- dir: props.direction
1631
- },
1632
- /* @__PURE__ */ React11.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
1633
- " ",
1634
- /* @__PURE__ */ React11.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1635
- ), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.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__ */ React11.createElement(
1505
+ props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React11.createElement("div", { className: "hawa-text-muted-foreground hawa-text-sm", dir: props.direction }, /* @__PURE__ */ React11.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total), " ", /* @__PURE__ */ React11.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.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__ */ React11.createElement(
1636
1506
  "div",
1637
1507
  {
1638
1508
  className: "hawa-text-muted-foreground hawa-text-sm",
@@ -1653,9 +1523,7 @@ var DataTable = ({
1653
1523
  direction: props.direction,
1654
1524
  items: (props.bulkActions || []).map((action) => ({
1655
1525
  ...action,
1656
- action: () => action.action(
1657
- table.getFilteredSelectedRowModel().rows
1658
- )
1526
+ action: () => action.action(table.getFilteredSelectedRowModel().rows)
1659
1527
  })),
1660
1528
  trigger: /* @__PURE__ */ React11.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
1661
1529
  }
@@ -1709,9 +1577,7 @@ var DataTable = ({
1709
1577
  size: "smallIcon",
1710
1578
  onClick: () => table.setPageIndex(0),
1711
1579
  disabled: !table.getCanPreviousPage(),
1712
- className: cn(
1713
- props.direction === "rtl" && "hawa-rotate-180"
1714
- )
1580
+ className: cn(props.direction === "rtl" && "hawa-rotate-180")
1715
1581
  },
1716
1582
  /* @__PURE__ */ React11.createElement(
1717
1583
  "svg",
@@ -1737,9 +1603,7 @@ var DataTable = ({
1737
1603
  size: "smallIcon",
1738
1604
  onClick: () => table.previousPage(),
1739
1605
  disabled: !table.getCanPreviousPage(),
1740
- className: cn(
1741
- props.direction === "rtl" && "hawa-rotate-180"
1742
- )
1606
+ className: cn(props.direction === "rtl" && "hawa-rotate-180")
1743
1607
  },
1744
1608
  /* @__PURE__ */ React11.createElement(
1745
1609
  "svg",
@@ -1765,9 +1629,7 @@ var DataTable = ({
1765
1629
  size: "smallIcon",
1766
1630
  onClick: () => table.nextPage(),
1767
1631
  disabled: !table.getCanNextPage(),
1768
- className: cn(
1769
- props.direction === "ltr" && "hawa-rotate-180"
1770
- )
1632
+ className: cn(props.direction === "ltr" && "hawa-rotate-180")
1771
1633
  },
1772
1634
  /* @__PURE__ */ React11.createElement(
1773
1635
  "svg",
@@ -1793,9 +1655,7 @@ var DataTable = ({
1793
1655
  size: "smallIcon",
1794
1656
  onClick: () => table.setPageIndex(table.getPageCount() - 1),
1795
1657
  disabled: !table.getCanNextPage(),
1796
- className: cn(
1797
- props.direction === "ltr" && "hawa-rotate-180"
1798
- )
1658
+ className: cn(props.direction === "ltr" && "hawa-rotate-180")
1799
1659
  },
1800
1660
  /* @__PURE__ */ React11.createElement(
1801
1661
  "svg",