import * as React from "react"; import { XIcon } from "lucide-react"; import { Dialog as SheetPrimitive } from "radix-ui"; import { SectionFrameReset } from "./section-variant"; import { WindowBarTitleBoundary } from "./window-bar-title"; import { cn } from "../lib/cn"; import { containedPortal } from "./portal-container"; const SheetContainedPortal = containedPortal(SheetPrimitive.Portal); function Sheet({ ...props }: React.ComponentPropsWithoutRef) { return ; } const SheetTrigger = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function SheetTrigger({ ...props }, ref) { return ; }); const SheetClose = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function SheetClose({ ...props }, ref) { return ; }); function SheetPortal({ ...props }: React.ComponentPropsWithoutRef) { return ; } const SheetOverlay = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function SheetOverlay({ className, ...props }, ref) { return ( ); }); const SheetContent = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { side?: "top" | "right" | "bottom" | "left" | undefined; showCloseButton?: boolean | undefined; } >(function SheetContent( { className, children, side = "right", showCloseButton = true, ...props }, ref, ) { return ( {children} {showCloseButton && ( Close )} ); }); const SheetHeader = /* @__PURE__ */ React.forwardRef< HTMLDivElement, React.ComponentPropsWithoutRef<"div"> >(function SheetHeader({ className, ...props }, ref) { return (
); }); const SheetFooter = /* @__PURE__ */ React.forwardRef< HTMLDivElement, React.ComponentPropsWithoutRef<"div"> >(function SheetFooter({ className, ...props }, ref) { return (
); }); const SheetTitle = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function SheetTitle({ className, ...props }, ref) { return ( ); }); const SheetDescription = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function SheetDescription({ className, ...props }, ref) { return ( ); }); export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };