welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
50 lines (49 loc) • 1.36 kB
JavaScript
"use client";
import { a as c } from "./T22PY7TE-BxbmImwX.js";
import { u as d } from "./XCKGTAUF-DkxWCbaW.js";
import { f as p, c as f, b as D, _ as x, u as g, d as k, a as v } from "./OE2EFRVA-C3721cM3.js";
import { useMemo as h } from "react";
import { jsxs as _, jsx as a } from "react/jsx-runtime";
var b = "button", y = f(
function(i) {
var s = i, { store: e } = s, o = x(s, ["store"]);
const l = c();
e = e || l;
const r = o.onClick, u = g((t) => {
r == null || r(t), !t.defaultPrevented && (e == null || e.hide());
}), m = h(
() => /* @__PURE__ */ _(
"svg",
{
"aria-label": "Dismiss popup",
display: "block",
fill: "none",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 1.5,
viewBox: "0 0 16 16",
height: "1em",
width: "1em",
children: [
/* @__PURE__ */ a("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
/* @__PURE__ */ a("line", { x1: "4", y1: "12", x2: "12", y2: "4" })
]
}
),
[]
);
return o = k(v({
"data-dialog-dismiss": "",
children: m
}, o), {
onClick: u
}), o = d(o), o;
}
), E = p(function(i) {
const s = y(i);
return D(b, s);
});
export {
E as D
};