pangea-lib 1.10.4 → 1.10.5
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/animation.cjs.js +1 -0
- package/dist/animation.es.js +15 -0
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +6 -43
- package/dist/types/animation.d.ts +1 -0
- package/dist/types/main.d.ts +0 -2
- package/package.json +1 -1
- package/dist/types/helpers/index.d.ts +0 -2
package/dist/main.es.js
CHANGED
|
@@ -14055,43 +14055,7 @@ const bI = (c, a) => {
|
|
|
14055
14055
|
PgaIcon: hI,
|
|
14056
14056
|
PgaSelect: NI
|
|
14057
14057
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14058
|
-
function kI(c
|
|
14059
|
-
return new Promise((r) => {
|
|
14060
|
-
const i = `${e}${a}`, f = document.querySelector(c);
|
|
14061
|
-
if (f) {
|
|
14062
|
-
f.classList.add(`${e}animated`, i);
|
|
14063
|
-
const s = (l) => {
|
|
14064
|
-
l.stopPropagation(), f == null || f.classList.remove(`${e}animated`, i), r("Animation ended");
|
|
14065
|
-
};
|
|
14066
|
-
f.addEventListener("animationend", s, { once: !0 });
|
|
14067
|
-
}
|
|
14068
|
-
});
|
|
14069
|
-
}
|
|
14070
|
-
const wI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14071
|
-
__proto__: null,
|
|
14072
|
-
animateCSS: kI
|
|
14073
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
14074
|
-
function AI(c) {
|
|
14075
|
-
if (!c)
|
|
14076
|
-
return !1;
|
|
14077
|
-
let a = c;
|
|
14078
|
-
const e = ["http://", "https://"];
|
|
14079
|
-
for (const r of e)
|
|
14080
|
-
if (c.startsWith(r)) {
|
|
14081
|
-
a = c.replace(r, "");
|
|
14082
|
-
break;
|
|
14083
|
-
}
|
|
14084
|
-
return a = a.replace(/:(\d*)$/, ""), window.location.href.includes(a);
|
|
14085
|
-
}
|
|
14086
|
-
const yI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14087
|
-
__proto__: null,
|
|
14088
|
-
isCurrentUrl: AI
|
|
14089
|
-
}, Symbol.toStringTag, { value: "Module" })), BI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14090
|
-
__proto__: null,
|
|
14091
|
-
animationHelpers: wI,
|
|
14092
|
-
urlHelpers: yI
|
|
14093
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
14094
|
-
function PI(c) {
|
|
14058
|
+
function kI(c) {
|
|
14095
14059
|
const a = E3;
|
|
14096
14060
|
if (c) {
|
|
14097
14061
|
for (const e in E3)
|
|
@@ -14108,20 +14072,19 @@ function PI(c) {
|
|
|
14108
14072
|
}
|
|
14109
14073
|
return a;
|
|
14110
14074
|
}
|
|
14111
|
-
function
|
|
14075
|
+
function wI(c) {
|
|
14112
14076
|
const a = document.querySelector(":root");
|
|
14113
14077
|
for (const e in c) {
|
|
14114
14078
|
const r = c[e];
|
|
14115
14079
|
a.style.setProperty(`--pga${e.charAt(0).toUpperCase()}${e.slice(1)}Color`, r);
|
|
14116
14080
|
}
|
|
14117
14081
|
}
|
|
14118
|
-
const
|
|
14119
|
-
const e =
|
|
14120
|
-
|
|
14082
|
+
const yI = (c, a) => {
|
|
14083
|
+
const e = kI(a);
|
|
14084
|
+
wI(e.colors), Object.entries(SI).forEach(([r, i]) => {
|
|
14121
14085
|
c.component(r, i);
|
|
14122
14086
|
});
|
|
14123
14087
|
};
|
|
14124
14088
|
export {
|
|
14125
|
-
|
|
14126
|
-
BI as heleprs
|
|
14089
|
+
yI as default
|
|
14127
14090
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './helpers/animation'
|
package/dist/types/main.d.ts
CHANGED
package/package.json
CHANGED