geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
46 lines (45 loc) • 1.54 kB
JavaScript
import e from "react";
import { Dialog as E, DialogTrigger as u, DialogContent as x, DialogHeader as d, DialogTitle as f, DialogDescription as h, DialogFooter as b } from "./index.es78.js";
import { DialogClose as F } from "./index.es78.js";
import { cn as r } from "./index.es85.js";
import { Typography as o } from "./index.es19.js";
function T({
trigger: m,
body: n,
title: a,
description: t,
footer: l,
onOpenChange: i,
open: c,
footerClassName: g,
contentClassName: s,
onInteractOutside: p,
onOpenAutoFocus: D
}) {
return /* @__PURE__ */ e.createElement(E, { onOpenChange: i, open: c }, /* @__PURE__ */ e.createElement(u, { asChild: !0 }, m), /* @__PURE__ */ e.createElement(
x,
{
onInteractOutside: p,
onOpenAutoFocus: D,
className: r(
"max-w-full border border-neutral-1 bg-white",
s
)
},
(a || t) && /* @__PURE__ */ e.createElement(d, { className: "px-4 py-3" }, a && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(o, { variant: "h3", className: "text-light-2" }, a)), t && /* @__PURE__ */ e.createElement(h, null, /* @__PURE__ */ e.createElement(o, { variant: "body4", className: "text-light-4" }, t))),
/* @__PURE__ */ e.createElement("div", { className: "" }, n),
l && /* @__PURE__ */ e.createElement(
b,
{
className: r("rounded-b-xl bg-light-3 px-4 py-3", g)
},
l
)
));
}
export {
F as DialogClose,
u as DialogTrigger,
T as _Dialog
};
//# sourceMappingURL=index.es40.js.map