@momo-kits/foundation 0.81.43-beta.8 → 0.81.43-beta.9

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.
@@ -95,7 +95,7 @@ const styles = StyleSheet.create({
95
95
  badge: {
96
96
  position: 'absolute',
97
97
  top: -8,
98
- right: -8,
98
+ right: -6,
99
99
  },
100
100
  });
101
101
 
@@ -127,19 +127,17 @@ const NavigationButton: React.FC<NavigationButtonProps> = ({
127
127
  }, [badgeType, badgeValue]);
128
128
 
129
129
  return (
130
- <View>
131
- <TouchableOpacity
132
- accessibilityLabel={`NavigationButton/${accessibilityLabel}`}
133
- style={[styles.navigationButton, buttonStyle]}
134
- onPress={onPress}>
135
- <Icon
136
- source={icon}
137
- color={tintColor ?? theme.colors.text.default}
138
- size={20}
139
- />
140
- </TouchableOpacity>
130
+ <TouchableOpacity
131
+ accessibilityLabel={`NavigationButton/${accessibilityLabel}`}
132
+ style={[styles.navigationButton, buttonStyle]}
133
+ onPress={onPress}>
134
+ <Icon
135
+ source={icon}
136
+ color={tintColor ?? theme.colors.text.default}
137
+ size={20}
138
+ />
141
139
  {renderBadge()}
142
- </View>
140
+ </TouchableOpacity>
143
141
  );
144
142
  };
145
143
 
package/Badge/Badge.tsx CHANGED
@@ -47,7 +47,7 @@ const Badge: FC<BadgeProps> = ({label = 'Label', style, backgroundColor}) => {
47
47
  return (
48
48
  <View style={[style, styles.badge, {backgroundColor: badgeColor}]}>
49
49
  <Text color={Colors.black_01} typography={'action_xxs'}>
50
- {formatTitle()}
50
+ {formatTitle()}đ
51
51
  </Text>
52
52
  </View>
53
53
  );
package/Badge/styles.ts CHANGED
@@ -10,7 +10,6 @@ export default StyleSheet.create({
10
10
  alignItems: 'center',
11
11
  height: scaleSize(16),
12
12
  minWidth: scaleSize(16),
13
- flexDirection: 'row',
14
13
  borderWidth: 1,
15
14
  borderColor: Colors.black_01,
16
15
  alignSelf: 'baseline',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.43-beta.8",
3
+ "version": "0.81.43-beta.9",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {