@william-callao/antonella-ui 2.0.2 → 2.0.3
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/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10401,7 +10401,8 @@ function AppLayout({
|
|
|
10401
10401
|
const leavingOnlyCenter = contentFadeEnabled && isOnlyCenterLayout(prevLayoutState) && !isOnlyCenterLayout(state);
|
|
10402
10402
|
const enteringOnlyCenter = contentFadeEnabled && !isOnlyCenterLayout(prevLayoutState) && isOnlyCenterLayout(state);
|
|
10403
10403
|
const goingBack = navigationDirectionRef.current === "back";
|
|
10404
|
-
const
|
|
10404
|
+
const enteringOnlyCenterLayout = !!prevLayoutState && !isOnlyCenterLayout(prevLayoutState) && isOnlyCenterLayout(state);
|
|
10405
|
+
const skipContentFadeOut = leavingFullBottom || leavingOnlyCenter || goingBack || enteringOnlyCenterLayout;
|
|
10405
10406
|
const contentFadeOutMs = goingBack ? CONTENT_FADE_OUT_BACK_MS : CONTENT_FADE_OUT_MS;
|
|
10406
10407
|
const contentFadeInMs = goingBack ? CONTENT_FADE_IN_BACK_MS : CONTENT_FADE_IN_MS;
|
|
10407
10408
|
const transitionDuration = (() => {
|
|
@@ -10595,7 +10596,8 @@ function AppLayout({
|
|
|
10595
10596
|
const cur = state.sections[k];
|
|
10596
10597
|
const prevB = prevLayoutState?.sections[k];
|
|
10597
10598
|
const prevVisible = !!prevB?.visible;
|
|
10598
|
-
|
|
10599
|
+
const dropOutgoing = goingBack || enteringOnlyCenterLayout;
|
|
10600
|
+
if (!cur?.visible && (!prevVisible || dropOutgoing)) {
|
|
10599
10601
|
return null;
|
|
10600
10602
|
}
|
|
10601
10603
|
const usePrevContent = !cur?.visible && prevVisible;
|
|
@@ -10620,7 +10622,7 @@ function AppLayout({
|
|
|
10620
10622
|
const skipPreviousCenter = enteringOnlyCenter && k === "mid";
|
|
10621
10623
|
const previousSlot = contentFadeEnabled && !skipContentFadeOut && !goingBack && !skipPreviousCenter && !hidePreviousBody && !usePrevContent ? prevB?.slot : void 0;
|
|
10622
10624
|
const previousContent = previousSlot ? prevRoute?.slots?.[previousSlot] : null;
|
|
10623
|
-
const remountOnBack =
|
|
10625
|
+
const remountOnBack = enteringOnlyCenterLayout;
|
|
10624
10626
|
const sectionKey = remountOnBack ? `${k}:${currentRoute.name}` : k;
|
|
10625
10627
|
const animateSectionLayout = animateLayout && previousLayoutHeightsRef.current[k] !== height;
|
|
10626
10628
|
const currentLayer = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|