@tamagui/core 1.90.6 → 1.90.7

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
@@ -3745,7 +3745,7 @@ var require_ThemeManager_native = __commonJS({
3745
3745
  var found = potentials.find(function(t) {
3746
3746
  return t in themes;
3747
3747
  });
3748
- if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && import_constants.isClient && console.info(" getState ", {
3748
+ if (process.env.NODE_ENV !== "production" && typeof props.debug == "string" && import_constants.isClient && console.info(" \u{1F537} [".concat(manager == null ? void 0 : manager.id, "] getState"), {
3749
3749
  props,
3750
3750
  found,
3751
3751
  potentials,
@@ -4132,7 +4132,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4132
4132
  props.deopt,
4133
4133
  props.debug
4134
4134
  ]);
4135
- return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} useTheme =>", state == null ? void 0 : state.name), console.info("returning state", changedThemeState, "from props", props), console.groupEnd()), [
4135
+ return process.env.NODE_ENV === "development" && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} [".concat(themeManager == null ? void 0 : themeManager.id, "] useTheme =>"), state == null ? void 0 : state.name), console.info("returning state", changedThemeState, "from props", props), console.groupEnd()), [
4136
4136
  changedThemeState,
4137
4137
  themeProxied
4138
4138
  ];
@@ -4233,7 +4233,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4233
4233
  if (prev != null && prev.themeManager) {
4234
4234
  themeManager2 = prev.themeManager;
4235
4235
  var forceChange = force || !!(keys != null && keys.length), next = themeManager2.getState(props, parentManager), nextState = getShouldUpdateTheme(themeManager2, next, prev.state, forceChange);
4236
- nextState ? (state2 = nextState, prev.isNewTheme ? themeManager2.updateState(nextState) : themeManager2 = getNewThemeManager()) : prev.isNewTheme && parentManager && !next && (themeManager2 = parentManager);
4236
+ nextState ? (state2 = nextState, !prev.isNewTheme && !isRoot ? themeManager2 = getNewThemeManager() : themeManager2.updateState(nextState)) : prev.isNewTheme && parentManager && !next && (themeManager2 = parentManager);
4237
4237
  } else
4238
4238
  themeManager2 = getNewThemeManager(), state2 = _object_spread2({}, themeManager2.state);
4239
4239
  }
@@ -4252,7 +4252,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4252
4252
  if (prev && shouldReturnPrev)
4253
4253
  return prev;
4254
4254
  if (response.state = state2, process.env.NODE_ENV === "development" && props.debug && import_constants.isClient) {
4255
- console.groupCollapsed(" \u{1F537} ".concat(themeManager2.id, " useChangeThemeEffect createState"));
4255
+ console.groupCollapsed("\u{1F537} [".concat(themeManager2.id, "] useChangeThemeEffect createState"));
4256
4256
  var parentState = _object_spread2({}, parentManager == null ? void 0 : parentManager.state), parentId = parentManager == null ? void 0 : parentManager.id, themeManagerState = _object_spread2({}, themeManager2.state);
4257
4257
  console.info({
4258
4258
  props,
@@ -6985,7 +6985,8 @@ var require_skipProps_native = __commonJS({
6985
6985
  style: 1,
6986
6986
  // handled after loop so pseudos set usedKeys and override it if necessary
6987
6987
  group: 1,
6988
- themeInverse: 1
6988
+ themeInverse: 1,
6989
+ animatePresence: 1
6989
6990
  };
6990
6991
  process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
6991
6992
  Object.assign(skipProps, {
@@ -9312,7 +9313,7 @@ var require_createComponent_native = __commonJS({
9312
9313
  return !!(next || curState.hasAnimated);
9313
9314
  }(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
9314
9315
  willBeAnimated && !curState.hasAnimated && (curState.hasAnimated = !0);
9315
- var isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && (animationsConfig == null || (_animationsConfig_usePresence = animationsConfig.usePresence) === null || _animationsConfig_usePresence === void 0 ? void 0 : _animationsConfig_usePresence.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationsConfig == null ? void 0 : animationsConfig.isReactNative), isReactNative = staticConfig.isReactNative, isAnimated = willBeAnimated;
9316
+ var isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && props.animatePresence !== !1 && (animationsConfig == null || (_animationsConfig_usePresence = animationsConfig.usePresence) === null || _animationsConfig_usePresence === void 0 ? void 0 : _animationsConfig_usePresence.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationsConfig == null ? void 0 : animationsConfig.isReactNative), isReactNative = staticConfig.isReactNative, isAnimated = willBeAnimated;
9316
9317
  !isReactNative && hasRNAnimation && !isHOC && !isHydrated && (isAnimated = !1, curState.willHydrate = !0), process.env.NODE_ENV === "development" && time && time(_templateObject3());
9317
9318
  var hasEnterState = hasEnterStyle || isEntering, needsToMount = !isHydrated || !curState.host, initialState = hasEnterState ? needsToMount ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateMounted, states = (0, import_react3.useState)(initialState), state = props.forceStyle ? _object_spread_props(_object_spread2({}, states[0]), _define_property2({}, props.forceStyle, !0)) : states[0], setState = states[1], setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, debugProp);
9318
9319
  if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {