{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "retro-input-otp",
  "title": "RetroInputOTP",
  "description": "A Mac OS 9 styled one-time password input with individual inset bevel character slots, blinking caret, focus ring, and group separators, built on UI SDK OTP Input.",
  "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-input-otp.tsx",
      "content": "\"use client\"\n\n/*\n * RetroInputOTP: a one-time code in OS 9 inset digit boxes.\n *\n * Crafted moment: none beyond OS 9's own blinking insertion point, drawn\n * in the active empty slot (a hard step blink, not a fade). Reduced motion\n * keeps the caret solid.\n *\n * Built on UI SDK's OTP Input: one real input under the slots handles\n * typing, paste, autofill (autocomplete=\"one-time-code\"), undo and forms.\n */\n\nimport * as React from \"react\"\nimport {\n  OTPInput as OTPInputPrimitive,\n  OTPInputGroup as OTPInputGroupPrimitive,\n  OTPInputSeparator as OTPInputSeparatorPrimitive,\n  OTPInputSlot as OTPInputSlotPrimitive,\n} from \"@ui-sdk/react/otp-input\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype RetroInputOTPProps = Omit<\n  React.ComponentProps<typeof OTPInputPrimitive>,\n  \"className\" | \"children\"\n> & {\n  className?: string\n  /** @deprecated kept for input-otp compatibility; merged into className */\n  containerClassName?: string\n  children?: React.ReactNode\n}\n\nfunction RetroInputOTP({ className, containerClassName, ...props }: RetroInputOTPProps) {\n  return (\n    <OTPInputPrimitive\n      className={cn(\n        \"relative flex items-center gap-2 data-disabled:opacity-50 data-disabled:cursor-not-allowed\",\n        containerClassName,\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/* -------------------------------------------------------------------------- */\n\ntype RetroInputOTPGroupProps = Omit<\n  React.ComponentProps<typeof OTPInputGroupPrimitive>,\n  \"className\" | \"children\"\n> & {\n  className?: string\n  children?: React.ReactNode\n}\n\nfunction RetroInputOTPGroup({ className, ...props }: RetroInputOTPGroupProps) {\n  return <OTPInputGroupPrimitive className={cn(\"flex items-center gap-1\", className)} {...props} />\n}\n\n/* -------------------------------------------------------------------------- */\n\ntype RetroInputOTPSlotProps = Omit<\n  React.ComponentProps<typeof OTPInputSlotPrimitive>,\n  \"className\" | \"children\"\n> & {\n  className?: string\n}\n\nfunction RetroInputOTPSlot({ className, ...props }: RetroInputOTPSlotProps) {\n  return (\n    <OTPInputSlotPrimitive\n      className={cn(\n        \"group/slot relative flex h-[40px] w-[32px] items-center justify-center\",\n        \"border border-os9-black bg-os9-white text-os9-black\",\n        \"shadow-[inset_1px_1px_0_var(--os9-gray-700),inset_-1px_-1px_0_var(--os9-white)]\",\n        \"font-[family-name:var(--os9-font-sans)] text-[14px]\",\n        \"transition-none\",\n        \"data-active:shadow-[0_0_0_2px_var(--os9-focus)]\",\n        className\n      )}\n      {...props}\n    >\n      {(state) => (\n        <>\n          {state.char}\n          {state.hasFakeCaret && (\n            <span className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n              <span className=\"h-[20px] w-px animate-[os9-caret-blink_1s_step-end_infinite] bg-os9-black motion-reduce:animate-none\" />\n            </span>\n          )}\n        </>\n      )}\n    </OTPInputSlotPrimitive>\n  )\n}\n\n/* -------------------------------------------------------------------------- */\n\ntype RetroInputOTPSeparatorProps = Omit<\n  React.ComponentProps<typeof OTPInputSeparatorPrimitive>,\n  \"className\" | \"children\"\n> & {\n  className?: string\n}\n\nfunction RetroInputOTPSeparator({ className, ...props }: RetroInputOTPSeparatorProps) {\n  return (\n    <OTPInputSeparatorPrimitive\n      className={cn(\n        \"text-os9-gray-700 font-[family-name:var(--os9-font-sans)] text-[14px] select-none\",\n        className\n      )}\n      {...props}\n    >\n      &ndash;\n    </OTPInputSeparatorPrimitive>\n  )\n}\n\n/* -------------------------------------------------------------------------- */\n\nexport { RetroInputOTP, RetroInputOTPGroup, RetroInputOTPSlot, RetroInputOTPSeparator }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}