{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "navigation-12",
  "type": "registry:block",
  "description": "Checkout header with a numbered step progress bar, completed checkmarks and back/continue controls.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/navigation/navigation-12.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowLeft,\n  ArrowRight,\n  Check,\n  Lock,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst steps = [\n  { title: \"Cart\", detail: \"3 templates\" },\n  { title: \"License\", detail: \"Personal or commercial\" },\n  { title: \"Payment\", detail: \"Card or wallet\" },\n  { title: \"Review\", detail: \"Confirm order\" },\n]\n\nexport default function Navigation12() {\n  const [current, setCurrent] = useState(1)\n\n  return (\n    <section className=\"w-full bg-background\">\n      <header className=\"border-b\">\n        <div className=\"mx-auto flex h-16 max-w-7xl items-center justify-between px-6\">\n          <a href=\"#\" className=\"font-semibold tracking-tight\">\n            designali\n          </a>\n          <span className=\"flex items-center gap-2 text-xs text-muted-foreground\">\n            <Lock className=\"size-3.5\" />\n            Secure checkout\n          </span>\n        </div>\n      </header>\n\n      <div className=\"mx-auto max-w-7xl px-6 py-10\">\n        <nav aria-label=\"Checkout progress\">\n          <ol className=\"grid grid-cols-4 border\">\n            {steps.map((step, index) => {\n              const done = index < current\n              const active = index === current\n              return (\n                <li key={step.title} className=\"border-e last:border-e-0\">\n                  <button\n                    type=\"button\"\n                    disabled={index > current}\n                    onClick={() => setCurrent(index)}\n                    aria-current={active ? \"step\" : undefined}\n                    className={cn(\n                      \"relative flex h-full w-full flex-col items-center gap-2 p-3 text-center transition-colors md:flex-row md:p-4 md:text-start\",\n                      active && \"bg-muted/60\",\n                      index > current && \"cursor-not-allowed opacity-50\",\n                      done && \"hover:bg-muted/40\"\n                    )}\n                  >\n                    <span\n                      className={cn(\n                        \"flex size-7 shrink-0 items-center justify-center border text-xs font-medium tabular-nums\",\n                        done && \"border-foreground bg-foreground text-background\",\n                        active && \"border-foreground\"\n                      )}\n                    >\n                      {done ? <Check className=\"size-3.5\" /> : index + 1}\n                    </span>\n                    <span className=\"min-w-0\">\n                      <span className=\"block text-xs font-medium md:text-sm\">{step.title}</span>\n                      <span className=\"hidden truncate text-xs text-muted-foreground md:block\">\n                        {step.detail}\n                      </span>\n                    </span>\n                    {active && (\n                      <span className=\"absolute inset-x-0 bottom-0 h-0.5 bg-foreground\" />\n                    )}\n                  </button>\n                </li>\n              )\n            })}\n          </ol>\n        </nav>\n\n        <div className=\"mt-8 grid gap-8 md:grid-cols-[1fr_320px]\">\n          <div className=\"border p-6\">\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n              Step {current + 1} of {steps.length}\n            </p>\n            <h2 className=\"mt-2 text-2xl font-semibold tracking-tight\">{steps[current]!.title}</h2>\n            <div className=\"mt-6 space-y-3\">\n              <div className=\"h-10 border bg-muted/30\" />\n              <div className=\"grid grid-cols-2 gap-3\">\n                <div className=\"h-10 border bg-muted/30\" />\n                <div className=\"h-10 border bg-muted/30\" />\n              </div>\n              <div className=\"h-10 border bg-muted/30\" />\n            </div>\n            <div className=\"mt-8 flex items-center justify-between\">\n              <Button\n                variant=\"ghost\"\n                disabled={current === 0}\n                onClick={() => setCurrent((value) => Math.max(0, value - 1))}\n              >\n                <ArrowLeft />\n                Back\n              </Button>\n              <Button\n                onClick={() => setCurrent((value) => Math.min(steps.length - 1, value + 1))}\n              >\n                {current === steps.length - 1 ? \"Place order\" : `Continue to ${steps[current + 1]!.title}`}\n                <ArrowRight />\n              </Button>\n            </div>\n          </div>\n          <aside className=\"h-fit border bg-muted/30 p-6 text-sm\">\n            <p className=\"font-medium\">Order summary</p>\n            <dl className=\"mt-4 space-y-2 text-muted-foreground\">\n              <div className=\"flex justify-between\"><dt>Subtotal</dt><dd className=\"tabular-nums\">$184.00</dd></div>\n              <div className=\"flex justify-between\"><dt>Tax</dt><dd className=\"tabular-nums\">$9.00</dd></div>\n              <div className=\"flex justify-between border-t pt-2 font-medium text-foreground\"><dt>Total</dt><dd className=\"tabular-nums\">$193.00</dd></div>\n            </dl>\n          </aside>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "500px"
  },
  "categories": [
    "navigation"
  ]
}