{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-radio",
  "title": "RetroRadio",
  "description": "A Mac OS 9 styled radio button group with 3D circular bevel effect, built on UI SDK Radio Group.",
  "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"
  ],
  "files": [
    {
      "path": "registry/new-york/ui/retro-radio.tsx",
      "content": "\"use client\"\n\n/*\n * RetroRadioGroup: OS 9 radio buttons, a gradient-lit 13px circle with a\n * black dot.\n *\n * Crafted moment: none on purpose. The dot moves the instant a choice is\n * made, by click, label or arrow key, the way the Mac drew it.\n *\n * UI SDK gives the group one tab stop and arrow-key selection. Each item\n * renders a <button role=\"radio\">, so <label htmlFor={id}> reaches it.\n */\n\nimport * as React from \"react\"\nimport {\n  Radio as RadioPrimitive,\n  RadioGroup as RadioGroupPrimitive,\n  RadioIndicator as RadioIndicatorPrimitive,\n} from \"@ui-sdk/react/radio\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype RadioGroupPrimitiveProps = React.ComponentProps<typeof RadioGroupPrimitive<string>>\ntype RadioGroupChangeDetails = Parameters<NonNullable<RadioGroupPrimitiveProps[\"onValueChange\"]>>[1]\n\ntype RetroRadioGroupProps = Omit<\n  RadioGroupPrimitiveProps,\n  \"className\" | \"children\" | \"value\" | \"defaultValue\" | \"onValueChange\"\n> & {\n  className?: string\n  children?: React.ReactNode\n  value?: string\n  defaultValue?: string\n  onValueChange?: (value: string, details: RadioGroupChangeDetails) => void\n}\n\nfunction RetroRadioGroup({ className, onValueChange, ...props }: RetroRadioGroupProps) {\n  return (\n    <RadioGroupPrimitive\n      className={cn(\"grid gap-2\", className)}\n      onValueChange={\n        onValueChange && ((value, details) => onValueChange(value ?? \"\", details))\n      }\n      {...props}\n    />\n  )\n}\n\ntype RetroRadioGroupItemProps = Omit<\n  React.ComponentProps<typeof RadioPrimitive>,\n  \"className\" | \"children\"\n> & {\n  className?: string\n}\n\nfunction RetroRadioGroupItem({ className, ...props }: RetroRadioGroupItemProps) {\n  return (\n    <RadioPrimitive\n      className={cn(\n        \"group peer relative inline-flex size-[13px] shrink-0 items-center justify-center rounded-full p-0\",\n        \"border border-os9-black\",\n        \"bg-[linear-gradient(135deg,#f1f1f1_0%,#9a9a9a_100%)]\",\n        \"shadow-[inset_1px_1px_0_rgba(255,255,255,0.5),inset_-1px_-1px_0_rgba(38,38,38,0.25)]\",\n        \"focus-visible:os9-focus-ring focus-visible:rounded-full\",\n        \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n        \"cursor-pointer\",\n        className\n      )}\n      {...props}\n    >\n      <RadioIndicatorPrimitive className=\"flex items-center justify-center\">\n        <span className=\"block size-[5px] rounded-full bg-os9-black\" />\n      </RadioIndicatorPrimitive>\n    </RadioPrimitive>\n  )\n}\n\nexport { RetroRadioGroup, RetroRadioGroupItem }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}