@audira/carbon-react-native 1.0.0-beta.22 → 1.0.0-beta.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audira/carbon-react-native",
3
- "version": "1.0.0-beta.22",
3
+ "version": "1.0.0-beta.24",
4
4
  "license": "MIT",
5
5
  "homepage": "https://rakadoank.github.io/carbon-react-native",
6
6
  "repository": "https://github.com/RakaDoank/carbon-react-native",
@@ -9,6 +9,7 @@ export {
9
9
  }
10
10
 
11
11
  export * from "./accordion"
12
+ export * from "./box"
12
13
  export * from "./button-group"
13
14
  export * from "./checkbox"
14
15
  export * from "./checkbox-group"
@@ -121,17 +121,24 @@ function getTextStyle(
121
121
  return null
122
122
  }
123
123
 
124
+ const
125
+ typographyStyle =
126
+ TypographyStyleSheet[type],
127
+
128
+ weight =
129
+ StyleSheetObj.Typography[type].fontWeight
130
+
124
131
  if(italic && overrideWeight) {
125
- return [TypographyStyleSheet[type], mapFamilyItalicStyle[overrideWeight]]
132
+ return [typographyStyle, mapFamilyItalicStyle[overrideWeight]]
126
133
  }
127
134
 
128
135
  if(italic) {
129
- return [TypographyStyleSheet[type], mapFamilyItalicStyle[StyleSheetObj.Typography[type].fontWeight]]
136
+ return [typographyStyle, mapFamilyItalicStyle[weight]]
130
137
  }
131
138
 
132
139
  if(overrideWeight) {
133
- return [TypographyStyleSheet[type], mapFamilyStyle[overrideWeight]]
140
+ return [typographyStyle, mapFamilyStyle[overrideWeight]]
134
141
  }
135
142
 
136
- return TypographyStyleSheet[type]
143
+ return [typographyStyle, mapFamilyStyle[weight]]
137
144
  }