{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).",
  "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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, Group, List, ListItem, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { fmtMoney } from \"../utils\";\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\nexport function CtaProofItems({ content, proof = \"stats\", center = false }: CtaProofItemsProps) {\n  return (\n    <>\n      {(((proof as string) === \"logos\") && ((content.logos?.length ?? 0) > 0)) ? (\n        <Box class=\"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6\" data-slot=\"cta-proof\">\n          <For each={content.logos ?? []}>{(l) => (\n            <Group gap=\"2\" align=\"center\" justify=\"center\" class=\"text-muted-foreground\" data-slot=\"cta-item\">\n              <LucideIcon name={l.icon} size={20} />\n              <Text size=\"sm\" weight=\"semibold\">\n                {l.name}\n              </Text>\n            </Group>\n          )}</For>\n        </Box>\n      ) : null}\n      {(((proof as string) === \"features\") && ((content.features?.length ?? 0) > 0)) ? (\n        <Box class=\"grid grid-cols-1 gap-4 text-left sm:grid-cols-2\" data-slot=\"cta-proof\">\n          <For each={content.features ?? []}>{(f) => (\n            <Group gap=\"4\" align=\"start\" class=\"rounded bg-card inset-ring inset-ring-border p-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            </Group>\n          )}</For>\n        </Box>\n      ) : null}\n      {(((proof as string) === \"stats\") && ((content.stats?.length ?? 0) > 0)) ? (\n        <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"cta-proof\">\n          <For each={content.stats ?? []}>{(s, iOf) => { const i = iOf(); return (\n            <>\n              {(i < 3) ? (\n                <Stack 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              ) : null}\n            </>\n          ); }}</For>\n        </Box>\n      ) : null}\n      {(((proof as string) === \"rows\") && ((content.features?.length ?? 0) > 0)) ? (\n        <List class=\"m-0 flex list-none flex-col gap-4 p-0\" data-slot=\"cta-proof\">\n          <For each={content.features ?? []}>{(f) => (\n            <ListItem 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          )}</For>\n        </List>\n      ) : null}\n      {(((proof as string) === \"zones\") && ((content.zones?.length ?? 0) > 0)) ? (\n        <List class=\"m-0 flex list-none flex-col p-0\" data-slot=\"cta-proof\">\n          <For each={content.zones ?? []}>{(z) => (\n            <ListItem class=\"flex items-start justify-between gap-4 border-b border-border py-4\" data-slot=\"cta-item\">\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          )}</For>\n        </List>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "components/cta-proof-items.tsx",
      "target": "components/cta-proof-items.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "cta-proof-items",
  "registryDependencies": [
    "compose",
    "cta-proof",
    "lucide-icon",
    "utils"
  ],
  "runtime": "solid",
  "title": "Cta Proof Items",
  "type": "registry:component"
}
