tamagui 1.129.18 → 1.129.19

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.
@@ -289,8 +289,9 @@ var require_PresenceContext_native = __commonJS({
289
289
  });
290
290
  module2.exports = __toCommonJS2(PresenceContext_exports);
291
291
  var import_jsx_runtime6 = require("react/jsx-runtime"), React4 = __toESM2(require("react")), PresenceContext2 = /* @__PURE__ */ React4.createContext(null), ResetPresence2 = function(props) {
292
+ var parent = React4.useContext(PresenceContext2);
292
293
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PresenceContext2.Provider, {
293
- value: null,
294
+ value: props.disable ? parent : null,
294
295
  children: props.children
295
296
  });
296
297
  };
@@ -8367,7 +8368,7 @@ var require_createComponent_native = __commonJS({
8367
8368
  staticConfig,
8368
8369
  stateRef
8369
8370
  });
8370
- isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`), animations.ref && (animatedRef = animations.ref));
8371
+ animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
8371
8372
  }
8372
8373
  groupContext && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
8373
8374
  var _stateRef_current_group, layout = e.nativeEvent.layout;
@@ -8512,8 +8513,11 @@ var require_createComponent_native = __commonJS({
8512
8513
  });
8513
8514
  var useChildrenResult;
8514
8515
  import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
8515
- var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
8516
- if (ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState) && content && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
8516
+ var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence, needsReset = !!(!isHOC && ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
8517
+ needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = !0);
8518
+ var renderReset = needsReset || hasEverReset;
8519
+ if (renderReset && ResetPresence2 && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
8520
+ disabled: !needsReset,
8517
8521
  children: content
8518
8522
  })), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
8519
8523
  ...componentContext,