UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

44 lines (43 loc) 1.5 kB
import e from "react"; import { Dialog as D, DialogTrigger as E, DialogContent as u, DialogHeader as x, DialogTitle as d, DialogDescription as f, DialogFooter as h } from "./index.es75.js"; import { DialogClose as w } from "./index.es75.js"; import { cn as r } from "./index.es79.js"; import { Typography as o } from "./index.es17.js"; function C({ trigger: m, body: n, title: a, description: t, footer: l, onOpenChange: i, open: c, footerClassName: g, contentClassName: s, onInteractOutside: p }) { return /* @__PURE__ */ e.createElement(D, { onOpenChange: i, open: c }, /* @__PURE__ */ e.createElement(E, { asChild: !0 }, m), /* @__PURE__ */ e.createElement( u, { onInteractOutside: p, className: r( "max-w-full border border-neutral-1 bg-white", s ) }, (a || t) && /* @__PURE__ */ e.createElement(x, { className: "px-4 py-3" }, a && /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(o, { variant: "h3", className: "text-light-2" }, a)), t && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(o, { variant: "body4", className: "text-light-4" }, t))), /* @__PURE__ */ e.createElement("div", { className: "" }, n), l && /* @__PURE__ */ e.createElement( h, { className: r("rounded-b-xl bg-light-3 px-4 py-3", g) }, l ) )); } export { w as DialogClose, E as DialogTrigger, C as _Dialog }; //# sourceMappingURL=index.es37.js.map