@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
21 lines (20 loc) • 517 B
JavaScript
"use client";
import { h as i } from "./has-window.ut_-aShB.js";
const n = (t) => i && (t == null ? void 0 : t.getBoundingClientRect()) || DOMRect.fromRect({
x: 0,
y: 0,
width: 0,
height: 0
}), r = () => {
if (i) {
const {
matches: t
} = window.matchMedia("(prefers-reduced-motion: reduce)"), e = getComputedStyle(document.documentElement).getPropertyValue("--ds-animation-duration").trim();
return e === "0s" || e === "0ms" || t;
} else
return !0;
};
export {
n as g,
r as i
};