@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
@@ -32,23 +32,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
32
32
  }
33
33
  ));
34
34
  var DialogContent = React.forwardRef(
35
- ({
36
- ids,
37
- className,
38
- classNames,
39
- children,
40
- persist,
41
- hideCloseButton,
42
- overlayProps,
43
- ...props
44
- }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React.createElement(
45
- DialogOverlay,
46
- {
47
- className: classNames == null ? void 0 : classNames.overlay,
48
- id: ids == null ? void 0 : ids.overlay,
49
- ...overlayProps
50
- }
51
- ), /* @__PURE__ */ React.createElement(
35
+ ({ 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(
52
36
  DialogPrimitive.Content,
53
37
  {
54
38
  onPointerDownOutside: (e) => {
@@ -97,100 +81,87 @@ var DialogContent = React.forwardRef(
97
81
  )
98
82
  ))
99
83
  );
100
- var DialogCarouselContent = React.forwardRef(
101
- ({
102
- className,
103
- children,
104
- onPrev,
105
- persist,
106
- hideCloseButton,
107
- hidePrevButton,
84
+ 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(
85
+ DialogPrimitive.Content,
86
+ {
87
+ onPointerDownOutside: (e) => {
88
+ if (persist) {
89
+ e.preventDefault();
90
+ }
91
+ },
92
+ ref,
93
+ className: cn(
94
+ "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",
95
+ className
96
+ ),
108
97
  ...props
109
- }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
110
- DialogPrimitive.Content,
98
+ },
99
+ children,
100
+ /* @__PURE__ */ React.createElement(
101
+ "div",
111
102
  {
112
- onPointerDownOutside: (e) => {
113
- if (persist) {
114
- e.preventDefault();
115
- }
116
- },
117
- ref,
118
103
  className: cn(
119
- "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",
120
- className
121
- ),
122
- ...props
104
+ "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
105
+ onPrev ? "hawa-justify-between" : "hawa-justify-end"
106
+ )
123
107
  },
124
- children,
125
- /* @__PURE__ */ React.createElement(
108
+ hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
126
109
  "div",
127
110
  {
111
+ onClick: onPrev,
128
112
  className: cn(
129
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
130
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
113
+ "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",
114
+ props.dir === "rtl" && "hawa-rotate-180"
131
115
  )
132
116
  },
133
- hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
134
- "div",
117
+ /* @__PURE__ */ React.createElement(
118
+ "svg",
135
119
  {
136
- onClick: onPrev,
137
- className: cn(
138
- "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",
139
- props.dir === "rtl" && "hawa-rotate-180"
140
- )
120
+ xmlns: "http://www.w3.org/2000/svg",
121
+ width: "24",
122
+ height: "24",
123
+ viewBox: "0 0 24 24",
124
+ fill: "none",
125
+ className: "hawa-h-6 hawa-w-6",
126
+ stroke: "currentColor",
127
+ strokeWidth: "2",
128
+ strokeLinecap: "round",
129
+ strokeLinejoin: "round"
141
130
  },
142
- /* @__PURE__ */ React.createElement(
143
- "svg",
144
- {
145
- xmlns: "http://www.w3.org/2000/svg",
146
- width: "24",
147
- height: "24",
148
- viewBox: "0 0 24 24",
149
- fill: "none",
150
- className: "hawa-h-6 hawa-w-6",
151
- stroke: "currentColor",
152
- strokeWidth: "2",
153
- strokeLinecap: "round",
154
- strokeLinejoin: "round"
155
- },
156
- /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
131
+ /* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
132
+ )
133
+ ),
134
+ !hideCloseButton && /* @__PURE__ */ React.createElement(
135
+ DialogPrimitive.Close,
136
+ {
137
+ className: cn(
138
+ "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",
139
+ props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
157
140
  )
158
- ),
159
- !hideCloseButton && /* @__PURE__ */ React.createElement(
160
- DialogPrimitive.Close,
141
+ },
142
+ /* @__PURE__ */ React.createElement(
143
+ "svg",
161
144
  {
162
- className: cn(
163
- "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",
164
- props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
165
- )
145
+ "aria-label": "Close Icon",
146
+ "aria-hidden": "true",
147
+ className: "hawa-h-6 hawa-w-6",
148
+ fill: "currentColor",
149
+ viewBox: "0 0 20 20"
166
150
  },
167
151
  /* @__PURE__ */ React.createElement(
168
- "svg",
152
+ "path",
169
153
  {
170
- "aria-label": "Close Icon",
171
- "aria-hidden": "true",
172
- className: "hawa-h-6 hawa-w-6",
173
- fill: "currentColor",
174
- viewBox: "0 0 20 20"
175
- },
176
- /* @__PURE__ */ React.createElement(
177
- "path",
178
- {
179
- fillRule: "evenodd",
180
- 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",
181
- clipRule: "evenodd"
182
- }
183
- )
184
- ),
185
- /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
186
- )
154
+ fillRule: "evenodd",
155
+ 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",
156
+ clipRule: "evenodd"
157
+ }
158
+ )
159
+ ),
160
+ /* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
187
161
  )
188
- ))
189
- );
190
- var DialogHeader = ({
191
- className,
192
- ...props
193
- }) => /* @__PURE__ */ React.createElement(
162
+ )
163
+ )));
164
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
194
165
  "div",
195
166
  {
196
167
  className: cn(
@@ -215,17 +186,11 @@ var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
215
186
  DialogPrimitive.Description,
216
187
  {
217
188
  ref,
218
- className: cn(
219
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
220
- className
221
- ),
189
+ className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
222
190
  ...props
223
191
  }
224
192
  ));
225
- var DialogFooter = ({
226
- className,
227
- ...props
228
- }) => /* @__PURE__ */ React.createElement(
193
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
229
194
  "div",
230
195
  {
231
196
  className: cn(
@@ -266,11 +231,7 @@ var DialogCarousel = ({
266
231
  ))
267
232
  )));
268
233
  };
269
- var DialogSteps = ({
270
- currentStep,
271
- visibleStepRef,
272
- children
273
- }) => {
234
+ var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
274
235
  const [dialogHeight, setDialogHeight] = React.useState(null);
275
236
  React.useEffect(() => {
276
237
  if (visibleStepRef.current) {
@@ -299,21 +260,8 @@ var DialogSteps = ({
299
260
  ))
300
261
  );
301
262
  };
302
- var DialogStep = ({
303
- id,
304
- children,
305
- className,
306
- stepRef
307
- }) => {
308
- return /* @__PURE__ */ React.createElement(
309
- "div",
310
- {
311
- id,
312
- ref: stepRef,
313
- className: cn("hawa-w-full hawa-px-1", className)
314
- },
315
- children
316
- );
263
+ var DialogStep = ({ id, children, className, stepRef }) => {
264
+ return /* @__PURE__ */ React.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
317
265
  };
318
266
  var DialogBody = ({ children, className }) => {
319
267
  return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
@@ -332,63 +280,54 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
332
280
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
333
281
 
334
282
  // elements/command/Command.tsx
335
- var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
336
- CommandPrimitive,
337
- {
338
- ref,
339
- className: cn(
340
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
341
- className
342
- ),
343
- ...props
344
- }
345
- ));
346
- var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
347
- "div",
348
- {
349
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
350
- "cmdk-input-wrapper": ""
351
- },
352
- /* @__PURE__ */ React2.createElement(
353
- "svg",
354
- {
355
- "aria-label": "Search Icon",
356
- xmlns: "http://www.w3.org/2000/svg",
357
- width: "24",
358
- height: "24",
359
- viewBox: "0 0 24 24",
360
- fill: "none",
361
- stroke: "currentColor",
362
- strokeWidth: "2",
363
- strokeLinecap: "round",
364
- strokeLinejoin: "round",
365
- className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
366
- },
367
- /* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
368
- /* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
369
- ),
370
- /* @__PURE__ */ React2.createElement(
371
- CommandPrimitive.Input,
283
+ var Command = React2.forwardRef(
284
+ ({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
285
+ CommandPrimitive,
372
286
  {
373
287
  ref,
374
288
  className: cn(
375
- "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",
289
+ "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
290
  className
377
291
  ),
378
292
  ...props
379
293
  }
380
294
  )
381
- ));
382
- var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
383
- CommandPrimitive.List,
295
+ );
296
+ 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(
297
+ "svg",
298
+ {
299
+ "aria-label": "Search Icon",
300
+ xmlns: "http://www.w3.org/2000/svg",
301
+ width: "24",
302
+ height: "24",
303
+ viewBox: "0 0 24 24",
304
+ fill: "none",
305
+ stroke: "currentColor",
306
+ strokeWidth: "2",
307
+ strokeLinecap: "round",
308
+ strokeLinejoin: "round",
309
+ className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
310
+ },
311
+ /* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
312
+ /* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
313
+ ), /* @__PURE__ */ React2.createElement(
314
+ CommandPrimitive.Input,
384
315
  {
385
316
  ref,
386
317
  className: cn(
387
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
318
+ "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",
388
319
  className
389
320
  ),
390
321
  ...props
391
322
  }
323
+ )));
324
+ var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
325
+ CommandPrimitive.List,
326
+ {
327
+ ref,
328
+ className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
329
+ ...props
330
+ }
392
331
  ));
393
332
  var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
394
333
  CommandPrimitive.Empty,
@@ -455,9 +394,7 @@ CommandInput.displayName = CommandPrimitive.Input.displayName;
455
394
 
456
395
  // elements/helperText/HelperText.tsx
457
396
  import React3 from "react";
458
- var HelperText = ({
459
- helperText
460
- }) => /* @__PURE__ */ React3.createElement(
397
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React3.createElement(
461
398
  "p",
462
399
  {
463
400
  className: cn(
@@ -508,38 +445,31 @@ var Tooltip = ({
508
445
  delayDuration = 300,
509
446
  ...props
510
447
  }) => {
511
- return /* @__PURE__ */ React4.createElement(
512
- TooltipPrimitive.TooltipProvider,
448
+ return /* @__PURE__ */ React4.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ React4.createElement(
449
+ TooltipPrimitive.Root,
513
450
  {
514
- delayDuration,
515
- ...providerProps
451
+ open: !disabled && open,
452
+ defaultOpen,
453
+ onOpenChange,
454
+ ...props
516
455
  },
456
+ /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
517
457
  /* @__PURE__ */ React4.createElement(
518
- TooltipPrimitive.Root,
458
+ TooltipContent,
519
459
  {
520
- open: !disabled && open,
521
- defaultOpen,
522
- onOpenChange,
523
- ...props
460
+ size,
461
+ side,
462
+ align: "center",
463
+ ...contentProps,
464
+ style: {
465
+ ...contentProps == null ? void 0 : contentProps.style,
466
+ maxWidth: "var(--radix-tooltip-content-available-width)",
467
+ maxHeight: "var(--radix-tooltip-content-available-height)"
468
+ }
524
469
  },
525
- /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
526
- /* @__PURE__ */ React4.createElement(
527
- TooltipContent,
528
- {
529
- size,
530
- side,
531
- align: "center",
532
- ...contentProps,
533
- style: {
534
- ...contentProps == null ? void 0 : contentProps.style,
535
- maxWidth: "var(--radix-tooltip-content-available-width)",
536
- maxHeight: "var(--radix-tooltip-content-available-height)"
537
- }
538
- },
539
- content
540
- )
470
+ content
541
471
  )
542
- );
472
+ ));
543
473
  };
544
474
 
545
475
  // elements/label/Label.tsx
@@ -587,21 +517,19 @@ Label.displayName = "Label";
587
517
  // elements/popover/Popover.tsx
588
518
  import * as React6 from "react";
589
519
  import * as PopoverPrimitive from "@radix-ui/react-popover";
590
- var PopoverContent = React6.forwardRef(
591
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React6.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React6.createElement(
592
- PopoverPrimitive.Content,
593
- {
594
- ref,
595
- align,
596
- sideOffset,
597
- className: cn(
598
- "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",
599
- className
600
- ),
601
- ...props
602
- }
603
- ))
604
- );
520
+ var PopoverContent = React6.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React6.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React6.createElement(
521
+ PopoverPrimitive.Content,
522
+ {
523
+ ref,
524
+ align,
525
+ sideOffset,
526
+ className: cn(
527
+ "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",
528
+ className
529
+ ),
530
+ ...props
531
+ }
532
+ )));
605
533
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
606
534
  var PopoverTrigger = PopoverPrimitive.Trigger;
607
535
 
@@ -673,9 +601,7 @@ var Combobox = React8.forwardRef(
673
601
  setOpen(open2);
674
602
  }
675
603
  };
676
- const selectedItem = data.find(
677
- (item) => getProperty(item, valueKey) === value
678
- );
604
+ const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
679
605
  return /* @__PURE__ */ React8.createElement(
680
606
  "div",
681
607
  {
@@ -736,8 +662,7 @@ var Combobox = React8.forwardRef(
736
662
  Command,
737
663
  {
738
664
  filter: (value2, search) => {
739
- if (value2.toLowerCase().includes(search.toLowerCase()))
740
- return 1;
665
+ if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
741
666
  return 0;
742
667
  }
743
668
  },
@@ -753,10 +678,7 @@ var Combobox = React8.forwardRef(
753
678
  /* @__PURE__ */ React8.createElement(CommandList, null, /* @__PURE__ */ React8.createElement(
754
679
  CommandGroup,
755
680
  {
756
- className: cn(
757
- "hawa-max-h-[200px]",
758
- data.length > 0 && "hawa-overflow-y-auto"
759
- )
681
+ className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
760
682
  },
761
683
  data.map((item, i) => /* @__PURE__ */ React8.createElement(
762
684
  CommandItem,
@@ -764,13 +686,9 @@ var Combobox = React8.forwardRef(
764
686
  key: i,
765
687
  onSelect: () => {
766
688
  const newValue = getProperty(item, valueKey);
767
- setValue(
768
- newValue === value ? "" : newValue
769
- );
689
+ setValue(newValue === value ? "" : newValue);
770
690
  if (props.onChange) {
771
- props.onChange(
772
- newValue === value ? "" : newValue
773
- );
691
+ props.onChange(newValue === value ? "" : newValue);
774
692
  }
775
693
  setOpen(false);
776
694
  }