{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "noise-gate-ledger-demo",
  "type": "registry:block",
  "title": "Noise Gate: Month-End Close",
  "description": "Before and After Section example, Month-End Close: The log display. Missing receipts, a duplicate AWS charge and a spreadsheet four people are editing go through the gate and come out as reconciled lines with their amounts, newest on top. A take on the before and after (before after). Fits features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "before-and-after",
    "section",
    "comparison",
    "counter",
    "marketing"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/noise-gate#noise-gate-ledger-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/noise-gate.json"
  ],
  "files": [
    {
      "path": "components/noise-gate-ledger-demo.tsx",
      "type": "registry:component",
      "content": "import { NoiseGate, type NoiseGateItem } from \"@/components/ui/noise-gate\";\n\nfunction Icon({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nconst receipt = \"M4 2h8v12l-2-1.25L8 14l-2-1.25L4 14V2ZM6 5.5h4M6 8.5h4\";\nconst copy = \"M5.5 5.5V3a1 1 0 0 1 1-1H13a1 1 0 0 1 1 1v6.5a1 1 0 0 1-1 1h-2.5M3 5.5h6.5a1 1 0 0 1 1 1V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6.5a1 1 0 0 1 1-1Z\";\nconst file = \"M9 2H4.5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V5.5L9 2ZM9 2v3.5h3.5\";\nconst bank = \"M2 6h12L8 2.5 2 6ZM3.5 6v5.5M6.5 6v5.5M9.5 6v5.5M12.5 6v5.5M2 13.5h12\";\n\nconst close: NoiseGateItem[] = [\n  {\n    tag: \"Missing\",\n    tone: \"critical\",\n    icon: <Icon d={receipt} />,\n    title: \"No receipt for Uber\",\n    detail: \"$23.40 · Oct 3\",\n    resolved: \"Uber receipt matched\",\n    resolvedDetail: \"$23.40\",\n  },\n  {\n    tag: \"Duplicate?\",\n    tone: \"warning\",\n    icon: <Icon d={copy} />,\n    title: \"AWS charged twice\",\n    detail: \"$1,204.88 · Oct 1\",\n    resolved: \"AWS duplicate refunded\",\n    resolvedDetail: \"$1,204.88\",\n  },\n  {\n    tag: \"Overdue\",\n    tone: \"critical\",\n    repeat: 3,\n    title: \"Invoice #2291 unpaid\",\n    detail: \"Northwind · 14 days late\",\n    resolved: \"Invoice #2291 collected\",\n    resolvedDetail: \"$8,400.00\",\n  },\n  {\n    mono: true,\n    icon: <Icon d={file} />,\n    title: \"Q3_recon_v7_FINAL(2).xlsx\",\n    detail: \"Edited by 4 people today\",\n    resolved: \"Q3 reconciled\",\n    resolvedDetail: \"1,284 lines\",\n  },\n  {\n    icon: <span className=\"grid size-5 place-items-center rounded-full bg-teal-600 text-[9px] font-semibold text-white\">AL</span>,\n    title: \"“Why is cash off by $0.03?”\",\n    detail: \"Ana L. · #finance\",\n    resolved: \"Rounding difference booked\",\n    resolvedDetail: \"$0.03\",\n  },\n  {\n    tag: \"Unmatched\",\n    tone: \"warning\",\n    icon: <Icon d={bank} />,\n    title: \"312 bank lines uncategorized\",\n    detail: \"Operating account ••4410\",\n    resolved: \"Bank feed categorized\",\n    resolvedDetail: \"312 lines\",\n  },\n  {\n    tag: \"Accrual\",\n    tone: \"critical\",\n    title: \"Payroll accrual not booked\",\n    detail: \"Due before close\",\n    resolved: \"Payroll accrued\",\n    resolvedDetail: \"$64,210.00\",\n  },\n  {\n    title: \"Which FX rate did we use?\",\n    detail: \"EUR invoices · 9 open\",\n    resolved: \"FX revalued\",\n    resolvedDetail: \"9 invoices\",\n  },\n];\n\nexport function NoiseGateLedgerDemo() {\n  return (\n    <NoiseGate\n      className=\"max-w-5xl\"\n      display=\"log\"\n      items={close}\n      noiseTitle={\n        <>\n          Closing the books with <span className=\"text-zinc-500 dark:text-zinc-400\">“one more spreadsheet”</span>\n        </>\n      }\n      calmTitle=\"Closing with Ledgerline\"\n      calmClassName=\"bg-[#0b6b4f] text-white\"\n      calmFooter={<p className=\"text-sm text-white/85\">October closed on the 2nd.</p>}\n    />\n  );\n}\n"
    }
  ]
}