{
  "$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 */\nimport { type JSX } from \"solid-js\";\nimport { Block, Box } from \"../compose\";\nimport { ShellContent } from \"../components/shell-content\";\nimport { ShellFooter } from \"../components/shell-footer\";\nimport { ShellSidebar } from \"../components/shell-sidebar\";\nimport { ShellTopbar } from \"../components/shell-topbar\";\nimport { cn, tpl } from \"../utils\";\nimport type { ShellNav } from \"./dashboard-shell.types\";\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport 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\nexport function DashboardShell({\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) {\n  const titleId = tpl(\"{0}-title\", id);\n  return (\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          {((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          ) : null}\n          <Box class={cn(\"flex min-h-0 flex-1\", (((side as string) === \"end\") ? \"flex-row-reverse\" : \"\"))}>\n            {((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            ) : null}\n            <Box class=\"flex min-w-0 flex-1 flex-col\">\n              {((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              ) : null}\n              <ShellContent title={title} titleId={titleId} level={level} content={content} />\n              {((footer as string) === \"inset\") ? (\n                <ShellFooter nav={nav} place=\"inset\" landmarkLabel={landmarkLabel} />\n              ) : null}\n            </Box>\n          </Box>\n          {((footer as string) === \"full\") ? (\n            <ShellFooter nav={nav} landmarkLabel={landmarkLabel} />\n          ) : null}\n        </Box>\n      </Box>\n    </Block>\n  );\n}\n",
      "path": "blocks/dashboard-shell.tsx",
      "target": "blocks/dashboard-shell.tsx"
    },
    {
      "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": [
      "solid",
      "block"
    ]
  },
  "name": "dashboard-shell",
  "registryDependencies": [
    "compose",
    "nav-bar",
    "shell-content",
    "shell-footer",
    "shell-sidebar",
    "shell-topbar",
    "utils"
  ],
  "runtime": "solid",
  "title": "Dashboard Shell",
  "type": "registry:block"
}
