{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { HeroContent } from \"../blocks/hero-split.types\";\n\n  export type HeroSplitExtrasProps = {\n    content: HeroContent;\n    extra?: \"stats\" | \"avatars\" | \"minis\" | \"quote\" | \"none\";\n  };\n</script>\n\n<script lang=\"ts\">\n  import Box from \"../compose/Box.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import FigureBlock from \"../components/figure-block.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n\n  let { content, extra = \"none\" }: HeroSplitExtrasProps = $props();\n</script>\n\n{#if (((extra as string) === \"stats\") && ((content.stats?.length ?? 0) > 0))}\n  <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"hero-stats\">\n    {#each content.stats as s, i (s.id)}\n      {#if (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      {/if}\n    {/each}\n  </Box>\n{/if}\n{#if (((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      {#each content.people as p, i (p.id)}\n        {#if (i < 4)}\n          <MediaFrame alt={p.author} src={p.image} ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n        {/if}\n      {/each}\n    </Group>\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {content.proof}\n    </Text>\n  </Group>\n{/if}\n{#if (((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    {#each content.features as f, i (f.id)}\n      {#if (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      {/if}\n    {/each}\n  </Box>\n{/if}\n{#if (((extra as string) === \"quote\") && ((content.people?.length ?? 0) > 0))}\n  <Stack gap=\"6\" align=\"stretch\" data-slot=\"hero-split-extras\">\n    {#each content.people as p, i (p.id)}\n      {#if (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      {/if}\n    {/each}\n    <Box class=\"grid grid-cols-3 gap-4\" data-slot=\"hero-stats\">\n      {#each content.stats as s, i (s.id)}\n        {#if (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        {/if}\n      {/each}\n    </Box>\n  </Stack>\n{/if}\n",
      "path": "components/hero-split-extras.svelte",
      "target": "components/hero-split-extras.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "hero-split-extras",
  "registryDependencies": [
    "box",
    "figure-block",
    "group",
    "hero-split",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Hero Split Extras",
  "type": "registry:component"
}
