@tamagui/core 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 +6 -6
package/dist/native.js
CHANGED
|
@@ -8041,7 +8041,7 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8041
8041
|
if (isHOC)
|
|
8042
8042
|
viewProps.style = normalizeStyle(styleProp);
|
|
8043
8043
|
else
|
|
8044
|
-
for (var isArray = Array.isArray(styleProp), len = isArray ?
|
|
8044
|
+
for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) {
|
|
8045
8045
|
var style1 = isArray ? styleProp[i1] : styleProp;
|
|
8046
8046
|
if (style1)
|
|
8047
8047
|
if (style1.$$css)
|
|
@@ -8051,6 +8051,15 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8051
8051
|
(_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, normalizeStyle(style1));
|
|
8052
8052
|
}
|
|
8053
8053
|
}
|
|
8054
|
+
var style2 = styleState.style;
|
|
8055
|
+
if (style2 != null && style2.fontFamily) {
|
|
8056
|
+
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
8057
|
+
if (faceInfo) {
|
|
8058
|
+
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;
|
|
8059
|
+
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
8060
|
+
}
|
|
8061
|
+
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo);
|
|
8062
|
+
}
|
|
8054
8063
|
var result = {
|
|
8055
8064
|
space,
|
|
8056
8065
|
hasMedia,
|
|
@@ -8063,16 +8072,7 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8063
8072
|
dynamicThemeAccess,
|
|
8064
8073
|
pseudoGroups,
|
|
8065
8074
|
mediaGroups
|
|
8066
|
-
},
|
|
8067
|
-
if (style2 != null && style2.fontFamily) {
|
|
8068
|
-
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
8069
|
-
if (faceInfo) {
|
|
8070
|
-
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;
|
|
8071
|
-
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
8072
|
-
}
|
|
8073
|
-
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo);
|
|
8074
|
-
}
|
|
8075
|
-
var asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8075
|
+
}, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
8076
8076
|
if (!asChildExceptStyleLike) {
|
|
8077
8077
|
var style3 = styleState.style;
|
|
8078
8078
|
if (0) {
|