{
  "$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<!--\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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { FooterSignup, FooterStatus } from \"./sitemap-footer.types\";\n  import type { MegaGroup } from \"./mega-menu.types\";\n\n  export 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 lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Box from \"../compose/Box.svelte\";\n  import Button from \"../compose/Button.svelte\";\n  import Container from \"../compose/Container.svelte\";\n  import Form from \"../compose/Form.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import Input from \"../compose/Input.svelte\";\n  import Label from \"../compose/Label.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import FooterCard from \"../components/footer-card.svelte\";\n  import FooterColumns from \"../components/footer-columns.svelte\";\n  import MenuEntry from \"../components/menu-entry.svelte\";\n  import NavBlock from \"../components/nav-block.svelte\";\n  import Pill from \"../components/pill.svelte\";\n  import { cn, tpl, uniqLabel } from \"../utils\";\n\n  let {\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  }: SitemapFooterProps = $props();\n</script>\n\n{#if ((layout as string) === \"card\")}\n  <FooterCard label={label} brand={brand} groups={groups} landmarkLabel={landmarkLabel} />\n{:else}\n  <Block\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      {#if (signup?.mode === \"first\")}\n        <Stack 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      {/if}\n      {#if ((layout as string) === \"columns\")}\n        <Box class=\"flex flex-col gap-8 md:flex-row md:items-start md:gap-12\" data-slot=\"footer-top\">\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      {:else}\n        <Group gap=\"6\" align=\"center\" justify=\"between\" class=\"flex-wrap\">\n          <Text size=\"base\" weight=\"bold\">\n            {brand}\n          </Text>\n          {#if ((groups?.length ?? 0) > 0)}\n            <NavBlock label={(landmarkLabel ? uniqLabel(tpl(\"{0}, {1}\", label, landmarkLabel)) : label)}>\n              <Group gap=\"4\" class=\"flex-wrap\">\n                {#each groups as g (g.id)}\n                  <MenuEntry href={g.href} class=\"text-sm\" testid=\"group\">\n                    {g.title}\n                  </MenuEntry>\n                {/each}\n              </Group>\n            </NavBlock>\n          {/if}\n        </Group>\n      {/if}\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        {#if (status?.mode === \"show\")}\n          <Pill tone=\"green\" icon=\"circle-check\">\n            {status?.label}\n          </Pill>\n        {/if}\n      </Group>\n    </Container>\n  </Block>\n{/if}\n",
      "path": "blocks/sitemap-footer.svelte",
      "target": "blocks/sitemap-footer.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 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"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "svelte",
      "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": "svelte",
  "title": "Sitemap Footer",
  "type": "registry:block"
}
