{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "date-strip",
  "title": "Date strip",
  "description": "Pick a day; only the chosen day floats as a card.",
  "files": [
    {
      "path": "registry/dgit/ui/date-strip.tsx",
      "content": "import { useRef, type KeyboardEvent } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n/** Date strip: only the chosen day floats as a big rounded square (card shadow, large number). Click or use left/right arrows. */\nexport function DateStrip({ days, value, onChange, label = \"Date\" }: { days: { key: string; dow: string; n: number }[]; value: string; onChange: (k: string) => void; label?: string }) {\n  const refs = useRef<Record<string, HTMLButtonElement | null>>({});\n  const onKey = (e: KeyboardEvent) => {\n    const i = days.findIndex((d) => d.key === value);\n    const n = e.key === \"ArrowRight\" ? i + 1 : e.key === \"ArrowLeft\" ? i - 1 : i;\n    if (n !== i && days[n]) { e.preventDefault(); onChange(days[n].key); refs.current[days[n].key]?.focus(); }\n  };\n  return (\n    <div role=\"radiogroup\" aria-label={label} onKeyDown={onKey} className=\"flex gap-1 overflow-x-auto py-6\">\n      {days.map((d) => {\n        const on = d.key === value;\n        return (\n          <button key={d.key} ref={(el) => { refs.current[d.key] = el; }} type=\"button\" role=\"radio\" aria-checked={on} tabIndex={on ? 0 : -1} onClick={() => onChange(d.key)}\n            className={cn(\"active:scale-[0.97] flex h-24 w-20 shrink-0 flex-col items-center justify-center rounded-[28px] transition-[background-color,box-shadow,color] duration-300\", on ? \"shadow-card bg-background-100 text-foreground\" : \"text-muted-foreground hover:text-foreground\")}>\n            <span className=\"text-heading-16 text-muted-foreground\">{d.dow}</span>\n            <span className=\"text-[34px] font-semibold leading-10 tracking-tight text-foreground\">{d.n}</span>\n          </button>\n        );\n      })}\n    </div>\n  );\n}\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}