{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lists-10",
  "type": "registry:block",
  "description": "Order history accordion list that expands into line items and shipping actions.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/lists/lists-10.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronDown,\n  Package,\n  RotateCcw,\n  Truck,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst orders = [\n  {\n    id: \"DSG-20841\",\n    date: \"Nov 12, 2026\",\n    status: \"Processing\",\n    total: 248,\n    eta: \"Download link sent to your email\",\n    items: [\n      { name: \"Designali Pro\", variant: \"Personal · 1 year\", qty: 1, price: 128 },\n      { name: \"Dashboard UI kit\", variant: \"Figma + React\", qty: 2, price: 36 },\n      { name: \"Icon pack add-on\", variant: \"@designali/icons\", qty: 1, price: 48 },\n    ],\n  },\n  {\n    id: \"DSG-20517\",\n    date: \"Oct 28, 2026\",\n    status: \"Delivered\",\n    total: 186,\n    eta: \"Delivered to your inbox Oct 28\",\n    items: [\n      { name: \"Portfolio template\", variant: \"Next.js · Commercial\", qty: 1, price: 186 },\n    ],\n  },\n  {\n    id: \"DSG-19902\",\n    date: \"Sep 14, 2026\",\n    status: \"Refunded\",\n    total: 94,\n    eta: \"Refunded Sep 25\",\n    items: [\n      { name: \"Landing page pack\", variant: \"Tailwind CSS\", qty: 1, price: 38 },\n      { name: \"Illustration set\", variant: \"@designali/vectors\", qty: 1, price: 56 },\n    ],\n  },\n]\n\nconst statusStyle: Record<string, string> = {\n  Processing: \"bg-primary/10 text-chart-4 dark:bg-primary/15 dark:text-chart-1\",\n  Delivered: \"bg-primary/10 text-chart-4 dark:bg-primary/15 dark:text-chart-1\",\n  Refunded: \"bg-muted text-muted-foreground\",\n}\n\nexport default function Lists10() {\n  const [open, setOpen] = useState<string | null>(orders[0]!.id)\n\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <h2 className=\"text-3xl font-semibold tracking-tight\">Designali orders</h2>\n        <p className=\"mt-2 text-sm text-muted-foreground\">Download, renew or reorder your Designali templates from the last 12 months.</p>\n\n        <ul className=\"mt-10 space-y-3\">\n          {orders.map((order) => {\n            const isOpen = open === order.id\n            return (\n              <li key={order.id} className=\"border border-border\">\n                <button\n                  type=\"button\"\n                  aria-expanded={isOpen}\n                  onClick={() => setOpen(isOpen ? null : order.id)}\n                  className=\"grid w-full grid-cols-[1fr_auto] items-center gap-4 p-5 text-left hover:bg-muted/40 sm:grid-cols-[1fr_auto_auto_auto]\"\n                >\n                  <span>\n                    <span className=\"block font-sans text-sm\">{order.id}</span>\n                    <span className=\"text-xs text-muted-foreground\">\n                      {order.date} · {order.items.length} {order.items.length === 1 ? \"item\" : \"items\"}\n                    </span>\n                  </span>\n                  <span className={cn(\"hidden px-2 py-1 text-[11px] font-medium sm:inline-block\", statusStyle[order.status])}>\n                    {order.status}\n                  </span>\n                  <span className=\"hidden font-sans text-sm sm:block\">${order.total}.00</span>\n                  <ChevronDown className={cn(\"size-4 text-muted-foreground transition-transform\", isOpen && \"rotate-180\")} />\n                </button>\n\n                {isOpen && (\n                  <div className=\"border-t border-border bg-muted/20 p-5\">\n                    <div className=\"mb-4 flex items-center justify-between gap-3 sm:hidden\">\n                      <span className={cn(\"px-2 py-1 text-[11px] font-medium\", statusStyle[order.status])}>{order.status}</span>\n                      <span className=\"font-sans text-sm\">${order.total}.00</span>\n                    </div>\n                    <ul className=\"divide-y divide-border\">\n                      {order.items.map((item) => (\n                        <li key={item.name} className=\"flex items-center gap-4 py-3\">\n                          <span className=\"flex size-12 shrink-0 items-center justify-center bg-gradient-to-br from-muted to-muted-foreground dark:from-muted dark:to-muted-foreground\">\n                            <Package className=\"size-4 text-foreground dark:text-foreground\" />\n                          </span>\n                          <span className=\"min-w-0 flex-1\">\n                            <span className=\"block truncate text-sm font-medium\">{item.name}</span>\n                            <span className=\"text-xs text-muted-foreground\">\n                              {item.variant} · Qty {item.qty}\n                            </span>\n                          </span>\n                          <span className=\"font-sans text-sm\">${item.price * item.qty}</span>\n                        </li>\n                      ))}\n                    </ul>\n                    <div className=\"mt-4 flex flex-col gap-3 border-t border-border pt-4 sm:flex-row sm:items-center sm:justify-between\">\n                      <span className=\"inline-flex items-center gap-2 text-xs text-muted-foreground\">\n                        <Truck className=\"size-3.5\" /> {order.eta}\n                      </span>\n                      <div className=\"flex gap-2\">\n                        <a href=\"#\" className=\"inline-flex h-8 items-center border border-border bg-background px-3 text-xs hover:bg-muted\">\n                          Download files\n                        </a>\n                        <a href=\"#\" className=\"inline-flex h-8 items-center gap-1.5 border border-border bg-background px-3 text-xs hover:bg-muted\">\n                          <RotateCcw className=\"size-3\" /> Reorder\n                        </a>\n                      </div>\n                    </div>\n                  </div>\n                )}\n              </li>\n            )\n          })}\n        </ul>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "800px"
  },
  "categories": [
    "lists"
  ]
}