{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "What HeroSplit shows under the lead: three figures in cards, a row of faces with a proof line, two small feature cards, or a quote with its author over three figures.",
  "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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, Group, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { FigureBlock } from \"../components/figure-block\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport type { HeroContent } from \"../blocks/hero-split.types\";\n\nexport type HeroSplitExtrasProps = {\n  content: HeroContent;\n  extra?: \"stats\" | \"avatars\" | \"minis\" | \"quote\" | \"none\";\n};\n\nexport function HeroSplitExtras({ content, extra = \"none\" }: HeroSplitExtrasProps) {\n  return (\n    <>\n      {(((extra as string) === \"stats\") && ((content.stats?.length ?? 0) > 0)) ? (\n        <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"hero-stats\">\n          <For each={content.stats ?? []}>{(s, iOf) => { const i = iOf(); return (\n            <>\n              {(i < 3) ? (\n                <Stack 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              ) : null}\n            </>\n          ); }}</For>\n        </Box>\n      ) : null}\n      {(((extra as string) === \"avatars\") && ((content.people?.length ?? 0) > 0)) ? (\n        <Group gap=\"4\" align=\"center\" class=\"flex-wrap\" data-slot=\"hero-proof\">\n          <Group gap=\"2\" align=\"center\">\n            <For each={content.people ?? []}>{(p, iOf) => { const i = iOf(); return (\n              <>\n                {(i < 4) ? (\n                  <MediaFrame alt={p.author} src={p.image} ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n                ) : null}\n              </>\n            ); }}</For>\n          </Group>\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {content.proof}\n          </Text>\n        </Group>\n      ) : null}\n      {(((extra as string) === \"minis\") && ((content.features?.length ?? 0) > 0)) ? (\n        <Box class=\"grid grid-cols-1 gap-4 sm:grid-cols-2\" data-slot=\"hero-minis\">\n          <For each={content.features ?? []}>{(f, iOf) => { const i = iOf(); return (\n            <>\n              {(i < 2) ? (\n                <Group gap=\"4\" align=\"start\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"hero-mini\">\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              ) : null}\n            </>\n          ); }}</For>\n        </Box>\n      ) : null}\n      {(((extra as string) === \"quote\") && ((content.people?.length ?? 0) > 0)) ? (\n        <Stack gap=\"6\" align=\"stretch\" data-slot=\"hero-split-extras\">\n          <For each={content.people ?? []}>{(p, iOf) => { const i = iOf(); return (\n            <>\n              {(i < 1) ? (\n                <FigureBlock 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              ) : null}\n            </>\n          ); }}</For>\n          <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"hero-stats\">\n            <For each={content.stats ?? []}>{(s, iOf) => { const i = iOf(); return (\n              <>\n                {(i < 3) ? (\n                  <Stack 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                ) : null}\n              </>\n            ); }}</For>\n          </Box>\n        </Stack>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "components/hero-split-extras.tsx",
      "target": "components/hero-split-extras.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "hero-split-extras",
  "registryDependencies": [
    "compose",
    "figure-block",
    "hero-split",
    "lucide-icon",
    "media-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Hero Split Extras",
  "type": "registry:component"
}
