{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-hover-card",
  "title": "RetroHoverCard",
  "description": "A Mac OS 9 styled hover card with solid border and drop shadow, built on UI SDK Hover Card.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.1",
    "@ui-sdk/react@0.1.0-beta.1"
  ],
  "registryDependencies": [
    "https://nostalgia-ui.com/r/nostalgia-theme.json",
    "https://nostalgia-ui.com/r/retro-motion.json"
  ],
  "files": [
    {
      "path": "registry/new-york/ui/retro-hover-card.tsx",
      "content": "\"use client\"\n\n/*\n * RetroHoverCard: a Mac OS 9 preview panel that opens while the pointer (or\n * keyboard focus) rests on a link, on UI SDK.\n *\n * Crafted moment: pop from trigger. The card grows out of the link it\n * previews (scale .95 to 1 from --transform-origin, 140ms) and fades out\n * faster than it came in. Classic flair and reduced motion: it simply appears.\n */\n\nimport * as React from \"react\"\nimport {\n  HoverCard as HoverCardPrimitive,\n  HoverCardContent as HoverCardContentPrimitive,\n  HoverCardTrigger as HoverCardTriggerPrimitive,\n} from \"@ui-sdk/react/hover-card\"\n\nimport { cn } from \"@/lib/utils\"\nimport { popupClass } from \"@/registry/new-york/lib/retro-motion\"\n\nfunction RetroHoverCard({\n  openDelay,\n  delay = openDelay ?? 700,\n  closeDelay = 300,\n  ...props\n}: React.ComponentProps<typeof HoverCardPrimitive> & {\n  /** shadcn-shaped alias for `delay` */\n  openDelay?: number\n}) {\n  return <HoverCardPrimitive delay={delay} closeDelay={closeDelay} {...props} />\n}\n\nfunction RetroHoverCardTrigger(props: React.ComponentProps<typeof HoverCardTriggerPrimitive>) {\n  return <HoverCardTriggerPrimitive {...props} />\n}\n\nfunction RetroHoverCardContent({\n  className,\n  align = \"center\",\n  sideOffset = 4,\n  ...props\n}: Omit<React.ComponentProps<typeof HoverCardContentPrimitive>, \"className\"> & {\n  className?: string\n}) {\n  return (\n    <HoverCardContentPrimitive\n      align={align}\n      sideOffset={sideOffset}\n      className={popupClass(\n        cn(\n          /* Box properties carry `!` so UI SDK's popup reset can't strip them in\n           * apps that haven't declared `@layer ui-sdk;` first. */\n          \"z-50 m-0! max-w-[300px]! p-[8px]! border! border-os9-black! bg-os9-white! text-os9-black! overflow-visible!\",\n          \"shadow-[2px_2px_0_var(--os9-black)] outline-none\",\n          \"font-[family-name:var(--os9-font-heading)] text-[12px] tracking-[0.42px] leading-[1.3]\",\n          \"origin-(--transform-origin) transition-[opacity,scale] duration-140 ease-[cubic-bezier(0.23,1,0.32,1)]\",\n          \"data-starting-style:opacity-0 data-starting-style:scale-95\",\n          \"data-ending-style:opacity-0 data-ending-style:duration-100\",\n          \"in-data-[flair=classic]:transition-none motion-reduce:transition-none\"\n        ),\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { RetroHoverCard, RetroHoverCardTrigger, RetroHoverCardContent }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}