{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "template-app-dashboard",
  "type": "registry:block",
  "title": "App dashboard template",
  "description": "A signed-in app screen for a hotel back office (Exempelhotellet): a sidebar and top bar around the figures that matter today, a revenue chart and a sortable bookings table with filters and paging. Built only from App UI blocks in a two-column shell. Graphite and blue, compact.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/app-shell-sidebar.json",
    "https://ui.klarhimmel.com/r/app-shell-topbar.json",
    "https://ui.klarhimmel.com/r/app-dashboard-stats.json",
    "https://ui.klarhimmel.com/r/app-dashboard-chart.json",
    "https://ui.klarhimmel.com/r/app-data-filters.json",
    "https://ui.klarhimmel.com/r/app-data-table.json",
    "https://ui.klarhimmel.com/r/app-data-pagination.json",
    "https://ui.klarhimmel.com/r/theme.json"
  ],
  "files": [
    {
      "path": "templates/app-dashboard.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/templates/app-dashboard.tsx",
      "content": "// App dashboard template (Klarhimmel UI). Each section is a block, its copy is the block's props. Change the\n// copy here; colours, fonts and radius come from the Style. Blocks validate their props and fall back field by field.\n//\n// Wire before shipping:\n//  - Links: `#section` links jump within the screen. Links to https://example.com/app/... are placeholders for your other screens.\n//  - Data: every figure, the chart points and the table rows are fixture data in the page file. Replace them with your own, and pass state=\"loading\", \"empty\" or \"error\" while you fetch.\n//  - Shell: the sidebar and the main column share one grid that stacks below 64rem of container width. The blocks have no h1: add one (the page title) when you build a real screen.\n//  - Style: uses the default Klarhimmel palette, Geist fonts, radius and spacing. Import theme.css after Tailwind.\n\nimport { Theme, type Style } from '../theme/style';\nimport { BlockSurface } from '../blocks/surface';\nimport AppShellSidebar, { spec as AppShellSidebarSpec } from '../blocks/app-shell-sidebar';\nimport AppShellTopbar, { spec as AppShellTopbarSpec } from '../blocks/app-shell-topbar';\nimport AppDashboardStats, { spec as AppDashboardStatsSpec } from '../blocks/app-dashboard-stats';\nimport AppDashboardChart, { spec as AppDashboardChartSpec } from '../blocks/app-dashboard-chart';\nimport AppDataFilters, { spec as AppDataFiltersSpec } from '../blocks/app-data-filters';\nimport AppDataTable, { spec as AppDataTableSpec } from '../blocks/app-data-table';\nimport AppDataPagination, { spec as AppDataPaginationSpec } from '../blocks/app-data-pagination';\n\nconst style: Style = {\n  \"preset\": \"Klarhimmel\",\n  \"mode\": \"light\",\n  \"colors\": {\n    \"canvas\": \"#faf9f7\",\n    \"surface\": \"#ffffff\",\n    \"ink\": \"#17171a\",\n    \"muted\": \"#6b6b75\",\n    \"line\": \"#e8e6e1\",\n    \"accent\": \"#1c6ee0\",\n    \"accentFg\": \"#ffffff\"\n  },\n  \"altColors\": {\n    \"canvas\": \"#0b0b0d\",\n    \"surface\": \"#1a1a1f\",\n    \"ink\": \"#f2f1ee\",\n    \"muted\": \"#8f8f9a\",\n    \"line\": \"#383842\",\n    \"accent\": \"#5b9bf5\",\n    \"accentFg\": \"#0b1a2c\"\n  },\n  \"fonts\": {\n    \"display\": \"Geist\",\n    \"sans\": \"Geist\",\n    \"mono\": \"Geist Mono\"\n  },\n  \"radius\": 8,\n  \"size\": 16\n};\n\nexport default function AppDashboardTemplate() {\n  return (\n    <Theme theme=\"brand\" style={style} mode=\"system\">\n      <div className=\"@container\">\n        <div className=\"grid @4xl:grid-cols-[18rem_1fr]\">\n          <aside aria-label=\"App navigation\" className=\"border-b border-kh-line bg-kh-surface-2 @4xl:border-b-0 @4xl:border-r\">\n      <BlockSurface id=\"sidebar\">\n        <AppShellSidebar\n          props={{\n            ...AppShellSidebarSpec.defaults,\n            ...{\n              \"brand\": \"Exempelhotellet\",\n              \"navLabel\": \"Main navigation\",\n              \"groups\": [\n                {\n                  \"label\": \"Workspace\",\n                  \"collapsible\": false,\n                  \"open\": true,\n                  \"items\": [\n                    {\n                      \"label\": \"Overview\",\n                      \"icon\": \"gauge\",\n                      \"href\": \"#overview\"\n                    },\n                    {\n                      \"label\": \"Bookings\",\n                      \"icon\": \"book\",\n                      \"href\": \"#bookings\",\n                      \"badge\": \"14\"\n                    },\n                    {\n                      \"label\": \"Rooms\",\n                      \"icon\": \"box\",\n                      \"href\": \"https://example.com/app/rooms\"\n                    },\n                    {\n                      \"label\": \"Guests\",\n                      \"icon\": \"users\",\n                      \"href\": \"https://example.com/app/guests\"\n                    }\n                  ]\n                },\n                {\n                  \"label\": \"Manage\",\n                  \"collapsible\": true,\n                  \"open\": true,\n                  \"items\": [\n                    {\n                      \"label\": \"Team\",\n                      \"icon\": \"heart\",\n                      \"href\": \"https://example.com/app/team\"\n                    },\n                    {\n                      \"label\": \"Reports\",\n                      \"icon\": \"chart\",\n                      \"href\": \"#revenue\"\n                    },\n                    {\n                      \"label\": \"Settings\",\n                      \"icon\": \"settings\",\n                      \"href\": \"https://example.com/app/settings\"\n                    }\n                  ]\n                }\n              ],\n              \"active\": \"Overview\",\n              \"collapsed\": false,\n              \"toggle\": {\n                \"collapse\": \"Collapse sidebar\",\n                \"expand\": \"Expand sidebar\"\n              }\n            },\n          } as typeof AppShellSidebarSpec.defaults}\n        />\n      </BlockSurface>\n          </aside>\n          <main className=\"min-w-0\">\n      <BlockSurface id=\"topbar\">\n        <AppShellTopbar\n          props={{\n            ...AppShellTopbarSpec.defaults,\n            ...{\n              \"crumbsLabel\": \"You are here\",\n              \"crumbs\": [\n                {\n                  \"label\": \"Exempelhotellet\",\n                  \"href\": \"https://example.com/app\"\n                },\n                {\n                  \"label\": \"Overview\",\n                  \"href\": \"#overview\"\n                }\n              ],\n              \"account\": {\n                \"label\": \"Account menu\",\n                \"name\": \"Maja Lindqvist\",\n                \"email\": \"maja@exempelhotellet.example\",\n                \"items\": [\n                  \"Profile\",\n                  \"Notifications\",\n                  \"Billing\"\n                ],\n                \"signOut\": \"Sign out\"\n              }\n            },\n          } as typeof AppShellTopbarSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"overview\">\n        <AppDashboardStats\n          props={{\n            ...AppDashboardStatsSpec.defaults,\n            ...{\n              \"title\": \"Today at Exempelhotellet\"\n            },\n          } as typeof AppDashboardStatsSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"revenue\" tone=\"muted\"><AppDashboardChart props={AppDashboardChartSpec.defaults} /></BlockSurface>\n      <BlockSurface id=\"filters\"><AppDataFilters props={AppDataFiltersSpec.defaults} /></BlockSurface>\n      <BlockSurface id=\"bookings\"><AppDataTable props={AppDataTableSpec.defaults} /></BlockSurface>\n      <BlockSurface id=\"pages\"><AppDataPagination props={AppDataPaginationSpec.defaults} /></BlockSurface>\n          </main>\n        </div>\n      </div>\n    </Theme>\n  );\n}\n"
    }
  ]
}
