{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-overview-revenue-outlook-3",
  "type": "registry:block",
  "title": "Revenue outlook",
  "description": "Charts & metrics card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "charts-metrics"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/overview-revenue-outlook-3.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/overview-revenue-outlook-3.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/overview.tsx:168.\nimport {\n  CartesianGrid,\n  ComposedChart,\n  Bar,\n  ResponsiveContainer,\n  Tooltip,\n  XAxis,\n  YAxis,\n} from \"recharts\";\nimport { useState } from \"react\";\nimport {\n  revenueReport,\n  type RevenueGrouping,\n} from \"./runtime/data/workspace/revenue-report\";\nimport {\n  SceneCard,\n  FilterTabs,\n  DownloadButton,\n} from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({\n  pageId = \"index\",\n}: {\n  title?: string;\n  pageId?: string;\n} = {}) {\n  const [grouping, setGrouping] = useState<RevenueGrouping>(\"Monthly\");\n  const report = revenueReport(grouping);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={pageId}>\n        <SceneCard\n          title=\"Revenue outlook\"\n          description=\"January–December 2026 · Booked & planned work\"\n          action={\n            <div className=\"scene-report-actions\">\n              <FilterTabs\n                items={[\"Monthly\", \"Quarterly\"]}\n                value={grouping}\n                onChange={(value) => setGrouping(value as RevenueGrouping)}\n              />\n              <DownloadButton\n                name={`studio-revenue-2026-${grouping.toLowerCase()}`}\n                rows={report.rows}\n              />\n            </div>\n          }\n        >\n          <div className=\"scene-chart-summary\">\n            <strong>${report.total.toLocaleString(\"en-US\")}</strong>\n            <span>booked & planned for 2026</span>\n          </div>\n          <div\n            className=\"showcase-revenue-chart\"\n            role=\"img\"\n            aria-label={`${grouping} booked and planned revenue for 2026: ${report.series.map((point) => `${point.label} $${point.value}`).join(\", \")}`}\n          >\n            <ResponsiveContainer width=\"100%\" height=\"100%\">\n              <ComposedChart\n                data={report.series}\n                margin={{ top: 15, right: 6, bottom: 0, left: -15 }}\n              >\n                <CartesianGrid\n                  vertical={false}\n                  stroke=\"var(--scene-line)\"\n                  strokeDasharray=\"3 3\"\n                />\n                <XAxis\n                  dataKey=\"label\"\n                  axisLine={false}\n                  tickLine={false}\n                  tick={{ fontSize: 11, fill: \"var(--scene-muted)\" }}\n                />\n                <YAxis\n                  axisLine={false}\n                  tickLine={false}\n                  tickFormatter={(value) => `$${value / 1000}k`}\n                  tick={{ fontSize: 11, fill: \"var(--scene-muted)\" }}\n                />\n                <Tooltip\n                  contentStyle={{\n                    background: \"var(--scene-surface)\",\n                    border: \"1px solid var(--scene-line)\",\n                    borderRadius: 8,\n                    color: \"var(--scene-ink)\",\n                    fontSize: 12,\n                  }}\n                  formatter={(value: number) => `$${value.toLocaleString()}`}\n                />\n                <Bar\n                  dataKey=\"value\"\n                  name=\"Booked & planned\"\n                  fill=\"var(--scene-accent)\"\n                  radius={[4, 4, 0, 0]}\n                  maxBarSize={28}\n                  isAnimationActive={false}\n                />\n              </ComposedChart>\n            </ResponsiveContainer>\n          </div>\n          <div className=\"showcase-chart-legend\">\n            <span>\n              <i />\n              Booked and planned revenue\n            </span>\n            <small>USD · September–December includes planned work</small>\n          </div>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/overview-revenue-outlook-3. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
