{
  "$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 = (p.nav ?? null) -%}\n{%- set v_mode = (p.mode ?? 'wide') -%}\n{%- set v_side = (p.side ?? 'start') -%}\n{%- set v_brand = (p.brand ?? 'show') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\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        {{ include('icons/LucideIcon.html.twig', {'name': 'layers', 'size': 24}, with_context = false) }}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_nav, ['brand'])) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'bold', 'class': og_s((og_t(v_named) ? '' : 'sr-only')), 'children': c_1}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': 'shrink-0', 'attrs': og_attrs(['data-slot', 'brand']), 'children': c_2}, with_context = false) }}\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                {{ 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(v_named) ? '' : '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 py-2 text-sm', (og_t(v_named) ? '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)}, 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': 'm-0 flex list-none flex-col gap-2 p-0', '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}', [og_get(v_nav, ['label']), v_landmarkLabel])) : og_get(v_nav, ['label'])), 'className': og_cnv(['flex-1'])}, 'children': og_markup(c_7)}, with_context = false) }}\n    {%- endif %}\n    {%- if og_t(og_eq(v_mode, 'collapsed')) %}\n      {%- set c_8 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'panel-left', 'size': 20}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/ButtonPlain.html.twig', {'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', (og_t(og_eq(v_mode, 'wide')) ? 'true' : 'false'), 'data-slot', 'toggle']), 'children': c_8}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-6 py-4', (og_t(v_named) ? 'w-64 px-4' : 'w-16 items-center px-2')])), 'children': c_9}, with_context = false) }}\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      {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'class': 'px-4', 'children': c_10}, with_context = false) }}\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                {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_s, ['icon'])), 'size': 16}, with_context = false) }}\n                {%- set c_11 -%}\n                  {{ og_text(og_get(v_s, ['name'])) }}\n                {%- endset -%}\n                {{ include('compose/Inline.html.twig', {'class': og_s((og_t(true) ? '' : 'sr-only')), 'children': c_11}, with_context = false) }}\n              {%- endset -%}\n              {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_s, ['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_s, ['id']), og_get(v_nav, ['subCurrent']))) ? 'bg-muted font-medium' : '')])]), 'current': og_eq(og_get(v_s, ['id']), og_get(v_nav, ['subCurrent'])), 'size': 'sm', 'testid': 'item'}, 'children': og_markup(c_12)}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'attrs': og_attrs(['data-slot', 'sub-row']), 'children': c_13}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-2 p-0', 'children': c_14}, with_context = false) }}\n      {%- endset -%}\n      {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [og_get(v_nav, ['subTitle']), v_landmarkLabel])) : og_get(v_nav, ['subTitle']))}, 'children': og_markup(c_15)}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex w-56 flex-col gap-4 px-4 py-6', (og_t(og_eq(v_side, 'end')) ? 'border-r border-border' : 'border-l border-border')])), 'attrs': og_attrs(['data-slot', 'subnav']), 'children': c_16}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'aside', 'class': og_s(og_cnv(['flex shrink-0 bg-card', (og_t(og_eq(v_side, 'end')) ? 'flex-row-reverse border-l border-border' : '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}, with_context = false) }}\n",
      "path": "blocks/shell-sidebar.html.twig",
      "target": "blocks/shell-sidebar.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "shell-sidebar",
  "registryDependencies": [
    "block",
    "box",
    "button-plain",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "nav-block",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Shell Sidebar",
  "type": "registry:component"
}
