{
  "$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\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"
    },
    {
      "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\">\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</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport BarChart from \"../components/bar-chart.vue\";\nimport Panel from \"../components/panel.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport StatTile from \"../components/stat-tile.vue\";\nimport Timeline from \"../components/timeline.vue\";\nimport { tpl } from \"../utils\";\n\nconst {\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} = defineProps<DashboardOverviewProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <Stack gap=\"6\" align=\"stretch\">\n      <Grid\n        v-if=\"((metrics?.length ?? 0) > 0)\"\n        :cols=\"(((cols as string) === '2') ? '1-2' : '1-4')\"\n        class=\"gap-4\"\n        data-slot=\"items\"\n      >\n        <Box v-for=\"m in metrics\" :key=\"m.id\" data-slot=\"item\">\n          <StatTile :label=\"m.label\" :value=\"m.value\" :icon=\"m.icon\" :hint=\"m.hint\" />\n        </Box>\n      </Grid>\n      <Grid :cols=\"(((layout as string) === 'split') ? '1-2' : '1')\" class=\"items-stretch gap-4\" data-slot=\"panels\">\n        <Panel\n          v-if=\"((chart.series?.length ?? 0) > 0)\"\n          :title=\"chart.title\"\n          :description=\"chart.text\"\n          :id=\"tpl('{0}-chart', id)\"\n          class=\"h-full\"\n        >\n          <BarChart :bars=\"chart.series\" :label=\"chart.summary\" :height=\"144\" />\n        </Panel>\n        <Panel\n          v-if=\"((activity.events?.length ?? 0) > 0)\"\n          :title=\"activity.title\"\n          :description=\"activity.text\"\n          :id=\"tpl('{0}-feed', id)\"\n          class=\"h-full\"\n        >\n          <Timeline :items=\"activity.events\" />\n        </Panel>\n      </Grid>\n    </Stack>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/dashboard-overview.vue",
      "target": "blocks/dashboard-overview.vue"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "dashboard-overview",
  "registryDependencies": [
    "activity-feed",
    "bar-chart",
    "box",
    "chart-panel",
    "grid",
    "metric-row",
    "panel",
    "section-frame",
    "stack",
    "stat-tile",
    "timeline",
    "utils"
  ],
  "runtime": "vue",
  "title": "Dashboard Overview",
  "type": "registry:block"
}
