{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The frame of a signed-in app with a first screen: a sidebar, a top bar, or three panes.",
  "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/app-shell.json\n    The frame of a signed-in app with a first screen in it. Axes: layout (sidebar: navigation on the left, top: a bar above the content, panes: a narrow navigation, a list and a detail), density. The collapse of the sidebar is a port contract.\n    Props (p): id, title, nav, user, search, metrics, chart, activity, layout, density, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_nav = ($p['nav'] ?? null)}\n{var $v_user = ($p['user'] ?? null)}\n{var $v_search = ($p['search'] ?? null)}\n{var $v_metrics = ($p['metrics'] ?? null)}\n{var $v_chart = ($p['chart'] ?? null)}\n{var $v_activity = ($p['activity'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'sidebar')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_11}\n  {if og_t(og_eq($v_layout, 'top'))}\n    {capture $c_2}\n      {=og_include('blocks/nav-bar.latte', ['p' => ['label' => og_get($v_nav, ['label']), 'brand' => og_get($v_nav, ['brand']), 'links' => og_get($v_nav, ['links']), 'current' => og_get($v_nav, ['current']), 'search' => $v_search, 'actions' => ['mode' => 'none'], 'layout' => 'search', 'landmarkLabel' => $v_landmarkLabel]])|noescape}\n      {capture $c_1}\n        {=og_include('blocks/app-main.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'metrics' => $v_metrics, 'chart' => $v_chart, 'cols' => '1-4', 'activity' => $v_activity, 'density' => $v_density]])|noescape}\n      {/capture}\n      {=og_include('compose/Container.latte', ['class' => og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'pb-8'])), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_1])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'children' => (string) $c_2])|noescape}\n  {else}\n    {capture $c_10}\n      {if og_t(og_eq($v_layout, 'sidebar'))}\n        {capture $c_3}\n          {=og_include('blocks/sidebar-nav.latte', ['p' => ['label' => og_get($v_nav, ['label']), 'brand' => og_get($v_nav, ['brand']), 'links' => og_get($v_nav, ['links']), 'current' => og_get($v_nav, ['current']), 'userName' => og_get($v_user, ['name']), 'userEmail' => og_get($v_user, ['email']), 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel]])|noescape}\n          {=og_include('blocks/app-main.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'metrics' => $v_metrics, 'chart' => $v_chart, 'activity' => $v_activity, 'density' => $v_density]])|noescape}\n        {/capture}\n        {=og_include('compose/Grid.latte', ['cols' => '1', 'class' => 'items-start gap-6 md:grid-cols-[16rem_minmax(0,1fr)]', 'children' => (string) $c_3])|noescape}\n      {else}\n        {capture $c_9}\n          {=og_include('blocks/sidebar-nav.latte', ['p' => ['label' => og_get($v_nav, ['label']), 'brand' => og_get($v_nav, ['brand']), 'links' => og_get($v_nav, ['links']), 'current' => og_get($v_nav, ['current']), 'userName' => og_get($v_user, ['name']), 'userEmail' => og_get($v_user, ['email']), 'width' => 'compact', 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel]])|noescape}\n          {if og_t(og_gt(og_len(og_get($v_activity, ['events'])), 0))}\n            {capture $c_8}\n              {capture $c_7}\n                {foreach og_l(og_get($v_activity, ['events'])) as $v_e}\n                  {capture $c_6}\n                    {capture $c_4}\n                      {=og_text(og_get($v_e, ['title']))}\n                    {/capture}\n                    {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_4])|noescape}\n                    {capture $c_5}\n                      {=og_text(og_get($v_e, ['time']))}\n                    {/capture}\n                    {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_5])|noescape}\n                  {/capture}\n                  {=og_include('compose/ListItem.latte', ['class' => 'flex flex-col gap-2', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_6])|noescape}\n                {/foreach}\n              {/capture}\n              {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col gap-4 p-0', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_7])|noescape}\n            {/capture}\n            {=og_include('blocks/panel.latte', ['p' => ['title' => og_get($v_activity, ['title']), 'description' => og_get($v_activity, ['text']), 'id' => og_tpl('{0}-list', [$v_id])], 'children' => og_markup($c_8)])|noescape}\n          {/if}\n          {=og_include('blocks/app-main.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'metrics' => $v_metrics, 'chart' => $v_chart, 'density' => 'compact']])|noescape}\n        {/capture}\n        {=og_include('compose/Grid.latte', ['cols' => '1-3', 'class' => 'items-start gap-4', 'children' => (string) $c_9])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Container.latte', ['class' => og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'py-8'])), 'attrs' => og_attrs(['data-slot', 'container']), 'children' => (string) $c_10])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'section', 'class' => 'bg-background', 'attrs' => og_attrs(['aria-labelledby', (og_t($v_landmarkLabel) ? null : og_tpl('{0}-title', [$v_id])), 'data-layout', $v_layout, 'aria-label', $v_landmarkLabel, 'data-slot', 'app-shell']), 'children' => (string) $c_11])|noescape}\n",
      "path": "blocks/app-shell.latte",
      "target": "blocks/app-shell.latte"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "app-shell",
  "registryDependencies": [
    "app-main",
    "block",
    "container",
    "grid",
    "list",
    "list-item",
    "nav-bar",
    "panel",
    "sidebar-nav",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "App Shell",
  "type": "registry:block"
}
