@sikka/hawa 0.37.2-next → 0.38.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 (168) hide show
  1. package/dist/{Radio-y9uhxitu.d.ts → Radio-lgoClQrv.d.ts} +2 -2
  2. package/dist/{Radio-BCD7k628.d.mts → Radio-uQ7DtzcI.d.mts} +2 -2
  3. package/dist/alert/index.js +43 -19
  4. package/dist/alert/index.js.map +1 -1
  5. package/dist/alert/index.mjs +43 -19
  6. package/dist/alert/index.mjs.map +1 -1
  7. package/dist/appLayout/index.js +43 -19
  8. package/dist/appLayout/index.js.map +1 -1
  9. package/dist/appLayout/index.mjs +43 -19
  10. package/dist/appLayout/index.mjs.map +1 -1
  11. package/dist/backToTop/index.js +43 -19
  12. package/dist/backToTop/index.js.map +1 -1
  13. package/dist/backToTop/index.mjs +43 -19
  14. package/dist/backToTop/index.mjs.map +1 -1
  15. package/dist/blocks/auth/index.d.mts +1 -0
  16. package/dist/blocks/auth/index.d.ts +1 -0
  17. package/dist/blocks/auth/index.js +251 -143
  18. package/dist/blocks/auth/index.mjs +205 -102
  19. package/dist/blocks/feedback/index.js +47 -59
  20. package/dist/blocks/feedback/index.mjs +5 -5
  21. package/dist/blocks/index.d.mts +2 -1
  22. package/dist/blocks/index.d.ts +2 -1
  23. package/dist/blocks/index.js +501 -420
  24. package/dist/blocks/index.mjs +11 -9
  25. package/dist/blocks/misc/index.js +48 -51
  26. package/dist/blocks/misc/index.mjs +5 -5
  27. package/dist/blocks/pricing/index.js +47 -41
  28. package/dist/blocks/pricing/index.mjs +4 -4
  29. package/dist/button/index.d.mts +4 -0
  30. package/dist/button/index.d.ts +4 -0
  31. package/dist/button/index.js +43 -19
  32. package/dist/button/index.js.map +1 -1
  33. package/dist/button/index.mjs +43 -19
  34. package/dist/button/index.mjs.map +1 -1
  35. package/dist/calendar/index.js +43 -19
  36. package/dist/calendar/index.js.map +1 -1
  37. package/dist/calendar/index.mjs +43 -19
  38. package/dist/calendar/index.mjs.map +1 -1
  39. package/dist/checkbox/index.d.mts +1 -1
  40. package/dist/checkbox/index.d.ts +1 -1
  41. package/dist/checkbox/index.js.map +1 -1
  42. package/dist/checkbox/index.mjs.map +1 -1
  43. package/dist/{chunk-ZTUWU652.mjs → chunk-EZBHA2IL.mjs} +3 -3
  44. package/dist/{chunk-ODOCZAWC.mjs → chunk-F23GAE2P.mjs} +1 -1
  45. package/dist/{chunk-DS3AACQJ.mjs → chunk-IC5WYNKN.mjs} +1 -1
  46. package/dist/{chunk-QXH7ZDMN.mjs → chunk-RTK6REIK.mjs} +3 -11
  47. package/dist/{chunk-QYWOI3DO.mjs → chunk-UDJFVH2I.mjs} +204 -144
  48. package/dist/{chunk-BPHQFAWM.mjs → chunk-UJ5SXC3M.mjs} +3 -11
  49. package/dist/{chunk-PXGL7ZXQ.mjs → chunk-UMOBOCED.mjs} +44 -19
  50. package/dist/{chunk-RNFJAEEU.mjs → chunk-V7O5MQZQ.mjs} +44 -19
  51. package/dist/{chunk-BTDR3VAG.mjs → chunk-WDCKXU54.mjs} +4 -21
  52. package/dist/{chunk-MDHDHEPZ.mjs → chunk-XFSBC5VI.mjs} +3 -11
  53. package/dist/codeBlock/index.js +43 -19
  54. package/dist/codeBlock/index.js.map +1 -1
  55. package/dist/codeBlock/index.mjs +43 -19
  56. package/dist/codeBlock/index.mjs.map +1 -1
  57. package/dist/colorPicker/index.d.mts +1 -1
  58. package/dist/colorPicker/index.d.ts +1 -1
  59. package/dist/colorPicker/index.js +35 -31
  60. package/dist/colorPicker/index.js.map +1 -1
  61. package/dist/colorPicker/index.mjs +33 -29
  62. package/dist/colorPicker/index.mjs.map +1 -1
  63. package/dist/combobox/index.d.mts +1 -1
  64. package/dist/combobox/index.d.ts +1 -1
  65. package/dist/combobox/index.js +52 -48
  66. package/dist/combobox/index.js.map +1 -1
  67. package/dist/combobox/index.mjs +52 -48
  68. package/dist/combobox/index.mjs.map +1 -1
  69. package/dist/dataTable/index.js +44 -29
  70. package/dist/dataTable/index.js.map +1 -1
  71. package/dist/dataTable/index.mjs +44 -29
  72. package/dist/dataTable/index.mjs.map +1 -1
  73. package/dist/datePicker/index.d.mts +4 -0
  74. package/dist/datePicker/index.d.ts +4 -0
  75. package/dist/datePicker/index.js +44 -19
  76. package/dist/datePicker/index.js.map +1 -1
  77. package/dist/datePicker/index.mjs +44 -19
  78. package/dist/datePicker/index.mjs.map +1 -1
  79. package/dist/docsLayout/index.js +43 -19
  80. package/dist/docsLayout/index.js.map +1 -1
  81. package/dist/docsLayout/index.mjs +43 -19
  82. package/dist/docsLayout/index.mjs.map +1 -1
  83. package/dist/elements/index.d.mts +46 -21
  84. package/dist/elements/index.d.ts +46 -21
  85. package/dist/elements/index.js +378 -309
  86. package/dist/elements/index.mjs +14 -23
  87. package/dist/fileDropzone/index.js +43 -19
  88. package/dist/fileDropzone/index.js.map +1 -1
  89. package/dist/fileDropzone/index.mjs +43 -19
  90. package/dist/fileDropzone/index.mjs.map +1 -1
  91. package/dist/index.css +29 -3
  92. package/dist/index.d.mts +48 -22
  93. package/dist/index.d.ts +48 -22
  94. package/dist/index.js +808 -737
  95. package/dist/index.mjs +331 -264
  96. package/dist/input/index.d.mts +1 -1
  97. package/dist/input/index.d.ts +1 -1
  98. package/dist/input/index.js +46 -42
  99. package/dist/input/index.js.map +1 -1
  100. package/dist/input/index.mjs +45 -41
  101. package/dist/input/index.mjs.map +1 -1
  102. package/dist/interfaceSettings/index.js +64 -69
  103. package/dist/interfaceSettings/index.js.map +1 -1
  104. package/dist/interfaceSettings/index.mjs +57 -62
  105. package/dist/interfaceSettings/index.mjs.map +1 -1
  106. package/dist/layout/index.d.mts +1 -1
  107. package/dist/layout/index.d.ts +1 -1
  108. package/dist/layout/index.js +43 -19
  109. package/dist/layout/index.mjs +2 -2
  110. package/dist/passwordInput/index.js +70 -66
  111. package/dist/passwordInput/index.js.map +1 -1
  112. package/dist/passwordInput/index.mjs +59 -55
  113. package/dist/passwordInput/index.mjs.map +1 -1
  114. package/dist/phoneInput/index.js +50 -55
  115. package/dist/phoneInput/index.js.map +1 -1
  116. package/dist/phoneInput/index.mjs +47 -52
  117. package/dist/phoneInput/index.mjs.map +1 -1
  118. package/dist/pinInput/index.d.mts +37 -16
  119. package/dist/pinInput/index.d.ts +37 -16
  120. package/dist/pinInput/index.js +208 -78
  121. package/dist/pinInput/index.js.map +1 -1
  122. package/dist/pinInput/index.mjs +203 -77
  123. package/dist/pinInput/index.mjs.map +1 -1
  124. package/dist/radio/index.d.mts +1 -1
  125. package/dist/radio/index.d.ts +1 -1
  126. package/dist/radio/index.js +55 -60
  127. package/dist/radio/index.js.map +1 -1
  128. package/dist/radio/index.mjs +50 -55
  129. package/dist/radio/index.mjs.map +1 -1
  130. package/dist/scrollArea/index.js +2 -2
  131. package/dist/scrollArea/index.js.map +1 -1
  132. package/dist/scrollArea/index.mjs +2 -2
  133. package/dist/scrollArea/index.mjs.map +1 -1
  134. package/dist/select/index.d.mts +1 -1
  135. package/dist/select/index.d.ts +1 -1
  136. package/dist/select/index.js +43 -39
  137. package/dist/select/index.js.map +1 -1
  138. package/dist/select/index.mjs +43 -39
  139. package/dist/select/index.mjs.map +1 -1
  140. package/dist/signature/index.d.mts +1 -1
  141. package/dist/signature/index.d.ts +1 -1
  142. package/dist/signature/index.js.map +1 -1
  143. package/dist/signature/index.mjs.map +1 -1
  144. package/dist/sortButton/index.js +43 -19
  145. package/dist/sortButton/index.js.map +1 -1
  146. package/dist/sortButton/index.mjs +43 -19
  147. package/dist/sortButton/index.mjs.map +1 -1
  148. package/dist/splitButton/index.d.mts +4 -0
  149. package/dist/splitButton/index.d.ts +4 -0
  150. package/dist/splitButton/index.js +43 -19
  151. package/dist/splitButton/index.js.map +1 -1
  152. package/dist/splitButton/index.mjs +43 -19
  153. package/dist/splitButton/index.mjs.map +1 -1
  154. package/dist/stats/index.d.mts +1 -1
  155. package/dist/stats/index.d.ts +1 -1
  156. package/dist/stats/index.js.map +1 -1
  157. package/dist/stats/index.mjs.map +1 -1
  158. package/dist/tabs/index.js +2 -2
  159. package/dist/tabs/index.js.map +1 -1
  160. package/dist/tabs/index.mjs +2 -2
  161. package/dist/tabs/index.mjs.map +1 -1
  162. package/dist/textarea/index.d.mts +1 -1
  163. package/dist/textarea/index.d.ts +1 -1
  164. package/dist/textarea/index.js +34 -30
  165. package/dist/textarea/index.js.map +1 -1
  166. package/dist/textarea/index.mjs +34 -30
  167. package/dist/textarea/index.mjs.map +1 -1
  168. package/package.json +2 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // elements/phoneInput/PhoneInput.tsx
4
- import React5, { useState, useRef } from "react";
4
+ import React6, { useState, useRef } from "react";
5
5
 
6
6
  // util/index.ts
7
7
  import { clsx } from "clsx";
@@ -1703,13 +1703,26 @@ var countries = [
1703
1703
  ];
1704
1704
  var countries_default = countries;
1705
1705
 
1706
+ // elements/helperText/HelperText.tsx
1707
+ import React from "react";
1708
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
1709
+ "p",
1710
+ {
1711
+ className: cn(
1712
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1713
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1714
+ )
1715
+ },
1716
+ helperText
1717
+ );
1718
+
1706
1719
  // elements/label/Label.tsx
1707
- import * as React2 from "react";
1720
+ import * as React3 from "react";
1708
1721
 
1709
1722
  // elements/tooltip/Tooltip.tsx
1710
- import React from "react";
1723
+ import React2 from "react";
1711
1724
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
1712
- var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
1725
+ var TooltipContent = React2.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React2.createElement(
1713
1726
  TooltipPrimitive.Content,
1714
1727
  {
1715
1728
  ref,
@@ -1726,7 +1739,7 @@ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "defa
1726
1739
  }
1727
1740
  ));
1728
1741
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
1729
- var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
1742
+ var TooltipArrow = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
1730
1743
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
1731
1744
  var Tooltip = ({
1732
1745
  side,
@@ -1743,13 +1756,13 @@ var Tooltip = ({
1743
1756
  delayDuration = 300,
1744
1757
  ...props
1745
1758
  }) => {
1746
- return /* @__PURE__ */ React.createElement(
1759
+ return /* @__PURE__ */ React2.createElement(
1747
1760
  TooltipPrimitive.TooltipProvider,
1748
1761
  {
1749
1762
  delayDuration,
1750
1763
  ...providerProps
1751
1764
  },
1752
- /* @__PURE__ */ React.createElement(
1765
+ /* @__PURE__ */ React2.createElement(
1753
1766
  TooltipPrimitive.Root,
1754
1767
  {
1755
1768
  open: !disabled && open,
@@ -1757,8 +1770,8 @@ var Tooltip = ({
1757
1770
  onOpenChange,
1758
1771
  ...props
1759
1772
  },
1760
- /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
1761
- /* @__PURE__ */ React.createElement(
1773
+ /* @__PURE__ */ React2.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
1774
+ /* @__PURE__ */ React2.createElement(
1762
1775
  TooltipContent,
1763
1776
  {
1764
1777
  size,
@@ -1778,7 +1791,7 @@ var Tooltip = ({
1778
1791
  };
1779
1792
 
1780
1793
  // elements/label/Label.tsx
1781
- var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
1794
+ var Label = React3.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React3.createElement(
1782
1795
  "label",
1783
1796
  {
1784
1797
  ref,
@@ -1789,8 +1802,8 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
1789
1802
  ...props
1790
1803
  },
1791
1804
  children,
1792
- required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
1793
- ), hint && /* @__PURE__ */ React2.createElement(
1805
+ required && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
1806
+ ), hint && /* @__PURE__ */ React3.createElement(
1794
1807
  Tooltip,
1795
1808
  {
1796
1809
  content: hint,
@@ -1800,7 +1813,7 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
1800
1813
  onClick: (event) => event.preventDefault()
1801
1814
  }
1802
1815
  },
1803
- /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
1816
+ /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
1804
1817
  "svg",
1805
1818
  {
1806
1819
  xmlns: "http://www.w3.org/2000/svg",
@@ -1812,21 +1825,21 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
1812
1825
  strokeLinecap: "round",
1813
1826
  strokeLinejoin: "round"
1814
1827
  },
1815
- /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
1816
- /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1817
- /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
1828
+ /* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" }),
1829
+ /* @__PURE__ */ React3.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1830
+ /* @__PURE__ */ React3.createElement("path", { d: "M12 17h.01" })
1818
1831
  ))
1819
1832
  )));
1820
1833
  Label.displayName = "Label";
1821
1834
 
1822
1835
  // elements/select/Select.tsx
1823
- import React4 from "react";
1836
+ import React5 from "react";
1824
1837
  import ReactSelect from "react-select";
1825
1838
  import CreatableSelect from "react-select/creatable";
1826
1839
  import clsx2 from "clsx";
1827
1840
 
1828
1841
  // elements/skeleton/Skeleton.tsx
1829
- import React3 from "react";
1842
+ import React4 from "react";
1830
1843
  function Skeleton({
1831
1844
  className,
1832
1845
  content,
@@ -1845,7 +1858,7 @@ function Skeleton({
1845
1858
  right: "hawa-mask-fade-right",
1846
1859
  left: "hawa-mask-fade-left "
1847
1860
  };
1848
- return /* @__PURE__ */ React3.createElement(
1861
+ return /* @__PURE__ */ React4.createElement(
1849
1862
  "div",
1850
1863
  {
1851
1864
  className: cn(
@@ -1868,10 +1881,10 @@ var Select = ({
1868
1881
  }) => {
1869
1882
  const NoOption = () => {
1870
1883
  var _a, _b;
1871
- return /* @__PURE__ */ React4.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
1884
+ return /* @__PURE__ */ React5.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
1872
1885
  };
1873
1886
  const Control = ({ children, innerProps, innerRef }) => {
1874
- return /* @__PURE__ */ React4.createElement(
1887
+ return /* @__PURE__ */ React5.createElement(
1875
1888
  "div",
1876
1889
  {
1877
1890
  ref: innerRef,
@@ -1884,7 +1897,7 @@ var Select = ({
1884
1897
  );
1885
1898
  };
1886
1899
  const Option = ({ children, innerProps, innerRef }) => {
1887
- return /* @__PURE__ */ React4.createElement(
1900
+ return /* @__PURE__ */ React5.createElement(
1888
1901
  "div",
1889
1902
  {
1890
1903
  ref: innerRef,
@@ -1905,7 +1918,7 @@ var Select = ({
1905
1918
  ...menuProps
1906
1919
  }) => {
1907
1920
  const menuOpen = menuProps.selectProps.menuIsOpen;
1908
- return /* @__PURE__ */ React4.createElement(
1921
+ return /* @__PURE__ */ React5.createElement(
1909
1922
  "div",
1910
1923
  {
1911
1924
  className: cn(
@@ -1923,7 +1936,7 @@ var Select = ({
1923
1936
  let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
1924
1937
  let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
1925
1938
  let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
1926
- return /* @__PURE__ */ React4.createElement(
1939
+ return /* @__PURE__ */ React5.createElement(
1927
1940
  "div",
1928
1941
  {
1929
1942
  className: cn(
@@ -1931,10 +1944,10 @@ var Select = ({
1931
1944
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
1932
1945
  )
1933
1946
  },
1934
- props.label && /* @__PURE__ */ React4.createElement(Label, { ...labelProps }, props.label),
1935
- props.isLoading ? /* @__PURE__ */ React4.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
1947
+ props.label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, props.label),
1948
+ props.isLoading ? /* @__PURE__ */ React5.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
1936
1949
  // TODO: enable keyboard to go to the next item in the list
1937
- /* @__PURE__ */ React4.createElement(
1950
+ /* @__PURE__ */ React5.createElement(
1938
1951
  ReactSelect,
1939
1952
  {
1940
1953
  noOptionsMessage: NoOption,
@@ -1968,7 +1981,7 @@ var Select = ({
1968
1981
  // {...e}
1969
1982
  // />
1970
1983
  // ),
1971
- ValueContainer: (e) => /* @__PURE__ */ React4.createElement(
1984
+ ValueContainer: (e) => /* @__PURE__ */ React5.createElement(
1972
1985
  "div",
1973
1986
  {
1974
1987
  className: cn(
@@ -1978,7 +1991,7 @@ var Select = ({
1978
1991
  ...e
1979
1992
  }
1980
1993
  ),
1981
- MultiValueContainer: (e) => /* @__PURE__ */ React4.createElement(
1994
+ MultiValueContainer: (e) => /* @__PURE__ */ React5.createElement(
1982
1995
  "div",
1983
1996
  {
1984
1997
  className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
@@ -1997,7 +2010,7 @@ var Select = ({
1997
2010
  isSearchable: props.isSearchable
1998
2011
  }
1999
2012
  )
2000
- ) : /* @__PURE__ */ React4.createElement(
2013
+ ) : /* @__PURE__ */ React5.createElement(
2001
2014
  CreatableSelect,
2002
2015
  {
2003
2016
  formatCreateLabel: (inputValue) => {
@@ -2027,16 +2040,7 @@ var Select = ({
2027
2040
  onInputChange: (newValue, action) => props.onInputChange(newValue, action)
2028
2041
  }
2029
2042
  ),
2030
- !props.hideHelperText && /* @__PURE__ */ React4.createElement(
2031
- "p",
2032
- {
2033
- className: cn(
2034
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2035
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2036
- )
2037
- },
2038
- props.helperText
2039
- )
2043
+ !props.hideHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText })
2040
2044
  );
2041
2045
  };
2042
2046
 
@@ -2063,7 +2067,7 @@ var PhoneInput = ({
2063
2067
  console.log("handleChange prop was not provided in <PhoneInput/>");
2064
2068
  }
2065
2069
  };
2066
- return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React5.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React5.createElement(
2070
+ return /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React6.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React6.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React6.createElement(
2067
2071
  Select,
2068
2072
  {
2069
2073
  phoneCode: true,
@@ -2079,7 +2083,7 @@ var PhoneInput = ({
2079
2083
  value: countryCode == null ? void 0 : countryCode.label,
2080
2084
  defaultValue: props.preferredCountry
2081
2085
  }
2082
- ), /* @__PURE__ */ React5.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React5.createElement(
2086
+ ), /* @__PURE__ */ React6.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React6.createElement(
2083
2087
  "input",
2084
2088
  {
2085
2089
  type: "tel",
@@ -2093,16 +2097,7 @@ var PhoneInput = ({
2093
2097
  ),
2094
2098
  ...inputProps
2095
2099
  }
2096
- ))), /* @__PURE__ */ React5.createElement(
2097
- "p",
2098
- {
2099
- className: cn(
2100
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2101
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2102
- )
2103
- },
2104
- props.helperText
2105
- ));
2100
+ ))), /* @__PURE__ */ React6.createElement(HelperText, { helperText: props.helperText }));
2106
2101
  };
2107
2102
  export {
2108
2103
  PhoneInput