@momo-kits/step 0.169.14 → 0.169.16-beta.3
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/StepsHorizontal.tsx +2 -2
- package/package.json +7 -7
- package/utils.ts +1 -1
package/StepsHorizontal.tsx
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from '@momo-kits/foundation';
|
|
7
7
|
import React, { FC, useContext, useState } from 'react';
|
|
8
8
|
import {
|
|
9
|
-
FlexAlignType,
|
|
10
9
|
LayoutChangeEvent,
|
|
11
10
|
TouchableOpacity,
|
|
12
11
|
View,
|
|
12
|
+
ViewStyle,
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
import StepIcon from './StepIcon';
|
|
15
15
|
import styles from './styles';
|
|
@@ -39,7 +39,7 @@ const StepsHorizontal: FC<StepsProps> = ({
|
|
|
39
39
|
const renderStepItem = (item: Step, index: number) => {
|
|
40
40
|
const { title, description, error, time } = item;
|
|
41
41
|
let typoStyle = GetStepTypo(activeIndex, index, error, size, 'horizontal');
|
|
42
|
-
let alignItems:
|
|
42
|
+
let alignItems: NonNullable<ViewStyle['alignItems']> = 'center';
|
|
43
43
|
let textAlign: TextAlign = 'center';
|
|
44
44
|
|
|
45
45
|
if (align === 'left') {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/step",
|
|
3
|
-
"version": "0.169.
|
|
3
|
+
"version": "0.169.16-beta.3",
|
|
4
4
|
"private": false,
|
|
5
|
+
"license": "MoMo",
|
|
5
6
|
"main": "index.tsx",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {},
|
|
6
11
|
"peerDependencies": {
|
|
7
12
|
"@momo-kits/foundation": "latest",
|
|
8
13
|
"react": "*",
|
|
9
14
|
"react-native": "*"
|
|
10
|
-
}
|
|
11
|
-
"license": "MoMo",
|
|
12
|
-
"publishConfig": {
|
|
13
|
-
"registry": "https://registry.npmjs.org/"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {}
|
|
15
|
+
}
|
|
16
16
|
}
|
package/utils.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApplicationContext, Colors, Typography } from '@momo-kits/foundation';
|
|
2
|
-
import { Step } from '
|
|
2
|
+
import { Step } from './types';
|
|
3
3
|
import { useContext } from 'react';
|
|
4
4
|
|
|
5
5
|
/** Hex alpha (20%) appended to the primary color for a passed connector line. */
|