welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
50 lines (49 loc) • 1.38 kB
JavaScript
"use client";
import { u as c } from "./X5NMLKT6-BJw3xE-K.mjs";
import { b as d } from "./VGCJ63VH-C0UPBY-5.mjs";
import { f as p, c as f, h as x, _ as D, b as g, d as h, g as k } from "./LVA2YJMS-C-kJ1lkr.mjs";
import { useMemo as v } from "react";
import { j as r } from "./jsx-runtime-B7I4PJ0H.mjs";
var _ = "button", b = f(
function(i) {
var o = i, { store: e } = o, s = D(o, ["store"]);
const l = d();
e = e || l;
const t = s.onClick, u = g((a) => {
t == null || t(a), !a.defaultPrevented && (e == null || e.hide());
}), m = v(
() => /* @__PURE__ */ r.jsxs(
"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__ */ r.jsx("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
/* @__PURE__ */ r.jsx("line", { x1: "4", y1: "12", x2: "12", y2: "4" })
]
}
),
[]
);
return s = h(k({
"data-dialog-dismiss": "",
children: m
}, s), {
onClick: u
}), s = c(s), s;
}
), E = p(function(i) {
const o = b(i);
return x(_, o);
});
export {
E as D
};