{
  "$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\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"
    },
    {
      "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\">\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</script>\n\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport Block from \"../compose/Block.vue\";\nimport Card from \"../compose/Card.vue\";\nimport CardContent from \"../compose/CardContent.vue\";\nimport Container from \"../compose/Container.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport CtaActions from \"../components/cta-actions.vue\";\nimport CtaBanner from \"../blocks/cta-banner.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport QuoteProof from \"../components/quote-proof.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { tpl } from \"../utils\";\n\nconst {\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} = defineProps<CtaBandProps>();\nconst center = computed(() => ((layout as string) === \"band\") || ((layout as string) === \"banner\"));\n</script>\n\n<template>\n  <CtaBanner v-if=\"((layout as string) === 'banner')\"\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  <Block v-else-if=\"((layout as string) === 'row')\"\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          <QuoteProof\n            v-if=\"((proof as string) === 'quote')\"\n            :quote=\"quote?.text\"\n            :quoteBy=\"quote?.by\"\n            :center=\"center\"\n          />\n          <CtaActions :id=\"id\" :actions=\"actions\" :center=\"center\" />\n        </CardContent>\n      </Card>\n    </Container>\n  </Block>\n  <SectionFrame v-else\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    <QuoteProof\n      v-if=\"((proof as string) === 'quote')\"\n      :quote=\"quote?.text\"\n      :quoteBy=\"quote?.by\"\n      :center=\"center\"\n    />\n    <CtaActions :id=\"id\" :actions=\"actions\" :center=\"center\" />\n    <template #aside>\n      <MediaFrame :alt=\"(imageAlt ? imageAlt : title)\" :src=\"image\" ratio=\"4/3\" />\n    </template>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/cta-band.vue",
      "target": "blocks/cta-band.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "cta",
    "kind": "block",
    "tags": [
      "vue",
      "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": "vue",
  "title": "Cta Band",
  "type": "registry:block"
}
