UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

19 lines (18 loc) 609 B
const u = /([\:\-\_]+(.))/g, i = /^moz([A-Z])/, f = typeof window < "u", p = (n) => n.replace(u, (r, c, o, t) => t ? o.toUpperCase() : o).replace(i, "Moz$1"), s = (n, r) => { var c, o; if (f) { if (!n || !r) return null; r = p(r), r === "float" && (r = "cssFloat"); try { const t = (c = document.defaultView) == null ? void 0 : c.getComputedStyle(n, ""); return ((o = n.style) == null ? void 0 : o[r]) || (t ? t == null ? void 0 : t[r] : null); } catch { return n.style[r]; } } }; export { p as camelCase, s as getStyle }; //# sourceMappingURL=getStyle.mjs.map