@tamagui/core 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.
- package/dist/native.js +21 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +6 -3
- package/dist/test.native.js.map +2 -2
- package/package.json +9 -9
package/dist/test.native.js
CHANGED
|
@@ -7268,7 +7268,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7268
7268
|
staticConfig,
|
|
7269
7269
|
stateRef
|
|
7270
7270
|
});
|
|
7271
|
-
isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)
|
|
7271
|
+
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}`)));
|
|
7272
7272
|
}
|
|
7273
7273
|
groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7274
7274
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
@@ -7413,8 +7413,11 @@ var require_createComponent_native = __commonJS({
|
|
|
7413
7413
|
});
|
|
7414
7414
|
var useChildrenResult;
|
|
7415
7415
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
|
|
7416
|
-
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
7417
|
-
|
|
7416
|
+
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence, needsReset = !!(!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
7417
|
+
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = !0);
|
|
7418
|
+
var renderReset = needsReset || hasEverReset;
|
|
7419
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ResetPresence, {
|
|
7420
|
+
disabled: !needsReset,
|
|
7418
7421
|
children: content
|
|
7419
7422
|
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
7420
7423
|
...componentContext,
|