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