UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

36 lines (35 loc) 728 B
import * as f from "react"; import * as p from "react-dom"; import { c } from "./index-Bytw4Lqn.mjs"; import { jsx as u } from "react/jsx-runtime"; var d = [ "a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul" ], h = d.reduce((t, i) => { const o = c(`Primitive.${i}`), r = f.forwardRef((e, a) => { const { asChild: s, ...m } = e, n = s ? o : i; return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...m, ref: a }); }); return r.displayName = `Primitive.${i}`, { ...t, [i]: r }; }, {}); function w(t, i) { t && p.flushSync(() => t.dispatchEvent(i)); } export { h as P, w as d };