{
  "$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{var $v_labels = ($p['labels'] ?? null)}\n{var $v_routes = ($p['routes'] ?? null)}\n{var $v_current = ($p['current'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'inline')}\n{var $v_position = ($p['position'] ?? 'static')}\n{var $v_actions = ($p['actions'] ?? 'none')}\n{var $v_cta = ($p['cta'] ?? null)}\n{var $v_ctaHref = ($p['ctaHref'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_11}\n  {capture $c_1}\n    {=og_text(og_get($v_labels, ['skip']))}\n  {/capture}\n  {=og_include('compose/LinkPlain.latte', ['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' => (string) $c_1])|noescape}\n  {capture $c_10}\n    {capture $c_2}\n      {=og_text(og_get($v_labels, ['brand']))}\n    {/capture}\n    {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_routes, ['home']), 'className' => og_cnv(['text-lg font-medium']), 'testid' => 'brand'], 'children' => og_markup($c_2)])|noescape}\n    {capture $c_6}\n      {capture $c_5}\n        {capture $c_3}\n          {=og_text(og_get($v_labels, ['home']))}\n        {/capture}\n        {=og_include('blocks/menu-entry.latte', ['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)])|noescape}\n        {capture $c_4}\n          {=og_text(og_get($v_labels, ['pricing']))}\n        {/capture}\n        {=og_include('blocks/menu-entry.latte', ['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)])|noescape}\n      {/capture}\n      {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'children' => (string) $c_5])|noescape}\n    {/capture}\n    {=og_include('blocks/nav-block.latte', ['p' => ['label' => (og_t($v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [og_get($v_labels, ['nav']), $v_landmarkLabel])) : og_get($v_labels, ['nav'])), 'testid' => 'site-nav'], 'children' => og_markup($c_6)])|noescape}\n    {capture $c_9}\n      {capture $c_7}\n        {=og_text(og_get($v_labels, ['theme']))}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'children' => (string) $c_7])|noescape}\n      {if og_t(og_and([og_eq($v_actions, 'cta'), $v_cta]))}\n        {capture $c_8}\n          {=og_text($v_cta)}\n        {/capture}\n        {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'sm', 'href' => og_url(og_s($v_ctaHref)), 'children' => (string) $c_8])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'children' => (string) $c_9])|noescape}\n  {/capture}\n  {=og_include('compose/Container.latte', ['class' => og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap gap-4 py-4', (og_t(og_eq($v_layout, 'stacked')) ? 'flex-col items-center' : 'items-center justify-between')])), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_10])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'header', 'class' => og_s(og_cnv(['border-b border-border bg-background', (og_t(og_eq($v_position, 'sticky')) ? 'sticky top-0 z-40' : '')])), 'attrs' => og_attrs(['data-layout', $v_layout, 'aria-label', $v_landmarkLabel, 'data-slot', 'site-header']), 'children' => (string) $c_11])|noescape}\n",
      "path": "blocks/site-header.latte",
      "target": "blocks/site-header.latte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "site-header",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "group",
    "link-plain",
    "menu-entry",
    "nav-block",
    "utils"
  ],
  "runtime": "latte",
  "title": "Site Header",
  "type": "registry:block"
}
