UNPKG

@anoki/fse-ui

Version:

FSE UI components library

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