{
  "$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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Grid } from \"../compose\";\nimport { Backdrop } from \"../components/backdrop\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { StatFigure } from \"../components/stat-figure\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\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\nexport function StatsBand({\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) {\n  return (\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      {((stats?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"chart-column\" title={empty} />\n      ) : ((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          <For each={stats ?? []}>{(stat) => (\n            <StatFigure stat={stat} item={item} align={align} />\n          )}</For>\n        </Grid>\n      ) : (\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          <For each={stats ?? []}>{(stat) => (\n            <StatFigure stat={stat} item={item} align={align} />\n          )}</For>\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/stats-band.tsx",
      "target": "blocks/stats-band.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\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": [
      "solid",
      "block"
    ]
  },
  "name": "stats-band",
  "registryDependencies": [
    "backdrop",
    "compose",
    "empty-state",
    "presets",
    "section-frame",
    "stat-figure",
    "utils"
  ],
  "runtime": "solid",
  "title": "Stats Band",
  "type": "registry:block"
}
