pangea-lib 2.0.4 → 2.0.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
@@ -1014,7 +1014,7 @@ const Cn = {
1014
1014
  link: "#0064ff",
1015
1015
  error: "#e11515"
1016
1016
  }, fz = {
1017
- colors: Cn
1017
+ colors: { ...Cn }
1018
1018
  };
1019
1019
  function E4(e, c) {
1020
1020
  let a = 0, t = 0, n = 0, r = 0;
@@ -1030,33 +1030,27 @@ function E4(e, c) {
1030
1030
  }
1031
1031
  return `rgba(${a}, ${t}, ${n}, ${r * c})`;
1032
1032
  }
1033
- const U4 = Mn(
1034
- "pga-colors",
1035
- () => {
1036
- const e = f1(Cn);
1037
- h3(
1038
- e,
1039
- (t, n) => {
1040
- console.log(t), console.log(n);
1041
- const r = document.querySelector(":root");
1042
- for (const i in t)
1043
- if (!n || t[i] !== n[i]) {
1044
- const s = `--pga${i.charAt(0).toUpperCase()}${i.slice(1)}Color`, o = t[i];
1045
- console.log(s), console.log(o), r.style.setProperty(s, o);
1046
- }
1047
- },
1048
- { deep: !0, immediate: !0 }
1049
- );
1050
- function c(t, n) {
1051
- e.value[t] = n;
1052
- }
1053
- function a(t) {
1054
- e.value = t;
1055
- }
1056
- return { colors: e, setColor: c, setColors: a };
1057
- },
1058
- { persist: !0 }
1059
- );
1033
+ const U4 = Mn("pga-colors", () => {
1034
+ const e = f1({ ...Cn });
1035
+ h3(
1036
+ e,
1037
+ (t) => {
1038
+ const n = document.querySelector(":root");
1039
+ for (const r in t) {
1040
+ const i = `--pga${r.charAt(0).toUpperCase()}${r.slice(1)}Color`, s = t[r];
1041
+ n.style.setProperty(i, s);
1042
+ }
1043
+ },
1044
+ { deep: !0, immediate: !0 }
1045
+ );
1046
+ function c(t, n) {
1047
+ e.value[t] = n;
1048
+ }
1049
+ function a(t) {
1050
+ e.value = t;
1051
+ }
1052
+ return { colors: e, setColor: c, setColors: a };
1053
+ });
1060
1054
  const uz = { class: "badge" }, hz = /* @__PURE__ */ Z1({
1061
1055
  __name: "PgaBadge",
1062
1056
  props: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"