"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.ComponentProps) { return ; } function DropdownMenuPortal({ ...props }: React.ComponentProps) { return ; } function DropdownMenuTrigger({ ...props }: React.ComponentProps) { return ; } function DropdownMenuContent({ className, sideOffset = 4, ...props }: React.ComponentProps) { return ( ); } function DropdownMenuGroup({ ...props }: React.ComponentProps) { return ; } function DropdownMenuItem({ className, inset, variant = "default", disabled, ...props }: Omit, "disabled"> & { disabled?: boolean | undefined; inset?: boolean | undefined; variant?: "default" | "destructive" | undefined; }) { return ( ); } function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps) { return ( {children} ); } function DropdownMenuRadioGroup({ ...props }: React.ComponentProps) { return ; } function DropdownMenuRadioItem({ className, children, disabled, ...props }: Omit, "disabled"> & { disabled?: boolean | undefined; }) { return ( {children} ); } function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps & { inset?: boolean | undefined; }) { return ( ); } function DropdownMenuSeparator({ className, ...props }: React.ComponentProps) { return ( ); } function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">) { return ( ); } function DropdownMenuSub({ ...props }: React.ComponentProps) { return ; } function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps & { inset?: boolean | undefined; }) { return ( {children} ); } function DropdownMenuSubContent({ className, ...props }: React.ComponentProps) { return ( ); } /** Right-side meta on a row: a count or the current value. */ function DropdownMenuMeta({ className, ...props }: React.ComponentProps<"span">) { 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. */ function DropdownMenuNote({ className, ...props }: React.ComponentProps<"p">) { return

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