@sikka/hawa 0.43.6-next → 0.45.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.
- package/dist/blocks/auth/index.d.mts +3 -2
- package/dist/blocks/auth/index.d.ts +3 -2
- package/dist/blocks/auth/index.js +62 -34
- package/dist/blocks/auth/index.mjs +44 -23
- package/dist/blocks/feedback/index.js +35 -20
- package/dist/blocks/feedback/index.mjs +2 -2
- package/dist/blocks/index.d.mts +5 -2
- package/dist/blocks/index.d.ts +5 -2
- package/dist/blocks/index.js +164 -56
- package/dist/blocks/index.mjs +45 -15
- package/dist/blocks/misc/index.d.mts +2 -0
- package/dist/blocks/misc/index.d.ts +2 -0
- package/dist/blocks/misc/index.js +97 -18
- package/dist/blocks/misc/index.mjs +79 -7
- package/dist/blocks/pricing/index.js +16 -8
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-DYYINLRJ.mjs → chunk-LMYT23CT.mjs} +19 -12
- package/dist/{chunk-A6PONMZ6.mjs → chunk-OE6XZ6LW.mjs} +16 -8
- package/dist/{chunk-VVUNGE7V.mjs → chunk-QMNXTGM4.mjs} +66 -44
- package/dist/datePicker/index.js +10 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +10 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.js +66 -44
- package/dist/elements/index.mjs +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +109 -59
- package/dist/index.mjs +109 -59
- package/dist/interfaceSettings/index.js +16 -8
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +16 -8
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +19 -12
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +19 -12
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +22 -15
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +22 -15
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/radio/index.js +16 -8
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +16 -8
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +19 -12
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +19 -12
- package/dist/select/index.mjs.map +1 -1
- package/package.json +11 -11
@@ -1898,13 +1898,21 @@ var Select = ({
|
|
1898
1898
|
children
|
1899
1899
|
);
|
1900
1900
|
};
|
1901
|
-
const Option = ({
|
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
|
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: () =>
|
1974
|
+
placeholder: () => cn(
|
1975
|
+
selectPlaceholderStyles,
|
1976
|
+
props.disabled && "hawa-text-muted-foreground"
|
1977
|
+
),
|
1968
1978
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
1969
|
-
singleValue: () =>
|
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
|
{
|