{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ecommerce-10",
  "type": "registry:block",
  "description": "Order tracking page with a horizontal progress bar, vertical event timeline, parcel contents and address.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/ecommerce/ecommerce-10.tsx",
      "content": "import {\n  Check,\n  Eye,\n  FileCode,\n  PackageCheck,\n  Palette,\n  Rocket,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst events = [\n  { icon: Check, title: \"Brief confirmed\", detail: \"Kickoff call with Ali Imam\", time: \"Mon 10 Nov, 09:14\", done: true },\n  { icon: Palette, title: \"Designed\", detail: \"Brand identity and UI in Figma\", time: \"Mon 10 Nov, 16:40\", done: true },\n  { icon: FileCode, title: \"In development\", detail: \"Next.js build on Vercel preview\", time: \"Tue 11 Nov, 05:22\", done: true },\n  { icon: Eye, title: \"In review\", detail: \"Final feedback round, 6 items left\", time: \"Today, 08:03\", done: true, current: true },\n  { icon: Rocket, title: \"Launched\", detail: \"Expected 12:00 - 14:00\", time: \"Today\", done: false },\n]\n\nconst items = [\n  { name: \"Brand identity kit\", qty: 1, image: \"/images/templates/dalim-agency-old.jpg\" },\n  { name: \"Next.js website\", qty: 1, image: \"/images/templates/vercel.jpg\" },\n  { name: \"Social media templates\", qty: 2, image: \"/images/templates/dalim-works-old.jpg\" },\n]\n\nexport default function Ecommerce10() {\n  const doneCount = events.filter((e) => e.done).length\n  const progress = ((doneCount - 1) / (events.length - 1)) * 100\n\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-5xl px-6\">\n        <div className=\"flex flex-col justify-between gap-4 sm:flex-row sm:items-end\">\n          <div>\n            <p className=\"font-sans text-xs text-muted-foreground\">Project #DA-58214</p>\n            <h2 className=\"mt-2 text-3xl font-medium tracking-tight md:text-4xl\">Launching today</h2>\n            <p className=\"mt-1 text-sm text-muted-foreground\">Between 12:00 and 14:00 · 3 items</p>\n          </div>\n          <div className=\"flex gap-2\">\n            <Button variant=\"outline\">Change launch time</Button>\n            <Button>Open preview</Button>\n          </div>\n        </div>\n\n        {/* Horizontal progress (desktop) */}\n        <div className=\"mt-10 hidden md:block\">\n          <div className=\"relative h-1 bg-muted\">\n            <div className=\"absolute inset-y-0 left-0 bg-foreground\" style={{ width: `${progress}%` }} />\n          </div>\n          <ol className=\"mt-4 grid grid-cols-5 gap-4\">\n            {events.map((e) => (\n              <li key={e.title} className={cn(!e.done && \"text-muted-foreground\")}>\n                <p className=\"text-sm font-medium\">{e.title}</p>\n                <p className=\"mt-1 text-xs text-muted-foreground\">{e.time}</p>\n              </li>\n            ))}\n          </ol>\n        </div>\n\n        <div className=\"mt-10 grid gap-8 md:grid-cols-[1.4fr_1fr]\">\n          <ol className=\"border border-border p-6\">\n            {events\n              .slice()\n              .reverse()\n              .map((e, i, arr) => (\n                <li key={e.title} className=\"relative flex gap-4 pb-6 last:pb-0\">\n                  {i < arr.length - 1 && (\n                    <span className=\"absolute top-8 bottom-0 left-4 w-px bg-border\" />\n                  )}\n                  <span\n                    className={cn(\n                      \"relative flex size-8 shrink-0 items-center justify-center border\",\n                      e.current\n                        ? \"border-foreground bg-foreground text-background\"\n                        : e.done\n                          ? \"border-border bg-background\"\n                          : \"border-dashed border-border bg-background text-muted-foreground\"\n                    )}\n                  >\n                    <e.icon className=\"size-4\" />\n                  </span>\n                  <div className=\"pt-1\">\n                    <p className={cn(\"text-sm font-medium\", !e.done && \"text-muted-foreground\")}>{e.title}</p>\n                    <p className=\"text-xs text-muted-foreground\">\n                      {e.detail} · {e.time}\n                    </p>\n                  </div>\n                </li>\n              ))}\n          </ol>\n\n          <div className=\"space-y-4\">\n            <div className=\"border border-border p-6\">\n              <p className=\"flex items-center gap-2 text-sm font-medium\">\n                <PackageCheck className=\"size-4\" />\n                In this project\n              </p>\n              <ul className=\"mt-4 space-y-3\">\n                {items.map((item) => (\n                  <li key={item.name} className=\"flex items-center gap-3 text-sm\">\n                    <img src={item.image} alt={item.name} className=\"size-10 shrink-0 object-cover object-top border border-border\" />\n                    <span className=\"flex-1\">{item.name}</span>\n                    <span className=\"text-muted-foreground\">x{item.qty}</span>\n                  </li>\n                ))}\n              </ul>\n            </div>\n            <div className=\"bg-muted p-6 text-sm\">\n              <p className=\"font-medium\">Client</p>\n              <p className=\"mt-2 text-muted-foreground\">\n                Designali client\n                <br />\n                client@example.com\n                <br />\n                Hosted on Vercel\n              </p>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "850px"
  },
  "categories": [
    "ecommerce"
  ]
}