@dss-kit/ui-kit 0.1.5 → 0.1.6
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/README.md +21 -21
- package/dist/components/builders/Text/Text.d.ts.map +1 -1
- package/dist/components/builders/Text/utils/systemToClass.d.ts +1 -0
- package/dist/components/builders/Text/utils/systemToClass.d.ts.map +1 -1
- package/dist/components/controls/Button/Button.d.ts.map +1 -1
- package/dist/styles/utils/breakpoints/base.scss +11 -11
- package/dist/styles/utils/breakpoints/index.scss +3 -3
- package/dist/styles/utils/breakpoints/screen.scss +61 -61
- package/dist/styles/utils/breakpoints/semantic.scss +31 -31
- package/dist/styles/utils/fonts/font-family.scss +3 -3
- package/dist/styles/utils/fonts/index.scss +1 -1
- package/dist/styles/utils/index.scss +5 -5
- package/dist/styles/utils/size/index.scss +1 -1
- package/dist/styles/utils/size/modifiers.scss +29 -29
- package/dist/styles/utils/style/index.scss +1 -1
- package/dist/styles/utils/style/variants.scss +34 -34
- package/dist/styles/utils/typography/_font-weight.scss +33 -33
- package/dist/styles/utils/typography/_variants.scss +85 -85
- package/dist/styles/utils/typography/index.scss +2 -2
- package/dist/ui-kit.cjs.js +5 -5
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +332 -325
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +80 -80
package/dist/ui-kit.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as b, jsxs as L, Fragment as Ze } from "react/jsx-runtime";
|
|
2
2
|
import * as A from "react";
|
|
3
|
-
import { forwardRef as ht, useMemo as
|
|
3
|
+
import { forwardRef as ht, useMemo as U, useRef as H, useState as _t, useCallback as wt, useImperativeHandle as Je, useEffect as xt, useLayoutEffect as br, createContext as ne, useId as Qn, useContext as J, useInsertionEffect as wr, Children as _r, isValidElement as Ta, Fragment as Tr, createElement as Sa, Component as Ca } from "react";
|
|
4
4
|
import { createPortal as Pa, flushSync as Ea } from "react-dom";
|
|
5
5
|
function Ma(t) {
|
|
6
6
|
if (t.sheet)
|
|
@@ -195,11 +195,11 @@ function Ua(t) {
|
|
|
195
195
|
return Ar(Ne("", null, null, null, [""], t = Mr(t), 0, [0], t));
|
|
196
196
|
}
|
|
197
197
|
function Ne(t, e, n, i, s, r, o, a, l) {
|
|
198
|
-
for (var u = 0, c = 0, h = o, d = 0, f = 0,
|
|
199
|
-
switch (
|
|
198
|
+
for (var u = 0, c = 0, h = o, d = 0, f = 0, g = 0, m = 1, v = 1, y = 1, x = 0, p = "", w = s, T = r, C = i, _ = p; v; )
|
|
199
|
+
switch (g = x, x = rt()) {
|
|
200
200
|
// (
|
|
201
201
|
case 40:
|
|
202
|
-
if (
|
|
202
|
+
if (g != 108 && X(_, h - 1) == 58) {
|
|
203
203
|
An(_ += R(Be(x), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
@@ -214,7 +214,7 @@ function Ne(t, e, n, i, s, r, o, a, l) {
|
|
|
214
214
|
case 10:
|
|
215
215
|
case 13:
|
|
216
216
|
case 32:
|
|
217
|
-
_ += $a(
|
|
217
|
+
_ += $a(g);
|
|
218
218
|
break;
|
|
219
219
|
// \
|
|
220
220
|
case 92:
|
|
@@ -252,7 +252,7 @@ function Ne(t, e, n, i, s, r, o, a, l) {
|
|
|
252
252
|
_ += ";";
|
|
253
253
|
// { rule/at-rule
|
|
254
254
|
default:
|
|
255
|
-
if (Ve(C = zi(_, e, n, u, c, s, a,
|
|
255
|
+
if (Ve(C = zi(_, e, n, u, c, s, a, p, w = [], T = [], h), r), x === 123)
|
|
256
256
|
if (c === 0)
|
|
257
257
|
Ne(_, e, C, C, w, r, h, a, T);
|
|
258
258
|
else
|
|
@@ -262,17 +262,17 @@ function Ne(t, e, n, i, s, r, o, a, l) {
|
|
|
262
262
|
case 108:
|
|
263
263
|
case 109:
|
|
264
264
|
case 115:
|
|
265
|
-
Ne(t, C, C, i && Ve(zi(t, C, C, 0, 0, s, a,
|
|
265
|
+
Ne(t, C, C, i && Ve(zi(t, C, C, 0, 0, s, a, p, s, w = [], h), T), s, T, h, a, i ? w : T);
|
|
266
266
|
break;
|
|
267
267
|
default:
|
|
268
268
|
Ne(_, C, C, C, [""], T, 0, a, T);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
u = c = f = 0, m = y = 1,
|
|
271
|
+
u = c = f = 0, m = y = 1, p = _ = "", h = o;
|
|
272
272
|
break;
|
|
273
273
|
// :
|
|
274
274
|
case 58:
|
|
275
|
-
h = 1 + gt(_), f =
|
|
275
|
+
h = 1 + gt(_), f = g;
|
|
276
276
|
default:
|
|
277
277
|
if (m < 1) {
|
|
278
278
|
if (x == 123)
|
|
@@ -291,19 +291,19 @@ function Ne(t, e, n, i, s, r, o, a, l) {
|
|
|
291
291
|
break;
|
|
292
292
|
// @
|
|
293
293
|
case 64:
|
|
294
|
-
yt() === 45 && (_ += Be(rt())), d = yt(), c = h = gt(
|
|
294
|
+
yt() === 45 && (_ += Be(rt())), d = yt(), c = h = gt(p = _ += Wa(Ie())), x++;
|
|
295
295
|
break;
|
|
296
296
|
// -
|
|
297
297
|
case 45:
|
|
298
|
-
|
|
298
|
+
g === 45 && gt(_) == 2 && (m = 0);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
return r;
|
|
302
302
|
}
|
|
303
303
|
function zi(t, e, n, i, s, r, o, a, l, u, c) {
|
|
304
|
-
for (var h = s - 1, d = s === 0 ? r : [""], f = ni(d),
|
|
305
|
-
for (var y = 0, x = ye(t, h + 1, h = Da(m = o[
|
|
306
|
-
(
|
|
304
|
+
for (var h = s - 1, d = s === 0 ? r : [""], f = ni(d), g = 0, m = 0, v = 0; g < i; ++g)
|
|
305
|
+
for (var y = 0, x = ye(t, h + 1, h = Da(m = o[g])), p = t; y < f; ++y)
|
|
306
|
+
(p = Pr(m > 0 ? d[y] + " " + x : R(x, /&\f/g, d[y]))) && (l[v++] = p);
|
|
307
307
|
return en(t, e, n, s === 0 ? ti : a, l, u, c);
|
|
308
308
|
}
|
|
309
309
|
function Ka(t, e, n) {
|
|
@@ -600,11 +600,11 @@ var el = function(e, n, i, s) {
|
|
|
600
600
|
})], d = Ha(u.concat(s, h)), f = function(v) {
|
|
601
601
|
return Zt(Ua(v), d);
|
|
602
602
|
};
|
|
603
|
-
l = function(v, y, x,
|
|
604
|
-
c = x, f(v ? v + "{" + y.styles + "}" : y.styles),
|
|
603
|
+
l = function(v, y, x, p) {
|
|
604
|
+
c = x, f(v ? v + "{" + y.styles + "}" : y.styles), p && (g.inserted[y.name] = !0);
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var g = {
|
|
608
608
|
key: n,
|
|
609
609
|
sheet: new Va({
|
|
610
610
|
key: n,
|
|
@@ -619,7 +619,7 @@ var el = function(e, n, i, s) {
|
|
|
619
619
|
registered: {},
|
|
620
620
|
insert: l
|
|
621
621
|
};
|
|
622
|
-
return
|
|
622
|
+
return g.sheet.hydrate(a), g;
|
|
623
623
|
};
|
|
624
624
|
function sl(t) {
|
|
625
625
|
for (var e = 0, n, i = 0, s = t.length; s >= 4; ++i, s -= 4)
|
|
@@ -701,10 +701,10 @@ var rl = {
|
|
|
701
701
|
case "animationName":
|
|
702
702
|
if (typeof n == "string")
|
|
703
703
|
return n.replace(al, function(i, s, r) {
|
|
704
|
-
return
|
|
704
|
+
return Mt = {
|
|
705
705
|
name: s,
|
|
706
706
|
styles: r,
|
|
707
|
-
next:
|
|
707
|
+
next: Mt
|
|
708
708
|
}, s;
|
|
709
709
|
});
|
|
710
710
|
}
|
|
@@ -722,20 +722,20 @@ function Ue(t, e, n) {
|
|
|
722
722
|
case "object": {
|
|
723
723
|
var s = n;
|
|
724
724
|
if (s.anim === 1)
|
|
725
|
-
return
|
|
725
|
+
return Mt = {
|
|
726
726
|
name: s.name,
|
|
727
727
|
styles: s.styles,
|
|
728
|
-
next:
|
|
728
|
+
next: Mt
|
|
729
729
|
}, s.name;
|
|
730
730
|
var r = n;
|
|
731
731
|
if (r.styles !== void 0) {
|
|
732
732
|
var o = r.next;
|
|
733
733
|
if (o !== void 0)
|
|
734
734
|
for (; o !== void 0; )
|
|
735
|
-
|
|
735
|
+
Mt = {
|
|
736
736
|
name: o.name,
|
|
737
737
|
styles: o.styles,
|
|
738
|
-
next:
|
|
738
|
+
next: Mt
|
|
739
739
|
}, o = o.next;
|
|
740
740
|
var a = r.styles + ";";
|
|
741
741
|
return a;
|
|
@@ -778,12 +778,12 @@ function ll(t, e, n) {
|
|
|
778
778
|
}
|
|
779
779
|
return i;
|
|
780
780
|
}
|
|
781
|
-
var Gi = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
781
|
+
var Gi = /label:\s*([^\s;{]+)\s*(;|$)/g, Mt;
|
|
782
782
|
function cn(t, e, n) {
|
|
783
783
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
784
784
|
return t[0];
|
|
785
785
|
var i = !0, s = "";
|
|
786
|
-
|
|
786
|
+
Mt = void 0;
|
|
787
787
|
var r = t[0];
|
|
788
788
|
if (r == null || r.raw === void 0)
|
|
789
789
|
i = !1, s += Ue(n, e, r);
|
|
@@ -803,7 +803,7 @@ function cn(t, e, n) {
|
|
|
803
803
|
return {
|
|
804
804
|
name: h,
|
|
805
805
|
styles: s,
|
|
806
|
-
next:
|
|
806
|
+
next: Mt
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
function Rr(t, e, n) {
|
|
@@ -927,12 +927,12 @@ function fl(t) {
|
|
|
927
927
|
px: h,
|
|
928
928
|
py: d,
|
|
929
929
|
pt: f,
|
|
930
|
-
pr:
|
|
930
|
+
pr: g,
|
|
931
931
|
pb: m,
|
|
932
932
|
pl: v,
|
|
933
933
|
xGap: y,
|
|
934
934
|
yGap: x,
|
|
935
|
-
row:
|
|
935
|
+
row: p,
|
|
936
936
|
flex: w,
|
|
937
937
|
relative: T,
|
|
938
938
|
absolute: C,
|
|
@@ -955,12 +955,12 @@ function fl(t) {
|
|
|
955
955
|
px: h,
|
|
956
956
|
py: d,
|
|
957
957
|
pt: f,
|
|
958
|
-
pr:
|
|
958
|
+
pr: g,
|
|
959
959
|
pb: m,
|
|
960
960
|
pl: v,
|
|
961
961
|
xGap: y,
|
|
962
962
|
yGap: x,
|
|
963
|
-
row:
|
|
963
|
+
row: p,
|
|
964
964
|
flex: w,
|
|
965
965
|
relative: T,
|
|
966
966
|
absolute: C,
|
|
@@ -1017,7 +1017,7 @@ const ml = (t) => Q({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}), M = ht(
|
|
1019
1019
|
({ className: t, children: e, ...n }, i) => {
|
|
1020
|
-
const { spacers: s, rest: r } = fl(n), o =
|
|
1020
|
+
const { spacers: s, rest: r } = fl(n), o = U(() => ml(s), [s]);
|
|
1021
1021
|
return /* @__PURE__ */ b("div", { ref: i, className: I(o, t), ...r, children: e });
|
|
1022
1022
|
}
|
|
1023
1023
|
);
|
|
@@ -1078,11 +1078,11 @@ function bl(t) {
|
|
|
1078
1078
|
return e.push(window), e;
|
|
1079
1079
|
}
|
|
1080
1080
|
const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "auto", className: i }, s) => {
|
|
1081
|
-
const r = H(null), [o, a] =
|
|
1081
|
+
const r = H(null), [o, a] = _t([]), l = H([]), u = H(1), c = H(null), h = () => {
|
|
1082
1082
|
l.current.forEach((m) => clearTimeout(m)), l.current = [];
|
|
1083
|
-
}, d =
|
|
1083
|
+
}, d = wt(
|
|
1084
1084
|
(m, v, y, x) => {
|
|
1085
|
-
const
|
|
1085
|
+
const p = y.getBoundingClientRect(), w = n === "auto" ? Math.max(p.width, p.height) * 2 : n, T = m - x.left, C = v - x.top, _ = Math.max(0, p.top - x.top), S = Math.max(0, p.left - x.left), E = Math.max(0, x.right - p.right), O = Math.max(0, x.bottom - p.bottom), bt = window.getComputedStyle(y).borderRadius || "0px", Rt = u.current++, Pt = {
|
|
1086
1086
|
id: Rt,
|
|
1087
1087
|
left: T - w / 2,
|
|
1088
1088
|
top: C - w / 2,
|
|
@@ -1093,53 +1093,53 @@ const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "
|
|
|
1093
1093
|
bottom: Math.round(O),
|
|
1094
1094
|
left: Math.round(S)
|
|
1095
1095
|
},
|
|
1096
|
-
borderRadius:
|
|
1096
|
+
borderRadius: bt
|
|
1097
1097
|
};
|
|
1098
|
-
a((jt) => [...jt,
|
|
1098
|
+
a((jt) => [...jt, Pt]);
|
|
1099
1099
|
const zt = window.setTimeout(() => {
|
|
1100
1100
|
a((jt) => jt.filter((z) => z.id !== Rt));
|
|
1101
1101
|
}, e + 80);
|
|
1102
1102
|
l.current.push(zt);
|
|
1103
1103
|
},
|
|
1104
1104
|
[e, n]
|
|
1105
|
-
), f =
|
|
1105
|
+
), f = wt(
|
|
1106
1106
|
(m) => {
|
|
1107
1107
|
try {
|
|
1108
1108
|
if (!r.current) return;
|
|
1109
1109
|
const v = r.current, y = v.parentElement;
|
|
1110
1110
|
if (!y) return;
|
|
1111
1111
|
const x = bl(m);
|
|
1112
|
-
let
|
|
1112
|
+
let p = null;
|
|
1113
1113
|
for (const S of x)
|
|
1114
1114
|
if (S instanceof Element) {
|
|
1115
1115
|
if (S === y) break;
|
|
1116
1116
|
if (S.matches && S.matches(hn)) {
|
|
1117
|
-
|
|
1117
|
+
p = S;
|
|
1118
1118
|
break;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
if (
|
|
1121
|
+
if (p || (p = y), p.closest && (p.closest("[disabled]") || p.getAttribute("aria-disabled") === "true" || p.classList.contains("ripple-disabled")))
|
|
1122
1122
|
return;
|
|
1123
1123
|
const w = m.target;
|
|
1124
1124
|
if (w && w.closest && (w.closest("[disabled]") || w.getAttribute?.("aria-disabled") === "true"))
|
|
1125
1125
|
return;
|
|
1126
1126
|
const T = v.getBoundingClientRect(), { clientX: C } = m, { clientY: _ } = m;
|
|
1127
|
-
d(C, _,
|
|
1127
|
+
d(C, _, p, T);
|
|
1128
1128
|
} catch {
|
|
1129
1129
|
}
|
|
1130
1130
|
},
|
|
1131
1131
|
[d]
|
|
1132
|
-
),
|
|
1132
|
+
), g = wt(
|
|
1133
1133
|
(m) => {
|
|
1134
1134
|
if (!r.current || !(m.key === "Enter" || m.key === " ")) return;
|
|
1135
1135
|
const v = r.current, y = v.parentElement;
|
|
1136
1136
|
if (!y) return;
|
|
1137
1137
|
const x = document.activeElement;
|
|
1138
|
-
let
|
|
1139
|
-
if (x instanceof Element && x.matches(hn) && (
|
|
1138
|
+
let p = null;
|
|
1139
|
+
if (x instanceof Element && x.matches(hn) && (p = x), p || (p = y), p.closest && (p.closest("[disabled]") || p.getAttribute("aria-disabled") === "true"))
|
|
1140
1140
|
return;
|
|
1141
|
-
const w = v.getBoundingClientRect(), T =
|
|
1142
|
-
d(T, C,
|
|
1141
|
+
const w = v.getBoundingClientRect(), T = p.getBoundingClientRect().left + p.getBoundingClientRect().width / 2, C = p.getBoundingClientRect().top + p.getBoundingClientRect().height / 2;
|
|
1142
|
+
d(T, C, p, w);
|
|
1143
1143
|
},
|
|
1144
1144
|
[d]
|
|
1145
1145
|
);
|
|
@@ -1149,9 +1149,9 @@ const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "
|
|
|
1149
1149
|
trigger: ({ center: m = !0, x: v, y } = {}) => {
|
|
1150
1150
|
const x = r.current;
|
|
1151
1151
|
if (!x) return;
|
|
1152
|
-
const
|
|
1153
|
-
if (!
|
|
1154
|
-
const w = x.getBoundingClientRect(), T = document.activeElement instanceof Element && document.activeElement.matches(hn) ? document.activeElement :
|
|
1152
|
+
const p = x.parentElement;
|
|
1153
|
+
if (!p) return;
|
|
1154
|
+
const w = x.getBoundingClientRect(), T = document.activeElement instanceof Element && document.activeElement.matches(hn) ? document.activeElement : p, C = m ? T.getBoundingClientRect().left + T.getBoundingClientRect().width / 2 : v ?? w.left + w.width / 2, _ = m ? T.getBoundingClientRect().top + T.getBoundingClientRect().height / 2 : y ?? w.top + w.height / 2;
|
|
1155
1155
|
d(C, _, T, w);
|
|
1156
1156
|
}
|
|
1157
1157
|
}),
|
|
@@ -1163,10 +1163,10 @@ const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "
|
|
|
1163
1163
|
if (!v) return;
|
|
1164
1164
|
const y = window.getComputedStyle(v);
|
|
1165
1165
|
let x = !1;
|
|
1166
|
-
return y.position === "static" && (v.style.position = "relative", x = !0, c.current = v), v.addEventListener("pointerdown", f, !0), v.addEventListener("keydown",
|
|
1167
|
-
v.removeEventListener("pointerdown", f, !0), v.removeEventListener("keydown",
|
|
1166
|
+
return y.position === "static" && (v.style.position = "relative", x = !0, c.current = v), v.addEventListener("pointerdown", f, !0), v.addEventListener("keydown", g), () => {
|
|
1167
|
+
v.removeEventListener("pointerdown", f, !0), v.removeEventListener("keydown", g), x && c.current && (c.current.style.position = "", c.current = null), h();
|
|
1168
1168
|
};
|
|
1169
|
-
}, [f,
|
|
1169
|
+
}, [f, g]), xt(() => () => h(), []), /* @__PURE__ */ b("div", { ref: r, className: `${Xi.rippleOverlay} ${i ?? ""}`, "aria-hidden": !0, children: o.map((m) => /* @__PURE__ */ b(
|
|
1170
1170
|
"span",
|
|
1171
1171
|
{
|
|
1172
1172
|
className: Xi.ripple,
|
|
@@ -1184,7 +1184,7 @@ const nn = ht(({ color: t = "rgba(0,0,0,0.18)", duration: e = 1e3, radius: n = "
|
|
|
1184
1184
|
)) });
|
|
1185
1185
|
});
|
|
1186
1186
|
function ii(t, e) {
|
|
1187
|
-
const { current: n } = H(t !== void 0), [i, s] =
|
|
1187
|
+
const { current: n } = H(t !== void 0), [i, s] = _t(e), r = n ? t : i, o = wt(
|
|
1188
1188
|
(a) => {
|
|
1189
1189
|
n || s(a);
|
|
1190
1190
|
},
|
|
@@ -1193,7 +1193,7 @@ function ii(t, e) {
|
|
|
1193
1193
|
return [r, o];
|
|
1194
1194
|
}
|
|
1195
1195
|
const wl = (t, e) => {
|
|
1196
|
-
const [n, i] =
|
|
1196
|
+
const [n, i] = _t({ top: 0, left: 0, width: 0 });
|
|
1197
1197
|
return br(() => {
|
|
1198
1198
|
if (!e || !t.current) return;
|
|
1199
1199
|
const s = () => {
|
|
@@ -1289,7 +1289,7 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
1291
|
}, [t, a]);
|
|
1292
|
-
const h =
|
|
1292
|
+
const h = wt(
|
|
1293
1293
|
(f) => {
|
|
1294
1294
|
f.key === "Escape" && e && e();
|
|
1295
1295
|
},
|
|
@@ -1299,7 +1299,7 @@ const Or = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
1299
1299
|
if (typeof window < "u" && typeof document < "u" && o && t)
|
|
1300
1300
|
return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
|
|
1301
1301
|
}, [t, o, h]);
|
|
1302
|
-
const d =
|
|
1302
|
+
const d = wt(
|
|
1303
1303
|
(f) => {
|
|
1304
1304
|
f.target === f.currentTarget && r && e && e();
|
|
1305
1305
|
},
|
|
@@ -1349,20 +1349,20 @@ function ci(t, e) {
|
|
|
1349
1349
|
const n = t.indexOf(e);
|
|
1350
1350
|
n > -1 && t.splice(n, 1);
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const Tt = (t, e, n) => n > e ? e : n < t ? t : n;
|
|
1353
1353
|
function kn(t, e) {
|
|
1354
1354
|
return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
|
|
1355
1355
|
}
|
|
1356
1356
|
let se = () => {
|
|
1357
|
-
},
|
|
1357
|
+
}, St = () => {
|
|
1358
1358
|
};
|
|
1359
1359
|
process.env.NODE_ENV !== "production" && (se = (t, e, n) => {
|
|
1360
1360
|
!t && typeof console < "u" && console.warn(kn(e, n));
|
|
1361
|
-
},
|
|
1361
|
+
}, St = (t, e, n) => {
|
|
1362
1362
|
if (!t)
|
|
1363
1363
|
throw new Error(kn(e, n));
|
|
1364
1364
|
});
|
|
1365
|
-
const
|
|
1365
|
+
const Ct = {}, Nr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
1366
1366
|
function Fr(t) {
|
|
1367
1367
|
return typeof t == "object" && t !== null;
|
|
1368
1368
|
}
|
|
@@ -1437,11 +1437,11 @@ const Wr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ur
|
|
|
1437
1437
|
anticipate: Hr
|
|
1438
1438
|
}, Gl = (t) => typeof t == "string", Qi = (t) => {
|
|
1439
1439
|
if (Zr(t)) {
|
|
1440
|
-
|
|
1440
|
+
St(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
1441
1441
|
const [e, n, i, s] = t;
|
|
1442
1442
|
return Ee(e, n, i, s);
|
|
1443
1443
|
} else if (Gl(t))
|
|
1444
|
-
return
|
|
1444
|
+
return St(Ji[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Ji[t];
|
|
1445
1445
|
return t;
|
|
1446
1446
|
}, ke = [
|
|
1447
1447
|
"setup",
|
|
@@ -1477,8 +1477,8 @@ function Hl(t, e) {
|
|
|
1477
1477
|
* Schedule a process to run on the next frame.
|
|
1478
1478
|
*/
|
|
1479
1479
|
schedule: (c, h = !1, d = !1) => {
|
|
1480
|
-
const
|
|
1481
|
-
return h && o.add(c),
|
|
1480
|
+
const g = d && s ? n : i;
|
|
1481
|
+
return h && o.add(c), g.has(c) || g.add(c), c;
|
|
1482
1482
|
},
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -1506,27 +1506,27 @@ function Jr(t, e) {
|
|
|
1506
1506
|
delta: 0,
|
|
1507
1507
|
timestamp: 0,
|
|
1508
1508
|
isProcessing: !1
|
|
1509
|
-
}, r = () => n = !0, o = ke.reduce((
|
|
1510
|
-
const
|
|
1511
|
-
n = !1,
|
|
1509
|
+
}, r = () => n = !0, o = ke.reduce((p, w) => (p[w] = Hl(r), p), {}), { setup: a, read: l, resolveKeyframes: u, preUpdate: c, update: h, preRender: d, render: f, postRender: g } = o, m = () => {
|
|
1510
|
+
const p = Ct.useManualTiming ? s.timestamp : performance.now();
|
|
1511
|
+
n = !1, Ct.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(p - s.timestamp, ql), 1)), s.timestamp = p, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), d.process(s), f.process(s), g.process(s), s.isProcessing = !1, n && e && (i = !1, t(m));
|
|
1512
1512
|
}, v = () => {
|
|
1513
1513
|
n = !0, i = !0, s.isProcessing || t(m);
|
|
1514
1514
|
};
|
|
1515
|
-
return { schedule: ke.reduce((
|
|
1515
|
+
return { schedule: ke.reduce((p, w) => {
|
|
1516
1516
|
const T = o[w];
|
|
1517
|
-
return
|
|
1518
|
-
}, {}), cancel: (
|
|
1517
|
+
return p[w] = (C, _ = !1, S = !1) => (n || v(), T.schedule(C, _, S)), p;
|
|
1518
|
+
}, {}), cancel: (p) => {
|
|
1519
1519
|
for (let w = 0; w < ke.length; w++)
|
|
1520
|
-
o[ke[w]].cancel(
|
|
1520
|
+
o[ke[w]].cancel(p);
|
|
1521
1521
|
}, state: s, steps: o };
|
|
1522
1522
|
}
|
|
1523
|
-
const { schedule: N, cancel:
|
|
1523
|
+
const { schedule: N, cancel: At, state: Y, steps: fn } = /* @__PURE__ */ Jr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ut, !0);
|
|
1524
1524
|
let Fe;
|
|
1525
1525
|
function Yl() {
|
|
1526
1526
|
Fe = void 0;
|
|
1527
1527
|
}
|
|
1528
1528
|
const it = {
|
|
1529
|
-
now: () => (Fe === void 0 && it.set(Y.isProcessing ||
|
|
1529
|
+
now: () => (Fe === void 0 && it.set(Y.isProcessing || Ct.useManualTiming ? Y.timestamp : performance.now()), Fe),
|
|
1530
1530
|
set: (t) => {
|
|
1531
1531
|
Fe = t, queueMicrotask(Yl);
|
|
1532
1532
|
}
|
|
@@ -1536,7 +1536,7 @@ const it = {
|
|
|
1536
1536
|
transform: (t) => t
|
|
1537
1537
|
}, be = {
|
|
1538
1538
|
...re,
|
|
1539
|
-
transform: (t) =>
|
|
1539
|
+
transform: (t) => Tt(0, 1, t)
|
|
1540
1540
|
}, Re = {
|
|
1541
1541
|
...re,
|
|
1542
1542
|
default: 1
|
|
@@ -1554,7 +1554,7 @@ const Ql = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
1554
1554
|
[n]: parseFloat(o),
|
|
1555
1555
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
1556
1556
|
};
|
|
1557
|
-
}, tc = (t) =>
|
|
1557
|
+
}, tc = (t) => Tt(0, 255, t), mn = {
|
|
1558
1558
|
...re,
|
|
1559
1559
|
transform: (t) => Math.round(tc(t))
|
|
1560
1560
|
}, Bt = {
|
|
@@ -1579,7 +1579,7 @@ const Rn = {
|
|
|
1579
1579
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
1580
1580
|
parse: parseFloat,
|
|
1581
1581
|
transform: (e) => `${e}${t}`
|
|
1582
|
-
}),
|
|
1582
|
+
}), Et = /* @__PURE__ */ Me("deg"), vt = /* @__PURE__ */ Me("%"), P = /* @__PURE__ */ Me("px"), nc = /* @__PURE__ */ Me("vh"), ic = /* @__PURE__ */ Me("vw"), ts = {
|
|
1583
1583
|
...vt,
|
|
1584
1584
|
parse: (t) => vt.parse(t) / 100,
|
|
1585
1585
|
transform: (t) => vt.transform(t * 100)
|
|
@@ -1587,13 +1587,13 @@ const Rn = {
|
|
|
1587
1587
|
test: /* @__PURE__ */ vi("hsl", "hue"),
|
|
1588
1588
|
parse: /* @__PURE__ */ to("hue", "saturation", "lightness"),
|
|
1589
1589
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + vt.transform(fe(e)) + ", " + vt.transform(fe(n)) + ", " + fe(be.transform(i)) + ")"
|
|
1590
|
-
},
|
|
1590
|
+
}, K = {
|
|
1591
1591
|
test: (t) => Bt.test(t) || Rn.test(t) || Kt.test(t),
|
|
1592
1592
|
parse: (t) => Bt.test(t) ? Bt.parse(t) : Kt.test(t) ? Kt.parse(t) : Rn.parse(t),
|
|
1593
1593
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Bt.transform(t) : Kt.transform(t),
|
|
1594
1594
|
getAnimatableNone: (t) => {
|
|
1595
|
-
const e =
|
|
1596
|
-
return e.alpha = 0,
|
|
1595
|
+
const e = K.parse(t);
|
|
1596
|
+
return e.alpha = 0, K.transform(e);
|
|
1597
1597
|
}
|
|
1598
1598
|
}, sc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
1599
1599
|
function rc(t) {
|
|
@@ -1607,7 +1607,7 @@ function we(t) {
|
|
|
1607
1607
|
var: []
|
|
1608
1608
|
}, s = [];
|
|
1609
1609
|
let r = 0;
|
|
1610
|
-
const a = e.replace(lc, (l) => (
|
|
1610
|
+
const a = e.replace(lc, (l) => (K.test(l) ? (i.color.push(r), s.push(no), n.push(K.parse(l))) : l.startsWith(ac) ? (i.var.push(r), s.push(oc), n.push(l)) : (i.number.push(r), s.push(eo), n.push(parseFloat(l))), ++r, es)).split(es);
|
|
1611
1611
|
return { values: n, split: a, indexes: i, types: s };
|
|
1612
1612
|
}
|
|
1613
1613
|
function io(t) {
|
|
@@ -1620,17 +1620,17 @@ function so(t) {
|
|
|
1620
1620
|
for (let o = 0; o < i; o++)
|
|
1621
1621
|
if (r += e[o], s[o] !== void 0) {
|
|
1622
1622
|
const a = n[o];
|
|
1623
|
-
a === eo ? r += fe(s[o]) : a === no ? r +=
|
|
1623
|
+
a === eo ? r += fe(s[o]) : a === no ? r += K.transform(s[o]) : r += s[o];
|
|
1624
1624
|
}
|
|
1625
1625
|
return r;
|
|
1626
1626
|
};
|
|
1627
1627
|
}
|
|
1628
|
-
const cc = (t) => typeof t == "number" ? 0 :
|
|
1628
|
+
const cc = (t) => typeof t == "number" ? 0 : K.test(t) ? K.getAnimatableNone(t) : t;
|
|
1629
1629
|
function uc(t) {
|
|
1630
1630
|
const e = io(t);
|
|
1631
1631
|
return so(t)(e.map(cc));
|
|
1632
1632
|
}
|
|
1633
|
-
const
|
|
1633
|
+
const Vt = {
|
|
1634
1634
|
test: rc,
|
|
1635
1635
|
parse: io,
|
|
1636
1636
|
createTransformer: so,
|
|
@@ -1683,7 +1683,7 @@ function pc(t, e) {
|
|
|
1683
1683
|
return (n) => $(t, e, n);
|
|
1684
1684
|
}
|
|
1685
1685
|
function xi(t) {
|
|
1686
|
-
return typeof t == "number" ? pc : typeof t == "string" ? gi(t) ? Ge :
|
|
1686
|
+
return typeof t == "number" ? pc : typeof t == "string" ? gi(t) ? Ge : K.test(t) ? is : vc : Array.isArray(t) ? ro : typeof t == "object" ? K.test(t) ? is : gc : Ge;
|
|
1687
1687
|
}
|
|
1688
1688
|
function ro(t, e) {
|
|
1689
1689
|
const n = [...t], i = n.length, s = t.map((r, o) => xi(r)(r, e[o]));
|
|
@@ -1712,7 +1712,7 @@ function yc(t, e) {
|
|
|
1712
1712
|
return n;
|
|
1713
1713
|
}
|
|
1714
1714
|
const vc = (t, e) => {
|
|
1715
|
-
const n =
|
|
1715
|
+
const n = Vt.createTransformer(e), i = we(t), s = we(e);
|
|
1716
1716
|
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Dn.has(t) && !s.values.length || Dn.has(e) && !i.values.length ? mc(t, e) : Pe(ro(yc(i, s), s.values), n) : (se(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ge(t, e));
|
|
1717
1717
|
};
|
|
1718
1718
|
function oo(t, e, n) {
|
|
@@ -1722,7 +1722,7 @@ const xc = (t) => {
|
|
|
1722
1722
|
const e = ({ timestamp: n }) => t(n);
|
|
1723
1723
|
return {
|
|
1724
1724
|
start: (n = !0) => N.update(e, n),
|
|
1725
|
-
stop: () =>
|
|
1725
|
+
stop: () => At(e),
|
|
1726
1726
|
/**
|
|
1727
1727
|
* If we're processing this frame we can use the
|
|
1728
1728
|
* framelocked timestamp to keep things in sync.
|
|
@@ -1790,12 +1790,12 @@ function _c({ duration: t = F.duration, bounce: e = F.bounce, velocity: n = F.ve
|
|
|
1790
1790
|
let s, r;
|
|
1791
1791
|
se(t <= /* @__PURE__ */ pt(F.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
1792
1792
|
let o = 1 - e;
|
|
1793
|
-
o =
|
|
1794
|
-
const c = u * o, h = c * t, d = c - n, f = Ln(u, o),
|
|
1795
|
-
return yn - d / f *
|
|
1793
|
+
o = Tt(F.minDamping, F.maxDamping, o), t = Tt(F.minDuration, F.maxDuration, /* @__PURE__ */ ct(t)), o < 1 ? (s = (u) => {
|
|
1794
|
+
const c = u * o, h = c * t, d = c - n, f = Ln(u, o), g = Math.exp(-h);
|
|
1795
|
+
return yn - d / f * g;
|
|
1796
1796
|
}, r = (u) => {
|
|
1797
|
-
const h = u * o * t, d = h * n + n, f = Math.pow(o, 2) * Math.pow(u, 2) * t,
|
|
1798
|
-
return (-s(u) + yn > 0 ? -1 : 1) * ((d - f) *
|
|
1797
|
+
const h = u * o * t, d = h * n + n, f = Math.pow(o, 2) * Math.pow(u, 2) * t, g = Math.exp(-h), m = Ln(Math.pow(u, 2), o);
|
|
1798
|
+
return (-s(u) + yn > 0 ? -1 : 1) * ((d - f) * g) / m;
|
|
1799
1799
|
}) : (s = (u) => {
|
|
1800
1800
|
const c = Math.exp(-u * t), h = (u - n) * t + 1;
|
|
1801
1801
|
return -yn + c * h;
|
|
@@ -1844,7 +1844,7 @@ function Ec(t) {
|
|
|
1844
1844
|
};
|
|
1845
1845
|
if (!ss(t, Pc) && ss(t, Cc))
|
|
1846
1846
|
if (t.visualDuration) {
|
|
1847
|
-
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, r = 2 *
|
|
1847
|
+
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), s = i * i, r = 2 * Tt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
|
|
1848
1848
|
e = {
|
|
1849
1849
|
...e,
|
|
1850
1850
|
mass: F.mass,
|
|
@@ -1871,33 +1871,33 @@ function qe(t = F.visualDuration, e = F.bounce) {
|
|
|
1871
1871
|
const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: r }, { stiffness: l, damping: u, mass: c, duration: h, velocity: d, isResolvedFromDuration: f } = Ec({
|
|
1872
1872
|
...n,
|
|
1873
1873
|
velocity: -/* @__PURE__ */ ct(n.velocity || 0)
|
|
1874
|
-
}),
|
|
1874
|
+
}), g = d || 0, m = u / (2 * Math.sqrt(l * c)), v = o - r, y = /* @__PURE__ */ ct(Math.sqrt(l / c)), x = Math.abs(v) < 5;
|
|
1875
1875
|
i || (i = x ? F.restSpeed.granular : F.restSpeed.default), s || (s = x ? F.restDelta.granular : F.restDelta.default);
|
|
1876
|
-
let
|
|
1876
|
+
let p;
|
|
1877
1877
|
if (m < 1) {
|
|
1878
1878
|
const T = Ln(y, m);
|
|
1879
|
-
|
|
1879
|
+
p = (C) => {
|
|
1880
1880
|
const _ = Math.exp(-m * y * C);
|
|
1881
|
-
return o - _ * ((
|
|
1881
|
+
return o - _ * ((g + m * y * v) / T * Math.sin(T * C) + v * Math.cos(T * C));
|
|
1882
1882
|
};
|
|
1883
1883
|
} else if (m === 1)
|
|
1884
|
-
|
|
1884
|
+
p = (T) => o - Math.exp(-y * T) * (v + (g + y * v) * T);
|
|
1885
1885
|
else {
|
|
1886
1886
|
const T = y * Math.sqrt(m * m - 1);
|
|
1887
|
-
|
|
1887
|
+
p = (C) => {
|
|
1888
1888
|
const _ = Math.exp(-m * y * C), S = Math.min(T * C, 300);
|
|
1889
|
-
return o - _ * ((
|
|
1889
|
+
return o - _ * ((g + m * y * v) * Math.sinh(S) + T * v * Math.cosh(S)) / T;
|
|
1890
1890
|
};
|
|
1891
1891
|
}
|
|
1892
1892
|
const w = {
|
|
1893
1893
|
calculatedDuration: f && h || null,
|
|
1894
1894
|
next: (T) => {
|
|
1895
|
-
const C =
|
|
1895
|
+
const C = p(T);
|
|
1896
1896
|
if (f)
|
|
1897
1897
|
a.done = T >= h;
|
|
1898
1898
|
else {
|
|
1899
|
-
let _ = T === 0 ?
|
|
1900
|
-
m < 1 && (_ = T === 0 ? /* @__PURE__ */ pt(
|
|
1899
|
+
let _ = T === 0 ? g : 0;
|
|
1900
|
+
m < 1 && (_ = T === 0 ? /* @__PURE__ */ pt(g) : lo(p, T, C));
|
|
1901
1901
|
const S = Math.abs(_) <= i, E = Math.abs(o - C) <= s;
|
|
1902
1902
|
a.done = S && E;
|
|
1903
1903
|
}
|
|
@@ -1920,19 +1920,19 @@ function On({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
1920
1920
|
const h = t[0], d = {
|
|
1921
1921
|
done: !1,
|
|
1922
1922
|
value: h
|
|
1923
|
-
}, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l,
|
|
1923
|
+
}, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l, g = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
|
|
1924
1924
|
let m = n * e;
|
|
1925
1925
|
const v = h + m, y = o === void 0 ? v : o(v);
|
|
1926
1926
|
y !== v && (m = y - h);
|
|
1927
|
-
const x = (S) => -m * Math.exp(-S / i),
|
|
1928
|
-
const E = x(S), O =
|
|
1927
|
+
const x = (S) => -m * Math.exp(-S / i), p = (S) => y + x(S), w = (S) => {
|
|
1928
|
+
const E = x(S), O = p(S);
|
|
1929
1929
|
d.done = Math.abs(E) <= u, d.value = d.done ? y : O;
|
|
1930
1930
|
};
|
|
1931
1931
|
let T, C;
|
|
1932
1932
|
const _ = (S) => {
|
|
1933
1933
|
f(d.value) && (T = S, C = qe({
|
|
1934
|
-
keyframes: [d.value,
|
|
1935
|
-
velocity: lo(
|
|
1934
|
+
keyframes: [d.value, g(d.value)],
|
|
1935
|
+
velocity: lo(p, S, d.value),
|
|
1936
1936
|
// TODO: This should be passing * 1000
|
|
1937
1937
|
damping: s,
|
|
1938
1938
|
stiffness: r,
|
|
@@ -1949,7 +1949,7 @@ function On({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
function Mc(t, e, n) {
|
|
1952
|
-
const i = [], s = n ||
|
|
1952
|
+
const i = [], s = n || Ct.mix || oo, r = t.length - 1;
|
|
1953
1953
|
for (let o = 0; o < r; o++) {
|
|
1954
1954
|
let a = s(t[o], t[o + 1]);
|
|
1955
1955
|
if (e) {
|
|
@@ -1962,7 +1962,7 @@ function Mc(t, e, n) {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
function Ac(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
1964
1964
|
const r = t.length;
|
|
1965
|
-
if (
|
|
1965
|
+
if (St(r === e.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
|
|
1966
1966
|
return () => e[0];
|
|
1967
1967
|
if (r === 2 && e[0] === e[1])
|
|
1968
1968
|
return () => e[1];
|
|
@@ -1978,7 +1978,7 @@ function Ac(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
1978
1978
|
const d = /* @__PURE__ */ xe(t[h], t[h + 1], c);
|
|
1979
1979
|
return a[h](d);
|
|
1980
1980
|
};
|
|
1981
|
-
return n ? (c) => u(
|
|
1981
|
+
return n ? (c) => u(Tt(t[0], t[r - 1], c)) : u;
|
|
1982
1982
|
}
|
|
1983
1983
|
function Vc(t, e) {
|
|
1984
1984
|
const n = t[t.length - 1];
|
|
@@ -2067,7 +2067,7 @@ class Ti extends _i {
|
|
|
2067
2067
|
const { type: n = Gt, repeat: i = 0, repeatDelay: s = 0, repeatType: r, velocity: o = 0 } = e;
|
|
2068
2068
|
let { keyframes: a } = e;
|
|
2069
2069
|
const l = n || Gt;
|
|
2070
|
-
process.env.NODE_ENV !== "production" && l !== Gt &&
|
|
2070
|
+
process.env.NODE_ENV !== "production" && l !== Gt && St(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== Gt && typeof a[0] != "number" && (this.mixKeyframes = Pe(Ic, oo(a[0], a[1])), a = [0, 100]);
|
|
2071
2071
|
const u = l({ ...e, keyframes: a });
|
|
2072
2072
|
r === "mirror" && (this.mirroredGenerator = l({
|
|
2073
2073
|
...e,
|
|
@@ -2085,22 +2085,22 @@ class Ti extends _i {
|
|
|
2085
2085
|
const { generator: i, totalDuration: s, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: a, calculatedDuration: l } = this;
|
|
2086
2086
|
if (this.startTime === null)
|
|
2087
2087
|
return i.next(0);
|
|
2088
|
-
const { delay: u = 0, keyframes: c, repeat: h, repeatType: d, repeatDelay: f, type:
|
|
2088
|
+
const { delay: u = 0, keyframes: c, repeat: h, repeatType: d, repeatDelay: f, type: g, onUpdate: m, finalKeyframe: v } = this.options;
|
|
2089
2089
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - s / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
|
|
2090
2090
|
const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? y < 0 : y > s;
|
|
2091
2091
|
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
2092
|
-
let
|
|
2092
|
+
let p = this.currentTime, w = i;
|
|
2093
2093
|
if (h) {
|
|
2094
2094
|
const S = Math.min(this.currentTime, s) / a;
|
|
2095
2095
|
let E = Math.floor(S), O = S % 1;
|
|
2096
|
-
!O && S >= 1 && (O = 1), O === 1 && E--, E = Math.min(E, h + 1), !!(E % 2) && (d === "reverse" ? (O = 1 - O, f && (O -= f / a)) : d === "mirror" && (w = o)),
|
|
2096
|
+
!O && S >= 1 && (O = 1), O === 1 && E--, E = Math.min(E, h + 1), !!(E % 2) && (d === "reverse" ? (O = 1 - O, f && (O -= f / a)) : d === "mirror" && (w = o)), p = Tt(0, 1, O) * a;
|
|
2097
2097
|
}
|
|
2098
|
-
const T = x ? { done: !1, value: c[0] } : w.next(
|
|
2098
|
+
const T = x ? { done: !1, value: c[0] } : w.next(p);
|
|
2099
2099
|
r && (T.value = r(T.value));
|
|
2100
2100
|
let { done: C } = T;
|
|
2101
2101
|
!x && l !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
2102
2102
|
const _ = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
|
|
2103
|
-
return _ &&
|
|
2103
|
+
return _ && g !== On && (T.value = wi(c, this.options, v, this.speed)), m && m(T.value), _ && this.finish(), T;
|
|
2104
2104
|
}
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -2394,7 +2394,7 @@ class Qc extends _i {
|
|
|
2394
2394
|
if (super(), this.finishedTime = null, this.isStopped = !1, !e)
|
|
2395
2395
|
return;
|
|
2396
2396
|
const { element: n, name: i, keyframes: s, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: l } = e;
|
|
2397
|
-
this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e,
|
|
2397
|
+
this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, St(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
|
|
2398
2398
|
const u = Jc(e);
|
|
2399
2399
|
this.animation = Zc(n, i, s, u, r), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
2400
2400
|
if (this.finishedTime = this.time, !r) {
|
|
@@ -2521,7 +2521,7 @@ class nu extends Qc {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
const hs = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2524
|
-
(
|
|
2524
|
+
(Vt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2525
2525
|
!t.startsWith("url("));
|
|
2526
2526
|
function iu(t) {
|
|
2527
2527
|
const e = t[0];
|
|
@@ -2580,12 +2580,12 @@ class cu extends _i {
|
|
|
2580
2580
|
element: c,
|
|
2581
2581
|
...h
|
|
2582
2582
|
}, f = c?.KeyframeResolver || Si;
|
|
2583
|
-
this.keyframeResolver = new f(a, (
|
|
2583
|
+
this.keyframeResolver = new f(a, (g, m, v) => this.onKeyframesResolved(g, m, d, !v), l, u, c), this.keyframeResolver?.scheduleResolve();
|
|
2584
2584
|
}
|
|
2585
2585
|
onKeyframesResolved(e, n, i, s) {
|
|
2586
2586
|
this.keyframeResolver = void 0;
|
|
2587
2587
|
const { name: r, type: o, velocity: a, delay: l, isHandoff: u, onUpdate: c } = i;
|
|
2588
|
-
this.resolvedAt = it.now(), su(e, r, o, a) || ((
|
|
2588
|
+
this.resolvedAt = it.now(), su(e, r, o, a) || ((Ct.instantAnimations || !l) && c?.(wi(e, i, n)), e[0] = e[e.length - 1], Wn(i), i.repeat = 0);
|
|
2589
2589
|
const d = {
|
|
2590
2590
|
startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > lu ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
2591
2591
|
finalKeyframe: n,
|
|
@@ -2660,7 +2660,7 @@ function hu(t) {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
const du = 4;
|
|
2662
2662
|
function yo(t, e, n = 1) {
|
|
2663
|
-
|
|
2663
|
+
St(n <= du, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
2664
2664
|
const [i, s] = hu(t);
|
|
2665
2665
|
if (!i)
|
|
2666
2666
|
return;
|
|
@@ -2685,7 +2685,7 @@ const vo = /* @__PURE__ */ new Set([
|
|
|
2685
2685
|
]), fu = {
|
|
2686
2686
|
test: (t) => t === "auto",
|
|
2687
2687
|
parse: (t) => t
|
|
2688
|
-
}, xo = (t) => (e) => e.test(t), bo = [re, P, vt,
|
|
2688
|
+
}, xo = (t) => (e) => e.test(t), bo = [re, P, vt, Et, ic, nc, fu], ds = (t) => bo.find(xo(t));
|
|
2689
2689
|
function mu(t) {
|
|
2690
2690
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || $r(t) : !0;
|
|
2691
2691
|
}
|
|
@@ -2702,7 +2702,7 @@ function gu(t) {
|
|
|
2702
2702
|
return i !== n && (r *= 100), e + "(" + r + s + ")";
|
|
2703
2703
|
}
|
|
2704
2704
|
const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
|
|
2705
|
-
...
|
|
2705
|
+
...Vt,
|
|
2706
2706
|
getAnimatableNone: (t) => {
|
|
2707
2707
|
const e = t.match(yu);
|
|
2708
2708
|
return e ? e.map(gu).join(" ") : t;
|
|
@@ -2711,17 +2711,17 @@ const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
|
|
|
2711
2711
|
...re,
|
|
2712
2712
|
transform: Math.round
|
|
2713
2713
|
}, vu = {
|
|
2714
|
-
rotate:
|
|
2715
|
-
rotateX:
|
|
2716
|
-
rotateY:
|
|
2717
|
-
rotateZ:
|
|
2714
|
+
rotate: Et,
|
|
2715
|
+
rotateX: Et,
|
|
2716
|
+
rotateY: Et,
|
|
2717
|
+
rotateZ: Et,
|
|
2718
2718
|
scale: Re,
|
|
2719
2719
|
scaleX: Re,
|
|
2720
2720
|
scaleY: Re,
|
|
2721
2721
|
scaleZ: Re,
|
|
2722
|
-
skew:
|
|
2723
|
-
skewX:
|
|
2724
|
-
skewY:
|
|
2722
|
+
skew: Et,
|
|
2723
|
+
skewX: Et,
|
|
2724
|
+
skewY: Et,
|
|
2725
2725
|
distance: P,
|
|
2726
2726
|
translateX: P,
|
|
2727
2727
|
translateY: P,
|
|
@@ -2780,23 +2780,23 @@ const yu = /\b([a-z-]*)\(.*?\)/gu, Un = {
|
|
|
2780
2780
|
}, xu = {
|
|
2781
2781
|
...Pi,
|
|
2782
2782
|
// Color props
|
|
2783
|
-
color:
|
|
2784
|
-
backgroundColor:
|
|
2785
|
-
outlineColor:
|
|
2786
|
-
fill:
|
|
2787
|
-
stroke:
|
|
2783
|
+
color: K,
|
|
2784
|
+
backgroundColor: K,
|
|
2785
|
+
outlineColor: K,
|
|
2786
|
+
fill: K,
|
|
2787
|
+
stroke: K,
|
|
2788
2788
|
// Border props
|
|
2789
|
-
borderColor:
|
|
2790
|
-
borderTopColor:
|
|
2791
|
-
borderRightColor:
|
|
2792
|
-
borderBottomColor:
|
|
2793
|
-
borderLeftColor:
|
|
2789
|
+
borderColor: K,
|
|
2790
|
+
borderTopColor: K,
|
|
2791
|
+
borderRightColor: K,
|
|
2792
|
+
borderBottomColor: K,
|
|
2793
|
+
borderLeftColor: K,
|
|
2794
2794
|
filter: Un,
|
|
2795
2795
|
WebkitFilter: Un
|
|
2796
2796
|
}, wo = (t) => xu[t];
|
|
2797
2797
|
function _o(t, e) {
|
|
2798
2798
|
let n = wo(t);
|
|
2799
|
-
return n !== Un && (n =
|
|
2799
|
+
return n !== Un && (n = Vt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2800
2800
|
}
|
|
2801
2801
|
const bu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2802
2802
|
function wu(t, e, n) {
|
|
@@ -3163,8 +3163,8 @@ function ku(t, e, n = {}) {
|
|
|
3163
3163
|
if (!ys(a))
|
|
3164
3164
|
return;
|
|
3165
3165
|
$e.add(l);
|
|
3166
|
-
const u = e(l, a), c = (f,
|
|
3167
|
-
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), $e.has(l) && $e.delete(l), ys(f) && typeof u == "function" && u(f, { success:
|
|
3166
|
+
const u = e(l, a), c = (f, g) => {
|
|
3167
|
+
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), $e.has(l) && $e.delete(l), ys(f) && typeof u == "function" && u(f, { success: g });
|
|
3168
3168
|
}, h = (f) => {
|
|
3169
3169
|
c(f, l === window || l === document || n.useGlobalTarget || Eo(l, f.target));
|
|
3170
3170
|
}, d = (f) => {
|
|
@@ -3182,7 +3182,7 @@ function Mo(t) {
|
|
|
3182
3182
|
function Ru(t) {
|
|
3183
3183
|
return Mo(t) && t.tagName === "svg";
|
|
3184
3184
|
}
|
|
3185
|
-
const tt = (t) => !!(t && t.getVelocity), Du = [...bo,
|
|
3185
|
+
const tt = (t) => !!(t && t.getVelocity), Du = [...bo, K, Vt], Lu = (t) => Du.find(xo(t)), Ai = ne({
|
|
3186
3186
|
transformPagePoint: (t) => t,
|
|
3187
3187
|
isStatic: !1,
|
|
3188
3188
|
reducedMotion: "never"
|
|
@@ -3241,7 +3241,7 @@ function Nu({ children: t, isPresent: e, anchorX: n, root: i }) {
|
|
|
3241
3241
|
const { width: u, height: c, top: h, left: d, right: f } = o.current;
|
|
3242
3242
|
if (e || !r.current || !u || !c)
|
|
3243
3243
|
return;
|
|
3244
|
-
const
|
|
3244
|
+
const g = n === "left" ? `left: ${d}` : `right: ${f}`;
|
|
3245
3245
|
r.current.dataset.motionPopId = s;
|
|
3246
3246
|
const m = document.createElement("style");
|
|
3247
3247
|
a && (m.nonce = a);
|
|
@@ -3251,7 +3251,7 @@ function Nu({ children: t, isPresent: e, anchorX: n, root: i }) {
|
|
|
3251
3251
|
position: absolute !important;
|
|
3252
3252
|
width: ${u}px !important;
|
|
3253
3253
|
height: ${c}px !important;
|
|
3254
|
-
${
|
|
3254
|
+
${g}px !important;
|
|
3255
3255
|
top: ${h}px !important;
|
|
3256
3256
|
}
|
|
3257
3257
|
`), () => {
|
|
@@ -3261,22 +3261,22 @@ function Nu({ children: t, isPresent: e, anchorX: n, root: i }) {
|
|
|
3261
3261
|
}
|
|
3262
3262
|
const Fu = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: r, mode: o, anchorX: a, root: l }) => {
|
|
3263
3263
|
const u = oi($u), c = Qn();
|
|
3264
|
-
let h = !0, d =
|
|
3264
|
+
let h = !0, d = U(() => (h = !1, {
|
|
3265
3265
|
id: c,
|
|
3266
3266
|
initial: e,
|
|
3267
3267
|
isPresent: n,
|
|
3268
3268
|
custom: s,
|
|
3269
3269
|
onExitComplete: (f) => {
|
|
3270
3270
|
u.set(f, !0);
|
|
3271
|
-
for (const
|
|
3272
|
-
if (!
|
|
3271
|
+
for (const g of u.values())
|
|
3272
|
+
if (!g)
|
|
3273
3273
|
return;
|
|
3274
3274
|
i && i();
|
|
3275
3275
|
},
|
|
3276
3276
|
register: (f) => (u.set(f, !1), () => u.delete(f))
|
|
3277
3277
|
}), [n, u, i]);
|
|
3278
|
-
return r && h && (d = { ...d }),
|
|
3279
|
-
u.forEach((f,
|
|
3278
|
+
return r && h && (d = { ...d }), U(() => {
|
|
3279
|
+
u.forEach((f, g) => u.set(g, !1));
|
|
3280
3280
|
}, [n]), A.useEffect(() => {
|
|
3281
3281
|
!n && !u.size && i && i();
|
|
3282
3282
|
}, [n]), o === "popLayout" && (t = b(Nu, { isPresent: n, anchorX: a, root: l, children: t })), b(sn.Provider, { value: d, children: t });
|
|
@@ -3293,7 +3293,7 @@ function Ao(t = !0) {
|
|
|
3293
3293
|
if (t)
|
|
3294
3294
|
return s(r);
|
|
3295
3295
|
}, [t]);
|
|
3296
|
-
const o =
|
|
3296
|
+
const o = wt(() => t && i && i(r), [r, i, t]);
|
|
3297
3297
|
return !n && i ? [!1, o] : [!0];
|
|
3298
3298
|
}
|
|
3299
3299
|
const De = (t) => t.key || "";
|
|
@@ -3304,9 +3304,9 @@ function xs(t) {
|
|
|
3304
3304
|
}), e;
|
|
3305
3305
|
}
|
|
3306
3306
|
const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: s = !0, mode: r = "sync", propagate: o = !1, anchorX: a = "left", root: l }) => {
|
|
3307
|
-
const [u, c] = Ao(o), h =
|
|
3307
|
+
const [u, c] = Ao(o), h = U(() => xs(t), [t]), d = o && !u ? [] : h.map(De), f = H(!0), g = H(h), m = oi(() => /* @__PURE__ */ new Map()), [v, y] = _t(h), [x, p] = _t(h);
|
|
3308
3308
|
Br(() => {
|
|
3309
|
-
f.current = !1,
|
|
3309
|
+
f.current = !1, g.current = h;
|
|
3310
3310
|
for (let C = 0; C < x.length; C++) {
|
|
3311
3311
|
const _ = De(x[C]);
|
|
3312
3312
|
d.includes(_) ? m.delete(_) : m.get(_) !== !0 && m.set(_, !1);
|
|
@@ -3319,7 +3319,7 @@ const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
|
|
|
3319
3319
|
const S = x[_], E = De(S);
|
|
3320
3320
|
d.includes(E) || (C.splice(_, 0, S), w.push(S));
|
|
3321
3321
|
}
|
|
3322
|
-
return r === "wait" && w.length && (C = w),
|
|
3322
|
+
return r === "wait" && w.length && (C = w), p(xs(C)), y(h), null;
|
|
3323
3323
|
}
|
|
3324
3324
|
process.env.NODE_ENV !== "production" && r === "wait" && x.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.`);
|
|
3325
3325
|
const { forceRender: T } = J(ri);
|
|
@@ -3332,7 +3332,7 @@ const zu = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presen
|
|
|
3332
3332
|
let O = !0;
|
|
3333
3333
|
m.forEach((nt) => {
|
|
3334
3334
|
nt || (O = !1);
|
|
3335
|
-
}), O && (T?.(), g
|
|
3335
|
+
}), O && (T?.(), p(g.current), o && c?.(), i && i());
|
|
3336
3336
|
};
|
|
3337
3337
|
return b(Fu, { isPresent: S, initial: !f.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: s, mode: r, root: l, onExitComplete: S ? void 0 : E, anchorX: a, children: C }, _);
|
|
3338
3338
|
}) });
|
|
@@ -3451,7 +3451,7 @@ function Gu(t, e) {
|
|
|
3451
3451
|
}
|
|
3452
3452
|
function Hu(t) {
|
|
3453
3453
|
const { initial: e, animate: n } = Gu(t, J(rn));
|
|
3454
|
-
return
|
|
3454
|
+
return U(() => ({ initial: e, animate: n }), [ws(e), ws(n)]);
|
|
3455
3455
|
}
|
|
3456
3456
|
function ws(t) {
|
|
3457
3457
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
@@ -3521,7 +3521,7 @@ function Lo(t, e, n) {
|
|
|
3521
3521
|
!tt(e[i]) && !Do(i, n) && (t[i] = e[i]);
|
|
3522
3522
|
}
|
|
3523
3523
|
function Ju({ transformTemplate: t }, e) {
|
|
3524
|
-
return
|
|
3524
|
+
return U(() => {
|
|
3525
3525
|
const n = Di();
|
|
3526
3526
|
return Ri(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3527
3527
|
}, [e]);
|
|
@@ -3571,7 +3571,7 @@ const Io = () => ({
|
|
|
3571
3571
|
attrs: {}
|
|
3572
3572
|
}), Bo = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
3573
3573
|
function sh(t, e, n, i) {
|
|
3574
|
-
const s =
|
|
3574
|
+
const s = U(() => {
|
|
3575
3575
|
const r = Io();
|
|
3576
3576
|
return Oo(r, e, Bo(i), t.transformTemplate, t.style), {
|
|
3577
3577
|
...r.attrs,
|
|
@@ -3632,7 +3632,7 @@ function Li(t) {
|
|
|
3632
3632
|
);
|
|
3633
3633
|
}
|
|
3634
3634
|
function oh(t, e, n, { latestValues: i }, s, r = !1) {
|
|
3635
|
-
const a = (Li(t) ? sh : th)(e, i, s, t), l = Ku(e, typeof t == "string", r), u = t !== Tr ? { ...l, ...a, ref: n } : {}, { children: c } = e, h =
|
|
3635
|
+
const a = (Li(t) ? sh : th)(e, i, s, t), l = Ku(e, typeof t == "string", r), u = t !== Tr ? { ...l, ...a, ref: n } : {}, { children: c } = e, h = U(() => tt(c) ? c.get() : c, [c]);
|
|
3636
3636
|
return Sa(t, {
|
|
3637
3637
|
...u,
|
|
3638
3638
|
children: h
|
|
@@ -3677,16 +3677,16 @@ function lh(t, e, n, i) {
|
|
|
3677
3677
|
if (h && typeof h != "boolean" && !on(h)) {
|
|
3678
3678
|
const d = Array.isArray(h) ? h : [h];
|
|
3679
3679
|
for (let f = 0; f < d.length; f++) {
|
|
3680
|
-
const
|
|
3681
|
-
if (
|
|
3682
|
-
const { transitionEnd: m, transition: v, ...y } =
|
|
3680
|
+
const g = Oi(t, d[f]);
|
|
3681
|
+
if (g) {
|
|
3682
|
+
const { transitionEnd: m, transition: v, ...y } = g;
|
|
3683
3683
|
for (const x in y) {
|
|
3684
|
-
let
|
|
3685
|
-
if (Array.isArray(
|
|
3686
|
-
const w = c ?
|
|
3687
|
-
|
|
3684
|
+
let p = y[x];
|
|
3685
|
+
if (Array.isArray(p)) {
|
|
3686
|
+
const w = c ? p.length - 1 : 0;
|
|
3687
|
+
p = p[w];
|
|
3688
3688
|
}
|
|
3689
|
-
|
|
3689
|
+
p !== null && (s[x] = p);
|
|
3690
3690
|
}
|
|
3691
3691
|
for (const x in m)
|
|
3692
3692
|
s[x] = m[x];
|
|
@@ -3726,7 +3726,7 @@ function Ht(t) {
|
|
|
3726
3726
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
3727
3727
|
}
|
|
3728
3728
|
function dh(t, e, n) {
|
|
3729
|
-
return
|
|
3729
|
+
return wt(
|
|
3730
3730
|
(i) => {
|
|
3731
3731
|
i && t.onMount && t.onMount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Ht(n) && (n.current = i));
|
|
3732
3732
|
},
|
|
@@ -3754,13 +3754,13 @@ function mh(t, e, n, i, s) {
|
|
|
3754
3754
|
wr(() => {
|
|
3755
3755
|
c && d.current && c.update(n, a);
|
|
3756
3756
|
});
|
|
3757
|
-
const f = n[$o],
|
|
3757
|
+
const f = n[$o], g = H(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
|
|
3758
3758
|
return Br(() => {
|
|
3759
|
-
c && (d.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(),
|
|
3759
|
+
c && (d.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), c.scheduleRenderMicrotask(), g.current && c.animationState && c.animationState.animateChanges());
|
|
3760
3760
|
}), xt(() => {
|
|
3761
|
-
c && (!
|
|
3761
|
+
c && (!g.current && c.animationState && c.animationState.animateChanges(), g.current && (queueMicrotask(() => {
|
|
3762
3762
|
window.MotionHandoffMarkAsComplete?.(f);
|
|
3763
|
-
}),
|
|
3763
|
+
}), g.current = !1), c.enteringChildren = void 0);
|
|
3764
3764
|
}), c;
|
|
3765
3765
|
}
|
|
3766
3766
|
function ph(t, e, n, i) {
|
|
@@ -3800,8 +3800,8 @@ function xn(t, { forwardMotionProps: e = !1 } = {}, n, i) {
|
|
|
3800
3800
|
}, { isStatic: h } = c, d = Hu(a), f = s(a, h);
|
|
3801
3801
|
if (!h && ai) {
|
|
3802
3802
|
yh(c, n);
|
|
3803
|
-
const
|
|
3804
|
-
u =
|
|
3803
|
+
const g = vh(c);
|
|
3804
|
+
u = g.MeasureLayout, d.visualElement = mh(t, f, c, i, g.ProjectionNode);
|
|
3805
3805
|
}
|
|
3806
3806
|
return L(rn.Provider, { value: d, children: [u && d.visualElement ? b(u, { visualElement: d.visualElement, ...c }) : null, oh(t, a, dh(f, d.visualElement, l), f, h, e)] });
|
|
3807
3807
|
}
|
|
@@ -3817,7 +3817,7 @@ function yh(t, e) {
|
|
|
3817
3817
|
const n = J(Vo).strict;
|
|
3818
3818
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
3819
3819
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
3820
|
-
t.ignoreStrict ? se(!1, i, "lazy-strict-mode") :
|
|
3820
|
+
t.ignoreStrict ? se(!1, i, "lazy-strict-mode") : St(!1, i, "lazy-strict-mode");
|
|
3821
3821
|
}
|
|
3822
3822
|
}
|
|
3823
3823
|
function vh(t) {
|
|
@@ -4005,7 +4005,7 @@ class Eh {
|
|
|
4005
4005
|
this.current = e, Ch.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Ho.current || Sh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Hn.current, process.env.NODE_ENV !== "production" && di(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
4006
4006
|
}
|
|
4007
4007
|
unmount() {
|
|
4008
|
-
this.projection && this.projection.unmount(),
|
|
4008
|
+
this.projection && this.projection.unmount(), At(this.notifyUpdate), At(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
4009
4009
|
for (const e in this.events)
|
|
4010
4010
|
this.events[e].clear();
|
|
4011
4011
|
for (const e in this.features) {
|
|
@@ -4142,7 +4142,7 @@ class Eh {
|
|
|
4142
4142
|
*/
|
|
4143
4143
|
readValue(e, n) {
|
|
4144
4144
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
4145
|
-
return i != null && (typeof i == "string" && (Nr(i) || $r(i)) ? i = parseFloat(i) : !Lu(i) &&
|
|
4145
|
+
return i != null && (typeof i == "string" && (Nr(i) || $r(i)) ? i = parseFloat(i) : !Lu(i) && Vt.test(n) && (i = _o(e, n)), this.setBaseTarget(e, tt(i) ? i.get() : i)), tt(i) ? i.get() : i;
|
|
4146
4146
|
}
|
|
4147
4147
|
/**
|
|
4148
4148
|
* Set the base target to later animate back to. This is currently
|
|
@@ -4319,8 +4319,8 @@ function Yn(t, e) {
|
|
|
4319
4319
|
const n = t.getValue("willChange");
|
|
4320
4320
|
if (Ih(n))
|
|
4321
4321
|
return n.add(e);
|
|
4322
|
-
if (!n &&
|
|
4323
|
-
const i = new
|
|
4322
|
+
if (!n && Ct.WillChange) {
|
|
4323
|
+
const i = new Ct.WillChange("auto");
|
|
4324
4324
|
t.addValue("willChange", i), i.add(e);
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
@@ -4375,7 +4375,7 @@ const Ni = (t, e, n, i = {}, s, r) => (o) => {
|
|
|
4375
4375
|
};
|
|
4376
4376
|
Uh(a) || Object.assign(c, Wh(t, c)), c.duration && (c.duration = /* @__PURE__ */ pt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ pt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
4377
4377
|
let h = !1;
|
|
4378
|
-
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Wn(c), c.delay === 0 && (h = !0)), (
|
|
4378
|
+
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (Wn(c), c.delay === 0 && (h = !0)), (Ct.instantAnimations || Ct.skipAnimations) && (h = !0, Wn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, h && !r && e.get() !== void 0) {
|
|
4379
4379
|
const d = Nh(c.keyframes, a);
|
|
4380
4380
|
if (d !== void 0) {
|
|
4381
4381
|
N.update(() => {
|
|
@@ -4401,8 +4401,8 @@ function Jo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
4401
4401
|
const f = {
|
|
4402
4402
|
delay: n,
|
|
4403
4403
|
...Ci(r || {}, c)
|
|
4404
|
-
},
|
|
4405
|
-
if (
|
|
4404
|
+
}, g = h.get();
|
|
4405
|
+
if (g !== void 0 && !h.isAnimating && !Array.isArray(d) && d === g && !f.velocity)
|
|
4406
4406
|
continue;
|
|
4407
4407
|
let m = !1;
|
|
4408
4408
|
if (window.MotionHandoffAnimation) {
|
|
@@ -4500,8 +4500,8 @@ function Jh(t) {
|
|
|
4500
4500
|
const s = (l) => (u, c) => {
|
|
4501
4501
|
const h = Jt(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
|
|
4502
4502
|
if (h) {
|
|
4503
|
-
const { transition: d, transitionEnd: f, ...
|
|
4504
|
-
u = { ...u, ...
|
|
4503
|
+
const { transition: d, transitionEnd: f, ...g } = h;
|
|
4504
|
+
u = { ...u, ...g, ...f };
|
|
4505
4505
|
}
|
|
4506
4506
|
return u;
|
|
4507
4507
|
};
|
|
@@ -4510,39 +4510,39 @@ function Jh(t) {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
function o(l) {
|
|
4512
4512
|
const { props: u } = t, c = ea(t.parent) || {}, h = [], d = /* @__PURE__ */ new Set();
|
|
4513
|
-
let f = {},
|
|
4513
|
+
let f = {}, g = 1 / 0;
|
|
4514
4514
|
for (let v = 0; v < Xh; v++) {
|
|
4515
|
-
const y = Yh[v], x = n[y],
|
|
4516
|
-
T === !1 && (
|
|
4517
|
-
let C =
|
|
4515
|
+
const y = Yh[v], x = n[y], p = u[y] !== void 0 ? u[y] : c[y], w = _e(p), T = y === l ? x.isActive : null;
|
|
4516
|
+
T === !1 && (g = v);
|
|
4517
|
+
let C = p === c[y] && p !== u[y] && w;
|
|
4518
4518
|
if (C && i && t.manuallyAnimateOnMount && (C = !1), x.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
|
|
4519
4519
|
!x.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
|
|
4520
|
-
!
|
|
4521
|
-
on(
|
|
4520
|
+
!p && !x.prevProp || // Or if the prop doesn't define an animation
|
|
4521
|
+
on(p) || typeof p == "boolean")
|
|
4522
4522
|
continue;
|
|
4523
|
-
const _ = Qh(x.prevProp,
|
|
4523
|
+
const _ = Qh(x.prevProp, p);
|
|
4524
4524
|
let S = _ || // If we're making this variant active, we want to always make it active
|
|
4525
4525
|
y === l && x.isActive && !C && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
4526
|
-
v >
|
|
4527
|
-
const O = Array.isArray(
|
|
4526
|
+
v > g && w, E = !1;
|
|
4527
|
+
const O = Array.isArray(p) ? p : [p];
|
|
4528
4528
|
let nt = O.reduce(s(y), {});
|
|
4529
4529
|
T === !1 && (nt = {});
|
|
4530
|
-
const { prevResolvedValues:
|
|
4531
|
-
...
|
|
4530
|
+
const { prevResolvedValues: bt = {} } = x, Rt = {
|
|
4531
|
+
...bt,
|
|
4532
4532
|
...nt
|
|
4533
|
-
},
|
|
4533
|
+
}, Pt = (z) => {
|
|
4534
4534
|
S = !0, d.has(z) && (E = !0, d.delete(z)), x.needsAnimating[z] = !0;
|
|
4535
4535
|
const V = t.getValue(z);
|
|
4536
4536
|
V && (V.liveStyle = !1);
|
|
4537
4537
|
};
|
|
4538
4538
|
for (const z in Rt) {
|
|
4539
|
-
const V = nt[z], D =
|
|
4539
|
+
const V = nt[z], D = bt[z];
|
|
4540
4540
|
if (f.hasOwnProperty(z))
|
|
4541
4541
|
continue;
|
|
4542
4542
|
let j = !1;
|
|
4543
|
-
qn(V) && qn(D) ? j = !ta(V, D) : j = V !== D, j ? V != null ?
|
|
4543
|
+
qn(V) && qn(D) ? j = !ta(V, D) : j = V !== D, j ? V != null ? Pt(z) : d.add(z) : V !== void 0 && d.has(z) ? Pt(z) : x.protectedKeys[z] = !0;
|
|
4544
4544
|
}
|
|
4545
|
-
x.prevProp =
|
|
4545
|
+
x.prevProp = p, x.prevResolvedValues = nt, x.isActive && (f = { ...f, ...nt }), i && t.blockInitialAnimation && (S = !1);
|
|
4546
4546
|
const zt = C && _;
|
|
4547
4547
|
S && (!zt || E) && h.push(...O.map((z) => {
|
|
4548
4548
|
const V = { type: y };
|
|
@@ -4566,8 +4566,8 @@ function Jh(t) {
|
|
|
4566
4566
|
y && y.transition && (v.transition = y.transition);
|
|
4567
4567
|
}
|
|
4568
4568
|
d.forEach((y) => {
|
|
4569
|
-
const x = t.getBaseTarget(y),
|
|
4570
|
-
|
|
4569
|
+
const x = t.getBaseTarget(y), p = t.getValue(y);
|
|
4570
|
+
p && (p.liveStyle = !0), v[y] = x ?? null;
|
|
4571
4571
|
}), h.push({ animation: v });
|
|
4572
4572
|
}
|
|
4573
4573
|
let m = !!h.length;
|
|
@@ -4614,14 +4614,14 @@ function ks() {
|
|
|
4614
4614
|
exit: Dt()
|
|
4615
4615
|
};
|
|
4616
4616
|
}
|
|
4617
|
-
class
|
|
4617
|
+
class kt {
|
|
4618
4618
|
constructor(e) {
|
|
4619
4619
|
this.isMounted = !1, this.node = e;
|
|
4620
4620
|
}
|
|
4621
4621
|
update() {
|
|
4622
4622
|
}
|
|
4623
4623
|
}
|
|
4624
|
-
class td extends
|
|
4624
|
+
class td extends kt {
|
|
4625
4625
|
/**
|
|
4626
4626
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4627
4627
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -4649,7 +4649,7 @@ class td extends Vt {
|
|
|
4649
4649
|
}
|
|
4650
4650
|
}
|
|
4651
4651
|
let ed = 0;
|
|
4652
|
-
class nd extends
|
|
4652
|
+
class nd extends kt {
|
|
4653
4653
|
constructor() {
|
|
4654
4654
|
super(...arguments), this.id = ed++;
|
|
4655
4655
|
}
|
|
@@ -4732,8 +4732,8 @@ class ra {
|
|
|
4732
4732
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
4733
4733
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4734
4734
|
return;
|
|
4735
|
-
const d = _n(this.lastMoveEventInfo, this.history), f = this.startEvent !== null,
|
|
4736
|
-
if (!f && !
|
|
4735
|
+
const d = _n(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, g = hd(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
4736
|
+
if (!f && !g)
|
|
4737
4737
|
return;
|
|
4738
4738
|
const { point: m } = d, { timestamp: v } = Y;
|
|
4739
4739
|
this.history.push({ ...m, timestamp: v });
|
|
@@ -4743,11 +4743,11 @@ class ra {
|
|
|
4743
4743
|
this.lastMoveEvent = d, this.lastMoveEventInfo = wn(f, this.transformPagePoint), N.update(this.updatePoint, !0);
|
|
4744
4744
|
}, this.handlePointerUp = (d, f) => {
|
|
4745
4745
|
this.end();
|
|
4746
|
-
const { onEnd:
|
|
4746
|
+
const { onEnd: g, onSessionEnd: m, resumeAnimation: v } = this.handlers;
|
|
4747
4747
|
if (this.dragSnapToOrigin && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
4748
4748
|
return;
|
|
4749
4749
|
const y = _n(d.type === "pointercancel" ? this.lastMoveEventInfo : wn(f, this.transformPagePoint), this.history);
|
|
4750
|
-
this.startEvent &&
|
|
4750
|
+
this.startEvent && g && g(d, y), m && m(d, y);
|
|
4751
4751
|
}, !Mi(e))
|
|
4752
4752
|
return;
|
|
4753
4753
|
this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = s || window;
|
|
@@ -4760,7 +4760,7 @@ class ra {
|
|
|
4760
4760
|
this.handlers = e;
|
|
4761
4761
|
}
|
|
4762
4762
|
end() {
|
|
4763
|
-
this.removeListeners && this.removeListeners(),
|
|
4763
|
+
this.removeListeners && this.removeListeners(), At(this.updatePoint);
|
|
4764
4764
|
}
|
|
4765
4765
|
}
|
|
4766
4766
|
function wn(t, e) {
|
|
@@ -4829,7 +4829,7 @@ function gd(t, e) {
|
|
|
4829
4829
|
function yd(t, e) {
|
|
4830
4830
|
let n = 0.5;
|
|
4831
4831
|
const i = et(t), s = et(e);
|
|
4832
|
-
return s > i ? n = /* @__PURE__ */ xe(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ xe(t.min, t.max - s, e.min)),
|
|
4832
|
+
return s > i ? n = /* @__PURE__ */ xe(e.min, e.max - i, t.min) : i > s && (n = /* @__PURE__ */ xe(t.min, t.max - s, e.min)), Tt(0, 1, n);
|
|
4833
4833
|
}
|
|
4834
4834
|
function vd(t, e) {
|
|
4835
4835
|
const n = {};
|
|
@@ -4864,15 +4864,15 @@ class wd {
|
|
|
4864
4864
|
const { dragSnapToOrigin: d } = this.getProps();
|
|
4865
4865
|
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ae(h).point);
|
|
4866
4866
|
}, o = (h, d) => {
|
|
4867
|
-
const { drag: f, dragPropagation:
|
|
4868
|
-
if (f && !
|
|
4867
|
+
const { drag: f, dragPropagation: g, onDragStart: m } = this.getProps();
|
|
4868
|
+
if (f && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Pu(f), !this.openDragLock))
|
|
4869
4869
|
return;
|
|
4870
4870
|
this.latestPointerEvent = h, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), lt((y) => {
|
|
4871
4871
|
let x = this.getAxisMotionValue(y).get() || 0;
|
|
4872
4872
|
if (vt.test(x)) {
|
|
4873
|
-
const { projection:
|
|
4874
|
-
if (
|
|
4875
|
-
const w =
|
|
4873
|
+
const { projection: p } = this.visualElement;
|
|
4874
|
+
if (p && p.layout) {
|
|
4875
|
+
const w = p.layout.layoutBox[y];
|
|
4876
4876
|
w && (x = et(w) * (parseFloat(x) / 100));
|
|
4877
4877
|
}
|
|
4878
4878
|
}
|
|
@@ -4882,11 +4882,11 @@ class wd {
|
|
|
4882
4882
|
v && v.setActive("whileDrag", !0);
|
|
4883
4883
|
}, a = (h, d) => {
|
|
4884
4884
|
this.latestPointerEvent = h, this.latestPanInfo = d;
|
|
4885
|
-
const { dragPropagation: f, dragDirectionLock:
|
|
4885
|
+
const { dragPropagation: f, dragDirectionLock: g, onDirectionLock: m, onDrag: v } = this.getProps();
|
|
4886
4886
|
if (!f && !this.openDragLock)
|
|
4887
4887
|
return;
|
|
4888
4888
|
const { offset: y } = d;
|
|
4889
|
-
if (
|
|
4889
|
+
if (g && this.currentDirection === null) {
|
|
4890
4890
|
this.currentDirection = _d(y), this.currentDirection !== null && m && m(this.currentDirection);
|
|
4891
4891
|
return;
|
|
4892
4892
|
}
|
|
@@ -4948,7 +4948,7 @@ class wd {
|
|
|
4948
4948
|
if (!e || !Ht(e))
|
|
4949
4949
|
return !1;
|
|
4950
4950
|
const i = e.current;
|
|
4951
|
-
|
|
4951
|
+
St(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
4952
4952
|
const { projection: s } = this.visualElement;
|
|
4953
4953
|
if (!s || !s.layout)
|
|
4954
4954
|
return !1;
|
|
@@ -4966,7 +4966,7 @@ class wd {
|
|
|
4966
4966
|
return;
|
|
4967
4967
|
let h = l && l[c] || {};
|
|
4968
4968
|
o && (h = { min: 0, max: 0 });
|
|
4969
|
-
const d = s ? 200 : 1e6, f = s ? 40 : 1e7,
|
|
4969
|
+
const d = s ? 200 : 1e6, f = s ? 40 : 1e7, g = {
|
|
4970
4970
|
type: "inertia",
|
|
4971
4971
|
velocity: i ? e[c] : 0,
|
|
4972
4972
|
bounceStiffness: d,
|
|
@@ -4977,7 +4977,7 @@ class wd {
|
|
|
4977
4977
|
...r,
|
|
4978
4978
|
...h
|
|
4979
4979
|
};
|
|
4980
|
-
return this.startAxisValueAnimation(c,
|
|
4980
|
+
return this.startAxisValueAnimation(c, g);
|
|
4981
4981
|
});
|
|
4982
4982
|
return Promise.all(u).then(a);
|
|
4983
4983
|
}
|
|
@@ -5086,7 +5086,7 @@ function _d(t, e = 10) {
|
|
|
5086
5086
|
let n = null;
|
|
5087
5087
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
5088
5088
|
}
|
|
5089
|
-
class Td extends
|
|
5089
|
+
class Td extends kt {
|
|
5090
5090
|
constructor(e) {
|
|
5091
5091
|
super(e), this.removeGroupControls = ut, this.removeListeners = ut, this.controls = new wd(e);
|
|
5092
5092
|
}
|
|
@@ -5101,7 +5101,7 @@ class Td extends Vt {
|
|
|
5101
5101
|
const zs = (t) => (e, n) => {
|
|
5102
5102
|
t && N.postRender(() => t(e, n));
|
|
5103
5103
|
};
|
|
5104
|
-
class Sd extends
|
|
5104
|
+
class Sd extends kt {
|
|
5105
5105
|
constructor() {
|
|
5106
5106
|
super(...arguments), this.removePointerDownListener = ut;
|
|
5107
5107
|
}
|
|
@@ -5161,10 +5161,10 @@ const ue = {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
}, Cd = {
|
|
5163
5163
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
5164
|
-
const i = t, s =
|
|
5164
|
+
const i = t, s = Vt.parse(t);
|
|
5165
5165
|
if (s.length > 5)
|
|
5166
5166
|
return i;
|
|
5167
|
-
const r =
|
|
5167
|
+
const r = Vt.createTransformer(t), o = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
|
5168
5168
|
s[0 + o] /= a, s[1 + o] /= l;
|
|
5169
5169
|
const u = $(a, l, 0.5);
|
|
5170
5170
|
return typeof s[2 + o] == "number" && (s[2 + o] /= u), typeof s[3 + o] == "number" && (s[3 + o] /= u), r(s);
|
|
@@ -5253,9 +5253,9 @@ class Vd {
|
|
|
5253
5253
|
function kd(t, e) {
|
|
5254
5254
|
const n = it.now(), i = ({ timestamp: s }) => {
|
|
5255
5255
|
const r = s - n;
|
|
5256
|
-
r >= e && (
|
|
5256
|
+
r >= e && (At(i), t(r - e));
|
|
5257
5257
|
};
|
|
5258
|
-
return N.setup(i, !0), () =>
|
|
5258
|
+
return N.setup(i, !0), () => At(i);
|
|
5259
5259
|
}
|
|
5260
5260
|
const la = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Rd = la.length, Ws = (t) => typeof t == "string" ? parseFloat(t) : t, Us = (t) => typeof t == "number" || P.test(t);
|
|
5261
5261
|
function Dd(t, e, n, i, s, r) {
|
|
@@ -5383,8 +5383,8 @@ function zd(t, e, n) {
|
|
|
5383
5383
|
let i = "";
|
|
5384
5384
|
const s = t.x.translate / e.x, r = t.y.translate / e.y, o = n?.z || 0;
|
|
5385
5385
|
if ((s || r || o) && (i = `translate3d(${s}px, ${r}px, ${o}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
5386
|
-
const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: f, skewY:
|
|
5387
|
-
u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), f && (i += `skewX(${f}deg) `),
|
|
5386
|
+
const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: f, skewY: g } = n;
|
|
5387
|
+
u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), f && (i += `skewX(${f}deg) `), g && (i += `skewY(${g}deg) `);
|
|
5388
5388
|
}
|
|
5389
5389
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
5390
5390
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
@@ -5454,15 +5454,15 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5454
5454
|
this.target = void 0, this.relativeTarget = void 0;
|
|
5455
5455
|
return;
|
|
5456
5456
|
}
|
|
5457
|
-
const
|
|
5457
|
+
const g = this.options.transition || u.getDefaultTransition() || nf, { onLayoutAnimationStart: m, onLayoutAnimationComplete: v } = u.getProps(), y = !this.targetLayout || !ha(this.targetLayout, f), x = !h && d;
|
|
5458
5458
|
if (this.options.layoutRoot || this.resumeFrom || x || h && (y || !this.currentAnimation)) {
|
|
5459
5459
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
5460
|
-
const
|
|
5461
|
-
...Ci(
|
|
5460
|
+
const p = {
|
|
5461
|
+
...Ci(g, "layout"),
|
|
5462
5462
|
onPlay: m,
|
|
5463
5463
|
onComplete: v
|
|
5464
5464
|
};
|
|
5465
|
-
(u.shouldReduceMotion || this.options.layoutRoot) && (
|
|
5465
|
+
(u.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(c, x);
|
|
5466
5466
|
} else
|
|
5467
5467
|
h || sr(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
5468
5468
|
this.targetLayout = f;
|
|
@@ -5471,7 +5471,7 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5471
5471
|
unmount() {
|
|
5472
5472
|
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
5473
5473
|
const o = this.getStack();
|
|
5474
|
-
o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(),
|
|
5474
|
+
o && o.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), At(this.updateProjection);
|
|
5475
5475
|
}
|
|
5476
5476
|
// only on the root
|
|
5477
5477
|
blockUpdate() {
|
|
@@ -5523,7 +5523,7 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5523
5523
|
}
|
|
5524
5524
|
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yd), this.nodes.forEach(Ud), this.nodes.forEach(Kd)) : this.nodes.forEach(ir), this.clearAllSnapshots();
|
|
5525
5525
|
const a = it.now();
|
|
5526
|
-
Y.delta =
|
|
5526
|
+
Y.delta = Tt(0, 1e3 / 60, a - Y.timestamp), Y.timestamp = a, Y.isProcessing = !0, fn.update.process(Y), fn.preRender.process(Y), fn.render.process(Y), Y.isProcessing = !1;
|
|
5527
5527
|
}
|
|
5528
5528
|
didUpdate() {
|
|
5529
5529
|
this.updateScheduled || (this.updateScheduled = !0, Ei.read(this.scheduleUpdate));
|
|
@@ -5711,16 +5711,16 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5711
5711
|
setAnimationOrigin(o, a = !1) {
|
|
5712
5712
|
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = Xt();
|
|
5713
5713
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
5714
|
-
const d = W(), f = l ? l.source : void 0,
|
|
5714
|
+
const d = W(), f = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, m = f !== g, v = this.getStack(), y = !v || v.members.length <= 1, x = !!(m && !y && this.options.crossfade === !0 && !this.path.some(ef));
|
|
5715
5715
|
this.animationProgress = 0;
|
|
5716
|
-
let
|
|
5716
|
+
let p;
|
|
5717
5717
|
this.mixTargetDelta = (w) => {
|
|
5718
5718
|
const T = w / 1e3;
|
|
5719
|
-
rr(h.x, o.x, T), rr(h.y, o.y, T), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ge(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tf(this.relativeTarget, this.relativeTargetOrigin, d, T),
|
|
5719
|
+
rr(h.x, o.x, T), rr(h.y, o.y, T), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ge(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tf(this.relativeTarget, this.relativeTargetOrigin, d, T), p && Fd(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = W()), ot(p, this.relativeTarget)), m && (this.animationValues = c, Dd(c, u, this.latestValues, T, x, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
|
|
5720
5720
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5721
5721
|
}
|
|
5722
5722
|
startAnimation(o) {
|
|
5723
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (
|
|
5723
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (At(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
|
|
5724
5724
|
je.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = te(0)), this.currentAnimation = Md(this.motionValue, [0, 1e3], {
|
|
5725
5725
|
...o,
|
|
5726
5726
|
velocity: 0,
|
|
@@ -5832,16 +5832,16 @@ function fa({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5832
5832
|
l && (h = l(c, h)), o.transform = h;
|
|
5833
5833
|
const { x: d, y: f } = this.projectionDelta;
|
|
5834
5834
|
o.transformOrigin = `${d.origin * 100}% ${f.origin * 100}% 0`, u.animationValues ? o.opacity = u === this ? c.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : c.opacityExit : o.opacity = u === this ? c.opacity !== void 0 ? c.opacity : "" : c.opacityExit !== void 0 ? c.opacityExit : 0;
|
|
5835
|
-
for (const
|
|
5836
|
-
if (c[
|
|
5835
|
+
for (const g in Te) {
|
|
5836
|
+
if (c[g] === void 0)
|
|
5837
5837
|
continue;
|
|
5838
|
-
const { correct: m, applyTo: v, isCSSVariable: y } = Te[
|
|
5838
|
+
const { correct: m, applyTo: v, isCSSVariable: y } = Te[g], x = h === "none" ? c[g] : m(c[g], u);
|
|
5839
5839
|
if (v) {
|
|
5840
|
-
const
|
|
5841
|
-
for (let w = 0; w <
|
|
5840
|
+
const p = v.length;
|
|
5841
|
+
for (let w = 0; w < p; w++)
|
|
5842
5842
|
o[v[w]] = x;
|
|
5843
5843
|
} else
|
|
5844
|
-
y ? this.options.visualElement.renderState.vars[
|
|
5844
|
+
y ? this.options.visualElement.renderState.vars[g] = x : o[g] = x;
|
|
5845
5845
|
}
|
|
5846
5846
|
this.options.layoutId && (o.pointerEvents = u === this ? ze(a?.pointerEvents) || "" : "none");
|
|
5847
5847
|
}
|
|
@@ -5881,8 +5881,8 @@ function Kd(t) {
|
|
|
5881
5881
|
if (h && d) {
|
|
5882
5882
|
const f = W();
|
|
5883
5883
|
ge(f, e.layoutBox, h.layoutBox);
|
|
5884
|
-
const
|
|
5885
|
-
ge(
|
|
5884
|
+
const g = W();
|
|
5885
|
+
ge(g, n, d.layoutBox), ha(f, g) || (u = !0), c.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = f, t.relativeParent = c);
|
|
5886
5886
|
}
|
|
5887
5887
|
}
|
|
5888
5888
|
}
|
|
@@ -6003,7 +6003,7 @@ function ur(t, e, n) {
|
|
|
6003
6003
|
const s = "onHover" + n, r = i[s];
|
|
6004
6004
|
r && N.postRender(() => r(e, Ae(e)));
|
|
6005
6005
|
}
|
|
6006
|
-
class lf extends
|
|
6006
|
+
class lf extends kt {
|
|
6007
6007
|
mount() {
|
|
6008
6008
|
const { current: e } = this.node;
|
|
6009
6009
|
e && (this.unmount = Eu(e, (n, i) => (ur(this.node, i, "Start"), (s) => ur(this.node, s, "End"))));
|
|
@@ -6011,7 +6011,7 @@ class lf extends Vt {
|
|
|
6011
6011
|
unmount() {
|
|
6012
6012
|
}
|
|
6013
6013
|
}
|
|
6014
|
-
class cf extends
|
|
6014
|
+
class cf extends kt {
|
|
6015
6015
|
constructor() {
|
|
6016
6016
|
super(...arguments), this.isActive = !1;
|
|
6017
6017
|
}
|
|
@@ -6041,7 +6041,7 @@ function hr(t, e, n) {
|
|
|
6041
6041
|
const s = "onTap" + (n === "End" ? "" : n), r = i[s];
|
|
6042
6042
|
r && N.postRender(() => r(e, Ae(e)));
|
|
6043
6043
|
}
|
|
6044
|
-
class uf extends
|
|
6044
|
+
class uf extends kt {
|
|
6045
6045
|
mount() {
|
|
6046
6046
|
const { current: e } = this.node;
|
|
6047
6047
|
e && (this.unmount = ku(e, (n, i) => (hr(this.node, i, "Start"), (s, { success: r }) => hr(this.node, s, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
@@ -6071,7 +6071,7 @@ const pf = {
|
|
|
6071
6071
|
some: 0,
|
|
6072
6072
|
all: 1
|
|
6073
6073
|
};
|
|
6074
|
-
class gf extends
|
|
6074
|
+
class gf extends kt {
|
|
6075
6075
|
constructor() {
|
|
6076
6076
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
6077
6077
|
}
|
|
@@ -6146,6 +6146,7 @@ const vf = {
|
|
|
6146
6146
|
textDecoration: t.decoration,
|
|
6147
6147
|
textAlign: e,
|
|
6148
6148
|
textTransform: n,
|
|
6149
|
+
/** @deprecated TODO: remove this after deprecation of color prop @use colorName or style.color instead */
|
|
6149
6150
|
color: t.color,
|
|
6150
6151
|
opacity: t.disabled ? 0.5 : void 0,
|
|
6151
6152
|
overflow: t.overflow
|
|
@@ -6188,23 +6189,23 @@ const vf = {
|
|
|
6188
6189
|
onClick: h,
|
|
6189
6190
|
disabled: d,
|
|
6190
6191
|
...f
|
|
6191
|
-
} = t, [
|
|
6192
|
-
opacity:
|
|
6192
|
+
} = t, [g, m] = _t(!1), v = !!h, y = () => v && m(!0), x = () => v && m(!1), p = o, w = v ? Q({
|
|
6193
|
+
opacity: g ? u : 1,
|
|
6193
6194
|
transition: `opacity ${c}ms ease`
|
|
6194
6195
|
}) : "";
|
|
6195
6196
|
return /* @__PURE__ */ b(
|
|
6196
|
-
|
|
6197
|
+
p,
|
|
6197
6198
|
{
|
|
6198
6199
|
ref: e,
|
|
6199
6200
|
...f,
|
|
6200
6201
|
className: I(
|
|
6201
6202
|
Oe.text,
|
|
6202
6203
|
Oe[s],
|
|
6203
|
-
Oe[r],
|
|
6204
6204
|
Oe[a],
|
|
6205
|
-
|
|
6205
|
+
Oe[r],
|
|
6206
6206
|
w,
|
|
6207
|
-
i
|
|
6207
|
+
i,
|
|
6208
|
+
wf(t)
|
|
6208
6209
|
),
|
|
6209
6210
|
style: l,
|
|
6210
6211
|
onClick: h,
|
|
@@ -6343,15 +6344,15 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6343
6344
|
textFontWeight: h,
|
|
6344
6345
|
borderColor: d,
|
|
6345
6346
|
color: f = "accent",
|
|
6346
|
-
borderRadius:
|
|
6347
|
+
borderRadius: g,
|
|
6347
6348
|
width: m = "full",
|
|
6348
6349
|
size: v = "md",
|
|
6349
6350
|
iconLeft: y,
|
|
6350
6351
|
iconRight: x,
|
|
6351
|
-
intensity:
|
|
6352
|
+
intensity: p = "primary",
|
|
6352
6353
|
...w
|
|
6353
6354
|
}) => {
|
|
6354
|
-
const T =
|
|
6355
|
+
const T = U(() => {
|
|
6355
6356
|
switch (m) {
|
|
6356
6357
|
case "full":
|
|
6357
6358
|
return "100%";
|
|
@@ -6360,14 +6361,19 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6360
6361
|
default:
|
|
6361
6362
|
return m;
|
|
6362
6363
|
}
|
|
6363
|
-
}, [m]), C =
|
|
6364
|
-
if (
|
|
6365
|
-
if (g === "primary") {
|
|
6364
|
+
}, [m]), C = U(() => u || (l === "filled" ? f === "neutral" ? "var(--fill-neutral-secondary)" : `var(--fill-${f}-${p})` : "transparent"), [l, t, u, f, p]), _ = U(() => {
|
|
6365
|
+
if (p === "primary") {
|
|
6366
6366
|
if (f === "neutral") return "var(--text-secondary)";
|
|
6367
6367
|
if (l === "filled") return "var(--text-inverse)";
|
|
6368
|
-
}
|
|
6369
|
-
return `var(--text-${f}
|
|
6370
|
-
}, [
|
|
6368
|
+
} else if (f === "neutral") return "var(--text-secondary)";
|
|
6369
|
+
return `var(--text-${f})`;
|
|
6370
|
+
}, [p, f, l]), S = U(() => {
|
|
6371
|
+
if (p === "primary") {
|
|
6372
|
+
if (f === "neutral") return "secondary";
|
|
6373
|
+
if (l === "filled") return "inverse";
|
|
6374
|
+
} else if (f === "neutral") return "secondary";
|
|
6375
|
+
return f;
|
|
6376
|
+
}, [l, t, c, f, p]), E = U(() => d || (l === "outline" ? `var(--border-${f}-${p})` : "transparent"), [l, d, f, p]), O = U(() => {
|
|
6371
6377
|
switch (v) {
|
|
6372
6378
|
case "lg":
|
|
6373
6379
|
return he.lg;
|
|
@@ -6379,22 +6385,22 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6379
6385
|
default:
|
|
6380
6386
|
return he.md;
|
|
6381
6387
|
}
|
|
6382
|
-
}, [v]),
|
|
6388
|
+
}, [v]), nt = I(
|
|
6383
6389
|
Ff,
|
|
6384
|
-
jf(l, f,
|
|
6390
|
+
jf(l, f, p, t),
|
|
6385
6391
|
zf[l],
|
|
6386
6392
|
s,
|
|
6387
6393
|
t ? r : void 0,
|
|
6388
6394
|
Q({
|
|
6389
|
-
borderRadius:
|
|
6395
|
+
borderRadius: g ? he[g] : O,
|
|
6390
6396
|
backgroundColor: C,
|
|
6391
|
-
borderColor:
|
|
6392
|
-
color:
|
|
6397
|
+
borderColor: E,
|
|
6398
|
+
color: c,
|
|
6393
6399
|
width: "100%",
|
|
6394
6400
|
height: $f[v],
|
|
6395
6401
|
opacity: t ? 0.7 : 1
|
|
6396
6402
|
})
|
|
6397
|
-
),
|
|
6403
|
+
), bt = U(() => {
|
|
6398
6404
|
switch (v) {
|
|
6399
6405
|
case "lg":
|
|
6400
6406
|
case "md":
|
|
@@ -6414,7 +6420,7 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6414
6420
|
boxShadow: "inset 0 0 0 10000px rgba(0,0,0,0.1)",
|
|
6415
6421
|
transition: { duration: 0 }
|
|
6416
6422
|
} : {},
|
|
6417
|
-
className:
|
|
6423
|
+
className: nt,
|
|
6418
6424
|
disabled: t || e,
|
|
6419
6425
|
onClick: n,
|
|
6420
6426
|
...w,
|
|
@@ -6424,8 +6430,9 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6424
6430
|
/* @__PURE__ */ b(
|
|
6425
6431
|
Of,
|
|
6426
6432
|
{
|
|
6427
|
-
color:
|
|
6428
|
-
|
|
6433
|
+
style: { color: c },
|
|
6434
|
+
colorName: S,
|
|
6435
|
+
variant: bt,
|
|
6429
6436
|
className: o,
|
|
6430
6437
|
textOverflow: "ellipsis",
|
|
6431
6438
|
overflow: "hidden",
|
|
@@ -6459,9 +6466,9 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6459
6466
|
value: c,
|
|
6460
6467
|
required: h
|
|
6461
6468
|
}, d) => {
|
|
6462
|
-
const [f,
|
|
6463
|
-
m ||
|
|
6464
|
-
}, x = Yf[s],
|
|
6469
|
+
const [f, g] = _t(!1), m = t !== void 0, v = m ? t : f, y = (w) => {
|
|
6470
|
+
m || g(w.target.checked), e?.(w);
|
|
6471
|
+
}, x = Yf[s], p = v || i;
|
|
6465
6472
|
return /* @__PURE__ */ L("label", { className: I(Lt.checkbox, {
|
|
6466
6473
|
[Lt.disabled]: n
|
|
6467
6474
|
}), children: [
|
|
@@ -6497,12 +6504,12 @@ const Of = Fi(B), If = "_loader_1qleq_8", Bf = {
|
|
|
6497
6504
|
{
|
|
6498
6505
|
className: I(
|
|
6499
6506
|
Lt.checkbox__box,
|
|
6500
|
-
|
|
6507
|
+
p && Lt["checkbox__box--checked"],
|
|
6501
6508
|
{
|
|
6502
6509
|
[Lt.disabled]: n
|
|
6503
6510
|
}
|
|
6504
6511
|
),
|
|
6505
|
-
children:
|
|
6512
|
+
children: p && (i ? /* @__PURE__ */ b(Uf, { width: x * 0.75, height: x * 0.75 }) : /* @__PURE__ */ b(Wf, { width: x * 0.75, height: x * 0.75 }))
|
|
6506
6513
|
}
|
|
6507
6514
|
)
|
|
6508
6515
|
]
|
|
@@ -6557,8 +6564,8 @@ const sm = ht((t, e) => {
|
|
|
6557
6564
|
disabled: h,
|
|
6558
6565
|
value: d,
|
|
6559
6566
|
defaultValue: f,
|
|
6560
|
-
...
|
|
6561
|
-
} = t, m = t.multiline === !0, v = H(null), y = H(null), [x,
|
|
6567
|
+
...g
|
|
6568
|
+
} = t, m = t.multiline === !0, v = H(null), y = H(null), [x, p] = ii(
|
|
6562
6569
|
d !== void 0 ? String(d) : void 0,
|
|
6563
6570
|
f !== void 0 ? String(f) : ""
|
|
6564
6571
|
);
|
|
@@ -6574,7 +6581,7 @@ const sm = ht((t, e) => {
|
|
|
6574
6581
|
}
|
|
6575
6582
|
}));
|
|
6576
6583
|
const w = (_) => {
|
|
6577
|
-
if (
|
|
6584
|
+
if (p(_.target.value), m) {
|
|
6578
6585
|
const S = t.onChange;
|
|
6579
6586
|
S?.(_);
|
|
6580
6587
|
} else {
|
|
@@ -6586,7 +6593,7 @@ const sm = ht((t, e) => {
|
|
|
6586
6593
|
m && t.autoResize && y.current && (y.current.style.height = "auto", y.current.style.height = `${y.current.scrollHeight}px`);
|
|
6587
6594
|
}, [x, m, t.autoResize]);
|
|
6588
6595
|
const T = () => {
|
|
6589
|
-
if (
|
|
6596
|
+
if (p(""), !m) {
|
|
6590
6597
|
const S = v.current;
|
|
6591
6598
|
if (S) {
|
|
6592
6599
|
S.value = "";
|
|
@@ -6606,10 +6613,10 @@ const sm = ht((t, e) => {
|
|
|
6606
6613
|
const {
|
|
6607
6614
|
rows: O,
|
|
6608
6615
|
autoResize: nt,
|
|
6609
|
-
onChange:
|
|
6616
|
+
onChange: bt,
|
|
6610
6617
|
multiline: Rt,
|
|
6611
|
-
...
|
|
6612
|
-
} =
|
|
6618
|
+
...Pt
|
|
6619
|
+
} = g;
|
|
6613
6620
|
return /* @__PURE__ */ b(
|
|
6614
6621
|
"textarea",
|
|
6615
6622
|
{
|
|
@@ -6618,7 +6625,7 @@ const sm = ht((t, e) => {
|
|
|
6618
6625
|
className: I(dt.input, { [dt.disabled]: h }),
|
|
6619
6626
|
disabled: h,
|
|
6620
6627
|
maxLength: t.maxLength,
|
|
6621
|
-
...
|
|
6628
|
+
...Pt,
|
|
6622
6629
|
value: x,
|
|
6623
6630
|
onChange: w
|
|
6624
6631
|
}
|
|
@@ -6628,7 +6635,7 @@ const sm = ht((t, e) => {
|
|
|
6628
6635
|
onChange: _,
|
|
6629
6636
|
multiline: S,
|
|
6630
6637
|
...E
|
|
6631
|
-
} =
|
|
6638
|
+
} = g;
|
|
6632
6639
|
return /* @__PURE__ */ b(
|
|
6633
6640
|
"input",
|
|
6634
6641
|
{
|
|
@@ -6851,8 +6858,8 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
6851
6858
|
return /* @__PURE__ */ L(
|
|
6852
6859
|
M,
|
|
6853
6860
|
{
|
|
6854
|
-
ref: (
|
|
6855
|
-
c.current =
|
|
6861
|
+
ref: (g) => {
|
|
6862
|
+
c.current = g, typeof u == "function" ? u(g) : u && (u.current = g);
|
|
6856
6863
|
},
|
|
6857
6864
|
row: !0,
|
|
6858
6865
|
alignItems: "center",
|
|
@@ -6875,7 +6882,7 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
6875
6882
|
B,
|
|
6876
6883
|
{
|
|
6877
6884
|
variant: "caption-1",
|
|
6878
|
-
|
|
6885
|
+
colorName: e,
|
|
6879
6886
|
textOverflow: "ellipsis",
|
|
6880
6887
|
children: t
|
|
6881
6888
|
}
|
|
@@ -6885,8 +6892,8 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
6885
6892
|
{
|
|
6886
6893
|
className: f,
|
|
6887
6894
|
colorName: e,
|
|
6888
|
-
onClick: (
|
|
6889
|
-
|
|
6895
|
+
onClick: (g) => {
|
|
6896
|
+
g.stopPropagation(), s(g);
|
|
6890
6897
|
},
|
|
6891
6898
|
children: "×"
|
|
6892
6899
|
}
|
|
@@ -6898,7 +6905,7 @@ const mm = (t) => /* @__PURE__ */ A.createElement("svg", { width: 24, height: 24
|
|
|
6898
6905
|
);
|
|
6899
6906
|
ya.displayName = "Tag";
|
|
6900
6907
|
const Om = ({ children: t }) => {
|
|
6901
|
-
const [e] =
|
|
6908
|
+
const [e] = _t(() => document.createElement("div"));
|
|
6902
6909
|
return xt(() => {
|
|
6903
6910
|
let n = document.getElementById("portal-root");
|
|
6904
6911
|
return n || (n = document.createElement("div"), n.id = "portal-root", document.body.appendChild(n)), n.appendChild(e), () => {
|
|
@@ -6950,29 +6957,29 @@ function Lp({
|
|
|
6950
6957
|
label: h,
|
|
6951
6958
|
firstItem: d,
|
|
6952
6959
|
lastItem: f,
|
|
6953
|
-
observer:
|
|
6960
|
+
observer: g,
|
|
6954
6961
|
emptyText: m,
|
|
6955
6962
|
onBlur: v,
|
|
6956
6963
|
error: y,
|
|
6957
6964
|
errorText: x
|
|
6958
6965
|
}) {
|
|
6959
|
-
const [
|
|
6966
|
+
const [p, w] = ii(
|
|
6960
6967
|
t,
|
|
6961
6968
|
n ? [] : null
|
|
6962
|
-
), T = H(null), C = H(null), [_, S] =
|
|
6963
|
-
() => n ?
|
|
6964
|
-
[
|
|
6965
|
-
), O =
|
|
6969
|
+
), T = H(null), C = H(null), [_, S] = _t(!1), E = U(
|
|
6970
|
+
() => n ? p || [] : p != null ? [p] : [],
|
|
6971
|
+
[p, n]
|
|
6972
|
+
), O = U(() => {
|
|
6966
6973
|
const V = /* @__PURE__ */ new Map();
|
|
6967
6974
|
return o.forEach((D) => V.set(i(D), D)), V;
|
|
6968
|
-
}, [o, i]), nt = wl(T, _),
|
|
6975
|
+
}, [o, i]), nt = wl(T, _), bt = !o.length && !y, Rt = (V) => {
|
|
6969
6976
|
const D = i(V);
|
|
6970
6977
|
if (n) {
|
|
6971
6978
|
const j = E.includes(D) ? E.filter((Wt) => Wt !== D) : [...E, D];
|
|
6972
6979
|
w(j), e?.(j);
|
|
6973
6980
|
} else
|
|
6974
6981
|
w(D), e?.(D), S(!1);
|
|
6975
|
-
},
|
|
6982
|
+
}, Pt = (V) => {
|
|
6976
6983
|
if (!n) return;
|
|
6977
6984
|
const D = E.filter((j) => j !== V);
|
|
6978
6985
|
w(D), e?.(D);
|
|
@@ -7008,7 +7015,7 @@ function Lp({
|
|
|
7008
7015
|
size: Um[l],
|
|
7009
7016
|
label: s(Wt),
|
|
7010
7017
|
onDelete: (_a) => {
|
|
7011
|
-
_a.stopPropagation(),
|
|
7018
|
+
_a.stopPropagation(), Pt(j);
|
|
7012
7019
|
}
|
|
7013
7020
|
},
|
|
7014
7021
|
j
|
|
@@ -7061,7 +7068,7 @@ function Lp({
|
|
|
7061
7068
|
}
|
|
7062
7069
|
),
|
|
7063
7070
|
d && /* @__PURE__ */ b(M, { className: I(q["select-menu-item"], q["select-menu-item-first"]), children: d }),
|
|
7064
|
-
|
|
7071
|
+
bt && /* @__PURE__ */ L(M, { className: q["empty-block"], children: [
|
|
7065
7072
|
/* @__PURE__ */ b(M, { w: 20, h: 20, children: /* @__PURE__ */ b(Bm, {}) }),
|
|
7066
7073
|
/* @__PURE__ */ b(B, { variant: "body-2", children: m ?? "There is nothing yet" })
|
|
7067
7074
|
] }),
|
|
@@ -7086,7 +7093,7 @@ function Lp({
|
|
|
7086
7093
|
D
|
|
7087
7094
|
);
|
|
7088
7095
|
}),
|
|
7089
|
-
|
|
7096
|
+
g,
|
|
7090
7097
|
f && /* @__PURE__ */ b(M, { className: I(q["select-menu-item"], q["select-menu-item-first"]), children: f })
|
|
7091
7098
|
] })
|
|
7092
7099
|
},
|
|
@@ -7154,7 +7161,7 @@ const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10
|
|
|
7154
7161
|
w: h = "auto",
|
|
7155
7162
|
...d
|
|
7156
7163
|
}, f) => {
|
|
7157
|
-
const [
|
|
7164
|
+
const [g, m] = ii(r, o), v = H(null);
|
|
7158
7165
|
Je(f, () => ({
|
|
7159
7166
|
focus: () => {
|
|
7160
7167
|
v.current?.focus();
|
|
@@ -7163,13 +7170,13 @@ const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10
|
|
|
7163
7170
|
v.current?.blur();
|
|
7164
7171
|
},
|
|
7165
7172
|
get checked() {
|
|
7166
|
-
return
|
|
7173
|
+
return g ?? !1;
|
|
7167
7174
|
},
|
|
7168
7175
|
setChecked: (w) => {
|
|
7169
7176
|
m(w), s?.(w);
|
|
7170
7177
|
},
|
|
7171
7178
|
toggle: () => {
|
|
7172
|
-
const w = !
|
|
7179
|
+
const w = !g;
|
|
7173
7180
|
m(w), s?.(w);
|
|
7174
7181
|
},
|
|
7175
7182
|
isFocused: () => document.activeElement === v.current,
|
|
@@ -7180,10 +7187,10 @@ const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10
|
|
|
7180
7187
|
const w = o ?? !1;
|
|
7181
7188
|
m(w), s?.(w);
|
|
7182
7189
|
}
|
|
7183
|
-
}), [
|
|
7184
|
-
const y =
|
|
7190
|
+
}), [g, m, s, i, o]);
|
|
7191
|
+
const y = wt((w) => {
|
|
7185
7192
|
m(w.target.checked), s?.(w.target.checked);
|
|
7186
|
-
}, [s]), x =
|
|
7193
|
+
}, [s]), x = U(() => typeof t == "string" ? /* @__PURE__ */ b(B, { variant: "body-1", colorName: "primary", fontWeight: "medium", children: t }) : t, [t]), p = U(() => typeof e == "string" ? /* @__PURE__ */ b(B, { variant: "body-2", colorName: "secondary", fontWeight: "regular", children: e }) : e, [e]);
|
|
7187
7194
|
return /* @__PURE__ */ L(M, { row: !0, w: h, gap: "var(--spacing-sm)", children: [
|
|
7188
7195
|
/* @__PURE__ */ L("label", { className: I(ft.container, a, {
|
|
7189
7196
|
[ft.disabled]: i,
|
|
@@ -7195,7 +7202,7 @@ const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10
|
|
|
7195
7202
|
{
|
|
7196
7203
|
ref: v,
|
|
7197
7204
|
type: "checkbox",
|
|
7198
|
-
checked:
|
|
7205
|
+
checked: g,
|
|
7199
7206
|
className: ft.input,
|
|
7200
7207
|
onChange: y,
|
|
7201
7208
|
disabled: i,
|
|
@@ -7209,7 +7216,7 @@ const Km = (t) => /* @__PURE__ */ A.createElement("svg", { width: 10, height: 10
|
|
|
7209
7216
|
] }),
|
|
7210
7217
|
/* @__PURE__ */ L(M, { gap: "var(--spacing-xs)", children: [
|
|
7211
7218
|
x,
|
|
7212
|
-
|
|
7219
|
+
p
|
|
7213
7220
|
] })
|
|
7214
7221
|
] }),
|
|
7215
7222
|
n
|
|
@@ -7273,18 +7280,18 @@ function Ut(t, e, n) {
|
|
|
7273
7280
|
let c;
|
|
7274
7281
|
n.key && ((o = n.debug) != null && o.call(n)) && (c = Date.now());
|
|
7275
7282
|
const h = t();
|
|
7276
|
-
if (!(h.length !== i.length || h.some((
|
|
7283
|
+
if (!(h.length !== i.length || h.some((g, m) => i[m] !== g)))
|
|
7277
7284
|
return s;
|
|
7278
7285
|
i = h;
|
|
7279
7286
|
let f;
|
|
7280
7287
|
if (n.key && ((a = n.debug) != null && a.call(n)) && (f = Date.now()), s = e(...h), n.key && ((l = n.debug) != null && l.call(n))) {
|
|
7281
|
-
const
|
|
7282
|
-
for (x = String(x); x.length <
|
|
7288
|
+
const g = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - f) * 100) / 100, v = m / 16, y = (x, p) => {
|
|
7289
|
+
for (x = String(x); x.length < p; )
|
|
7283
7290
|
x = " " + x;
|
|
7284
7291
|
return x;
|
|
7285
7292
|
};
|
|
7286
7293
|
console.info(
|
|
7287
|
-
`%c⏱ ${y(m, 5)} /${y(
|
|
7294
|
+
`%c⏱ ${y(m, 5)} /${y(g, 5)} ms`,
|
|
7288
7295
|
`
|
|
7289
7296
|
font-size: .6rem;
|
|
7290
7297
|
font-weight: bold;
|
|
@@ -7543,7 +7550,7 @@ class bp {
|
|
|
7543
7550
|
this.pendingMeasuredCacheIndexes = [];
|
|
7544
7551
|
const u = this.measurementsCache.slice(0, l);
|
|
7545
7552
|
for (let c = l; c < n; c++) {
|
|
7546
|
-
const h = r(c), d = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c), f = d ? d.end + this.options.gap : i + s,
|
|
7553
|
+
const h = r(c), d = this.options.lanes === 1 ? u[c - 1] : this.getFurthestMeasurement(u, c), f = d ? d.end + this.options.gap : i + s, g = a.get(h), m = typeof g == "number" ? g : this.options.estimateSize(c), v = f + m, y = d ? d.lane : c % this.options.lanes;
|
|
7547
7554
|
u[c] = {
|
|
7548
7555
|
index: c,
|
|
7549
7556
|
start: f,
|
|
@@ -7695,12 +7702,12 @@ class bp {
|
|
|
7695
7702
|
}
|
|
7696
7703
|
const [h, d] = c;
|
|
7697
7704
|
this._scrollToOffset(h, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
|
|
7698
|
-
const f = this.getScrollOffset(),
|
|
7699
|
-
if (!
|
|
7705
|
+
const f = this.getScrollOffset(), g = this.getOffsetForIndex(n, d);
|
|
7706
|
+
if (!g) {
|
|
7700
7707
|
console.warn("Failed to get offset for index:", n);
|
|
7701
7708
|
return;
|
|
7702
7709
|
}
|
|
7703
|
-
dp(
|
|
7710
|
+
dp(g[0], f) || l(d);
|
|
7704
7711
|
});
|
|
7705
7712
|
}, l = (u) => {
|
|
7706
7713
|
this.targetWindow && (r++, r < o ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", r, o), this.targetWindow.requestAnimationFrame(() => a(u))) : console.warn(
|
|
@@ -7824,7 +7831,7 @@ const Sp = "_main_pl2ip_8", xr = {
|
|
|
7824
7831
|
estimatedItemHeight: i = 100,
|
|
7825
7832
|
virtualize: s = !1
|
|
7826
7833
|
}, r) => {
|
|
7827
|
-
const o = H(null), a =
|
|
7834
|
+
const o = H(null), a = U(() => _r.toArray(t), [t]), l = Tp({
|
|
7828
7835
|
count: a.length,
|
|
7829
7836
|
getScrollElement: () => o.current,
|
|
7830
7837
|
estimateSize: () => i,
|
|
@@ -7842,7 +7849,7 @@ const Sp = "_main_pl2ip_8", xr = {
|
|
|
7842
7849
|
getElement: () => o.current,
|
|
7843
7850
|
getScrollOffset: () => l.scrollOffset || 0,
|
|
7844
7851
|
getTotalSize: () => l.getTotalSize()
|
|
7845
|
-
}), [l]),
|
|
7852
|
+
}), [l]), U(() => s || a.length > 50, [s, a]) && a.length > 0 ? /* @__PURE__ */ b(
|
|
7846
7853
|
M,
|
|
7847
7854
|
{
|
|
7848
7855
|
ref: o,
|