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/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) {
|
|
@@ -8792,12 +8792,11 @@ var require_createComponent_native = __commonJS({
|
|
|
8792
8792
|
enabled: shouldListenForMedia,
|
|
8793
8793
|
keys: mediaListeningKeys
|
|
8794
8794
|
});
|
|
8795
|
-
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,
|
|
8795
|
+
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, [
|
|
8796
8796
|
"asChild",
|
|
8797
8797
|
"children",
|
|
8798
8798
|
"themeShallow",
|
|
8799
8799
|
"spaceDirection",
|
|
8800
|
-
"disabled",
|
|
8801
8800
|
"onPress",
|
|
8802
8801
|
"onLongPress",
|
|
8803
8802
|
"onPressIn",
|
|
@@ -8892,7 +8891,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8892
8891
|
pseudoGroups ? Object.keys(_to_consumable_array2(pseudoGroups)).join("") : 0,
|
|
8893
8892
|
mediaGroups ? Object.keys(_to_consumable_array2(mediaGroups)).join("") : 0
|
|
8894
8893
|
]);
|
|
8895
|
-
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), events = shouldAttach ? _object_spread9(_object_spread_props8(_object_spread9({
|
|
8894
|
+
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), events = shouldAttach ? _object_spread9(_object_spread_props8(_object_spread9({
|
|
8896
8895
|
onPressOut: attachPress ? function(e) {
|
|
8897
8896
|
stateRef.current.handleFocusVisible = !0, unPress(), onPressOut == null || onPressOut(e), onMouseUp == null || onMouseUp(e);
|
|
8898
8897
|
} : void 0
|