{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "order-01",
  "title": "Order Confirmation",
  "author": "VenusUI",
  "description": "An order confirmation with delivery progress, the items and a printing receipt.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "https://venusui.com/r/receipt-printer.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/order-01/components/order-01.tsx",
      "content": "import { Check, MapPin, Package, Truck } from \"lucide-react\"\n\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\nimport { ReceiptPrinter } from \"@/registry/default/ui/receipt-printer\"\n\n// Photos: Unsplash (free under the Unsplash License). The shop and products are made up.\nconst photo = (id: string) => `https://images.unsplash.com/photo-${id}?w=200&h=200&fit=crop&auto=format&q=75`\n\nconst items = [\n  { name: \"Studio headphones\", detail: \"Black · Wireless\", quantity: 1, price: 189, image: photo(\"1505740420928-5e560c06d30e\"), alt: \"Black over-ear headphones on a yellow background\" },\n  { name: \"Minimal watch\", detail: \"White · 38 mm\", quantity: 1, price: 129, image: photo(\"1523275335684-37898b6baf30\"), alt: \"A white minimalist wristwatch\" },\n]\n\nconst steps = [\n  { label: \"Ordered\", date: \"Mon 16 Nov\", done: true, icon: Check },\n  { label: \"Packed\", date: \"Mon 16 Nov\", done: true, icon: Package },\n  { label: \"Shipped\", date: \"Today\", done: false, current: true, icon: Truck },\n  { label: \"Delivered\", date: \"Thu 19 Nov\", done: false, icon: MapPin },\n]\n\n/** An order confirmation: delivery progress, the items, and the printed receipt. */\nexport function Order01() {\n  return (\n    <section aria-labelledby=\"order-01-title\" className=\"py-24 sm:py-28\">\n      <div className=\"mx-auto grid max-w-5xl items-start gap-14 px-4 sm:px-6 lg:grid-cols-[minmax(0,1.3fr)_minmax(0,1fr)]\">\n        <div>\n          <p className=\"inline-flex items-center gap-2 rounded-full bg-emerald-500/10 px-3 py-1 text-sm font-medium text-emerald-700 dark:text-emerald-400\">\n            <Check aria-hidden=\"true\" className=\"size-4\" /> Order #A-20419 confirmed\n          </p>\n          <h2 id=\"order-01-title\" className=\"mt-4 text-3xl font-semibold tracking-tight sm:text-4xl\">\n            Thanks, Priya! It’s on its way.\n          </h2>\n          <p className=\"mt-2 text-muted-foreground\">\n            Arriving <strong className=\"font-medium text-foreground\">Thursday 19 November</strong>. We’ll email you when it’s out for delivery.\n          </p>\n\n          <ol className=\"mt-10 grid grid-cols-4\">\n            {steps.map((step, index) => {\n              const Icon = step.icon\n              return (\n                <li key={step.label} className=\"relative flex flex-col items-center text-center\" aria-current={step.current ? \"step\" : undefined}>\n                  {index > 0 ? (\n                    <span aria-hidden=\"true\" className={cn(\"absolute top-4 right-1/2 h-0.5 w-full -translate-y-1/2\", step.done || step.current ? \"bg-emerald-500\" : \"bg-border\")} />\n                  ) : null}\n                  <span\n                    className={cn(\n                      \"relative grid size-8 place-items-center rounded-full border-2\",\n                      step.done ? \"border-emerald-500 bg-emerald-500 text-white\" : step.current ? \"border-emerald-500 bg-background text-emerald-600\" : \"border-border bg-background text-muted-foreground\"\n                    )}\n                  >\n                    <Icon aria-hidden=\"true\" className=\"size-4\" />\n                    {step.current ? <span aria-hidden=\"true\" className=\"absolute inset-0 animate-ping rounded-full border-2 border-emerald-500 motion-reduce:hidden\" /> : null}\n                  </span>\n                  <span className=\"mt-2 text-xs font-medium sm:text-sm\">{step.label}</span>\n                  <span className=\"text-[11px] text-muted-foreground\">{step.date}</span>\n                  <span className=\"sr-only\">{step.done ? \"(done)\" : step.current ? \"(in progress)\" : \"(to come)\"}</span>\n                </li>\n              )\n            })}\n          </ol>\n\n          <ul className=\"mt-10 divide-y rounded-2xl border bg-card\">\n            {items.map((item) => (\n              <li key={item.name} className=\"flex items-center gap-4 p-4\">\n                <img src={item.image} alt={item.alt} className=\"size-16 rounded-xl object-cover\" />\n                <div className=\"min-w-0 flex-1\">\n                  <p className=\"font-medium\">{item.name}</p>\n                  <p className=\"text-sm text-muted-foreground\">\n                    {item.detail} · Qty {item.quantity}\n                  </p>\n                </div>\n                <p className=\"font-medium tabular-nums\">${item.price}</p>\n              </li>\n            ))}\n          </ul>\n\n          <p className=\"mt-6 flex items-start gap-2 text-sm text-muted-foreground\">\n            <MapPin aria-hidden=\"true\" className=\"mt-0.5 size-4 shrink-0\" />\n            Delivering to Priya Natarajan, 41 Rua das Flores, 1200-195 Lisbon\n          </p>\n          <div className=\"mt-8 flex flex-col gap-3 sm:flex-row\">\n            <Button asChild>\n              <a href=\"#\">Track your order</a>\n            </Button>\n            <Button variant=\"outline\" asChild>\n              <a href=\"#\">Continue shopping</a>\n            </Button>\n          </div>\n        </div>\n\n        <div className=\"flex justify-center lg:pt-4\">\n          <ReceiptPrinter\n            store=\"Northwind Supply\"\n            address=\"northwindsupply.com\"\n            date=\"16 Nov 2026, 09:41\"\n            orderId=\"#A-20419\"\n            taxRate={0.08}\n            paidWith=\"Visa •• 4821\"\n            items={items.map(({ name, quantity, price }) => ({ name, quantity, price }))}\n          />\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "content"
  ],
  "type": "registry:block"
}