{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Stat Figure component",
  "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<!-- One key number of StatsBand: a card (StatTile), or the value over its label, optionally under a Lucide icon. -->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Stat } from \"../blocks/stats-band.types\";\n\n  export type StatFigureProps = {\n    stat: Stat;\n    item?: \"plain\" | \"card\" | \"icon\";\n    align?: \"start\" | \"center\";\n  };\n</script>\n\n<script lang=\"ts\">\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import StatTile from \"../components/stat-tile.svelte\";\n  import { defaults } from \"../presets/defaults\";\n  import { cn } from \"../utils\";\n\n  let { stat, item = \"plain\", align = \"center\" }: StatFigureProps = $props();\n</script>\n\n{#if ((item as string) === \"card\")}\n  <StatTile label={stat.label} value={stat.value} icon={stat.icon} hint={stat.hint} />\n{:else}\n  <Stack\n    gap=\"6\"\n    align={(((align as string) === \"center\") ? \"center\" : \"start\")}\n    class={cn((((align as string) === \"center\") ? \"text-center\" : \"\"), defaults.stats.column)}\n    data-slot=\"item\"\n  >\n    {#if ((item as string) === \"icon\")}\n      <LucideIcon name={stat.icon} size={24} />\n    {/if}\n    <Stack gap=\"2\" align={(((align as string) === \"center\") ? \"center\" : \"start\")}>\n      <Text size=\"5xl\" weight=\"medium\" class={cn(\"flex items-center\", defaults.stats.figure)}>\n        {stat.value}\n      </Text>\n      <Text size=\"sm\" weight=\"semibold\" class=\"leading-5 text-muted-foreground\">\n        {stat.label}\n      </Text>\n    </Stack>\n  </Stack>\n{/if}\n",
      "path": "components/stat-figure.svelte",
      "target": "components/stat-figure.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "stat-figure",
  "registryDependencies": [
    "lucide-icon",
    "presets",
    "stack",
    "stat-tile",
    "stats-band",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Stat Figure",
  "type": "registry:component"
}
