@sikka/hawa 0.31.6-next → 0.31.8-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 (128) hide show
  1. package/dist/{Chip-hr2gRBJ-.d.mts → Chip-BT2hUlGJ.d.mts} +1 -1
  2. package/dist/{Chip-H5BnuDdx.d.ts → Chip-Dt7zJ-jZ.d.ts} +1 -1
  3. package/dist/{DropdownMenu-p-Ha-y2R.d.ts → DropdownMenu-CJblb-9q.d.ts} +1 -1
  4. package/dist/{DropdownMenu-o_-MnT5h.d.mts → DropdownMenu-K3ztliYc.d.mts} +1 -1
  5. package/dist/{Radio-3B8RZYJA.d.ts → Radio-B-DG0FMr.d.ts} +1 -1
  6. package/dist/{Radio-L369ID7b.d.mts → Radio-D52-m4Ns.d.mts} +1 -1
  7. package/dist/{Toast-ySvjL_-K.d.mts → Toast-BcFD9aeQ.d.mts} +1 -1
  8. package/dist/{Toast-YaClwi7z.d.ts → Toast-fy9tBz19.d.ts} +1 -1
  9. package/dist/accordion/index.d.mts +1 -1
  10. package/dist/accordion/index.d.ts +1 -1
  11. package/dist/alert/index.d.mts +1 -1
  12. package/dist/alert/index.d.ts +1 -1
  13. package/dist/appTopbar/index.d.mts +1 -1
  14. package/dist/appTopbar/index.d.ts +1 -1
  15. package/dist/blocks/auth/index.d.mts +1 -1
  16. package/dist/blocks/auth/index.d.ts +1 -1
  17. package/dist/blocks/auth/index.js +92 -92
  18. package/dist/blocks/auth/index.mjs +18 -18
  19. package/dist/blocks/feedback/index.d.mts +1 -1
  20. package/dist/blocks/feedback/index.d.ts +1 -1
  21. package/dist/blocks/index.d.mts +3 -3
  22. package/dist/blocks/index.d.ts +3 -3
  23. package/dist/blocks/index.js +328 -328
  24. package/dist/blocks/index.mjs +3 -2
  25. package/dist/blocks/misc/index.d.mts +1 -1
  26. package/dist/blocks/misc/index.d.ts +1 -1
  27. package/dist/blocks/pricing/index.d.mts +1 -1
  28. package/dist/blocks/pricing/index.d.ts +1 -1
  29. package/dist/carousel/index.d.mts +1 -1
  30. package/dist/carousel/index.d.ts +1 -1
  31. package/dist/checkbox/index.d.mts +1 -1
  32. package/dist/checkbox/index.d.ts +1 -1
  33. package/dist/chip/index.d.mts +1 -1
  34. package/dist/chip/index.d.ts +1 -1
  35. package/dist/{chunk-NPD4FUIM.mjs → chunk-JXN2PVGT.mjs} +16 -17
  36. package/dist/dataTable/index.d.mts +1 -1
  37. package/dist/dataTable/index.d.ts +1 -1
  38. package/dist/destroyableCard/index.d.mts +1 -1
  39. package/dist/destroyableCard/index.d.ts +1 -1
  40. package/dist/dialog/index.d.mts +1 -1
  41. package/dist/dialog/index.d.ts +1 -1
  42. package/dist/docsLayout/index.d.mts +1 -1
  43. package/dist/docsLayout/index.d.ts +1 -1
  44. package/dist/docsSidebar/index.d.mts +1 -1
  45. package/dist/docsSidebar/index.d.ts +1 -1
  46. package/dist/elements/index.d.mts +9 -8
  47. package/dist/elements/index.d.ts +9 -8
  48. package/dist/elements/index.js +15 -16
  49. package/dist/elements/index.mjs +1 -1
  50. package/dist/hooks/index.d.mts +2 -2
  51. package/dist/hooks/index.d.ts +2 -2
  52. package/dist/index.d.mts +1 -0
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.js +277 -277
  55. package/dist/index.mjs +18 -18
  56. package/dist/interfaceSettings/index.d.mts +1 -1
  57. package/dist/interfaceSettings/index.d.ts +1 -1
  58. package/dist/label/index.d.mts +1 -1
  59. package/dist/label/index.d.ts +1 -1
  60. package/dist/layout/index.d.mts +3 -3
  61. package/dist/layout/index.d.ts +3 -3
  62. package/dist/navigationMenu/index.d.mts +1 -1
  63. package/dist/navigationMenu/index.d.ts +1 -1
  64. package/dist/pagination/index.d.mts +1 -1
  65. package/dist/pagination/index.d.ts +1 -1
  66. package/dist/phoneInput/index.d.mts +2 -1
  67. package/dist/phoneInput/index.d.ts +2 -1
  68. package/dist/phoneInput/index.js +15 -16
  69. package/dist/phoneInput/index.js.map +1 -1
  70. package/dist/phoneInput/index.mjs +16 -17
  71. package/dist/phoneInput/index.mjs.map +1 -1
  72. package/dist/popover/index.d.mts +1 -1
  73. package/dist/popover/index.d.ts +1 -1
  74. package/dist/progress/index.d.mts +1 -1
  75. package/dist/progress/index.d.ts +1 -1
  76. package/dist/radio/index.d.mts +1 -1
  77. package/dist/radio/index.d.ts +1 -1
  78. package/dist/scrollArea/index.d.mts +1 -1
  79. package/dist/scrollArea/index.d.ts +1 -1
  80. package/dist/select/index.d.mts +1 -1
  81. package/dist/select/index.d.ts +1 -1
  82. package/dist/separator/index.d.mts +1 -1
  83. package/dist/separator/index.d.ts +1 -1
  84. package/dist/sidebar/index.d.mts +1 -1
  85. package/dist/sidebar/index.d.ts +1 -1
  86. package/dist/signature/index.d.mts +1 -1
  87. package/dist/signature/index.d.ts +1 -1
  88. package/dist/simpleTable/index.d.mts +1 -1
  89. package/dist/simpleTable/index.d.ts +1 -1
  90. package/dist/sonner/index.d.mts +1 -1
  91. package/dist/sonner/index.d.ts +1 -1
  92. package/dist/switch/index.d.mts +1 -1
  93. package/dist/switch/index.d.ts +1 -1
  94. package/dist/tabs/index.d.mts +1 -1
  95. package/dist/tabs/index.d.ts +1 -1
  96. package/dist/textarea/index.d.mts +1 -1
  97. package/dist/textarea/index.d.ts +1 -1
  98. package/dist/toast/index.d.mts +1 -1
  99. package/dist/toast/index.d.ts +1 -1
  100. package/dist/toaster/index.d.mts +1 -1
  101. package/dist/toaster/index.d.ts +1 -1
  102. package/dist/tooltip/index.d.mts +1 -1
  103. package/dist/tooltip/index.d.ts +1 -1
  104. package/dist/types/index.d.mts +2 -2
  105. package/dist/types/index.d.ts +2 -2
  106. package/package.json +1 -1
  107. /package/dist/{commonTypes-2IGtJ5cq.d.mts → commonTypes-BIZhOigS.d.mts} +0 -0
  108. /package/dist/{commonTypes-2IGtJ5cq.d.ts → commonTypes-BIZhOigS.d.ts} +0 -0
  109. /package/dist/{commonTypes-_11epZYh.d.mts → commonTypes-BtF87PmG.d.mts} +0 -0
  110. /package/dist/{commonTypes-_11epZYh.d.ts → commonTypes-BtF87PmG.d.ts} +0 -0
  111. /package/dist/{commonTypes-CKtkuNFH.d.mts → commonTypes-C-g8nFFC.d.mts} +0 -0
  112. /package/dist/{commonTypes-CKtkuNFH.d.ts → commonTypes-C-g8nFFC.d.ts} +0 -0
  113. /package/dist/{commonTypes-WPhcN3Vr.d.mts → commonTypes-C0OLP6TN.d.mts} +0 -0
  114. /package/dist/{commonTypes-WPhcN3Vr.d.ts → commonTypes-C0OLP6TN.d.ts} +0 -0
  115. /package/dist/{commonTypes-eIwARo5g.d.mts → commonTypes-CMqMLkhN.d.mts} +0 -0
  116. /package/dist/{commonTypes-eIwARo5g.d.ts → commonTypes-CMqMLkhN.d.ts} +0 -0
  117. /package/dist/{commonTypes-ko_NGEoT.d.mts → commonTypes-ClC9C8Mh.d.mts} +0 -0
  118. /package/dist/{commonTypes-ko_NGEoT.d.ts → commonTypes-ClC9C8Mh.d.ts} +0 -0
  119. /package/dist/{commonTypes-2k6FnHw5.d.mts → commonTypes-D23Z4zYt.d.mts} +0 -0
  120. /package/dist/{commonTypes-2k6FnHw5.d.ts → commonTypes-D23Z4zYt.d.ts} +0 -0
  121. /package/dist/{commonTypes-LrR8QrYP.d.mts → commonTypes-D_7LV7Ri.d.mts} +0 -0
  122. /package/dist/{commonTypes-LrR8QrYP.d.ts → commonTypes-D_7LV7Ri.d.ts} +0 -0
  123. /package/dist/{commonTypes-GhKAraJw.d.mts → commonTypes-DinbCdmt.d.mts} +0 -0
  124. /package/dist/{commonTypes-GhKAraJw.d.ts → commonTypes-DinbCdmt.d.ts} +0 -0
  125. /package/dist/{commonTypes-52DloiYq.d.mts → commonTypes-TGqbHlp_.d.mts} +0 -0
  126. /package/dist/{commonTypes-52DloiYq.d.ts → commonTypes-TGqbHlp_.d.ts} +0 -0
  127. /package/dist/{textTypes-0bvyKoeH.d.mts → textTypes-DXLtO2fL.d.mts} +0 -0
  128. /package/dist/{textTypes-0bvyKoeH.d.ts → textTypes-DXLtO2fL.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // elements/phoneInput/PhoneInput.tsx
4
- import React5, { useState, useRef, useEffect } from "react";
4
+ import React5, { useState, useRef } from "react";
5
5
 
6
6
  // util/index.ts
7
7
  import { clsx } from "clsx";
@@ -2045,16 +2045,14 @@ var Select = ({
2045
2045
  };
2046
2046
 
2047
2047
  // elements/phoneInput/PhoneInput.tsx
2048
- var PhoneInput = ({ labelProps, ...props }) => {
2048
+ var PhoneInput = ({
2049
+ labelProps,
2050
+ inputProps,
2051
+ ...props
2052
+ }) => {
2049
2053
  const [phoneNumber, setPhoneNumber] = useState("");
2050
2054
  const [countryCode, setCountryCode] = useState(props.preferredCountry);
2051
2055
  const inputRef = useRef(null);
2052
- useEffect(() => {
2053
- var _a;
2054
- if (inputRef.current) {
2055
- (_a = inputRef.current) == null ? void 0 : _a.focus();
2056
- }
2057
- }, []);
2058
2056
  const handleInputChange = (e) => {
2059
2057
  const validChars = /^[0-9-()]+$/;
2060
2058
  const input = e.target.value;
@@ -2070,31 +2068,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
2070
2068
  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(
2071
2069
  Select,
2072
2070
  {
2071
+ phoneCode: true,
2073
2072
  width: "fit",
2074
2073
  hideHelperText: true,
2075
- phoneCode: true,
2076
2074
  hideIndicator: true,
2077
- placeholder: "Code",
2078
- options: countries_default,
2079
2075
  isMulti: false,
2080
2076
  isSearchable: true,
2081
2077
  isClearable: false,
2082
- defaultValue: props.preferredCountry,
2078
+ placeholder: "Code",
2079
+ options: countries_default,
2080
+ onChange: setCountryCode,
2083
2081
  value: countryCode == null ? void 0 : countryCode.label,
2084
- onChange: setCountryCode
2082
+ defaultValue: props.preferredCountry
2085
2083
  }
2086
2084
  ), /* @__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(
2087
2085
  "input",
2088
2086
  {
2087
+ type: "tel",
2089
2088
  ref: inputRef,
2090
2089
  id: "phone-number",
2090
+ value: phoneNumber,
2091
+ onChange: handleInputChange,
2092
+ placeholder: props.placeholder,
2091
2093
  className: cn(
2092
2094
  "hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
2093
2095
  ),
2094
- onChange: handleInputChange,
2095
- value: phoneNumber,
2096
- type: "tel",
2097
- placeholder: props.placeholder
2096
+ ...inputProps
2098
2097
  }
2099
2098
  ))), /* @__PURE__ */ React5.createElement(
2100
2099
  "p",