@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
@@ -330,16 +330,7 @@ var import_tailwind_variants = require("tailwind-variants");
330
330
  // elements/chip/Chip.tsx
331
331
  var import_react20 = __toESM(require("react"));
332
332
  var Chip = import_react20.default.forwardRef(
333
- ({
334
- label,
335
- size = "normal",
336
- icon,
337
- color,
338
- radius = "inherit",
339
- dot,
340
- dotStatus = "none",
341
- ...rest
342
- }, ref) => {
333
+ ({ label, size = "normal", icon, color, radius = "inherit", dot, dotStatus = "none", ...rest }, ref) => {
343
334
  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 ";
344
335
  let radiusStyles = {
345
336
  inherit: " hawa-rounded",
@@ -386,12 +377,7 @@ var Chip = import_react20.default.forwardRef(
386
377
  rest.className
387
378
  )
388
379
  },
389
- dot && /* @__PURE__ */ import_react20.default.createElement(
390
- "span",
391
- {
392
- className: cn(dotStyles[size], dotStatusStyles[dotStatus])
393
- }
394
- ),
380
+ dot && /* @__PURE__ */ import_react20.default.createElement("span", { className: cn(dotStyles[size], dotStatusStyles[dotStatus]) }),
395
381
  icon && icon,
396
382
  label
397
383
  );
@@ -486,83 +472,75 @@ var Tabs = React11.forwardRef(
486
472
  /* @__PURE__ */ React11.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
487
473
  )
488
474
  );
489
- var TabsList = React11.forwardRef(({ className, classNames, ...props }, ref) => {
490
- const { orientation, variant, scrollable } = React11.useContext(TabsContext);
491
- const { width } = useViewportSize();
492
- if (scrollable && width < 768 && orientation === "horizontal") {
493
- return /* @__PURE__ */ React11.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React11.createElement(
494
- TabsPrimitive.List,
495
- {
496
- ref,
497
- className: cn(
498
- tabsListVariant({ variant, orientation }),
499
- "hawa-flex-row hawa-flex-nowrap",
500
- className
501
- ),
502
- ...props
503
- }
504
- ));
505
- } else {
506
- return /* @__PURE__ */ React11.createElement(
507
- TabsPrimitive.List,
508
- {
509
- ref,
510
- className: cn(
511
- tabsListVariant({ variant, orientation }),
512
- orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
513
- "hawa-flex-wrap",
514
- className
515
- ),
516
- ...props
517
- }
518
- );
519
- }
520
- });
521
- var TabsTrigger = React11.forwardRef(
522
- ({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
523
- const { orientation, variant } = React11.useContext(TabsContext);
524
- if (withPopover) {
525
- return /* @__PURE__ */ React11.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React11.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React11.createElement(
526
- TabsPrimitive.Trigger,
475
+ var TabsList = React11.forwardRef(
476
+ ({ className, classNames, ...props }, ref) => {
477
+ const { orientation, variant, scrollable } = React11.useContext(TabsContext);
478
+ const { width } = useViewportSize();
479
+ if (scrollable && width < 768 && orientation === "horizontal") {
480
+ return /* @__PURE__ */ React11.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React11.createElement(
481
+ TabsPrimitive.List,
527
482
  {
483
+ ref,
528
484
  className: cn(
529
- tabsTriggerVariant({ variant, orientation }),
530
- "hawa-relative",
485
+ tabsListVariant({ variant, orientation }),
486
+ "hawa-flex-row hawa-flex-nowrap",
531
487
  className
532
488
  ),
533
489
  ...props
534
- },
535
- props.children,
536
- chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
537
- )), /* @__PURE__ */ React11.createElement(
538
- Popover.Content,
539
- {
540
- onClick: onPopoverClick,
541
- asChild: true,
542
- className: cn(
543
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
544
- "hawa-arrow-default-top hawa-mt-2"
545
- )
546
- },
547
- /* @__PURE__ */ React11.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
490
+ }
548
491
  ));
549
492
  } else {
550
493
  return /* @__PURE__ */ React11.createElement(
551
- TabsPrimitive.Trigger,
494
+ TabsPrimitive.List,
552
495
  {
496
+ ref,
553
497
  className: cn(
554
- tabsTriggerVariant({ variant, orientation }),
555
- "hawa-relative",
498
+ tabsListVariant({ variant, orientation }),
499
+ orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
500
+ "hawa-flex-wrap",
556
501
  className
557
502
  ),
558
503
  ...props
559
- },
560
- props.children,
561
- chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
504
+ }
562
505
  );
563
506
  }
564
507
  }
565
508
  );
509
+ var TabsTrigger = React11.forwardRef(({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
510
+ const { orientation, variant } = React11.useContext(TabsContext);
511
+ if (withPopover) {
512
+ return /* @__PURE__ */ React11.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React11.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React11.createElement(
513
+ TabsPrimitive.Trigger,
514
+ {
515
+ className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
516
+ ...props
517
+ },
518
+ props.children,
519
+ chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
520
+ )), /* @__PURE__ */ React11.createElement(
521
+ Popover.Content,
522
+ {
523
+ onClick: onPopoverClick,
524
+ asChild: true,
525
+ className: cn(
526
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
527
+ "hawa-arrow-default-top hawa-mt-2"
528
+ )
529
+ },
530
+ /* @__PURE__ */ React11.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
531
+ ));
532
+ } else {
533
+ return /* @__PURE__ */ React11.createElement(
534
+ TabsPrimitive.Trigger,
535
+ {
536
+ className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
537
+ ...props
538
+ },
539
+ props.children,
540
+ chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
541
+ );
542
+ }
543
+ });
566
544
  var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
567
545
  TabsPrimitive.Content,
568
546
  {
@@ -612,9 +590,7 @@ var import_class_variance_authority = require("class-variance-authority");
612
590
 
613
591
  // elements/helperText/HelperText.tsx
614
592
  var import_react22 = __toESM(require("react"));
615
- var HelperText = ({
616
- helperText
617
- }) => /* @__PURE__ */ import_react22.default.createElement(
593
+ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react22.default.createElement(
618
594
  "p",
619
595
  {
620
596
  className: cn(
@@ -665,38 +641,31 @@ var Tooltip = ({
665
641
  delayDuration = 300,
666
642
  ...props
667
643
  }) => {
668
- return /* @__PURE__ */ import_react23.default.createElement(
669
- TooltipPrimitive.TooltipProvider,
644
+ return /* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react23.default.createElement(
645
+ TooltipPrimitive.Root,
670
646
  {
671
- delayDuration,
672
- ...providerProps
647
+ open: !disabled && open,
648
+ defaultOpen,
649
+ onOpenChange,
650
+ ...props
673
651
  },
652
+ /* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
674
653
  /* @__PURE__ */ import_react23.default.createElement(
675
- TooltipPrimitive.Root,
654
+ TooltipContent,
676
655
  {
677
- open: !disabled && open,
678
- defaultOpen,
679
- onOpenChange,
680
- ...props
656
+ size,
657
+ side,
658
+ align: "center",
659
+ ...contentProps,
660
+ style: {
661
+ ...contentProps == null ? void 0 : contentProps.style,
662
+ maxWidth: "var(--radix-tooltip-content-available-width)",
663
+ maxHeight: "var(--radix-tooltip-content-available-height)"
664
+ }
681
665
  },
682
- /* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
683
- /* @__PURE__ */ import_react23.default.createElement(
684
- TooltipContent,
685
- {
686
- size,
687
- side,
688
- align: "center",
689
- ...contentProps,
690
- style: {
691
- ...contentProps == null ? void 0 : contentProps.style,
692
- maxWidth: "var(--radix-tooltip-content-available-width)",
693
- maxHeight: "var(--radix-tooltip-content-available-height)"
694
- }
695
- },
696
- content
697
- )
666
+ content
698
667
  )
699
- );
668
+ ));
700
669
  };
701
670
 
702
671
  // elements/label/Label.tsx
@@ -773,57 +742,42 @@ var Loading = ({
773
742
  };
774
743
  switch (design.split("-")[0]) {
775
744
  case "dots":
776
- return /* @__PURE__ */ import_react24.default.createElement(
745
+ return /* @__PURE__ */ import_react24.default.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ import_react24.default.createElement(
777
746
  "div",
778
747
  {
779
748
  className: cn(
780
- "hawa-flex hawa-flex-row hawa-gap-2",
781
- classNames == null ? void 0 : classNames.container
749
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
750
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
751
+ animationStyles[design.split("-")[1]],
752
+ color ? color : "hawa-bg-primary"
782
753
  )
783
- },
784
- /* @__PURE__ */ import_react24.default.createElement(
785
- "div",
786
- {
787
- className: cn(
788
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
789
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
790
- animationStyles[design.split("-")[1]],
791
- color ? color : "hawa-bg-primary"
792
- )
793
- }
794
- ),
795
- /* @__PURE__ */ import_react24.default.createElement(
796
- "div",
797
- {
798
- className: cn(
799
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
800
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
801
- animationStyles[design.split("-")[1]],
802
- color ? color : "hawa-bg-primary"
803
- )
804
- }
805
- ),
806
- /* @__PURE__ */ import_react24.default.createElement(
807
- "div",
808
- {
809
- className: cn(
810
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
811
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
812
- animationStyles[design.split("-")[1]],
813
- color ? color : "hawa-bg-primary"
814
- )
815
- }
816
- )
817
- );
754
+ }
755
+ ), /* @__PURE__ */ import_react24.default.createElement(
756
+ "div",
757
+ {
758
+ className: cn(
759
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
760
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
761
+ animationStyles[design.split("-")[1]],
762
+ color ? color : "hawa-bg-primary"
763
+ )
764
+ }
765
+ ), /* @__PURE__ */ import_react24.default.createElement(
766
+ "div",
767
+ {
768
+ className: cn(
769
+ "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
770
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
771
+ animationStyles[design.split("-")[1]],
772
+ color ? color : "hawa-bg-primary"
773
+ )
774
+ }
775
+ ));
818
776
  case "square":
819
777
  return /* @__PURE__ */ import_react24.default.createElement(
820
778
  "svg",
821
779
  {
822
- className: cn(
823
- "squircle-container",
824
- sizeStyles[size],
825
- classNames == null ? void 0 : classNames.container
826
- ),
780
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container),
827
781
  viewBox: "0 0 35 35",
828
782
  height: "35",
829
783
  width: "35"
@@ -864,11 +818,7 @@ var Loading = ({
864
818
  height: "37",
865
819
  width: "37",
866
820
  preserveAspectRatio: "xMidYMid meet",
867
- className: cn(
868
- "squircle-container",
869
- sizeStyles[size],
870
- classNames == null ? void 0 : classNames.container
871
- )
821
+ className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
872
822
  },
873
823
  /* @__PURE__ */ import_react24.default.createElement(
874
824
  "path",
@@ -911,11 +861,7 @@ var Loading = ({
911
861
  viewBox: "0 0 40 40",
912
862
  height: "40",
913
863
  width: "40",
914
- className: cn(
915
- "circle-container",
916
- sizeStyles[size],
917
- classNames == null ? void 0 : classNames.container
918
- )
864
+ className: cn("circle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
919
865
  },
920
866
  /* @__PURE__ */ import_react24.default.createElement(
921
867
  "circle",
@@ -1057,13 +1003,7 @@ Button.displayName = "Button";
1057
1003
  // elements/card/Card.tsx
1058
1004
  var React18 = __toESM(require("react"));
1059
1005
  var Card = React18.forwardRef(
1060
- ({
1061
- className,
1062
- variant = "default",
1063
- clickable = false,
1064
- asContainer = false,
1065
- ...props
1066
- }, ref) => {
1006
+ ({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
1067
1007
  let variantStyles = {
1068
1008
  default: cn(
1069
1009
  "hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
@@ -1075,14 +1015,7 @@ var Card = React18.forwardRef(
1075
1015
  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"
1076
1016
  )
1077
1017
  };
1078
- return /* @__PURE__ */ React18.createElement(
1079
- "div",
1080
- {
1081
- ref,
1082
- className: cn(!asContainer && variantStyles[variant], className),
1083
- ...props
1084
- }
1085
- );
1018
+ return /* @__PURE__ */ React18.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
1086
1019
  }
1087
1020
  );
1088
1021
  var CardHeader = React18.forwardRef(
@@ -1090,30 +1023,15 @@ var CardHeader = React18.forwardRef(
1090
1023
  "div",
1091
1024
  {
1092
1025
  ref,
1093
- className: cn(
1094
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
1095
- className
1096
- ),
1026
+ className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
1097
1027
  ...props
1098
1028
  }
1099
1029
  ), props.actions && /* @__PURE__ */ React18.createElement("div", { className: "hawa-p-6" }, props.actions))
1100
1030
  );
1101
- var CardTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
1102
- "h3",
1103
- {
1104
- ref,
1105
- className: cn("hawa-text-2xl hawa-font-semibold", className),
1106
- ...props
1107
- }
1108
- ));
1109
- var CardDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
1110
- "p",
1111
- {
1112
- ref,
1113
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
1114
- ...props
1115
- }
1116
- ));
1031
+ var CardTitle = React18.forwardRef(
1032
+ ({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
1033
+ );
1034
+ var CardDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
1117
1035
  var CardContent = React18.forwardRef(
1118
1036
  ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
1119
1037
  "div",
@@ -1440,10 +1358,7 @@ var LeadGenerator = ({ texts, submitHandler }) => {
1440
1358
 
1441
1359
  // blocks/misc/Announcement.tsx
1442
1360
  var import_react30 = __toESM(require("react"));
1443
- var Announcement = ({
1444
- onActionClick,
1445
- ...props
1446
- }) => {
1361
+ var Announcement = ({ onActionClick, ...props }) => {
1447
1362
  return /* @__PURE__ */ import_react30.default.createElement(Card, null, /* @__PURE__ */ import_react30.default.createElement(
1448
1363
  CardContent,
1449
1364
  {
@@ -1451,14 +1366,7 @@ var Announcement = ({
1451
1366
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
1452
1367
  },
1453
1368
  /* @__PURE__ */ import_react30.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
1454
- /* @__PURE__ */ import_react30.default.createElement(
1455
- Button,
1456
- {
1457
- onClick: () => onActionClick(),
1458
- className: "hawa-whitespace-nowrap"
1459
- },
1460
- props.actionText
1461
- )
1369
+ /* @__PURE__ */ import_react30.default.createElement(Button, { onClick: () => onActionClick(), className: "hawa-whitespace-nowrap" }, props.actionText)
1462
1370
  ));
1463
1371
  };
1464
1372
 
@@ -1686,15 +1594,7 @@ var Textarea = React28.forwardRef(
1686
1594
  className
1687
1595
  )
1688
1596
  },
1689
- /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React28.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React28.createElement(
1690
- "div",
1691
- {
1692
- className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
1693
- },
1694
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1695
- "/",
1696
- textareaProps == null ? void 0 : textareaProps.maxLength
1697
- )),
1597
+ /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React28.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React28.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength)),
1698
1598
  isLoading ? /* @__PURE__ */ React28.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React28.createElement(
1699
1599
  "textarea",
1700
1600
  {
@@ -1727,25 +1627,22 @@ var ContactForm = ({
1727
1627
  }) => {
1728
1628
  var _a, _b, _c, _d, _e;
1729
1629
  const customFieldsSchema = z.object({
1730
- ...customFields == null ? void 0 : customFields.reduce(
1731
- (acc, curr) => {
1732
- switch (curr.type) {
1733
- case "text":
1734
- acc[curr.name] = z.string().optional().default("");
1735
- break;
1736
- case "number":
1737
- acc[curr.name] = z.string().optional().default("");
1738
- break;
1739
- case "select":
1740
- acc[curr.name] = z.string().optional().default("");
1741
- break;
1742
- default:
1743
- break;
1744
- }
1745
- return acc;
1746
- },
1747
- {}
1748
- )
1630
+ ...customFields == null ? void 0 : customFields.reduce((acc, curr) => {
1631
+ switch (curr.type) {
1632
+ case "text":
1633
+ acc[curr.name] = z.string().optional().default("");
1634
+ break;
1635
+ case "number":
1636
+ acc[curr.name] = z.string().optional().default("");
1637
+ break;
1638
+ case "select":
1639
+ acc[curr.name] = z.string().optional().default("");
1640
+ break;
1641
+ default:
1642
+ break;
1643
+ }
1644
+ return acc;
1645
+ }, {})
1749
1646
  });
1750
1647
  const contactFormSchema = z.object({
1751
1648
  name: z.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(""),
@@ -1815,13 +1712,10 @@ var ContactForm = ({
1815
1712
  /* @__PURE__ */ import_react34.default.createElement(
1816
1713
  "div",
1817
1714
  {
1818
- className: cn(
1819
- "hawa-flex hawa-items-start hawa-justify-start hawa-gap-2",
1820
- {
1821
- "hawa-flex-row": size === "default",
1822
- "hawa-flex-col": size === "sm"
1823
- }
1824
- )
1715
+ className: cn("hawa-flex hawa-items-start hawa-justify-start hawa-gap-2", {
1716
+ "hawa-flex-row": size === "default",
1717
+ "hawa-flex-col": size === "sm"
1718
+ })
1825
1719
  },
1826
1720
  /* @__PURE__ */ import_react34.default.createElement(
1827
1721
  import_react_hook_form2.Controller,
@@ -1919,9 +1813,7 @@ var ContactForm = ({
1919
1813
  placeholder: texts == null ? void 0 : texts.message.placeholder,
1920
1814
  className: "hawa-min-h-20",
1921
1815
  ...field,
1922
- onKeyDown: getHotkeyHandler([
1923
- ["mod+enter", () => SubmitForm(getValues())]
1924
- ])
1816
+ onKeyDown: getHotkeyHandler([["mod+enter", () => SubmitForm(getValues())]])
1925
1817
  },
1926
1818
  classNames: { textarea: "hawa-min-h-40 hawa-h-full" },
1927
1819
  helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
@@ -1930,14 +1822,7 @@ var ContactForm = ({
1930
1822
  }
1931
1823
  }
1932
1824
  ),
1933
- /* @__PURE__ */ import_react34.default.createElement(
1934
- Button,
1935
- {
1936
- type: "submit",
1937
- className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
1938
- },
1939
- (texts == null ? void 0 : texts.submit) || "Submit"
1940
- )
1825
+ /* @__PURE__ */ import_react34.default.createElement(Button, { type: "submit", className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton) }, (texts == null ? void 0 : texts.submit) || "Submit")
1941
1826
  ))
1942
1827
  );
1943
1828
  };