@sikka/hawa 0.31.4-next → 0.31.6-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 (40) hide show
  1. package/dist/{Radio-bhKmANMf.d.ts → Radio-3B8RZYJA.d.ts} +1 -1
  2. package/dist/{Radio-9MkZay6D.d.mts → Radio-L369ID7b.d.mts} +1 -1
  3. package/dist/blocks/auth/index.js +39 -5
  4. package/dist/blocks/auth/index.mjs +1 -1
  5. package/dist/blocks/feedback/index.js +39 -5
  6. package/dist/blocks/feedback/index.mjs +1 -1
  7. package/dist/blocks/index.d.mts +1 -1
  8. package/dist/blocks/index.d.ts +1 -1
  9. package/dist/blocks/index.js +39 -5
  10. package/dist/blocks/index.mjs +1 -1
  11. package/dist/blocks/misc/index.js +39 -5
  12. package/dist/blocks/misc/index.mjs +1 -1
  13. package/dist/{chunk-6HRJIMXY.mjs → chunk-NPD4FUIM.mjs} +39 -5
  14. package/dist/{chunk-34LNWMOZ.mjs → chunk-WAVKQ44V.mjs} +39 -5
  15. package/dist/combobox/index.d.mts +1 -0
  16. package/dist/combobox/index.d.ts +1 -0
  17. package/dist/combobox/index.js +5 -4
  18. package/dist/combobox/index.js.map +1 -1
  19. package/dist/combobox/index.mjs +5 -4
  20. package/dist/combobox/index.mjs.map +1 -1
  21. package/dist/elements/index.d.mts +3 -2
  22. package/dist/elements/index.d.ts +3 -2
  23. package/dist/elements/index.js +44 -9
  24. package/dist/elements/index.mjs +6 -5
  25. package/dist/index.css +6 -0
  26. package/dist/index.d.mts +2 -1
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.js +44 -9
  29. package/dist/index.mjs +44 -9
  30. package/dist/phoneInput/index.js +39 -5
  31. package/dist/phoneInput/index.js.map +1 -1
  32. package/dist/phoneInput/index.mjs +39 -5
  33. package/dist/phoneInput/index.mjs.map +1 -1
  34. package/dist/select/index.d.mts +1 -1
  35. package/dist/select/index.d.ts +1 -1
  36. package/dist/select/index.js +39 -5
  37. package/dist/select/index.js.map +1 -1
  38. package/dist/select/index.mjs +39 -5
  39. package/dist/select/index.mjs.map +1 -1
  40. package/package.json +13 -13
@@ -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-9MkZay6D.mjs';
17
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-9MkZay6D.mjs';
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';
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';
@@ -434,6 +434,7 @@ type ComboboxTypes<T> = {
434
434
  isRequired?: boolean;
435
435
  onChange?: (e: any) => void;
436
436
  renderOption?: (item: T) => React.ReactNode;
437
+ renderSelected?: (item: T) => React.ReactNode;
437
438
  };
438
439
  declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
439
440
 
@@ -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-bhKmANMf.js';
17
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-bhKmANMf.js';
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';
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';
@@ -434,6 +434,7 @@ type ComboboxTypes<T> = {
434
434
  isRequired?: boolean;
435
435
  onChange?: (e: any) => void;
436
436
  renderOption?: (item: T) => React.ReactNode;
437
+ renderSelected?: (item: T) => React.ReactNode;
437
438
  };
438
439
  declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
439
440
 
@@ -3643,6 +3643,7 @@ var Combobox = React27.forwardRef(
3643
3643
  inputProps,
3644
3644
  data,
3645
3645
  renderOption,
3646
+ renderSelected,
3646
3647
  ...props
3647
3648
  }, ref) => {
3648
3649
  var _a, _b, _c;
@@ -3657,6 +3658,9 @@ var Combobox = React27.forwardRef(
3657
3658
  setOpen(open2);
3658
3659
  }
3659
3660
  };
3661
+ const selectedItem = data.find(
3662
+ (item) => getProperty(item, valueKey) === value
3663
+ );
3660
3664
  return /* @__PURE__ */ React27.createElement(
3661
3665
  "div",
3662
3666
  {
@@ -3686,10 +3690,7 @@ var Combobox = React27.forwardRef(
3686
3690
  props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
3687
3691
  )
3688
3692
  },
3689
- value ? getProperty(
3690
- data.find((item) => item[valueKey] === value) || {},
3691
- labelKey
3692
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3693
+ selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3693
3694
  /* @__PURE__ */ React27.createElement(
3694
3695
  "svg",
3695
3696
  {
@@ -4496,22 +4497,56 @@ var Select = ({
4496
4497
  props.controlClassNames
4497
4498
  ),
4498
4499
  container: () => cn(
4499
- "hawa-rounded",
4500
- props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4500
+ "hawa-rounded ",
4501
+ props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4501
4502
  "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
4502
- props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
4503
+ props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
4504
+ props.isMulti && "hawa-ps-0 "
4503
4505
  ),
4504
4506
  placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
4505
4507
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
4506
4508
  singleValue: () => "hawa-text-foreground",
4507
4509
  indicatorsContainer: () => cn(
4508
- "hawa-cursor-pointer hawa-text-muted-foreground",
4510
+ "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
4509
4511
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
4510
4512
  )
4511
4513
  },
4512
4514
  unstyled: true,
4513
4515
  autoFocus: true,
4514
- components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : { Option, Menu },
4516
+ components: props.hideIndicator ? {
4517
+ Option,
4518
+ Menu,
4519
+ IndicatorsContainer: () => null
4520
+ } : {
4521
+ Option,
4522
+ Menu,
4523
+ // Control: (e) => (
4524
+ // <div
4525
+ // className={cn(e.className, "hawa-flex hawa-flex-row")}
4526
+ // {...e}
4527
+ // />
4528
+ // ),
4529
+ ValueContainer: (e) => /* @__PURE__ */ import_react29.default.createElement(
4530
+ "div",
4531
+ {
4532
+ className: cn(
4533
+ e.className,
4534
+ "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-1"
4535
+ ),
4536
+ ...e
4537
+ }
4538
+ ),
4539
+ MultiValueContainer: (e) => /* @__PURE__ */ import_react29.default.createElement(
4540
+ "div",
4541
+ {
4542
+ className: cn(
4543
+ // e.className,
4544
+ "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
4545
+ ),
4546
+ ...e
4547
+ }
4548
+ )
4549
+ },
4515
4550
  onChange: (newValue, action) => props.onChange(newValue, action),
4516
4551
  options: props.options,
4517
4552
  getOptionLabel: props.getOptionLabel,
@@ -27,7 +27,7 @@ import {
27
27
  TabsTrigger,
28
28
  Textarea,
29
29
  UncheckMark
30
- } from "../chunk-6HRJIMXY.mjs";
30
+ } from "../chunk-NPD4FUIM.mjs";
31
31
  import {
32
32
  useClipboard
33
33
  } from "../chunk-R2SKHHDK.mjs";
@@ -1479,6 +1479,7 @@ var Combobox = React13.forwardRef(
1479
1479
  inputProps,
1480
1480
  data,
1481
1481
  renderOption,
1482
+ renderSelected,
1482
1483
  ...props
1483
1484
  }, ref) => {
1484
1485
  var _a, _b, _c;
@@ -1493,6 +1494,9 @@ var Combobox = React13.forwardRef(
1493
1494
  setOpen(open2);
1494
1495
  }
1495
1496
  };
1497
+ const selectedItem = data.find(
1498
+ (item) => getProperty(item, valueKey) === value
1499
+ );
1496
1500
  return /* @__PURE__ */ React13.createElement(
1497
1501
  "div",
1498
1502
  {
@@ -1522,10 +1526,7 @@ var Combobox = React13.forwardRef(
1522
1526
  props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
1523
1527
  )
1524
1528
  },
1525
- value ? getProperty(
1526
- data.find((item) => item[valueKey] === value) || {},
1527
- labelKey
1528
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
1529
+ selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
1529
1530
  /* @__PURE__ */ React13.createElement(
1530
1531
  "svg",
1531
1532
  {
package/dist/index.css CHANGED
@@ -1021,6 +1021,9 @@ input[type="number"]::-webkit-inner-spin-button,
1021
1021
  .hawa-bottom-4 {
1022
1022
  bottom: 1rem;
1023
1023
  }
1024
+ .hawa-bottom-\[50\%\] {
1025
+ bottom: 50%;
1026
+ }
1024
1027
  .hawa-bottom-\[62px\] {
1025
1028
  bottom: 62px;
1026
1029
  }
@@ -2682,6 +2685,9 @@ input[type="number"]::-webkit-inner-spin-button,
2682
2685
  .hawa-pr-2 {
2683
2686
  padding-right: 0.5rem;
2684
2687
  }
2688
+ .hawa-ps-0 {
2689
+ padding-inline-start: 0px;
2690
+ }
2685
2691
  .hawa-ps-9 {
2686
2692
  padding-inline-start: 2.25rem;
2687
2693
  }
package/dist/index.d.mts CHANGED
@@ -597,6 +597,7 @@ type ComboboxTypes<T> = {
597
597
  isRequired?: boolean;
598
598
  onChange?: (e: any) => void;
599
599
  renderOption?: (item: T) => React$1.ReactNode;
600
+ renderSelected?: (item: T) => React$1.ReactNode;
600
601
  };
601
602
  declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
602
603
 
@@ -772,7 +773,7 @@ type SelectTypes = {
772
773
  isSearchable?: boolean;
773
774
  controlClassNames?: string;
774
775
  containerClassNames?: string;
775
- onChange?: any;
776
+ onChange: any;
776
777
  helperText?: string;
777
778
  onInputChange?: any;
778
779
  native?: any;
package/dist/index.d.ts CHANGED
@@ -597,6 +597,7 @@ type ComboboxTypes<T> = {
597
597
  isRequired?: boolean;
598
598
  onChange?: (e: any) => void;
599
599
  renderOption?: (item: T) => React$1.ReactNode;
600
+ renderSelected?: (item: T) => React$1.ReactNode;
600
601
  };
601
602
  declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
602
603
 
@@ -772,7 +773,7 @@ type SelectTypes = {
772
773
  isSearchable?: boolean;
773
774
  controlClassNames?: string;
774
775
  containerClassNames?: string;
775
- onChange?: any;
776
+ onChange: any;
776
777
  helperText?: string;
777
778
  onInputChange?: any;
778
779
  native?: any;
package/dist/index.js CHANGED
@@ -3711,6 +3711,7 @@ var Combobox = React27.forwardRef(
3711
3711
  inputProps,
3712
3712
  data,
3713
3713
  renderOption,
3714
+ renderSelected,
3714
3715
  ...props
3715
3716
  }, ref) => {
3716
3717
  var _a, _b, _c;
@@ -3725,6 +3726,9 @@ var Combobox = React27.forwardRef(
3725
3726
  setOpen(open2);
3726
3727
  }
3727
3728
  };
3729
+ const selectedItem = data.find(
3730
+ (item) => getProperty(item, valueKey) === value
3731
+ );
3728
3732
  return /* @__PURE__ */ React27.createElement(
3729
3733
  "div",
3730
3734
  {
@@ -3754,10 +3758,7 @@ var Combobox = React27.forwardRef(
3754
3758
  props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
3755
3759
  )
3756
3760
  },
3757
- value ? getProperty(
3758
- data.find((item) => item[valueKey] === value) || {},
3759
- labelKey
3760
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3761
+ selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3761
3762
  /* @__PURE__ */ React27.createElement(
3762
3763
  "svg",
3763
3764
  {
@@ -4874,22 +4875,56 @@ var Select = ({
4874
4875
  props.controlClassNames
4875
4876
  ),
4876
4877
  container: () => cn(
4877
- "hawa-rounded",
4878
- props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4878
+ "hawa-rounded ",
4879
+ props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4879
4880
  "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
4880
- props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
4881
+ props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
4882
+ props.isMulti && "hawa-ps-0 "
4881
4883
  ),
4882
4884
  placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
4883
4885
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
4884
4886
  singleValue: () => "hawa-text-foreground",
4885
4887
  indicatorsContainer: () => cn(
4886
- "hawa-cursor-pointer hawa-text-muted-foreground",
4888
+ "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
4887
4889
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
4888
4890
  )
4889
4891
  },
4890
4892
  unstyled: true,
4891
4893
  autoFocus: true,
4892
- components: props.hideIndicator ? { Option, Menu: Menu2, IndicatorsContainer: () => null } : { Option, Menu: Menu2 },
4894
+ components: props.hideIndicator ? {
4895
+ Option,
4896
+ Menu: Menu2,
4897
+ IndicatorsContainer: () => null
4898
+ } : {
4899
+ Option,
4900
+ Menu: Menu2,
4901
+ // Control: (e) => (
4902
+ // <div
4903
+ // className={cn(e.className, "hawa-flex hawa-flex-row")}
4904
+ // {...e}
4905
+ // />
4906
+ // ),
4907
+ ValueContainer: (e) => /* @__PURE__ */ import_react29.default.createElement(
4908
+ "div",
4909
+ {
4910
+ className: cn(
4911
+ e.className,
4912
+ "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-1"
4913
+ ),
4914
+ ...e
4915
+ }
4916
+ ),
4917
+ MultiValueContainer: (e) => /* @__PURE__ */ import_react29.default.createElement(
4918
+ "div",
4919
+ {
4920
+ className: cn(
4921
+ // e.className,
4922
+ "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
4923
+ ),
4924
+ ...e
4925
+ }
4926
+ )
4927
+ },
4893
4928
  onChange: (newValue, action) => props.onChange(newValue, action),
4894
4929
  options: props.options,
4895
4930
  getOptionLabel: props.getOptionLabel,
package/dist/index.mjs CHANGED
@@ -3481,6 +3481,7 @@ var Combobox = React27.forwardRef(
3481
3481
  inputProps,
3482
3482
  data,
3483
3483
  renderOption,
3484
+ renderSelected,
3484
3485
  ...props
3485
3486
  }, ref) => {
3486
3487
  var _a, _b, _c;
@@ -3495,6 +3496,9 @@ var Combobox = React27.forwardRef(
3495
3496
  setOpen(open2);
3496
3497
  }
3497
3498
  };
3499
+ const selectedItem = data.find(
3500
+ (item) => getProperty(item, valueKey) === value
3501
+ );
3498
3502
  return /* @__PURE__ */ React27.createElement(
3499
3503
  "div",
3500
3504
  {
@@ -3524,10 +3528,7 @@ var Combobox = React27.forwardRef(
3524
3528
  props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
3525
3529
  )
3526
3530
  },
3527
- value ? getProperty(
3528
- data.find((item) => item[valueKey] === value) || {},
3529
- labelKey
3530
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3531
+ selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
3531
3532
  /* @__PURE__ */ React27.createElement(
3532
3533
  "svg",
3533
3534
  {
@@ -4644,22 +4645,56 @@ var Select = ({
4644
4645
  props.controlClassNames
4645
4646
  ),
4646
4647
  container: () => cn(
4647
- "hawa-rounded",
4648
- props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4648
+ "hawa-rounded ",
4649
+ props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
4649
4650
  "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
4650
- props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
4651
+ props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
4652
+ props.isMulti && "hawa-ps-0 "
4651
4653
  ),
4652
4654
  placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
4653
4655
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
4654
4656
  singleValue: () => "hawa-text-foreground",
4655
4657
  indicatorsContainer: () => cn(
4656
- "hawa-cursor-pointer hawa-text-muted-foreground",
4658
+ "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
4657
4659
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
4658
4660
  )
4659
4661
  },
4660
4662
  unstyled: true,
4661
4663
  autoFocus: true,
4662
- components: props.hideIndicator ? { Option, Menu: Menu2, IndicatorsContainer: () => null } : { Option, Menu: Menu2 },
4664
+ components: props.hideIndicator ? {
4665
+ Option,
4666
+ Menu: Menu2,
4667
+ IndicatorsContainer: () => null
4668
+ } : {
4669
+ Option,
4670
+ Menu: Menu2,
4671
+ // Control: (e) => (
4672
+ // <div
4673
+ // className={cn(e.className, "hawa-flex hawa-flex-row")}
4674
+ // {...e}
4675
+ // />
4676
+ // ),
4677
+ ValueContainer: (e) => /* @__PURE__ */ React41.createElement(
4678
+ "div",
4679
+ {
4680
+ className: cn(
4681
+ e.className,
4682
+ "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-1"
4683
+ ),
4684
+ ...e
4685
+ }
4686
+ ),
4687
+ MultiValueContainer: (e) => /* @__PURE__ */ React41.createElement(
4688
+ "div",
4689
+ {
4690
+ className: cn(
4691
+ // e.className,
4692
+ "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
4693
+ ),
4694
+ ...e
4695
+ }
4696
+ )
4697
+ },
4663
4698
  onChange: (newValue, action) => props.onChange(newValue, action),
4664
4699
  options: props.options,
4665
4700
  getOptionLabel: props.getOptionLabel,
@@ -1975,22 +1975,56 @@ var Select = ({
1975
1975
  props.controlClassNames
1976
1976
  ),
1977
1977
  container: () => cn(
1978
- "hawa-rounded",
1979
- props.phoneCode && "hawa-w-fit hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
1978
+ "hawa-rounded ",
1979
+ props.phoneCode && "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px] ",
1980
1980
  "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
1981
- props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer"
1981
+ props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
1982
+ props.isMulti && "hawa-ps-0 "
1982
1983
  ),
1983
1984
  placeholder: () => "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1",
1984
1985
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
1985
1986
  singleValue: () => "hawa-text-foreground",
1986
1987
  indicatorsContainer: () => cn(
1987
- "hawa-cursor-pointer hawa-text-muted-foreground",
1988
+ "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ",
1988
1989
  props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
1989
1990
  )
1990
1991
  },
1991
1992
  unstyled: true,
1992
1993
  autoFocus: true,
1993
- components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : { Option, Menu },
1994
+ components: props.hideIndicator ? {
1995
+ Option,
1996
+ Menu,
1997
+ IndicatorsContainer: () => null
1998
+ } : {
1999
+ Option,
2000
+ Menu,
2001
+ // Control: (e) => (
2002
+ // <div
2003
+ // className={cn(e.className, "hawa-flex hawa-flex-row")}
2004
+ // {...e}
2005
+ // />
2006
+ // ),
2007
+ ValueContainer: (e) => /* @__PURE__ */ import_react3.default.createElement(
2008
+ "div",
2009
+ {
2010
+ className: cn(
2011
+ e.className,
2012
+ "hawa-gap-1 hawa-flex hawa-flex-row hawa-flex-wrap hawa-p-1"
2013
+ ),
2014
+ ...e
2015
+ }
2016
+ ),
2017
+ MultiValueContainer: (e) => /* @__PURE__ */ import_react3.default.createElement(
2018
+ "div",
2019
+ {
2020
+ className: cn(
2021
+ // e.className,
2022
+ "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
2023
+ ),
2024
+ ...e
2025
+ }
2026
+ )
2027
+ },
1994
2028
  onChange: (newValue, action) => props.onChange(newValue, action),
1995
2029
  options: props.options,
1996
2030
  getOptionLabel: props.getOptionLabel,