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