@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
@@ -59,9 +59,7 @@ var import_class_variance_authority = require("class-variance-authority");
59
59
 
60
60
  // elements/helperText/HelperText.tsx
61
61
  var import_react = __toESM(require("react"));
62
- var HelperText = ({
63
- helperText
64
- }) => /* @__PURE__ */ import_react.default.createElement(
62
+ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react.default.createElement(
65
63
  "p",
66
64
  {
67
65
  className: cn(
@@ -112,38 +110,31 @@ var Tooltip = ({
112
110
  delayDuration = 300,
113
111
  ...props
114
112
  }) => {
115
- return /* @__PURE__ */ import_react2.default.createElement(
116
- TooltipPrimitive.TooltipProvider,
113
+ return /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react2.default.createElement(
114
+ TooltipPrimitive.Root,
117
115
  {
118
- delayDuration,
119
- ...providerProps
116
+ open: !disabled && open,
117
+ defaultOpen,
118
+ onOpenChange,
119
+ ...props
120
120
  },
121
+ /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
121
122
  /* @__PURE__ */ import_react2.default.createElement(
122
- TooltipPrimitive.Root,
123
+ TooltipContent,
123
124
  {
124
- open: !disabled && open,
125
- defaultOpen,
126
- onOpenChange,
127
- ...props
125
+ size,
126
+ side,
127
+ align: "center",
128
+ ...contentProps,
129
+ style: {
130
+ ...contentProps == null ? void 0 : contentProps.style,
131
+ maxWidth: "var(--radix-tooltip-content-available-width)",
132
+ maxHeight: "var(--radix-tooltip-content-available-height)"
133
+ }
128
134
  },
129
- /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
130
- /* @__PURE__ */ import_react2.default.createElement(
131
- TooltipContent,
132
- {
133
- size,
134
- side,
135
- align: "center",
136
- ...contentProps,
137
- style: {
138
- ...contentProps == null ? void 0 : contentProps.style,
139
- maxWidth: "var(--radix-tooltip-content-available-width)",
140
- maxHeight: "var(--radix-tooltip-content-available-height)"
141
- }
142
- },
143
- content
144
- )
135
+ content
145
136
  )
146
- );
137
+ ));
147
138
  };
148
139
 
149
140
  // elements/label/Label.tsx
@@ -220,57 +211,42 @@ var Loading = ({
220
211
  };
221
212
  switch (design.split("-")[0]) {
222
213
  case "dots":
223
- return /* @__PURE__ */ import_react3.default.createElement(
214
+ return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ import_react3.default.createElement(
224
215
  "div",
225
216
  {
226
217
  className: cn(
227
- "hawa-flex hawa-flex-row hawa-gap-2",
228
- classNames == null ? void 0 : classNames.container
218
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
219
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
220
+ animationStyles[design.split("-")[1]],
221
+ color ? color : "hawa-bg-primary"
229
222
  )
230
- },
231
- /* @__PURE__ */ import_react3.default.createElement(
232
- "div",
233
- {
234
- className: cn(
235
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
236
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
237
- animationStyles[design.split("-")[1]],
238
- color ? color : "hawa-bg-primary"
239
- )
240
- }
241
- ),
242
- /* @__PURE__ */ import_react3.default.createElement(
243
- "div",
244
- {
245
- className: cn(
246
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
247
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
248
- animationStyles[design.split("-")[1]],
249
- color ? color : "hawa-bg-primary"
250
- )
251
- }
252
- ),
253
- /* @__PURE__ */ import_react3.default.createElement(
254
- "div",
255
- {
256
- className: cn(
257
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
258
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
259
- animationStyles[design.split("-")[1]],
260
- color ? color : "hawa-bg-primary"
261
- )
262
- }
263
- )
264
- );
223
+ }
224
+ ), /* @__PURE__ */ import_react3.default.createElement(
225
+ "div",
226
+ {
227
+ className: cn(
228
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
229
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
230
+ animationStyles[design.split("-")[1]],
231
+ color ? color : "hawa-bg-primary"
232
+ )
233
+ }
234
+ ), /* @__PURE__ */ import_react3.default.createElement(
235
+ "div",
236
+ {
237
+ className: cn(
238
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
239
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
240
+ animationStyles[design.split("-")[1]],
241
+ color ? color : "hawa-bg-primary"
242
+ )
243
+ }
244
+ ));
265
245
  case "square":
266
246
  return /* @__PURE__ */ import_react3.default.createElement(
267
247
  "svg",
268
248
  {
269
- className: cn(
270
- "squircle-container",
271
- sizeStyles[size],
272
- classNames == null ? void 0 : classNames.container
273
- ),
249
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container),
274
250
  viewBox: "0 0 35 35",
275
251
  height: "35",
276
252
  width: "35"
@@ -311,11 +287,7 @@ var Loading = ({
311
287
  height: "37",
312
288
  width: "37",
313
289
  preserveAspectRatio: "xMidYMid meet",
314
- className: cn(
315
- "squircle-container",
316
- sizeStyles[size],
317
- classNames == null ? void 0 : classNames.container
318
- )
290
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
319
291
  },
320
292
  /* @__PURE__ */ import_react3.default.createElement(
321
293
  "path",
@@ -358,11 +330,7 @@ var Loading = ({
358
330
  viewBox: "0 0 40 40",
359
331
  height: "40",
360
332
  width: "40",
361
- className: cn(
362
- "circle-container",
363
- sizeStyles[size],
364
- classNames == null ? void 0 : classNames.container
365
- )
333
+ className: cn("circle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
366
334
  },
367
335
  /* @__PURE__ */ import_react3.default.createElement(
368
336
  "circle",
@@ -504,13 +472,7 @@ Button.displayName = "Button";
504
472
  // elements/card/Card.tsx
505
473
  var React6 = __toESM(require("react"));
506
474
  var Card = React6.forwardRef(
507
- ({
508
- className,
509
- variant = "default",
510
- clickable = false,
511
- asContainer = false,
512
- ...props
513
- }, ref) => {
475
+ ({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
514
476
  let variantStyles = {
515
477
  default: cn(
516
478
  "hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
@@ -522,14 +484,7 @@ var Card = React6.forwardRef(
522
484
  clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
523
485
  )
524
486
  };
525
- return /* @__PURE__ */ React6.createElement(
526
- "div",
527
- {
528
- ref,
529
- className: cn(!asContainer && variantStyles[variant], className),
530
- ...props
531
- }
532
- );
487
+ return /* @__PURE__ */ React6.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
533
488
  }
534
489
  );
535
490
  var CardHeader = React6.forwardRef(
@@ -537,30 +492,15 @@ var CardHeader = React6.forwardRef(
537
492
  "div",
538
493
  {
539
494
  ref,
540
- className: cn(
541
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
542
- className
543
- ),
495
+ className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
544
496
  ...props
545
497
  }
546
498
  ), props.actions && /* @__PURE__ */ React6.createElement("div", { className: "hawa-p-6" }, props.actions))
547
499
  );
548
- var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
549
- "h3",
550
- {
551
- ref,
552
- className: cn("hawa-text-2xl hawa-font-semibold", className),
553
- ...props
554
- }
555
- ));
556
- var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
557
- "p",
558
- {
559
- ref,
560
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
561
- ...props
562
- }
563
- ));
500
+ var CardTitle = React6.forwardRef(
501
+ ({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
502
+ );
503
+ var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
564
504
  var CardContent = React6.forwardRef(
565
505
  ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
566
506
  "div",
@@ -601,21 +541,19 @@ var import_react_tabs = require("@radix-ui/react-tabs");
601
541
  // elements/popover/Popover.tsx
602
542
  var React7 = __toESM(require("react"));
603
543
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
604
- var PopoverContent = React7.forwardRef(
605
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React7.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React7.createElement(
606
- PopoverPrimitive.Content,
607
- {
608
- ref,
609
- align,
610
- sideOffset,
611
- className: cn(
612
- "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",
613
- className
614
- ),
615
- ...props
616
- }
617
- ))
618
- );
544
+ var PopoverContent = React7.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React7.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React7.createElement(
545
+ PopoverPrimitive.Content,
546
+ {
547
+ ref,
548
+ align,
549
+ sideOffset,
550
+ className: cn(
551
+ "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",
552
+ className
553
+ ),
554
+ ...props
555
+ }
556
+ )));
619
557
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
620
558
  var Popover = ({
621
559
  trigger,
@@ -635,15 +573,7 @@ var Popover = ({
635
573
  trigger: "var(--radix-popover-trigger-width)",
636
574
  default: "auto"
637
575
  };
638
- return /* @__PURE__ */ React7.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React7.createElement(
639
- PopoverPrimitive.Trigger,
640
- {
641
- className: "hawa-w-full",
642
- disabled: disableTrigger,
643
- ...triggerProps
644
- },
645
- trigger
646
- ), /* @__PURE__ */ React7.createElement(
576
+ return /* @__PURE__ */ React7.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React7.createElement(PopoverPrimitive.Trigger, { className: "hawa-w-full", disabled: disableTrigger, ...triggerProps }, trigger), /* @__PURE__ */ React7.createElement(
647
577
  PopoverContent,
648
578
  {
649
579
  side,
@@ -697,12 +627,8 @@ var Radio = (0, import_react4.forwardRef)(
697
627
  default: "hawa-max-w-fit",
698
628
  full: "hawa-w-full"
699
629
  };
700
- const [parentDirection, setParentDirection] = import_react4.default.useState(
701
- null
702
- );
703
- const [selectedOption, setSelectedOption] = (0, import_react4.useState)(
704
- props.defaultValue || props.value
705
- );
630
+ const [parentDirection, setParentDirection] = import_react4.default.useState(null);
631
+ const [selectedOption, setSelectedOption] = (0, import_react4.useState)(props.defaultValue || props.value);
706
632
  const [openTooltip, setOpenTooltip] = (0, import_react4.useState)(null);
707
633
  const parentRef = (0, import_react4.useRef)(null);
708
634
  (0, import_react4.useEffect)(() => {
@@ -731,89 +657,78 @@ var Radio = (0, import_react4.forwardRef)(
731
657
  ];
732
658
  switch (design) {
733
659
  case "tabs":
734
- return /* @__PURE__ */ import_react4.default.createElement(
735
- "div",
660
+ return /* @__PURE__ */ import_react4.default.createElement("div", { className: cn("hawa-gap-2 hawa-flex hawa-flex-col", containerClassNames == null ? void 0 : containerClassNames.tabs) }, props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react4.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react4.default.createElement(
661
+ import_react_tabs.TabsList,
736
662
  {
663
+ role: "tablist",
664
+ ref: parentRef,
737
665
  className: cn(
738
- "hawa-gap-2 hawa-flex hawa-flex-col",
739
- containerClassNames == null ? void 0 : containerClassNames.tabs
666
+ props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
667
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
668
+ orientationStyle[orientation],
669
+ widthStyle[width],
670
+ tabsContainerClassName,
671
+ props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
740
672
  )
741
673
  },
742
- props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
743
- /* @__PURE__ */ import_react4.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react4.default.createElement(
744
- import_react_tabs.TabsList,
745
- {
746
- role: "tablist",
747
- ref: parentRef,
748
- className: cn(
749
- props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
750
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
751
- orientationStyle[orientation],
752
- widthStyle[width],
753
- tabsContainerClassName,
754
- props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
755
- )
756
- },
757
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
758
- return opt.tooltip ? /* @__PURE__ */ import_react4.default.createElement(
759
- PopoverRoot,
674
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
675
+ return opt.tooltip ? /* @__PURE__ */ import_react4.default.createElement(
676
+ PopoverRoot,
677
+ {
678
+ key: o,
679
+ open: o === openTooltip,
680
+ onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
681
+ },
682
+ /* @__PURE__ */ import_react4.default.createElement(
683
+ PopoverTrigger,
760
684
  {
761
- key: o,
762
- open: o === openTooltip,
763
- onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
685
+ onMouseEnter: () => setOpenTooltip(o),
686
+ onMouseLeave: () => setOpenTooltip(null),
687
+ asChild: true
764
688
  },
765
689
  /* @__PURE__ */ import_react4.default.createElement(
766
- PopoverTrigger,
690
+ import_react_tabs.TabsTrigger,
767
691
  {
768
- onMouseEnter: () => setOpenTooltip(o),
769
- onMouseLeave: () => setOpenTooltip(null),
770
- asChild: true
771
- },
772
- /* @__PURE__ */ import_react4.default.createElement(
773
- import_react_tabs.TabsTrigger,
774
- {
775
- "aria-current": selectedOption === opt.value ? "page" : void 0,
776
- value: opt.value,
777
- role: "tab",
778
- tabIndex: 0,
779
- onClick: () => {
780
- if (props.disabled || opt.disabled) return;
781
- handleChange(opt);
782
- },
783
- className: cn(
784
- ...radio_option_tabs_styling,
785
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
786
- )
692
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
693
+ value: opt.value,
694
+ role: "tab",
695
+ tabIndex: 0,
696
+ onClick: () => {
697
+ if (props.disabled || opt.disabled) return;
698
+ handleChange(opt);
787
699
  },
788
- opt.icon && opt.icon,
789
- opt.label
790
- )
791
- ),
792
- /* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
793
- ) : /* @__PURE__ */ import_react4.default.createElement(
794
- import_react_tabs.TabsTrigger,
795
- {
796
- key: o,
797
- role: "tab",
798
- tabIndex: 0,
799
- "aria-current": selectedOption === opt.value ? "page" : void 0,
800
- onClick: () => {
801
- if (props.disabled || opt.disabled) return;
802
- handleChange(opt);
700
+ className: cn(
701
+ ...radio_option_tabs_styling,
702
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
703
+ )
803
704
  },
804
- className: cn(
805
- ...radio_option_tabs_styling,
806
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
807
- ),
808
- value: opt.value
705
+ opt.icon && opt.icon,
706
+ opt.label
707
+ )
708
+ ),
709
+ /* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
710
+ ) : /* @__PURE__ */ import_react4.default.createElement(
711
+ import_react_tabs.TabsTrigger,
712
+ {
713
+ key: o,
714
+ role: "tab",
715
+ tabIndex: 0,
716
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
717
+ onClick: () => {
718
+ if (props.disabled || opt.disabled) return;
719
+ handleChange(opt);
809
720
  },
810
- opt.icon && opt.icon,
811
- opt.label
812
- );
813
- })
814
- )),
815
- !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
816
- );
721
+ className: cn(
722
+ ...radio_option_tabs_styling,
723
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
724
+ ),
725
+ value: opt.value
726
+ },
727
+ opt.icon && opt.icon,
728
+ opt.label
729
+ );
730
+ })
731
+ )), !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
817
732
  case "bordered":
818
733
  return /* @__PURE__ */ import_react4.default.createElement(
819
734
  "div",
@@ -861,11 +776,7 @@ var Radio = (0, import_react4.forwardRef)(
861
776
  return /* @__PURE__ */ import_react4.default.createElement(
862
777
  "ul",
863
778
  {
864
- className: cn(
865
- orientationStyle[orientation],
866
- "hawa-gap-4",
867
- containerClassNames == null ? void 0 : containerClassNames.cards
868
- )
779
+ className: cn(orientationStyle[orientation], "hawa-gap-4", containerClassNames == null ? void 0 : containerClassNames.cards)
869
780
  },
870
781
  (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react4.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react4.default.createElement(
871
782
  "input",
@@ -891,49 +802,38 @@ var Radio = (0, import_react4.forwardRef)(
891
802
  )))
892
803
  );
893
804
  default:
894
- return /* @__PURE__ */ import_react4.default.createElement(
805
+ return /* @__PURE__ */ import_react4.default.createElement("div", { className: cn("hawa-flex hawa-flex-col hawa-gap-2", containerClassNames == null ? void 0 : containerClassNames.default) }, props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement(
895
806
  "div",
896
807
  {
897
808
  className: cn(
898
- "hawa-flex hawa-flex-col hawa-gap-2",
899
- containerClassNames == null ? void 0 : containerClassNames.default
900
- )
809
+ "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
810
+ props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
811
+ ),
812
+ key: i + 1
901
813
  },
902
- props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
903
- /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement(
904
- "div",
814
+ /* @__PURE__ */ import_react4.default.createElement(
815
+ "input",
816
+ {
817
+ disabled: opt.disabled,
818
+ id: opt.value.toString(),
819
+ type: "radio",
820
+ value: opt.value,
821
+ name,
822
+ onChange: () => handleChange(opt)
823
+ }
824
+ ),
825
+ /* @__PURE__ */ import_react4.default.createElement(
826
+ "label",
905
827
  {
828
+ htmlFor: opt.value.toString(),
906
829
  className: cn(
907
- "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
908
- props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
909
- ),
910
- key: i + 1
830
+ "hawa-text-sm hawa-font-medium dark:hawa-text-white",
831
+ opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
832
+ )
911
833
  },
912
- /* @__PURE__ */ import_react4.default.createElement(
913
- "input",
914
- {
915
- disabled: opt.disabled,
916
- id: opt.value.toString(),
917
- type: "radio",
918
- value: opt.value,
919
- name,
920
- onChange: () => handleChange(opt)
921
- }
922
- ),
923
- /* @__PURE__ */ import_react4.default.createElement(
924
- "label",
925
- {
926
- htmlFor: opt.value.toString(),
927
- className: cn(
928
- "hawa-text-sm hawa-font-medium dark:hawa-text-white",
929
- opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
930
- )
931
- },
932
- opt.label
933
- )
934
- ))),
935
- /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
936
- );
834
+ opt.label
835
+ )
836
+ ))), /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
937
837
  }
938
838
  }
939
839
  );
@@ -1004,15 +904,7 @@ var Textarea = React10.forwardRef(
1004
904
  className
1005
905
  )
1006
906
  },
1007
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React10.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React10.createElement(
1008
- "div",
1009
- {
1010
- className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
1011
- },
1012
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1013
- "/",
1014
- textareaProps == null ? void 0 : textareaProps.maxLength
1015
- )),
907
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React10.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React10.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength)),
1016
908
  isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React10.createElement(
1017
909
  "textarea",
1018
910
  {
@@ -1061,19 +953,13 @@ var UserReferralSource = ({
1061
953
  return /* @__PURE__ */ import_react6.default.createElement(
1062
954
  "div",
1063
955
  {
1064
- className: cn(
1065
- "hawa-transition-all",
1066
- closed ? "hawa-opacity-0" : "hawa-opacity-100"
1067
- ),
956
+ className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
1068
957
  ref: popUpRef
1069
958
  },
1070
959
  /* @__PURE__ */ import_react6.default.createElement(
1071
960
  Card,
1072
961
  {
1073
- className: cn(
1074
- "hawa-fixed hawa-bottom-4 hawa-p-0 ",
1075
- boxPosition[position]
1076
- ),
962
+ className: cn("hawa-fixed hawa-bottom-4 hawa-p-0", boxPosition[position]),
1077
963
  dir: props.direction
1078
964
  },
1079
965
  /* @__PURE__ */ import_react6.default.createElement(
@@ -1082,7 +968,7 @@ var UserReferralSource = ({
1082
968
  type: "button",
1083
969
  className: cn(
1084
970
  props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
1085
- "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"
971
+ "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"
1086
972
  ),
1087
973
  "data-dismiss-target": "#toast-default",
1088
974
  "aria-label": "Close",
@@ -1134,7 +1020,7 @@ var UserReferralSource = ({
1134
1020
  )
1135
1021
  },
1136
1022
  /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
1137
- /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ import_react6.default.createElement(
1023
+ /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, /* @__PURE__ */ import_react6.default.createElement(
1138
1024
  import_react_hook_form.Controller,
1139
1025
  {
1140
1026
  control,
@@ -1186,10 +1072,7 @@ var UserReferralSource = ({
1186
1072
 
1187
1073
  // blocks/feedback/FeedbackRating.tsx
1188
1074
  var import_react7 = __toESM(require("react"));
1189
- var FeedbackRating = ({
1190
- position = "bottom-right",
1191
- ...props
1192
- }) => {
1075
+ var FeedbackRating = ({ position = "bottom-right", ...props }) => {
1193
1076
  const [closed, setClosed] = (0, import_react7.useState)(false);
1194
1077
  const [answered, setAnswered] = (0, import_react7.useState)(false);
1195
1078
  const [clickedOption, setClickedOption] = (0, import_react7.useState)(null);
@@ -1279,9 +1162,7 @@ var FeedbackRating = ({
1279
1162
  }, 4800);
1280
1163
  setTimeout(() => {
1281
1164
  var _a, _b;
1282
- (_b = popUpRef.current) == null ? void 0 : _b.removeChild(
1283
- (_a = popUpRef.current) == null ? void 0 : _a.children[0]
1284
- );
1165
+ (_b = popUpRef.current) == null ? void 0 : _b.removeChild((_a = popUpRef.current) == null ? void 0 : _a.children[0]);
1285
1166
  clearTimeout(timeoutDestroy);
1286
1167
  }, 5300);
1287
1168
  },
@@ -1303,96 +1184,56 @@ var import_react11 = __toESM(require("react"));
1303
1184
 
1304
1185
  // icons/Emojis.tsx
1305
1186
  var import_react8 = __toESM(require("react"));
1306
- var VeryGoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
1307
- "svg",
1187
+ var VeryGoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ import_react8.default.createElement(
1188
+ "path",
1308
1189
  {
1309
- fill: "none",
1310
- height: "16",
1311
- viewBox: "0 0 16 16",
1312
- width: "16",
1313
- xmlns: "http://www.w3.org/2000/svg"
1314
- },
1315
- /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ import_react8.default.createElement(
1316
- "path",
1317
- {
1318
- clipRule: "evenodd",
1319
- d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
1320
- fill: "currentColor",
1321
- fillRule: "evenodd"
1322
- }
1323
- ), /* @__PURE__ */ import_react8.default.createElement(
1324
- "path",
1325
- {
1326
- clipRule: "evenodd",
1327
- d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
1328
- fill: "#FF990A",
1329
- fillRule: "evenodd"
1330
- }
1331
- ))
1332
- );
1333
- var GoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
1334
- "svg",
1190
+ clipRule: "evenodd",
1191
+ d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
1192
+ fill: "currentColor",
1193
+ fillRule: "evenodd"
1194
+ }
1195
+ ), /* @__PURE__ */ import_react8.default.createElement(
1196
+ "path",
1335
1197
  {
1336
- fill: "none",
1337
- height: "16",
1338
- viewBox: "0 0 16 16",
1339
- width: "16",
1340
- xmlns: "http://www.w3.org/2000/svg"
1341
- },
1342
- /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ import_react8.default.createElement(
1343
- "path",
1344
- {
1345
- clipRule: "evenodd",
1346
- d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
1347
- fill: "currentColor",
1348
- fillRule: "evenodd"
1349
- }
1350
- ))
1351
- );
1352
- var BadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
1353
- "svg",
1198
+ clipRule: "evenodd",
1199
+ d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
1200
+ fill: "#FF990A",
1201
+ fillRule: "evenodd"
1202
+ }
1203
+ )));
1204
+ var GoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ import_react8.default.createElement(
1205
+ "path",
1354
1206
  {
1355
- fill: "none",
1356
- height: "16",
1357
- viewBox: "0 0 16 16",
1358
- width: "16",
1359
- xmlns: "http://www.w3.org/2000/svg"
1360
- },
1361
- /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ import_react8.default.createElement(
1362
- "path",
1363
- {
1364
- clipRule: "evenodd",
1365
- d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
1366
- fill: "currentColor",
1367
- fillRule: "evenodd"
1368
- }
1369
- ))
1370
- );
1371
- var VeryBadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
1372
- "svg",
1207
+ clipRule: "evenodd",
1208
+ d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
1209
+ fill: "currentColor",
1210
+ fillRule: "evenodd"
1211
+ }
1212
+ )));
1213
+ var BadEmoji = () => /* @__PURE__ */ import_react8.default.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ import_react8.default.createElement(
1214
+ "path",
1373
1215
  {
1374
- fill: "none",
1375
- height: "16",
1376
- viewBox: "0 0 16 16",
1377
- width: "16",
1378
- xmlns: "http://www.w3.org/2000/svg"
1379
- },
1380
- /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ import_react8.default.createElement(
1381
- "path",
1382
- {
1383
- d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
1384
- fill: "#0070F3"
1385
- }
1386
- ), /* @__PURE__ */ import_react8.default.createElement(
1387
- "path",
1388
- {
1389
- clipRule: "evenodd",
1390
- d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
1391
- fill: "currentColor",
1392
- fillRule: "evenodd"
1393
- }
1394
- ))
1395
- );
1216
+ clipRule: "evenodd",
1217
+ d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
1218
+ fill: "currentColor",
1219
+ fillRule: "evenodd"
1220
+ }
1221
+ )));
1222
+ var VeryBadEmoji = () => /* @__PURE__ */ import_react8.default.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react8.default.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ import_react8.default.createElement(
1223
+ "path",
1224
+ {
1225
+ d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
1226
+ fill: "#0070F3"
1227
+ }
1228
+ ), /* @__PURE__ */ import_react8.default.createElement(
1229
+ "path",
1230
+ {
1231
+ clipRule: "evenodd",
1232
+ d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
1233
+ fill: "currentColor",
1234
+ fillRule: "evenodd"
1235
+ }
1236
+ )));
1396
1237
 
1397
1238
  // icons/InputIcons.tsx
1398
1239
  var import_react9 = __toESM(require("react"));
@@ -1706,9 +1547,7 @@ var FeedbackForm = (props) => {
1706
1547
  return /* @__PURE__ */ import_react13.default.createElement(
1707
1548
  Card,
1708
1549
  {
1709
- className: cn(
1710
- props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""
1711
- ),
1550
+ className: cn(props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""),
1712
1551
  style: props.cardless ? { boxShadow: "none" } : void 0
1713
1552
  },
1714
1553
  /* @__PURE__ */ import_react13.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ import_react13.default.createElement(