UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

28 lines (27 loc) 904 B
"use client"; import { h as n } from "./has-window.ut_-aShB.js"; import { g as r } from "./helpers.BbWkXTr3.js"; import "./index.CgTHIF3K.js"; import "react"; const e = "ds-alert-live-region", t = "ds-status-live-region", c = () => { if (n) return document.getElementById(e); }, m = () => { if (n) return document.getElementById(t); }, u = () => { if (!n) return; const o = document.querySelectorAll(`#${e}`), i = document.querySelectorAll(`#${t}`); if (o.length > 1) throw new Error(r("DSAriaLiveRegions", `The DSAriaLiveRegions component with id="${e}" should only be present once on the page. Found ${o.length} instances.`)); if (i.length > 1) throw new Error(r("DSAriaLiveRegions", `The DSAriaLiveRegions component with id="${t}" should only be present once on the page. Found ${i.length} instances.`)); }; export { e as A, t as a, c as b, m as g, u as v };