@momo-kits/stepper 0.169.16-beta.7 → 0.169.17-beta.7

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 (2) hide show
  1. package/NumberView.tsx +5 -4
  2. package/package.json +7 -7
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 scaledHeight28 = useScaleSize(28);
22
- const scaledHeight24 = useScaleSize(24);
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 ? 32 : 28;
42
+ const inputWidth = isLarge ? scaledSize32 : scaledSize28;
42
43
  const sizeStyle = {
43
- height: isLarge ? scaledHeight28 : scaledHeight24,
44
+ height: isLarge ? scaledSize28 : scaledSize24,
44
45
  ...(isWeb ? { width: inputWidth } : { minWidth: inputWidth }),
45
46
  };
46
47
  return (
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@momo-kits/stepper",
3
- "version": "0.169.16-beta.7",
3
+ "version": "0.169.17-beta.7",
4
4
  "private": false,
5
- "license": "MoMo",
6
5
  "main": "index.tsx",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "dependencies": {},
11
6
  "peerDependencies": {
12
7
  "@momo-kits/foundation": "latest",
13
8
  "react": "*",
14
9
  "react-native": "*"
15
- }
10
+ },
11
+ "license": "MoMo",
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "dependencies": {}
16
16
  }