{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A vertical navigation with the brand on top and the user at the bottom: full, or icons only.",
  "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/sidebar-nav.json\n    A vertical navigation: the brand at the top, the links stacked, the user at the bottom. Axes: width (full: icon and name, compact: icons only with the name hidden), user (show, hide), density.\n    Props (p): label, brand, links, current, userName, userEmail, width, user, density, landmarkLabel. *}\n{var $v_label = ($p['label'] ?? null)}\n{var $v_brand = ($p['brand'] ?? null)}\n{var $v_links = ($p['links'] ?? null)}\n{var $v_current = ($p['current'] ?? '')}\n{var $v_userName = ($p['userName'] ?? null)}\n{var $v_userEmail = ($p['userEmail'] ?? null)}\n{var $v_width = ($p['width'] ?? 'full')}\n{var $v_user = ($p['user'] ?? 'show')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_12}\n  {capture $c_2}\n    {=og_include('icons/LucideIcon.latte', ['name' => 'layers', 'size' => 24])|noescape}\n    {capture $c_1}\n      {=og_text($v_brand)}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'bold', 'class' => og_s((og_t(og_eq($v_width, 'compact')) ? 'sr-only' : '')), 'children' => (string) $c_1])|noescape}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_2])|noescape}\n  {if og_t(og_gt(og_len($v_links), 0))}\n    {capture $c_7}\n      {capture $c_6}\n        {foreach og_l($v_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(og_eq($v_width, 'compact')) ? '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 px-4 text-sm', 'py-2', (og_t(og_eq(og_get($v_l, ['id']), $v_current)) ? 'bg-muted font-semibold' : '')])]), 'current' => og_eq(og_get($v_l, ['id']), $v_current), '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' => og_s(og_cnv(['m-0 flex list-none flex-col p-0', (og_t(og_eq($v_density, 'compact')) ? 'gap-0' : 'gap-2')])), 'attrs' => og_attrs(['data-slot', 'items']), '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}', [$v_label, $v_landmarkLabel])) : $v_label), 'className' => og_cnv(['flex-1'])], 'children' => og_markup($c_7)])|noescape}\n  {/if}\n  {if og_t(og_eq($v_user, 'show'))}\n    {capture $c_11}\n      {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_userName, 'ratio' => '1/1', 'className' => og_cnv(['size-10 shrink-0 rounded-full'])]])|noescape}\n      {capture $c_10}\n        {capture $c_8}\n          {=og_text($v_userName)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_8])|noescape}\n        {capture $c_9}\n          {=og_text($v_userEmail)}\n        {/capture}\n        {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_9])|noescape}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '0', 'class' => og_s((og_t(og_eq($v_width, 'compact')) ? 'sr-only' : 'min-w-0')), 'children' => (string) $c_10])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'class' => 'border-t border-border pt-4', 'attrs' => og_attrs(['data-slot', 'user']), 'children' => (string) $c_11])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'aside', 'class' => og_s(og_cnv(['flex min-h-96 flex-col gap-6 rounded bg-card p-4 inset-ring inset-ring-border', (og_t(og_eq($v_width, 'compact')) ? 'w-20 items-center' : 'w-64')])), 'attrs' => og_attrs(['aria-label', og_coalesce([$v_landmarkLabel, $v_brand]), 'data-width', $v_width, 'data-slot', 'sidebar']), 'children' => (string) $c_12])|noescape}\n",
      "path": "blocks/sidebar-nav.latte",
      "target": "blocks/sidebar-nav.latte"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "sidebar-nav",
  "registryDependencies": [
    "block",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "nav-block",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Sidebar Nav",
  "type": "registry:block"
}
