{
  "$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<!--\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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Stat } from \"./stats-band.types\";\n\n  export 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 lang=\"ts\">\n  import Grid from \"../compose/Grid.svelte\";\n  import Backdrop from \"../components/backdrop.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import StatFigure from \"../components/stat-figure.svelte\";\n  import { defaults } from \"../presets/defaults\";\n  import { cn } from \"../utils\";\n\n  let {\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  }: StatsBandProps = $props();\n</script>\n\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  {#if ((stats?.length ?? 0) === 0)}\n    <EmptyState icon=\"chart-column\" title={empty} />\n  {:else if ((surface as string) === \"panel\")}\n    <Grid\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      {#each stats as stat (stat.id)}\n        <StatFigure stat={stat} item={item} align={align} />\n      {/each}\n    </Grid>\n  {:else}\n    <Grid\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      {#each stats as stat (stat.id)}\n        <StatFigure stat={stat} item={item} align={align} />\n      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/stats-band.svelte",
      "target": "blocks/stats-band.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\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"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "stats-band",
  "registryDependencies": [
    "backdrop",
    "empty-state",
    "grid",
    "presets",
    "section-frame",
    "stat-figure",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Stats Band",
  "type": "registry:block"
}
