{
  "$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\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"
    },
    {
      "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\">\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</script>\n\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport Block from \"../compose/Block.vue\";\nimport Box from \"../compose/Box.vue\";\nimport ShellContent from \"../components/shell-content.vue\";\nimport ShellFooter from \"../components/shell-footer.vue\";\nimport ShellSidebar from \"../components/shell-sidebar.vue\";\nimport ShellTopbar from \"../components/shell-topbar.vue\";\nimport { cn, tpl } from \"../utils\";\n\nconst {\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} = defineProps<DashboardShellProps>();\nconst titleId = computed(() => tpl(\"{0}-title\", id));\n</script>\n\n<template>\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        <ShellTopbar v-if=\"((topbar as string) === 'full')\"\n          :nav=\"nav\"\n          :links=\"(((sidebar as string) === 'none') ? 'show' : 'hide')\"\n          :search=\"search\"\n          :landmarkLabel=\"landmarkLabel\"\n        />\n        <Box :class=\"cn('flex min-h-0 flex-1', (((side as string) === 'end') ? 'flex-row-reverse' : ''))\">\n          <ShellSidebar v-if=\"((sidebar as string) !== 'none')\"\n            :nav=\"nav\"\n            :mode=\"sidebar\"\n            :side=\"side\"\n            :brand=\"(((topbar as string) === 'full') ? 'hide' : 'show')\"\n            :landmarkLabel=\"landmarkLabel\"\n          />\n          <Box class=\"flex min-w-0 flex-1 flex-col\">\n            <ShellTopbar v-if=\"((topbar as string) === 'inset')\"\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            <ShellContent :title=\"title\" :titleId=\"titleId\" :level=\"level\" :content=\"content\" />\n            <ShellFooter\n              v-if=\"((footer as string) === 'inset')\"\n              :nav=\"nav\"\n              place=\"inset\"\n              :landmarkLabel=\"landmarkLabel\"\n            />\n          </Box>\n        </Box>\n        <ShellFooter v-if=\"((footer as string) === 'full')\" :nav=\"nav\" :landmarkLabel=\"landmarkLabel\" />\n      </Box>\n    </Box>\n  </Block>\n</template>\n",
      "path": "blocks/dashboard-shell.vue",
      "target": "blocks/dashboard-shell.vue"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "dashboard-shell",
  "registryDependencies": [
    "block",
    "box",
    "nav-bar",
    "shell-content",
    "shell-footer",
    "shell-sidebar",
    "shell-topbar",
    "utils"
  ],
  "runtime": "vue",
  "title": "Dashboard Shell",
  "type": "registry:block"
}
