@tamagui/core 1.134.0 → 1.134.2

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.
@@ -7092,10 +7092,8 @@ var require_createComponent_native = __commonJS({
7092
7092
  };
7093
7093
  if ("themeInverse" in props && (themeStateProps.inverse = props.themeInverse), "theme" in props && (themeStateProps.name = props.theme), typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.needsUpdate = function() {
7094
7094
  return !!stateRef.current.isListeningToTheme;
7095
- }), themeStateProps.deopt = willBeAnimated, !1) {
7096
- var name, type, dataIs, banner;
7097
- if (console.info(`%c ${banner} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`, "background: green; color: white;"), !import_constants.isServer) var ch, childLog;
7098
- }
7095
+ }), themeStateProps.deopt = willBeAnimated, !1)
7096
+ var name, type, dataIs, banner, ch, childLog;
7099
7097
  var [theme, themeState] = (0, import_useTheme.useThemeWithState)(themeStateProps);
7100
7098
  elementType = Component || elementType;
7101
7099
  var isStringElement = typeof elementType == "string", mediaState2 = (0, import_useMedia.useMedia)(componentContext, debugProp);
@@ -7143,8 +7141,8 @@ var require_createComponent_native = __commonJS({
7143
7141
  }), stateRef.current.setStateShallow = function(nextOrGetNext) {
7144
7142
  var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
7145
7143
  if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
7146
- var canAvoidReRender = Object.keys(next).every(function(key3) {
7147
- return avoidReRenderKeys.has(key3);
7144
+ var canAvoidReRender = Object.keys(next).every(function(key2) {
7145
+ return avoidReRenderKeys.has(key2);
7148
7146
  }), updatedState = {
7149
7147
  ...prev,
7150
7148
  ...next
@@ -7380,19 +7378,10 @@ var require_createComponent_native = __commonJS({
7380
7378
  })), "group" in props && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_GroupContext.GroupContext.Provider, {
7381
7379
  value: allGroupContexts,
7382
7380
  children: content
7383
- })), content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
7384
- var contextProps = staticConfig.context.props;
7385
- for (var key in contextProps) if (viewProps.style && key in viewProps.style || key in viewProps) {
7386
- var _viewProps_style;
7387
- overriddenContextProps || (overriddenContextProps = {});
7388
- var _viewProps_style_key;
7389
- overriddenContextProps[key] = (_viewProps_style_key = (_viewProps_style = viewProps.style) === null || _viewProps_style === void 0 ? void 0 : _viewProps_style[key]) !== null && _viewProps_style_key !== void 0 ? _viewProps_style_key : viewProps[key];
7390
- }
7391
- }
7392
- if (overriddenContextProps) {
7381
+ })), content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), overriddenContextProps) {
7393
7382
  var Provider = staticConfig.context.Provider;
7394
- for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
7395
- content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
7383
+ for (var key in styledContextValue) key in overriddenContextProps || (overriddenContextProps[key] = styledContextValue[key]);
7384
+ debugProp && console.info("overriddenContextProps", overriddenContextProps), content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Provider, {
7396
7385
  __disableMergeDefaultValues: !0,
7397
7386
  ...overriddenContextProps,
7398
7387
  children: content
@@ -7402,7 +7391,7 @@ var require_createComponent_native = __commonJS({
7402
7391
  if (0) {
7403
7392
  var element1, title;
7404
7393
  if (!import_constants.isWeb)
7405
- for (var key2 in splitStylesStyle) ;
7394
+ for (var key1 in splitStylesStyle) ;
7406
7395
  }
7407
7396
  return content;
7408
7397
  });