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/test.native.js
CHANGED
|
@@ -7651,7 +7651,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7651
7651
|
if (isHOC)
|
|
7652
7652
|
viewProps.style = normalizeStyle(styleProp);
|
|
7653
7653
|
else
|
|
7654
|
-
for (var isArray = Array.isArray(styleProp), len = isArray ?
|
|
7654
|
+
for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) {
|
|
7655
7655
|
var style1 = isArray ? styleProp[i1] : styleProp;
|
|
7656
7656
|
if (style1)
|
|
7657
7657
|
if (style1.$$css)
|
|
@@ -7661,6 +7661,14 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7661
7661
|
(_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, normalizeStyle(style1));
|
|
7662
7662
|
}
|
|
7663
7663
|
}
|
|
7664
|
+
var style2 = styleState.style;
|
|
7665
|
+
if (style2 != null && style2.fontFamily) {
|
|
7666
|
+
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
7667
|
+
if (faceInfo) {
|
|
7668
|
+
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;
|
|
7669
|
+
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7664
7672
|
var result = {
|
|
7665
7673
|
space,
|
|
7666
7674
|
hasMedia,
|
|
@@ -7673,15 +7681,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7673
7681
|
dynamicThemeAccess,
|
|
7674
7682
|
pseudoGroups,
|
|
7675
7683
|
mediaGroups
|
|
7676
|
-
},
|
|
7677
|
-
if (style2 != null && style2.fontFamily) {
|
|
7678
|
-
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
7679
|
-
if (faceInfo) {
|
|
7680
|
-
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;
|
|
7681
|
-
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle);
|
|
7682
|
-
}
|
|
7683
|
-
}
|
|
7684
|
-
var asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
7684
|
+
}, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
7685
7685
|
if (!asChildExceptStyleLike) {
|
|
7686
7686
|
var style3 = styleState.style;
|
|
7687
7687
|
if (0) {
|