tamagui 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 +55 -55
package/dist/native.js
CHANGED
|
@@ -3660,10 +3660,11 @@ var require_mergeProps_native = __commonJS({
|
|
|
3660
3660
|
};
|
|
3661
3661
|
function mergeProp(out, defaultProps, props, key) {
|
|
3662
3662
|
var val = props[key];
|
|
3663
|
-
defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") &&
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
}
|
|
3663
|
+
if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
|
|
3664
|
+
var defaultVal = defaultProps[key];
|
|
3665
|
+
defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
|
|
3666
|
+
}
|
|
3667
|
+
out[key] = val;
|
|
3667
3668
|
}
|
|
3668
3669
|
}
|
|
3669
3670
|
});
|
|
@@ -6533,7 +6534,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6533
6534
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
6534
6535
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
6535
6536
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
6536
|
-
var _parentStaticConfig_variants, isStyledContextProp =
|
|
6537
|
+
var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
|
|
6537
6538
|
if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
|
|
6538
6539
|
viewProps[key4] = val2;
|
|
6539
6540
|
return;
|
|
@@ -6811,7 +6812,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6811
6812
|
...theme
|
|
6812
6813
|
}
|
|
6813
6814
|
}));
|
|
6814
|
-
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6815
|
+
var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
|
|
6815
6816
|
for (var keyOg in props) _loop(keyOg);
|
|
6816
6817
|
process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-propsend`;
|
|
6817
6818
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
@@ -8545,7 +8546,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8545
8546
|
var _propsIn_datatestrenders, _current, _;
|
|
8546
8547
|
(_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
|
|
8547
8548
|
}
|
|
8548
|
-
var { context, isReactNative } = staticConfig, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null
|
|
8549
|
+
var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
|
|
8549
8550
|
if (0)
|
|
8550
8551
|
var timer;
|
|
8551
8552
|
process.env.NODE_ENV === "development" && time2 && time2`non-tamagui time (ignore)`;
|
|
@@ -8681,7 +8682,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8681
8682
|
isExiting,
|
|
8682
8683
|
isAnimated,
|
|
8683
8684
|
willBeAnimated,
|
|
8684
|
-
styledContext:
|
|
8685
|
+
styledContext: styledContextValue
|
|
8685
8686
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
8686
8687
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8687
8688
|
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;
|