"use client"; import * as React from "react"; import { CheckIcon, ChevronRightIcon } from "lucide-react"; import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"; import { MENU_CHECK_CLASS, MENU_CHECK_SLOT_CLASS, MENU_CHEVRON_CLASS, MENU_ITEM_CLASS, MENU_LABEL_CLASS, MENU_META_CLASS, MENU_NOTE_CLASS, MENU_SEPARATOR_CLASS, MENU_SURFACE_CLASS, } from "./menu-styles"; import { cn } from "../lib/cn"; import { containedPortal } from "./portal-container"; const DropdownMenuContainedPortal = containedPortal(DropdownMenuPrimitive.Portal); const MENU_MOTION_CLASS = "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"; function DropdownMenu({ ...props }: React.ComponentPropsWithoutRef) { return ; } function DropdownMenuPortal({ ...props }: React.ComponentPropsWithoutRef) { return ; } const DropdownMenuTrigger = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuTrigger({ ...props }, ref) { return ; }); const DropdownMenuContent = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuContent({ className, sideOffset = 4, ...props }, ref) { return ( ); }); const DropdownMenuGroup = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuGroup({ ...props }, ref) { return ; }); const DropdownMenuItem = /* @__PURE__ */ React.forwardRef< React.ComponentRef, Omit, "disabled"> & { disabled?: boolean | undefined; inset?: boolean | undefined; variant?: "default" | "destructive" | undefined; } >(function DropdownMenuItem({ className, inset, variant = "default", disabled, ...props }, ref) { return ( ); }); const DropdownMenuCheckboxItem = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuCheckboxItem({ className, children, checked, ...props }, ref) { return ( {children} ); }); const DropdownMenuRadioGroup = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuRadioGroup({ ...props }, ref) { return ( ); }); const DropdownMenuRadioItem = /* @__PURE__ */ React.forwardRef< React.ComponentRef, Omit, "disabled"> & { disabled?: boolean | undefined; } >(function DropdownMenuRadioItem({ className, children, disabled, ...props }, ref) { return ( {children} ); }); const DropdownMenuLabel = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { inset?: boolean | undefined; } >(function DropdownMenuLabel({ className, inset, ...props }, ref) { return ( ); }); const DropdownMenuSeparator = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuSeparator({ className, ...props }, ref) { return ( ); }); const DropdownMenuShortcut = /* @__PURE__ */ React.forwardRef< HTMLSpanElement, React.ComponentPropsWithoutRef<"span"> >(function DropdownMenuShortcut({ className, ...props }, ref) { return ( ); }); function DropdownMenuSub({ ...props }: React.ComponentPropsWithoutRef) { return ; } const DropdownMenuSubTrigger = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { inset?: boolean | undefined; } >(function DropdownMenuSubTrigger({ className, inset, children, ...props }, ref) { return ( {children} ); }); const DropdownMenuSubContent = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function DropdownMenuSubContent({ className, ...props }, ref) { return ( ); }); /** Right-side meta on a row: a count or the current value. */ const DropdownMenuMeta = /* @__PURE__ */ React.forwardRef< HTMLSpanElement, React.ComponentPropsWithoutRef<"span"> >(function DropdownMenuMeta({ className, ...props }, ref) { return ( ); }); /** * The selected option's check, on the right of its row. Every option of a * choice list renders it, so the 16px slot stays reserved and right-side meta * lines up whether or not the row is checked. */ function DropdownMenuCheck({ checked, className }: { checked: boolean; className?: string }) { return ( ); } /** A plain sentence in a menu (empty, loading, unavailable): said once, never boxed. */ const DropdownMenuNote = /* @__PURE__ */ React.forwardRef< HTMLParagraphElement, React.ComponentPropsWithoutRef<"p"> >(function DropdownMenuNote({ className, ...props }, ref) { return (

); }); export { DropdownMenu, DropdownMenuCheck, DropdownMenuMeta, DropdownMenuNote, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };