{
  "$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/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/dashboard-shell.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// DashboardShellProps are the props of DashboardShell; the values are the JSON shapes of the TypeScript props.\ntype DashboardShellProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLevel any `json:\"level\"`\n\tNav any `json:\"nav\"`\n\tTopbar any `json:\"topbar\"`\n\tSearch any `json:\"search\"`\n\tSidebar any `json:\"sidebar\"`\n\tSide any `json:\"side\"`\n\tFooter any `json:\"footer\"`\n\tContent any `json:\"content\"`\n\tFrame any `json:\"frame\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The frame of a signed-in app around placeholder content. Axes: topbar (full: across the whole shell, inset: over the content column only, none), search (show, hide: the search field of the top bar), sidebar (wide, rail, collapsed: the static collapsed state, twolevel: a rail and a section panel, none: the top bar carries the links), side (start, end), footer (full, inset, none), content (grid, split, list), frame (window: a framed window in a section, page: the whole page). Collapsing the sidebar is a port contract.\ntempl DashboardShell(p DashboardShellProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(2)) }}\n\t{{ vNav := p.Nav }}\n\t{{ vTopbar := uiutils.Def(p.Topbar, \"full\") }}\n\t{{ vSearch := uiutils.Def(p.Search, \"show\") }}\n\t{{ vSidebar := uiutils.Def(p.Sidebar, \"wide\") }}\n\t{{ vSide := uiutils.Def(p.Side, \"start\") }}\n\t{{ vFooter := uiutils.Def(p.Footer, \"none\") }}\n\t{{ vContent := uiutils.Def(p.Content, \"grid\") }}\n\t{{ vFrame := uiutils.Def(p.Frame, \"window\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t{{ vTitleId := any(uiutils.Tpl(\"{0}-title\", vId)) }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vFrame, \"window\")), \"bg-background py-12\", \"bg-background\")), Attrs: uiutils.Attrs(\"id\", vId, \"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, vTitleId), \"data-topbar\", vTopbar, \"data-sidebar\", vSidebar, \"data-footer\", vFooter, \"aria-label\", vLandmarkLabel, \"data-slot\", \"dashboard-shell\")}}) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vFrame, \"window\")), \"mx-auto w-full max-w-6xl px-4\", \"\"))}}) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex flex-col overflow-hidden bg-background\", uiutils.Cond(uiutils.T(uiutils.Eq(vFrame, \"window\")), \"min-h-160 rounded border border-border\", \"min-h-screen\"))), Attrs: uiutils.Attrs(\"data-slot\", \"window\")}}) {\n\t\t\t\tif uiutils.Eq(vTopbar, \"full\") {\n\t\t\t\t\t@ShellTopbar(ShellTopbarProps{Nav: vNav, Links: uiutils.Cond(uiutils.T(uiutils.Eq(vSidebar, \"none\")), \"show\", \"hide\"), Search: vSearch, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t}\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex min-h-0 flex-1\", uiutils.Cond(uiutils.T(uiutils.Eq(vSide, \"end\")), \"flex-row-reverse\", \"\")))}}) {\n\t\t\t\t\tif !uiutils.Eq(vSidebar, \"none\") {\n\t\t\t\t\t\t@ShellSidebar(ShellSidebarProps{Nav: vNav, Mode: vSidebar, Side: vSide, Brand: uiutils.Cond(uiutils.T(uiutils.Eq(vTopbar, \"full\")), \"hide\", \"show\"), LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex min-w-0 flex-1 flex-col\"}}) {\n\t\t\t\t\t\tif uiutils.Eq(vTopbar, \"inset\") {\n\t\t\t\t\t\t\t@ShellTopbar(ShellTopbarProps{Nav: vNav, Brand: uiutils.Cond(uiutils.T(uiutils.Eq(vSidebar, \"none\")), \"show\", \"hide\"), Links: uiutils.Cond(uiutils.T(uiutils.Eq(vSidebar, \"none\")), \"show\", \"hide\"), Search: vSearch, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@ShellContent(ShellContentProps{Title: vTitle, TitleId: vTitleId, Level: vLevel, Content: vContent})\n\t\t\t\t\t\tif uiutils.Eq(vFooter, \"inset\") {\n\t\t\t\t\t\t\t@ShellFooter(ShellFooterProps{Nav: vNav, Place: \"inset\", LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif uiutils.Eq(vFooter, \"full\") {\n\t\t\t\t\t@ShellFooter(ShellFooterProps{Nav: vNav, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/dashboard-shell.templ",
      "target": "blocks/dashboard-shell.templ"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "dashboard-shell",
  "registryDependencies": [
    "block",
    "box",
    "kit-box",
    "shell-content",
    "shell-footer",
    "shell-sidebar",
    "shell-topbar",
    "utils"
  ],
  "runtime": "templ",
  "title": "Dashboard Shell",
  "type": "registry:block"
}
