{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Key numbers as figures, cards or figures with icons.",
  "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\nexport type Stat = {\n  id: string;\n  label: string;\n  value: string;\n  icon: string;\n  hint: string;\n};\n",
      "path": "blocks/stats-band.types.ts",
      "target": "blocks/stats-band.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  Key numbers in a row or grid: plain figures, cards (StatTile) or figures with an icon. Axes: columns (2, 3,\n  4), item (plain, card, icon), surface (none, image, panel: one rounded card), align, density, tone. Title may\n  be empty.\n-->\n<script lang=\"ts\">\nimport type { Stat } from \"./stats-band.types\";\n\nexport type StatsBandProps = {\n  id: string;\n  title?: string;\n  stats: Stat[];\n  empty?: string;\n  cols?: \"2\" | \"3\" | \"4\";\n  layout?: \"row\" | \"stack\";\n  surface?: \"none\" | \"image\" | \"panel\";\n  item?: \"plain\" | \"card\" | \"icon\";\n  align?: \"start\" | \"center\";\n  tone?: \"default\" | \"muted\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Grid from \"../compose/Grid.vue\";\nimport Backdrop from \"../components/backdrop.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport StatFigure from \"../components/stat-figure.vue\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\n\nconst {\n  id,\n  title = \"\",\n  stats,\n  empty = \"\",\n  cols = \"4\",\n  layout = \"row\",\n  surface = \"none\",\n  item = \"plain\",\n  align = \"center\",\n  tone = \"default\",\n  density = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n} = defineProps<StatsBandProps>();\n</script>\n\n<template>\n  <SectionFrame\n    :id=\"id\"\n    :title=\"title\"\n    :tone=\"tone\"\n    :density=\"density\"\n    :align=\"align\"\n    :measure=\"\n      (surface as string) === 'panel' ? 'fill'\n      : (layout as string) === 'stack' ? 'xs'\n      : 'default'\n    \"\n    :class=\"cn(\n      cn((((surface as string) === 'image') ? 'bg-transparent' : ''), (((surface as string) === 'panel') ? 'py-0' : '')),\n      (\n        (((surface as string) === 'image') ? 'image' : 'none') === 'image' ? 'relative isolate overflow-hidden'\n        : ''\n      )\n    )\"\n    :landmarkLabel=\"landmarkLabel\"\n  >\n    <Backdrop\n      :kind=\"(((surface as string) === 'image') ? 'image' : 'none')\"\n      :alt=\"(imageAlt ? imageAlt : title)\"\n      :image=\"image\"\n    />\n    <EmptyState v-if=\"((stats?.length ?? 0) === 0)\" icon=\"chart-column\" :title=\"empty\" />\n    <Grid v-else-if=\"((surface as string) === 'panel')\"\n      :cols=\"\n        (cols as string) === '2' ? '2'\n        : (cols as string) === '3' ? '2-3'\n        : (cols as string) === '4' ? '2-4'\n        : '3-6'\n      \"\n      :class=\"cn('w-full items-center bg-muted px-6', defaults.stats.panel)\"\n      data-slot=\"items\"\n    >\n      <StatFigure v-for=\"stat in stats\" :key=\"stat.id\" :stat=\"stat\" :item=\"item\" :align=\"align\" />\n    </Grid>\n    <Grid v-else\n      :cols=\"\n        (layout as string) === 'stack' ? '1'\n        : (cols as string) === '2' ? '2'\n        : (cols as string) === '3' ? '2-3'\n        : (cols as string) === '4' ? '2-4'\n        : '3-6'\n      \"\n      class=\"gap-6\"\n      data-slot=\"items\"\n    >\n      <StatFigure v-for=\"stat in stats\" :key=\"stat.id\" :stat=\"stat\" :item=\"item\" :align=\"align\" />\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/stats-band.vue",
      "target": "blocks/stats-band.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "stats-band",
  "registryDependencies": [
    "backdrop",
    "empty-state",
    "grid",
    "presets",
    "section-frame",
    "stat-figure",
    "utils"
  ],
  "runtime": "vue",
  "title": "Stats Band",
  "type": "registry:block"
}
