@workokay/atom 0.2.9 → 0.2.12

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/index.js CHANGED
@@ -3203,7 +3203,9 @@ const Xr = Oe(
3203
3203
  if (!O) return;
3204
3204
  const N = O.getBoundingClientRect(), P = Math.max(N.width, N.height) * (r === "sm" ? 0.5 : r === "lg" ? 0.7 : 0.6), $ = E.clientX - N.left - P, p = E.clientY - N.top - P, S = document.createElement("span");
3205
3205
  S.className = "atom-ripple", S.style.width = `${P * 2}px`, S.style.height = `${P * 2}px`, S.style.left = `${$}px`, S.style.top = `${p}px`;
3206
- const J = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", X = getComputedStyle(O).getPropertyValue(J ? "--atom-ripple-color-ghost" : "--atom-ripple-color-solid").trim();
3206
+ const J = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", X = getComputedStyle(O).getPropertyValue(
3207
+ J ? "--atom-ripple-color-ghost" : "--atom-ripple-color-solid"
3208
+ ).trim();
3207
3209
  S.style.background = X || "currentColor", O.appendChild(S), S.addEventListener("animationend", () => S.remove(), { once: !0 });
3208
3210
  };
3209
3211
  return /* @__PURE__ */ j.jsx(