{
  "$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 = (p.label ?? null) -%}\n{%- set v_brand = (p.brand ?? null) -%}\n{%- set v_brandHref = (p.brandHref ?? null) -%}\n{%- set v_links = (p.links ?? null) -%}\n{%- set v_current = (p.current ?? '') -%}\n{%- set v_actions = (p.actions ?? null) -%}\n{%- set v_search = (p.search ?? null) -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_layout = (p.layout ?? 'inline') -%}\n{%- set v_over = (p.over ?? 'none') -%}\n{%- set v_skip = (p.skip ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_12 -%}\n  {{ include('blocks/over-media.html.twig', {'p': {'on': og_eq(v_over, 'media'), 'alt': v_brand}}, with_context = false) }}\n  {%- if og_t(v_skip) %}\n    {%- set c_1 -%}\n      {{ og_text(v_skip) }}\n    {%- endset -%}\n    {{ include('compose/LinkPlain.html.twig', {'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}, with_context = false) }}\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              {{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': 'md:justify-self-start', 'children': c_2}, with_context = false) }}\n            {%- set c_4 -%}\n              {%- set c_3 -%}\n                {{ og_text(v_brand) }}\n              {%- endset -%}\n              {{ include('blocks/menu-entry.html.twig', {'p': {'href': v_brandHref, 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_3)}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': 'text-center', 'children': c_4}, with_context = false) }}\n            {%- set c_6 -%}\n              {%- set c_5 -%}\n                {{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Box.html.twig', {'children': c_5}, with_context = false) }}\n              {{ include('blocks/nav-actions.html.twig', {'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'])}}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'end', 'class': 'flex-wrap md:justify-self-end', 'children': c_6}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': 'w-full items-center gap-4', 'children': c_7}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label), 'className': og_cnv(['w-full']), 'testid': 'site-nav'}, 'children': og_markup(c_8)}, with_context = false) }}\n      {%- else %}\n        {%- set c_9 -%}\n          {{ og_text(v_brand) }}\n        {%- endset -%}\n        {{ include('blocks/menu-entry.html.twig', {'p': {'href': v_brandHref, 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_9)}, with_context = false) }}\n        {%- if og_t(og_eq(v_layout, 'search')) %}\n          {{ include('blocks/search-palette.html.twig', {'p': {'label': og_get(v_search, ['label']), 'shortcut': og_get(v_search, ['shortcut'])}}, with_context = false) }}\n        {%- endif %}\n        {{ include('blocks/nav-bar-menu.html.twig', {'p': {'label': v_label, 'links': v_links, 'current': v_current, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}\n        {{ include('blocks/nav-actions.html.twig', {'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'])}}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4'])), 'children': c_10}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': 'mx-auto w-full max-w-6xl px-4', 'attrs': og_attrs(['data-slot', 'container']), 'children': c_11}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'header', 'class': og_s(og_cnv(['relative', (og_t(og_eq(v_tone, 'inverse')) ? 'border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' : 'border-b border-border bg-background'), (og_t(og_eq(v_over, 'media')) ? 'isolate overflow-hidden border-0 bg-transparent' : '')])), 'attrs': og_attrs(['data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel, 'data-slot', 'nav-bar']), 'children': c_12}, with_context = false) }}\n",
      "path": "blocks/nav-bar.html.twig",
      "target": "blocks/nav-bar.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "twig",
      "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": "twig",
  "title": "Nav Bar",
  "type": "registry:block"
}
