@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
@@ -17,10 +17,10 @@ import {
17
17
  TabsList,
18
18
  TabsTrigger,
19
19
  Textarea
20
- } from "../chunk-GBLWUEYN.mjs";
20
+ } from "../chunk-ULRL4WI6.mjs";
21
21
  import {
22
22
  getHotkeyHandler
23
- } from "../chunk-WL7C2A5D.mjs";
23
+ } from "../chunk-WQR4XZGL.mjs";
24
24
  import {
25
25
  BadEmoji,
26
26
  Button,
@@ -44,8 +44,8 @@ import {
44
44
  VeryBadEmoji,
45
45
  VeryGoodEmoji,
46
46
  cn
47
- } from "../chunk-6SJUUJOV.mjs";
48
- import "../chunk-2LUXOXAL.mjs";
47
+ } from "../chunk-KDGJZPWK.mjs";
48
+ import "../chunk-5SQBJRWE.mjs";
49
49
 
50
50
  // blocks/auth/AuthButtons.tsx
51
51
  import React from "react";
@@ -673,7 +673,7 @@ var RegisterForm = ({
673
673
  );
674
674
  }
675
675
  },
676
- registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React3.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-mb-4" }, /* @__PURE__ */ React3.createElement(TabsList, { className: "hawa-w-full" }, registerTypes.map((registerType) => /* @__PURE__ */ React3.createElement(TabsTrigger, { value: registerType.value }, registerType.label)))),
676
+ registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React3.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-mb-4" }, /* @__PURE__ */ React3.createElement(TabsList, { className: "hawa-w-full" }, registerTypes.map((registerType, k) => /* @__PURE__ */ React3.createElement(TabsTrigger, { key: k, value: registerType.value }, registerType.label)))),
677
677
  /* @__PURE__ */ React3.createElement(
678
678
  TabsContent,
679
679
  {
@@ -1075,14 +1075,7 @@ var AppLanding = ({ texts, ...props }) => {
1075
1075
  handleEmail: props.handleEmail,
1076
1076
  handlePhone: props.handlePhone
1077
1077
  }
1078
- ), props.allowRegister && /* @__PURE__ */ React4.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React4.createElement(
1079
- "span",
1080
- {
1081
- onClick: props.handleRouteToRegister,
1082
- className: "clickable-link"
1083
- },
1084
- texts == null ? void 0 : texts.createAccount
1085
- )))));
1078
+ ), props.allowRegister && /* @__PURE__ */ React4.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React4.createElement("span", { onClick: props.handleRouteToRegister, className: "clickable-link" }, texts == null ? void 0 : texts.createAccount)))));
1086
1079
  };
1087
1080
 
1088
1081
  // blocks/auth/CheckEmail.tsx
@@ -1111,11 +1104,7 @@ import React6 from "react";
1111
1104
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
1112
1105
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
1113
1106
  import * as z3 from "zod";
1114
- var NewPasswordForm = ({
1115
- texts,
1116
- isLoading,
1117
- ...props
1118
- }) => {
1107
+ var NewPasswordForm = ({ texts, isLoading, ...props }) => {
1119
1108
  var _a, _b, _c, _d, _e, _f, _g, _h;
1120
1109
  const formSchema = z3.object({
1121
1110
  password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
@@ -1137,9 +1126,7 @@ var NewPasswordForm = ({
1137
1126
  if (props.handleNewPassword) {
1138
1127
  return props.handleNewPassword(e);
1139
1128
  } else {
1140
- console.log(
1141
- "Form is submitted but handleSubmission prop is missing"
1142
- );
1129
+ console.log("Form is submitted but handleSubmission prop is missing");
1143
1130
  }
1144
1131
  })
1145
1132
  },
@@ -1193,14 +1180,7 @@ var NewPasswordForm = ({
1193
1180
  );
1194
1181
  }
1195
1182
  }
1196
- )), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React6.createElement(
1197
- "span",
1198
- {
1199
- className: "clickable-link",
1200
- onClick: props.handleRouteToRegister
1201
- },
1202
- (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
1203
- )))
1183
+ )), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React6.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register")))
1204
1184
  ));
1205
1185
  };
1206
1186
 
@@ -1266,22 +1246,7 @@ var ResetPasswordForm = ({
1266
1246
  }
1267
1247
  }
1268
1248
  )),
1269
- /* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(
1270
- Button,
1271
- {
1272
- type: "submit",
1273
- className: "hawa-w-full",
1274
- isLoading
1275
- },
1276
- ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
1277
- ), allowRegister && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React7.createElement(
1278
- "span",
1279
- {
1280
- className: "clickable-link",
1281
- onClick: props.handleRouteToRegister
1282
- },
1283
- (_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
1284
- )))
1249
+ /* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(Button, { type: "submit", className: "hawa-w-full", isLoading }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React7.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register")))
1285
1250
  )) : /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
1286
1251
  };
1287
1252
 
@@ -1329,7 +1294,7 @@ var CodeConfirmation = ({ codeLength = 6, ...props }) => {
1329
1294
  }
1330
1295
  };
1331
1296
  }, []);
1332
- return /* @__PURE__ */ React8.createElement(Card, null, /* @__PURE__ */ React8.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React8.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React8.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React8.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ React8.createElement("span", null, props.identifier))), /* @__PURE__ */ React8.createElement(
1297
+ return /* @__PURE__ */ React8.createElement(Card, null, /* @__PURE__ */ React8.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React8.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React8.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-muted-foreground hawa-flex hawa-flex-row" }, /* @__PURE__ */ React8.createElement("span", null, `${(_d = props.texts) == null ? void 0 : _d.weSentCode} ` || `We've sent a code to `, /* @__PURE__ */ React8.createElement("span", { dir: "ltr" }, props.identifier)))), /* @__PURE__ */ React8.createElement(
1333
1298
  "form",
1334
1299
  {
1335
1300
  noValidate: true,
@@ -1423,19 +1388,13 @@ var UserReferralSource = ({
1423
1388
  return /* @__PURE__ */ React9.createElement(
1424
1389
  "div",
1425
1390
  {
1426
- className: cn(
1427
- "hawa-transition-all",
1428
- closed ? "hawa-opacity-0" : "hawa-opacity-100"
1429
- ),
1391
+ className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
1430
1392
  ref: popUpRef
1431
1393
  },
1432
1394
  /* @__PURE__ */ React9.createElement(
1433
1395
  Card,
1434
1396
  {
1435
- className: cn(
1436
- "hawa-fixed hawa-bottom-4 hawa-p-0 ",
1437
- boxPosition[position]
1438
- ),
1397
+ className: cn("hawa-fixed hawa-bottom-4 hawa-p-0", boxPosition[position]),
1439
1398
  dir: props.direction
1440
1399
  },
1441
1400
  /* @__PURE__ */ React9.createElement(
@@ -1444,7 +1403,7 @@ var UserReferralSource = ({
1444
1403
  type: "button",
1445
1404
  className: cn(
1446
1405
  props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
1447
- "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"
1406
+ "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"
1448
1407
  ),
1449
1408
  "data-dismiss-target": "#toast-default",
1450
1409
  "aria-label": "Close",
@@ -1496,7 +1455,7 @@ var UserReferralSource = ({
1496
1455
  )
1497
1456
  },
1498
1457
  /* @__PURE__ */ React9.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
1499
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ React9.createElement(
1458
+ /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, /* @__PURE__ */ React9.createElement(
1500
1459
  Controller6,
1501
1460
  {
1502
1461
  control,
@@ -1548,10 +1507,7 @@ var UserReferralSource = ({
1548
1507
 
1549
1508
  // blocks/feedback/FeedbackRating.tsx
1550
1509
  import React10, { useEffect as useEffect2, useRef as useRef2, useState as useState5 } from "react";
1551
- var FeedbackRating = ({
1552
- position = "bottom-right",
1553
- ...props
1554
- }) => {
1510
+ var FeedbackRating = ({ position = "bottom-right", ...props }) => {
1555
1511
  const [closed, setClosed] = useState5(false);
1556
1512
  const [answered, setAnswered] = useState5(false);
1557
1513
  const [clickedOption, setClickedOption] = useState5(null);
@@ -1641,9 +1597,7 @@ var FeedbackRating = ({
1641
1597
  }, 4800);
1642
1598
  setTimeout(() => {
1643
1599
  var _a, _b;
1644
- (_b = popUpRef.current) == null ? void 0 : _b.removeChild(
1645
- (_a = popUpRef.current) == null ? void 0 : _a.children[0]
1646
- );
1600
+ (_b = popUpRef.current) == null ? void 0 : _b.removeChild((_a = popUpRef.current) == null ? void 0 : _a.children[0]);
1647
1601
  clearTimeout(timeoutDestroy);
1648
1602
  }, 5300);
1649
1603
  },
@@ -1793,9 +1747,7 @@ var FeedbackForm = (props) => {
1793
1747
  return /* @__PURE__ */ React12.createElement(
1794
1748
  Card,
1795
1749
  {
1796
- className: cn(
1797
- props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""
1798
- ),
1750
+ className: cn(props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""),
1799
1751
  style: props.cardless ? { boxShadow: "none" } : void 0
1800
1752
  },
1801
1753
  /* @__PURE__ */ React12.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React12.createElement(
@@ -1968,10 +1920,7 @@ var LeadGenerator = ({ texts, submitHandler }) => {
1968
1920
 
1969
1921
  // blocks/misc/Announcement.tsx
1970
1922
  import React17 from "react";
1971
- var Announcement = ({
1972
- onActionClick,
1973
- ...props
1974
- }) => {
1923
+ var Announcement = ({ onActionClick, ...props }) => {
1975
1924
  return /* @__PURE__ */ React17.createElement(Card, null, /* @__PURE__ */ React17.createElement(
1976
1925
  CardContent,
1977
1926
  {
@@ -1979,14 +1928,7 @@ var Announcement = ({
1979
1928
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
1980
1929
  },
1981
1930
  /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ React17.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React17.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
1982
- /* @__PURE__ */ React17.createElement(
1983
- Button,
1984
- {
1985
- onClick: () => onActionClick(),
1986
- className: "hawa-whitespace-nowrap"
1987
- },
1988
- props.actionText
1989
- )
1931
+ /* @__PURE__ */ React17.createElement(Button, { onClick: () => onActionClick(), className: "hawa-whitespace-nowrap" }, props.actionText)
1990
1932
  ));
1991
1933
  };
1992
1934
 
@@ -2032,25 +1974,22 @@ var ContactForm = ({
2032
1974
  }) => {
2033
1975
  var _a, _b, _c, _d, _e;
2034
1976
  const customFieldsSchema = z8.object({
2035
- ...customFields == null ? void 0 : customFields.reduce(
2036
- (acc, curr) => {
2037
- switch (curr.type) {
2038
- case "text":
2039
- acc[curr.name] = z8.string().optional().default("");
2040
- break;
2041
- case "number":
2042
- acc[curr.name] = z8.string().optional().default("");
2043
- break;
2044
- case "select":
2045
- acc[curr.name] = z8.string().optional().default("");
2046
- break;
2047
- default:
2048
- break;
2049
- }
2050
- return acc;
2051
- },
2052
- {}
2053
- )
1977
+ ...customFields == null ? void 0 : customFields.reduce((acc, curr) => {
1978
+ switch (curr.type) {
1979
+ case "text":
1980
+ acc[curr.name] = z8.string().optional().default("");
1981
+ break;
1982
+ case "number":
1983
+ acc[curr.name] = z8.string().optional().default("");
1984
+ break;
1985
+ case "select":
1986
+ acc[curr.name] = z8.string().optional().default("");
1987
+ break;
1988
+ default:
1989
+ break;
1990
+ }
1991
+ return acc;
1992
+ }, {})
2054
1993
  });
2055
1994
  const contactFormSchema = z8.object({
2056
1995
  name: z8.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
@@ -2120,13 +2059,10 @@ var ContactForm = ({
2120
2059
  /* @__PURE__ */ React20.createElement(
2121
2060
  "div",
2122
2061
  {
2123
- className: cn(
2124
- "hawa-flex hawa-items-start hawa-justify-start hawa-gap-2",
2125
- {
2126
- "hawa-flex-row": size === "default",
2127
- "hawa-flex-col": size === "sm"
2128
- }
2129
- )
2062
+ className: cn("hawa-flex hawa-items-start hawa-justify-start hawa-gap-2", {
2063
+ "hawa-flex-row": size === "default",
2064
+ "hawa-flex-col": size === "sm"
2065
+ })
2130
2066
  },
2131
2067
  /* @__PURE__ */ React20.createElement(
2132
2068
  Controller9,
@@ -2224,9 +2160,7 @@ var ContactForm = ({
2224
2160
  placeholder: texts == null ? void 0 : texts.message.placeholder,
2225
2161
  className: "hawa-min-h-20",
2226
2162
  ...field,
2227
- onKeyDown: getHotkeyHandler([
2228
- ["mod+enter", () => SubmitForm(getValues())]
2229
- ])
2163
+ onKeyDown: getHotkeyHandler([["mod+enter", () => SubmitForm(getValues())]])
2230
2164
  },
2231
2165
  classNames: { textarea: "hawa-min-h-40 hawa-h-full" },
2232
2166
  helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
@@ -2235,14 +2169,7 @@ var ContactForm = ({
2235
2169
  }
2236
2170
  }
2237
2171
  ),
2238
- /* @__PURE__ */ React20.createElement(
2239
- Button,
2240
- {
2241
- type: "submit",
2242
- className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
2243
- },
2244
- (texts == null ? void 0 : texts.submit) || "Submit"
2245
- )
2172
+ /* @__PURE__ */ React20.createElement(Button, { type: "submit", className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton) }, (texts == null ? void 0 : texts.submit) || "Submit")
2246
2173
  ))
2247
2174
  );
2248
2175
  };
@@ -2291,10 +2218,7 @@ var ActionCard = (props) => {
2291
2218
 
2292
2219
  // blocks/cards/AdCard.tsx
2293
2220
  import React22, { useState as useState8, useEffect as useEffect3, useRef as useRef3 } from "react";
2294
- var AdCard = ({
2295
- orientation = "vertical",
2296
- ...props
2297
- }) => {
2221
+ var AdCard = ({ orientation = "vertical", ...props }) => {
2298
2222
  const adRef = useRef3(null);
2299
2223
  const [closed, setClosed] = useState8(false);
2300
2224
  let duration = 0;
@@ -2323,43 +2247,34 @@ var AdCard = ({
2323
2247
  horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
2324
2248
  vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
2325
2249
  };
2326
- return /* @__PURE__ */ React22.createElement("div", { ref: adRef }, /* @__PURE__ */ React22.createElement(
2327
- "div",
2250
+ return /* @__PURE__ */ React22.createElement("div", { ref: adRef }, /* @__PURE__ */ React22.createElement("div", { className: cn(cardStyles[orientation], props.className), onClick: props.handleClick }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start" }, /* @__PURE__ */ React22.createElement(
2251
+ "img",
2328
2252
  {
2329
- className: cn(cardStyles[orientation], props.className),
2330
- onClick: props.handleClick
2331
- },
2332
- /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start" }, /* @__PURE__ */ React22.createElement(
2333
- "img",
2334
- {
2335
- src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
2336
- className: imageStyles[orientation]
2337
- }
2338
- )),
2339
- /* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React22.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
2340
- props.canHide && /* @__PURE__ */ React22.createElement(
2341
- "span",
2342
- {
2343
- onClick: (e) => {
2344
- e.stopPropagation();
2345
- if (props.canHide) {
2346
- setClosed(true);
2347
- setTimeout(() => {
2348
- if (adRef.current) {
2349
- adRef.current.removeChild(adRef.current.children[0]);
2350
- }
2351
- }, 200);
2352
- } else {
2353
- if (props.handleCantHide) {
2354
- props.handleCantHide();
2253
+ src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
2254
+ className: imageStyles[orientation]
2255
+ }
2256
+ )), /* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React22.createElement("div", { className: "hawa-text-[12px]" }, props.description)), props.canHide && /* @__PURE__ */ React22.createElement(
2257
+ "span",
2258
+ {
2259
+ onClick: (e) => {
2260
+ e.stopPropagation();
2261
+ if (props.canHide) {
2262
+ setClosed(true);
2263
+ setTimeout(() => {
2264
+ if (adRef.current) {
2265
+ adRef.current.removeChild(adRef.current.children[0]);
2355
2266
  }
2267
+ }, 200);
2268
+ } else {
2269
+ if (props.handleCantHide) {
2270
+ props.handleCantHide();
2356
2271
  }
2357
- },
2358
- className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
2272
+ }
2359
2273
  },
2360
- "Hide"
2361
- )
2362
- ));
2274
+ className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
2275
+ },
2276
+ "Hide"
2277
+ )));
2363
2278
  };
2364
2279
 
2365
2280
  // blocks/cards/PricingCard.tsx
@@ -2378,13 +2293,7 @@ var PricingCard = ({
2378
2293
  medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background",
2379
2294
  large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background"
2380
2295
  };
2381
- return /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React23.createElement(
2382
- Skeleton,
2383
- {
2384
- className: cn(cardSizes[size], "hawa-h-[200px]"),
2385
- fade: "bottom"
2386
- }
2387
- ) : /* @__PURE__ */ React23.createElement(
2296
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React23.createElement(Skeleton, { className: cn(cardSizes[size], "hawa-h-[200px]"), fade: "bottom" }) : /* @__PURE__ */ React23.createElement(
2388
2297
  Card,
2389
2298
  {
2390
2299
  dir: direction,
@@ -2439,48 +2348,26 @@ var PricingCard = ({
2439
2348
  clipRule: "evenodd"
2440
2349
  }
2441
2350
  )
2442
- ) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React23.createElement(
2443
- Chip,
2444
- {
2445
- label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
2446
- color: "oceanic",
2447
- size: "small"
2448
- }
2449
- ))),
2450
- feature.hint && /* @__PURE__ */ React23.createElement(
2451
- Tooltip,
2351
+ ) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React23.createElement(Chip, { label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "", color: "oceanic", size: "small" }))),
2352
+ feature.hint && /* @__PURE__ */ React23.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React23.createElement(
2353
+ "svg",
2452
2354
  {
2453
- content: feature.hint,
2454
- side: feature.hintSide
2355
+ xmlns: "http://www.w3.org/2000/svg",
2356
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
2357
+ viewBox: "0 0 24 24",
2358
+ fill: "none",
2359
+ stroke: "currentColor",
2360
+ strokeWidth: "2",
2361
+ strokeLinecap: "round",
2362
+ strokeLinejoin: "round"
2455
2363
  },
2456
- /* @__PURE__ */ React23.createElement(
2457
- "svg",
2458
- {
2459
- xmlns: "http://www.w3.org/2000/svg",
2460
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
2461
- viewBox: "0 0 24 24",
2462
- fill: "none",
2463
- stroke: "currentColor",
2464
- strokeWidth: "2",
2465
- strokeLinecap: "round",
2466
- strokeLinejoin: "round"
2467
- },
2468
- /* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
2469
- /* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
2470
- /* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
2471
- )
2472
- )
2364
+ /* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
2365
+ /* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
2366
+ /* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
2367
+ ))
2473
2368
  );
2474
2369
  })),
2475
- /* @__PURE__ */ React23.createElement(
2476
- Button,
2477
- {
2478
- onClick: props.onPlanClicked,
2479
- disabled: currentPlan,
2480
- className: "hawa-w-full"
2481
- },
2482
- (_i = props.texts) == null ? void 0 : _i.buttonText
2483
- )
2370
+ /* @__PURE__ */ React23.createElement(Button, { onClick: props.onPlanClicked, disabled: currentPlan, className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.buttonText)
2484
2371
  ))
2485
2372
  ));
2486
2373
  };
@@ -2567,25 +2454,16 @@ var ItemCard = ({
2567
2454
  DropdownMenu,
2568
2455
  {
2569
2456
  items: headerActions,
2570
- trigger: /* @__PURE__ */ React24.createElement(
2571
- Button,
2457
+ trigger: /* @__PURE__ */ React24.createElement(Button, { variant: "ghost", size: "smallIcon", onClick: handleOpenActionHeader }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"), /* @__PURE__ */ React24.createElement(
2458
+ "svg",
2572
2459
  {
2573
- variant: "ghost",
2574
- size: "smallIcon",
2575
- onClick: handleOpenActionHeader
2460
+ className: "hawa-h-5 hawa-w-5",
2461
+ "aria-hidden": "true",
2462
+ fill: "currentColor",
2463
+ viewBox: "0 0 20 20"
2576
2464
  },
2577
- /* @__PURE__ */ React24.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
2578
- /* @__PURE__ */ React24.createElement(
2579
- "svg",
2580
- {
2581
- className: "hawa-h-5 hawa-w-5",
2582
- "aria-hidden": "true",
2583
- fill: "currentColor",
2584
- viewBox: "0 0 20 20"
2585
- },
2586
- /* @__PURE__ */ React24.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
2587
- )
2588
- )
2465
+ /* @__PURE__ */ React24.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
2466
+ ))
2589
2467
  }
2590
2468
  ))), /* @__PURE__ */ React24.createElement("div", { className: "hawa-mx-2" }, header && /* @__PURE__ */ React24.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight" }, header), content && /* @__PURE__ */ React24.createElement("span", { className: "hawa-w-full hawa-font-normal" }, content)), actions || counts ? /* @__PURE__ */ React24.createElement(
2591
2469
  "div",
@@ -2682,11 +2560,7 @@ var PricingPlans = ({
2682
2560
  import React27 from "react";
2683
2561
  var ComparingPlans = (props) => {
2684
2562
  const uniqueFeatures = Array.from(
2685
- new Set(
2686
- props.plans.flatMap(
2687
- (plan) => plan.features.map((feature) => feature.text)
2688
- )
2689
- )
2563
+ new Set(props.plans.flatMap((plan) => plan.features.map((feature) => feature.text)))
2690
2564
  );
2691
2565
  return /* @__PURE__ */ React27.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React27.createElement(
2692
2566
  Radio,
@@ -2756,9 +2630,7 @@ var ComparingPlans = (props) => {
2756
2630
  )
2757
2631
  },
2758
2632
  /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
2759
- (plan) => plan.features.some(
2760
- (feature) => feature.text === featureText && feature.hint
2761
- )
2633
+ (plan) => plan.features.some((feature) => feature.text === featureText && feature.hint)
2762
2634
  ) && /* @__PURE__ */ React27.createElement(
2763
2635
  Tooltip,
2764
2636
  {
@@ -2766,13 +2638,9 @@ var ComparingPlans = (props) => {
2766
2638
  content: (_b = (_a = props.plans.find(
2767
2639
  (plan) => {
2768
2640
  var _a2;
2769
- return (_a2 = plan.features.find(
2770
- (feature) => feature.text === featureText
2771
- )) == null ? void 0 : _a2.hint;
2641
+ return (_a2 = plan.features.find((feature) => feature.text === featureText)) == null ? void 0 : _a2.hint;
2772
2642
  }
2773
- )) == null ? void 0 : _a.features.find(
2774
- (feature) => feature.text === featureText
2775
- )) == null ? void 0 : _b.hint
2643
+ )) == null ? void 0 : _a.features.find((feature) => feature.text === featureText)) == null ? void 0 : _b.hint
2776
2644
  },
2777
2645
  /* @__PURE__ */ React27.createElement(
2778
2646
  "svg",
@@ -2787,9 +2655,7 @@ var ComparingPlans = (props) => {
2787
2655
  /* @__PURE__ */ React27.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
2788
2656
  )
2789
2657
  ), props.plans.some(
2790
- (plan) => plan.features.some(
2791
- (feature) => feature.text === featureText && feature.soon
2792
- )
2658
+ (plan) => plan.features.some((feature) => feature.text === featureText && feature.soon)
2793
2659
  ) && /* @__PURE__ */ React27.createElement(
2794
2660
  Chip,
2795
2661
  {
@@ -2801,9 +2667,7 @@ var ComparingPlans = (props) => {
2801
2667
  }
2802
2668
  )),
2803
2669
  props.plans.map((plan, planIndex) => {
2804
- const feature = plan.features.find(
2805
- (f) => f.text === featureText
2806
- );
2670
+ const feature = plan.features.find((f) => f.text === featureText);
2807
2671
  return /* @__PURE__ */ React27.createElement(
2808
2672
  "div",
2809
2673
  {
@@ -2817,32 +2681,25 @@ var ComparingPlans = (props) => {
2817
2681
  })
2818
2682
  ), props.showButtons && /* @__PURE__ */ React27.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
2819
2683
  var _a;
2820
- return /* @__PURE__ */ React27.createElement(
2821
- "div",
2684
+ return /* @__PURE__ */ React27.createElement("div", { key: i, className: "hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React27.createElement(
2685
+ Button,
2822
2686
  {
2823
- key: i,
2824
- className: "hawa-flex hawa-items-center hawa-justify-center"
2825
- },
2826
- /* @__PURE__ */ React27.createElement(
2827
- Button,
2828
- {
2829
- className: "hawa-w-full hawa-max-w-xs",
2830
- onClick: () => {
2831
- var _a2, _b;
2832
- if (props.onPlanClicked) {
2833
- let clickedData = {
2834
- // plan: plan.id,
2835
- currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
2836
- cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
2837
- ...plan
2838
- };
2839
- props.onPlanClicked(clickedData);
2840
- }
2687
+ className: "hawa-w-full hawa-max-w-xs",
2688
+ onClick: () => {
2689
+ var _a2, _b;
2690
+ if (props.onPlanClicked) {
2691
+ let clickedData = {
2692
+ // plan: plan.id,
2693
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
2694
+ cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
2695
+ ...plan
2696
+ };
2697
+ props.onPlanClicked(clickedData);
2841
2698
  }
2842
- },
2843
- ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
2844
- )
2845
- );
2699
+ }
2700
+ },
2701
+ ((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
2702
+ ));
2846
2703
  })));
2847
2704
  };
2848
2705
 
@@ -2871,41 +2728,25 @@ var HorizontalPricing = (props) => {
2871
2728
  options: props.billingCycles,
2872
2729
  defaultValue: props.currentCycle
2873
2730
  }
2874
- )), data.map((d, i) => /* @__PURE__ */ React28.createElement(
2875
- "label",
2731
+ )), data.map((d, i) => /* @__PURE__ */ React28.createElement("label", { key: i, htmlFor: d.title, className: "", onClick: () => setSelectedCard(d.title) }, /* @__PURE__ */ React28.createElement(
2732
+ "input",
2733
+ {
2734
+ type: "radio",
2735
+ name: "radio",
2736
+ id: d.title,
2737
+ className: "hawa-peer hawa-appearance-none"
2738
+ }
2739
+ ), /* @__PURE__ */ React28.createElement(
2740
+ "div",
2876
2741
  {
2877
- key: i,
2878
- htmlFor: d.title,
2879
- className: "",
2880
- onClick: () => setSelectedCard(d.title)
2742
+ className: cn(
2743
+ selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
2744
+ "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
2745
+ )
2881
2746
  },
2882
- /* @__PURE__ */ React28.createElement(
2883
- "input",
2884
- {
2885
- type: "radio",
2886
- name: "radio",
2887
- id: d.title,
2888
- className: "hawa-peer hawa-appearance-none"
2889
- }
2890
- ),
2891
- /* @__PURE__ */ React28.createElement(
2892
- "div",
2893
- {
2894
- className: cn(
2895
- selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
2896
- "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
2897
- )
2898
- },
2899
- /* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React28.createElement(CheckIcons, null), /* @__PURE__ */ React28.createElement(
2900
- CardText,
2901
- {
2902
- title: "Enterprise",
2903
- subtitle: "For startups and new businesses"
2904
- }
2905
- )),
2906
- /* @__PURE__ */ React28.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
2907
- )
2908
- ))));
2747
+ /* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React28.createElement(CheckIcons, null), /* @__PURE__ */ React28.createElement(CardText, { title: "Enterprise", subtitle: "For startups and new businesses" })),
2748
+ /* @__PURE__ */ React28.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
2749
+ )))));
2909
2750
  };
2910
2751
  var CheckIcons = () => /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(
2911
2752
  "svg",