@anoki/fse-marche-ui
Version:
FSE UI components library
37 lines (36 loc) • 782 B
JavaScript
import * as n from "react";
import * as p from "react-dom";
import { Slot as f } from "./index.es257.js";
import { j as u } from "./index.es137.js";
var c = [
"a",
"button",
"div",
"form",
"h2",
"h3",
"img",
"input",
"label",
"li",
"nav",
"ol",
"p",
"span",
"svg",
"ul"
], v = c.reduce((r, i) => {
const t = n.forwardRef((o, e) => {
const { asChild: s, ...m } = o, a = s ? f : i;
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(a, { ...m, ref: e });
});
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
}, {});
function h(r, i) {
r && p.flushSync(() => r.dispatchEvent(i));
}
export {
v as Primitive,
h as dispatchDiscreteCustomEvent
};
//# sourceMappingURL=index.es239.js.map