@momo-kits/foundation 0.112.1-mvp-optimize.1 → 0.112.1-optimize.1

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/Text/index.tsx +18 -0
  2. package/package.json +1 -1
package/Text/index.tsx CHANGED
@@ -33,6 +33,20 @@ const AlegreyaSans: TypographyWeight = {
33
33
  bold: 'Bold',
34
34
  };
35
35
 
36
+ const MomoTrustSans: TypographyWeight = {
37
+ 100: 'Light',
38
+ 200: 'Light',
39
+ 300: 'Light',
40
+ 400: 'Regular',
41
+ 500: 'Medium',
42
+ 600: 'Medium',
43
+ 700: 'Medium',
44
+ 800: 'Medium',
45
+ 900: 'Medium',
46
+ normal: 'Regular',
47
+ bold: 'Medium',
48
+ };
49
+
36
50
  const FontStyle: {[key: string]: string} = {
37
51
  italic: 'Italic',
38
52
  normal: '',
@@ -93,6 +107,10 @@ const getTypoStyle = (typo: Typography, newFontFamily?: string) => {
93
107
  fontFamily = `${font}-${AlegreyaSans[fontWeight]}${style}`;
94
108
  break;
95
109
  }
110
+ case 'MomoTrustSans': {
111
+ fontFamily = `${font}-${MomoTrustSans[fontWeight]}${style}`;
112
+ break;
113
+ }
96
114
  case 'Montserrat-Bold':
97
115
  case 'iCielPanton-Black':
98
116
  case 'iCielBCCubano-Normal':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.112.1-mvp-optimize.1",
3
+ "version": "0.112.1-optimize.1",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},