@tamagui/core 1.110.1 → 1.110.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 CHANGED
@@ -5674,6 +5674,7 @@ var require_normalize_color = __commonJS({
5674
5674
  switch (name) {
5675
5675
  case "transparent":
5676
5676
  return 0;
5677
+ // http://www.w3.org/TR/css3-color/#svg-color
5677
5678
  case "aliceblue":
5678
5679
  return 4042850303;
5679
5680
  case "antiquewhite":
@@ -8147,7 +8148,10 @@ var require_getSplitStyles_native = __commonJS({
8147
8148
  // this fixes issues where style prop got merged with wrong priority
8148
8149
  !isHOC && (isValidStyleKey(key, staticConfig) || import_constants.isAndroid && key === "elevation")
8149
8150
  ) return mergeStyle(styleState, key, val), "continue";
8150
- isVariant || (viewProps[key] = val);
8151
+ if (!isVariant) {
8152
+ if (styleProps.styledContextProps && key in styleProps.styledContextProps) return "continue";
8153
+ viewProps[key] = val;
8154
+ }
8151
8155
  }, keyInit = keyOg, valInit = props[keyInit];
8152
8156
  if (accept) {
8153
8157
  var accepted = accept[keyInit];
@@ -9201,7 +9205,7 @@ var require_Slot_native = __commonJS({
9201
9205
  for (i = 0; i < sourceKeys.length; i++) key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
9202
9206
  return target;
9203
9207
  }
9204
- var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
9208
+ var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.memo)(/* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
9205
9209
  var children = props.children, slotProps = _object_without_properties(props, [
9206
9210
  "children"
9207
9211
  ]);
@@ -9212,9 +9216,7 @@ var require_Slot_native = __commonJS({
9212
9216
  }));
9213
9217
  }
9214
9218
  return import_react3.Children.count(children) > 1 ? import_react3.Children.only(null) : null;
9215
- });
9216
- Slot.displayName = "Slot";
9217
- var Slottable = function(param) {
9219
+ })), Slottable = function(param) {
9218
9220
  var children = param.children;
9219
9221
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
9220
9222
  children
@@ -9775,7 +9777,10 @@ var require_createComponent_native = __commonJS({
9775
9777
  var inverseShorthands = (0, import_config.getConfig)().inverseShorthands;
9776
9778
  for (var key in context.props) {
9777
9779
  var _propsIn_key, _ref, _ref1, propVal = (_ref1 = (_ref = (_propsIn_key = propsIn[key]) !== null && _propsIn_key !== void 0 ? _propsIn_key : propsIn[inverseShorthands[key]]) !== null && _ref !== void 0 ? _ref : defaultProps == null ? void 0 : defaultProps[key]) !== null && _ref1 !== void 0 ? _ref1 : defaultProps == null ? void 0 : defaultProps[inverseShorthands[key]];
9778
- propVal === void 0 ? contextValue && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = contextValue[key]) : (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal);
9780
+ if (propVal === void 0) {
9781
+ var val = contextValue == null ? void 0 : contextValue[key];
9782
+ val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
9783
+ } else overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal;
9779
9784
  }
9780
9785
  }
9781
9786
  var curDefaultProps = styledContextProps ? _object_spread2({}, defaultProps, styledContextProps) : defaultProps, props = propsIn;
@@ -9859,7 +9864,8 @@ var require_createComponent_native = __commonJS({
9859
9864
  resolveValues,
9860
9865
  isExiting,
9861
9866
  isAnimated,
9862
- willBeAnimated
9867
+ willBeAnimated,
9868
+ styledContextProps
9863
9869
  }, splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, (themeState == null || (_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, styleProps, null, componentContext, elementType, debugProp);
9864
9870
  if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
9865
9871
  var _splitStyles;