@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/lib/commonjs/components/index.js +39 -27
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/text/Text.js +6 -4
- package/lib/commonjs/components/text/Text.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/text/Text.js +6 -4
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/index.d.ts +1 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/text/Text.tsx +11 -4
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -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 [
|
|
132
|
+
return [typographyStyle, mapFamilyItalicStyle[overrideWeight]]
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
if(italic) {
|
|
129
|
-
return [
|
|
136
|
+
return [typographyStyle, mapFamilyItalicStyle[weight]]
|
|
130
137
|
}
|
|
131
138
|
|
|
132
139
|
if(overrideWeight) {
|
|
133
|
-
return [
|
|
140
|
+
return [typographyStyle, mapFamilyStyle[overrideWeight]]
|
|
134
141
|
}
|
|
135
142
|
|
|
136
|
-
return
|
|
143
|
+
return [typographyStyle, mapFamilyStyle[weight]]
|
|
137
144
|
}
|