"use client"; import * as React from "react"; import { ContextMenu as ContextMenuPrimitive } from "radix-ui"; import { MENU_ITEM_CLASS, MENU_LABEL_CLASS, MENU_META_CLASS, MENU_SEPARATOR_CLASS, MENU_SURFACE_CLASS, } from "./menu-styles"; import { cn } from "../lib/cn"; import { containedPortal } from "./portal-container"; const ContextMenuContainedPortal = containedPortal(ContextMenuPrimitive.Portal); // A thin radix ContextMenu wrapper on the one menu spec (menu-styles.ts), so // the rail row's right-click menu reads identically to the app's other menus. // Only the pieces the rename surface needs are wrapped; extend as needed. function ContextMenu({ ...props }: React.ComponentPropsWithoutRef) { return ; } const ContextMenuTrigger = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function ContextMenuTrigger({ ...props }, ref) { return ; }); const ContextMenuContent = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function ContextMenuContent({ className, ...props }, ref) { return ( ); }); const ContextMenuItem = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { inset?: boolean | undefined; variant?: "default" | "destructive" | undefined; } >(function ContextMenuItem({ className, inset, variant = "default", ...props }, ref) { return ( ); }); const ContextMenuSeparator = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(function ContextMenuSeparator({ className, ...props }, ref) { return ( ); }); const ContextMenuLabel = /* @__PURE__ */ React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { inset?: boolean | undefined; } >(function ContextMenuLabel({ className, inset, ...props }, ref) { return ( ); }); /** An item's key on the right, like `DropdownMenuShortcut`. */ const ContextMenuShortcut = /* @__PURE__ */ React.forwardRef< HTMLSpanElement, React.ComponentPropsWithoutRef<"span"> >(function ContextMenuShortcut({ className, ...props }, ref) { return ( ); }); export { ContextMenu, ContextMenuShortcut, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuLabel, };