{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Cta Proof Items 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  The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats\n  (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).\n-->\n<script lang=\"ts\">\nimport type { CtaContent } from \"../blocks/cta-proof.types\";\n\nexport type CtaProofItemsProps = {\n  content: CtaContent;\n  proof?: \"logos\" | \"features\" | \"stats\" | \"rows\" | \"zones\";\n  center?: boolean;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Group from \"../compose/Group.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport { fmtMoney } from \"../utils\";\n\nconst { content, proof = \"stats\", center = false } = defineProps<CtaProofItemsProps>();\n</script>\n\n<template>\n  <Box\n    v-if=\"(((proof as string) === 'logos') && ((content.logos?.length ?? 0) > 0))\"\n    class=\"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6\"\n    data-slot=\"cta-proof\"\n  >\n    <Group\n      v-for=\"l in content.logos\"\n      :key=\"l.id\"\n      gap=\"2\"\n      align=\"center\"\n      justify=\"center\"\n      class=\"text-muted-foreground\"\n      data-slot=\"cta-item\"\n    >\n      <LucideIcon :name=\"l.icon\" :size=\"20\" />\n      <Text size=\"sm\" weight=\"semibold\">\n        {{ l.name }}\n      </Text>\n    </Group>\n  </Box>\n  <Box\n    v-if=\"(((proof as string) === 'features') && ((content.features?.length ?? 0) > 0))\"\n    class=\"grid grid-cols-1 gap-4 text-left sm:grid-cols-2\"\n    data-slot=\"cta-proof\"\n  >\n    <Group\n      v-for=\"f in content.features\"\n      :key=\"f.id\"\n      gap=\"4\"\n      align=\"start\"\n      class=\"rounded bg-card inset-ring inset-ring-border p-4\"\n      data-slot=\"cta-item\"\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  </Box>\n  <Box\n    v-if=\"(((proof as string) === 'stats') && ((content.stats?.length ?? 0) > 0))\"\n    class=\"grid grid-cols-3 gap-4\"\n    data-slot=\"cta-proof\"\n  >\n    <template v-for=\"(s, i) in content.stats\" :key=\"s.id\">\n      <Stack v-if=\"(i < 3)\" gap=\"0\" :class=\"(center ? 'items-center text-center' : '')\" data-slot=\"cta-item\">\n        <Text size=\"3xl\" weight=\"bold\">\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  <List\n    v-if=\"(((proof as string) === 'rows') && ((content.features?.length ?? 0) > 0))\"\n    class=\"m-0 flex list-none flex-col gap-4 p-0\"\n    data-slot=\"cta-proof\"\n  >\n    <ListItem v-for=\"f in content.features\" :key=\"f.id\" class=\"flex items-start gap-4\" data-slot=\"cta-item\">\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    </ListItem>\n  </List>\n  <List\n    v-if=\"(((proof as string) === 'zones') && ((content.zones?.length ?? 0) > 0))\"\n    class=\"m-0 flex list-none flex-col p-0\"\n    data-slot=\"cta-proof\"\n  >\n    <ListItem\n      v-for=\"z in content.zones\"\n      :key=\"z.id\"\n      class=\"flex items-start justify-between gap-4 border-b border-border py-4\"\n      data-slot=\"cta-item\"\n    >\n      <Stack gap=\"0\" class=\"min-w-0\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ z.name }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ z.area }}\n        </Text>\n      </Stack>\n      <Stack gap=\"0\" class=\"shrink-0 text-right\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ fmtMoney(z.price, z.currency) }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ z.time }}\n        </Text>\n      </Stack>\n    </ListItem>\n  </List>\n</template>\n",
      "path": "components/cta-proof-items.vue",
      "target": "components/cta-proof-items.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "cta-proof-items",
  "registryDependencies": [
    "box",
    "cta-proof",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Cta Proof Items",
  "type": "registry:component"
}
