@jasonshimmy/custom-elements-runtime 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements-runtime.cjs.js +3 -3
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +221 -213
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/transitions-BO7bCYYx.cjs +119 -0
- package/dist/transitions-BO7bCYYx.cjs.map +1 -0
- package/dist/{transitions-PEmFOapF.js → transitions-CbxTVf1F.js} +91 -82
- package/dist/transitions-CbxTVf1F.js.map +1 -0
- package/dist/variables.css +1 -1
- package/package.json +1 -1
- package/dist/transitions-ComAUaWb.cjs +0 -117
- package/dist/transitions-ComAUaWb.cjs.map +0 -1
- package/dist/transitions-PEmFOapF.js.map +0 -1
|
@@ -12,7 +12,7 @@ let J = null;
|
|
|
12
12
|
function We() {
|
|
13
13
|
return J || (J = new CSSStyleSheet(), J.replaceSync(ve(we))), J;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function De(e) {
|
|
16
16
|
return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
|
|
17
17
|
}
|
|
18
18
|
const we = xe`
|
|
@@ -47,6 +47,8 @@ const we = xe`
|
|
|
47
47
|
--cer-gradient-from: rgba(255, 255, 255, 0);
|
|
48
48
|
--cer-gradient-to: rgba(255, 255, 255, 0);
|
|
49
49
|
--cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
|
|
50
|
+
/* Default outline style variable */
|
|
51
|
+
--cer-outline-style: solid;
|
|
50
52
|
}
|
|
51
53
|
button,
|
|
52
54
|
input,
|
|
@@ -436,15 +438,22 @@ const we = xe`
|
|
|
436
438
|
].forEach(([t, a]) => {
|
|
437
439
|
e[t] = `line-height:${a};--cer-line-height:${a};line-height:var(--cer-line-height,${a});`;
|
|
438
440
|
});
|
|
439
|
-
const
|
|
440
|
-
for (const t of
|
|
441
|
+
const l = [0, 1, 2, 4, 6, 8];
|
|
442
|
+
for (const t of l) {
|
|
441
443
|
const a = `${t}px`;
|
|
442
|
-
e[`border-${t}`] = `border-width:${a};`, e[`border-t-${t}`] = `border-top-width:${a};`, e[`border-r-${t}`] = `border-right-width:${a};`, e[`border-b-${t}`] = `border-bottom-width:${a};`, e[`border-l-${t}`] = `border-left-width:${a};`, e[`border-x-${t}`] = `border-left-width:${a};border-right-width:${a};`, e[`border-y-${t}`] = `border-top-width:${a};border-bottom-width:${a};`;
|
|
444
|
+
e[`outline-${t}`] = `outline-style:var(--cer-outline-style);outline-width:${a};`, e[`outline-offset-${t}`] = `outline-offset:${a};`, e[`border-${t}`] = `border-width:${a};`, e[`border-t-${t}`] = `border-top-width:${a};`, e[`border-r-${t}`] = `border-right-width:${a};`, e[`border-b-${t}`] = `border-bottom-width:${a};`, e[`border-l-${t}`] = `border-left-width:${a};`, e[`border-x-${t}`] = `border-left-width:${a};border-right-width:${a};`, e[`border-y-${t}`] = `border-top-width:${a};border-bottom-width:${a};`;
|
|
443
445
|
}
|
|
444
446
|
Object.assign(e, {
|
|
445
447
|
"font-sans": "font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);",
|
|
446
448
|
"font-serif": "font-family:var(--cer-font-serif, ui-serif,Georgia,serif);",
|
|
447
449
|
"font-mono": "font-family:var(--cer-font-mono, ui-monospace,SFMono-Regular,monospace);",
|
|
450
|
+
outline: "outline-style:var(--cer-outline-style);outline-width:1px;",
|
|
451
|
+
"outline-solid": "--cer-outline-style:solid;outline-style:solid;",
|
|
452
|
+
"outline-dashed": "--cer-outline-style:dashed;outline-style:dashed;",
|
|
453
|
+
"outline-dotted": "--cer-outline-style:dotted;outline-style:dotted;",
|
|
454
|
+
"outline-double": "--cer-outline-style:double;outline-style:double;",
|
|
455
|
+
"outline-none": "--cer-outline-style:none;outline-style:none;",
|
|
456
|
+
"outline-hidden": "--cer-outline-style:none;outline:2px solid transparent;outline-offset:2px;",
|
|
448
457
|
border: "border-width:1px;",
|
|
449
458
|
"border-t": "border-top-width:1px;",
|
|
450
459
|
"border-r": "border-right-width:1px;",
|
|
@@ -736,16 +745,16 @@ const je = {
|
|
|
736
745
|
function ae(e) {
|
|
737
746
|
const r = e.startsWith("-"), o = r ? e.slice(1) : e, i = o.lastIndexOf("-");
|
|
738
747
|
if (i === -1) return null;
|
|
739
|
-
const s = o.slice(0, i),
|
|
748
|
+
const s = o.slice(0, i), l = o.slice(i + 1);
|
|
740
749
|
if (!te[s]) return null;
|
|
741
|
-
if (
|
|
742
|
-
const [t, a] =
|
|
750
|
+
if (l.includes("/")) {
|
|
751
|
+
const [t, a] = l.split("/").map((T) => parseFloat(T));
|
|
743
752
|
if (Number.isNaN(t) || Number.isNaN(a) || a === 0)
|
|
744
753
|
return null;
|
|
745
754
|
const g = t / a * 100;
|
|
746
755
|
return te[s].map((T) => `${T}:${g}%;`).join("");
|
|
747
756
|
}
|
|
748
|
-
const u = parseFloat(
|
|
757
|
+
const u = parseFloat(l);
|
|
749
758
|
if (Number.isNaN(u)) return null;
|
|
750
759
|
const j = r ? "-" : "";
|
|
751
760
|
return te[s].map((t) => `${t}:calc(${j}${B} * ${u});`).join("");
|
|
@@ -753,17 +762,17 @@ function ae(e) {
|
|
|
753
762
|
function se(e) {
|
|
754
763
|
const r = e.startsWith("-"), i = (r ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
755
764
|
if (!i) return null;
|
|
756
|
-
const [, s,
|
|
757
|
-
if (
|
|
765
|
+
const [, s, l] = i, u = s === "x";
|
|
766
|
+
if (l === "reverse")
|
|
758
767
|
return u ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
|
|
759
|
-
if (
|
|
760
|
-
const [g, T] =
|
|
768
|
+
if (l.includes("/")) {
|
|
769
|
+
const [g, T] = l.split("/").map((z) => parseFloat(z));
|
|
761
770
|
if (Number.isNaN(g) || Number.isNaN(T) || T === 0)
|
|
762
771
|
return null;
|
|
763
772
|
const A = g / T * 100, S = r ? "-" : "";
|
|
764
773
|
return u ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${S}${A}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${S}${A}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${S}${A}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${S}${A}% * var(--cer-space-y-reverse));}`;
|
|
765
774
|
}
|
|
766
|
-
const j = parseFloat(
|
|
775
|
+
const j = parseFloat(l);
|
|
767
776
|
if (Number.isNaN(j)) return null;
|
|
768
777
|
const a = `calc(${r ? "-" : ""}${B} * ${j})`;
|
|
769
778
|
return u ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${a} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${a} * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${a} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${a} * var(--cer-space-y-reverse));}`;
|
|
@@ -786,11 +795,11 @@ const Te = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)
|
|
|
786
795
|
function Se(e) {
|
|
787
796
|
const r = Te.exec(e);
|
|
788
797
|
if (!r) return null;
|
|
789
|
-
const [, o, i, s = "DEFAULT"] = r,
|
|
790
|
-
if (!
|
|
791
|
-
if (o === "shadow") return `--cer-shadow-color:${
|
|
798
|
+
const [, o, i, s = "DEFAULT"] = r, l = he[i]?.[s];
|
|
799
|
+
if (!l) return null;
|
|
800
|
+
if (o === "shadow") return `--cer-shadow-color:${l};`;
|
|
792
801
|
const u = Ae[o];
|
|
793
|
-
return u ? `${u}:${
|
|
802
|
+
return u ? `${u}:${l};` : null;
|
|
794
803
|
}
|
|
795
804
|
function Fe(e) {
|
|
796
805
|
const r = e.indexOf("/");
|
|
@@ -798,21 +807,21 @@ function Fe(e) {
|
|
|
798
807
|
const o = e.slice(0, r), i = e.slice(r + 1), s = parseInt(i, 10);
|
|
799
808
|
return isNaN(s) || s < 0 || s > 100 ? { base: o } : { base: o, opacity: s / 100 };
|
|
800
809
|
}
|
|
801
|
-
function
|
|
810
|
+
function le(e) {
|
|
802
811
|
const { base: r, opacity: o } = Fe(e), i = Se(r);
|
|
803
812
|
if (i && o !== void 0) {
|
|
804
|
-
const
|
|
805
|
-
if (
|
|
806
|
-
const u = ue(
|
|
813
|
+
const l = /#([0-9a-f]{6})/i.exec(i);
|
|
814
|
+
if (l) {
|
|
815
|
+
const u = ue(l[0]);
|
|
807
816
|
return i.replace(/#([0-9a-f]{6})/i, `rgb(${u} / ${o})`);
|
|
808
817
|
}
|
|
809
818
|
}
|
|
810
819
|
if (i) return i;
|
|
811
820
|
const s = Q(r);
|
|
812
821
|
if (s && o !== void 0) {
|
|
813
|
-
const
|
|
814
|
-
if (
|
|
815
|
-
const u = ue(
|
|
822
|
+
const l = /#([0-9a-f]{6})/i.exec(s);
|
|
823
|
+
if (l) {
|
|
824
|
+
const u = ue(l[0]);
|
|
816
825
|
return s.replace(
|
|
817
826
|
/#([0-9a-f]{6})/i,
|
|
818
827
|
`rgb(${u} / ${o})`
|
|
@@ -821,18 +830,18 @@ function ce(e) {
|
|
|
821
830
|
}
|
|
822
831
|
return s;
|
|
823
832
|
}
|
|
824
|
-
function
|
|
833
|
+
function ce(e) {
|
|
825
834
|
const r = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
826
835
|
if (!r) return null;
|
|
827
|
-
const [, o, i, s = "DEFAULT"] = r,
|
|
828
|
-
if (!
|
|
836
|
+
const [, o, i, s = "DEFAULT"] = r, l = he[i]?.[s];
|
|
837
|
+
if (!l) return null;
|
|
829
838
|
switch (o) {
|
|
830
839
|
case "from":
|
|
831
|
-
return `--cer-gradient-from:${
|
|
840
|
+
return `--cer-gradient-from:${l} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;
|
|
832
841
|
case "to":
|
|
833
|
-
return `--cer-gradient-to:${
|
|
842
|
+
return `--cer-gradient-to:${l} var(--cer-gradient-to-position);`;
|
|
834
843
|
case "via":
|
|
835
|
-
return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${
|
|
844
|
+
return `--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${l} var(--cer-gradient-via-position), var(--cer-gradient-to);`;
|
|
836
845
|
default:
|
|
837
846
|
return null;
|
|
838
847
|
}
|
|
@@ -899,8 +908,8 @@ function Q(e) {
|
|
|
899
908
|
if (o === "scale") return `transform:scale(${i});`;
|
|
900
909
|
if (o === "translate-x") return `transform:translateX(${i});`;
|
|
901
910
|
if (o === "translate-y") return `transform:translateY(${i});`;
|
|
902
|
-
const
|
|
903
|
-
return
|
|
911
|
+
const l = s[o] ?? o.replace(/_/g, "-");
|
|
912
|
+
return l && i ? `${l}:${i};` : null;
|
|
904
913
|
}
|
|
905
914
|
function Ce(e) {
|
|
906
915
|
if (e.startsWith("[") && e.endsWith("]")) {
|
|
@@ -933,7 +942,7 @@ function ze(e) {
|
|
|
933
942
|
return o.css;
|
|
934
943
|
const i = Oe(e);
|
|
935
944
|
if (!i.length) return "";
|
|
936
|
-
const s = new Set(i),
|
|
945
|
+
const s = new Set(i), l = [[], [], [], []], u = {}, j = (f, p = !1) => {
|
|
937
946
|
const d = p ? `dark|${f}` : f;
|
|
938
947
|
if (d in u) return u[d];
|
|
939
948
|
const m = T(f, p);
|
|
@@ -969,27 +978,27 @@ function ze(e) {
|
|
|
969
978
|
let m = "", w = !1;
|
|
970
979
|
for (const n of d) {
|
|
971
980
|
let v = n;
|
|
972
|
-
if (v.startsWith("!") && (w = !0, v = v.slice(1)), re[v] || ae(v) || se(v) || de(v) ||
|
|
981
|
+
if (v.startsWith("!") && (w = !0, v = v.slice(1)), re[v] || ae(v) || se(v) || de(v) || le(v) || ce(v) || Q(v)) {
|
|
973
982
|
m = n;
|
|
974
983
|
break;
|
|
975
984
|
}
|
|
976
985
|
}
|
|
977
986
|
if (!m) return null;
|
|
978
|
-
const b = m.replace(/^!/, ""), C = re[b] ?? ae(b) ?? se(b) ?? de(b) ??
|
|
987
|
+
const b = m.replace(/^!/, ""), C = re[b] ?? ae(b) ?? se(b) ?? de(b) ?? le(b) ?? ce(b) ?? Q(b);
|
|
979
988
|
if (!C) return null;
|
|
980
989
|
const k = d.indexOf(m);
|
|
981
990
|
let h = k >= 0 ? d.slice(0, k) : [];
|
|
982
991
|
p && (h = h.filter((n) => n !== "dark"));
|
|
983
992
|
const P = `.${pe(f)}`, W = w ? C.replace(/;/g, " !important;") : C, x = "__SUBJECT__";
|
|
984
|
-
let
|
|
985
|
-
const
|
|
993
|
+
let c = x;
|
|
994
|
+
const D = [];
|
|
986
995
|
for (const n of h)
|
|
987
|
-
n.startsWith("group-") ? (
|
|
996
|
+
n.startsWith("group-") ? (c = `.group:${n.slice(6)} ${c}`, D.push(n)) : n.startsWith("peer-") && (c = c.replace(
|
|
988
997
|
x,
|
|
989
998
|
`.peer:${n.slice(5)}~${x}`
|
|
990
|
-
),
|
|
991
|
-
h = h.filter((n) => !
|
|
992
|
-
const
|
|
999
|
+
), D.push(n));
|
|
1000
|
+
h = h.filter((n) => !D.includes(n));
|
|
1001
|
+
const _ = [], V = [];
|
|
993
1002
|
let y = null;
|
|
994
1003
|
for (const n of h) {
|
|
995
1004
|
if (n === "dark" || ie.includes(n) || n.startsWith("@") && (ne.includes(n.slice(1)) || n.match(/^@\[.+\]$/)))
|
|
@@ -1001,13 +1010,13 @@ function ze(e) {
|
|
|
1001
1010
|
}
|
|
1002
1011
|
const F = g[n];
|
|
1003
1012
|
if (F) {
|
|
1004
|
-
y ? V.push(F) :
|
|
1013
|
+
y ? V.push(F) : _.push(F);
|
|
1005
1014
|
continue;
|
|
1006
1015
|
}
|
|
1007
1016
|
const O = je[n];
|
|
1008
|
-
typeof O == "function" && (
|
|
1017
|
+
typeof O == "function" && (c = O(c, W).split("{")[0]);
|
|
1009
1018
|
}
|
|
1010
|
-
const I =
|
|
1019
|
+
const I = _.join(""), R = V.join("");
|
|
1011
1020
|
function X(n, v) {
|
|
1012
1021
|
if (!v) return n;
|
|
1013
1022
|
let F = 0, O = 0;
|
|
@@ -1031,30 +1040,30 @@ function ze(e) {
|
|
|
1031
1040
|
if (y)
|
|
1032
1041
|
if (y.includes("&")) {
|
|
1033
1042
|
const n = y.indexOf("&"), v = y.slice(0, n), F = y.slice(n + 1), O = x + I;
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1043
|
+
if (_.length === 0)
|
|
1044
|
+
c = c.replace(
|
|
1036
1045
|
x,
|
|
1037
1046
|
v + O + R + F
|
|
1038
1047
|
);
|
|
1039
1048
|
else {
|
|
1040
1049
|
const $ = X(F, R);
|
|
1041
|
-
|
|
1050
|
+
c = c.replace(
|
|
1042
1051
|
x,
|
|
1043
1052
|
v + O + $
|
|
1044
1053
|
);
|
|
1045
1054
|
}
|
|
1046
1055
|
} else
|
|
1047
|
-
|
|
1056
|
+
c = c.replace(
|
|
1048
1057
|
x,
|
|
1049
1058
|
`${y}${x + I}`
|
|
1050
|
-
), R && (
|
|
1059
|
+
), R && (c = c.replace(x, `${x}${R}`));
|
|
1051
1060
|
else
|
|
1052
|
-
|
|
1061
|
+
c = c.replace(
|
|
1053
1062
|
x,
|
|
1054
1063
|
x + I + R
|
|
1055
1064
|
);
|
|
1056
|
-
|
|
1057
|
-
let U = `${
|
|
1065
|
+
c = c.replace(new RegExp(x, "g"), P);
|
|
1066
|
+
let U = `${c}{${W}}`;
|
|
1058
1067
|
const Y = h.filter(
|
|
1059
1068
|
(n) => ie.includes(n)
|
|
1060
1069
|
), ee = h.filter(
|
|
@@ -1075,18 +1084,18 @@ function ze(e) {
|
|
|
1075
1084
|
};
|
|
1076
1085
|
for (const f of s) {
|
|
1077
1086
|
const p = a(f), d = p.find(
|
|
1078
|
-
(k) => re[k.replace(/^!/, "")] || ae(k.replace(/^!/, "")) || se(k.replace(/^!/, "")) || de(k.replace(/^!/, "")) ||
|
|
1087
|
+
(k) => re[k.replace(/^!/, "")] || ae(k.replace(/^!/, "")) || se(k.replace(/^!/, "")) || de(k.replace(/^!/, "")) || le(k.replace(/^!/, "")) || ce(k.replace(/^!/, "")) || Q(k.replace(/^!/, ""))
|
|
1079
1088
|
);
|
|
1080
1089
|
if (!d) continue;
|
|
1081
1090
|
const m = p.indexOf(d), w = m >= 0 ? p.slice(0, m) : [], b = t(w), C = j(f);
|
|
1082
|
-
C &&
|
|
1091
|
+
C && l[b].push(C);
|
|
1083
1092
|
}
|
|
1084
1093
|
const A = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
|
|
1085
1094
|
for (const f of s)
|
|
1086
1095
|
if (A.test(f)) {
|
|
1087
|
-
if (
|
|
1096
|
+
if (l.flat().join("").includes(`.${pe(f)}`)) continue;
|
|
1088
1097
|
const d = j(f);
|
|
1089
|
-
d &&
|
|
1098
|
+
d && l[0].push(d);
|
|
1090
1099
|
}
|
|
1091
1100
|
const S = (f) => f.sort((p, d) => {
|
|
1092
1101
|
const m = (P) => {
|
|
@@ -1097,8 +1106,8 @@ function ze(e) {
|
|
|
1097
1106
|
xl: 1280,
|
|
1098
1107
|
"2xl": 1536
|
|
1099
1108
|
};
|
|
1100
|
-
for (const [x,
|
|
1101
|
-
if (P.includes(`@media ${oe[x]}`)) return
|
|
1109
|
+
for (const [x, c] of Object.entries(W))
|
|
1110
|
+
if (P.includes(`@media ${oe[x]}`)) return c;
|
|
1102
1111
|
return -1;
|
|
1103
1112
|
}, w = (P) => {
|
|
1104
1113
|
const W = {
|
|
@@ -1125,21 +1134,21 @@ function ze(e) {
|
|
|
1125
1134
|
"7xl": 1280
|
|
1126
1135
|
// 80rem
|
|
1127
1136
|
};
|
|
1128
|
-
for (const [x,
|
|
1129
|
-
if (P.includes(`@container ${ge[x]}`)) return
|
|
1137
|
+
for (const [x, c] of Object.entries(W))
|
|
1138
|
+
if (P.includes(`@container ${ge[x]}`)) return c;
|
|
1130
1139
|
if (P.includes("@container (min-width:")) {
|
|
1131
1140
|
const x = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(P);
|
|
1132
1141
|
if (x) {
|
|
1133
|
-
const
|
|
1134
|
-
return
|
|
1142
|
+
const c = parseFloat(x[1]), D = x[2];
|
|
1143
|
+
return D === "rem" || D === "em" ? c * 16 : c;
|
|
1135
1144
|
}
|
|
1136
1145
|
}
|
|
1137
1146
|
return -1;
|
|
1138
1147
|
}, b = m(p), C = m(d), k = w(p), h = w(d);
|
|
1139
1148
|
return b >= 0 && C >= 0 && b !== C ? b - C : k >= 0 && h >= 0 && k !== h ? k - h : 0;
|
|
1140
1149
|
});
|
|
1141
|
-
|
|
1142
|
-
const z =
|
|
1150
|
+
l[2] = S(l[2]), l[3] = S(l[3]);
|
|
1151
|
+
const z = l.flat().join("");
|
|
1143
1152
|
return K.size >= me && Array.from(K.keys()).slice(
|
|
1144
1153
|
0,
|
|
1145
1154
|
Math.floor(me / 2)
|
|
@@ -1237,12 +1246,12 @@ const q = {
|
|
|
1237
1246
|
leaveTo: "rotate-[90deg] opacity-0"
|
|
1238
1247
|
}
|
|
1239
1248
|
};
|
|
1240
|
-
function
|
|
1249
|
+
function _e(e, r) {
|
|
1241
1250
|
const {
|
|
1242
1251
|
preset: o,
|
|
1243
1252
|
show: i,
|
|
1244
1253
|
mode: s = "default",
|
|
1245
|
-
duration:
|
|
1254
|
+
duration: l,
|
|
1246
1255
|
appear: u = !1,
|
|
1247
1256
|
css: j = !0,
|
|
1248
1257
|
name: t,
|
|
@@ -1275,7 +1284,7 @@ function De(e, r) {
|
|
|
1275
1284
|
name: P,
|
|
1276
1285
|
classes: h,
|
|
1277
1286
|
mode: s,
|
|
1278
|
-
duration:
|
|
1287
|
+
duration: l,
|
|
1279
1288
|
appear: u,
|
|
1280
1289
|
css: j,
|
|
1281
1290
|
state: i ? "visible" : "hidden",
|
|
@@ -1296,7 +1305,7 @@ function Be(e, r) {
|
|
|
1296
1305
|
tag: o = "div",
|
|
1297
1306
|
moveClass: i = "transition-transform duration-300",
|
|
1298
1307
|
preset: s,
|
|
1299
|
-
show:
|
|
1308
|
+
show: l = !0,
|
|
1300
1309
|
mode: u = "default",
|
|
1301
1310
|
duration: j,
|
|
1302
1311
|
appear: t = !1,
|
|
@@ -1319,8 +1328,8 @@ function Be(e, r) {
|
|
|
1319
1328
|
onAfterLeave: W,
|
|
1320
1329
|
onLeaveCancelled: x
|
|
1321
1330
|
} = e;
|
|
1322
|
-
let
|
|
1323
|
-
s && q[s] ? (
|
|
1331
|
+
let c;
|
|
1332
|
+
s && q[s] ? (c = { ...q[s] }, S && (c.enterFrom = S), z && (c.enterActive = z), f && (c.enterTo = f), p && (c.leaveFrom = p), d && (c.leaveActive = d), m && (c.leaveTo = m)) : c = {
|
|
1324
1333
|
enterFrom: S,
|
|
1325
1334
|
enterActive: z,
|
|
1326
1335
|
enterTo: f,
|
|
@@ -1328,8 +1337,8 @@ function Be(e, r) {
|
|
|
1328
1337
|
leaveActive: d,
|
|
1329
1338
|
leaveTo: m
|
|
1330
1339
|
};
|
|
1331
|
-
const
|
|
1332
|
-
for (const y of
|
|
1340
|
+
const D = g || (s ? `transition-group-${s}` : "transition-group"), _ = [];
|
|
1341
|
+
for (const y of l ? r : [])
|
|
1333
1342
|
if (y && typeof y == "object" && y.tag === "#anchor") {
|
|
1334
1343
|
const I = Array.isArray(y.children) ? y.children : [];
|
|
1335
1344
|
for (const R of I)
|
|
@@ -1343,27 +1352,27 @@ function Be(e, r) {
|
|
|
1343
1352
|
// Preserve original anchor key
|
|
1344
1353
|
}
|
|
1345
1354
|
};
|
|
1346
|
-
|
|
1355
|
+
_.push(X);
|
|
1347
1356
|
} else
|
|
1348
|
-
|
|
1357
|
+
_.push(R);
|
|
1349
1358
|
} else
|
|
1350
|
-
|
|
1359
|
+
_.push(y);
|
|
1351
1360
|
const V = (() => {
|
|
1352
1361
|
if (A)
|
|
1353
1362
|
return typeof A == "string" ? A : Object.entries(A).map(([y, I]) => `${y}: ${I}`).join("; ");
|
|
1354
1363
|
})();
|
|
1355
1364
|
return {
|
|
1356
1365
|
tag: o,
|
|
1357
|
-
children:
|
|
1358
|
-
key:
|
|
1366
|
+
children: _,
|
|
1367
|
+
key: D,
|
|
1359
1368
|
props: {
|
|
1360
1369
|
attrs: {
|
|
1361
1370
|
...T ? { class: T } : {},
|
|
1362
1371
|
...V ? { style: V } : {}
|
|
1363
1372
|
},
|
|
1364
1373
|
_transitionGroup: {
|
|
1365
|
-
name:
|
|
1366
|
-
classes:
|
|
1374
|
+
name: D,
|
|
1375
|
+
classes: c,
|
|
1367
1376
|
moveClass: i,
|
|
1368
1377
|
mode: u,
|
|
1369
1378
|
duration: j,
|
|
@@ -1403,7 +1412,7 @@ function Re() {
|
|
|
1403
1412
|
}
|
|
1404
1413
|
Re();
|
|
1405
1414
|
export {
|
|
1406
|
-
|
|
1415
|
+
_e as T,
|
|
1407
1416
|
Pe as a,
|
|
1408
1417
|
Be as b,
|
|
1409
1418
|
xe as c,
|
|
@@ -1411,7 +1420,7 @@ export {
|
|
|
1411
1420
|
We as g,
|
|
1412
1421
|
ze as j,
|
|
1413
1422
|
ve as m,
|
|
1414
|
-
|
|
1423
|
+
De as s,
|
|
1415
1424
|
q as t
|
|
1416
1425
|
};
|
|
1417
|
-
//# sourceMappingURL=transitions-
|
|
1426
|
+
//# sourceMappingURL=transitions-CbxTVf1F.js.map
|