{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Skip link, brand, navigation, theme button and an optional 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/site-header.json\n    The page header: a skip link to the main content, the brand, the two navigation links (the current one carries aria-current) and the theme button. `current` is the route area. Axes: layout (inline, stacked), position (static, sticky), actions (none, cta).\n    Props (p): labels, routes, current, layout, position, actions, cta, ctaHref, landmarkLabel. -#}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_routes = og_def(p['routes'], none) -%}\n{%- set v_current = og_def(p['current'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'inline') -%}\n{%- set v_position = og_def(p['position'], 'static') -%}\n{%- set v_actions = og_def(p['actions'], 'none') -%}\n{%- set v_cta = og_def(p['cta'], none) -%}\n{%- set v_ctaHref = og_def(p['ctaHref'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_11 -%}\n  {%- set c_1 -%}\n    {{ og_text(og_get(v_labels, ['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  {%- set c_10 -%}\n    {%- set c_2 -%}\n      {{ og_text(og_get(v_labels, ['brand'])) }}\n    {%- endset -%}\n    {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_routes, ['home']), 'className': og_cnv(['text-lg font-medium']), 'testid': 'brand'}, 'children': og_markup(c_2)}) }}\n    {%- set c_6 -%}\n      {%- set c_5 -%}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['home'])) }}\n        {%- endset -%}\n        {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_routes, ['home']), 'className': og_cnv(['font-semibold']), 'current': og_eq(v_current, 'home'), 'testid': 'nav-link'}, 'children': og_markup(c_3)}) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_labels, ['pricing'])) }}\n        {%- endset -%}\n        {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_routes, ['pricing']), 'className': og_cnv(['font-semibold']), 'current': og_eq(v_current, 'pricing'), 'testid': 'nav-link'}, 'children': og_markup(c_4)}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_5}) }}\n    {%- endset -%}\n    {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [og_get(v_labels, ['nav']), v_landmarkLabel])) if og_t(v_landmarkLabel) else og_get(v_labels, ['nav'])), 'testid': 'site-nav'}, 'children': og_markup(c_6)}) }}\n    {%- set c_9 -%}\n      {%- set c_7 -%}\n        {{ og_text(og_get(v_labels, ['theme'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm'}, 'children': c_7}) }}\n      {%- if og_t(og_and([og_eq(v_actions, 'cta'), v_cta])) %}\n        {%- set c_8 -%}\n          {{ og_text(v_cta) }}\n        {%- endset -%}\n        {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'sm', 'Href': og_url(og_s(v_ctaHref))}, 'children': c_8}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_9}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap gap-4 py-4', ('flex-col items-center' if og_t(og_eq(v_layout, 'stacked')) else 'items-center justify-between')])), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_10}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'header', 'Class': og_s(og_cnv(['border-b border-border bg-background', ('sticky top-0 z-40' if og_t(og_eq(v_position, 'sticky')) else '')])), 'Attrs': og_attrs(['data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'site-header'])}, 'children': c_11}) }}\n",
      "path": "blocks/site-header.html.j2",
      "target": "blocks/site-header.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "site-header",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "group",
    "link-plain",
    "menu-entry",
    "nav-block",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Site Header",
  "type": "registry:block"
}
