@sikka/hawa 0.39.0-next → 0.40.1-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 (198) hide show
  1. package/dist/{DropdownMenu-B3cTLPDi.d.mts → DropdownMenu-FVVDS2rX.d.mts} +6 -1
  2. package/dist/{DropdownMenu-BO1TNMm5.d.ts → DropdownMenu-SFJtRGAw.d.ts} +6 -1
  3. package/dist/{Radio-lgoClQrv.d.ts → Radio-DlPwVCG4.d.ts} +6 -0
  4. package/dist/{Radio-uQ7DtzcI.d.mts → Radio-Dyvlywnk.d.mts} +6 -0
  5. package/dist/alert/index.js +2 -2
  6. package/dist/alert/index.js.map +1 -1
  7. package/dist/alert/index.mjs +2 -2
  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 +14 -3
  12. package/dist/appLayout/index.js.map +1 -1
  13. package/dist/appLayout/index.mjs +14 -3
  14. package/dist/appLayout/index.mjs.map +1 -1
  15. package/dist/appTopbar/index.js.map +1 -1
  16. package/dist/appTopbar/index.mjs.map +1 -1
  17. package/dist/backToTop/index.js +2 -2
  18. package/dist/backToTop/index.js.map +1 -1
  19. package/dist/backToTop/index.mjs +2 -2
  20. package/dist/backToTop/index.mjs.map +1 -1
  21. package/dist/blocks/auth/index.js +15 -15
  22. package/dist/blocks/auth/index.mjs +17 -17
  23. package/dist/blocks/feedback/index.js +162 -119
  24. package/dist/blocks/feedback/index.mjs +5 -5
  25. package/dist/blocks/index.d.mts +2 -2
  26. package/dist/blocks/index.d.ts +2 -2
  27. package/dist/blocks/index.js +455 -463
  28. package/dist/blocks/index.mjs +3 -3
  29. package/dist/blocks/misc/index.js +238 -289
  30. package/dist/blocks/misc/index.mjs +147 -200
  31. package/dist/blocks/pricing/index.js +162 -119
  32. package/dist/blocks/pricing/index.mjs +4 -4
  33. package/dist/button/index.d.mts +1 -1
  34. package/dist/button/index.d.ts +1 -1
  35. package/dist/button/index.js +2 -2
  36. package/dist/button/index.js.map +1 -1
  37. package/dist/button/index.mjs +2 -2
  38. package/dist/button/index.mjs.map +1 -1
  39. package/dist/calendar/index.js +2 -2
  40. package/dist/calendar/index.js.map +1 -1
  41. package/dist/calendar/index.mjs +2 -2
  42. package/dist/calendar/index.mjs.map +1 -1
  43. package/dist/{chunk-C2IX3SUD.mjs → chunk-27G5FKOP.mjs} +1 -1
  44. package/dist/{chunk-IC5WYNKN.mjs → chunk-AJTYKC5R.mjs} +1 -1
  45. package/dist/{chunk-UMOBOCED.mjs → chunk-CTNKKP2O.mjs} +2 -2
  46. package/dist/chunk-CTZRVSTI.mjs +346 -0
  47. package/dist/{chunk-XFSBC5VI.mjs → chunk-DYPGZ2IP.mjs} +1 -1
  48. package/dist/{chunk-UJ5SXC3M.mjs → chunk-GN7EIDTE.mjs} +1 -1
  49. package/dist/{chunk-VMVZM3QQ.mjs → chunk-GU2DOJ7Q.mjs} +31 -8
  50. package/dist/{chunk-W3CF7BSC.mjs → chunk-QSEQS7DS.mjs} +251 -261
  51. package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
  52. package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
  53. package/dist/{chunk-ZBUBNKF6.mjs → chunk-XCW5YNMS.mjs} +34 -1
  54. package/dist/codeBlock/index.js +2 -2
  55. package/dist/codeBlock/index.js.map +1 -1
  56. package/dist/codeBlock/index.mjs +2 -2
  57. package/dist/codeBlock/index.mjs.map +1 -1
  58. package/dist/combobox/index.js +1 -1
  59. package/dist/combobox/index.js.map +1 -1
  60. package/dist/combobox/index.mjs +1 -1
  61. package/dist/combobox/index.mjs.map +1 -1
  62. package/dist/command/index.js +1 -1
  63. package/dist/command/index.js.map +1 -1
  64. package/dist/command/index.mjs +1 -1
  65. package/dist/command/index.mjs.map +1 -1
  66. package/dist/commonTypes-189mW5eB.d.mts +8 -0
  67. package/dist/commonTypes-189mW5eB.d.ts +8 -0
  68. package/dist/commonTypes-DUY2LJm1.d.mts +3 -0
  69. package/dist/commonTypes-DUY2LJm1.d.ts +3 -0
  70. package/dist/commonTypes-D_7LV7Ri.d.mts +5 -0
  71. package/dist/commonTypes-D_7LV7Ri.d.ts +5 -0
  72. package/dist/dataTable/index.js +2 -2
  73. package/dist/dataTable/index.js.map +1 -1
  74. package/dist/dataTable/index.mjs +2 -2
  75. package/dist/dataTable/index.mjs.map +1 -1
  76. package/dist/datePicker/index.d.mts +1 -1
  77. package/dist/datePicker/index.d.ts +1 -1
  78. package/dist/datePicker/index.js +3 -3
  79. package/dist/datePicker/index.js.map +1 -1
  80. package/dist/datePicker/index.mjs +3 -3
  81. package/dist/datePicker/index.mjs.map +1 -1
  82. package/dist/dialog/index.js +1 -1
  83. package/dist/dialog/index.js.map +1 -1
  84. package/dist/dialog/index.mjs +1 -1
  85. package/dist/dialog/index.mjs.map +1 -1
  86. package/dist/docsLayout/index.js +2 -2
  87. package/dist/docsLayout/index.js.map +1 -1
  88. package/dist/docsLayout/index.mjs +2 -2
  89. package/dist/docsLayout/index.mjs.map +1 -1
  90. package/dist/dropdownMenu/index.d.mts +6 -1
  91. package/dist/dropdownMenu/index.d.ts +6 -1
  92. package/dist/dropdownMenu/index.js +29 -6
  93. package/dist/dropdownMenu/index.js.map +1 -1
  94. package/dist/dropdownMenu/index.mjs +29 -6
  95. package/dist/dropdownMenu/index.mjs.map +1 -1
  96. package/dist/elements/index.d.mts +7 -5
  97. package/dist/elements/index.d.ts +7 -5
  98. package/dist/elements/index.js +559 -544
  99. package/dist/elements/index.mjs +5 -5
  100. package/dist/fileDropzone/index.d.mts +2 -2
  101. package/dist/fileDropzone/index.d.ts +2 -2
  102. package/dist/fileDropzone/index.js +2 -2
  103. package/dist/fileDropzone/index.js.map +1 -1
  104. package/dist/fileDropzone/index.mjs +2 -2
  105. package/dist/fileDropzone/index.mjs.map +1 -1
  106. package/dist/fileUploader/index.d.mts +2 -2
  107. package/dist/fileUploader/index.d.ts +2 -2
  108. package/dist/glow/index.d.mts +3 -3
  109. package/dist/glow/index.d.ts +3 -3
  110. package/dist/hooks/index.d.mts +8 -1
  111. package/dist/hooks/index.d.ts +8 -1
  112. package/dist/hooks/index.js +35 -0
  113. package/dist/hooks/index.mjs +5 -1
  114. package/dist/index.css +0 -91
  115. package/dist/index.d.mts +26 -4
  116. package/dist/index.d.ts +26 -4
  117. package/dist/index.js +1033 -972
  118. package/dist/index.mjs +984 -925
  119. package/dist/input/index.d.mts +2 -9
  120. package/dist/input/index.d.ts +2 -9
  121. package/dist/interfaceSettings/index.js +160 -117
  122. package/dist/interfaceSettings/index.js.map +1 -1
  123. package/dist/interfaceSettings/index.mjs +160 -117
  124. package/dist/interfaceSettings/index.mjs.map +1 -1
  125. package/dist/label/index.d.mts +1 -2
  126. package/dist/label/index.d.ts +1 -2
  127. package/dist/layout/index.d.mts +3 -1
  128. package/dist/layout/index.d.ts +3 -1
  129. package/dist/layout/index.js +14 -3
  130. package/dist/layout/index.mjs +14 -3
  131. package/dist/navigationMenu/index.d.mts +2 -1
  132. package/dist/navigationMenu/index.d.ts +2 -1
  133. package/dist/pagination/index.d.mts +1 -1
  134. package/dist/pagination/index.d.ts +1 -1
  135. package/dist/phoneInput/index.d.mts +1 -1
  136. package/dist/phoneInput/index.d.ts +1 -1
  137. package/dist/pinInput/index.js +13 -13
  138. package/dist/pinInput/index.js.map +1 -1
  139. package/dist/pinInput/index.mjs +13 -13
  140. package/dist/pinInput/index.mjs.map +1 -1
  141. package/dist/progress/index.d.mts +8 -1
  142. package/dist/progress/index.d.ts +8 -1
  143. package/dist/radio/index.d.mts +15 -1
  144. package/dist/radio/index.d.ts +15 -1
  145. package/dist/radio/index.js +160 -117
  146. package/dist/radio/index.js.map +1 -1
  147. package/dist/radio/index.mjs +160 -117
  148. package/dist/radio/index.mjs.map +1 -1
  149. package/dist/scrollArea/index.d.mts +1 -1
  150. package/dist/scrollArea/index.d.ts +1 -1
  151. package/dist/separator/index.d.mts +1 -1
  152. package/dist/separator/index.d.ts +1 -1
  153. package/dist/signature/index.d.mts +1 -2
  154. package/dist/signature/index.d.ts +1 -2
  155. package/dist/simpleTable/index.d.mts +1 -1
  156. package/dist/simpleTable/index.d.ts +1 -1
  157. package/dist/sonner/index.d.mts +1 -1
  158. package/dist/sonner/index.d.ts +1 -1
  159. package/dist/sortButton/index.js +2 -2
  160. package/dist/sortButton/index.js.map +1 -1
  161. package/dist/sortButton/index.mjs +2 -2
  162. package/dist/sortButton/index.mjs.map +1 -1
  163. package/dist/splitButton/index.d.mts +3 -9
  164. package/dist/splitButton/index.d.ts +3 -9
  165. package/dist/splitButton/index.js +2 -2
  166. package/dist/splitButton/index.js.map +1 -1
  167. package/dist/splitButton/index.mjs +2 -2
  168. package/dist/splitButton/index.mjs.map +1 -1
  169. package/dist/switch/index.d.mts +1 -1
  170. package/dist/switch/index.d.ts +1 -1
  171. package/dist/tabs/index.d.mts +4 -2
  172. package/dist/tabs/index.d.ts +4 -2
  173. package/dist/tabs/index.js +123 -174
  174. package/dist/tabs/index.js.map +1 -1
  175. package/dist/tabs/index.mjs +118 -169
  176. package/dist/tabs/index.mjs.map +1 -1
  177. package/dist/textarea/index.d.mts +1 -1
  178. package/dist/textarea/index.d.ts +1 -1
  179. package/dist/toast/index.d.mts +1 -1
  180. package/dist/toast/index.d.ts +1 -1
  181. package/dist/toaster/index.d.mts +4 -22
  182. package/dist/toaster/index.d.ts +4 -22
  183. package/dist/tooltip/index.d.mts +4 -3
  184. package/dist/tooltip/index.d.ts +4 -3
  185. package/package.json +3 -5
  186. package/dist/Label-UbMDLtJF.d.mts +0 -14
  187. package/dist/Label-UbMDLtJF.d.ts +0 -14
  188. package/dist/chunk-WDCKXU54.mjs +0 -303
  189. package/dist/commonTypes-CgDwjGvU.d.mts +0 -5
  190. package/dist/commonTypes-CgDwjGvU.d.ts +0 -5
  191. package/dist/commonTypes-DZdITB5m.d.mts +0 -4
  192. package/dist/commonTypes-DZdITB5m.d.ts +0 -4
  193. package/dist/floatBox/index.d.mts +0 -15
  194. package/dist/floatBox/index.d.ts +0 -15
  195. package/dist/floatBox/index.js +0 -105
  196. package/dist/floatBox/index.js.map +0 -1
  197. package/dist/floatBox/index.mjs +0 -69
  198. package/dist/floatBox/index.mjs.map +0 -1
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-XFSBC5VI.mjs";
4
+ } from "../../chunk-DYPGZ2IP.mjs";
5
5
  import {
6
6
  StopPropagationWrapper
7
7
  } from "../../chunk-47APBDKK.mjs";
8
8
  import {
9
9
  Select
10
- } from "../../chunk-RTK6REIK.mjs";
10
+ } from "../../chunk-QZIENYTE.mjs";
11
11
  import {
12
12
  EyeIcon,
13
13
  HiddenEyeIcon
14
- } from "../../chunk-IC5WYNKN.mjs";
14
+ } from "../../chunk-AJTYKC5R.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -24,7 +24,7 @@ import {
24
24
  Label,
25
25
  Loading,
26
26
  cn
27
- } from "../../chunk-UMOBOCED.mjs";
27
+ } from "../../chunk-CTNKKP2O.mjs";
28
28
 
29
29
  // blocks/auth/AuthButtons.tsx
30
30
  import React2 from "react";
@@ -3569,19 +3569,19 @@ import * as z5 from "zod";
3569
3569
  import * as React12 from "react";
3570
3570
  import { OTPInput, OTPInputContext } from "input-otp";
3571
3571
 
3572
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3572
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3573
3573
  import { forwardRef as forwardRef3, createElement as createElement3 } from "react";
3574
3574
 
3575
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
3575
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
3576
3576
  var toKebabCase = (string6) => string6.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3577
3577
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
3578
3578
  return Boolean(className) && array.indexOf(className) === index;
3579
3579
  }).join(" ");
3580
3580
 
3581
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3581
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3582
3582
  import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
3583
3583
 
3584
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
3584
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
3585
3585
  var defaultAttributes = {
3586
3586
  xmlns: "http://www.w3.org/2000/svg",
3587
3587
  width: 24,
@@ -3594,7 +3594,7 @@ var defaultAttributes = {
3594
3594
  strokeLinejoin: "round"
3595
3595
  };
3596
3596
 
3597
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3597
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
3598
3598
  var Icon = forwardRef2(
3599
3599
  ({
3600
3600
  color = "currentColor",
@@ -3626,7 +3626,7 @@ var Icon = forwardRef2(
3626
3626
  }
3627
3627
  );
3628
3628
 
3629
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3629
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
3630
3630
  var createLucideIcon = (iconName, iconNode) => {
3631
3631
  const Component = forwardRef3(
3632
3632
  ({ className, ...props }, ref) => createElement3(Icon, {
@@ -3640,7 +3640,7 @@ var createLucideIcon = (iconName, iconNode) => {
3640
3640
  return Component;
3641
3641
  };
3642
3642
 
3643
- // ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
3643
+ // ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
3644
3644
  var Dot = createLucideIcon("Dot", [
3645
3645
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
3646
3646
  ]);
@@ -3817,7 +3817,7 @@ export {
3817
3817
 
3818
3818
  lucide-react/dist/esm/shared/src/utils.js:
3819
3819
  (**
3820
- * @license lucide-react v0.379.0 - ISC
3820
+ * @license lucide-react v0.381.0 - ISC
3821
3821
  *
3822
3822
  * This source code is licensed under the ISC license.
3823
3823
  * See the LICENSE file in the root directory of this source tree.
@@ -3825,7 +3825,7 @@ lucide-react/dist/esm/shared/src/utils.js:
3825
3825
 
3826
3826
  lucide-react/dist/esm/defaultAttributes.js:
3827
3827
  (**
3828
- * @license lucide-react v0.379.0 - ISC
3828
+ * @license lucide-react v0.381.0 - ISC
3829
3829
  *
3830
3830
  * This source code is licensed under the ISC license.
3831
3831
  * See the LICENSE file in the root directory of this source tree.
@@ -3833,7 +3833,7 @@ lucide-react/dist/esm/defaultAttributes.js:
3833
3833
 
3834
3834
  lucide-react/dist/esm/Icon.js:
3835
3835
  (**
3836
- * @license lucide-react v0.379.0 - ISC
3836
+ * @license lucide-react v0.381.0 - ISC
3837
3837
  *
3838
3838
  * This source code is licensed under the ISC license.
3839
3839
  * See the LICENSE file in the root directory of this source tree.
@@ -3841,7 +3841,7 @@ lucide-react/dist/esm/Icon.js:
3841
3841
 
3842
3842
  lucide-react/dist/esm/createLucideIcon.js:
3843
3843
  (**
3844
- * @license lucide-react v0.379.0 - ISC
3844
+ * @license lucide-react v0.381.0 - ISC
3845
3845
  *
3846
3846
  * This source code is licensed under the ISC license.
3847
3847
  * See the LICENSE file in the root directory of this source tree.
@@ -3849,7 +3849,7 @@ lucide-react/dist/esm/createLucideIcon.js:
3849
3849
 
3850
3850
  lucide-react/dist/esm/icons/dot.js:
3851
3851
  (**
3852
- * @license lucide-react v0.379.0 - ISC
3852
+ * @license lucide-react v0.381.0 - ISC
3853
3853
  *
3854
3854
  * This source code is licensed under the ISC license.
3855
3855
  * See the LICENSE file in the root directory of this source tree.
@@ -3857,7 +3857,7 @@ lucide-react/dist/esm/icons/dot.js:
3857
3857
 
3858
3858
  lucide-react/dist/esm/lucide-react.js:
3859
3859
  (**
3860
- * @license lucide-react v0.379.0 - ISC
3860
+ * @license lucide-react v0.381.0 - ISC
3861
3861
  *
3862
3862
  * This source code is licensed under the ISC license.
3863
3863
  * See the LICENSE file in the root directory of this source tree.
@@ -447,12 +447,12 @@ var Button = React5.forwardRef(
447
447
  children,
448
448
  labelProps,
449
449
  showHelperText = false,
450
- inForm = false,
450
+ asInput = false,
451
451
  ...props
452
452
  }, ref) => {
453
453
  const Comp = "button";
454
454
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
455
- if (inForm) {
455
+ if (asInput) {
456
456
  return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
457
457
  Comp,
458
458
  {
@@ -672,6 +672,7 @@ var Radio = (0, import_react4.forwardRef)(
672
672
  tabsContainerClassName,
673
673
  forceHideHelperText = false,
674
674
  onChange,
675
+ containerClassNames,
675
676
  ...props
676
677
  }, ref) => {
677
678
  var _a, _b, _c;
@@ -727,161 +728,203 @@ var Radio = (0, import_react4.forwardRef)(
727
728
  ];
728
729
  switch (design) {
729
730
  case "tabs":
730
- return /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react4.default.createElement(
731
- "ul",
731
+ return /* @__PURE__ */ import_react4.default.createElement(
732
+ "div",
732
733
  {
733
- ref: parentRef,
734
734
  className: cn(
735
- props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
736
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
737
- orientationStyle[orientation],
738
- widthStyle[width],
739
- tabsContainerClassName
735
+ "hawa-gap-2 hawa-flex hawa-flex-col",
736
+ containerClassNames == null ? void 0 : containerClassNames.tabs
740
737
  )
741
738
  },
742
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
743
- return opt.tooltip ? /* @__PURE__ */ import_react4.default.createElement(
744
- PopoverRoot,
745
- {
746
- key: o,
747
- open: o === openTooltip,
748
- onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
749
- },
750
- /* @__PURE__ */ import_react4.default.createElement(
751
- PopoverTrigger,
739
+ props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
740
+ /* @__PURE__ */ import_react4.default.createElement(
741
+ "ul",
742
+ {
743
+ ref: parentRef,
744
+ className: cn(
745
+ props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
746
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
747
+ orientationStyle[orientation],
748
+ widthStyle[width],
749
+ tabsContainerClassName
750
+ )
751
+ },
752
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
753
+ return opt.tooltip ? /* @__PURE__ */ import_react4.default.createElement(
754
+ PopoverRoot,
752
755
  {
753
- onMouseEnter: () => setOpenTooltip(o),
754
- onMouseLeave: () => setOpenTooltip(null),
755
- asChild: true
756
+ key: o,
757
+ open: o === openTooltip,
758
+ onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
756
759
  },
757
760
  /* @__PURE__ */ import_react4.default.createElement(
758
- "li",
761
+ PopoverTrigger,
759
762
  {
760
- "aria-current": "page",
761
- onClick: () => {
762
- if (props.disabled || opt.disabled)
763
- return;
764
- handleChange(opt);
763
+ onMouseEnter: () => setOpenTooltip(o),
764
+ onMouseLeave: () => setOpenTooltip(null),
765
+ asChild: true
766
+ },
767
+ /* @__PURE__ */ import_react4.default.createElement(
768
+ "li",
769
+ {
770
+ "aria-current": "page",
771
+ onClick: () => {
772
+ if (props.disabled || opt.disabled)
773
+ return;
774
+ handleChange(opt);
775
+ },
776
+ className: cn(
777
+ ...radio_option_tabs_styling,
778
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
779
+ )
765
780
  },
766
- className: cn(
767
- ...radio_option_tabs_styling,
768
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
769
- )
781
+ opt.icon && opt.icon,
782
+ opt.label
783
+ )
784
+ ),
785
+ /* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
786
+ ) : /* @__PURE__ */ import_react4.default.createElement(
787
+ "li",
788
+ {
789
+ key: o,
790
+ "aria-current": "page",
791
+ onClick: () => {
792
+ if (props.disabled || opt.disabled)
793
+ return;
794
+ handleChange(opt);
770
795
  },
771
- opt.icon && opt.icon,
772
- opt.label
773
- )
796
+ className: cn(
797
+ ...radio_option_tabs_styling,
798
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
799
+ )
800
+ },
801
+ opt.icon && opt.icon,
802
+ opt.label
803
+ );
804
+ })
805
+ ),
806
+ !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
807
+ );
808
+ case "bordered":
809
+ return /* @__PURE__ */ import_react4.default.createElement(
810
+ "div",
811
+ {
812
+ className: cn(
813
+ orientationStyle[orientation],
814
+ "hawa-gap-4",
815
+ containerClassNames == null ? void 0 : containerClassNames.bordered
816
+ )
817
+ },
818
+ props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react4.default.createElement(
819
+ "div",
820
+ {
821
+ className: cn(
822
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
823
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
774
824
  ),
775
- /* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
776
- ) : /* @__PURE__ */ import_react4.default.createElement(
777
- "li",
825
+ key: i + 1
826
+ },
827
+ /* @__PURE__ */ import_react4.default.createElement(
828
+ "input",
778
829
  {
779
- key: o,
780
- "aria-current": "page",
781
- onClick: () => {
782
- if (props.disabled || opt.disabled)
783
- return;
784
- handleChange(opt);
785
- },
830
+ disabled: opt.disabled,
831
+ id: opt.value.toString(),
832
+ type: "radio",
833
+ value: opt.value,
834
+ name,
835
+ onChange: () => handleChange(opt)
836
+ }
837
+ ),
838
+ /* @__PURE__ */ import_react4.default.createElement(
839
+ "label",
840
+ {
841
+ htmlFor: opt.value.toString(),
786
842
  className: cn(
787
- ...radio_option_tabs_styling,
788
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
843
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
844
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
789
845
  )
790
846
  },
791
- opt.icon && opt.icon,
792
847
  opt.label
793
- );
794
- })
795
- ), !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
796
- case "bordered":
797
- return /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react4.default.createElement(
798
- "div",
848
+ )
849
+ )))
850
+ );
851
+ case "cards":
852
+ return /* @__PURE__ */ import_react4.default.createElement(
853
+ "ul",
799
854
  {
800
855
  className: cn(
801
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
802
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
803
- ),
804
- key: i + 1
856
+ orientationStyle[orientation],
857
+ "hawa-gap-4",
858
+ containerClassNames == null ? void 0 : containerClassNames.cards
859
+ )
805
860
  },
806
- /* @__PURE__ */ import_react4.default.createElement(
861
+ (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react4.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react4.default.createElement(
807
862
  "input",
808
863
  {
809
- disabled: opt.disabled,
810
- id: opt.value.toString(),
811
864
  type: "radio",
812
- value: opt.value,
865
+ id: opt.value.toString(),
813
866
  name,
814
- onChange: () => handleChange(opt)
867
+ value: opt.value.toString(),
868
+ className: "hawa-peer hawa-hidden",
869
+ required: true,
870
+ disabled: opt.disabled
815
871
  }
816
- ),
817
- /* @__PURE__ */ import_react4.default.createElement(
872
+ ), /* @__PURE__ */ import_react4.default.createElement(
818
873
  "label",
819
874
  {
820
875
  htmlFor: opt.value.toString(),
821
876
  className: cn(
822
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
823
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
877
+ "hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
878
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
824
879
  )
825
880
  },
826
- opt.label
827
- )
828
- ))));
829
- case "cards":
830
- return /* @__PURE__ */ import_react4.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react4.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react4.default.createElement(
831
- "input",
832
- {
833
- type: "radio",
834
- id: opt.value.toString(),
835
- name,
836
- value: opt.value.toString(),
837
- className: "hawa-peer hawa-hidden",
838
- required: true,
839
- disabled: opt.disabled
840
- }
841
- ), /* @__PURE__ */ import_react4.default.createElement(
842
- "label",
843
- {
844
- htmlFor: opt.value.toString(),
845
- className: cn(
846
- "hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
847
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
848
- )
849
- },
850
- /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
851
- ))));
881
+ /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
882
+ )))
883
+ );
852
884
  default:
853
- return /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement(
885
+ return /* @__PURE__ */ import_react4.default.createElement(
854
886
  "div",
855
887
  {
856
888
  className: cn(
857
- "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
858
- props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
859
- ),
860
- key: i + 1
889
+ "hawa-flex hawa-flex-col hawa-gap-2",
890
+ containerClassNames == null ? void 0 : containerClassNames.default
891
+ )
861
892
  },
862
- /* @__PURE__ */ import_react4.default.createElement(
863
- "input",
893
+ props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
894
+ /* @__PURE__ */ import_react4.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react4.default.createElement(
895
+ "div",
864
896
  {
865
- disabled: opt.disabled,
866
- id: opt.value.toString(),
867
- type: "radio",
868
- value: opt.value,
869
- name,
870
- onChange: () => handleChange(opt)
871
- }
872
- ),
873
- /* @__PURE__ */ import_react4.default.createElement(
874
- "label",
875
- {
876
- htmlFor: opt.value.toString(),
877
897
  className: cn(
878
- "hawa-text-sm hawa-font-medium dark:hawa-text-white",
879
- opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
880
- )
898
+ "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
899
+ props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
900
+ ),
901
+ key: i + 1
881
902
  },
882
- opt.label
883
- )
884
- ))), /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText }));
903
+ /* @__PURE__ */ import_react4.default.createElement(
904
+ "input",
905
+ {
906
+ disabled: opt.disabled,
907
+ id: opt.value.toString(),
908
+ type: "radio",
909
+ value: opt.value,
910
+ name,
911
+ onChange: () => handleChange(opt)
912
+ }
913
+ ),
914
+ /* @__PURE__ */ import_react4.default.createElement(
915
+ "label",
916
+ {
917
+ htmlFor: opt.value.toString(),
918
+ className: cn(
919
+ "hawa-text-sm hawa-font-medium dark:hawa-text-white",
920
+ opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
921
+ )
922
+ },
923
+ opt.label
924
+ )
925
+ ))),
926
+ /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
927
+ );
885
928
  }
886
929
  }
887
930
  );
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import {
3
3
  Textarea
4
- } from "../../chunk-UJ5SXC3M.mjs";
4
+ } from "../../chunk-GN7EIDTE.mjs";
5
5
  import {
6
6
  Select
7
- } from "../../chunk-RTK6REIK.mjs";
7
+ } from "../../chunk-QZIENYTE.mjs";
8
8
  import {
9
9
  Popover,
10
10
  Radio
11
- } from "../../chunk-WDCKXU54.mjs";
11
+ } from "../../chunk-CTZRVSTI.mjs";
12
12
  import {
13
13
  BadEmoji,
14
14
  GoodEmoji,
15
15
  VeryBadEmoji,
16
16
  VeryGoodEmoji
17
- } from "../../chunk-IC5WYNKN.mjs";
17
+ } from "../../chunk-AJTYKC5R.mjs";
18
18
  import {
19
19
  Button,
20
20
  Card,
21
21
  CardContent,
22
22
  Label,
23
23
  cn
24
- } from "../../chunk-UMOBOCED.mjs";
24
+ } from "../../chunk-CTNKKP2O.mjs";
25
25
 
26
26
  // blocks/feedback/UserReferralSource.tsx
27
27
  import React, { useRef, useState } from "react";
@@ -1,8 +1,8 @@
1
1
  import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
3
- import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-uQ7DtzcI.mjs';
3
+ import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-Dyvlywnk.mjs';
4
4
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.mjs';
5
- import { M as MenuItemType } from '../DropdownMenu-B3cTLPDi.mjs';
5
+ import { M as MenuItemType } from '../DropdownMenu-FVVDS2rX.mjs';
6
6
  import '@radix-ui/react-popover';
7
7
  import '@radix-ui/react-dropdown-menu';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import React__default, { FC, InputHTMLAttributes } from 'react';
2
2
  import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
3
- import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-lgoClQrv.js';
3
+ import { P as PhoneInputProps, S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-DlPwVCG4.js';
4
4
  import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.js';
5
- import { M as MenuItemType } from '../DropdownMenu-BO1TNMm5.js';
5
+ import { M as MenuItemType } from '../DropdownMenu-SFJtRGAw.js';
6
6
  import '@radix-ui/react-popover';
7
7
  import '@radix-ui/react-dropdown-menu';
8
8