{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The top bar of DashboardShell: the brand (when no sidebar carries it), the links (when there is no sidebar), an optional search field, and the signed-in person.",
  "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/shell-topbar.json\n    The top bar of DashboardShell: the brand (when no sidebar carries it), the links (when there is no sidebar), an optional search field, and the signed-in person.\n    Props (p): nav, brand, links, search, landmarkLabel. -#}\n{%- set v_nav = (p.nav ?? null) -%}\n{%- set v_brand = (p.brand ?? 'show') -%}\n{%- set v_links = (p.links ?? 'hide') -%}\n{%- set v_search = (p.search ?? 'show') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_10 -%}\n  {%- if og_t(og_eq(v_brand, 'show')) %}\n    {%- set c_2 -%}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'layers', 'size': 24}, with_context = false) }}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_nav, ['brand'])) }}\n      {%- endset -%}\n      {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'bold', 'class': og_s((og_t(true) ? '' : 'sr-only')), 'children': c_1}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': 'shrink-0', 'attrs': og_attrs(['data-slot', 'brand']), 'children': c_2}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_and([og_eq(v_links, 'show'), og_gt(og_len(og_get(v_nav, ['links'])), 0)])) %}\n    {%- set c_7 -%}\n      {%- set c_6 -%}\n        {%- for v_l in og_l(og_get(v_nav, ['links'])) %}\n          {%- set c_5 -%}\n            {%- set c_4 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_l, ['icon'])), 'size': 16}, with_context = false) }}\n              {%- set c_3 -%}\n                {{ og_text(og_get(v_l, ['name'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': og_s((og_t(true) ? '' : 'sr-only')), 'children': c_3}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_l, ['href']), 'className': og_cnv([og_cnv(['flex items-center gap-4 rounded py-2 text-sm', (og_t(true) ? 'px-4' : 'justify-center px-2'), (og_t(og_eq(og_get(v_l, ['id']), og_get(v_nav, ['current']))) ? 'bg-muted font-medium' : '')])]), 'current': og_eq(og_get(v_l, ['id']), og_get(v_nav, ['current'])), 'size': 'sm', 'testid': 'item'}, 'children': og_markup(c_4)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'attrs': og_attrs(['data-slot', 'links-row']), 'children': c_5}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none items-center gap-2 p-0', 'children': c_6}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [og_get(v_nav, ['label']), v_landmarkLabel])) : og_get(v_nav, ['label'])), 'className': og_cnv(['hidden lg:block'])}, 'children': og_markup(c_7)}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_search, 'show')) %}\n    {%- if og_t(og_eq(v_links, 'show')) %}\n      {%- set c_8 -%}\n        {{ include('blocks/search-palette.html.twig', {'p': {'label': og_get(v_nav, ['search']), 'shortcut': og_get(v_nav, ['shortcut'])}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'ml-auto hidden w-64 shrink-0 xl:block', 'children': c_8}, with_context = false) }}\n    {%- else %}\n      {{ include('blocks/search-palette.html.twig', {'p': {'label': og_get(v_nav, ['search']), 'shortcut': og_get(v_nav, ['shortcut'])}}, with_context = false) }}\n    {%- endif %}\n  {%- endif %}\n  {%- set c_9 -%}\n    {{ include('icons/LucideIcon.html.twig', {'name': 'bell', 'size': 20, 'class': 'text-muted-foreground'}, with_context = false) }}\n    {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_nav, ['userName']), 'ratio': '1/1', 'className': og_cnv(['size-8 shrink-0 rounded-full'])}}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': og_s((og_t(og_and([og_eq(v_links, 'show'), og_eq(v_search, 'show')])) ? 'shrink-0' : 'ml-auto shrink-0')), 'attrs': og_attrs(['data-slot', 'user']), 'children': c_9}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'header', 'class': 'flex h-16 shrink-0 items-center gap-6 border-b border-border bg-background px-6', 'attrs': og_attrs(['aria-label', v_landmarkLabel, 'data-slot', 'topbar']), 'children': c_10}, with_context = false) }}\n",
      "path": "blocks/shell-topbar.html.twig",
      "target": "blocks/shell-topbar.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "shell-topbar",
  "registryDependencies": [
    "block",
    "box",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "nav-block",
    "search-palette",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Shell Topbar",
  "type": "registry:component"
}
