@momo-kits/title 0.92.2-rc.1 → 0.92.3-tracking.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/index.tsx CHANGED
@@ -28,6 +28,7 @@ const Title: FC<TitleProps> = ({
28
28
  onPressTrailingAction = () => {},
29
29
  buttonSize = 'small',
30
30
  textOnly = false,
31
+ style,
31
32
  }) => {
32
33
  const {theme} = useContext(ApplicationContext);
33
34
  const [badgeWidth, setBadgeWidth] = useState(0);
@@ -176,7 +177,7 @@ const Title: FC<TitleProps> = ({
176
177
  }
177
178
 
178
179
  return (
179
- <View style={[styles.wrapper, isSection && styles.margin]}>
180
+ <View style={[style, styles.wrapper, isSection && styles.margin]}>
180
181
  {renderIcon()}
181
182
  {renderContent()}
182
183
  {renderActionRight()}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
- "name": "@momo-kits/title",
3
- "version": "0.92.2-rc.1",
4
- "private": false,
5
- "main": "index.tsx",
6
- "dependencies": {},
7
- "peerDependencies": {
8
- "@momo-kits/foundation": "latest",
9
- "prop-types": "^15.7.2",
10
- "react": "16.9.0",
11
- "react-native": ">=0.55"
12
- },
13
- "devDependencies": {
14
- "@momo-platform/versions": "4.1.11"
15
- },
16
- "license": "MoMo"
2
+ "name": "@momo-kits/title",
3
+ "version": "0.92.3-tracking.3",
4
+ "private": false,
5
+ "main": "index.tsx",
6
+ "dependencies": {},
7
+ "peerDependencies": {
8
+ "@momo-kits/foundation": "latest",
9
+ "prop-types": "^15.7.2",
10
+ "react": "16.9.0",
11
+ "react-native": ">=0.55"
12
+ },
13
+ "devDependencies": {
14
+ "@momo-platform/versions": "4.1.11"
15
+ },
16
+ "license": "MoMo"
17
17
  }
package/styles.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import {StyleSheet} from 'react-native';
2
- import {scaleSize, Radius, Spacing} from '@momo-kits/foundation';
2
+ import {scaleSize, Radius, Spacing, Colors} from '@momo-kits/foundation';
3
3
 
4
4
  export default StyleSheet.create({
5
5
  card_small: {
@@ -70,6 +70,7 @@ export default StyleSheet.create({
70
70
  },
71
71
  badge: {
72
72
  marginLeft: Spacing.XS,
73
+ color: Colors.black_17,
73
74
  },
74
75
  description: {
75
76
  marginTop: Spacing.XS,
package/types.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import {ViewStyle} from 'react-native';
2
+
1
3
  export type TitleProps = {
2
4
  type?: 'card' | 'section';
3
5
  size?: 'small' | 'medium' | 'large';
@@ -14,4 +16,5 @@ export type TitleProps = {
14
16
  onPressRightAction?: () => void;
15
17
  onPressTrailingAction?: () => void;
16
18
  textOnly?: boolean;
19
+ style?: ViewStyle;
17
20
  };