{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Counters, a chart and recent activity in one section.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The first screen of an app: counters, a chart and recent activity. Axes: layout (split: the chart and the\n * activity side by side, stacked: one below the other), cols (2, 4), tone, density.\n */\nimport { type ReactNode } from \"react\";\nimport { Box, Grid, Stack } from \"../compose\";\nimport { BarChart } from \"../components/bar-chart\";\nimport { Panel } from \"../components/panel\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { StatTile } from \"../components/stat-tile\";\nimport { Timeline } from \"../components/timeline\";\nimport { tpl } from \"../utils\";\nimport type { OverviewChart, OverviewActivity } from \"./dashboard-overview.types\";\nimport type { Metric } from \"./metric-row.types\";\nimport type { Point } from \"./chart-panel.types\";\nimport type { Event } from \"./activity-feed.types\";\n\nexport type DashboardOverviewProps = {\n  id: string;\n  title: string;\n  metrics: Metric[];\n  chart: OverviewChart;\n  activity: OverviewActivity;\n  layout?: \"split\" | \"stacked\";\n  cols?: \"2\" | \"4\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n\nexport function DashboardOverview({\n  id,\n  title,\n  metrics,\n  chart,\n  activity,\n  layout = \"split\",\n  cols = \"4\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n}: DashboardOverviewProps) {\n  return (\n    <SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n      <Stack gap=\"6\" align=\"stretch\">\n        {((metrics?.length ?? 0) > 0) ? (\n          <Grid cols={(((cols as string) === \"2\") ? \"1-2\" : \"1-4\")} className=\"gap-4\" data-slot=\"items\">\n            {(metrics ?? []).map((m) => (\n              <Box key={m.id} data-slot=\"item\">\n                <StatTile label={m.label} value={m.value} icon={m.icon} hint={m.hint} />\n              </Box>\n            ))}\n          </Grid>\n        ) : null}\n        <Grid\n          cols={(((layout as string) === \"split\") ? \"1-2\" : \"1\")}\n          className=\"items-stretch gap-4\"\n          data-slot=\"panels\"\n        >\n          {((chart.series?.length ?? 0) > 0) ? (\n            <Panel title={chart.title} description={chart.text} id={tpl(\"{0}-chart\", id)} className=\"h-full\">\n              <BarChart bars={chart.series} label={chart.summary} height={144} />\n            </Panel>\n          ) : null}\n          {((activity.events?.length ?? 0) > 0) ? (\n            <Panel title={activity.title} description={activity.text} id={tpl(\"{0}-feed\", id)} className=\"h-full\">\n              <Timeline items={activity.events} />\n            </Panel>\n          ) : null}\n        </Grid>\n      </Stack>\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/dashboard-overview.tsx",
      "target": "blocks/dashboard-overview.tsx"
    },
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nimport type { Point } from \"./chart-panel.types\";\nimport type { Event } from \"./activity-feed.types\";\n\nexport type OverviewChart = {\n  title: string;\n  text: string;\n  /** the chart's accessible summary */\n  summary: string;\n  /** the bars */\n  series: Point[];\n};\n\nexport type OverviewActivity = {\n  title: string;\n  text: string;\n  events: Event[];\n};\n",
      "path": "blocks/dashboard-overview.types.ts",
      "target": "blocks/dashboard-overview.types.ts"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "dashboard-overview",
  "registryDependencies": [
    "activity-feed",
    "bar-chart",
    "chart-panel",
    "compose",
    "metric-row",
    "panel",
    "section-frame",
    "stat-tile",
    "timeline",
    "utils"
  ],
  "runtime": "react",
  "title": "Dashboard Overview",
  "type": "registry:block"
}
