{
  "$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\">\nimport type { Stat } from \"../blocks/stats-band.types\";\n\nexport type StatFigureProps = {\n  stat: Stat;\n  item?: \"plain\" | \"card\" | \"icon\";\n  align?: \"start\" | \"center\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport StatTile from \"../components/stat-tile.vue\";\nimport { defaults } from \"../presets/defaults\";\nimport { cn } from \"../utils\";\n\nconst { stat, item = \"plain\", align = \"center\" } = defineProps<StatFigureProps>();\n</script>\n\n<template>\n  <StatTile\n    v-if=\"((item as string) === 'card')\"\n    :label=\"stat.label\"\n    :value=\"stat.value\"\n    :icon=\"stat.icon\"\n    :hint=\"stat.hint\"\n  />\n  <Stack v-else\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    <LucideIcon v-if=\"((item as string) === 'icon')\" :name=\"stat.icon\" :size=\"24\" />\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</template>\n",
      "path": "components/stat-figure.vue",
      "target": "components/stat-figure.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "stat-figure",
  "registryDependencies": [
    "lucide-icon",
    "presets",
    "stack",
    "stat-tile",
    "stats-band",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Stat Figure",
  "type": "registry:component"
}
