@arkitektbedriftene/fe-lib 5.8.1 → 5.8.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as N, Fragment as Er, jsxs as Ke } from "react/jsx-runtime";
|
|
2
2
|
import * as We from "react";
|
|
3
3
|
import { createContext as Pt, useRef as Q, useLayoutEffect as Rr, useEffect as ze, useId as _e, useContext as F, useInsertionEffect as _s, useMemo as ut, useCallback as Gs, Children as Lr, isValidElement as kr, useState as Te, Fragment as Hs, createElement as Fr, forwardRef as Xs, Component as Br, cloneElement as Ir } from "react";
|
|
4
4
|
import Ys from "clsx";
|
|
@@ -1910,7 +1910,7 @@ function ja({ children: t, isPresent: e, anchorX: n, root: s }) {
|
|
|
1910
1910
|
`), () => {
|
|
1911
1911
|
p.contains(m) && p.removeChild(m);
|
|
1912
1912
|
};
|
|
1913
|
-
}, [e]),
|
|
1913
|
+
}, [e]), N(Oa, { isPresent: e, childRef: o, sizeRef: r, children: We.cloneElement(t, { ref: o }) });
|
|
1914
1914
|
}
|
|
1915
1915
|
const Na = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: a, root: l }) => {
|
|
1916
1916
|
const u = He(Ua), c = _e();
|
|
@@ -1932,7 +1932,7 @@ const Na = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
|
|
|
1932
1932
|
u.forEach((d, m) => u.set(m, !1));
|
|
1933
1933
|
}, [n]), We.useEffect(() => {
|
|
1934
1934
|
!n && !u.size && s && s();
|
|
1935
|
-
}, [n]), r === "popLayout" && (t =
|
|
1935
|
+
}, [n]), r === "popLayout" && (t = N(ja, { isPresent: n, anchorX: a, root: l, children: t })), N(ee.Provider, { value: f, children: t });
|
|
1936
1936
|
};
|
|
1937
1937
|
function Ua() {
|
|
1938
1938
|
return /* @__PURE__ */ new Map();
|
|
@@ -1976,7 +1976,7 @@ const $a = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
|
|
|
1976
1976
|
}
|
|
1977
1977
|
process.env.NODE_ENV !== "production" && o === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
1978
1978
|
const { forceRender: x } = F(Ge);
|
|
1979
|
-
return
|
|
1979
|
+
return N(Er, { children: T.map((S) => {
|
|
1980
1980
|
const A = zt(S), w = r && !u ? !1 : h === T || f.includes(A), R = () => {
|
|
1981
1981
|
if (p.has(A))
|
|
1982
1982
|
p.set(A, !0);
|
|
@@ -1987,7 +1987,7 @@ const $a = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
|
|
|
1987
1987
|
Z || (I = !1);
|
|
1988
1988
|
}), I && (x == null || x(), y(m.current), r && (c == null || c()), s && s());
|
|
1989
1989
|
};
|
|
1990
|
-
return
|
|
1990
|
+
return N(Na, { isPresent: w, initial: !d.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: o, root: l, onExitComplete: w ? void 0 : R, anchorX: a, children: S }, A);
|
|
1991
1991
|
}) });
|
|
1992
1992
|
}, Ki = Pt({ strict: !1 }), Qn = {
|
|
1993
1993
|
animation: [
|
|
@@ -2460,7 +2460,7 @@ function ue(t, { forwardMotionProps: e = !1 } = {}, n, s) {
|
|
|
2460
2460
|
const m = vl(c);
|
|
2461
2461
|
u = m.MeasureLayout, f.visualElement = ml(t, d, c, s, m.ProjectionNode);
|
|
2462
2462
|
}
|
|
2463
|
-
return Ke(ne.Provider, { value: f, children: [u && f.visualElement ?
|
|
2463
|
+
return Ke(ne.Provider, { value: f, children: [u && f.visualElement ? N(u, { visualElement: f.visualElement, ...c }) : null, ol(t, a, fl(d, f.visualElement, l), d, h, e)] });
|
|
2464
2464
|
}
|
|
2465
2465
|
o.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
|
|
2466
2466
|
const r = Xs(o);
|
|
@@ -3195,30 +3195,30 @@ function Jl(t) {
|
|
|
3195
3195
|
...Z
|
|
3196
3196
|
}, Dn = (L) => {
|
|
3197
3197
|
w = !0, f.has(L) && (R = !0, f.delete(L)), T.needsAnimating[L] = !0;
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3198
|
+
const U = t.getValue(L);
|
|
3199
|
+
U && (U.liveStyle = !1);
|
|
3200
3200
|
};
|
|
3201
3201
|
for (const L in Dr) {
|
|
3202
|
-
const
|
|
3202
|
+
const U = Z[L], st = Cn[L];
|
|
3203
3203
|
if (d.hasOwnProperty(L))
|
|
3204
3204
|
continue;
|
|
3205
3205
|
let ht = !1;
|
|
3206
|
-
Oe(
|
|
3206
|
+
Oe(U) && Oe(st) ? ht = !fr(U, st) : ht = U !== st, ht ? U != null ? Dn(L) : f.add(L) : U !== void 0 && f.has(L) ? Dn(L) : T.protectedKeys[L] = !0;
|
|
3207
3207
|
}
|
|
3208
3208
|
T.prevProp = y, T.prevResolvedValues = Z, T.isActive && (d = { ...d, ...Z }), s && t.blockInitialAnimation && (w = !1);
|
|
3209
3209
|
const Mn = S && A;
|
|
3210
3210
|
w && (!Mn || R) && h.push(...I.map((L) => {
|
|
3211
|
-
const
|
|
3211
|
+
const U = { type: g };
|
|
3212
3212
|
if (typeof L == "string" && s && !Mn && t.manuallyAnimateOnMount && t.parent) {
|
|
3213
3213
|
const { parent: st } = t, ht = vt(st, L);
|
|
3214
3214
|
if (st.enteringChildren && ht) {
|
|
3215
3215
|
const { delayChildren: Mr } = ht.transition || {};
|
|
3216
|
-
|
|
3216
|
+
U.delay = hr(st.enteringChildren, t, Mr);
|
|
3217
3217
|
}
|
|
3218
3218
|
}
|
|
3219
3219
|
return {
|
|
3220
3220
|
animation: L,
|
|
3221
|
-
options:
|
|
3221
|
+
options: U
|
|
3222
3222
|
};
|
|
3223
3223
|
}));
|
|
3224
3224
|
}
|
|
@@ -3387,7 +3387,7 @@ function ds(t, e, n) {
|
|
|
3387
3387
|
function Rt(t, e, n) {
|
|
3388
3388
|
ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3390
|
+
function K(t) {
|
|
3391
3391
|
return [t("x"), t("y")];
|
|
3392
3392
|
}
|
|
3393
3393
|
const gr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ms = (t, e) => Math.abs(t - e);
|
|
@@ -3535,7 +3535,7 @@ class Pc {
|
|
|
3535
3535
|
const { drag: d, dragPropagation: m, onDragStart: p } = this.getProps();
|
|
3536
3536
|
if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Da(d), !this.openDragLock))
|
|
3537
3537
|
return;
|
|
3538
|
-
this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
3538
|
+
this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), K((g) => {
|
|
3539
3539
|
let T = this.getAxisMotionValue(g).get() || 0;
|
|
3540
3540
|
if (H.test(T)) {
|
|
3541
3541
|
const { projection: y } = this.visualElement;
|
|
@@ -3561,7 +3561,7 @@ class Pc {
|
|
|
3561
3561
|
this.updateAxis("x", f.point, g), this.updateAxis("y", f.point, g), this.visualElement.render(), v && v(h, f);
|
|
3562
3562
|
}, l = (h, f) => {
|
|
3563
3563
|
this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
3564
|
-
}, u = () =>
|
|
3564
|
+
}, u = () => K((h) => {
|
|
3565
3565
|
var f;
|
|
3566
3566
|
return this.getAnimationState(h) === "paused" && ((f = this.getAxisMotionValue(h).animation) == null ? void 0 : f.play());
|
|
3567
3567
|
}), { dragSnapToOrigin: c } = this.getProps();
|
|
@@ -3611,7 +3611,7 @@ class Pc {
|
|
|
3611
3611
|
resolveConstraints() {
|
|
3612
3612
|
var o;
|
|
3613
3613
|
const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (o = this.visualElement.projection) == null ? void 0 : o.layout, i = this.constraints;
|
|
3614
|
-
e && mt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = pc(s.layoutBox, e) : this.constraints = !1, this.elastic = Tc(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints &&
|
|
3614
|
+
e && mt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = pc(s.layoutBox, e) : this.constraints = !1, this.elastic = Tc(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && K((r) => {
|
|
3615
3615
|
this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = vc(s.layoutBox[r], this.constraints[r]));
|
|
3616
3616
|
});
|
|
3617
3617
|
}
|
|
@@ -3633,7 +3633,7 @@ class Pc {
|
|
|
3633
3633
|
return r;
|
|
3634
3634
|
}
|
|
3635
3635
|
startAnimation(e) {
|
|
3636
|
-
const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u =
|
|
3636
|
+
const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = K((c) => {
|
|
3637
3637
|
if (!_t(c, n, this.currentDirection))
|
|
3638
3638
|
return;
|
|
3639
3639
|
let h = l[c] || {};
|
|
@@ -3658,10 +3658,10 @@ class Pc {
|
|
|
3658
3658
|
return je(this.visualElement, e), s.start(Vn(e, s, 0, n, this.visualElement, !1));
|
|
3659
3659
|
}
|
|
3660
3660
|
stopAnimation() {
|
|
3661
|
-
|
|
3661
|
+
K((e) => this.getAxisMotionValue(e).stop());
|
|
3662
3662
|
}
|
|
3663
3663
|
pauseAnimation() {
|
|
3664
|
-
|
|
3664
|
+
K((e) => {
|
|
3665
3665
|
var n;
|
|
3666
3666
|
return (n = this.getAxisMotionValue(e).animation) == null ? void 0 : n.pause();
|
|
3667
3667
|
});
|
|
@@ -3681,7 +3681,7 @@ class Pc {
|
|
|
3681
3681
|
return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
|
|
3682
3682
|
}
|
|
3683
3683
|
snapToCursor(e) {
|
|
3684
|
-
|
|
3684
|
+
K((n) => {
|
|
3685
3685
|
const { drag: s } = this.getProps();
|
|
3686
3686
|
if (!_t(n, s, this.currentDirection))
|
|
3687
3687
|
return;
|
|
@@ -3705,7 +3705,7 @@ class Pc {
|
|
|
3705
3705
|
return;
|
|
3706
3706
|
this.stopAnimation();
|
|
3707
3707
|
const i = { x: 0, y: 0 };
|
|
3708
|
-
|
|
3708
|
+
K((r) => {
|
|
3709
3709
|
const a = this.getAxisMotionValue(r);
|
|
3710
3710
|
if (a && this.constraints !== !1) {
|
|
3711
3711
|
const l = a.get();
|
|
@@ -3713,7 +3713,7 @@ class Pc {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
});
|
|
3715
3715
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
3716
|
-
this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(),
|
|
3716
|
+
this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), K((r) => {
|
|
3717
3717
|
if (!_t(r, e, null))
|
|
3718
3718
|
return;
|
|
3719
3719
|
const a = this.getAxisMotionValue(r), { min: l, max: u } = this.constraints[r];
|
|
@@ -3733,7 +3733,7 @@ class Pc {
|
|
|
3733
3733
|
}, { projection: i } = this.visualElement, o = i.addEventListener("measure", s);
|
|
3734
3734
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), V.read(s);
|
|
3735
3735
|
const r = Ot(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
|
|
3736
|
-
this.isDragging && u && (
|
|
3736
|
+
this.isDragging && u && (K((c) => {
|
|
3737
3737
|
const h = this.getAxisMotionValue(c);
|
|
3738
3738
|
h && (this.originPoint[c] += l[c].translate, h.set(h.get() + l[c].translate));
|
|
3739
3739
|
}), this.visualElement.render());
|
|
@@ -3889,7 +3889,7 @@ class Vc extends Br {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
function Tr(t) {
|
|
3891
3891
|
const [e, n] = $i(), s = F(Ge);
|
|
3892
|
-
return
|
|
3892
|
+
return N(Vc, { ...t, layoutGroup: s, switchLayoutGroup: F(Qi), isPresent: e, safeToRemove: n });
|
|
3893
3893
|
}
|
|
3894
3894
|
const Cc = {
|
|
3895
3895
|
borderRadius: {
|
|
@@ -3955,7 +3955,7 @@ function Pr(t, e, n) {
|
|
|
3955
3955
|
function As(t, e) {
|
|
3956
3956
|
t.min = e.min, t.max = e.max;
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function $(t, e) {
|
|
3959
3959
|
As(t.x, e.x), As(t.y, e.y);
|
|
3960
3960
|
}
|
|
3961
3961
|
function Vs(t, e) {
|
|
@@ -4277,17 +4277,17 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4277
4277
|
removeElementScroll(r) {
|
|
4278
4278
|
var l;
|
|
4279
4279
|
const a = M();
|
|
4280
|
-
if (
|
|
4280
|
+
if ($(a, r), (l = this.scroll) != null && l.wasRoot)
|
|
4281
4281
|
return a;
|
|
4282
4282
|
for (let u = 0; u < this.path.length; u++) {
|
|
4283
4283
|
const c = this.path[u], { scroll: h, options: f } = c;
|
|
4284
|
-
c !== this.root && h && f.layoutScroll && (h.wasRoot &&
|
|
4284
|
+
c !== this.root && h && f.layoutScroll && (h.wasRoot && $(a, r), pt(a.x, h.offset.x), pt(a.y, h.offset.y));
|
|
4285
4285
|
}
|
|
4286
4286
|
return a;
|
|
4287
4287
|
}
|
|
4288
4288
|
applyTransform(r, a = !1) {
|
|
4289
4289
|
const l = M();
|
|
4290
|
-
|
|
4290
|
+
$(l, r);
|
|
4291
4291
|
for (let u = 0; u < this.path.length; u++) {
|
|
4292
4292
|
const c = this.path[u];
|
|
4293
4293
|
!a && c.options.layoutScroll && c.scroll && c !== c.root && gt(l, {
|
|
@@ -4299,14 +4299,14 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4299
4299
|
}
|
|
4300
4300
|
removeTransform(r) {
|
|
4301
4301
|
const a = M();
|
|
4302
|
-
|
|
4302
|
+
$(a, r);
|
|
4303
4303
|
for (let l = 0; l < this.path.length; l++) {
|
|
4304
4304
|
const u = this.path[l];
|
|
4305
4305
|
if (!u.instance || !rt(u.latestValues))
|
|
4306
4306
|
continue;
|
|
4307
4307
|
Fe(u.latestValues) && u.updateSnapshot();
|
|
4308
4308
|
const c = M(), h = u.measurePageBox();
|
|
4309
|
-
|
|
4309
|
+
$(c, h), Ms(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4310
4310
|
}
|
|
4311
4311
|
return rt(this.latestValues) && Ms(a, this.latestValues), a;
|
|
4312
4312
|
}
|
|
@@ -4337,12 +4337,12 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4337
4337
|
if (!(!this.layout || !(c || h))) {
|
|
4338
4338
|
if (this.resolvedRelativeTargetAt = k.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4339
4339
|
const d = this.getClosestProjectingParent();
|
|
4340
|
-
d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), Rt(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox),
|
|
4340
|
+
d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), Rt(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4341
4341
|
}
|
|
4342
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = M(), this.targetWithTransforms = M()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), uc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) :
|
|
4342
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = M(), this.targetWithTransforms = M()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), uc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), sr(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
4343
4343
|
this.attemptToResolveRelativeTarget = !1;
|
|
4344
4344
|
const d = this.getClosestProjectingParent();
|
|
4345
|
-
d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), Rt(this.relativeTargetOrigin, this.target, d.target),
|
|
4345
|
+
d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), Rt(this.relativeTargetOrigin, this.target, d.target), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4346
4346
|
}
|
|
4347
4347
|
}
|
|
4348
4348
|
}
|
|
@@ -4362,7 +4362,7 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4362
4362
|
const { layout: u, layoutId: c } = this.options;
|
|
4363
4363
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || c))
|
|
4364
4364
|
return;
|
|
4365
|
-
|
|
4365
|
+
$(this.layoutCorrected, this.layout.layoutBox);
|
|
4366
4366
|
const h = this.treeScale.x, f = this.treeScale.y;
|
|
4367
4367
|
wl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = M());
|
|
4368
4368
|
const { target: d } = r;
|
|
@@ -4397,7 +4397,7 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4397
4397
|
let y;
|
|
4398
4398
|
this.mixTargetDelta = (b) => {
|
|
4399
4399
|
const x = b / 1e3;
|
|
4400
|
-
js(h.x, r.x, x), js(h.y, r.y, x), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tu(this.relativeTarget, this.relativeTargetOrigin, f, x), y && Nc(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = M()),
|
|
4400
|
+
js(h.x, r.x, x), js(h.y, r.y, x), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tu(this.relativeTarget, this.relativeTargetOrigin, f, x), y && Nc(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = M()), $(y, this.relativeTarget)), p && (this.animationValues = c, kc(c, u, this.latestValues, x, T, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
|
|
4401
4401
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4402
4402
|
}
|
|
4403
4403
|
startAnimation(r) {
|
|
@@ -4437,7 +4437,7 @@ function Ar({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4437
4437
|
const f = O(this.layout.layoutBox.y);
|
|
4438
4438
|
l.y.min = r.target.y.min, l.y.max = l.y.min + f;
|
|
4439
4439
|
}
|
|
4440
|
-
|
|
4440
|
+
$(a, l), gt(a, c), Et(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
4443
|
registerSharedNode(r, a) {
|
|
@@ -4549,10 +4549,10 @@ function _c(t) {
|
|
|
4549
4549
|
const e = ((n = t.resumeFrom) == null ? void 0 : n.snapshot) || t.snapshot;
|
|
4550
4550
|
if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
|
|
4551
4551
|
const { layoutBox: s, measuredBox: i } = t.layout, { animationType: o } = t.options, r = e.source !== t.layout.source;
|
|
4552
|
-
o === "size" ?
|
|
4552
|
+
o === "size" ? K((h) => {
|
|
4553
4553
|
const f = r ? e.measuredBox[h] : e.layoutBox[h], d = O(f);
|
|
4554
4554
|
f.min = s[h].min, f.max = f.min + d;
|
|
4555
|
-
}) : Vr(o, e.layoutBox, s) &&
|
|
4555
|
+
}) : Vr(o, e.layoutBox, s) && K((h) => {
|
|
4556
4556
|
const f = r ? e.measuredBox[h] : e.layoutBox[h], d = O(s[h]);
|
|
4557
4557
|
f.max = f.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + d);
|
|
4558
4558
|
});
|
|
@@ -4825,7 +4825,7 @@ function Eu({ trigger: t, children: e, align: n = "left" }) {
|
|
|
4825
4825
|
});
|
|
4826
4826
|
return /* @__PURE__ */ Ke("div", { className: "relative inline-block", ref: o, children: [
|
|
4827
4827
|
r,
|
|
4828
|
-
/* @__PURE__ */
|
|
4828
|
+
/* @__PURE__ */ N($a, { children: s && /* @__PURE__ */ N(
|
|
4829
4829
|
xu.div,
|
|
4830
4830
|
{
|
|
4831
4831
|
initial: { opacity: 0, scale: 0.97 },
|
|
@@ -4838,7 +4838,7 @@ function Eu({ trigger: t, children: e, align: n = "left" }) {
|
|
|
4838
4838
|
"right-0": n === "right",
|
|
4839
4839
|
"left-0": n === "left"
|
|
4840
4840
|
}),
|
|
4841
|
-
children: /* @__PURE__ */
|
|
4841
|
+
children: /* @__PURE__ */ N("div", { className: "flex flex-col", role: "menu", "aria-orientation": "vertical", children: e })
|
|
4842
4842
|
}
|
|
4843
4843
|
) })
|
|
4844
4844
|
] });
|
|
@@ -4851,9 +4851,9 @@ const Pu = Xs(({ children: t, className: e, enabled: n, ...s }, i) => /* @__PURE
|
|
|
4851
4851
|
className: Ys("dropdown-item gap-x-2", e),
|
|
4852
4852
|
...s,
|
|
4853
4853
|
children: [
|
|
4854
|
-
t,
|
|
4855
|
-
n && /* @__PURE__ */
|
|
4856
|
-
!n && /* @__PURE__ */
|
|
4854
|
+
/* @__PURE__ */ N("span", { className: "truncate", children: t }),
|
|
4855
|
+
n && /* @__PURE__ */ N(jr, { size: 24, className: "shrink-0 ml-auto" }),
|
|
4856
|
+
!n && /* @__PURE__ */ N(Nr, { size: 24, className: "shrink-0 ml-auto" })
|
|
4857
4857
|
]
|
|
4858
4858
|
}
|
|
4859
4859
|
));
|