@sikka/hawa 0.46.3-next → 0.47.0-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{Radio-Dyvlywnk.d.mts → Radio-BPHTeDMz.d.mts} +8 -7
  2. package/dist/{Radio-DlPwVCG4.d.ts → Radio-cRcIH8_L.d.ts} +8 -7
  3. package/dist/blocks/auth/index.d.mts +8 -8
  4. package/dist/blocks/auth/index.d.ts +8 -8
  5. package/dist/blocks/auth/index.js +87 -133
  6. package/dist/blocks/auth/index.mjs +21 -53
  7. package/dist/blocks/feedback/index.js +69 -80
  8. package/dist/blocks/feedback/index.mjs +5 -5
  9. package/dist/blocks/index.d.mts +3 -3
  10. package/dist/blocks/index.d.ts +3 -3
  11. package/dist/blocks/index.js +87 -133
  12. package/dist/blocks/index.mjs +6 -25
  13. package/dist/blocks/misc/index.js +70 -84
  14. package/dist/blocks/misc/index.mjs +5 -5
  15. package/dist/blocks/pricing/index.js +1 -1
  16. package/dist/blocks/pricing/index.mjs +4 -4
  17. package/dist/{chunk-QLUJEUIB.mjs → chunk-342KIV4R.mjs} +83 -110
  18. package/dist/{chunk-EHJXQQDP.mjs → chunk-5S5DR7KF.mjs} +1 -1
  19. package/dist/{chunk-HJVL6X7I.mjs → chunk-6SJUUJOV.mjs} +1 -1
  20. package/dist/{chunk-7O555VJR.mjs → chunk-AWJSHOYU.mjs} +69 -80
  21. package/dist/{chunk-U72MOMEK.mjs → chunk-C2UOOH4X.mjs} +1 -1
  22. package/dist/{chunk-7L5VUKZ7.mjs → chunk-EOH6A3GR.mjs} +2 -5
  23. package/dist/{chunk-6UOJKVIA.mjs → chunk-IFWYR5W2.mjs} +1 -1
  24. package/dist/{chunk-YXUHXKKK.mjs → chunk-JP2N5WKD.mjs} +1 -1
  25. package/dist/{chunk-R37QEYSB.mjs → chunk-NMW4GM4G.mjs} +1 -1
  26. package/dist/{chunk-CIMTNOLA.mjs → chunk-WUMDFBEK.mjs} +1 -1
  27. package/dist/colorPicker/index.js +1 -1
  28. package/dist/colorPicker/index.js.map +1 -1
  29. package/dist/colorPicker/index.mjs +1 -1
  30. package/dist/colorPicker/index.mjs.map +1 -1
  31. package/dist/combobox/index.js +1 -1
  32. package/dist/combobox/index.js.map +1 -1
  33. package/dist/combobox/index.mjs +1 -1
  34. package/dist/combobox/index.mjs.map +1 -1
  35. package/dist/dataTable/index.js +2 -5
  36. package/dist/dataTable/index.js.map +1 -1
  37. package/dist/dataTable/index.mjs +2 -5
  38. package/dist/dataTable/index.mjs.map +1 -1
  39. package/dist/elements/index.d.mts +2 -2
  40. package/dist/elements/index.d.ts +2 -2
  41. package/dist/elements/index.js +83 -110
  42. package/dist/elements/index.mjs +3 -3
  43. package/dist/index.d.mts +10 -9
  44. package/dist/index.d.ts +10 -9
  45. package/dist/index.js +87 -133
  46. package/dist/index.mjs +87 -133
  47. package/dist/input/index.js +2 -5
  48. package/dist/input/index.js.map +1 -1
  49. package/dist/input/index.mjs +2 -5
  50. package/dist/input/index.mjs.map +1 -1
  51. package/dist/layout/index.js +1 -1
  52. package/dist/layout/index.mjs +2 -2
  53. package/dist/passwordInput/index.js +2 -5
  54. package/dist/passwordInput/index.js.map +1 -1
  55. package/dist/passwordInput/index.mjs +2 -5
  56. package/dist/passwordInput/index.mjs.map +1 -1
  57. package/dist/phoneInput/index.d.mts +7 -7
  58. package/dist/phoneInput/index.d.ts +7 -7
  59. package/dist/phoneInput/index.js +79 -86
  60. package/dist/phoneInput/index.js.map +1 -1
  61. package/dist/phoneInput/index.mjs +79 -86
  62. package/dist/phoneInput/index.mjs.map +1 -1
  63. package/dist/pinInput/index.js +3 -20
  64. package/dist/pinInput/index.js.map +1 -1
  65. package/dist/pinInput/index.mjs +3 -20
  66. package/dist/pinInput/index.mjs.map +1 -1
  67. package/dist/select/index.d.mts +1 -0
  68. package/dist/select/index.d.ts +1 -0
  69. package/dist/select/index.js +69 -80
  70. package/dist/select/index.js.map +1 -1
  71. package/dist/select/index.mjs +69 -80
  72. package/dist/select/index.mjs.map +1 -1
  73. package/dist/simpleTable/index.js +1 -1
  74. package/dist/simpleTable/index.js.map +1 -1
  75. package/dist/simpleTable/index.mjs +1 -1
  76. package/dist/simpleTable/index.mjs.map +1 -1
  77. package/dist/skeleton/index.js +1 -1
  78. package/dist/skeleton/index.js.map +1 -1
  79. package/dist/skeleton/index.mjs +1 -1
  80. package/dist/skeleton/index.mjs.map +1 -1
  81. package/dist/stats/index.js +1 -1
  82. package/dist/stats/index.js.map +1 -1
  83. package/dist/stats/index.mjs +1 -1
  84. package/dist/stats/index.mjs.map +1 -1
  85. package/dist/textarea/index.js +1 -1
  86. package/dist/textarea/index.js.map +1 -1
  87. package/dist/textarea/index.mjs +1 -1
  88. package/dist/textarea/index.mjs.map +1 -1
  89. package/package.json +1 -1
@@ -11,8 +11,8 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
11
11
  import * as SheetPrimitive from '@radix-ui/react-dialog';
12
12
  import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
- import { L as LabelProps } from '../Radio-Dyvlywnk.mjs';
15
- export { b as Label, d as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-Dyvlywnk.mjs';
14
+ import { L as LabelProps } from '../Radio-BPHTeDMz.mjs';
15
+ export { b as Label, d as PhoneCodeValue, e as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-BPHTeDMz.mjs';
16
16
  import { RowData, ColumnDef } from '@tanstack/react-table';
17
17
  export { ColumnDef } from '@tanstack/react-table';
18
18
  import { Command as Command$1 } from 'cmdk';
@@ -11,8 +11,8 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
11
11
  import * as SheetPrimitive from '@radix-ui/react-dialog';
12
12
  import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
- import { L as LabelProps } from '../Radio-DlPwVCG4.js';
15
- export { b as Label, d as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-DlPwVCG4.js';
14
+ import { L as LabelProps } from '../Radio-cRcIH8_L.js';
15
+ export { b as Label, d as PhoneCodeValue, e as PhoneInput, P as PhoneInputProps, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-cRcIH8_L.js';
16
16
  import { RowData, ColumnDef } from '@tanstack/react-table';
17
17
  export { ColumnDef } from '@tanstack/react-table';
18
18
  import { Command as Command$1 } from 'cmdk';
@@ -616,7 +616,7 @@ function Skeleton({
616
616
  };
617
617
  const styledAs = {
618
618
  div: "",
619
- input: "!h-[38px] !w-full"
619
+ input: "hawa-h-[40px] hawa-w-full"
620
620
  };
621
621
  return /* @__PURE__ */ import_react3.default.createElement(
622
622
  "div",
@@ -3020,14 +3020,11 @@ var Input = (0, import_react11.forwardRef)(
3020
3020
  }
3021
3021
  if (props.onChange) {
3022
3022
  if (props.type === "number" && props.maxLength) {
3023
- console.log("type is ", props.type);
3024
- console.log("max length is ", props.maxLength);
3025
3023
  let v = newValue.replace(/[^0-9]/g, "").slice(0, props.maxLength);
3026
3024
  const newEvent = { ...e, target: { ...e.target, value: v } };
3027
3025
  setValue(v);
3028
3026
  props.onChange(newEvent);
3029
3027
  } else {
3030
- console.log("NETIHERRRER");
3031
3028
  const newEvent = { ...e, target: { ...e.target, value: newValue } };
3032
3029
  setValue(newValue);
3033
3030
  props.onChange(newEvent);
@@ -3052,7 +3049,7 @@ var Input = (0, import_react11.forwardRef)(
3052
3049
  )
3053
3050
  },
3054
3051
  props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label),
3055
- /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center" }, props.outsidePrefix && /* @__PURE__ */ import_react11.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.outsidePrefix), props.isLoading ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(
3052
+ /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center" }, props.outsidePrefix && /* @__PURE__ */ import_react11.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.outsidePrefix), props.isLoading ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(Skeleton, { as: "input" })) : props.isLoadingError ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(
3056
3053
  Skeleton,
3057
3054
  {
3058
3055
  animation: "none",
@@ -5266,6 +5263,7 @@ var import_clsx3 = __toESM(require("clsx"));
5266
5263
  var Select = ({
5267
5264
  labelProps,
5268
5265
  labelKey = "label",
5266
+ valueKey = "value",
5269
5267
  ...props
5270
5268
  }) => {
5271
5269
  const NoOption = () => {
@@ -5285,13 +5283,7 @@ var Select = ({
5285
5283
  children
5286
5284
  );
5287
5285
  };
5288
- const Option = ({
5289
- children,
5290
- innerProps,
5291
- innerRef,
5292
- isFocused,
5293
- isSelected
5294
- }) => {
5286
+ const Option = ({ children, innerProps, innerRef, isFocused, isSelected }) => {
5295
5287
  return /* @__PURE__ */ import_react35.default.createElement(
5296
5288
  "div",
5297
5289
  {
@@ -5306,14 +5298,7 @@ var Select = ({
5306
5298
  children
5307
5299
  );
5308
5300
  };
5309
- const Menu = ({
5310
- cx,
5311
- children,
5312
- getStyles,
5313
- innerProps,
5314
- innerRef,
5315
- ...menuProps
5316
- }) => {
5301
+ const Menu = ({ cx, children, getStyles, innerProps, innerRef, ...menuProps }) => {
5317
5302
  const menuOpen = menuProps.selectProps.menuIsOpen;
5318
5303
  return /* @__PURE__ */ import_react35.default.createElement(
5319
5304
  "div",
@@ -5342,71 +5327,72 @@ var Select = ({
5342
5327
  )
5343
5328
  },
5344
5329
  props.label && /* @__PURE__ */ import_react35.default.createElement(Label2, { ...labelProps }, props.label),
5345
- props.isLoading ? /* @__PURE__ */ import_react35.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
5346
- // TODO: enable keyboard to go to the next item in the list
5347
- /* @__PURE__ */ import_react35.default.createElement(
5348
- import_react_select.default,
5349
- {
5350
- noOptionsMessage: NoOption,
5351
- classNames: {
5352
- control: () => cn(
5353
- props.phoneCode && "hawa-rounded-r-none",
5354
- props.controlClassNames
5355
- ),
5356
- container: () => cn(
5357
- selectContainerStyles,
5358
- props.phoneCode && phoneCodeStyles,
5359
- props.isMulti && "hawa-ps-0 "
5360
- ),
5361
- placeholder: () => cn(
5362
- selectPlaceholderStyles,
5363
- props.disabled && "hawa-text-muted-foreground"
5364
- ),
5365
- valueContainer: () => "hawa-text-foreground hawa-px-1 ",
5366
- singleValue: () => cn(
5367
- props.disabled ? "hawa-text-muted-foreground hawa-opacity-30" : "hawa-text-foreground"
5368
- ),
5369
- indicatorsContainer: () => cn(
5370
- selectIndicatorContainerStyles,
5371
- props.hideIndicator ? "hawa-invisible" : "hawa-px-1",
5372
- props.disabled && "hawa-opacity-30"
5373
- )
5374
- },
5375
- unstyled: true,
5376
- autoFocus: false,
5377
- components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
5330
+ props.isLoading ? /* @__PURE__ */ import_react35.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? /* @__PURE__ */ import_react35.default.createElement(
5331
+ import_react_select.default,
5332
+ {
5333
+ noOptionsMessage: NoOption,
5334
+ classNames: {
5335
+ control: () => cn(props.phoneCode && "hawa-rounded-r-none", props.controlClassNames),
5336
+ container: () => cn(
5337
+ selectContainerStyles,
5338
+ props.phoneCode && phoneCodeStyles,
5339
+ props.isMulti && "hawa-ps-0 "
5340
+ ),
5341
+ placeholder: () => cn(selectPlaceholderStyles, props.disabled && "hawa-text-muted-foreground"),
5342
+ valueContainer: () => "hawa-text-foreground hawa-px-1",
5343
+ singleValue: () => cn(
5344
+ props.disabled ? "hawa-text-muted-foreground hawa-opacity-30" : "hawa-text-foreground"
5345
+ ),
5346
+ indicatorsContainer: () => cn(
5347
+ selectIndicatorContainerStyles,
5348
+ props.hideIndicator ? "hawa-invisible" : "hawa-px-1",
5349
+ props.disabled && "hawa-opacity-30"
5350
+ )
5351
+ },
5352
+ unstyled: true,
5353
+ autoFocus: false,
5354
+ components: props.hideIndicator ? {
5355
+ Option: (optionProps) => /* @__PURE__ */ import_react35.default.createElement(
5378
5356
  Option,
5379
- Menu,
5380
- ValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
5381
- "div",
5382
- {
5383
- className: cn(
5384
- e.className,
5385
- "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-1"
5386
- ),
5387
- ...e
5388
- }
5389
- ),
5390
- MultiValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
5391
- "div",
5392
- {
5393
- className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
5394
- ...e
5395
- }
5396
- )
5397
- },
5398
- onChange: (newValue, action) => props.onChange(newValue, action),
5399
- options: props.options,
5400
- getOptionLabel: props.getOptionLabel,
5401
- defaultValue: props.defaultValue,
5402
- value: props.value,
5403
- placeholder: props.placeholder,
5404
- isDisabled: props.disabled,
5405
- isClearable: props.isClearable,
5406
- isMulti: props.isMulti,
5407
- isSearchable: props.isSearchable
5408
- }
5409
- )
5357
+ {
5358
+ ...optionProps,
5359
+ isSelected: optionProps.data[valueKey] === props.value[valueKey]
5360
+ }
5361
+ ),
5362
+ Menu,
5363
+ IndicatorsContainer: () => null
5364
+ } : {
5365
+ Option,
5366
+ Menu,
5367
+ ValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
5368
+ "div",
5369
+ {
5370
+ className: cn(
5371
+ e.className,
5372
+ "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-2 hawa-w-full hawa-cursor-pointer"
5373
+ ),
5374
+ ...e
5375
+ }
5376
+ ),
5377
+ MultiValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
5378
+ "div",
5379
+ {
5380
+ className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
5381
+ ...e
5382
+ }
5383
+ )
5384
+ },
5385
+ onChange: (newValue, action) => props.onChange(newValue, action),
5386
+ options: props.options,
5387
+ getOptionLabel: props.getOptionLabel,
5388
+ defaultValue: props.defaultValue,
5389
+ value: props.value,
5390
+ placeholder: props.placeholder,
5391
+ isDisabled: props.disabled,
5392
+ isClearable: props.isClearable,
5393
+ isMulti: props.isMulti,
5394
+ isSearchable: props.isSearchable
5395
+ }
5410
5396
  ) : /* @__PURE__ */ import_react35.default.createElement(
5411
5397
  import_creatable.default,
5412
5398
  {
@@ -7396,11 +7382,13 @@ var PhoneInput = ({
7396
7382
  countryCodes,
7397
7383
  ...props
7398
7384
  }) => {
7385
+ var _a;
7399
7386
  const [phoneNumber, setPhoneNumber] = (0, import_react39.useState)("");
7400
- const [countryCode, setCountryCode] = (0, import_react39.useState)(props.preferredCountry);
7387
+ const [countryCode, setCountryCode] = (0, import_react39.useState)(
7388
+ props.preferredCountry || { label: "+966" }
7389
+ );
7401
7390
  const inputRef = (0, import_react39.useRef)(null);
7402
7391
  const handleInputChange = (e) => {
7403
- console.log("test e ", e.target.value);
7404
7392
  const validChars = /^[0-9-()]+$/;
7405
7393
  const input = e.target.value;
7406
7394
  if (input === "" || validChars.test(input)) {
@@ -7422,11 +7410,13 @@ var PhoneInput = ({
7422
7410
  isMulti: false,
7423
7411
  isSearchable: true,
7424
7412
  isClearable: false,
7425
- placeholder: "Code",
7413
+ placeholder: (_a = props.preferredCountry) == null ? void 0 : _a.label,
7426
7414
  options: countryCodes || countries_default,
7427
- onChange: setCountryCode,
7428
- value: countryCode == null ? void 0 : countryCode.label,
7429
- defaultValue: props.preferredCountry
7415
+ onChange: (e) => setCountryCode({ label: e.label, value: e.label }),
7416
+ valueKey: "label",
7417
+ labelKey: "label",
7418
+ value: { label: countryCode == null ? void 0 : countryCode.label, value: countryCode == null ? void 0 : countryCode.label },
7419
+ defaultValue: { label: countryCode == null ? void 0 : countryCode.label, value: countryCode == null ? void 0 : countryCode.label }
7430
7420
  }
7431
7421
  ), /* @__PURE__ */ import_react39.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_react39.default.createElement(
7432
7422
  "input",
@@ -7539,14 +7529,7 @@ var PinInputRoot = React50.forwardRef(({ className, containerClassName, ...props
7539
7529
  }
7540
7530
  ));
7541
7531
  PinInputRoot.displayName = "PinInputRoot";
7542
- var PinInputGroup = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
7543
- "div",
7544
- {
7545
- ref,
7546
- className: cn("hawa-flex hawa-items-center", className),
7547
- ...props
7548
- }
7549
- ));
7532
+ var PinInputGroup = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement("div", { ref, className: cn("hawa-flex hawa-items-center", className), ...props }));
7550
7533
  PinInputGroup.displayName = "PinInputGroup";
7551
7534
  var PinInputSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
7552
7535
  const pinInputContext = React50.useContext(import_input_otp.OTPInputContext);
@@ -7569,22 +7552,12 @@ var PinInputSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
7569
7552
  PinInputSlot.displayName = "PinInputSlot";
7570
7553
  var PinInputSeperator = React50.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React50.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React50.createElement(Dot, null)));
7571
7554
  PinInputSeperator.displayName = "PinInputSeperator";
7572
- var PinInput = ({
7573
- separatorPosition = 0,
7574
- ...props
7575
- }) => {
7555
+ var PinInput = ({ separatorPosition = 0, ...props }) => {
7576
7556
  const maxLength = props.maxLength || 6;
7577
7557
  const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
7578
7558
  const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
7579
7559
  const secondGroupLength = maxLength - firstGroupLength;
7580
- return /* @__PURE__ */ React50.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React50.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full hawa-gap-2" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(
7581
- PinInputSlot,
7582
- {
7583
- key: index,
7584
- index,
7585
- className: "hawa-w-full hawa-border"
7586
- }
7587
- ))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React50.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full hawa-gap-2" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(
7560
+ return /* @__PURE__ */ React50.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2", dir: "ltr" }, /* @__PURE__ */ React50.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full hawa-gap-2" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full hawa-border" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React50.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full hawa-gap-2" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(
7588
7561
  PinInputSlot,
7589
7562
  {
7590
7563
  key: index + firstGroupLength,
@@ -26,7 +26,7 @@ import {
26
26
  TabsList,
27
27
  TabsTrigger,
28
28
  Textarea
29
- } from "../chunk-QLUJEUIB.mjs";
29
+ } from "../chunk-342KIV4R.mjs";
30
30
  import {
31
31
  useClipboard
32
32
  } from "../chunk-WL7C2A5D.mjs";
@@ -41,7 +41,7 @@ import {
41
41
  SheetPortal,
42
42
  SheetTitle,
43
43
  SheetTrigger
44
- } from "../chunk-CIMTNOLA.mjs";
44
+ } from "../chunk-WUMDFBEK.mjs";
45
45
  import {
46
46
  Button,
47
47
  Card,
@@ -81,7 +81,7 @@ import {
81
81
  buttonVariants,
82
82
  calculateLuminance,
83
83
  cn
84
- } from "../chunk-HJVL6X7I.mjs";
84
+ } from "../chunk-6SJUUJOV.mjs";
85
85
  import {
86
86
  __require
87
87
  } from "../chunk-2LUXOXAL.mjs";
package/dist/index.d.mts CHANGED
@@ -884,6 +884,7 @@ type SelectTypes = {
884
884
  hideHelperText?: boolean;
885
885
  options: SelectOptionProps[];
886
886
  labelKey?: string;
887
+ valueKey?: string;
887
888
  isCreatable?: boolean;
888
889
  isClearable?: boolean;
889
890
  isMulti?: boolean;
@@ -968,19 +969,19 @@ type BadgeTypes = {
968
969
  declare const Badge: FC<BadgeTypes>;
969
970
  declare const BadgedComponent: ({ children, className, hideBadge, position, size, text, }: any) => React__default.JSX.Element;
970
971
 
972
+ type PhoneCodeValue = {
973
+ label: string;
974
+ value?: string;
975
+ };
971
976
  type PhoneInputProps = {
972
- preferredCountry?: {
973
- label: string;
974
- };
977
+ preferredCountry?: PhoneCodeValue;
975
978
  helperText?: any;
976
979
  label?: string;
977
980
  labelProps?: LabelProps;
978
981
  placeholder?: string;
979
982
  handleChange?: (value: string) => void;
980
983
  inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
981
- countryCodes?: {
982
- label: string;
983
- }[];
984
+ countryCodes?: PhoneCodeValue[];
984
985
  };
985
986
  declare const PhoneInput: FC<PhoneInputProps>;
986
987
 
@@ -1862,7 +1863,7 @@ declare const ResetPasswordForm: FC<ResetPasswordType>;
1862
1863
 
1863
1864
  type TConfirmation = {
1864
1865
  texts?: {
1865
- checkYourPhone?: string;
1866
+ checkYourIdentifier?: string;
1866
1867
  weSentCode?: string;
1867
1868
  didntGetCode?: string;
1868
1869
  resendCode?: string;
@@ -1876,7 +1877,7 @@ type TConfirmation = {
1876
1877
  showError?: any;
1877
1878
  errorTitle?: any;
1878
1879
  errorText?: any;
1879
- phoneNumber?: string;
1880
+ identifier?: string;
1880
1881
  confirmLoading?: boolean;
1881
1882
  onConfirm?: any;
1882
1883
  onResend?: any;
@@ -2324,4 +2325,4 @@ declare function useViewportSize(): {
2324
2325
  height: number;
2325
2326
  };
2326
2327
 
2327
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, type InputFieldProps, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useViewportSize, useWindowEvent, useWindowSize };
2328
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, type InputFieldProps, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, type PhoneCodeValue, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useViewportSize, useWindowEvent, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -884,6 +884,7 @@ type SelectTypes = {
884
884
  hideHelperText?: boolean;
885
885
  options: SelectOptionProps[];
886
886
  labelKey?: string;
887
+ valueKey?: string;
887
888
  isCreatable?: boolean;
888
889
  isClearable?: boolean;
889
890
  isMulti?: boolean;
@@ -968,19 +969,19 @@ type BadgeTypes = {
968
969
  declare const Badge: FC<BadgeTypes>;
969
970
  declare const BadgedComponent: ({ children, className, hideBadge, position, size, text, }: any) => React__default.JSX.Element;
970
971
 
972
+ type PhoneCodeValue = {
973
+ label: string;
974
+ value?: string;
975
+ };
971
976
  type PhoneInputProps = {
972
- preferredCountry?: {
973
- label: string;
974
- };
977
+ preferredCountry?: PhoneCodeValue;
975
978
  helperText?: any;
976
979
  label?: string;
977
980
  labelProps?: LabelProps;
978
981
  placeholder?: string;
979
982
  handleChange?: (value: string) => void;
980
983
  inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
981
- countryCodes?: {
982
- label: string;
983
- }[];
984
+ countryCodes?: PhoneCodeValue[];
984
985
  };
985
986
  declare const PhoneInput: FC<PhoneInputProps>;
986
987
 
@@ -1862,7 +1863,7 @@ declare const ResetPasswordForm: FC<ResetPasswordType>;
1862
1863
 
1863
1864
  type TConfirmation = {
1864
1865
  texts?: {
1865
- checkYourPhone?: string;
1866
+ checkYourIdentifier?: string;
1866
1867
  weSentCode?: string;
1867
1868
  didntGetCode?: string;
1868
1869
  resendCode?: string;
@@ -1876,7 +1877,7 @@ type TConfirmation = {
1876
1877
  showError?: any;
1877
1878
  errorTitle?: any;
1878
1879
  errorText?: any;
1879
- phoneNumber?: string;
1880
+ identifier?: string;
1880
1881
  confirmLoading?: boolean;
1881
1882
  onConfirm?: any;
1882
1883
  onResend?: any;
@@ -2324,4 +2325,4 @@ declare function useViewportSize(): {
2324
2325
  height: number;
2325
2326
  };
2326
2327
 
2327
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, type InputFieldProps, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useViewportSize, useWindowEvent, useWindowSize };
2328
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppCommand, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, FullCommand, type FullCommandItem, HorizontalPricing, type Hotkey, type HotkeyItem, type HotkeyItemOptions, Input, type InputFieldProps, InterfaceSettings, ItemCard, type KeyboardModifiers, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, type PhoneCodeValue, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, PinInputGroup, PinInputRoot, PinInputSeperator, PinInputSlot, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, getHotkeyHandler, getHotkeyMatcher, navigationMenuTriggerStyle, parseHotkey, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useShortcuts, useTabs, useToast, useViewportSize, useWindowEvent, useWindowSize };