{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The sidebar of DashboardShell. Shapes: wide (icon and name), rail (icons only, the names still read), collapsed (the static collapsed state of a wide sidebar, with its expand button), twolevel (a rail beside a panel of the current section's links). side puts it at the start or th",
  "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-sidebar.json\n    The sidebar of DashboardShell. Shapes: wide (icon and name), rail (icons only, the names still read), collapsed (the static collapsed state of a wide sidebar, with its expand button), twolevel (a rail beside a panel of the current section's links). side puts it at the start or the end.\n    Props (p): nav, mode, side, brand, landmarkLabel. -#}\n{%- set v_nav = og_def(p['nav'], none) -%}\n{%- set v_mode = og_def(p['mode'], 'wide') -%}\n{%- set v_side = og_def(p['side'], 'start') -%}\n{%- set v_brand = og_def(p['brand'], 'show') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set v_named = og_eq(v_mode, 'wide') -%}\n{%- set c_17 -%}\n  {%- set c_9 -%}\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(v_named) 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_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(v_named) 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(v_named) 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 flex-col gap-2 p-0', '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}', [og_get(v_nav, ['label']), v_landmarkLabel])) if og_t(v_landmarkLabel) else og_get(v_nav, ['label'])), 'className': og_cnv(['flex-1'])}, 'children': og_markup(c_7)}) }}\n    {%- endif %}\n    {%- if og_t(og_eq(v_mode, 'collapsed')) %}\n      {%- set c_8 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'panel-left', 'Size': 20}}) }}\n      {%- endset -%}\n      {{ og_include('compose/button-plain.html.j2', {'p': {'Type': 'button', 'Class': 'inline-flex size-10 items-center justify-center rounded text-muted-foreground', 'Attrs': og_attrs(['aria-label', og_get(v_nav, ['expand']), 'aria-expanded', ('true' if og_t(og_eq(v_mode, 'wide')) else 'false'), 'data-slot', 'toggle'])}, 'children': c_8}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-6 py-4', ('w-64 px-4' if og_t(v_named) else 'w-16 items-center px-2')]))}, 'children': c_9}) }}\n  {%- if og_t(og_and([og_eq(v_mode, 'twolevel'), og_gt(og_len(og_get(v_nav, ['sub'])), 0)])) %}\n    {%- set c_16 -%}\n      {%- set c_10 -%}\n        {{ og_text(og_get(v_nav, ['subTitle'])) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold', 'Class': 'px-4'}, 'children': c_10}) }}\n      {%- set c_15 -%}\n        {%- set c_14 -%}\n          {%- for v_s in og_l(og_get(v_nav, ['sub'])) %}\n            {%- set c_13 -%}\n              {%- set c_12 -%}\n                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_s, ['icon'])), 'Size': 16}}) }}\n                {%- set c_11 -%}\n                  {{ og_text(og_get(v_s, ['name'])) }}\n                {%- endset -%}\n                {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(('' if og_t(true) else 'sr-only'))}, 'children': c_11}) }}\n              {%- endset -%}\n              {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_s, ['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_s, ['id']), og_get(v_nav, ['subCurrent']))) else '')])]), 'current': og_eq(og_get(v_s, ['id']), og_get(v_nav, ['subCurrent'])), 'size': 'sm', 'testid': 'item'}, 'children': og_markup(c_12)}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'sub-row'])}, 'children': c_13}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_14}) }}\n      {%- endset -%}\n      {{ og_include('blocks/nav-block.html.j2', {'p': {'label': (og_uniq(og_tpl('{0}, {1}', [og_get(v_nav, ['subTitle']), v_landmarkLabel])) if og_t(v_landmarkLabel) else og_get(v_nav, ['subTitle']))}, 'children': og_markup(c_15)}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex w-56 flex-col gap-4 px-4 py-6', ('border-r border-border' if og_t(og_eq(v_side, 'end')) else 'border-l border-border')])), 'Attrs': og_attrs(['data-slot', 'subnav'])}, 'children': c_16}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'aside', 'Class': og_s(og_cnv(['flex shrink-0 bg-card', ('flex-row-reverse border-l border-border' if og_t(og_eq(v_side, 'end')) else 'border-r border-border')])), 'Attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, og_get(v_nav, ['label'])]), 'data-mode', v_mode, 'data-slot', 'sidebar'])}, 'children': c_17}) }}\n",
      "path": "blocks/shell-sidebar.html.j2",
      "target": "blocks/shell-sidebar.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "shell-sidebar",
  "registryDependencies": [
    "block",
    "box",
    "button-plain",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "nav-block",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Shell Sidebar",
  "type": "registry:component"
}
