{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A footer with the brand, groups of links and the copyright; a single row, a sign-up first or a status pill.",
  "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 FooterSignup = {\n  /** first: the sign-up comes before the links */\n  mode?: \"none\" | \"first\";\n  title?: string;\n  /** accessible name of the email field */\n  label?: string;\n  submit?: string;\n};\n\nexport type FooterStatus = {\n  /** show: the status pill is drawn */\n  mode?: \"none\" | \"show\";\n  /** text of the pill */\n  label?: string;\n};\n",
      "path": "blocks/sitemap-footer.types.ts",
      "target": "blocks/sitemap-footer.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 footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above,\n  equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none,\n  first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status\n  itself is a port contract.\n-->\n<script lang=\"ts\">\nimport type { FooterSignup, FooterStatus } from \"./sitemap-footer.types\";\nimport type { MegaGroup } from \"./mega-menu.types\";\n\nexport type SitemapFooterProps = {\n  label: string;\n  brand: string;\n  tagline: string;\n  copyright: string;\n  groups: MegaGroup[];\n  signup?: FooterSignup;\n  status?: FooterStatus;\n  id?: string;\n  layout?: \"columns\" | \"row\" | \"card\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Box from \"../compose/Box.vue\";\nimport Button from \"../compose/Button.vue\";\nimport Container from \"../compose/Container.vue\";\nimport Form from \"../compose/Form.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Input from \"../compose/Input.vue\";\nimport Label from \"../compose/Label.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport FooterCard from \"../components/footer-card.vue\";\nimport FooterColumns from \"../components/footer-columns.vue\";\nimport MenuEntry from \"../components/menu-entry.vue\";\nimport NavBlock from \"../components/nav-block.vue\";\nimport Pill from \"../components/pill.vue\";\nimport { cn, tpl, uniqLabel } from \"../utils\";\n\nconst {\n  label,\n  brand,\n  tagline,\n  copyright,\n  groups,\n  signup,\n  status,\n  id = \"footer\",\n  layout = \"columns\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<SitemapFooterProps>();\n</script>\n\n<template>\n  <FooterCard\n    v-if=\"((layout as string) === 'card')\"\n    :label=\"label\"\n    :brand=\"brand\"\n    :groups=\"groups\"\n    :landmarkLabel=\"landmarkLabel\"\n  />\n  <Block v-else\n    tag=\"footer\"\n    class=\"mt-12 border-t border-border\"\n    :data-layout=\"layout\"\n    :aria-label=\"landmarkLabel\"\n    data-slot=\"site-footer\"\n  >\n    <Container\n      :class=\"cn(\n        'mx-auto w-full max-w-6xl px-4',\n        'flex flex-col gap-8',\n        (((density as string) === 'compact') ? 'py-6' : 'py-12')\n      )\"\n      data-slot=\"container\"\n    >\n      <Stack v-if=\"(signup?.mode === 'first')\" gap=\"4\" class=\"max-w-md\" data-slot=\"signup\">\n        <Title :as=\"3\" size=\"xl\" weight=\"bold\">\n          {{ signup?.title }}\n        </Title>\n        <Form method=\"dialog\" :class=\"cn('w-full max-w-md', (false ? 'mx-auto' : ''))\" data-slot=\"email-form\">\n          <Label :for=\"tpl('{0}-email', id)\" class=\"sr-only\">\n            {{ signup?.label }}\n          </Label>\n          <Group gap=\"2\" align=\"start\" class=\"w-full flex-wrap\">\n            <Input type=\"email\" name=\"email\" class=\"min-w-0 flex-1\" :id=\"tpl('{0}-email', id)\" data-slot=\"field\" />\n            <Button variant=\"default\" size=\"default\" type=\"submit\">\n              {{ signup?.submit }}\n            </Button>\n          </Group>\n        </Form>\n      </Stack>\n      <Box\n        v-if=\"((layout as string) === 'columns')\"\n        class=\"flex flex-col gap-8 md:flex-row md:items-start md:gap-12\"\n        data-slot=\"footer-top\"\n      >\n        <Stack gap=\"2\" class=\"md:w-64 md:shrink-0\">\n          <Text size=\"xl\" weight=\"bold\">\n            {{ brand }}\n          </Text>\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {{ tagline }}\n          </Text>\n        </Stack>\n        <Box class=\"min-w-0 flex-1\">\n          <FooterColumns :label=\"label\" :groups=\"groups\" :landmarkLabel=\"landmarkLabel\" />\n        </Box>\n      </Box>\n      <Group v-else gap=\"6\" align=\"center\" justify=\"between\" class=\"flex-wrap\">\n        <Text size=\"base\" weight=\"bold\">\n          {{ brand }}\n        </Text>\n        <NavBlock\n          v-if=\"((groups?.length ?? 0) > 0)\"\n          :label=\"(landmarkLabel ? uniqLabel(tpl('{0}, {1}', label, landmarkLabel)) : label)\"\n        >\n          <Group gap=\"4\" class=\"flex-wrap\">\n            <MenuEntry v-for=\"g in groups\" :key=\"g.id\" :href=\"g.href\" class=\"text-sm\" testid=\"group\">\n              {{ g.title }}\n            </MenuEntry>\n          </Group>\n        </NavBlock>\n      </Group>\n      <Group gap=\"4\" align=\"center\" justify=\"between\" class=\"flex-wrap border-t border-border pt-6\">\n        <Text size=\"sm\" class=\"text-muted-foreground\">\n          {{ copyright }}\n        </Text>\n        <Pill v-if=\"(status?.mode === 'show')\" tone=\"green\" icon=\"circle-check\">\n          {{ status?.label }}\n        </Pill>\n      </Group>\n    </Container>\n  </Block>\n</template>\n",
      "path": "blocks/sitemap-footer.vue",
      "target": "blocks/sitemap-footer.vue"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "sitemap-footer",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "container",
    "footer-card",
    "footer-columns",
    "form",
    "group",
    "input",
    "label",
    "mega-menu",
    "menu-entry",
    "nav-block",
    "pill",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Sitemap Footer",
  "type": "registry:block"
}
