UNPKG

geoiq-frontend-ui-kit

Version:

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

89 lines (88 loc) 2.96 kB
import * as e from "react"; import * as t from "@radix-ui/react-dialog"; import { cn as l } from "./index.es79.js"; const u = t.Root, y = t.Trigger, r = t.Portal, x = t.Close, n = e.forwardRef(({ className: a, ...o }, s) => /* @__PURE__ */ e.createElement( t.Overlay, { ref: s, className: l( "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", a ), ...o } )); n.displayName = t.Overlay.displayName; const d = e.forwardRef(({ className: a, children: o, ...s }, i) => /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement( t.Content, { ref: i, className: l( "bg-background fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-xl", a ), ...s }, o, /* @__PURE__ */ e.createElement(t.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close")) ))); d.displayName = t.Content.displayName; const c = ({ className: a, ...o }) => /* @__PURE__ */ e.createElement( "div", { className: l("flex flex-col gap-1 text-center sm:text-left", a), ...o } ); c.displayName = "DialogHeader"; const m = ({ className: a, ...o }) => /* @__PURE__ */ e.createElement( "div", { className: l( "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a ), ...o } ); m.displayName = "DialogFooter"; const f = e.forwardRef(({ className: a, ...o }, s) => /* @__PURE__ */ e.createElement( t.Title, { ref: s, className: l( "text-lg font-semibold leading-none tracking-tight", a ), ...o } )); f.displayName = t.Title.displayName; const g = e.forwardRef(({ className: a, ...o }, s) => /* @__PURE__ */ e.createElement( t.Description, { ref: s, className: l("text-muted-foreground text-sm", a), ...o } )); g.displayName = t.Description.displayName; export { u as Dialog, x as DialogClose, d as DialogContent, g as DialogDescription, m as DialogFooter, c as DialogHeader, n as DialogOverlay, r as DialogPortal, f as DialogTitle, y as DialogTrigger }; //# sourceMappingURL=index.es75.js.map