@tamagui/core 1.133.0 → 1.133.1
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 +9 -8
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +9 -8
- package/dist/test.native.js.map +2 -2
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -2555,10 +2555,11 @@ var require_mergeProps_native = __commonJS({
|
|
|
2555
2555
|
};
|
|
2556
2556
|
function mergeProp(out, defaultProps, props, key) {
|
|
2557
2557
|
var val = props[key];
|
|
2558
|
-
defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") &&
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}
|
|
2558
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
2559
|
+
var defaultVal = defaultProps[key];
|
|
2560
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
2561
|
+
}
|
|
2562
|
+
out[key] = val;
|
|
2562
2563
|
}
|
|
2563
2564
|
}
|
|
2564
2565
|
});
|
|
@@ -5428,7 +5429,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5428
5429
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5429
5430
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5430
5431
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
5431
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
5432
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
5432
5433
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
5433
5434
|
viewProps[key4] = val2;
|
|
5434
5435
|
return;
|
|
@@ -5706,7 +5707,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5706
5707
|
...theme
|
|
5707
5708
|
}
|
|
5708
5709
|
}));
|
|
5709
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5710
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
5710
5711
|
for (var keyOg in props) _loop(keyOg);
|
|
5711
5712
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
5712
5713
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
@@ -7440,7 +7441,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7440
7441
|
var _propsIn_datatestrenders, _current, _;
|
|
7441
7442
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
7442
7443
|
}
|
|
7443
|
-
var { context, isReactNative } = staticConfig, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null
|
|
7444
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
7444
7445
|
if (0)
|
|
7445
7446
|
var timer;
|
|
7446
7447
|
process.env.NODE_ENV === "development" && time2 && time2`non-tamagui time (ignore)`;
|
|
@@ -7576,7 +7577,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7576
7577
|
isExiting,
|
|
7577
7578
|
isAnimated,
|
|
7578
7579
|
willBeAnimated,
|
|
7579
|
-
styledContext:
|
|
7580
|
+
styledContext: styledContextValue
|
|
7580
7581
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7581
7582
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7582
7583
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|