{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { OverviewChart, OverviewActivity } from \"./dashboard-overview.types\";\n  import type { Metric } from \"./metric-row.types\";\n  import type { Point } from \"./chart-panel.types\";\n  import type { Event } from \"./activity-feed.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import BarChart from \"../components/bar-chart.svelte\";\n  import Panel from \"../components/panel.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import StatTile from \"../components/stat-tile.svelte\";\n  import Timeline from \"../components/timeline.svelte\";\n  import { tpl } from \"../utils\";\n\n  let {\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 = $props();\n</script>\n\n<SectionFrame id={id} title={title} tone={tone} density={density} landmarkLabel={landmarkLabel}>\n  <Stack gap=\"6\" align=\"stretch\">\n    {#if ((metrics?.length ?? 0) > 0)}\n      <Grid cols={(((cols as string) === \"2\") ? \"1-2\" : \"1-4\")} class=\"gap-4\" data-slot=\"items\">\n        {#each metrics as m (m.id)}\n          <Box data-slot=\"item\">\n            <StatTile label={m.label} value={m.value} icon={m.icon} hint={m.hint} />\n          </Box>\n        {/each}\n      </Grid>\n    {/if}\n    <Grid cols={(((layout as string) === \"split\") ? \"1-2\" : \"1\")} class=\"items-stretch gap-4\" data-slot=\"panels\">\n      {#if ((chart.series?.length ?? 0) > 0)}\n        <Panel title={chart.title} description={chart.text} id={tpl(\"{0}-chart\", id)} class=\"h-full\">\n          <BarChart bars={chart.series} label={chart.summary} height={144} />\n        </Panel>\n      {/if}\n      {#if ((activity.events?.length ?? 0) > 0)}\n        <Panel title={activity.title} description={activity.text} id={tpl(\"{0}-feed\", id)} class=\"h-full\">\n          <Timeline items={activity.events} />\n        </Panel>\n      {/if}\n    </Grid>\n  </Stack>\n</SectionFrame>\n",
      "path": "blocks/dashboard-overview.svelte",
      "target": "blocks/dashboard-overview.svelte"
    },
    {
      "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": [
      "svelte",
      "block"
    ]
  },
  "name": "dashboard-overview",
  "registryDependencies": [
    "activity-feed",
    "bar-chart",
    "box",
    "chart-panel",
    "grid",
    "metric-row",
    "panel",
    "section-frame",
    "stack",
    "stat-tile",
    "timeline",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Dashboard Overview",
  "type": "registry:block"
}
