{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/sitemap-footer.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/form\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/input\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/label\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// SitemapFooterProps are the props of SitemapFooter; the values are the JSON shapes of the TypeScript props.\ntype SitemapFooterProps struct {\n\tLabel any `json:\"label\"`\n\tBrand any `json:\"brand\"`\n\tTagline any `json:\"tagline\"`\n\tCopyright any `json:\"copyright\"`\n\tGroups any `json:\"groups\"`\n\tSignup any `json:\"signup\"`\n\tStatus any `json:\"status\"`\n\tId any `json:\"id\"`\n\tLayout any `json:\"layout\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.\ntempl SitemapFooter(p SitemapFooterProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vBrand := p.Brand }}\n\t{{ vTagline := p.Tagline }}\n\t{{ vCopyright := p.Copyright }}\n\t{{ vGroups := p.Groups }}\n\t{{ vSignup := p.Signup }}\n\t{{ vStatus := p.Status }}\n\t{{ vId := uiutils.Def(p.Id, \"footer\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"columns\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\tif uiutils.Eq(vLayout, \"card\") {\n\t\t@FooterCard(FooterCardProps{Label: vLabel, Brand: vBrand, Groups: vGroups, LandmarkLabel: vLandmarkLabel})\n\t} else {\n\t\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"footer\", Class: \"mt-12 border-t border-border\", Attrs: uiutils.Attrs(\"data-layout\", vLayout, \"aria-label\", vLandmarkLabel, \"data-slot\", \"site-footer\")}}) {\n\t\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full max-w-6xl px-4\", \"flex flex-col gap-8\", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, \"compact\")), \"py-6\", \"py-12\"))), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\t\tif uiutils.Eq(uiutils.Get(vSignup, \"mode\"), \"first\") {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Class: \"max-w-md\", Attrs: uiutils.Attrs(\"data-slot\", \"signup\")}}) {\n\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vSignup, \"title\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Form(compose.FormProps{FormProps: form.FormProps{Method: \"dialog\", Class: uiutils.S(uiutils.Cnv(\"w-full max-w-md\", uiutils.Cond(uiutils.T(false), \"mx-auto\", \"\"))), Attrs: uiutils.Attrs(\"data-slot\", \"email-form\")}}) {\n\t\t\t\t\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{For: uiutils.S(uiutils.Tpl(\"{0}-email\", vId)), Class: \"sr-only\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vSignup, \"label\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{Class: \"w-full flex-wrap\"}}) {\n\t\t\t\t\t\t\t\t@compose.Input(compose.InputProps{InputProps: input.InputProps{Type: \"email\", Name: \"email\", Class: \"min-w-0 flex-1\", Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-email\", vId), \"data-slot\", \"field\")}})\n\t\t\t\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"submit\"}}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vSignup, \"submit\")) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif uiutils.Eq(vLayout, \"columns\") {\n\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-8 md:flex-row md:items-start md:gap-12\", Attrs: uiutils.Attrs(\"data-slot\", \"footer-top\")}}) {\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"md:w-64 md:shrink-0\"}}) {\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vBrand) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vTagline) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"min-w-0 flex-1\"}}) {\n\t\t\t\t\t\t\t@FooterColumns(FooterColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"6\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(vBrand) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif uiutils.Gt(uiutils.Len(vGroups), float64(0)) {\n\t\t\t\t\t\t\t@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl(\"{0}, {1}\", vLabel, vLandmarkLabel)), vLabel)}) {\n\t\t\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\t\t\t\t\tfor _, vG := range uiutils.L(vGroups) {\n\t\t\t\t\t\t\t\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vG, \"href\"), Class: uiutils.Cnv(\"text-sm\"), Testid: \"group\"}) {\n\t\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vG, \"title\")) }\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"flex-wrap border-t border-border pt-6\"}}) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(vCopyright) }\n\t\t\t\t\t}\n\t\t\t\t\tif uiutils.Eq(uiutils.Get(vStatus, \"mode\"), \"show\") {\n\t\t\t\t\t\t@Pill(PillProps{Tone: \"green\", Icon: \"circle-check\"}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vStatus, \"label\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/sitemap-footer.templ",
      "target": "blocks/sitemap-footer.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "sitemap-footer",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "container",
    "footer-card",
    "footer-columns",
    "form",
    "group",
    "input",
    "kit-box",
    "kit-button",
    "kit-form",
    "kit-input",
    "kit-label",
    "kit-text",
    "label",
    "menu-entry",
    "nav-block",
    "pill",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Sitemap Footer",
  "type": "registry:block"
}
