@opencor/opencor 0.20260612.2 → 0.20260612.3

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.
@@ -4747,7 +4747,7 @@ const ei = () => {
4747
4747
  ]), 1024);
4748
4748
  };
4749
4749
  }
4750
- }), Zp = "0.20260612.2", Yp = {
4750
+ }), Zp = "0.20260612.3", Yp = {
4751
4751
  version: Zp
4752
4752
  }, { version: va } = Yp, zr = C.ref(!1), Bo = C.ref(""), yl = async () => {
4753
4753
  try {
@@ -9875,15 +9875,16 @@ const c4 = /* @__PURE__ */ ac(() => C.ref(null)), sc = /* @__PURE__ */ ac(() =>
9875
9875
  if (i) {
9876
9876
  let r = i.querySelector(`.${e}`);
9877
9877
  if (!r) {
9878
- r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
9878
+ r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
9879
9879
  Object.assign(document.createElement("style"), {
9880
9880
  textContent: `.${e} > * { pointer-events: auto; }`
9881
9881
  })
9882
- );
9882
+ ), i.appendChild(r);
9883
9883
  const a = r, l = () => {
9884
- a.style.top = `-${window.scrollY}px`, a.style.left = `-${window.scrollX}px`;
9884
+ const c = a.getBoundingClientRect(), s = parseFloat(a.style.top) || 0, u = parseFloat(a.style.left) || 0, m = s - c.top - window.scrollY, p = u - c.left - window.scrollX;
9885
+ (Math.abs(m - s) >= 0.5 || Math.abs(p - u) >= 0.5) && (a.style.top = `${m}px`, a.style.left = `${p}px`);
9885
9886
  };
9886
- l(), window.addEventListener("scroll", l, { passive: !0 }), i.appendChild(r);
9887
+ l(), window.addEventListener("scroll", l, { passive: !0 });
9887
9888
  }
9888
9889
  n.value = r;
9889
9890
  }
@@ -11934,7 +11935,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
11934
11935
  }, {
11935
11936
  default: S(() => [
11936
11937
  f("div", {
11937
- class: "tooltip",
11938
+ class: "tooltip-content",
11938
11939
  innerHTML: l.content
11939
11940
  }, null, 8, y6)
11940
11941
  ]),
@@ -11942,7 +11943,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
11942
11943
  }, 8, ["appendTo"])
11943
11944
  ], 544));
11944
11945
  }
11945
- }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-f2cdf017"]]);
11946
+ }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-816f47c5"]]);
11946
11947
  var gc = {
11947
11948
  name: "BlankIcon",
11948
11949
  extends: Je
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "./style.css": "./dist/opencor.css"
44
44
  },
45
- "version": "0.20260612.2",
45
+ "version": "0.20260612.3",
46
46
  "libopencorVersion": "0.20260604.0",
47
47
  "scripts": {
48
48
  "build": "vite build && bun scripts/generate.version.js",