@momo-kits/foundation 0.92.4-beta.1 → 0.92.4-beta.2
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/Application/BottomTab/index.tsx +7 -1
- package/Application/types.ts +1 -1
- package/Input/InputOTP.tsx +4 -2
- package/Input/styles.ts +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import {createStackNavigator} from '@react-navigation/stack';
|
|
|
4
4
|
import React, {useContext, useEffect} from 'react';
|
|
5
5
|
import {Platform} from 'react-native';
|
|
6
6
|
import {useSafeAreaInsets} from 'react-native-safe-area-context';
|
|
7
|
+
import {Colors} from '../../Consts';
|
|
7
8
|
import {Icon} from '../../Icon';
|
|
8
9
|
import {Text} from '../../Text';
|
|
9
10
|
import {ApplicationContext} from '../index';
|
|
@@ -97,7 +98,8 @@ const BottomTab: React.FC<BottomTabProps> = ({
|
|
|
97
98
|
typography={
|
|
98
99
|
focused ? 'label_xs_medium' : 'description_xs_regular'
|
|
99
100
|
}
|
|
100
|
-
color={color}
|
|
101
|
+
color={color}
|
|
102
|
+
style={{width: '90%', textAlign: 'center'}}>
|
|
101
103
|
{item.label}
|
|
102
104
|
</Text>
|
|
103
105
|
);
|
|
@@ -113,6 +115,10 @@ const BottomTab: React.FC<BottomTabProps> = ({
|
|
|
113
115
|
fontFamily: `${theme.font}-Bold`,
|
|
114
116
|
left: item?.showDot ? 8 : 4,
|
|
115
117
|
top: item?.showDot ? -2 : -6,
|
|
118
|
+
backgroundColor:
|
|
119
|
+
typeof item?.badgeLabel === 'string'
|
|
120
|
+
? Colors.orange_03
|
|
121
|
+
: Colors.red_03,
|
|
116
122
|
},
|
|
117
123
|
tabBarIcon: ({color}) => (
|
|
118
124
|
<Icon source={item.icon} color={color} size={28} />
|
package/Application/types.ts
CHANGED
package/Input/InputOTP.tsx
CHANGED
|
@@ -70,7 +70,7 @@ const InputOTP = forwardRef(
|
|
|
70
70
|
length,
|
|
71
71
|
errorMessage,
|
|
72
72
|
errorSpacing,
|
|
73
|
-
floatingValue,
|
|
73
|
+
floatingValue = 'Label',
|
|
74
74
|
floatingIconColor,
|
|
75
75
|
floatingIcon,
|
|
76
76
|
placeholder,
|
|
@@ -196,7 +196,9 @@ const InputOTP = forwardRef(
|
|
|
196
196
|
styles.otpFloatingView,
|
|
197
197
|
{backgroundColor: theme.colors.background.surface},
|
|
198
198
|
]}>
|
|
199
|
-
<Text
|
|
199
|
+
<Text
|
|
200
|
+
typography={'description_default_regular'}
|
|
201
|
+
color={theme.colors.text.hint}>
|
|
200
202
|
{floatingValue}
|
|
201
203
|
</Text>
|
|
202
204
|
</View>
|
package/Input/styles.ts
CHANGED
|
@@ -53,7 +53,7 @@ export default StyleSheet.create({
|
|
|
53
53
|
marginRight: Spacing.M,
|
|
54
54
|
},
|
|
55
55
|
icon: {
|
|
56
|
-
marginLeft: Spacing.S
|
|
56
|
+
marginLeft: Spacing.S,
|
|
57
57
|
},
|
|
58
58
|
iconWrapper: {
|
|
59
59
|
width: 24,
|
|
@@ -145,7 +145,7 @@ export default StyleSheet.create({
|
|
|
145
145
|
},
|
|
146
146
|
otpFloatingView: {
|
|
147
147
|
position: 'absolute',
|
|
148
|
-
top: -Spacing.
|
|
148
|
+
top: scaleSize(-Spacing.M + 2),
|
|
149
149
|
alignSelf: 'center',
|
|
150
150
|
paddingHorizontal: Spacing.S,
|
|
151
151
|
},
|