@tamagui/core 1.102.2 → 1.103.0
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 -7
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +13 -7
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -9663,7 +9663,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9663
9663
|
enabled: shouldListenForMedia,
|
|
9664
9664
|
keys: mediaListeningKeys
|
|
9665
9665
|
});
|
|
9666
|
-
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,
|
|
9666
|
+
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, nonTamaguiProps = _object_without_properties(viewPropsIn, [
|
|
9667
9667
|
"asChild",
|
|
9668
9668
|
"children",
|
|
9669
9669
|
"themeShallow",
|
|
@@ -9683,8 +9683,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9683
9683
|
"separator",
|
|
9684
9684
|
"forceStyle",
|
|
9685
9685
|
"onClick",
|
|
9686
|
-
"theme"
|
|
9687
|
-
"defaultVariants"
|
|
9686
|
+
"theme"
|
|
9688
9687
|
]), viewProps = nonTamaguiProps;
|
|
9689
9688
|
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
9690
9689
|
var animationStyles, shouldUseAnimation = (
|
|
@@ -11507,12 +11506,19 @@ var require_styled_native = __commonJS({
|
|
|
11507
11506
|
"defaultVariants",
|
|
11508
11507
|
"acceptsClassName",
|
|
11509
11508
|
"context"
|
|
11510
|
-
]);
|
|
11511
|
-
if (
|
|
11509
|
+
]), parentDefaultVariants, parentDefaultProps;
|
|
11510
|
+
if (parentStaticConfig) {
|
|
11512
11511
|
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
11513
|
-
|
|
11512
|
+
if (!avoid) {
|
|
11513
|
+
var pdp = parentStaticConfig.defaultProps;
|
|
11514
|
+
for (var key2 in pdp) {
|
|
11515
|
+
var val = pdp[key2];
|
|
11516
|
+
parentStaticConfig.defaultVariants && key2 in parentStaticConfig.defaultVariants && (!defaultVariants || !(key2 in defaultVariants)) && (parentDefaultVariants || (parentDefaultVariants = {}), parentDefaultVariants[key2] = val), key2 in defaultProps || (parentDefaultProps || (parentDefaultProps = {}), parentDefaultProps[key2] = pdp[key2]);
|
|
11517
|
+
}
|
|
11518
|
+
parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants));
|
|
11519
|
+
}
|
|
11514
11520
|
}
|
|
11515
|
-
parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
11521
|
+
(parentDefaultProps || defaultVariants || parentDefaultVariants) && (defaultProps = _object_spread2({}, parentDefaultProps, parentDefaultVariants, defaultProps, defaultVariants)), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
11516
11522
|
var isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), acceptsClassName = acceptsClassNameProp ?? (isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName)), conf = _object_spread_props(_object_spread2(_object_spread_props(_object_spread2({}, parentStaticConfig, staticExtractionOptions, !isPlainStyledComponent && {
|
|
11517
11523
|
Component
|
|
11518
11524
|
}), {
|