@sikka/hawa 0.26.27 → 0.26.29

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 (364) hide show
  1. package/dist/tooltip/index.js +1 -0
  2. package/dist/tooltip/index.js.map +1 -0
  3. package/dist/tooltip/index.mjs +1 -0
  4. package/dist/tooltip/index.mjs.map +1 -0
  5. package/package.json +1 -1
  6. package/dist/Chip-H5BnuDdx.d.ts +0 -36
  7. package/dist/Chip-hr2gRBJ-.d.mts +0 -36
  8. package/dist/DropdownMenu-EUL-D3I3.d.mts +0 -95
  9. package/dist/DropdownMenu-SPisqCzV.d.ts +0 -95
  10. package/dist/Radio-K1WGpnGA.d.ts +0 -75
  11. package/dist/Radio-hsrLKNxE.d.mts +0 -75
  12. package/dist/Toast-VBd4UvlM.d.mts +0 -26
  13. package/dist/Toast-pOd4uGZz.d.ts +0 -26
  14. package/dist/accordion/index.d.mts +0 -51
  15. package/dist/accordion/index.d.ts +0 -51
  16. package/dist/accordion/index.js +0 -271
  17. package/dist/accordion/index.mjs +0 -227
  18. package/dist/alert/index.d.mts +0 -29
  19. package/dist/alert/index.d.ts +0 -29
  20. package/dist/alert/index.js +0 -442
  21. package/dist/alert/index.mjs +0 -402
  22. package/dist/appLayout/index.d.mts +0 -126
  23. package/dist/appLayout/index.d.ts +0 -126
  24. package/dist/appLayout/index.js +0 -1326
  25. package/dist/appLayout/index.mjs +0 -1286
  26. package/dist/appMenubar/index.d.mts +0 -33
  27. package/dist/appMenubar/index.d.ts +0 -33
  28. package/dist/appMenubar/index.js +0 -281
  29. package/dist/appMenubar/index.mjs +0 -224
  30. package/dist/appStores/index.d.mts +0 -8
  31. package/dist/appStores/index.d.ts +0 -8
  32. package/dist/appStores/index.js +0 -75
  33. package/dist/appStores/index.mjs +0 -38
  34. package/dist/appTabs/index.d.mts +0 -18
  35. package/dist/appTabs/index.d.ts +0 -18
  36. package/dist/appTabs/index.js +0 -92
  37. package/dist/appTabs/index.mjs +0 -50
  38. package/dist/appTopbar/index.d.mts +0 -44
  39. package/dist/appTopbar/index.d.ts +0 -44
  40. package/dist/appTopbar/index.js +0 -483
  41. package/dist/appTopbar/index.mjs +0 -441
  42. package/dist/avatar/index.d.mts +0 -16
  43. package/dist/avatar/index.d.ts +0 -16
  44. package/dist/avatar/index.js +0 -162
  45. package/dist/avatar/index.mjs +0 -122
  46. package/dist/backToTop/index.d.mts +0 -15
  47. package/dist/backToTop/index.d.ts +0 -15
  48. package/dist/backToTop/index.js +0 -398
  49. package/dist/backToTop/index.mjs +0 -358
  50. package/dist/badge/index.d.mts +0 -13
  51. package/dist/badge/index.d.ts +0 -13
  52. package/dist/badge/index.js +0 -127
  53. package/dist/badge/index.mjs +0 -84
  54. package/dist/blocks/auth/index.d.mts +0 -202
  55. package/dist/blocks/auth/index.d.ts +0 -202
  56. package/dist/blocks/auth/index.js +0 -4197
  57. package/dist/blocks/auth/index.mjs +0 -3389
  58. package/dist/blocks/feedback/index.d.mts +0 -74
  59. package/dist/blocks/feedback/index.d.ts +0 -74
  60. package/dist/blocks/feedback/index.js +0 -1544
  61. package/dist/blocks/feedback/index.mjs +0 -558
  62. package/dist/blocks/index.d.mts +0 -480
  63. package/dist/blocks/index.d.ts +0 -480
  64. package/dist/blocks/index.js +0 -6700
  65. package/dist/blocks/index.mjs +0 -2550
  66. package/dist/blocks/misc/index.d.mts +0 -90
  67. package/dist/blocks/misc/index.d.ts +0 -90
  68. package/dist/blocks/misc/index.js +0 -1186
  69. package/dist/blocks/misc/index.mjs +0 -387
  70. package/dist/blocks/pricing/index.d.mts +0 -93
  71. package/dist/blocks/pricing/index.d.ts +0 -93
  72. package/dist/blocks/pricing/index.js +0 -1528
  73. package/dist/blocks/pricing/index.mjs +0 -677
  74. package/dist/breadcrumb/index.d.mts +0 -14
  75. package/dist/breadcrumb/index.d.ts +0 -14
  76. package/dist/breadcrumb/index.js +0 -63
  77. package/dist/breadcrumb/index.mjs +0 -26
  78. package/dist/button/index.d.mts +0 -16
  79. package/dist/button/index.d.ts +0 -16
  80. package/dist/button/index.js +0 -301
  81. package/dist/button/index.mjs +0 -260
  82. package/dist/card/index.d.mts +0 -17
  83. package/dist/card/index.d.ts +0 -17
  84. package/dist/card/index.js +0 -139
  85. package/dist/card/index.mjs +0 -92
  86. package/dist/carousel/index.d.mts +0 -15
  87. package/dist/carousel/index.d.ts +0 -15
  88. package/dist/carousel/index.js +0 -193
  89. package/dist/carousel/index.mjs +0 -151
  90. package/dist/checkbox/index.d.mts +0 -20
  91. package/dist/checkbox/index.d.ts +0 -20
  92. package/dist/checkbox/index.js +0 -184
  93. package/dist/checkbox/index.mjs +0 -142
  94. package/dist/chip/index.d.mts +0 -36
  95. package/dist/chip/index.d.ts +0 -36
  96. package/dist/chip/index.js +0 -129
  97. package/dist/chip/index.mjs +0 -87
  98. package/dist/chunk-2R7F2GL7.mjs +0 -82
  99. package/dist/chunk-4EGKGSGY.mjs +0 -129
  100. package/dist/chunk-5YXZXYLH.mjs +0 -67
  101. package/dist/chunk-65TG6EVD.mjs +0 -264
  102. package/dist/chunk-D22AALLE.mjs +0 -22
  103. package/dist/chunk-D36MPDGE.mjs +0 -476
  104. package/dist/chunk-F3DQJHTG.mjs +0 -3113
  105. package/dist/chunk-FQ6WVEHW.mjs +0 -151
  106. package/dist/chunk-GVJYACGA.mjs +0 -189
  107. package/dist/chunk-JNUGOUYJ.mjs +0 -154
  108. package/dist/chunk-KMCIHW76.mjs +0 -150
  109. package/dist/chunk-MQUAGP7K.mjs +0 -1098
  110. package/dist/chunk-NMS5LCSQ.mjs +0 -195
  111. package/dist/chunk-OY66MBXP.mjs +0 -163
  112. package/dist/chunk-R4HAAT6R.mjs +0 -131
  113. package/dist/chunk-SJ2Z6ZOG.mjs +0 -442
  114. package/dist/chunk-TGZRVRLP.mjs +0 -107
  115. package/dist/chunk-TWNGV3RE.mjs +0 -10
  116. package/dist/chunk-WUHNPHD5.mjs +0 -0
  117. package/dist/chunk-ZFXKCRJC.mjs +0 -11
  118. package/dist/chunk-ZS3FB3PO.mjs +0 -12
  119. package/dist/codeBlock/index.d.mts +0 -24
  120. package/dist/codeBlock/index.d.ts +0 -24
  121. package/dist/codeBlock/index.js +0 -517
  122. package/dist/codeBlock/index.mjs +0 -432
  123. package/dist/collapsible/index.d.mts +0 -8
  124. package/dist/collapsible/index.d.ts +0 -8
  125. package/dist/collapsible/index.js +0 -49
  126. package/dist/collapsible/index.mjs +0 -12
  127. package/dist/colorPicker/index.d.mts +0 -34
  128. package/dist/colorPicker/index.d.ts +0 -34
  129. package/dist/colorPicker/index.js +0 -276
  130. package/dist/colorPicker/index.mjs +0 -170
  131. package/dist/combobox/index.d.mts +0 -41
  132. package/dist/combobox/index.d.ts +0 -41
  133. package/dist/combobox/index.js +0 -749
  134. package/dist/combobox/index.mjs +0 -295
  135. package/dist/command/index.d.mts +0 -48
  136. package/dist/command/index.d.ts +0 -48
  137. package/dist/command/index.js +0 -485
  138. package/dist/command/index.mjs +0 -22
  139. package/dist/commonTypes-2IGtJ5cq.d.mts +0 -3
  140. package/dist/commonTypes-2IGtJ5cq.d.ts +0 -3
  141. package/dist/commonTypes-2k6FnHw5.d.mts +0 -4
  142. package/dist/commonTypes-2k6FnHw5.d.ts +0 -4
  143. package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
  144. package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
  145. package/dist/commonTypes-CKtkuNFH.d.mts +0 -11
  146. package/dist/commonTypes-CKtkuNFH.d.ts +0 -11
  147. package/dist/commonTypes-GhKAraJw.d.mts +0 -4
  148. package/dist/commonTypes-GhKAraJw.d.ts +0 -4
  149. package/dist/commonTypes-MxCJyrHv.d.mts +0 -8
  150. package/dist/commonTypes-MxCJyrHv.d.ts +0 -8
  151. package/dist/commonTypes-PBumfOBg.d.mts +0 -3
  152. package/dist/commonTypes-PBumfOBg.d.ts +0 -3
  153. package/dist/commonTypes-WPhcN3Vr.d.mts +0 -5
  154. package/dist/commonTypes-WPhcN3Vr.d.ts +0 -5
  155. package/dist/commonTypes-_11epZYh.d.mts +0 -4
  156. package/dist/commonTypes-_11epZYh.d.ts +0 -4
  157. package/dist/commonTypes-ko_NGEoT.d.mts +0 -3
  158. package/dist/commonTypes-ko_NGEoT.d.ts +0 -3
  159. package/dist/copyrights/index.d.mts +0 -17
  160. package/dist/copyrights/index.d.ts +0 -17
  161. package/dist/copyrights/index.js +0 -45
  162. package/dist/copyrights/index.mjs +0 -8
  163. package/dist/count/index.d.mts +0 -11
  164. package/dist/count/index.d.ts +0 -11
  165. package/dist/count/index.js +0 -45
  166. package/dist/count/index.mjs +0 -8
  167. package/dist/dataTable/index.d.mts +0 -41
  168. package/dist/dataTable/index.d.ts +0 -41
  169. package/dist/dataTable/index.js +0 -1313
  170. package/dist/dataTable/index.mjs +0 -1281
  171. package/dist/destroyableCard/index.d.mts +0 -12
  172. package/dist/destroyableCard/index.d.ts +0 -12
  173. package/dist/destroyableCard/index.js +0 -203
  174. package/dist/destroyableCard/index.mjs +0 -163
  175. package/dist/dialog/index.d.mts +0 -57
  176. package/dist/dialog/index.d.ts +0 -57
  177. package/dist/dialog/index.js +0 -368
  178. package/dist/dialog/index.mjs +0 -314
  179. package/dist/docsLayout/index.d.mts +0 -37
  180. package/dist/docsLayout/index.d.ts +0 -37
  181. package/dist/docsLayout/index.js +0 -927
  182. package/dist/docsLayout/index.mjs +0 -887
  183. package/dist/docsSidebar/index.d.mts +0 -11
  184. package/dist/docsSidebar/index.d.ts +0 -11
  185. package/dist/docsSidebar/index.js +0 -111
  186. package/dist/docsSidebar/index.mjs +0 -69
  187. package/dist/dropdownMenu/index.d.mts +0 -96
  188. package/dist/dropdownMenu/index.d.ts +0 -96
  189. package/dist/dropdownMenu/index.js +0 -420
  190. package/dist/dropdownMenu/index.mjs +0 -362
  191. package/dist/elements/index.d.mts +0 -788
  192. package/dist/elements/index.d.ts +0 -788
  193. package/dist/elements/index.js +0 -7832
  194. package/dist/elements/index.mjs +0 -3415
  195. package/dist/fileDropzone/index.d.mts +0 -37
  196. package/dist/fileDropzone/index.d.ts +0 -37
  197. package/dist/fileDropzone/index.js +0 -665
  198. package/dist/fileDropzone/index.mjs +0 -625
  199. package/dist/fileUploader/index.d.mts +0 -5
  200. package/dist/fileUploader/index.d.ts +0 -5
  201. package/dist/fileUploader/index.js +0 -62
  202. package/dist/fileUploader/index.mjs +0 -25
  203. package/dist/glow/index.d.mts +0 -16
  204. package/dist/glow/index.d.ts +0 -16
  205. package/dist/glow/index.js +0 -155
  206. package/dist/glow/index.mjs +0 -117
  207. package/dist/hooks/index.d.mts +0 -108
  208. package/dist/hooks/index.d.ts +0 -108
  209. package/dist/hooks/index.js +0 -459
  210. package/dist/hooks/index.mjs +0 -255
  211. package/dist/index.d.mts +0 -1932
  212. package/dist/index.d.ts +0 -1932
  213. package/dist/index.js +0 -12123
  214. package/dist/index.mjs +0 -11908
  215. package/dist/input/index.d.mts +0 -43
  216. package/dist/input/index.d.ts +0 -43
  217. package/dist/input/index.js +0 -293
  218. package/dist/input/index.mjs +0 -158
  219. package/dist/interfaceSettings/index.d.mts +0 -18
  220. package/dist/interfaceSettings/index.d.ts +0 -18
  221. package/dist/interfaceSettings/index.js +0 -420
  222. package/dist/interfaceSettings/index.mjs +0 -283
  223. package/dist/label/index.d.mts +0 -13
  224. package/dist/label/index.d.ts +0 -13
  225. package/dist/label/index.js +0 -142
  226. package/dist/label/index.mjs +0 -102
  227. package/dist/layout/index.d.mts +0 -256
  228. package/dist/layout/index.d.ts +0 -256
  229. package/dist/layout/index.js +0 -2627
  230. package/dist/layout/index.mjs +0 -1393
  231. package/dist/loading/index.d.mts +0 -15
  232. package/dist/loading/index.d.ts +0 -15
  233. package/dist/loading/index.js +0 -225
  234. package/dist/loading/index.mjs +0 -183
  235. package/dist/logos/index.d.mts +0 -27
  236. package/dist/logos/index.d.ts +0 -27
  237. package/dist/logos/index.js +0 -244
  238. package/dist/logos/index.mjs +0 -207
  239. package/dist/navbar/index.d.mts +0 -17
  240. package/dist/navbar/index.d.ts +0 -17
  241. package/dist/navbar/index.js +0 -166
  242. package/dist/navbar/index.mjs +0 -126
  243. package/dist/navigationMenu/index.d.mts +0 -39
  244. package/dist/navigationMenu/index.d.ts +0 -39
  245. package/dist/navigationMenu/index.js +0 -221
  246. package/dist/navigationMenu/index.mjs +0 -169
  247. package/dist/pagination/index.d.mts +0 -11
  248. package/dist/pagination/index.d.ts +0 -11
  249. package/dist/pagination/index.js +0 -160
  250. package/dist/pagination/index.mjs +0 -118
  251. package/dist/passwordInput/index.d.mts +0 -13
  252. package/dist/passwordInput/index.d.ts +0 -13
  253. package/dist/passwordInput/index.js +0 -577
  254. package/dist/passwordInput/index.mjs +0 -534
  255. package/dist/phoneInput/index.d.mts +0 -23
  256. package/dist/phoneInput/index.d.ts +0 -23
  257. package/dist/phoneInput/index.js +0 -2085
  258. package/dist/phoneInput/index.mjs +0 -2045
  259. package/dist/pinInput/index.d.mts +0 -20
  260. package/dist/pinInput/index.d.ts +0 -20
  261. package/dist/pinInput/index.js +0 -131
  262. package/dist/pinInput/index.mjs +0 -89
  263. package/dist/popover/index.d.mts +0 -23
  264. package/dist/popover/index.d.ts +0 -23
  265. package/dist/popover/index.js +0 -112
  266. package/dist/popover/index.mjs +0 -68
  267. package/dist/progress/index.d.mts +0 -6
  268. package/dist/progress/index.d.ts +0 -6
  269. package/dist/progress/index.js +0 -71
  270. package/dist/progress/index.mjs +0 -29
  271. package/dist/progressCircle/index.d.mts +0 -16
  272. package/dist/progressCircle/index.d.ts +0 -16
  273. package/dist/progressCircle/index.js +0 -159
  274. package/dist/progressCircle/index.mjs +0 -117
  275. package/dist/radio/index.d.mts +0 -39
  276. package/dist/radio/index.d.ts +0 -39
  277. package/dist/radio/index.js +0 -331
  278. package/dist/radio/index.mjs +0 -291
  279. package/dist/scrollArea/index.d.mts +0 -10
  280. package/dist/scrollArea/index.d.ts +0 -10
  281. package/dist/scrollArea/index.js +0 -90
  282. package/dist/scrollArea/index.mjs +0 -47
  283. package/dist/scrollIndicator/index.d.mts +0 -9
  284. package/dist/scrollIndicator/index.d.ts +0 -9
  285. package/dist/scrollIndicator/index.js +0 -80
  286. package/dist/scrollIndicator/index.mjs +0 -43
  287. package/dist/select/index.d.mts +0 -50
  288. package/dist/select/index.d.ts +0 -50
  289. package/dist/select/index.js +0 -325
  290. package/dist/select/index.mjs +0 -285
  291. package/dist/separator/index.d.mts +0 -10
  292. package/dist/separator/index.d.ts +0 -10
  293. package/dist/separator/index.js +0 -66
  294. package/dist/separator/index.mjs +0 -24
  295. package/dist/sheet/index.d.mts +0 -30
  296. package/dist/sheet/index.d.ts +0 -30
  297. package/dist/sheet/index.js +0 -201
  298. package/dist/sheet/index.mjs +0 -150
  299. package/dist/sidebar/index.d.mts +0 -48
  300. package/dist/sidebar/index.d.ts +0 -48
  301. package/dist/sidebar/index.js +0 -341
  302. package/dist/sidebar/index.mjs +0 -298
  303. package/dist/signature/index.d.mts +0 -27
  304. package/dist/signature/index.d.ts +0 -27
  305. package/dist/signature/index.js +0 -261
  306. package/dist/signature/index.mjs +0 -219
  307. package/dist/simpleTable/index.d.mts +0 -30
  308. package/dist/simpleTable/index.d.ts +0 -30
  309. package/dist/simpleTable/index.js +0 -253
  310. package/dist/simpleTable/index.mjs +0 -217
  311. package/dist/skeleton/index.d.mts +0 -10
  312. package/dist/skeleton/index.d.ts +0 -10
  313. package/dist/skeleton/index.js +0 -75
  314. package/dist/skeleton/index.mjs +0 -33
  315. package/dist/slider/index.d.mts +0 -6
  316. package/dist/slider/index.d.ts +0 -6
  317. package/dist/slider/index.js +0 -66
  318. package/dist/slider/index.mjs +0 -24
  319. package/dist/sortButton/index.d.mts +0 -10
  320. package/dist/sortButton/index.d.ts +0 -10
  321. package/dist/sortButton/index.js +0 -336
  322. package/dist/sortButton/index.mjs +0 -42
  323. package/dist/splitButton/index.d.mts +0 -52
  324. package/dist/splitButton/index.d.ts +0 -52
  325. package/dist/splitButton/index.js +0 -692
  326. package/dist/splitButton/index.mjs +0 -400
  327. package/dist/stats/index.d.mts +0 -19
  328. package/dist/stats/index.d.ts +0 -19
  329. package/dist/stats/index.js +0 -191
  330. package/dist/stats/index.mjs +0 -154
  331. package/dist/stopPropagationWrapper/index.d.mts +0 -5
  332. package/dist/stopPropagationWrapper/index.d.ts +0 -5
  333. package/dist/stopPropagationWrapper/index.js +0 -48
  334. package/dist/stopPropagationWrapper/index.mjs +0 -11
  335. package/dist/switch/index.d.mts +0 -12
  336. package/dist/switch/index.d.ts +0 -12
  337. package/dist/switch/index.js +0 -125
  338. package/dist/switch/index.mjs +0 -83
  339. package/dist/table/index.d.mts +0 -21
  340. package/dist/table/index.d.ts +0 -21
  341. package/dist/table/index.js +0 -172
  342. package/dist/table/index.mjs +0 -123
  343. package/dist/tabs/index.d.mts +0 -33
  344. package/dist/tabs/index.d.ts +0 -33
  345. package/dist/tabs/index.js +0 -200
  346. package/dist/tabs/index.mjs +0 -157
  347. package/dist/textTypes-559CaoOV.d.mts +0 -88
  348. package/dist/textTypes-559CaoOV.d.ts +0 -88
  349. package/dist/textarea/index.d.mts +0 -27
  350. package/dist/textarea/index.d.ts +0 -27
  351. package/dist/textarea/index.js +0 -229
  352. package/dist/textarea/index.mjs +0 -189
  353. package/dist/toast/index.d.mts +0 -26
  354. package/dist/toast/index.d.ts +0 -26
  355. package/dist/toast/index.js +0 -197
  356. package/dist/toast/index.mjs +0 -19
  357. package/dist/toaster/index.d.mts +0 -9
  358. package/dist/toaster/index.d.ts +0 -9
  359. package/dist/toaster/index.js +0 -350
  360. package/dist/toaster/index.mjs +0 -181
  361. package/dist/types/index.d.mts +0 -115
  362. package/dist/types/index.d.ts +0 -115
  363. package/dist/types/index.js +0 -18
  364. package/dist/types/index.mjs +0 -0
@@ -1,1186 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // blocks/misc/index.ts
31
- var misc_exports = {};
32
- __export(misc_exports, {
33
- Announcement: () => Announcement,
34
- ContactForm: () => ContactForm,
35
- EmptyState: () => EmptyState,
36
- LeadGenerator: () => LeadGenerator,
37
- LegalTexts: () => LegalTexts,
38
- NoPermission: () => NoPermission,
39
- NotFound: () => NotFound,
40
- Testimonial: () => Testimonial
41
- });
42
- module.exports = __toCommonJS(misc_exports);
43
-
44
- // blocks/misc/LegalTexts.tsx
45
- var import_react2 = __toESM(require("react"));
46
-
47
- // elements/scrollArea/ScrollArea.tsx
48
- var React = __toESM(require("react"));
49
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
50
-
51
- // util/index.ts
52
- var import_clsx = require("clsx");
53
- var import_tailwind_merge = require("tailwind-merge");
54
- function cn(...inputs) {
55
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
56
- }
57
-
58
- // elements/scrollArea/ScrollArea.tsx
59
- var ScrollArea = React.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
60
- ScrollAreaPrimitive.Root,
61
- {
62
- ref,
63
- className: cn("hawa-relative hawa-overflow-hidden", className),
64
- ...props
65
- },
66
- /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
67
- /* @__PURE__ */ React.createElement(ScrollBar, { orientation }),
68
- /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Corner, null)
69
- ));
70
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
71
- var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
72
- ScrollAreaPrimitive.ScrollAreaScrollbar,
73
- {
74
- ref,
75
- orientation,
76
- className: cn(
77
- "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
78
- orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
79
- orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
80
- className
81
- ),
82
- ...props
83
- },
84
- /* @__PURE__ */ React.createElement(
85
- ScrollAreaPrimitive.ScrollAreaThumb,
86
- {
87
- className: cn(
88
- "hawa-relative hawa-rounded-full hawa-bg-border",
89
- orientation === "vertical" && "hawa-flex-1"
90
- )
91
- }
92
- )
93
- ));
94
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
95
-
96
- // elements/tabs/Tabs.tsx
97
- var React3 = __toESM(require("react"));
98
- var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
99
-
100
- // elements/chip/Chip.tsx
101
- var import_react = __toESM(require("react"));
102
- var Chip = import_react.default.forwardRef(
103
- ({
104
- label,
105
- size = "normal",
106
- icon,
107
- color,
108
- radius = "inherit",
109
- dotType,
110
- ...rest
111
- }, ref) => {
112
- let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
113
- let radiusStyles = {
114
- inherit: " hawa-rounded",
115
- full: "hawa-rounded-full",
116
- none: "hawa-rounded-none"
117
- };
118
- let sizeStyles = {
119
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
120
- normal: "hawa-h-fit hawa-text-xs",
121
- large: "hawa-text-base"
122
- };
123
- let dotStyles = {
124
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
125
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
126
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
127
- };
128
- let dotTypeStyles = {
129
- available: "hawa-bg-green-500",
130
- unavailable: "hawa-bg-red-500"
131
- };
132
- let colorStyles = {
133
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
134
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
135
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
136
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
137
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
138
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
139
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
140
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
141
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
142
- };
143
- if (label) {
144
- return /* @__PURE__ */ import_react.default.createElement(
145
- "span",
146
- {
147
- ...rest,
148
- ref,
149
- className: cn(
150
- defaultStyles,
151
- sizeStyles[size],
152
- radiusStyles[radius],
153
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
154
- )
155
- },
156
- dotType && /* @__PURE__ */ import_react.default.createElement(
157
- "span",
158
- {
159
- className: cn(dotStyles[size], dotTypeStyles[dotType])
160
- }
161
- ),
162
- icon && icon,
163
- label
164
- );
165
- } else {
166
- return /* @__PURE__ */ import_react.default.createElement(
167
- "span",
168
- {
169
- ...rest,
170
- ref,
171
- className: cn(
172
- "hawa-h-2 hawa-w-2 hawa-rounded-full",
173
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
174
- )
175
- }
176
- );
177
- }
178
- }
179
- );
180
-
181
- // elements/tabs/Tabs.tsx
182
- var TabsContext = React3.createContext({ orientation: "vertical" });
183
- var Tabs = React3.forwardRef(
184
- ({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React3.createElement(
185
- TabsPrimitive.Root,
186
- {
187
- ref,
188
- className: cn(
189
- "hawa-flex hawa-gap-2",
190
- orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
191
- className
192
- ),
193
- ...props
194
- },
195
- /* @__PURE__ */ React3.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
196
- )
197
- );
198
- Tabs.displayName = TabsPrimitive.Root.displayName;
199
- var TabsList = React3.forwardRef(({ className, ...props }, ref) => {
200
- const { orientation } = React3.useContext(TabsContext);
201
- return /* @__PURE__ */ React3.createElement(
202
- TabsPrimitive.List,
203
- {
204
- ref,
205
- className: cn(
206
- "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
207
- orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
208
- className
209
- ),
210
- ...props
211
- }
212
- );
213
- });
214
- TabsList.displayName = TabsPrimitive.List.displayName;
215
- var TabsTrigger = React3.forwardRef(({ className, chipProps, ...props }, ref) => {
216
- return /* @__PURE__ */ React3.createElement(
217
- TabsPrimitive.Trigger,
218
- {
219
- ref,
220
- className: cn(
221
- "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10",
222
- className
223
- ),
224
- ...props
225
- },
226
- props.children,
227
- chipProps && /* @__PURE__ */ React3.createElement(Chip, { ...chipProps })
228
- );
229
- });
230
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
231
- var TabsContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
232
- TabsPrimitive.Content,
233
- {
234
- ref,
235
- className: cn(
236
- "hawa-ring-offset-hawa-background hawa-w-full focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
237
- className
238
- ),
239
- ...props
240
- }
241
- ));
242
- TabsContent.displayName = TabsPrimitive.Content.displayName;
243
-
244
- // blocks/misc/LegalTexts.tsx
245
- var LegalTexts = ({ tabs, ...props }) => {
246
- return /* @__PURE__ */ import_react2.default.createElement(
247
- Tabs,
248
- {
249
- value: props.activeTab,
250
- onValueChange: props.handleTabChange,
251
- defaultValue: props.defaultTab || tabs[0].value,
252
- dir: props.direction
253
- },
254
- /* @__PURE__ */ import_react2.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react2.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
255
- tabs.map((tab, index) => /* @__PURE__ */ import_react2.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react2.default.createElement(
256
- ScrollArea,
257
- {
258
- className: cn(
259
- "hawa-rounded hawa-border hawa-bg-muted hawa-p-4",
260
- props.scrollAreaClassName
261
- )
262
- },
263
- tab.content
264
- )))
265
- );
266
- };
267
-
268
- // blocks/misc/EmptyState.tsx
269
- var import_react4 = __toESM(require("react"));
270
-
271
- // elements/button/Button.tsx
272
- var React6 = __toESM(require("react"));
273
- var import_class_variance_authority = require("class-variance-authority");
274
-
275
- // elements/loading/Loading.tsx
276
- var import_react3 = __toESM(require("react"));
277
- var Loading = ({
278
- design = "spinner",
279
- size = "sm",
280
- themeMode = "light",
281
- color,
282
- ...props
283
- }) => {
284
- let sizeStyles = {
285
- button: "hawa-h-4 hawa-w-4",
286
- xs: "hawa-h-1 hawa-w-1",
287
- sm: "hawa-h-6 hawa-w-6",
288
- normal: "hawa-h-8 hawa-w-8",
289
- lg: "hawa-h-14 hawa-w-14",
290
- xl: "hawa-h-24 hawa-w-24"
291
- };
292
- let animationStyles = {
293
- pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
294
- bounce: "hawa-animate-bounce"
295
- };
296
- switch (design.split("-")[0]) {
297
- case "dots":
298
- return /* @__PURE__ */ import_react3.default.createElement(
299
- "div",
300
- {
301
- className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
302
- },
303
- /* @__PURE__ */ import_react3.default.createElement(
304
- "div",
305
- {
306
- className: cn(
307
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
308
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
309
- animationStyles[design.split("-")[1]],
310
- color ? color : "hawa-bg-primary"
311
- )
312
- }
313
- ),
314
- /* @__PURE__ */ import_react3.default.createElement(
315
- "div",
316
- {
317
- className: cn(
318
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
319
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
320
- animationStyles[design.split("-")[1]],
321
- color ? color : "hawa-bg-primary"
322
- )
323
- }
324
- ),
325
- /* @__PURE__ */ import_react3.default.createElement(
326
- "div",
327
- {
328
- className: cn(
329
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
330
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
331
- animationStyles[design.split("-")[1]],
332
- color ? color : "hawa-bg-primary"
333
- )
334
- }
335
- )
336
- );
337
- case "square":
338
- return /* @__PURE__ */ import_react3.default.createElement(
339
- "svg",
340
- {
341
- className: cn("squircle-container", sizeStyles[size]),
342
- viewBox: "0 0 35 35",
343
- height: "35",
344
- width: "35"
345
- },
346
- /* @__PURE__ */ import_react3.default.createElement(
347
- "rect",
348
- {
349
- className: "squircle-track",
350
- x: "2.5",
351
- y: "2.5",
352
- fill: "none",
353
- strokeWidth: "5px",
354
- width: "32.5",
355
- height: "32.5"
356
- }
357
- ),
358
- /* @__PURE__ */ import_react3.default.createElement(
359
- "rect",
360
- {
361
- className: "square-car",
362
- x: "2.5",
363
- y: "2.5",
364
- fill: "none",
365
- strokeWidth: "5px",
366
- width: "32.5",
367
- height: "32.5",
368
- pathLength: "100"
369
- }
370
- )
371
- );
372
- case "squircle":
373
- return /* @__PURE__ */ import_react3.default.createElement(
374
- "svg",
375
- {
376
- className: cn("squircle-container", sizeStyles[size]),
377
- x: "0px",
378
- y: "0px",
379
- viewBox: "0 0 37 37",
380
- height: "37",
381
- width: "37",
382
- preserveAspectRatio: "xMidYMid meet"
383
- },
384
- /* @__PURE__ */ import_react3.default.createElement(
385
- "path",
386
- {
387
- className: "squircle-track",
388
- fill: "none",
389
- strokeWidth: "5",
390
- pathLength: "100",
391
- d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
392
- }
393
- ),
394
- /* @__PURE__ */ import_react3.default.createElement(
395
- "path",
396
- {
397
- className: "squircle-car",
398
- fill: "none",
399
- strokeWidth: "5",
400
- pathLength: "100",
401
- d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
402
- }
403
- )
404
- );
405
- case "progress":
406
- return /* @__PURE__ */ import_react3.default.createElement("div", { className: "progress-loading" });
407
- case "orbit":
408
- return /* @__PURE__ */ import_react3.default.createElement("div", { className: "orbit-container" });
409
- default:
410
- return /* @__PURE__ */ import_react3.default.createElement(
411
- "svg",
412
- {
413
- className: cn("circle-container", sizeStyles[size]),
414
- viewBox: "0 0 40 40",
415
- height: "40",
416
- width: "40"
417
- },
418
- /* @__PURE__ */ import_react3.default.createElement(
419
- "circle",
420
- {
421
- className: cn("circle-track", {
422
- "hawa-stroke-primary-foreground": themeMode === "dark",
423
- "hawa-stroke-primary": themeMode === "light"
424
- }),
425
- cx: "20",
426
- cy: "20",
427
- r: "17.5",
428
- pathLength: "100",
429
- strokeWidth: "5px",
430
- fill: "none"
431
- }
432
- ),
433
- /* @__PURE__ */ import_react3.default.createElement(
434
- "circle",
435
- {
436
- className: cn("circle-car", {
437
- "hawa-stroke-primary-foreground": themeMode === "dark",
438
- "hawa-stroke-primary": themeMode === "light"
439
- }),
440
- cx: "20",
441
- cy: "20",
442
- r: "17.5",
443
- pathLength: "100",
444
- strokeWidth: "5px",
445
- fill: "none"
446
- }
447
- )
448
- );
449
- }
450
- };
451
-
452
- // elements/button/Button.tsx
453
- var buttonVariants = (0, import_class_variance_authority.cva)(
454
- "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
455
- {
456
- variants: {
457
- variant: {
458
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
459
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
460
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
461
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
462
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
463
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
464
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
465
- combobox: "hawa-bg-background hawa-border",
466
- neoBrutalism: "neo-brutalism"
467
- // "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
468
- },
469
- size: {
470
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
471
- heightless: "hawa-px-4 hawa-py-4",
472
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
473
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
474
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
475
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
476
- icon: "hawa-h-10 hawa-w-10",
477
- smallIcon: "hawa-h-7 hawa-w-7"
478
- }
479
- },
480
- defaultVariants: {
481
- variant: "default",
482
- size: "default"
483
- }
484
- }
485
- );
486
- var Button = React6.forwardRef(
487
- ({
488
- className,
489
- variant,
490
- size,
491
- asChild = false,
492
- centered = true,
493
- isLoading,
494
- children,
495
- ...props
496
- }, ref) => {
497
- const Comp = "button";
498
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
499
- return /* @__PURE__ */ React6.createElement(
500
- Comp,
501
- {
502
- className: cn(
503
- buttonVariants({ variant, size, className }),
504
- centered && "hawa-justify-center"
505
- // "hawa-bg-red-500"
506
- ),
507
- ref,
508
- ...props
509
- },
510
- isLoading ? /* @__PURE__ */ React6.createElement(
511
- Loading,
512
- {
513
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
514
- themeMode: variant === "outline" ? "light" : "dark",
515
- color: loadingColor,
516
- size: size === "sm" || size === "xs" ? "xs" : "button"
517
- }
518
- ) : children
519
- );
520
- }
521
- );
522
- Button.displayName = "Button";
523
-
524
- // elements/card/Card.tsx
525
- var React7 = __toESM(require("react"));
526
- var Card = React7.forwardRef(
527
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
528
- let variantStyles = {
529
- default: cn(
530
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
531
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
532
- ),
533
- neoBrutalism: cn(
534
- "neo-brutalism",
535
- // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
536
- 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"
537
- )
538
- };
539
- return /* @__PURE__ */ React7.createElement(
540
- "div",
541
- {
542
- ref,
543
- className: cn(className, variantStyles[variant]),
544
- ...props
545
- }
546
- );
547
- }
548
- );
549
- var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
550
- "div",
551
- {
552
- ref,
553
- className: cn(
554
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
555
- className
556
- ),
557
- ...props
558
- }
559
- ));
560
- var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
561
- "h3",
562
- {
563
- ref,
564
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
565
- ...props
566
- }
567
- ));
568
- var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
569
- "p",
570
- {
571
- ref,
572
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
573
- ...props
574
- }
575
- ));
576
- var CardContent = React7.forwardRef(
577
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
578
- "div",
579
- {
580
- ref,
581
- className: cn(
582
- noPadding ? "hawa-p-0" : "hawa-p-6",
583
- headless ? "hawa-pt-6" : "hawa-pt-0",
584
- className
585
- ),
586
- ...props
587
- }
588
- )
589
- );
590
- var CardFooter = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
591
- "div",
592
- {
593
- ref,
594
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
595
- ...props
596
- }
597
- ));
598
- CardDescription.displayName = "CardDescription";
599
- CardContent.displayName = "CardContent";
600
- CardHeader.displayName = "CardHeader";
601
- CardFooter.displayName = "CardFooter";
602
- CardTitle.displayName = "CardTitle";
603
- Card.displayName = "Card";
604
-
605
- // blocks/misc/EmptyState.tsx
606
- var EmptyState = ({ texts, onActionClick }) => {
607
- return /* @__PURE__ */ import_react4.default.createElement(Card, null, /* @__PURE__ */ import_react4.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react4.default.createElement(
608
- "svg",
609
- {
610
- stroke: "currentColor",
611
- fill: "currentColor",
612
- strokeWidth: "0",
613
- viewBox: "0 0 512 512",
614
- height: "0.35em",
615
- width: "0.35em"
616
- },
617
- /* @__PURE__ */ import_react4.default.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
618
- )), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react4.default.createElement(CardFooter, null, /* @__PURE__ */ import_react4.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
619
- };
620
-
621
- // blocks/misc/Testimonial.tsx
622
- var import_react5 = __toESM(require("react"));
623
- var Testimonial = () => {
624
- return /* @__PURE__ */ import_react5.default.createElement(Card, null, /* @__PURE__ */ import_react5.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react5.default.createElement("div", null, /* @__PURE__ */ import_react5.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react5.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react5.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react5.default.createElement(
625
- "path",
626
- {
627
- d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
628
- fill: "#FFFFFF"
629
- }
630
- ), /* @__PURE__ */ import_react5.default.createElement(
631
- "path",
632
- {
633
- d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
634
- fill: "#FFFFFF"
635
- }
636
- )), /* @__PURE__ */ import_react5.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react5.default.createElement("div", null, /* @__PURE__ */ import_react5.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react5.default.createElement("div", null, " Chief Information Security Officer")))));
637
- };
638
-
639
- // blocks/misc/LeadGenerator.tsx
640
- var import_react9 = __toESM(require("react"));
641
- var import_react_hook_form = require("react-hook-form");
642
-
643
- // elements/input/Input.tsx
644
- var import_react8 = __toESM(require("react"));
645
-
646
- // elements/label/Label.tsx
647
- var React11 = __toESM(require("react"));
648
-
649
- // elements/tooltip/Tooltip.tsx
650
- var import_react6 = __toESM(require("react"));
651
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
652
- var TooltipContent = import_react6.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(
653
- TooltipPrimitive.Content,
654
- {
655
- ref,
656
- sideOffset,
657
- className: cn(
658
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
659
- className
660
- ),
661
- ...props
662
- }
663
- ));
664
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
665
- var TooltipArrow = import_react6.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
666
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
667
- var Tooltip = ({
668
- side,
669
- open,
670
- content,
671
- children,
672
- defaultOpen,
673
- onOpenChange,
674
- triggerProps,
675
- contentProps,
676
- providerProps,
677
- delayDuration = 300,
678
- ...props
679
- }) => {
680
- return /* @__PURE__ */ import_react6.default.createElement(
681
- TooltipPrimitive.TooltipProvider,
682
- {
683
- delayDuration,
684
- ...providerProps
685
- },
686
- /* @__PURE__ */ import_react6.default.createElement(
687
- TooltipPrimitive.Root,
688
- {
689
- open,
690
- defaultOpen,
691
- onOpenChange,
692
- ...props
693
- },
694
- /* @__PURE__ */ import_react6.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
695
- /* @__PURE__ */ import_react6.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
696
- )
697
- );
698
- };
699
-
700
- // elements/label/Label.tsx
701
- var Label = React11.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React11.createElement(
702
- "label",
703
- {
704
- ref,
705
- className: cn(
706
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
707
- className
708
- ),
709
- ...props
710
- },
711
- children,
712
- required && /* @__PURE__ */ React11.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
713
- ), hint && /* @__PURE__ */ React11.createElement(
714
- Tooltip,
715
- {
716
- content: hint,
717
- side: hintSide,
718
- triggerProps: {
719
- tabIndex: -1,
720
- onClick: (event) => event.preventDefault()
721
- }
722
- },
723
- /* @__PURE__ */ React11.createElement("div", null, /* @__PURE__ */ React11.createElement(
724
- "svg",
725
- {
726
- xmlns: "http://www.w3.org/2000/svg",
727
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
728
- viewBox: "0 0 24 24",
729
- fill: "none",
730
- stroke: "currentColor",
731
- strokeWidth: "2",
732
- strokeLinecap: "round",
733
- strokeLinejoin: "round"
734
- },
735
- /* @__PURE__ */ React11.createElement("circle", { cx: "12", cy: "12", r: "10" }),
736
- /* @__PURE__ */ React11.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
737
- /* @__PURE__ */ React11.createElement("path", { d: "M12 17h.01" })
738
- ))
739
- )));
740
- Label.displayName = "Label";
741
-
742
- // elements/skeleton/Skeleton.tsx
743
- var import_react7 = __toESM(require("react"));
744
- function Skeleton({
745
- className,
746
- content,
747
- animation = "pulse",
748
- ...props
749
- }) {
750
- const animationStyles = {
751
- none: "hawa-rounded hawa-bg-muted",
752
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
753
- shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
754
- };
755
- return /* @__PURE__ */ import_react7.default.createElement(
756
- "div",
757
- {
758
- className: cn(
759
- animationStyles[animation],
760
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
761
- className
762
- ),
763
- ...props
764
- },
765
- content && content
766
- );
767
- }
768
-
769
- // elements/input/Input.tsx
770
- var Input = (0, import_react8.forwardRef)(
771
- ({
772
- margin = "none",
773
- width = "full",
774
- preview = false,
775
- forceHideHelperText = false,
776
- labelProps,
777
- placeholder,
778
- showCount,
779
- inputProps,
780
- countPosition = "bottom",
781
- ...props
782
- }, ref) => {
783
- var _a;
784
- let marginStyles = {
785
- none: "hawa-mb-0",
786
- normal: "hawa-mb-3",
787
- large: "hawa-mb-5"
788
- };
789
- let widthStyles = {
790
- small: "hawa-w-full hawa-max-w-2xs",
791
- normal: "hawa-w-1/2",
792
- full: "hawa-w-full",
793
- auto: ""
794
- };
795
- let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
796
- let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
797
- return /* @__PURE__ */ import_react8.default.createElement(
798
- "div",
799
- {
800
- className: cn(
801
- defaultStyle,
802
- marginStyles[margin],
803
- widthStyles[width],
804
- props.containerClassName,
805
- "hawa-w-full hawa-gap-2"
806
- )
807
- },
808
- props.label && /* @__PURE__ */ import_react8.default.createElement(Label, { ...labelProps }, props.label),
809
- props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
810
- "div",
811
- {
812
- className: cn(
813
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
814
- preview ? "hawa-opacity-100" : "hawa-opacity-0"
815
- )
816
- }
817
- ), /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
818
- "div",
819
- {
820
- className: cn(
821
- "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
822
- (_a = props.endIconProps) == null ? void 0 : _a.className
823
- )
824
- },
825
- props.endIcon
826
- ), /* @__PURE__ */ import_react8.default.createElement(
827
- "input",
828
- {
829
- required: true,
830
- dir: props.dir,
831
- type: props.type,
832
- value: props.value,
833
- onChange: props.onChange,
834
- autoComplete: props.autoComplete,
835
- defaultValue: props.defaultValue,
836
- placeholder,
837
- disabled: props.disabled || preview,
838
- style: { height: 40 },
839
- ...inputProps,
840
- className: cn(
841
- defaultInputStyle,
842
- " focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 dark:hawa-text-white",
843
- {
844
- "hawa-pe-9": props.endIcon,
845
- "hawa-ps-9": props.startIcon,
846
- "hawa-pe-[60px]": countPosition === "center"
847
- },
848
- preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
849
- inputProps == null ? void 0 : inputProps.className
850
- )
851
- }
852
- )), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
853
- "p",
854
- {
855
- className: cn(
856
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
857
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
858
- )
859
- },
860
- props.helperText
861
- ), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
862
- "div",
863
- {
864
- className: cn(
865
- "hawa-absolute hawa-end-0 hawa-top-[47px] hawa-z-20 hawa-translate-y-1/2 hawa-rounded hawa-bg-background hawa-text-start hawa-text-xs hawa-text-helper-color hawa-drop-shadow-md hawa-transition-all",
866
- props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
867
- )
868
- },
869
- props.helperText
870
- ), showCount && /* @__PURE__ */ import_react8.default.createElement(
871
- "div",
872
- {
873
- className: cn(
874
- "hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
875
- {
876
- "hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
877
- "hawa-bottom-[62px] hawa-end-0": countPosition === "top",
878
- "hawa-end-2": countPosition === "center"
879
- }
880
- )
881
- },
882
- props.value ? String(props.value).length : 0,
883
- "/",
884
- props.maxLength
885
- )))
886
- );
887
- }
888
- );
889
-
890
- // blocks/misc/LeadGenerator.tsx
891
- var LeadGenerator = ({ texts, submitHandler }) => {
892
- var _a;
893
- const { handleSubmit, control, formState } = (0, import_react_hook_form.useForm)();
894
- const onSubmit = (data) => {
895
- if (submitHandler) {
896
- submitHandler(data.email);
897
- } else {
898
- console.log("handleNewsletterSub props was not provided");
899
- }
900
- };
901
- return /* @__PURE__ */ import_react9.default.createElement(Card, null, /* @__PURE__ */ import_react9.default.createElement(CardHeader, null, /* @__PURE__ */ import_react9.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react9.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react9.default.createElement(CardContent, null, /* @__PURE__ */ import_react9.default.createElement(
902
- "form",
903
- {
904
- noValidate: true,
905
- className: "hawa-flex hawa-flex-row hawa-gap-2",
906
- onSubmit: handleSubmit(onSubmit)
907
- },
908
- /* @__PURE__ */ import_react9.default.createElement(
909
- import_react_hook_form.Controller,
910
- {
911
- name: "email",
912
- control,
913
- rules: {
914
- required: true,
915
- pattern: {
916
- value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
917
- message: (texts == null ? void 0 : texts.invalidEmail) || "Invalid email address"
918
- }
919
- },
920
- defaultValue: "",
921
- render: ({ field }) => /* @__PURE__ */ import_react9.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
922
- }
923
- ),
924
- /* @__PURE__ */ import_react9.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
925
- )));
926
- };
927
-
928
- // blocks/misc/Announcement.tsx
929
- var import_react10 = __toESM(require("react"));
930
- var Announcement = ({
931
- onActionClick,
932
- ...props
933
- }) => {
934
- return /* @__PURE__ */ import_react10.default.createElement(Card, null, /* @__PURE__ */ import_react10.default.createElement(
935
- CardContent,
936
- {
937
- headless: true,
938
- className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
939
- },
940
- /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react10.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react10.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
941
- /* @__PURE__ */ import_react10.default.createElement(
942
- Button,
943
- {
944
- onClick: () => onActionClick(),
945
- className: "hawa-whitespace-nowrap"
946
- },
947
- props.actionText
948
- )
949
- ));
950
- };
951
-
952
- // blocks/misc/NotFound.tsx
953
- var import_react11 = __toESM(require("react"));
954
- var NotFound = ({ texts }) => {
955
- return /* @__PURE__ */ import_react11.default.createElement(Card, null, /* @__PURE__ */ import_react11.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react11.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react11.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
956
- };
957
-
958
- // blocks/misc/NoPermission.tsx
959
- var import_react12 = __toESM(require("react"));
960
- var NoPermission = ({ texts }) => {
961
- return /* @__PURE__ */ import_react12.default.createElement(Card, null, /* @__PURE__ */ import_react12.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react12.default.createElement(
962
- "svg",
963
- {
964
- stroke: "currentColor",
965
- fill: "currentColor",
966
- strokeWidth: "0",
967
- viewBox: "0 0 448 512",
968
- height: "0.35em",
969
- width: "0.35em"
970
- },
971
- /* @__PURE__ */ import_react12.default.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
972
- )), /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react12.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
973
- };
974
-
975
- // blocks/misc/ContactForm.tsx
976
- var import_react13 = __toESM(require("react"));
977
- var import_react_hook_form2 = require("react-hook-form");
978
- var import_zod = require("@hookform/resolvers/zod");
979
- var z = __toESM(require("zod"));
980
-
981
- // elements/textarea/Textarea.tsx
982
- var React18 = __toESM(require("react"));
983
- var Textarea = React18.forwardRef(
984
- ({
985
- className,
986
- classNames,
987
- labelProps,
988
- showCount,
989
- forceHideHelperText,
990
- textareaProps,
991
- countPosition = "bottom",
992
- isLoading,
993
- ...props
994
- }, ref) => {
995
- return /* @__PURE__ */ React18.createElement(
996
- "div",
997
- {
998
- className: cn(
999
- "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
1000
- !forceHideHelperText && "hawa-gap-2",
1001
- className
1002
- )
1003
- },
1004
- /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React18.createElement(
1005
- "div",
1006
- {
1007
- className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
1008
- },
1009
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1010
- "/",
1011
- textareaProps == null ? void 0 : textareaProps.maxLength
1012
- )),
1013
- isLoading ? /* @__PURE__ */ React18.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React18.createElement(
1014
- "textarea",
1015
- {
1016
- className: cn(
1017
- "hawa-flex hawa-min-h-[40px] hawa-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1018
- classNames == null ? void 0 : classNames.textarea
1019
- ),
1020
- ref,
1021
- ...textareaProps
1022
- }
1023
- ),
1024
- /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React18.createElement(
1025
- "p",
1026
- {
1027
- className: cn(
1028
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1029
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1030
- )
1031
- },
1032
- props.helperText
1033
- ), showCount && countPosition === "bottom" && /* @__PURE__ */ React18.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
1034
- );
1035
- }
1036
- );
1037
- Textarea.displayName = "Textarea";
1038
-
1039
- // blocks/misc/ContactForm.tsx
1040
- var ContactForm = ({
1041
- cardless,
1042
- size = "default",
1043
- texts,
1044
- formId,
1045
- formAutoComplete,
1046
- onSubmit
1047
- }) => {
1048
- var _a, _b, _c;
1049
- const contactFormSchema = z.object({
1050
- name: z.string({ required_error: texts == null ? void 0 : texts.name.required }).min(1, texts == null ? void 0 : texts.name.required).default(""),
1051
- email: z.string({ required_error: (_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required }).email({ message: (_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid }).default(""),
1052
- message: z.string({ required_error: texts == null ? void 0 : texts.message.required }).min(10, texts == null ? void 0 : texts.message.invalid).default("")
1053
- });
1054
- const {
1055
- control,
1056
- handleSubmit,
1057
- formState: { errors },
1058
- reset
1059
- } = (0, import_react_hook_form2.useForm)({
1060
- resolver: (0, import_zod.zodResolver)(contactFormSchema),
1061
- defaultValues: {
1062
- name: "",
1063
- email: "",
1064
- message: ""
1065
- }
1066
- });
1067
- const handleFormSubmit = (data) => {
1068
- if (onSubmit) {
1069
- onSubmit(data);
1070
- reset();
1071
- } else {
1072
- console.log("Form is submitted but onSubmit prop is missing");
1073
- }
1074
- };
1075
- let sizeStyle = {
1076
- sm: "hawa-max-w-sm",
1077
- default: "hawa-w-full"
1078
- };
1079
- return /* @__PURE__ */ import_react13.default.createElement(
1080
- Card,
1081
- {
1082
- className: cn(
1083
- // sizeStyle[size],
1084
- "hawa-w-full",
1085
- cardless && "hawa-border-none hawa-bg-transparent hawa-shadow-none hawa-drop-shadow-none"
1086
- ),
1087
- style: cardless ? { boxShadow: "none" } : void 0
1088
- },
1089
- /* @__PURE__ */ import_react13.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react13.default.createElement(
1090
- "form",
1091
- {
1092
- noValidate: true,
1093
- onSubmit: handleSubmit(handleFormSubmit),
1094
- className: "hawa-space-y-2",
1095
- id: formId,
1096
- autoComplete: formAutoComplete
1097
- },
1098
- /* @__PURE__ */ import_react13.default.createElement(
1099
- "div",
1100
- {
1101
- className: cn(
1102
- "hawa-flex hawa-items-start hawa-justify-start hawa-gap-2",
1103
- {
1104
- "hawa-flex-row": size === "default",
1105
- "hawa-flex-col": size === "sm"
1106
- }
1107
- )
1108
- },
1109
- /* @__PURE__ */ import_react13.default.createElement(
1110
- import_react_hook_form2.Controller,
1111
- {
1112
- control,
1113
- name: "name",
1114
- render: ({ field }) => {
1115
- var _a2;
1116
- return /* @__PURE__ */ import_react13.default.createElement(
1117
- Input,
1118
- {
1119
- label: texts == null ? void 0 : texts.name.label,
1120
- id: texts == null ? void 0 : texts.name.label,
1121
- ...field,
1122
- placeholder: texts == null ? void 0 : texts.name.placeholder,
1123
- helperText: (_a2 = errors.name) == null ? void 0 : _a2.message
1124
- }
1125
- );
1126
- }
1127
- }
1128
- ),
1129
- /* @__PURE__ */ import_react13.default.createElement(
1130
- import_react_hook_form2.Controller,
1131
- {
1132
- control,
1133
- name: "email",
1134
- render: ({ field }) => {
1135
- var _a2;
1136
- return /* @__PURE__ */ import_react13.default.createElement(
1137
- Input,
1138
- {
1139
- label: texts == null ? void 0 : texts.email.label,
1140
- id: texts == null ? void 0 : texts.email.label,
1141
- ...field,
1142
- placeholder: texts == null ? void 0 : texts.email.placeholder,
1143
- helperText: (_a2 = errors.email) == null ? void 0 : _a2.message
1144
- }
1145
- );
1146
- }
1147
- }
1148
- )
1149
- ),
1150
- /* @__PURE__ */ import_react13.default.createElement(
1151
- import_react_hook_form2.Controller,
1152
- {
1153
- control,
1154
- name: "message",
1155
- render: ({ field }) => {
1156
- var _a2;
1157
- return /* @__PURE__ */ import_react13.default.createElement(
1158
- Textarea,
1159
- {
1160
- label: texts == null ? void 0 : texts.message.label,
1161
- id: texts == null ? void 0 : texts.message.label,
1162
- textareaProps: {
1163
- placeholder: texts == null ? void 0 : texts.message.placeholder,
1164
- ...field
1165
- },
1166
- helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
1167
- }
1168
- );
1169
- }
1170
- }
1171
- ),
1172
- /* @__PURE__ */ import_react13.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
1173
- ))
1174
- );
1175
- };
1176
- // Annotate the CommonJS export names for ESM import in node:
1177
- 0 && (module.exports = {
1178
- Announcement,
1179
- ContactForm,
1180
- EmptyState,
1181
- LeadGenerator,
1182
- LegalTexts,
1183
- NoPermission,
1184
- NotFound,
1185
- Testimonial
1186
- });