@momo-kits/stepper 0.169.18 → 0.169.19-beta.6
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/NumberView.tsx +5 -4
- package/package.json +1 -1
package/NumberView.tsx
CHANGED
|
@@ -18,8 +18,9 @@ const NumberView: FC<StepperValueProps> = ({
|
|
|
18
18
|
componentId,
|
|
19
19
|
}) => {
|
|
20
20
|
const { theme } = useContext(ApplicationContext);
|
|
21
|
-
const
|
|
22
|
-
const
|
|
21
|
+
const scaledSize32 = useScaleSize(32);
|
|
22
|
+
const scaledSize28 = useScaleSize(28);
|
|
23
|
+
const scaledSize24 = useScaleSize(24);
|
|
23
24
|
const scaledFontSize = useScaleSize(12);
|
|
24
25
|
const numberFontFamily = exportFontFamily('regular');
|
|
25
26
|
|
|
@@ -38,9 +39,9 @@ const NumberView: FC<StepperValueProps> = ({
|
|
|
38
39
|
|
|
39
40
|
const isLarge = size === 'large';
|
|
40
41
|
const isWeb = Platform.OS === 'web';
|
|
41
|
-
const inputWidth = isLarge ?
|
|
42
|
+
const inputWidth = isLarge ? scaledSize32 : scaledSize28;
|
|
42
43
|
const sizeStyle = {
|
|
43
|
-
height: isLarge ?
|
|
44
|
+
height: isLarge ? scaledSize28 : scaledSize24,
|
|
44
45
|
...(isWeb ? { width: inputWidth } : { minWidth: inputWidth }),
|
|
45
46
|
};
|
|
46
47
|
return (
|