{
  "$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 = og_def(p['nav'], none) -%}\n{%- set v_brand = og_def(p['brand'], 'show') -%}\n{%- set v_links = og_def(p['links'], 'hide') -%}\n{%- set v_search = og_def(p['search'], 'show') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_10 -%}\n  {%- if og_t(og_eq(v_brand, 'show')) %}\n    {%- set c_2 -%}\n      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'layers', 'Size': 24}}) }}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_nav, ['brand'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold', 'Class': og_s(('' if og_t(true) else 'sr-only'))}, 'children': c_1}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Class': 'shrink-0', 'Attrs': og_attrs(['data-slot', 'brand'])}, 'children': c_2}) }}\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              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_l, ['icon'])), 'Size': 16}}) }}\n              {%- set c_3 -%}\n                {{ og_text(og_get(v_l, ['name'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(('' if og_t(true) else 'sr-only'))}, 'children': c_3}) }}\n            {%- endset -%}\n            {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_l, ['href']), 'className': og_cnv([og_cnv(['flex items-center gap-4 rounded py-2 text-sm', ('px-4' if og_t(true) else 'justify-center px-2'), ('bg-muted font-medium' if og_t(og_eq(og_get(v_l, ['id']), og_get(v_nav, ['current']))) else '')])]), 'current': og_eq(og_get(v_l, ['id']), og_get(v_nav, ['current'])), 'size': 'sm', 'testid': 'item'}, 'children': og_markup(c_4)}) }}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'links-row'])}, 'children': c_5}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none items-center gap-2 p-0'}, 'children': c_6}) }}\n    {%- endset -%}\n    {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [og_get(v_nav, ['label']), v_landmarkLabel])) if og_t(v_landmarkLabel) else og_get(v_nav, ['label'])), 'className': og_cnv(['hidden lg:block'])}, 'children': og_markup(c_7)}) }}\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        {{ og_include('blocks/search-palette.html.j2', {'p': {'label': og_get(v_nav, ['search']), 'shortcut': og_get(v_nav, ['shortcut'])}}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'ml-auto hidden w-64 shrink-0 xl:block'}, 'children': c_8}) }}\n    {%- else %}\n      {{ og_include('blocks/search-palette.html.j2', {'p': {'label': og_get(v_nav, ['search']), 'shortcut': og_get(v_nav, ['shortcut'])}}) }}\n    {%- endif %}\n  {%- endif %}\n  {%- set c_9 -%}\n    {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'bell', 'Size': 20, 'Class': 'text-muted-foreground'}}) }}\n    {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_nav, ['userName']), 'ratio': '1/1', 'className': og_cnv(['size-8 shrink-0 rounded-full'])}}) }}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': og_s(('shrink-0' if og_t(og_and([og_eq(v_links, 'show'), og_eq(v_search, 'show')])) else 'ml-auto shrink-0')), 'Attrs': og_attrs(['data-slot', 'user'])}, 'children': c_9}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'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}) }}\n",
      "path": "blocks/shell-topbar.html.j2",
      "target": "blocks/shell-topbar.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "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": "jinja2",
  "title": "Shell Topbar",
  "type": "registry:component"
}
