{
  "$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 = og_def(p['label'], none) -%}\n{%- set v_brand = og_def(p['brand'], none) -%}\n{%- set v_links = og_def(p['links'], none) -%}\n{%- set v_current = og_def(p['current'], '') -%}\n{%- set v_userName = og_def(p['userName'], none) -%}\n{%- set v_userEmail = og_def(p['userEmail'], none) -%}\n{%- set v_width = og_def(p['width'], 'full') -%}\n{%- set v_user = og_def(p['user'], 'show') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {%- set c_2 -%}\n    {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'layers', 'Size': 24}}) }}\n    {%- set c_1 -%}\n      {{ og_text(v_brand) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold', 'Class': og_s(('sr-only' if og_t(og_eq(v_width, 'compact')) else ''))}, 'children': c_1}) }}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_2}) }}\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              {{ 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(('sr-only' if og_t(og_eq(v_width, 'compact')) else ''))}, '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 px-4 text-sm', 'py-2', ('bg-muted font-semibold' if og_t(og_eq(og_get(v_l, ['id']), v_current)) else '')])]), 'current': og_eq(og_get(v_l, ['id']), v_current), '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': og_s(og_cnv(['m-0 flex list-none flex-col p-0', ('gap-0' if og_t(og_eq(v_density, 'compact')) else 'gap-2')])), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_6}) }}\n    {%- endset -%}\n    {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if og_t(v_landmarkLabel) else v_label), 'className': og_cnv(['flex-1'])}, 'children': og_markup(c_7)}) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_user, 'show')) %}\n    {%- set c_11 -%}\n      {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': v_userName, 'ratio': '1/1', 'className': og_cnv(['size-10 shrink-0 rounded-full'])}}) }}\n      {%- set c_10 -%}\n        {%- set c_8 -%}\n          {{ og_text(v_userName) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_8}) }}\n        {%- set c_9 -%}\n          {{ og_text(v_userEmail) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_9}) }}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': og_s(('sr-only' if og_t(og_eq(v_width, 'compact')) else 'min-w-0'))}, 'children': c_10}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': 'border-t border-border pt-4', 'Attrs': og_attrs(['data-slot', 'user'])}, 'children': c_11}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'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', ('w-20 items-center' if og_t(og_eq(v_width, 'compact')) else 'w-64')])), 'Attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, v_brand]), 'data-width', v_width, 'data-slot', 'sidebar'])}, 'children': c_12}) }}\n",
      "path": "blocks/sidebar-nav.html.j2",
      "target": "blocks/sidebar-nav.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "sidebar-nav",
  "registryDependencies": [
    "block",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "nav-block",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Sidebar Nav",
  "type": "registry:block"
}
