pangea-lib 1.10.4 → 1.10.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/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, a, e = "animate__") {
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 FI(c) {
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 qI = (c, a) => {
14119
- const e = PI(a);
14120
- FI(e.colors), Object.entries(SI).forEach(([r, i]) => {
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
- qI as default,
14126
- BI as heleprs
14089
+ yI as default
14127
14090
  };
@@ -0,0 +1 @@
1
+ export * from './helpers/animation'
@@ -1,7 +1,5 @@
1
1
  import { App } from 'vue';
2
2
  import { PangeaOptions } from './types/pangea-options';
3
3
 
4
- import * as heleprs from './helpers';
5
4
  declare const _default: (app: App, userOptions?: PangeaOptions) => void;
6
5
  export default _default;
7
- export { heleprs };
@@ -0,0 +1 @@
1
+ export * from './helpers/url'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "1.10.4",
4
+ "version": "1.10.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -15,6 +15,16 @@
15
15
  "import": "./dist/main.es.js",
16
16
  "types": "./dist/types/main.d.ts"
17
17
  },
18
+ "./animation": {
19
+ "require": "./dist/animation.cjs.js",
20
+ "import": "./dist/animation.es.js",
21
+ "types": "./dist/types/animation.d.ts"
22
+ },
23
+ "./url": {
24
+ "require": "./dist/url.cjs.js",
25
+ "import": "./dist/url.es.js",
26
+ "types": "./dist/types/url.d.ts"
27
+ },
18
28
  "./style.css": "./dist/style.css",
19
29
  "./package.json": "./package.json"
20
30
  },
@@ -1,2 +0,0 @@
1
- export * as animationHelpers from './animation';
2
- export * as urlHelpers from './url';