tamagui 1.91.1 → 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 +13 -14
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +12 -13
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/types/views/Input.d.ts +4 -4
- package/types/views/TextArea.d.ts +3 -3
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) {
|
|
@@ -9558,12 +9558,11 @@ var require_createComponent_native = __commonJS({
|
|
|
9558
9558
|
enabled: shouldListenForMedia,
|
|
9559
9559
|
keys: mediaListeningKeys
|
|
9560
9560
|
});
|
|
9561
|
-
var viewPropsIn = splitStyles.viewProps, pseudos = splitStyles.pseudos, splitStylesStyle = splitStyles.style, classNames = splitStyles.classNames, space = splitStyles.space, propsWithAnimation = props, asChild = viewPropsIn.asChild, children = viewPropsIn.children, themeShallow = viewPropsIn.themeShallow, _spaceDirection = viewPropsIn.spaceDirection,
|
|
9561
|
+
var viewPropsIn = splitStyles.viewProps, pseudos = splitStyles.pseudos, splitStylesStyle = splitStyles.style, classNames = splitStyles.classNames, space = splitStyles.space, propsWithAnimation = props, asChild = viewPropsIn.asChild, children = viewPropsIn.children, themeShallow = viewPropsIn.themeShallow, _spaceDirection = viewPropsIn.spaceDirection, onPress = viewPropsIn.onPress, onLongPress = viewPropsIn.onLongPress, onPressIn = viewPropsIn.onPressIn, onPressOut = viewPropsIn.onPressOut, onHoverIn = viewPropsIn.onHoverIn, onHoverOut = viewPropsIn.onHoverOut, onMouseUp = viewPropsIn.onMouseUp, onMouseDown = viewPropsIn.onMouseDown, onMouseEnter = viewPropsIn.onMouseEnter, onMouseLeave = viewPropsIn.onMouseLeave, onFocus = viewPropsIn.onFocus, onBlur = viewPropsIn.onBlur, separator = viewPropsIn.separator, _forceStyle = viewPropsIn.forceStyle, onClick = viewPropsIn.onClick, _themeProp = viewPropsIn.theme, defaultVariants = viewPropsIn.defaultVariants, nonTamaguiProps = _object_without_properties5(viewPropsIn, [
|
|
9562
9562
|
"asChild",
|
|
9563
9563
|
"children",
|
|
9564
9564
|
"themeShallow",
|
|
9565
9565
|
"spaceDirection",
|
|
9566
|
-
"disabled",
|
|
9567
9566
|
"onPress",
|
|
9568
9567
|
"onLongPress",
|
|
9569
9568
|
"onPressIn",
|
|
@@ -9663,7 +9662,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9663
9662
|
pseudoGroups ? Object.keys(_to_consumable_array2(pseudoGroups)).join("") : 0,
|
|
9664
9663
|
mediaGroups ? Object.keys(_to_consumable_array2(mediaGroups)).join("") : 0
|
|
9665
9664
|
]);
|
|
9666
|
-
var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimeHoverStyle);
|
|
9665
|
+
var runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), runtimeFocusVisibleStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusVisibleStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick || pseudos != null && pseudos.focusVisibleStyle), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = !!(groupName || runtimeHoverStyle || onHoverIn || onHoverOut), attachHover = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !disabled && !props.asChild && !!(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle), needsPressState = !!(groupName || runtimeHoverStyle);
|
|
9667
9666
|
process.env.NODE_ENV === "development" && time && time(_templateObject14());
|
|
9668
9667
|
var events = shouldAttach ? _object_spread9(_object_spread_props8(_object_spread9({
|
|
9669
9668
|
onPressOut: attachPress ? function(e) {
|