{
  "$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{%- set v_label = (p.label ?? null) -%}\n{%- set v_brand = (p.brand ?? null) -%}\n{%- set v_links = (p.links ?? null) -%}\n{%- set v_current = (p.current ?? '') -%}\n{%- set v_userName = (p.userName ?? null) -%}\n{%- set v_userEmail = (p.userEmail ?? null) -%}\n{%- set v_width = (p.width ?? 'full') -%}\n{%- set v_user = (p.user ?? 'show') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_12 -%}\n  {%- set c_2 -%}\n    {{ include('icons/LucideIcon.html.twig', {'name': 'layers', 'size': 24}, with_context = false) }}\n    {%- set c_1 -%}\n      {{ og_text(v_brand) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'bold', 'class': og_s((og_t(og_eq(v_width, 'compact')) ? 'sr-only' : '')), 'children': c_1}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_2}, with_context = false) }}\n  {%- if og_t(og_gt(og_len(v_links), 0)) %}\n    {%- set c_7 -%}\n      {%- set c_6 -%}\n        {%- for v_l in og_l(v_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(og_eq(v_width, 'compact')) ? '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 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)}, 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': 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': 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}', [v_label, v_landmarkLabel])) : v_label), 'className': og_cnv(['flex-1'])}, 'children': og_markup(c_7)}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_user, 'show')) %}\n    {%- set c_11 -%}\n      {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_userName, 'ratio': '1/1', 'className': og_cnv(['size-10 shrink-0 rounded-full'])}}, with_context = false) }}\n      {%- set c_10 -%}\n        {%- set c_8 -%}\n          {{ og_text(v_userName) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_8}, with_context = false) }}\n        {%- set c_9 -%}\n          {{ og_text(v_userEmail) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_9}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '0', 'class': og_s((og_t(og_eq(v_width, 'compact')) ? 'sr-only' : 'min-w-0')), 'children': c_10}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': 'border-t border-border pt-4', 'attrs': og_attrs(['data-slot', 'user']), 'children': c_11}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'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': c_12}, with_context = false) }}\n",
      "path": "blocks/sidebar-nav.html.twig",
      "target": "blocks/sidebar-nav.html.twig"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "sidebar-nav",
  "registryDependencies": [
    "block",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "nav-block",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Sidebar Nav",
  "type": "registry:block"
}
