@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
@@ -67,23 +67,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
67
67
  }
68
68
  ));
69
69
  var DialogContent = React.forwardRef(
70
- ({
71
- ids,
72
- className,
73
- classNames,
74
- children,
75
- persist,
76
- hideCloseButton,
77
- overlayProps,
78
- ...props
79
- }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React.createElement(
80
- DialogOverlay,
81
- {
82
- className: classNames == null ? void 0 : classNames.overlay,
83
- id: ids == null ? void 0 : ids.overlay,
84
- ...overlayProps
85
- }
86
- ), /* @__PURE__ */ React.createElement(
70
+ ({ ids, className, classNames, children, persist, hideCloseButton, overlayProps, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay, ...overlayProps }), /* @__PURE__ */ React.createElement(
87
71
  DialogPrimitive.Content,
88
72
  {
89
73
  onPointerDownOutside: (e) => {
@@ -132,100 +116,87 @@ var DialogContent = React.forwardRef(
132
116
  )
133
117
  ))
134
118
  );
135
- var DialogCarouselContent = React.forwardRef(
136
- ({
137
- className,
138
- children,
139
- onPrev,
140
- persist,
141
- hideCloseButton,
142
- hidePrevButton,
119
+ var DialogCarouselContent = React.forwardRef(({ className, children, onPrev, persist, hideCloseButton, hidePrevButton, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
120
+ DialogPrimitive.Content,
121
+ {
122
+ onPointerDownOutside: (e) => {
123
+ if (persist) {
124
+ e.preventDefault();
125
+ }
126
+ },
127
+ ref,
128
+ className: cn(
129
+ "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",
130
+ className
131
+ ),
143
132
  ...props
144
- }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
145
- DialogPrimitive.Content,
133
+ },
134
+ children,
135
+ /* @__PURE__ */ React.createElement(
136
+ "div",
146
137
  {
147
- onPointerDownOutside: (e) => {
148
- if (persist) {
149
- e.preventDefault();
150
- }
151
- },
152
- ref,
153
138
  className: cn(
154
- "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",
155
- className
156
- ),
157
- ...props
139
+ "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
140
+ onPrev ? "hawa-justify-between" : "hawa-justify-end"
141
+ )
158
142
  },
159
- children,
160
- /* @__PURE__ */ React.createElement(
143
+ hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
161
144
  "div",
162
145
  {
146
+ onClick: onPrev,
163
147
  className: cn(
164
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
165
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
148
+ "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",
149
+ props.dir === "rtl" && "hawa-rotate-180"
166
150
  )
167
151
  },
168
- hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
169
- "div",
152
+ /* @__PURE__ */ React.createElement(
153
+ "svg",
170
154
  {
171
- onClick: onPrev,
172
- className: cn(
173
- "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",
174
- props.dir === "rtl" && "hawa-rotate-180"
175
- )
155
+ xmlns: "http://www.w3.org/2000/svg",
156
+ width: "24",
157
+ height: "24",
158
+ viewBox: "0 0 24 24",
159
+ fill: "none",
160
+ className: "hawa-h-6 hawa-w-6",
161
+ stroke: "currentColor",
162
+ strokeWidth: "2",
163
+ strokeLinecap: "round",
164
+ strokeLinejoin: "round"
176
165
  },
177
- /* @__PURE__ */ React.createElement(
178
- "svg",
179
- {
180
- xmlns: "http://www.w3.org/2000/svg",
181
- width: "24",
182
- height: "24",
183
- viewBox: "0 0 24 24",
184
- fill: "none",
185
- className: "hawa-h-6 hawa-w-6",
186
- stroke: "currentColor",
187
- strokeWidth: "2",
188
- strokeLinecap: "round",
189
- strokeLinejoin: "round"
190
- },
191
- /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
166
+ /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
167
+ )
168
+ ),
169
+ !hideCloseButton && /* @__PURE__ */ React.createElement(
170
+ DialogPrimitive.Close,
171
+ {
172
+ className: cn(
173
+ "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",
174
+ props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
192
175
  )
193
- ),
194
- !hideCloseButton && /* @__PURE__ */ React.createElement(
195
- DialogPrimitive.Close,
176
+ },
177
+ /* @__PURE__ */ React.createElement(
178
+ "svg",
196
179
  {
197
- className: cn(
198
- "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",
199
- props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
200
- )
180
+ "aria-label": "Close Icon",
181
+ "aria-hidden": "true",
182
+ className: "hawa-h-6 hawa-w-6",
183
+ fill: "currentColor",
184
+ viewBox: "0 0 20 20"
201
185
  },
202
186
  /* @__PURE__ */ React.createElement(
203
- "svg",
187
+ "path",
204
188
  {
205
- "aria-label": "Close Icon",
206
- "aria-hidden": "true",
207
- className: "hawa-h-6 hawa-w-6",
208
- fill: "currentColor",
209
- viewBox: "0 0 20 20"
210
- },
211
- /* @__PURE__ */ React.createElement(
212
- "path",
213
- {
214
- fillRule: "evenodd",
215
- 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",
216
- clipRule: "evenodd"
217
- }
218
- )
219
- ),
220
- /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
221
- )
189
+ fillRule: "evenodd",
190
+ 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",
191
+ clipRule: "evenodd"
192
+ }
193
+ )
194
+ ),
195
+ /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
222
196
  )
223
- ))
224
- );
225
- var DialogHeader = ({
226
- className,
227
- ...props
228
- }) => /* @__PURE__ */ React.createElement(
197
+ )
198
+ )));
199
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
229
200
  "div",
230
201
  {
231
202
  className: cn(
@@ -250,17 +221,11 @@ var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
250
221
  DialogPrimitive.Description,
251
222
  {
252
223
  ref,
253
- className: cn(
254
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
255
- className
256
- ),
224
+ className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
257
225
  ...props
258
226
  }
259
227
  ));
260
- var DialogFooter = ({
261
- className,
262
- ...props
263
- }) => /* @__PURE__ */ React.createElement(
228
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
264
229
  "div",
265
230
  {
266
231
  className: cn(
@@ -301,11 +266,7 @@ var DialogCarousel = ({
301
266
  ))
302
267
  )));
303
268
  };
304
- var DialogSteps = ({
305
- currentStep,
306
- visibleStepRef,
307
- children
308
- }) => {
269
+ var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
309
270
  const [dialogHeight, setDialogHeight] = React.useState(null);
310
271
  React.useEffect(() => {
311
272
  if (visibleStepRef.current) {
@@ -334,21 +295,8 @@ var DialogSteps = ({
334
295
  ))
335
296
  );
336
297
  };
337
- var DialogStep = ({
338
- id,
339
- children,
340
- className,
341
- stepRef
342
- }) => {
343
- return /* @__PURE__ */ React.createElement(
344
- "div",
345
- {
346
- id,
347
- ref: stepRef,
348
- className: cn("hawa-w-full hawa-px-1", className)
349
- },
350
- children
351
- );
298
+ var DialogStep = ({ id, children, className, stepRef }) => {
299
+ return /* @__PURE__ */ React.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
352
300
  };
353
301
  var DialogBody = ({ children, className }) => {
354
302
  return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
@@ -367,63 +315,54 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
367
315
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
368
316
 
369
317
  // elements/command/Command.tsx
370
- var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
371
- import_cmdk.Command,
372
- {
373
- ref,
374
- className: cn(
375
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
376
- className
377
- ),
378
- ...props
379
- }
380
- ));
381
- var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
382
- "div",
383
- {
384
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
385
- "cmdk-input-wrapper": ""
386
- },
387
- /* @__PURE__ */ React2.createElement(
388
- "svg",
389
- {
390
- "aria-label": "Search Icon",
391
- xmlns: "http://www.w3.org/2000/svg",
392
- width: "24",
393
- height: "24",
394
- viewBox: "0 0 24 24",
395
- fill: "none",
396
- stroke: "currentColor",
397
- strokeWidth: "2",
398
- strokeLinecap: "round",
399
- strokeLinejoin: "round",
400
- className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
401
- },
402
- /* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
403
- /* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
404
- ),
405
- /* @__PURE__ */ React2.createElement(
406
- import_cmdk.Command.Input,
318
+ var Command = React2.forwardRef(
319
+ ({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
320
+ import_cmdk.Command,
407
321
  {
408
322
  ref,
409
323
  className: cn(
410
- "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",
324
+ "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
411
325
  className
412
326
  ),
413
327
  ...props
414
328
  }
415
329
  )
416
- ));
417
- var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
418
- import_cmdk.Command.List,
330
+ );
331
+ var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React2.createElement(
332
+ "svg",
333
+ {
334
+ "aria-label": "Search Icon",
335
+ xmlns: "http://www.w3.org/2000/svg",
336
+ width: "24",
337
+ height: "24",
338
+ viewBox: "0 0 24 24",
339
+ fill: "none",
340
+ stroke: "currentColor",
341
+ strokeWidth: "2",
342
+ strokeLinecap: "round",
343
+ strokeLinejoin: "round",
344
+ className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
345
+ },
346
+ /* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
347
+ /* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
348
+ ), /* @__PURE__ */ React2.createElement(
349
+ import_cmdk.Command.Input,
419
350
  {
420
351
  ref,
421
352
  className: cn(
422
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
353
+ "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",
423
354
  className
424
355
  ),
425
356
  ...props
426
357
  }
358
+ )));
359
+ var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
360
+ import_cmdk.Command.List,
361
+ {
362
+ ref,
363
+ className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
364
+ ...props
365
+ }
427
366
  ));
428
367
  var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
429
368
  import_cmdk.Command.Empty,
@@ -490,9 +429,7 @@ CommandInput.displayName = import_cmdk.Command.Input.displayName;
490
429
 
491
430
  // elements/helperText/HelperText.tsx
492
431
  var import_react = __toESM(require("react"));
493
- var HelperText = ({
494
- helperText
495
- }) => /* @__PURE__ */ import_react.default.createElement(
432
+ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react.default.createElement(
496
433
  "p",
497
434
  {
498
435
  className: cn(
@@ -543,38 +480,31 @@ var Tooltip = ({
543
480
  delayDuration = 300,
544
481
  ...props
545
482
  }) => {
546
- return /* @__PURE__ */ import_react2.default.createElement(
547
- TooltipPrimitive.TooltipProvider,
483
+ return /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react2.default.createElement(
484
+ TooltipPrimitive.Root,
548
485
  {
549
- delayDuration,
550
- ...providerProps
486
+ open: !disabled && open,
487
+ defaultOpen,
488
+ onOpenChange,
489
+ ...props
551
490
  },
491
+ /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
552
492
  /* @__PURE__ */ import_react2.default.createElement(
553
- TooltipPrimitive.Root,
493
+ TooltipContent,
554
494
  {
555
- open: !disabled && open,
556
- defaultOpen,
557
- onOpenChange,
558
- ...props
495
+ size,
496
+ side,
497
+ align: "center",
498
+ ...contentProps,
499
+ style: {
500
+ ...contentProps == null ? void 0 : contentProps.style,
501
+ maxWidth: "var(--radix-tooltip-content-available-width)",
502
+ maxHeight: "var(--radix-tooltip-content-available-height)"
503
+ }
559
504
  },
560
- /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
561
- /* @__PURE__ */ import_react2.default.createElement(
562
- TooltipContent,
563
- {
564
- size,
565
- side,
566
- align: "center",
567
- ...contentProps,
568
- style: {
569
- ...contentProps == null ? void 0 : contentProps.style,
570
- maxWidth: "var(--radix-tooltip-content-available-width)",
571
- maxHeight: "var(--radix-tooltip-content-available-height)"
572
- }
573
- },
574
- content
575
- )
505
+ content
576
506
  )
577
- );
507
+ ));
578
508
  };
579
509
 
580
510
  // elements/label/Label.tsx
@@ -622,21 +552,19 @@ Label.displayName = "Label";
622
552
  // elements/popover/Popover.tsx
623
553
  var React6 = __toESM(require("react"));
624
554
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
625
- var PopoverContent = React6.forwardRef(
626
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React6.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React6.createElement(
627
- PopoverPrimitive.Content,
628
- {
629
- ref,
630
- align,
631
- sideOffset,
632
- className: cn(
633
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none 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-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
634
- className
635
- ),
636
- ...props
637
- }
638
- ))
639
- );
555
+ var PopoverContent = React6.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React6.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React6.createElement(
556
+ PopoverPrimitive.Content,
557
+ {
558
+ ref,
559
+ align,
560
+ sideOffset,
561
+ className: cn(
562
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none 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-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
563
+ className
564
+ ),
565
+ ...props
566
+ }
567
+ )));
640
568
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
641
569
  var PopoverTrigger = PopoverPrimitive.Trigger;
642
570
 
@@ -708,9 +636,7 @@ var Combobox = React8.forwardRef(
708
636
  setOpen(open2);
709
637
  }
710
638
  };
711
- const selectedItem = data.find(
712
- (item) => getProperty(item, valueKey) === value
713
- );
639
+ const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
714
640
  return /* @__PURE__ */ React8.createElement(
715
641
  "div",
716
642
  {
@@ -771,8 +697,7 @@ var Combobox = React8.forwardRef(
771
697
  Command,
772
698
  {
773
699
  filter: (value2, search) => {
774
- if (value2.toLowerCase().includes(search.toLowerCase()))
775
- return 1;
700
+ if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
776
701
  return 0;
777
702
  }
778
703
  },
@@ -788,10 +713,7 @@ var Combobox = React8.forwardRef(
788
713
  /* @__PURE__ */ React8.createElement(CommandList, null, /* @__PURE__ */ React8.createElement(
789
714
  CommandGroup,
790
715
  {
791
- className: cn(
792
- "hawa-max-h-[200px]",
793
- data.length > 0 && "hawa-overflow-y-auto"
794
- )
716
+ className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
795
717
  },
796
718
  data.map((item, i) => /* @__PURE__ */ React8.createElement(
797
719
  CommandItem,
@@ -799,13 +721,9 @@ var Combobox = React8.forwardRef(
799
721
  key: i,
800
722
  onSelect: () => {
801
723
  const newValue = getProperty(item, valueKey);
802
- setValue(
803
- newValue === value ? "" : newValue
804
- );
724
+ setValue(newValue === value ? "" : newValue);
805
725
  if (props.onChange) {
806
- props.onChange(
807
- newValue === value ? "" : newValue
808
- );
726
+ props.onChange(newValue === value ? "" : newValue);
809
727
  }
810
728
  setOpen(false);
811
729
  }