@trafilea/afrodita-components 5.0.0-beta.302 → 5.0.0-beta.304
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/build/index.d.ts +2 -0
- package/build/index.esm.js +6 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -4
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +2 -0
- package/build/theme/shapermint.theme.d.ts +2 -0
- package/build/theme/thespadr.theme.d.ts +2 -0
- package/build/theme/truekind.theme.d.ts +2 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1719,10 +1719,12 @@ declare type ThemeComponent = {
|
|
|
1719
1719
|
optionPadding: string;
|
|
1720
1720
|
color: string;
|
|
1721
1721
|
fill: string;
|
|
1722
|
+
borderWidth?: string;
|
|
1722
1723
|
options: {
|
|
1723
1724
|
borderColor: string;
|
|
1724
1725
|
color: string;
|
|
1725
1726
|
borderRadius: string;
|
|
1727
|
+
backgroundColor?: string;
|
|
1726
1728
|
};
|
|
1727
1729
|
};
|
|
1728
1730
|
modal: {
|
package/build/index.esm.js
CHANGED
|
@@ -4623,7 +4623,7 @@ var DropdownOptions$1 = newStyled(BaseSelect$1.Options)(function (_a) {
|
|
|
4623
4623
|
display: 'flex',
|
|
4624
4624
|
flexDirection: 'column',
|
|
4625
4625
|
alignItems: 'flex-start',
|
|
4626
|
-
border: "0.063rem solid ".concat(theme.component.dropdown.options.borderColor),
|
|
4626
|
+
border: "".concat(theme.component.dropdown.borderWidth || '0.063rem', " solid ").concat(theme.component.dropdown.options.borderColor),
|
|
4627
4627
|
boxSizing: 'border-box',
|
|
4628
4628
|
borderRadius: theme.component.dropdown.options.borderRadius,
|
|
4629
4629
|
background: theme.colors.shades.white.color,
|
|
@@ -4821,11 +4821,13 @@ var CustomOption = newStyled.li(function (_a) {
|
|
|
4821
4821
|
cursor: 'pointer',
|
|
4822
4822
|
padding: theme.component.dropdown.optionPadding,
|
|
4823
4823
|
justifyContent: 'flex-start',
|
|
4824
|
-
borderRadius: 'inherit',
|
|
4824
|
+
borderRadius: theme.component.dropdown.options.borderRadius || 'inherit',
|
|
4825
4825
|
width: '100%',
|
|
4826
4826
|
boxSizing: 'border-box',
|
|
4827
4827
|
fontWeight: selected ? 600 : 'inherit',
|
|
4828
|
-
backgroundColor: active
|
|
4828
|
+
backgroundColor: active
|
|
4829
|
+
? theme.component.dropdown.options.backgroundColor || theme.colors.shades['10'].color
|
|
4830
|
+
: 'inherit',
|
|
4829
4831
|
});
|
|
4830
4832
|
});
|
|
4831
4833
|
function BaseDropdownOption(_a) {
|
|
@@ -14046,8 +14048,8 @@ function usePreventVerticalScroll(ref, dragThreshold) {
|
|
|
14046
14048
|
if (Math.abs(clientX.current) > dragThreshold) {
|
|
14047
14049
|
if (e.cancelable) {
|
|
14048
14050
|
e.preventDefault();
|
|
14051
|
+
e.returnValue = false;
|
|
14049
14052
|
}
|
|
14050
|
-
e.returnValue = false;
|
|
14051
14053
|
return false;
|
|
14052
14054
|
}
|
|
14053
14055
|
return true;
|