pangea-lib 2.0.5 → 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;
@@ -1031,17 +1031,15 @@ function E4(e, c) {
1031
1031
  return `rgba(${a}, ${t}, ${n}, ${r * c})`;
1032
1032
  }
1033
1033
  const U4 = Mn("pga-colors", () => {
1034
- const e = f1(Cn);
1034
+ const e = f1({ ...Cn });
1035
1035
  h3(
1036
1036
  e,
1037
- (t, n) => {
1038
- console.log(t), console.log(n);
1039
- const r = document.querySelector(":root");
1040
- for (const i in t)
1041
- if (!n || t[i] !== n[i]) {
1042
- const s = `--pga${i.charAt(0).toUpperCase()}${i.slice(1)}Color`, o = t[i];
1043
- console.log(s), console.log(o), r.style.setProperty(s, o);
1044
- }
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
+ }
1045
1043
  },
1046
1044
  { deep: !0, immediate: !0 }
1047
1045
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"