{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A closing call to action.",
  "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 * A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split\n * picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof\n * (none, quote), density.\n */\nimport { type JSX } from \"solid-js\";\nimport { Block, Card, CardContent, Container, Stack, Text, Title } from \"../compose\";\nimport { CtaActions } from \"../components/cta-actions\";\nimport { CtaBanner } from \"../blocks/cta-banner\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { QuoteProof } from \"../components/quote-proof\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { tpl } from \"../utils\";\nimport type { CtaQuote } from \"./cta-band.types\";\nimport type { ActionSet } from \"../components/cta-actions.types\";\n\nexport type CtaBandProps = {\n  id: string;\n  title: string;\n  text: string;\n  actions: ActionSet;\n  quote?: CtaQuote;\n  layout?: \"card\" | \"band\" | \"split\" | \"row\" | \"banner\";\n  tone?: \"default\" | \"muted\";\n  proof?: \"none\" | \"quote\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function CtaBand({\n  id,\n  title,\n  text,\n  actions,\n  quote,\n  layout = \"card\",\n  tone = \"muted\",\n  proof = \"none\",\n  density = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: CtaBandProps) {\n  const center = ((layout as string) === \"band\") || ((layout as string) === \"banner\");\n  return (\n    <>\n      {((layout as string) === \"banner\") ? (\n        <CtaBanner\n          id={id}\n          title={title}\n          text={text}\n          cta={actions.cta}\n          href={actions.href}\n          tone={tone}\n          landmarkLabel={landmarkLabel}\n        />\n      ) : ((layout as string) === \"row\") ? (\n        <Block\n          tag=\"section\"\n          class=\"py-8\"\n          aria-labelledby={(landmarkLabel ? undefined : tpl(\"{0}-title\", id))}\n          data-tone={tone}\n          data-density={density}\n          aria-label={landmarkLabel}\n          data-slot=\"section\"\n        >\n          <Container class=\"mx-auto w-full max-w-6xl px-4\" data-slot=\"container\">\n            <Card variant=\"muted\">\n              <CardContent class=\"flex flex-col gap-4 md:flex-row md:items-center md:justify-between\">\n                <Stack gap=\"2\" class=\"min-w-0\">\n                  <Title as={2} size=\"2xl\" weight=\"bold\" id={tpl(\"{0}-title\", id)}>\n                    {title}\n                  </Title>\n                  <Text size=\"base\" class=\"text-muted-foreground\">\n                    {text}\n                  </Text>\n                </Stack>\n                {((proof as string) === \"quote\") ? (\n                  <QuoteProof quote={quote?.text} quoteBy={quote?.by} center={center} />\n                ) : null}\n                <CtaActions id={id} actions={actions} center={center} />\n              </CardContent>\n            </Card>\n          </Container>\n        </Block>\n      ) : (\n        <SectionFrame\n          id={id}\n          title={title}\n          lead={text}\n          layout={(((layout as string) === \"split\") ? \"split\" : \"stack\")}\n          align={(center ? \"center\" : \"start\")}\n          boxed={((layout as string) === \"card\")}\n          media={{ show: ((layout as string) === \"split\") }}\n          tone={tone}\n          density={density}\n          landmarkLabel={landmarkLabel}\n          aside={(\n            <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n          )}\n        >\n          {((proof as string) === \"quote\") ? (\n            <QuoteProof quote={quote?.text} quoteBy={quote?.by} center={center} />\n          ) : null}\n          <CtaActions id={id} actions={actions} center={center} />\n        </SectionFrame>\n      )}\n    </>\n  );\n}\n",
      "path": "blocks/cta-band.tsx",
      "target": "blocks/cta-band.tsx"
    },
    {
      "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\nexport type CtaQuote = {\n  /** a customer quote, shown when `proof` is quote */\n  text?: string;\n  /** who said it */\n  by?: string;\n};\n",
      "path": "blocks/cta-band.types.ts",
      "target": "blocks/cta-band.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "cta",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "cta-band",
  "registryDependencies": [
    "compose",
    "cta-actions",
    "cta-banner",
    "media-frame",
    "quote-proof",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Cta Band",
  "type": "registry:block"
}
