{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The head row of a hero band: skip link, brand, menu links (the current one carries aria-current), login and a call to action.",
  "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/hero-head.json\n    The head row of a hero band: skip link, brand, menu links (the current one carries aria-current), login and a call to action.\n    Props (p): brand, brandHref, links, current, login, loginHref, cta, href, skip, navLabel, landmarkLabel. -#}\n{%- set v_brand = og_def(p['brand'], none) -%}\n{%- set v_brandHref = og_def(p['brandHref'], none) -%}\n{%- set v_links = og_def(p['links'], none) -%}\n{%- set v_current = og_def(p['current'], '') -%}\n{%- set v_login = og_def(p['login'], none) -%}\n{%- set v_loginHref = og_def(p['loginHref'], none) -%}\n{%- set v_cta = og_def(p['cta'], none) -%}\n{%- set v_href = og_def(p['href'], none) -%}\n{%- set v_skip = og_def(p['skip'], none) -%}\n{%- set v_navLabel = og_def(p['navLabel'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_10 -%}\n  {%- if og_t(v_skip) %}\n    {%- set c_1 -%}\n      {{ og_text(v_skip) }}\n    {%- endset -%}\n    {{ og_include('compose/link-plain.html.j2', {'p': {'Href': '#main-content', 'Class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:text-foreground focus:inset-ring focus:inset-ring-border', 'Attrs': og_attrs(['data-slot', 'skip-link'])}, 'children': c_1}) }}\n  {%- endif %}\n  {%- set c_2 -%}\n    {{ og_text(v_brand) }}\n  {%- endset -%}\n  {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': v_brandHref, 'className': og_cnv([og_cnv([og_preset('blocks/presets/defaults.json', ['text', 'small']), 'font-medium leading-6 text-background'])]), 'testid': 'brand'}, 'children': og_markup(c_2)}) }}\n  {%- if og_t(og_and([v_links, og_gt(og_len(v_links), 0)])) %}\n    {%- set c_6 -%}\n      {%- set c_5 -%}\n        {%- for v_l in og_l(v_links) %}\n          {%- if og_t(og_get(v_l, ['href'])) %}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_l, ['name'])) }}\n            {%- endset -%}\n            {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(og_get(v_l, ['href']))), 'Variant': 'default', 'AriaCurrent': og_s(('page' if og_t(og_eq(og_get(v_l, ['id']), v_current)) else none)), 'Class': 'text-xs font-medium leading-5 text-background', 'Attrs': og_attrs(['data-slot', 'nav-link'])}, 'children': c_3}) }}\n          {%- else %}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_l, ['name'])) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-xs font-medium leading-5 text-background', 'Attrs': og_attrs(['data-slot', 'nav-link'])}, 'children': c_4}) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '8', 'Align': 'center', 'Class': 'flex-wrap'}, 'children': c_5}) }}\n    {%- endset -%}\n    {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [v_navLabel, v_landmarkLabel])) if og_t(v_landmarkLabel) else v_navLabel), 'testid': 'site-nav'}, 'children': og_markup(c_6)}) }}\n  {%- endif %}\n  {%- set c_9 -%}\n    {%- if og_t(v_login) %}\n      {%- set c_7 -%}\n        {{ og_text(v_login) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Href': og_url(og_s(v_loginHref)), 'Variant': 'ghost', 'Size': 'sm', 'Class': 'text-background hover:bg-background/10'}, 'children': c_7}) }}\n    {%- endif %}\n    {%- if og_t(v_cta) %}\n      {%- set c_8 -%}\n        {{ og_text(v_cta) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Href': og_url(og_s(v_href)), 'Variant': 'secondary', 'Size': 'sm'}, 'children': c_8}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_9}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'header', 'Class': og_s(og_cnv(['flex w-full flex-wrap items-center justify-between pr-4', og_preset('blocks/presets/defaults.json', ['hero', 'head'])])), 'Attrs': og_attrs(['aria-label', v_landmarkLabel, 'data-slot', 'hero-head'])}, 'children': c_10}) }}\n",
      "path": "blocks/hero-head.html.j2",
      "target": "blocks/hero-head.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "hero-head",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "inline",
    "link",
    "link-plain",
    "menu-entry",
    "nav-block",
    "presets",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Hero Head",
  "type": "registry:component"
}
