@tamagui/core 1.129.17 → 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 +22 -13
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +7 -5
- package/dist/test.native.js.map +2 -2
- package/package.json +9 -9
package/dist/test.native.js
CHANGED
|
@@ -7176,8 +7176,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7176
7176
|
isExiting,
|
|
7177
7177
|
isAnimated,
|
|
7178
7178
|
willBeAnimated,
|
|
7179
|
-
styledContextProps
|
|
7180
|
-
noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
|
|
7179
|
+
styledContextProps
|
|
7181
7180
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7182
7181
|
if (groupContext) {
|
|
7183
7182
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
@@ -7269,7 +7268,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7269
7268
|
staticConfig,
|
|
7270
7269
|
stateRef
|
|
7271
7270
|
});
|
|
7272
|
-
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}`)));
|
|
7273
7272
|
}
|
|
7274
7273
|
groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7275
7274
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
@@ -7414,8 +7413,11 @@ var require_createComponent_native = __commonJS({
|
|
|
7414
7413
|
});
|
|
7415
7414
|
var useChildrenResult;
|
|
7416
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);
|
|
7417
|
-
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
7418
|
-
|
|
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,
|
|
7419
7421
|
children: content
|
|
7420
7422
|
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
7421
7423
|
...componentContext,
|