{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hud-context-menu",
  "type": "registry:ui",
  "title": "HUD Context Menu",
  "description": "Right-click menu: mono rows, shortcut hints, destructive variant.",
  "dependencies": [
    "@radix-ui/react-context-menu"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/hud/hud-context-menu.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\"\nimport { cn } from \"@/lib/utils\"\n\nconst HudContextMenu = ContextMenuPrimitive.Root\nconst HudContextMenuTrigger = ContextMenuPrimitive.Trigger\nconst HudContextMenuGroup = ContextMenuPrimitive.Group\nconst HudContextMenuPortal = ContextMenuPrimitive.Portal\nconst HudContextMenuSub = ContextMenuPrimitive.Sub\n\nfunction HudContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>) {\n  return (\n    <ContextMenuPrimitive.Portal>\n      <ContextMenuPrimitive.Content\n        className={cn(\n          \"z-50 min-w-[220px] border border-[#3A3E42] bg-popover py-1 shadow-[0_12px_24px_rgba(0,0,0,0.6)]\",\n          \"data-[state=open]:animate-in data-[state=open]:fade-in-0\",\n          className\n        )}\n        {...props}\n      />\n    </ContextMenuPrimitive.Portal>\n  )\n}\n\nfunction HudContextMenuItem({\n  className,\n  variant = \"default\",\n  ...props\n}: React.ComponentProps<typeof ContextMenuPrimitive.Item> & { variant?: \"default\" | \"destructive\" }) {\n  return (\n    <ContextMenuPrimitive.Item\n      className={cn(\n        \"flex cursor-pointer items-center justify-between gap-4 px-3 py-[7px] font-mono text-[10px] uppercase tracking-[0.1em] outline-none\",\n        variant === \"destructive\"\n          ? \"text-destructive data-[highlighted]:bg-destructive/10\"\n          : \"text-[#C8CCCE] data-[highlighted]:bg-accent\",\n        \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction HudContextMenuSubTrigger({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger>) {\n  return (\n    <ContextMenuPrimitive.SubTrigger\n      className={cn(\n        \"flex cursor-pointer items-center justify-between gap-4 px-3 py-[7px] font-mono text-[10px] uppercase tracking-[0.1em] text-[#C8CCCE] outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <span className=\"font-mono text-[10px] text-[#4A5054]\">▸</span>\n    </ContextMenuPrimitive.SubTrigger>\n  )\n}\n\nfunction HudContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {\n  return (\n    <ContextMenuPrimitive.Portal>\n      <ContextMenuPrimitive.SubContent\n        className={cn(\n          \"z-50 min-w-[180px] border border-[#3A3E42] bg-popover py-1 shadow-[0_12px_24px_rgba(0,0,0,0.6)]\",\n          className\n        )}\n        {...props}\n      />\n    </ContextMenuPrimitive.Portal>\n  )\n}\n\nfunction HudContextMenuLabel({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label>) {\n  return (\n    <ContextMenuPrimitive.Label\n      className={cn(\n        \"px-3 pt-2 pb-1 font-mono text-[10px] uppercase tracking-[0.2em] text-[#4A5054]\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction HudContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>) {\n  return (\n    <ContextMenuPrimitive.Separator className={cn(\"my-1 h-px bg-[#1D2023]\", className)} {...props} />\n  )\n}\n\nfunction HudContextMenuShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n  return (\n    <span className={cn(\"font-mono text-[10px] normal-case text-[#4A5054]\", className)} {...props} />\n  )\n}\n\nexport {\n  HudContextMenu,\n  HudContextMenuTrigger,\n  HudContextMenuGroup,\n  HudContextMenuPortal,\n  HudContextMenuSub,\n  HudContextMenuContent,\n  HudContextMenuItem,\n  HudContextMenuSubTrigger,\n  HudContextMenuSubContent,\n  HudContextMenuLabel,\n  HudContextMenuSeparator,\n  HudContextMenuShortcut,\n}\n",
      "type": "registry:ui"
    }
  ]
}