@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.
@@ -2305,10 +2305,11 @@ var require_mergeProps_native = __commonJS({
2305
2305
  };
2306
2306
  function mergeProp(out, defaultProps, props, key) {
2307
2307
  var val = props[key];
2308
- defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && (val = {
2309
- ...defaultProps[key],
2310
- ...val
2311
- }), out[key] = val;
2308
+ if (defaultProps && key in defaultProps && (key in import_pseudoDescriptors.pseudoDescriptors || key[0] === "$") && val && typeof val == "object") {
2309
+ var defaultVal = defaultProps[key];
2310
+ defaultVal && typeof defaultVal == "object" && (val = mergeProps(defaultVal, val));
2311
+ }
2312
+ out[key] = val;
2312
2313
  }
2313
2314
  }
2314
2315
  });
@@ -5149,7 +5150,7 @@ var require_getSplitStyles_native = __commonJS({
5149
5150
  (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
5150
5151
  var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
5151
5152
  (0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
5152
- var _parentStaticConfig_variants, isStyledContextProp = styleProps.styledContext && key4 in styleProps.styledContext;
5153
+ var _parentStaticConfig_variants, isStyledContextProp = styledContext && key4 in styledContext;
5153
5154
  if (!isHOC && disablePropMap && !isStyledContextProp && !isMediaOrPseudo) {
5154
5155
  viewProps[key4] = val2;
5155
5156
  return;
@@ -5353,7 +5354,7 @@ var require_getSplitStyles_native = __commonJS({
5353
5354
  }
5354
5355
  }));
5355
5356
  }
5356
- var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
5357
+ var { asChild } = props, { accept } = staticConfig, { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps, { webContainerType } = conf.settings, parentVariants = parentStaticConfig == null ? void 0 : parentStaticConfig.variants;
5357
5358
  for (var keyOg in props) _loop(keyOg);
5358
5359
  var avoidNormalize = styleProps.noNormalize === !1;
5359
5360
  if (!avoidNormalize) {
@@ -7024,7 +7025,7 @@ var require_createComponent_native = __commonJS({
7024
7025
  var _propsIn_datatestrenders, _current, _;
7025
7026
  (_ = (_propsIn_datatestrenders = propsIn["data-test-renders"])[_current = "current"]) !== null && _ !== void 0 || (_propsIn_datatestrenders[_current] = 0), propsIn["data-test-renders"].current += 1;
7026
7027
  }
7027
- var { context, isReactNative } = staticConfig, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null, debugProp = propsIn.debug;
7028
+ var { context, isReactNative } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? import_react3.default.useContext(context) : void 0, overriddenContextProps = null;
7028
7029
  if (0)
7029
7030
  var timer;
7030
7031
  var props = propsIn;
@@ -7109,7 +7110,7 @@ var require_createComponent_native = __commonJS({
7109
7110
  isExiting,
7110
7111
  isAnimated,
7111
7112
  willBeAnimated,
7112
- styledContext: context
7113
+ styledContext: styledContextValue
7113
7114
  }, themeName = (themeState == null ? void 0 : themeState.name) || "", 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;
7114
7115
  if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
7115
7116
  props.containerType !== "normal") {