@zydon/common 1.1.98 → 1.2.0
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/components/Icon/index.d.ts +1 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/{features-84407781.js → features-b1736b73.js} +44 -44
- package/dist/hooks/useEventListener.d.ts.map +1 -1
- package/dist/index-78617918.js +271270 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +34932 -102
- package/dist/types/icon.d.ts +3 -1
- package/dist/types/icon.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-ff7dc8f2.js +0 -37231
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.tsx"],"names":[],"mappings":"AA2CA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC,QAAA,MAAM,IAAI,aAAc,SAAS,gBA4ChC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as
|
|
1
|
+
import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as K, g as R, t as Pt, h as et, j as Ss, k as bs, l as k, m as nt, o as vn, q as xt, s as vt, u as As, x as Ds, y as Cs, z as at, A as Ms, B as Pn, C as Kt, D as xn, E as Tn, F as w, G as zt, H as dt, P as ws, I as Ls, L as Rs, S as Bs, J as Vn, K as Sn, M as bn, N as Et, O as jt, Q as ye, R as Ht, T as Fs, U as An, V as Dn, W as Es, X as js, Y as Cn, Z as Mn, _ as ks, $ as Is, a0 as Os, a1 as Us, a2 as Ns, a3 as Gs, a4 as $s, a5 as Ks, a6 as zs, a7 as Hs } from "./index-78617918.js";
|
|
2
2
|
import wn, { useContext as _t, useId as _s, useEffect as Ws } from "react";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "@emotion/react";
|
|
@@ -255,7 +255,7 @@ function Bt(e, t, n) {
|
|
|
255
255
|
const s = e.getProps();
|
|
256
256
|
return mn(s, t, n !== void 0 ? n : s.custom, ri(e), ai(e));
|
|
257
257
|
}
|
|
258
|
-
const li = "framerAppearId", ci = "data-" + gn(li), Y = (e) => e * 1e3,
|
|
258
|
+
const li = "framerAppearId", ci = "data-" + gn(li), Y = (e) => e * 1e3, $ = (e) => e / 1e3, ui = {
|
|
259
259
|
current: !1
|
|
260
260
|
}, kn = (e) => Array.isArray(e) && typeof e[0] == "number";
|
|
261
261
|
function In(e) {
|
|
@@ -307,7 +307,7 @@ function Tt(e, t, n, s) {
|
|
|
307
307
|
const o = (c) => mi(c, 0, 1, e, n);
|
|
308
308
|
return (c) => c === 0 || c === 1 ? c : Nn(o(c), t, s);
|
|
309
309
|
}
|
|
310
|
-
const gi = Tt(0.42, 0, 1, 1), yi = Tt(0, 0, 0.58, 1), Gn = Tt(0.42, 0, 0.58, 1), vi = (e) => Array.isArray(e) && typeof e[0] != "number",
|
|
310
|
+
const gi = Tt(0.42, 0, 1, 1), yi = Tt(0, 0, 0.58, 1), Gn = Tt(0.42, 0, 0.58, 1), vi = (e) => Array.isArray(e) && typeof e[0] != "number", $n = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Kn = (e) => (t) => 1 - e(1 - t), zn = (e) => 1 - Math.sin(Math.acos(e)), oe = Kn(zn), Pi = $n(oe), Hn = Tt(0.33, 1.53, 0.69, 0.99), re = Kn(Hn), xi = $n(re), Ti = (e) => (e *= 2) < 1 ? 0.5 * re(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Te = {
|
|
311
311
|
linear: B,
|
|
312
312
|
easeIn: gi,
|
|
313
313
|
easeInOut: Gn,
|
|
@@ -361,7 +361,7 @@ function Mi({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: s = 1
|
|
|
361
361
|
let o, c;
|
|
362
362
|
ie(e <= Y(Se), "Spring duration must be 10 seconds or less");
|
|
363
363
|
let i = 1 - t;
|
|
364
|
-
i = yt(Di, Ci, i), e = yt(Ai, Se,
|
|
364
|
+
i = yt(Di, Ci, i), e = yt(Ai, Se, $(e)), i < 1 ? (o = (l) => {
|
|
365
365
|
const u = l * i, h = u * e, f = u - n, d = Yt(l, i), p = Math.exp(-h);
|
|
366
366
|
return Ot - f / d * p;
|
|
367
367
|
}, c = (l) => {
|
|
@@ -425,7 +425,7 @@ function Fi(e) {
|
|
|
425
425
|
return t;
|
|
426
426
|
}
|
|
427
427
|
function Wn({ keyframes: e, restDelta: t, restSpeed: n, ...s }) {
|
|
428
|
-
const o = e[0], c = e[e.length - 1], i = { done: !1, value: o }, { stiffness: r, damping: a, mass: l, velocity: u, duration: h, isResolvedFromDuration: f } = Fi(s), d = u ?
|
|
428
|
+
const o = e[0], c = e[e.length - 1], i = { done: !1, value: o }, { stiffness: r, damping: a, mass: l, velocity: u, duration: h, isResolvedFromDuration: f } = Fi(s), d = u ? -$(u) : 0, p = a / (2 * Math.sqrt(r * l)), m = c - o, v = $(Math.sqrt(r / l)), V = Math.abs(m) < 5;
|
|
429
429
|
n || (n = V ? 0.01 : 2), t || (t = V ? 5e-3 : 0.5);
|
|
430
430
|
let y;
|
|
431
431
|
if (p < 1) {
|
|
@@ -494,7 +494,7 @@ const Ei = (e) => {
|
|
|
494
494
|
const t = ({ timestamp: n }) => e(n);
|
|
495
495
|
return {
|
|
496
496
|
start: () => C.update(t, !0),
|
|
497
|
-
stop: () =>
|
|
497
|
+
stop: () => K(t),
|
|
498
498
|
/**
|
|
499
499
|
* If we're processing this frame we can use the
|
|
500
500
|
* framelocked timestamp to keep things in sync.
|
|
@@ -585,20 +585,20 @@ function Mt({ autoplay: e = !0, delay: t = 0, driver: n = Ei, keyframes: s, type
|
|
|
585
585
|
return v.then(b, ct);
|
|
586
586
|
},
|
|
587
587
|
get time() {
|
|
588
|
-
return
|
|
588
|
+
return $(L);
|
|
589
589
|
},
|
|
590
590
|
set time(b) {
|
|
591
591
|
b = Y(b), L = b, T !== null || !y || d === 0 ? T = b : A = y.now() - b / d;
|
|
592
592
|
},
|
|
593
593
|
get duration() {
|
|
594
594
|
const b = x.calculatedDuration === null ? Ce(x) : x.calculatedDuration;
|
|
595
|
-
return
|
|
595
|
+
return $(b);
|
|
596
596
|
},
|
|
597
597
|
get speed() {
|
|
598
598
|
return d;
|
|
599
599
|
},
|
|
600
600
|
set speed(b) {
|
|
601
|
-
b === d || !y || (d = b, ue.time =
|
|
601
|
+
b === d || !y || (d = b, ue.time = $(L));
|
|
602
602
|
},
|
|
603
603
|
get state() {
|
|
604
604
|
return S;
|
|
@@ -683,7 +683,7 @@ function Gi(e, t, { onUpdate: n, onComplete: s, ...o }) {
|
|
|
683
683
|
return p.timeline = y, p.onfinish = null, B;
|
|
684
684
|
},
|
|
685
685
|
get time() {
|
|
686
|
-
return
|
|
686
|
+
return $(p.currentTime || 0);
|
|
687
687
|
},
|
|
688
688
|
set time(y) {
|
|
689
689
|
p.currentTime = Y(y);
|
|
@@ -695,10 +695,10 @@ function Gi(e, t, { onUpdate: n, onComplete: s, ...o }) {
|
|
|
695
695
|
p.playbackRate = y;
|
|
696
696
|
},
|
|
697
697
|
get duration() {
|
|
698
|
-
return
|
|
698
|
+
return $(h);
|
|
699
699
|
},
|
|
700
700
|
play: () => {
|
|
701
|
-
i || (p.play(),
|
|
701
|
+
i || (p.play(), K(m));
|
|
702
702
|
},
|
|
703
703
|
pause: () => p.pause(),
|
|
704
704
|
stop: () => {
|
|
@@ -718,7 +718,7 @@ function Gi(e, t, { onUpdate: n, onComplete: s, ...o }) {
|
|
|
718
718
|
cancel: v
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function $i({ keyframes: e, delay: t, onUpdate: n, onComplete: s }) {
|
|
722
722
|
const o = () => (n && n(e[e.length - 1]), s && s(), {
|
|
723
723
|
time: 0,
|
|
724
724
|
speed: 1,
|
|
@@ -737,7 +737,7 @@ function Ki({ keyframes: e, delay: t, onUpdate: n, onComplete: s }) {
|
|
|
737
737
|
onComplete: o
|
|
738
738
|
}) : o();
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Ki = {
|
|
741
741
|
type: "spring",
|
|
742
742
|
stiffness: 500,
|
|
743
743
|
damping: 25,
|
|
@@ -754,7 +754,7 @@ const $i = {
|
|
|
754
754
|
type: "keyframes",
|
|
755
755
|
ease: [0.25, 0.1, 0.35, 1],
|
|
756
756
|
duration: 0.3
|
|
757
|
-
}, Wi = (e, { keyframes: t }) => t.length > 2 ? Hi : Pt.has(e) ? e.startsWith("scale") ? zi(t[1]) :
|
|
757
|
+
}, Wi = (e, { keyframes: t }) => t.length > 2 ? Hi : Pt.has(e) ? e.startsWith("scale") ? zi(t[1]) : Ki : _i, qt = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
758
758
|
(et.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
759
759
|
!t.startsWith("url(")), Yi = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
760
760
|
function qi(e) {
|
|
@@ -847,7 +847,7 @@ const le = (e, t, n, s = {}) => (o) => {
|
|
|
847
847
|
...d,
|
|
848
848
|
...Wi(e, d)
|
|
849
849
|
}), d.duration && (d.duration = Y(d.duration)), d.repeatDelay && (d.repeatDelay = Y(d.repeatDelay)), !h || !f || ui.current || c.type === !1)
|
|
850
|
-
return
|
|
850
|
+
return $i(d);
|
|
851
851
|
if (t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate) {
|
|
852
852
|
const p = Gi(t, e, d);
|
|
853
853
|
if (p)
|
|
@@ -1016,7 +1016,7 @@ function yo(e) {
|
|
|
1016
1016
|
};
|
|
1017
1017
|
for (const M in H) {
|
|
1018
1018
|
const _ = U[M], st = z[M];
|
|
1019
|
-
p.hasOwnProperty(M) || (_ !== st ?
|
|
1019
|
+
p.hasOwnProperty(M) || (_ !== st ? Kt(_) && Kt(st) ? !jn(_, st) || T ? L(M) : g.protectedKeys[M] = !0 : _ !== void 0 ? L(M) : d.add(M) : _ !== void 0 && d.has(M) ? L(M) : g.protectedKeys[M] = !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
g.prevProp = P, g.prevResolvedValues = U, g.isActive && (p = { ...p, ...U }), s && e.blockInitialAnimation && (A = !1), A && !S && f.push(...O.map((M) => ({
|
|
1022
1022
|
animation: M,
|
|
@@ -1165,7 +1165,7 @@ class es {
|
|
|
1165
1165
|
this.handlers = t;
|
|
1166
1166
|
}
|
|
1167
1167
|
end() {
|
|
1168
|
-
this.removeListeners && this.removeListeners(),
|
|
1168
|
+
this.removeListeners && this.removeListeners(), K(this.updatePoint);
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
function Ut(e, t) {
|
|
@@ -1197,7 +1197,7 @@ function Do(e, t) {
|
|
|
1197
1197
|
n--;
|
|
1198
1198
|
if (!s)
|
|
1199
1199
|
return { x: 0, y: 0 };
|
|
1200
|
-
const c =
|
|
1200
|
+
const c = $(o.timestamp - s.timestamp);
|
|
1201
1201
|
if (c === 0)
|
|
1202
1202
|
return { x: 0, y: 0 };
|
|
1203
1203
|
const i = {
|
|
@@ -1365,13 +1365,13 @@ function Ge(e) {
|
|
|
1365
1365
|
function W(e, t) {
|
|
1366
1366
|
e.min = e.min + t, e.max = e.max + t;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function $e(e, t, [n, s, o]) {
|
|
1369
1369
|
const c = t[o] !== void 0 ? t[o] : 0.5, i = w(e.min, e.max, c);
|
|
1370
1370
|
ee(e, t[n], t[s], i, t.scale);
|
|
1371
1371
|
}
|
|
1372
1372
|
const Io = ["x", "scaleX", "originX"], Oo = ["y", "scaleY", "originY"];
|
|
1373
1373
|
function ot(e, t) {
|
|
1374
|
-
|
|
1374
|
+
$e(e.x, t, Io), $e(e.y, t, Oo);
|
|
1375
1375
|
}
|
|
1376
1376
|
function rs(e, t) {
|
|
1377
1377
|
return ss(jo(e.getBoundingClientRect(), t));
|
|
@@ -1414,7 +1414,7 @@ class Go {
|
|
|
1414
1414
|
return;
|
|
1415
1415
|
const { offset: p } = l;
|
|
1416
1416
|
if (h && this.currentDirection === null) {
|
|
1417
|
-
this.currentDirection =
|
|
1417
|
+
this.currentDirection = $o(p), this.currentDirection !== null && f && f(this.currentDirection);
|
|
1418
1418
|
return;
|
|
1419
1419
|
}
|
|
1420
1420
|
this.updateAxis("x", l.point, p), this.updateAxis("y", l.point, p), this.visualElement.render(), d && d(a, l);
|
|
@@ -1589,11 +1589,11 @@ class Go {
|
|
|
1589
1589
|
function bt(e, t, n) {
|
|
1590
1590
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function $o(e, t = 10) {
|
|
1593
1593
|
let n = null;
|
|
1594
1594
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
1595
1595
|
}
|
|
1596
|
-
class
|
|
1596
|
+
class Ko extends q {
|
|
1597
1597
|
constructor(t) {
|
|
1598
1598
|
super(t), this.removeGroupControls = B, this.removeListeners = B, this.controls = new Go(t);
|
|
1599
1599
|
}
|
|
@@ -1605,7 +1605,7 @@ class $o extends q {
|
|
|
1605
1605
|
this.removeGroupControls(), this.removeListeners();
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
|
-
const
|
|
1608
|
+
const Ke = (e) => (t, n) => {
|
|
1609
1609
|
e && C.update(() => e(t, n));
|
|
1610
1610
|
};
|
|
1611
1611
|
class zo extends q {
|
|
@@ -1618,8 +1618,8 @@ class zo extends q {
|
|
|
1618
1618
|
createPanHandlers() {
|
|
1619
1619
|
const { onPanSessionStart: t, onPanStart: n, onPan: s, onPanEnd: o } = this.node.getProps();
|
|
1620
1620
|
return {
|
|
1621
|
-
onSessionStart:
|
|
1622
|
-
onStart:
|
|
1621
|
+
onSessionStart: Ke(t),
|
|
1622
|
+
onStart: Ke(n),
|
|
1623
1623
|
onMove: s,
|
|
1624
1624
|
onEnd: (c, i) => {
|
|
1625
1625
|
delete this.session, o && C.update(() => o(c, i));
|
|
@@ -1883,9 +1883,9 @@ class or {
|
|
|
1883
1883
|
function rr(e, t) {
|
|
1884
1884
|
const n = performance.now(), s = ({ timestamp: o }) => {
|
|
1885
1885
|
const c = o - n;
|
|
1886
|
-
c >= t && (
|
|
1886
|
+
c >= t && (K(s), e(c - t));
|
|
1887
1887
|
};
|
|
1888
|
-
return C.read(s, !0), () =>
|
|
1888
|
+
return C.read(s, !0), () => K(s);
|
|
1889
1889
|
}
|
|
1890
1890
|
function ar(e) {
|
|
1891
1891
|
window.MotionDebug && window.MotionDebug.record(e);
|
|
@@ -1964,7 +1964,7 @@ function fs({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
1964
1964
|
unmount() {
|
|
1965
1965
|
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
1966
1966
|
const i = this.getStack();
|
|
1967
|
-
i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0,
|
|
1967
|
+
i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, K(this.updateProjection);
|
|
1968
1968
|
}
|
|
1969
1969
|
// only on the root
|
|
1970
1970
|
blockUpdate() {
|
|
@@ -2211,7 +2211,7 @@ function fs({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
2211
2211
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
2212
2212
|
}
|
|
2213
2213
|
startAnimation(i) {
|
|
2214
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (
|
|
2214
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (K(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = C.update(() => {
|
|
2215
2215
|
Dt.hasAnimatedSinceResize = !0, this.currentAnimation = cr(0, nn, {
|
|
2216
2216
|
...i,
|
|
2217
2217
|
onUpdate: (r) => {
|
|
@@ -2457,7 +2457,7 @@ const Dr = fs({
|
|
|
2457
2457
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
2458
2458
|
}),
|
|
2459
2459
|
checkIsScrollRoot: () => !0
|
|
2460
|
-
}),
|
|
2460
|
+
}), $t = {
|
|
2461
2461
|
current: void 0
|
|
2462
2462
|
}, ps = fs({
|
|
2463
2463
|
measureScroll: (e) => ({
|
|
@@ -2465,11 +2465,11 @@ const Dr = fs({
|
|
|
2465
2465
|
y: e.scrollTop
|
|
2466
2466
|
}),
|
|
2467
2467
|
defaultParent: () => {
|
|
2468
|
-
if (
|
|
2468
|
+
if (!$t.current) {
|
|
2469
2469
|
const e = new Dr({});
|
|
2470
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }),
|
|
2470
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), $t.current = e;
|
|
2471
2471
|
}
|
|
2472
|
-
return
|
|
2472
|
+
return $t.current;
|
|
2473
2473
|
},
|
|
2474
2474
|
resetTransform: (e, t) => {
|
|
2475
2475
|
e.style.transform = t !== void 0 ? t : "none";
|
|
@@ -2480,7 +2480,7 @@ const Dr = fs({
|
|
|
2480
2480
|
Feature: zo
|
|
2481
2481
|
},
|
|
2482
2482
|
drag: {
|
|
2483
|
-
Feature:
|
|
2483
|
+
Feature: Ko,
|
|
2484
2484
|
ProjectionNode: ps,
|
|
2485
2485
|
MeasureLayout: as
|
|
2486
2486
|
}
|
|
@@ -2590,7 +2590,7 @@ const Ir = (e, t, n) => {
|
|
|
2590
2590
|
let u = n[a], h = ht(u);
|
|
2591
2591
|
const f = t[a];
|
|
2592
2592
|
let d;
|
|
2593
|
-
if (
|
|
2593
|
+
if (Kt(f)) {
|
|
2594
2594
|
const p = f.length, m = f[0] === null ? 1 : 0;
|
|
2595
2595
|
u = f[m], h = ht(u);
|
|
2596
2596
|
for (let v = m; v < p && f[v] !== null; v++)
|
|
@@ -2626,7 +2626,7 @@ function Gr() {
|
|
|
2626
2626
|
} else
|
|
2627
2627
|
se.current = !1;
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function $r(e, t, n) {
|
|
2630
2630
|
const { willChange: s } = t;
|
|
2631
2631
|
for (const o in t) {
|
|
2632
2632
|
const c = t[o], i = n[o];
|
|
@@ -2647,7 +2647,7 @@ function Kr(e, t, n) {
|
|
|
2647
2647
|
t[o] === void 0 && e.removeValue(o);
|
|
2648
2648
|
return t;
|
|
2649
2649
|
}
|
|
2650
|
-
const dn = /* @__PURE__ */ new WeakMap(), ys = Object.keys(Cn),
|
|
2650
|
+
const dn = /* @__PURE__ */ new WeakMap(), ys = Object.keys(Cn), Kr = ys.length, pn = [
|
|
2651
2651
|
"AnimationStart",
|
|
2652
2652
|
"AnimationComplete",
|
|
2653
2653
|
"Update",
|
|
@@ -2683,7 +2683,7 @@ class Hr {
|
|
|
2683
2683
|
this.current = t, dn.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), gs.current || Gr(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : se.current, process.env.NODE_ENV !== "production" && Dn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
2684
2684
|
}
|
|
2685
2685
|
unmount() {
|
|
2686
|
-
dn.delete(this.current), this.projection && this.projection.unmount(),
|
|
2686
|
+
dn.delete(this.current), this.projection && this.projection.unmount(), K(this.notifyUpdate), K(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
2687
2687
|
for (const t in this.events)
|
|
2688
2688
|
this.events[t].clear();
|
|
2689
2689
|
for (const t in this.features)
|
|
@@ -2707,7 +2707,7 @@ class Hr {
|
|
|
2707
2707
|
const a = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
2708
2708
|
n.ignoreStrict ? ie(!1, a) : tt(!1, a);
|
|
2709
2709
|
}
|
|
2710
|
-
for (let a = 0; a <
|
|
2710
|
+
for (let a = 0; a < Kr; a++) {
|
|
2711
2711
|
const l = ys[a], { isEnabled: u, Feature: h, ProjectionNode: f, MeasureLayout: d } = Cn[l];
|
|
2712
2712
|
f && (i = f), u(n) && (!this.features[l] && h && (this.features[l] = new h(this)), d && (r = d));
|
|
2713
2713
|
}
|
|
@@ -2780,7 +2780,7 @@ class Hr {
|
|
|
2780
2780
|
const c = t["on" + o];
|
|
2781
2781
|
c && (this.propEventSubscriptions[o] = this.on(o, c));
|
|
2782
2782
|
}
|
|
2783
|
-
this.prevMotionValues =
|
|
2783
|
+
this.prevMotionValues = $r(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2784
2784
|
}
|
|
2785
2785
|
getProps() {
|
|
2786
2786
|
return this.props;
|
|
@@ -2964,10 +2964,10 @@ class Yr extends vs {
|
|
|
2964
2964
|
return Gs(t, n);
|
|
2965
2965
|
}
|
|
2966
2966
|
build(t, n, s, o) {
|
|
2967
|
-
|
|
2967
|
+
$s(t, n, s, this.isSVGTag, o.transformTemplate);
|
|
2968
2968
|
}
|
|
2969
2969
|
renderInstance(t, n, s, o) {
|
|
2970
|
-
|
|
2970
|
+
Ks(t, n, s, o);
|
|
2971
2971
|
}
|
|
2972
2972
|
mount(t) {
|
|
2973
2973
|
this.isSVGTag = zs(t.tagName), super.mount(t);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEventListener.d.ts","sourceRoot":"","sources":["../../src/hooks/useEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AAMtE,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AAGR,iBAAS,gBAAgB,CACvB,CAAC,SAAS,MAAM,mBAAmB,EACnC,CAAC,SAAS,WAAW,GAAG,cAAc,EAEtC,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,EAChD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AAGR,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EACxD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7C,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useEventListener.d.ts","sourceRoot":"","sources":["../../src/hooks/useEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAC;AAMtE,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AAGR,iBAAS,gBAAgB,CACvB,CAAC,SAAS,MAAM,mBAAmB,EACnC,CAAC,SAAS,WAAW,GAAG,cAAc,EAEtC,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,EAChD,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AAGR,iBAAS,gBAAgB,CAAC,CAAC,SAAS,MAAM,gBAAgB,EACxD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7C,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;AAwCR,eAAe,gBAAgB,CAAC"}
|