{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Hero Split Extras 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<!--\n  What HeroSplit shows under the lead: three figures in cards, a row of faces with a proof line, two small\n  feature cards, or a quote with its author over three figures.\n-->\n<script lang=\"ts\">\nimport type { HeroContent } from \"../blocks/hero-split.types\";\n\nexport type HeroSplitExtrasProps = {\n  content: HeroContent;\n  extra?: \"stats\" | \"avatars\" | \"minis\" | \"quote\" | \"none\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Group from \"../compose/Group.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport FigureBlock from \"../components/figure-block.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\n\nconst { content, extra = \"none\" } = defineProps<HeroSplitExtrasProps>();\n</script>\n\n<template>\n  <Box\n    v-if=\"(((extra as string) === 'stats') && ((content.stats?.length ?? 0) > 0))\"\n    class=\"grid grid-cols-3 gap-4\"\n    data-slot=\"hero-stats\"\n  >\n    <template v-for=\"(s, i) in content.stats\" :key=\"s.id\">\n      <Stack v-if=\"(i < 3)\" gap=\"0\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"hero-stat\">\n        <Text size=\"2xl\" weight=\"semibold\">\n          {{ s.value }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ s.label }}\n        </Text>\n      </Stack>\n    </template>\n  </Box>\n  <Group\n    v-if=\"(((extra as string) === 'avatars') && ((content.people?.length ?? 0) > 0))\"\n    gap=\"4\"\n    align=\"center\"\n    class=\"flex-wrap\"\n    data-slot=\"hero-proof\"\n  >\n    <Group gap=\"2\" align=\"center\">\n      <template v-for=\"(p, i) in content.people\" :key=\"p.id\">\n        <MediaFrame v-if=\"(i < 4)\" :alt=\"p.author\" :src=\"p.image\" ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n      </template>\n    </Group>\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {{ content.proof }}\n    </Text>\n  </Group>\n  <Box\n    v-if=\"(((extra as string) === 'minis') && ((content.features?.length ?? 0) > 0))\"\n    class=\"grid grid-cols-1 gap-4 sm:grid-cols-2\"\n    data-slot=\"hero-minis\"\n  >\n    <template v-for=\"(f, i) in content.features\" :key=\"f.id\">\n      <Group\n        v-if=\"(i < 2)\"\n        gap=\"4\"\n        align=\"start\"\n        class=\"rounded bg-card inset-ring inset-ring-border p-4\"\n        data-slot=\"hero-mini\"\n      >\n        <Box class=\"flex size-10 shrink-0 items-center justify-center rounded bg-muted\">\n          <LucideIcon :name=\"f.icon\" :size=\"20\" />\n        </Box>\n        <Stack gap=\"0\">\n          <Text size=\"sm\" weight=\"semibold\">\n            {{ f.title }}\n          </Text>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {{ f.text }}\n          </Text>\n        </Stack>\n      </Group>\n    </template>\n  </Box>\n  <Stack\n    v-if=\"(((extra as string) === 'quote') && ((content.people?.length ?? 0) > 0))\"\n    gap=\"6\"\n    align=\"stretch\"\n    data-slot=\"hero-split-extras\"\n  >\n    <template v-for=\"(p, i) in content.people\" :key=\"p.id\">\n      <FigureBlock v-if=\"(i < 1)\" class=\"flex flex-col gap-4\" testid=\"hero-quote\">\n        <Text tag=\"blockquote\" class=\"text-lg font-medium\">\n          {{ p.quote }}\n        </Text>\n        <Group gap=\"4\" align=\"center\">\n          <MediaFrame :alt=\"p.author\" :src=\"p.image\" ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n          <Stack gap=\"0\">\n            <Text size=\"sm\" weight=\"semibold\">\n              {{ p.author }}\n            </Text>\n            <Text size=\"xs\" class=\"text-muted-foreground\">\n              {{ p.role }}\n            </Text>\n          </Stack>\n        </Group>\n      </FigureBlock>\n    </template>\n    <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"hero-stats\">\n      <template v-for=\"(s, i) in content.stats\" :key=\"s.id\">\n        <Stack v-if=\"(i < 3)\" gap=\"0\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"hero-stat\">\n          <Text size=\"2xl\" weight=\"semibold\">\n            {{ s.value }}\n          </Text>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {{ s.label }}\n          </Text>\n        </Stack>\n      </template>\n    </Box>\n  </Stack>\n</template>\n",
      "path": "components/hero-split-extras.vue",
      "target": "components/hero-split-extras.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "hero-split-extras",
  "registryDependencies": [
    "box",
    "figure-block",
    "group",
    "hero-split",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Hero Split Extras",
  "type": "registry:component"
}
