{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "invoice",
  "title": "Invoice",
  "description": "A printable invoice card — sender and recipient details, a ToneBadge payment status, a line-item table with totals, and a download action.",
  "registryDependencies": [
    "card",
    "table",
    "https://www.quilldesignsystem.com/r/tone-badge.json",
    "button",
    "separator",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/invoice.tsx",
      "content": "import { Card, CardHeader, CardContent, CardFooter } from '@/components/ui/card'\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableFooter,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from '@/components/ui/table'\nimport { ToneBadge } from '@/components/ui/tone-badge'\nimport { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\nimport { Separator } from '@/components/ui/separator'\n\nconst lines = [\n  { item: 'Design system retainer — June', qty: 1, rate: '$3,200.00', amount: '$3,200.00' },\n  { item: 'Brand lock-up refinements', qty: 6, rate: '$140.00', amount: '$840.00' },\n  { item: 'Storybook pattern library', qty: 12, rate: '$95.00', amount: '$1,140.00' },\n]\n\n/** A printable invoice card — sender and recipient details, a ToneBadge payment status, a line-item table with totals, and a download action. */\nexport function Invoice() {\n  return (\n    <Card className=\"mx-auto w-full max-w-measure\">\n      <CardHeader className=\"gap-3\">\n        <div className=\"flex items-start justify-between gap-4\">\n          <div className=\"flex flex-col gap-1\">\n            <span className=\"font-heading text-lg text-foreground\">Invoice 0042</span>\n            <span className=\"text-sm text-muted-foreground\">Issued June 30, 2026 · Due July 14, 2026</span>\n          </div>\n          <ToneBadge tone=\"moss\">Paid</ToneBadge>\n        </div>\n        <Separator />\n        <div className=\"grid grid-cols-2 gap-4 text-sm\">\n          <div className=\"flex flex-col gap-0.5\">\n            <span className=\"text-xs tracking-label uppercase text-muted-foreground\">From</span>\n            <span className=\"font-medium text-foreground\">Craftwell</span>\n            <span className=\"text-muted-foreground\">hello@craftwell.ai</span>\n          </div>\n          <div className=\"flex flex-col gap-0.5\">\n            <span className=\"text-xs tracking-label uppercase text-muted-foreground\">Billed to</span>\n            <span className=\"font-medium text-foreground\">Northwind Ltd.</span>\n            <span className=\"text-muted-foreground\">accounts@northwind.com</span>\n          </div>\n        </div>\n      </CardHeader>\n      <CardContent>\n        <Table>\n          <TableHeader>\n            <TableRow>\n              <TableHead>Description</TableHead>\n              <TableHead className=\"text-right\">Qty</TableHead>\n              <TableHead className=\"text-right\">Rate</TableHead>\n              <TableHead className=\"text-right\">Amount</TableHead>\n            </TableRow>\n          </TableHeader>\n          <TableBody>\n            {lines.map((l) => (\n              <TableRow key={l.item}>\n                <TableCell className=\"font-medium text-foreground\">{l.item}</TableCell>\n                <TableCell className=\"text-right text-muted-foreground\">{l.qty}</TableCell>\n                <TableCell className=\"text-right text-muted-foreground\">{l.rate}</TableCell>\n                <TableCell className=\"text-right text-foreground\">{l.amount}</TableCell>\n              </TableRow>\n            ))}\n          </TableBody>\n          <TableFooter>\n            <TableRow>\n              <TableCell colSpan={3}>Total</TableCell>\n              <TableCell className=\"text-right\">$5,180.00</TableCell>\n            </TableRow>\n          </TableFooter>\n        </Table>\n      </CardContent>\n      <CardFooter className=\"justify-between\">\n        <span className=\"text-xs text-muted-foreground\">Thank you — see you next issue.</span>\n        <Button variant=\"outline\" size=\"sm\">\n          <Icon name=\"download\" /> Download PDF\n        </Button>\n      </CardFooter>\n    </Card>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/invoice.tsx"
    }
  ],
  "meta": {
    "intent": [
      "commerce",
      "data-display"
    ],
    "use_when": "You need a printable invoice with parties, line-item totals, and a download action.",
    "not_for": "you're showing a cart before payment, not a record of a completed transaction → order-summary; you need a list of many invoices to browse, not the full detail of one → data-table"
  },
  "docs": "A printable invoice card — sender and recipient details, a ToneBadge payment status, a line-item table with totals, and a download action. Do: Keep the total in a table footer, visually distinct from line items (its own row, right-aligned). Don't: Let the total blend in as just another line item — it needs to read as the sum, not another charge. Use order-summary when you're showing a cart before payment, not a record of a completed transaction. Use data-table when you need a list of many invoices to browse, not the full detail of one.",
  "categories": [
    "commerce",
    "data-display"
  ],
  "type": "registry:block"
}