tamagui 1.91.2 → 1.91.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/dist/native.js +11 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +10 -10
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -8138,7 +8138,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8138
8138
|
if (isHOC)
|
|
8139
8139
|
viewProps.style = normalizeStyle(styleProp);
|
|
8140
8140
|
else
|
|
8141
|
-
for (var isArray = Array.isArray(styleProp), len = isArray ?
|
|
8141
|
+
for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) {
|
|
8142
8142
|
var style1 = isArray ? styleProp[i1] : styleProp;
|
|
8143
8143
|
if (style1)
|
|
8144
8144
|
if (style1.$$css)
|
|
@@ -8148,6 +8148,15 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8148
8148
|
(_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, normalizeStyle(style1));
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
8151
|
+
var style2 = styleState.style;
|
|
8152
|
+
if (style2 != null && style2.fontFamily) {
|
|
8153
|
+
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
8154
|
+
if (faceInfo) {
|
|
8155
|
+
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
|
|
8156
|
+
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
8157
|
+
}
|
|
8158
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo);
|
|
8159
|
+
}
|
|
8151
8160
|
var result = {
|
|
8152
8161
|
space,
|
|
8153
8162
|
hasMedia,
|
|
@@ -8160,16 +8169,7 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8160
8169
|
dynamicThemeAccess,
|
|
8161
8170
|
pseudoGroups,
|
|
8162
8171
|
mediaGroups
|
|
8163
|
-
},
|
|
8164
|
-
if (style2 != null && style2.fontFamily) {
|
|
8165
|
-
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
8166
|
-
if (faceInfo) {
|
|
8167
|
-
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
|
|
8168
|
-
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
8169
|
-
}
|
|
8170
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo);
|
|
8171
|
-
}
|
|
8172
|
-
var asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8172
|
+
}, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8173
8173
|
if (!asChildExceptStyleLike) {
|
|
8174
8174
|
var style3 = styleState.style;
|
|
8175
8175
|
if (0) {
|