welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
44 lines (43 loc) • 1.25 kB
JavaScript
"use client";
import { u as p, P as _ } from "./Y67KZUMI-CtXJ_hZt.js";
import { c as i, _ as v, d as l, p as h, a as n, f as P, b as m, i as D, u as x, x as E } from "./OE2EFRVA-C3721cM3.js";
import { u as b } from "./ZTXFEM5L-BEA_1pIo.js";
import { jsx as g } from "react/jsx-runtime";
var A = "div", d = i(
function(s) {
var e = s, { store: r } = e, o = v(e, ["store"]);
const c = p();
return r = r || c, o = l(n({}, o), {
ref: h(r == null ? void 0 : r.setAnchorElement, o.ref)
}), o;
}
);
P(function(s) {
const e = d(s);
return m(A, e);
});
var C = "button", k = i(function(s) {
var e = s, { store: r } = e, o = v(e, ["store"]);
const c = p();
r = r || c, D(
r,
process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
);
const u = o.onClick, f = x((t) => {
r == null || r.setAnchorElement(t.currentTarget), u == null || u(t);
});
return o = E(
o,
(t) => /* @__PURE__ */ g(_, { value: r, children: t }),
[r]
), o = l(n({}, o), {
onClick: f
}), o = d(n({ store: r }, o)), o = b(n({ store: r }, o)), o;
}), w = P(function(s) {
const e = k(s);
return m(C, e);
});
export {
w as P,
k as u
};