{
  "$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{var $v_nav = ($p['nav'] ?? null)}\n{var $v_brand = ($p['brand'] ?? 'show')}\n{var $v_links = ($p['links'] ?? 'hide')}\n{var $v_search = ($p['search'] ?? 'show')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_10}\n  {if og_t(og_eq($v_brand, 'show'))}\n    {capture $c_2}\n      {=og_include('icons/LucideIcon.latte', ['name' => 'layers', 'size' => 24])|noescape}\n      {capture $c_1}\n        {=og_text(og_get($v_nav, ['brand']))}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'bold', 'class' => og_s((og_t(true) ? '' : 'sr-only')), 'children' => (string) $c_1])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'class' => 'shrink-0', 'attrs' => og_attrs(['data-slot', 'brand']), 'children' => (string) $c_2])|noescape}\n  {/if}\n  {if og_t(og_and([og_eq($v_links, 'show'), og_gt(og_len(og_get($v_nav, ['links'])), 0)]))}\n    {capture $c_7}\n      {capture $c_6}\n        {foreach og_l(og_get($v_nav, ['links'])) as $v_l}\n          {capture $c_5}\n            {capture $c_4}\n              {=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_l, ['icon'])), 'size' => 16])|noescape}\n              {capture $c_3}\n                {=og_text(og_get($v_l, ['name']))}\n              {/capture}\n              {=og_include('compose/Inline.latte', ['class' => og_s((og_t(true) ? '' : 'sr-only')), 'children' => (string) $c_3])|noescape}\n            {/capture}\n            {=og_include('blocks/menu-entry.latte', ['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)])|noescape}\n          {/capture}\n          {=og_include('compose/ListItem.latte', ['attrs' => og_attrs(['data-slot', 'links-row']), 'children' => (string) $c_5])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none items-center gap-2 p-0', 'children' => (string) $c_6])|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_nav, ['label']), $v_landmarkLabel])) : og_get($v_nav, ['label'])), 'className' => og_cnv(['hidden lg:block'])], 'children' => og_markup($c_7)])|noescape}\n  {/if}\n  {if og_t(og_eq($v_search, 'show'))}\n    {if og_t(og_eq($v_links, 'show'))}\n      {capture $c_8}\n        {=og_include('blocks/search-palette.latte', ['p' => ['label' => og_get($v_nav, ['search']), 'shortcut' => og_get($v_nav, ['shortcut'])]])|noescape}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'ml-auto hidden w-64 shrink-0 xl:block', 'children' => (string) $c_8])|noescape}\n    {else}\n      {=og_include('blocks/search-palette.latte', ['p' => ['label' => og_get($v_nav, ['search']), 'shortcut' => og_get($v_nav, ['shortcut'])]])|noescape}\n    {/if}\n  {/if}\n  {capture $c_9}\n    {=og_include('icons/LucideIcon.latte', ['name' => 'bell', 'size' => 20, 'class' => 'text-muted-foreground'])|noescape}\n    {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_nav, ['userName']), 'ratio' => '1/1', 'className' => og_cnv(['size-8 shrink-0 rounded-full'])]])|noescape}\n  {/capture}\n  {=og_include('compose/Group.latte', ['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' => (string) $c_9])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['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' => (string) $c_10])|noescape}\n",
      "path": "blocks/shell-topbar.latte",
      "target": "blocks/shell-topbar.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "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": "latte",
  "title": "Shell Topbar",
  "type": "registry:component"
}
