"use client"; import * as React from "react"; import { XIcon } from "lucide-react"; import { Dialog as DialogPrimitive } from "radix-ui"; import { cn } from "../lib/cn"; import { Button } from "./button"; import { containedPortal } from "./portal-container"; import { WindowBarTitleBoundary } from "./window-bar-title"; const DialogContainedPortal = containedPortal(DialogPrimitive.Portal); function Dialog({ ...props }: React.ComponentPropsWithoutRef) { return ; } const DialogTrigger = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DialogTrigger({ ...props }, ref) { return ; }); function DialogPortal({ ...props }: React.ComponentPropsWithoutRef) { return ; } const DialogClose = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DialogClose({ ...props }, ref) { return ; }); const DialogOverlay = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DialogOverlay({ className, ...props }, ref) { return ( ); }); const DialogContent = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { showCloseButton?: boolean | undefined; } >(function DialogContent({ className, children, showCloseButton = true, ...props }, ref) { return ( {children} {showCloseButton && ( Close )} ); }); const DialogHeader = /* @__PURE__ */ React.forwardRef< HTMLDivElement, React.ComponentPropsWithoutRef<"div"> >(function DialogHeader({ className, ...props }, ref) { return (
); }); const DialogFooter = /* @__PURE__ */ React.forwardRef< HTMLDivElement, React.ComponentPropsWithoutRef<"div"> & { showCloseButton?: boolean | undefined; } >(function DialogFooter({ className, showCloseButton = false, children, ...props }, ref) { return (
{children} {showCloseButton && ( )}
); }); const DialogTitle = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DialogTitle({ className, ...props }, ref) { return ( ); }); const DialogDescription = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DialogDescription({ className, ...props }, ref) { return ( ); }); export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };