{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Twelve frames of a signed-in app around empty cards: a top bar across the shell or over the content, with or without search; a wide, rail, collapsed, two-level or no sidebar, at the start or the end; a footer across the shell, under the content or none.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  The frame of a signed-in app around placeholder content. Axes: topbar (full: across the whole shell, inset:\n  over the content column only, none), search (show, hide: the search field of the top bar), sidebar (wide,\n  rail, collapsed: the static collapsed state, twolevel: a rail and a section panel, none: the top bar carries\n  the links), side (start, end), footer (full, inset, none), content (grid, split, list), frame (window: a\n  framed window in a section, page: the whole page). Collapsing the sidebar is a port contract.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { ShellNav } from \"./dashboard-shell.types\";\n  import type { NavLink } from \"./nav-bar.types\";\n\n  export type DashboardShellProps = {\n    id: string;\n    title: string;\n    level?: 1 | 2;\n    nav: ShellNav;\n    topbar?: \"full\" | \"inset\" | \"none\";\n    search?: \"show\" | \"hide\";\n    sidebar?: \"wide\" | \"rail\" | \"collapsed\" | \"twolevel\" | \"none\";\n    side?: \"start\" | \"end\";\n    footer?: \"full\" | \"inset\" | \"none\";\n    content?: \"grid\" | \"split\" | \"list\";\n    frame?: \"window\" | \"page\";\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Box from \"../compose/Box.svelte\";\n  import ShellContent from \"../components/shell-content.svelte\";\n  import ShellFooter from \"../components/shell-footer.svelte\";\n  import ShellSidebar from \"../components/shell-sidebar.svelte\";\n  import ShellTopbar from \"../components/shell-topbar.svelte\";\n  import { cn, tpl } from \"../utils\";\n\n  let {\n    id,\n    title,\n    level = 2,\n    nav,\n    topbar = \"full\",\n    search = \"show\",\n    sidebar = \"wide\",\n    side = \"start\",\n    footer = \"none\",\n    content = \"grid\",\n    frame = \"window\",\n    landmarkLabel,\n  }: DashboardShellProps = $props();\n  const titleId = $derived(tpl(\"{0}-title\", id));\n</script>\n\n<Block\n  tag=\"section\"\n  class={(((frame as string) === \"window\") ? \"bg-background py-12\" : \"bg-background\")}\n  id={id}\n  aria-labelledby={(landmarkLabel ? undefined : titleId)}\n  data-topbar={topbar}\n  data-sidebar={sidebar}\n  data-footer={footer}\n  aria-label={landmarkLabel}\n  data-slot=\"dashboard-shell\"\n>\n  <Box class={(((frame as string) === \"window\") ? \"mx-auto w-full max-w-6xl px-4\" : \"\")}>\n    <Box\n      class={cn(\n        \"flex flex-col overflow-hidden bg-background\",\n        (((frame as string) === \"window\") ? \"min-h-160 rounded border border-border\" : \"min-h-screen\")\n      )}\n      data-slot=\"window\"\n    >\n      {#if ((topbar as string) === \"full\")}\n        <ShellTopbar\n          nav={nav}\n          links={(((sidebar as string) === \"none\") ? \"show\" : \"hide\")}\n          search={search}\n          landmarkLabel={landmarkLabel}\n        />\n      {/if}\n      <Box class={cn(\"flex min-h-0 flex-1\", (((side as string) === \"end\") ? \"flex-row-reverse\" : \"\"))}>\n        {#if ((sidebar as string) !== \"none\")}\n          <ShellSidebar\n            nav={nav}\n            mode={sidebar}\n            side={side}\n            brand={(((topbar as string) === \"full\") ? \"hide\" : \"show\")}\n            landmarkLabel={landmarkLabel}\n          />\n        {/if}\n        <Box class=\"flex min-w-0 flex-1 flex-col\">\n          {#if ((topbar as string) === \"inset\")}\n            <ShellTopbar\n              nav={nav}\n              brand={(((sidebar as string) === \"none\") ? \"show\" : \"hide\")}\n              links={(((sidebar as string) === \"none\") ? \"show\" : \"hide\")}\n              search={search}\n              landmarkLabel={landmarkLabel}\n            />\n          {/if}\n          <ShellContent title={title} titleId={titleId} level={level} content={content} />\n          {#if ((footer as string) === \"inset\")}\n            <ShellFooter nav={nav} place=\"inset\" landmarkLabel={landmarkLabel} />\n          {/if}\n        </Box>\n      </Box>\n      {#if ((footer as string) === \"full\")}\n        <ShellFooter nav={nav} landmarkLabel={landmarkLabel} />\n      {/if}\n    </Box>\n  </Box>\n</Block>\n",
      "path": "blocks/dashboard-shell.svelte",
      "target": "blocks/dashboard-shell.svelte"
    },
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport type ShellNav = {\n  label: string;\n  brand: string;\n  links: NavLink[];\n  current: string;\n  subTitle: string;\n  sub: NavLink[];\n  subCurrent: string;\n  search: string;\n  shortcut: string;\n  expand: string;\n  userName: string;\n  copyright: string;\n  footerLabel: string;\n  footer: NavLink[];\n};\n",
      "path": "blocks/dashboard-shell.types.ts",
      "target": "blocks/dashboard-shell.types.ts"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "dashboard-shell",
  "registryDependencies": [
    "block",
    "box",
    "nav-bar",
    "shell-content",
    "shell-footer",
    "shell-sidebar",
    "shell-topbar",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Dashboard Shell",
  "type": "registry:block"
}
