@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
@@ -26,7 +26,7 @@ import {
26
26
  UncheckMark,
27
27
  VeryBadEmoji,
28
28
  VeryGoodEmoji
29
- } from "../chunk-NPD4FUIM.mjs";
29
+ } from "../chunk-JXN2PVGT.mjs";
30
30
  import "../chunk-R2SKHHDK.mjs";
31
31
  import {
32
32
  Button,
@@ -144,7 +144,8 @@ var AuthButtons = (props) => {
144
144
  };
145
145
 
146
146
  // blocks/auth/LoginForm.tsx
147
- import React2, { useState } from "react";
147
+ import React2 from "react";
148
+ import { useState } from "react";
148
149
  import { Controller, useForm } from "react-hook-form";
149
150
  import { zodResolver } from "@hookform/resolvers/zod";
150
151
  import { parsePhoneNumber } from "libphonenumber-js";
@@ -1,5 +1,5 @@
1
1
  import React__default, { FC } from 'react';
2
- import { T as TextInputType, R as RadioOptionType } from '../../textTypes-0bvyKoeH.mjs';
2
+ import { T as TextInputType, R as RadioOptionType } from '../../textTypes-DXLtO2fL.mjs';
3
3
 
4
4
  type TabType = {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import React__default, { FC } from 'react';
2
- import { T as TextInputType, R as RadioOptionType } from '../../textTypes-0bvyKoeH.js';
2
+ import { T as TextInputType, R as RadioOptionType } from '../../textTypes-DXLtO2fL.js';
3
3
 
4
4
  type TabType = {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { FC, InputHTMLAttributes } from 'react';
2
- import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-0bvyKoeH.mjs';
2
+ import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-DXLtO2fL.mjs';
3
3
 
4
4
  type PlanFeature = {
5
5
  soon?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC, InputHTMLAttributes } from 'react';
2
- import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-0bvyKoeH.js';
2
+ import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-DXLtO2fL.js';
3
3
 
4
4
  type PlanFeature = {
5
5
  soon?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-2k6FnHw5.mjs';
2
+ import { D as DirectionType } from '../commonTypes-D23Z4zYt.mjs';
3
3
  import { EmblaOptionsType } from 'embla-carousel';
4
4
 
5
5
  type CarouselProps = {
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-2k6FnHw5.js';
2
+ import { D as DirectionType } from '../commonTypes-D23Z4zYt.js';
3
3
  import { EmblaOptionsType } from 'embla-carousel';
4
4
 
5
5
  type CarouselProps = {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { R as RadiusType } from '../commonTypes-2k6FnHw5.mjs';
3
+ import { R as RadiusType } from '../commonTypes-D23Z4zYt.mjs';
4
4
 
5
5
  type CheckBoxTypes = {
6
6
  id: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { R as RadiusType } from '../commonTypes-2k6FnHw5.js';
3
+ import { R as RadiusType } from '../commonTypes-D23Z4zYt.js';
4
4
 
5
5
  type CheckBoxTypes = {
6
6
  id: string;
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { R as RadiusType } from '../commonTypes-2k6FnHw5.mjs';
2
+ import { R as RadiusType } from '../commonTypes-D23Z4zYt.mjs';
3
3
 
4
4
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
5
5
  type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { R as RadiusType } from '../commonTypes-2k6FnHw5.js';
2
+ import { R as RadiusType } from '../commonTypes-D23Z4zYt.js';
3
3
 
4
4
  type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
5
5
  type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
@@ -534,7 +534,7 @@ var Select = ({
534
534
  };
535
535
 
536
536
  // elements/phoneInput/PhoneInput.tsx
537
- import React5, { useState as useState2, useRef as useRef2, useEffect as useEffect2 } from "react";
537
+ import React5, { useState as useState2, useRef as useRef2 } from "react";
538
538
 
539
539
  // countries.ts
540
540
  var countries = [
@@ -2230,16 +2230,14 @@ var countries = [
2230
2230
  var countries_default = countries;
2231
2231
 
2232
2232
  // elements/phoneInput/PhoneInput.tsx
2233
- var PhoneInput = ({ labelProps, ...props }) => {
2233
+ var PhoneInput = ({
2234
+ labelProps,
2235
+ inputProps,
2236
+ ...props
2237
+ }) => {
2234
2238
  const [phoneNumber, setPhoneNumber] = useState2("");
2235
2239
  const [countryCode, setCountryCode] = useState2(props.preferredCountry);
2236
2240
  const inputRef = useRef2(null);
2237
- useEffect2(() => {
2238
- var _a;
2239
- if (inputRef.current) {
2240
- (_a = inputRef.current) == null ? void 0 : _a.focus();
2241
- }
2242
- }, []);
2243
2241
  const handleInputChange = (e) => {
2244
2242
  const validChars = /^[0-9-()]+$/;
2245
2243
  const input = e.target.value;
@@ -2255,31 +2253,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
2255
2253
  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(
2256
2254
  Select,
2257
2255
  {
2256
+ phoneCode: true,
2258
2257
  width: "fit",
2259
2258
  hideHelperText: true,
2260
- phoneCode: true,
2261
2259
  hideIndicator: true,
2262
- placeholder: "Code",
2263
- options: countries_default,
2264
2260
  isMulti: false,
2265
2261
  isSearchable: true,
2266
2262
  isClearable: false,
2267
- defaultValue: props.preferredCountry,
2263
+ placeholder: "Code",
2264
+ options: countries_default,
2265
+ onChange: setCountryCode,
2268
2266
  value: countryCode == null ? void 0 : countryCode.label,
2269
- onChange: setCountryCode
2267
+ defaultValue: props.preferredCountry
2270
2268
  }
2271
2269
  ), /* @__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(
2272
2270
  "input",
2273
2271
  {
2272
+ type: "tel",
2274
2273
  ref: inputRef,
2275
2274
  id: "phone-number",
2275
+ value: phoneNumber,
2276
+ onChange: handleInputChange,
2277
+ placeholder: props.placeholder,
2276
2278
  className: cn(
2277
2279
  "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"
2278
2280
  ),
2279
- onChange: handleInputChange,
2280
- value: phoneNumber,
2281
- type: "tel",
2282
- placeholder: props.placeholder
2281
+ ...inputProps
2283
2282
  }
2284
2283
  ))), /* @__PURE__ */ React5.createElement(
2285
2284
  "p",
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { RowData, ColumnDef } from '@tanstack/react-table';
3
3
  export { ColumnDef } from '@tanstack/react-table';
4
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
4
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.mjs';
5
5
 
6
6
  type DataTableProps<DataProps = {}> = {
7
7
  direction?: DirectionType;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { RowData, ColumnDef } from '@tanstack/react-table';
3
3
  export { ColumnDef } from '@tanstack/react-table';
4
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
4
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.js';
5
5
 
6
6
  type DataTableProps<DataProps = {}> = {
7
7
  direction?: DirectionType;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
2
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.mjs';
3
3
 
4
4
  type DestroyableCard = {
5
5
  position?: "bottom-right" | "bottom-left";
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
2
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.js';
3
3
 
4
4
  type DestroyableCard = {
5
5
  position?: "bottom-right" | "bottom-left";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as DialogPrimitive from '@radix-ui/react-dialog';
3
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
3
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.mjs';
4
4
 
5
5
  declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
6
6
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as DialogPrimitive from '@radix-ui/react-dialog';
3
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
3
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.js';
4
4
 
5
5
  declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
6
6
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-52DloiYq.mjs';
2
+ import { D as DirectionType } from '../commonTypes-TGqbHlp_.mjs';
3
3
 
4
4
  type AppLayoutTypes = {
5
5
  pages?: any[];
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-52DloiYq.js';
2
+ import { D as DirectionType } from '../commonTypes-TGqbHlp_.js';
3
3
 
4
4
  type AppLayoutTypes = {
5
5
  pages?: any[];
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
2
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.mjs';
3
3
 
4
4
  type DocsSidebarType = {
5
5
  pages: any[];
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
2
+ import { D as DirectionType } from '../commonTypes-ClC9C8Mh.js';
3
3
 
4
4
  type DocsSidebarType = {
5
5
  pages: any[];
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes } from 'react';
3
3
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
- import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-CKtkuNFH.mjs';
5
- export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-o_-MnT5h.mjs';
6
- import { a as ChipTypes } from '../Chip-hr2gRBJ-.mjs';
7
- export { b as Chip, C as ChipColors } from '../Chip-hr2gRBJ-.mjs';
4
+ import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-C-g8nFFC.mjs';
5
+ export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-K3ztliYc.mjs';
6
+ import { a as ChipTypes } from '../Chip-BT2hUlGJ.mjs';
7
+ export { b as Chip, C as ChipColors } from '../Chip-BT2hUlGJ.mjs';
8
8
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
9
9
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
10
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
@@ -13,8 +13,8 @@ import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
14
  import { RowData, ColumnDef } from '@tanstack/react-table';
15
15
  export { ColumnDef } from '@tanstack/react-table';
16
- import { L as LabelProps } from '../Radio-L369ID7b.mjs';
17
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-L369ID7b.mjs';
16
+ import { L as LabelProps } from '../Radio-D52-m4Ns.mjs';
17
+ export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-D52-m4Ns.mjs';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as TabsPrimitive from '@radix-ui/react-tabs';
20
20
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -25,8 +25,8 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
25
25
  import * as SliderPrimitive from '@radix-ui/react-slider';
26
26
  import { HighlightProps } from 'prism-react-renderer';
27
27
  import { EmblaOptionsType } from 'embla-carousel';
28
- import { T as ToasterToastProps } from '../Toast-ySvjL_-K.mjs';
29
- export { e as Toast, i as ToastAction, b as ToastActionElement, h as ToastClose, g as ToastDescription, a as ToastProps, c as ToastProvider, f as ToastTitle, d as ToastViewport } from '../Toast-ySvjL_-K.mjs';
28
+ import { T as ToasterToastProps } from '../Toast-BcFD9aeQ.mjs';
29
+ export { e as Toast, i as ToastAction, b as ToastActionElement, h as ToastClose, g as ToastDescription, a as ToastProps, c as ToastProvider, f as ToastTitle, d as ToastViewport } from '../Toast-BcFD9aeQ.mjs';
30
30
  import '@radix-ui/react-dropdown-menu';
31
31
  import '@radix-ui/react-toast';
32
32
 
@@ -659,6 +659,7 @@ type PhoneInputTypes = {
659
659
  labelProps?: LabelProps;
660
660
  placeholder?: string;
661
661
  handleChange?: (value: string) => void;
662
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
662
663
  };
663
664
  declare const PhoneInput: FC<PhoneInputTypes>;
664
665
 
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes } from 'react';
3
3
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
- import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-CKtkuNFH.js';
5
- export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-p-Ha-y2R.js';
6
- import { a as ChipTypes } from '../Chip-H5BnuDdx.js';
7
- export { b as Chip, C as ChipColors } from '../Chip-H5BnuDdx.js';
4
+ import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-C-g8nFFC.js';
5
+ export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-CJblb-9q.js';
6
+ import { a as ChipTypes } from '../Chip-Dt7zJ-jZ.js';
7
+ export { b as Chip, C as ChipColors } from '../Chip-Dt7zJ-jZ.js';
8
8
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
9
9
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
10
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
@@ -13,8 +13,8 @@ import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
14
  import { RowData, ColumnDef } from '@tanstack/react-table';
15
15
  export { ColumnDef } from '@tanstack/react-table';
16
- import { L as LabelProps } from '../Radio-3B8RZYJA.js';
17
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-3B8RZYJA.js';
16
+ import { L as LabelProps } from '../Radio-B-DG0FMr.js';
17
+ export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-B-DG0FMr.js';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as TabsPrimitive from '@radix-ui/react-tabs';
20
20
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -25,8 +25,8 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
25
25
  import * as SliderPrimitive from '@radix-ui/react-slider';
26
26
  import { HighlightProps } from 'prism-react-renderer';
27
27
  import { EmblaOptionsType } from 'embla-carousel';
28
- import { T as ToasterToastProps } from '../Toast-YaClwi7z.js';
29
- export { e as Toast, i as ToastAction, b as ToastActionElement, h as ToastClose, g as ToastDescription, a as ToastProps, c as ToastProvider, f as ToastTitle, d as ToastViewport } from '../Toast-YaClwi7z.js';
28
+ import { T as ToasterToastProps } from '../Toast-fy9tBz19.js';
29
+ export { e as Toast, i as ToastAction, b as ToastActionElement, h as ToastClose, g as ToastDescription, a as ToastProps, c as ToastProvider, f as ToastTitle, d as ToastViewport } from '../Toast-fy9tBz19.js';
30
30
  import '@radix-ui/react-dropdown-menu';
31
31
  import '@radix-ui/react-toast';
32
32
 
@@ -659,6 +659,7 @@ type PhoneInputTypes = {
659
659
  labelProps?: LabelProps;
660
660
  placeholder?: string;
661
661
  handleChange?: (value: string) => void;
662
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
662
663
  };
663
664
  declare const PhoneInput: FC<PhoneInputTypes>;
664
665
 
@@ -6686,16 +6686,14 @@ var countries = [
6686
6686
  var countries_default = countries;
6687
6687
 
6688
6688
  // elements/phoneInput/PhoneInput.tsx
6689
- var PhoneInput = ({ labelProps, ...props }) => {
6689
+ var PhoneInput = ({
6690
+ labelProps,
6691
+ inputProps,
6692
+ ...props
6693
+ }) => {
6690
6694
  const [phoneNumber, setPhoneNumber] = (0, import_react33.useState)("");
6691
6695
  const [countryCode, setCountryCode] = (0, import_react33.useState)(props.preferredCountry);
6692
6696
  const inputRef = (0, import_react33.useRef)(null);
6693
- (0, import_react33.useEffect)(() => {
6694
- var _a;
6695
- if (inputRef.current) {
6696
- (_a = inputRef.current) == null ? void 0 : _a.focus();
6697
- }
6698
- }, []);
6699
6697
  const handleInputChange = (e) => {
6700
6698
  const validChars = /^[0-9-()]+$/;
6701
6699
  const input = e.target.value;
@@ -6711,31 +6709,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
6711
6709
  return /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react33.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react33.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react33.default.createElement(
6712
6710
  Select,
6713
6711
  {
6712
+ phoneCode: true,
6714
6713
  width: "fit",
6715
6714
  hideHelperText: true,
6716
- phoneCode: true,
6717
6715
  hideIndicator: true,
6718
- placeholder: "Code",
6719
- options: countries_default,
6720
6716
  isMulti: false,
6721
6717
  isSearchable: true,
6722
6718
  isClearable: false,
6723
- defaultValue: props.preferredCountry,
6719
+ placeholder: "Code",
6720
+ options: countries_default,
6721
+ onChange: setCountryCode,
6724
6722
  value: countryCode == null ? void 0 : countryCode.label,
6725
- onChange: setCountryCode
6723
+ defaultValue: props.preferredCountry
6726
6724
  }
6727
6725
  ), /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react33.default.createElement(
6728
6726
  "input",
6729
6727
  {
6728
+ type: "tel",
6730
6729
  ref: inputRef,
6731
6730
  id: "phone-number",
6731
+ value: phoneNumber,
6732
+ onChange: handleInputChange,
6733
+ placeholder: props.placeholder,
6732
6734
  className: cn(
6733
6735
  "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"
6734
6736
  ),
6735
- onChange: handleInputChange,
6736
- value: phoneNumber,
6737
- type: "tel",
6738
- placeholder: props.placeholder
6737
+ ...inputProps
6739
6738
  }
6740
6739
  ))), /* @__PURE__ */ import_react33.default.createElement(
6741
6740
  "p",
@@ -27,7 +27,7 @@ import {
27
27
  TabsTrigger,
28
28
  Textarea,
29
29
  UncheckMark
30
- } from "../chunk-NPD4FUIM.mjs";
30
+ } from "../chunk-JXN2PVGT.mjs";
31
31
  import {
32
32
  useClipboard
33
33
  } from "../chunk-R2SKHHDK.mjs";
@@ -1,9 +1,9 @@
1
1
  import React__default, { useLayoutEffect, RefObject } from 'react';
2
- import { T as ToasterToastProps } from '../Toast-ySvjL_-K.mjs';
2
+ import { T as ToasterToastProps } from '../Toast-BcFD9aeQ.mjs';
3
3
  import 'class-variance-authority/types';
4
4
  import '@radix-ui/react-toast';
5
5
  import 'class-variance-authority';
6
- import '../commonTypes-CKtkuNFH.mjs';
6
+ import '../commonTypes-C-g8nFFC.mjs';
7
7
 
8
8
  declare const useIsomorphicEffect: typeof useLayoutEffect;
9
9
 
@@ -1,9 +1,9 @@
1
1
  import React__default, { useLayoutEffect, RefObject } from 'react';
2
- import { T as ToasterToastProps } from '../Toast-YaClwi7z.js';
2
+ import { T as ToasterToastProps } from '../Toast-fy9tBz19.js';
3
3
  import 'class-variance-authority/types';
4
4
  import '@radix-ui/react-toast';
5
5
  import 'class-variance-authority';
6
- import '../commonTypes-CKtkuNFH.js';
6
+ import '../commonTypes-C-g8nFFC.js';
7
7
 
8
8
  declare const useIsomorphicEffect: typeof useLayoutEffect;
9
9
 
package/dist/index.d.mts CHANGED
@@ -860,6 +860,7 @@ type PhoneInputTypes = {
860
860
  labelProps?: LabelProps;
861
861
  placeholder?: string;
862
862
  handleChange?: (value: string) => void;
863
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
863
864
  };
864
865
  declare const PhoneInput: FC<PhoneInputTypes>;
865
866
 
package/dist/index.d.ts CHANGED
@@ -860,6 +860,7 @@ type PhoneInputTypes = {
860
860
  labelProps?: LabelProps;
861
861
  placeholder?: string;
862
862
  handleChange?: (value: string) => void;
863
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
863
864
  };
864
865
  declare const PhoneInput: FC<PhoneInputTypes>;
865
866