{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { CtaQuote } from \"./cta-band.types\";\n  import type { ActionSet } from \"../components/cta-actions.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Card from \"../compose/Card.svelte\";\n  import CardContent from \"../compose/CardContent.svelte\";\n  import Container from \"../compose/Container.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import CtaActions from \"../components/cta-actions.svelte\";\n  import CtaBanner from \"../blocks/cta-banner.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import QuoteProof from \"../components/quote-proof.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { tpl } from \"../utils\";\n\n  let {\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 = $props();\n  const center = $derived(((layout as string) === \"band\") || ((layout as string) === \"banner\"));\n</script>\n\n{#if ((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{:else if ((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          {#if ((proof as string) === \"quote\")}\n            <QuoteProof quote={quote?.text} quoteBy={quote?.by} center={center} />\n          {/if}\n          <CtaActions id={id} actions={actions} center={center} />\n        </CardContent>\n      </Card>\n    </Container>\n  </Block>\n{:else}\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  >\n    {#if ((proof as string) === \"quote\")}\n      <QuoteProof quote={quote?.text} quoteBy={quote?.by} center={center} />\n    {/if}\n    <CtaActions id={id} actions={actions} center={center} />\n    {#snippet aside()}\n      <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n    {/snippet}\n  </SectionFrame>\n{/if}\n",
      "path": "blocks/cta-band.svelte",
      "target": "blocks/cta-band.svelte"
    },
    {
      "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": [
      "svelte",
      "block"
    ]
  },
  "name": "cta-band",
  "registryDependencies": [
    "block",
    "card",
    "card-content",
    "container",
    "cta-actions",
    "cta-banner",
    "media-frame",
    "quote-proof",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Cta Band",
  "type": "registry:block"
}
