{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-invoice-invoice-1",
  "type": "registry:block",
  "title": "Invoice",
  "description": "Billing card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "billing"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/invoice-invoice-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/invoice-invoice-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/billing.tsx:166.\nimport { invoices } from \"./runtime/data/workspace/studio\";\nimport { Pill } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const selected = new URLSearchParams(location.hash.split(\"?\")[1]).get(\n    \"invoice\",\n  );\n  const inv = invoices.find((i) => i.id === selected) ?? invoices[0];\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"invoice\">\n        <div className=\"scene-invoice\">\n          <header>\n            <div className=\"scene-wordmark\">\n              overtrue/ui<span>Acme Studio</span>\n            </div>\n            <div>\n              <h2>Invoice</h2>\n              <Pill>{inv.status}</Pill>\n            </div>\n          </header>\n          <div className=\"scene-invoice-addresses\">\n            <div>\n              <small>FROM</small>\n              <strong>Acme Studio</strong>\n              <p>\n                24 Workshop Lane\n                <br />\n                London, UK\n                <br />\n                billing@acme.example\n              </p>\n            </div>\n            <div>\n              <small>BILL TO</small>\n              <strong>{inv.client}</strong>\n              <p>\n                Client project office\n                <br />\n                accounts@client.example\n              </p>\n            </div>\n            <dl>\n              <dt>Invoice number</dt>\n              <dd>{inv.id}</dd>\n              <dt>Issued</dt>\n              <dd>{inv.issued}</dd>\n              <dt>Payment due</dt>\n              <dd>{inv.due}</dd>\n            </dl>\n          </div>\n          <table className=\"scene-table\">\n            <thead>\n              <tr>\n                <th>Description</th>\n                <th className=\"scene-number\">Qty</th>\n                <th className=\"scene-number\">Amount</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td>\n                  <strong>{inv.description}</strong>\n                  <small>\n                    Discovery & initial direction · 35% project deposit\n                  </small>\n                </td>\n                <td className=\"scene-number\">1</td>\n                <td className=\"scene-number\">\n                  ${inv.amount.toLocaleString()}.00\n                </td>\n              </tr>\n            </tbody>\n          </table>\n          <div className=\"scene-invoice-total\">\n            <p>\n              <span>Subtotal</span>\n              <b>${inv.amount.toLocaleString()}.00</b>\n            </p>\n            <p>\n              <span>Tax (0%)</span>\n              <b>$0.00</b>\n            </p>\n            <p>\n              <span>\n                {inv.status === \"Paid\"\n                  ? \"Total paid\"\n                  : inv.status === \"Draft\"\n                    ? \"Estimated total\"\n                    : \"Total due\"}\n              </span>\n              <strong>${inv.amount.toLocaleString()}.00 USD</strong>\n            </p>\n          </div>\n          <footer>\n            <strong>Thank you for building with us.</strong>\n            <p>\n              Please include the invoice number with your payment. This is\n              sample data; no payment is requested.\n            </p>\n          </footer>\n        </div>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/invoice-invoice-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
