{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-tooltip",
  "title": "RetroTooltip",
  "description": "A Mac OS 9 Balloon Help styled tooltip with pale yellow background, rounded corners, and drop shadow, built on UI SDK Tooltip.",
  "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-tooltip.tsx",
      "content": "\"use client\"\n\n/*\n * RetroTooltip renders Balloon Help.\n *\n * Crafted moment: the balloon grows out of the thing it explains (scale from\n * --transform-origin, 140ms) and its tail points at it. Once one balloon is\n * open, moving along a row of controls swaps balloons instantly\n * (UI SDK's data-instant), so a toolbar reads like one balloon following the\n * pointer, the way Balloon Help felt with \"Show Balloons\" on.\n * Classic flair: balloons appear at once.\n */\n\nimport * as React from \"react\"\nimport {\n  Tooltip as TooltipPrimitive,\n  TooltipArrow as TooltipArrowPrimitive,\n  TooltipContent as TooltipContentPrimitive,\n  TooltipTrigger as TooltipTriggerPrimitive,\n} from \"@ui-sdk/react/tooltip\"\n\nimport { cn } from \"@/lib/utils\"\nimport { popupClass } from \"@/registry/new-york/lib/retro-motion\"\n\n/* UI SDK groups tooltips without a provider; kept so shadcn-shaped code compiles */\nfunction RetroTooltipProvider({ children }: { children?: React.ReactNode; delayDuration?: number }) {\n  return <>{children}</>\n}\n\nfunction RetroTooltip({ delay = 400, ...props }: React.ComponentProps<typeof TooltipPrimitive>) {\n  return <TooltipPrimitive delay={delay} {...props} />\n}\n\nfunction RetroTooltipTrigger(props: React.ComponentProps<typeof TooltipTriggerPrimitive>) {\n  return <TooltipTriggerPrimitive {...props} />\n}\n\nfunction RetroTooltipContent({\n  className,\n  children,\n  sideOffset = 9,\n  ...props\n}: Omit<React.ComponentProps<typeof TooltipContentPrimitive>, \"className\" | \"children\"> & {\n  className?: string\n  children?: React.ReactNode\n}) {\n  return (\n    <TooltipContentPrimitive\n      sideOffset={sideOffset}\n      /* a span, so a tooltip can live inside a <p> (popups render in place) */\n      render={<span />}\n      className={popupClass(\n        cn(\n          \"relative z-50 block max-w-[220px]! overflow-visible! m-0!\",\n          /* Balloon Help: the one place OS 9 used round corners. Box properties\n           * carry `!` so UI SDK's popup reset can't strip them in apps that\n           * haven't declared `@layer ui-sdk;` first. */\n          \"rounded-[6px] border! border-os9-black! bg-[#ffffcc]! px-[8px]! py-[4px]! text-os9-black!\",\n          \"shadow-[1px_1px_0_rgba(0,0,0,0.3)]\",\n          \"font-[family-name:var(--os9-font-heading)] text-[10px] 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-90\",\n          \"data-ending-style:opacity-0 data-ending-style:duration-75\",\n          \"data-instant:transition-none in-data-[flair=classic]:transition-none\",\n          \"motion-reduce:data-starting-style:scale-100\"\n        ),\n        className\n      )}\n      {...props}\n    >\n      <TooltipArrowPrimitive\n        render={<span />}\n        className={cn(\n          \"absolute block size-[8px] rotate-45 bg-[#ffffcc] border-os9-black\",\n          \"-translate-x-1/2 left-(--arrow-offset)\",\n          \"in-data-[side=top]:-bottom-[5px] in-data-[side=top]:border-r in-data-[side=top]:border-b\",\n          \"in-data-[side=bottom]:-top-[5px] in-data-[side=bottom]:border-l in-data-[side=bottom]:border-t\",\n          \"in-data-[side=left]:hidden in-data-[side=right]:hidden\"\n        )}\n      />\n      {children}\n    </TooltipContentPrimitive>\n  )\n}\n\nexport { RetroTooltipProvider, RetroTooltip, RetroTooltipTrigger, RetroTooltipContent }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}