{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A top bar in four shapes: inline, split around the brand, with a search field, and transparent over a picture.",
  "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/nav-bar.json\n    A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.\n    Props (p): label, brand, brandHref, links, current, actions, search, tone, layout, over, skip, landmarkLabel. -#}\n{%- set v_label = og_def(p['label'], none) -%}\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_actions = og_def(p['actions'], none) -%}\n{%- set v_search = og_def(p['search'], none) -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_layout = og_def(p['layout'], 'inline') -%}\n{%- set v_over = og_def(p['over'], 'none') -%}\n{%- set v_skip = og_def(p['skip'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {{ og_include('blocks/over-media.html.j2', {'p': {'on': og_eq(v_over, 'media'), 'alt': v_brand}}) }}\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:inset-ring focus:inset-ring-border', 'Attrs': og_attrs(['data-slot', 'skip-link'])}, 'children': c_1}) }}\n  {%- endif %}\n  {%- set c_11 -%}\n    {%- set c_10 -%}\n      {%- if og_t(og_eq(v_layout, 'split')) %}\n        {%- set c_8 -%}\n          {%- set c_7 -%}\n            {%- set c_2 -%}\n              {{ og_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}) }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'md:justify-self-start'}, 'children': c_2}) }}\n            {%- set c_4 -%}\n              {%- set c_3 -%}\n                {{ og_text(v_brand) }}\n              {%- endset -%}\n              {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': v_brandHref, 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_3)}) }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'text-center'}, 'children': c_4}) }}\n            {%- set c_6 -%}\n              {%- set c_5 -%}\n                {{ og_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}) }}\n              {%- endset -%}\n              {{ og_include('compose/box.html.j2', {'p': {}, 'children': c_5}) }}\n              {{ og_include('blocks/nav-actions.html.j2', {'p': {'login': og_get(v_actions, ['login']), 'loginHref': og_get(v_actions, ['loginHref']), 'cta': og_get(v_actions, ['cta']), 'ctaHref': og_get(v_actions, ['href']), 'actions': og_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': og_get(v_actions, ['themeLabel'])}}) }}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'end', 'Class': 'flex-wrap md:justify-self-end'}, 'children': c_6}) }}\n          {%- endset -%}\n          {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-3', 'Class': 'w-full items-center gap-4'}, 'children': c_7}) }}\n        {%- endset -%}\n        {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if og_t(v_landmarkLabel) else v_label), 'className': og_cnv(['w-full']), 'testid': 'site-nav'}, 'children': og_markup(c_8)}) }}\n      {%- else %}\n        {%- set c_9 -%}\n          {{ og_text(v_brand) }}\n        {%- endset -%}\n        {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': v_brandHref, 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_9)}) }}\n        {%- if og_t(og_eq(v_layout, 'search')) %}\n          {{ og_include('blocks/search-palette.html.j2', {'p': {'label': og_get(v_search, ['label']), 'shortcut': og_get(v_search, ['shortcut'])}}) }}\n        {%- endif %}\n        {{ og_include('blocks/nav-bar-menu.html.j2', {'p': {'label': v_label, 'links': v_links, 'current': v_current, 'landmarkLabel': v_landmarkLabel}}) }}\n        {{ og_include('blocks/nav-actions.html.j2', {'p': {'login': og_get(v_actions, ['login']), 'loginHref': og_get(v_actions, ['loginHref']), 'cta': og_get(v_actions, ['cta']), 'ctaHref': og_get(v_actions, ['href']), 'actions': og_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': og_get(v_actions, ['themeLabel'])}}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))}, 'children': c_10}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4', 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_11}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'header', 'Class': og_s(og_cnv(['relative', ('border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' if og_t(og_eq(v_tone, 'inverse')) else 'border-b border-border bg-background'), ('isolate overflow-hidden border-0 bg-transparent' if og_t(og_eq(v_over, 'media')) else '')])), 'Attrs': og_attrs(['data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel, 'data-slot', 'nav-bar'])}, 'children': c_12}) }}\n",
      "path": "blocks/nav-bar.html.j2",
      "target": "blocks/nav-bar.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "nav-bar",
  "registryDependencies": [
    "block",
    "box",
    "container",
    "grid",
    "group",
    "link-plain",
    "menu-entry",
    "nav-actions",
    "nav-bar-menu",
    "nav-block",
    "nav-links",
    "over-media",
    "search-palette",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Nav Bar",
  "type": "registry:block"
}
