@sikka/hawa 0.44.0-next → 0.45.1-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/blocks/auth/index.d.mts +3 -2
  2. package/dist/blocks/auth/index.d.ts +3 -2
  3. package/dist/blocks/auth/index.js +63 -34
  4. package/dist/blocks/auth/index.mjs +44 -23
  5. package/dist/blocks/feedback/index.js +22 -13
  6. package/dist/blocks/feedback/index.mjs +2 -2
  7. package/dist/blocks/index.d.mts +5 -2
  8. package/dist/blocks/index.d.ts +5 -2
  9. package/dist/blocks/index.js +143 -41
  10. package/dist/blocks/index.mjs +45 -15
  11. package/dist/blocks/misc/index.d.mts +2 -0
  12. package/dist/blocks/misc/index.d.ts +2 -0
  13. package/dist/blocks/misc/index.js +98 -18
  14. package/dist/blocks/misc/index.mjs +79 -7
  15. package/dist/blocks/pricing/index.js +2 -1
  16. package/dist/blocks/pricing/index.mjs +1 -1
  17. package/dist/{chunk-DYYINLRJ.mjs → chunk-D3B3MKLS.mjs} +20 -12
  18. package/dist/{chunk-MEXJAHQV.mjs → chunk-QOVVJCFE.mjs} +44 -28
  19. package/dist/{chunk-OE6XZ6LW.mjs → chunk-YABFWOF3.mjs} +2 -1
  20. package/dist/elements/index.js +44 -28
  21. package/dist/elements/index.mjs +1 -1
  22. package/dist/index.css +4 -1
  23. package/dist/index.d.mts +5 -2
  24. package/dist/index.d.ts +5 -2
  25. package/dist/index.js +85 -41
  26. package/dist/index.mjs +85 -41
  27. package/dist/interfaceSettings/index.js +2 -1
  28. package/dist/interfaceSettings/index.js.map +1 -1
  29. package/dist/interfaceSettings/index.mjs +2 -1
  30. package/dist/interfaceSettings/index.mjs.map +1 -1
  31. package/dist/phoneInput/index.js +20 -12
  32. package/dist/phoneInput/index.js.map +1 -1
  33. package/dist/phoneInput/index.mjs +20 -12
  34. package/dist/phoneInput/index.mjs.map +1 -1
  35. package/dist/pinInput/index.js +22 -15
  36. package/dist/pinInput/index.js.map +1 -1
  37. package/dist/pinInput/index.mjs +22 -15
  38. package/dist/pinInput/index.mjs.map +1 -1
  39. package/dist/radio/index.js +2 -1
  40. package/dist/radio/index.js.map +1 -1
  41. package/dist/radio/index.mjs +2 -1
  42. package/dist/radio/index.mjs.map +1 -1
  43. package/dist/select/index.js +20 -12
  44. package/dist/select/index.js.map +1 -1
  45. package/dist/select/index.mjs +20 -12
  46. package/dist/select/index.mjs.map +1 -1
  47. package/package.json +11 -11
@@ -1898,13 +1898,21 @@ var Select = ({
1898
1898
  children
1899
1899
  );
1900
1900
  };
1901
- const Option = ({ children, innerProps, innerRef }) => {
1901
+ const Option = ({
1902
+ children,
1903
+ innerProps,
1904
+ innerRef,
1905
+ isFocused,
1906
+ isSelected
1907
+ }) => {
1902
1908
  return /* @__PURE__ */ React5.createElement(
1903
1909
  "div",
1904
1910
  {
1905
1911
  ref: innerRef,
1906
1912
  className: cn(
1907
- "hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hawa-transition-all hover:hawa-bg-primary hover:hawa-text-primary-foreground"
1913
+ "hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hawa-transition-all",
1914
+ isFocused ? "hawa-bg-accent hawa-text-bg-accent-foreground" : "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1915
+ isSelected && "hawa-bg-primary hawa-text-primary-foreground"
1908
1916
  ),
1909
1917
  ...innerProps
1910
1918
  },
@@ -1961,15 +1969,20 @@ var Select = ({
1961
1969
  container: () => cn(
1962
1970
  selectContainerStyles,
1963
1971
  props.phoneCode && phoneCodeStyles,
1964
- props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
1965
1972
  props.isMulti && "hawa-ps-0 "
1966
1973
  ),
1967
- placeholder: () => selectPlaceholderStyles,
1974
+ placeholder: () => cn(
1975
+ selectPlaceholderStyles,
1976
+ props.disabled && "hawa-text-muted-foreground"
1977
+ ),
1968
1978
  valueContainer: () => "hawa-text-foreground hawa-px-1 ",
1969
- singleValue: () => "hawa-text-foreground",
1979
+ singleValue: () => cn(
1980
+ props.disabled ? "hawa-text-muted-foreground hawa-opacity-30" : "hawa-text-foreground"
1981
+ ),
1970
1982
  indicatorsContainer: () => cn(
1971
1983
  selectIndicatorContainerStyles,
1972
- props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
1984
+ props.hideIndicator ? "hawa-invisible" : "hawa-px-1",
1985
+ props.disabled && "hawa-opacity-30"
1973
1986
  )
1974
1987
  },
1975
1988
  unstyled: true,
@@ -1977,12 +1990,6 @@ var Select = ({
1977
1990
  components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
1978
1991
  Option,
1979
1992
  Menu,
1980
- // Control: (e) => (
1981
- // <div
1982
- // className={cn(e.className, "hawa-flex hawa-flex-row")}
1983
- // {...e}
1984
- // />
1985
- // ),
1986
1993
  ValueContainer: (e) => /* @__PURE__ */ React5.createElement(
1987
1994
  "div",
1988
1995
  {
@@ -2005,6 +2012,7 @@ var Select = ({
2005
2012
  options: props.options,
2006
2013
  getOptionLabel: props.getOptionLabel,
2007
2014
  defaultValue: props.defaultValue,
2015
+ value: props.value,
2008
2016
  placeholder: props.placeholder,
2009
2017
  isDisabled: props.disabled,
2010
2018
  isClearable: props.isClearable,