{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dashboard-01",
  "title": "Dashboard",
  "description": "An overview screen in an app shell: four KPIs with one emphasised, recent invoices with status tints, and plan usage. Renders in any Satori UI design system (cueit, skita, folio or a generated one): install a system first.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "avatar",
    "badge",
    "button",
    "card",
    "input",
    "progress",
    "table"
  ],
  "files": [
    {
      "path": "design-systems/blocks/dashboard-01.tsx",
      "content": "import * as React from \"react\";\nimport {\n  ArrowRight,\n  Bell,\n  CreditCard,\n  FileText,\n  FlaskConical,\n  LayoutDashboard,\n  Plus,\n  Search,\n  Server,\n  Settings,\n  Users,\n} from \"lucide-react\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport {\n  Card,\n  CardAction,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport { Progress } from \"@/components/ui/progress\";\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\nimport { cn } from \"@/lib/utils\";\nimport { AppShell, PageTitle, type AppShellNavItem } from \"./app-shell\";\n\n/**\n * A SaaS overview screen: four KPIs, recent invoices and the plan.\n *\n * Written against the block contract only, so it is a Cueit screen inside\n * `.ds-cueit` and a Skita screen inside `.ds-skita`, with no change to the\n * markup. Replace the sample data with your own.\n */\n\nconst NAV: AppShellNavItem[] = [\n  { label: \"Overview\", icon: LayoutDashboard, href: \"#\", current: true },\n  { label: \"Customers\", icon: Users, href: \"#\" },\n  { label: \"Invoices\", icon: FileText, href: \"#\", count: 3 },\n  { label: \"Billing\", icon: CreditCard, href: \"#\" },\n  { label: \"Settings\", icon: Settings, href: \"#\" },\n];\n\nconst STATS = [\n  { label: \"Revenue\", value: \"$48,210\", caption: \"Up 12% on October\" },\n  { label: \"Customers\", value: \"1,284\", caption: \"86 joined this month\" },\n  { label: \"Churn\", value: \"1.9%\", caption: \"Down from 2.4%\" },\n  { label: \"Open tickets\", value: \"7\", caption: \"Two waiting over a day\" },\n];\n\ntype InvoiceStatus = \"Paid\" | \"Pending\" | \"Overdue\" | \"Refunded\";\n\nconst TONE: Record<InvoiceStatus, string> = {\n  Paid: \"tint-success\",\n  Pending: \"tint-info\",\n  Overdue: \"tint-warning\",\n  Refunded: \"tint-danger\",\n};\n\nconst INVOICES: { id: string; customer: string; status: InvoiceStatus; amount: string; date: string }[] = [\n  { id: \"INV-2041\", customer: \"Kettle & Fern\", status: \"Paid\", amount: \"$2,400.00\", date: \"Nov 4\" },\n  { id: \"INV-2040\", customer: \"Fieldnote\", status: \"Pending\", amount: \"$860.00\", date: \"Nov 3\" },\n  { id: \"INV-2039\", customer: \"Harbor & Co\", status: \"Overdue\", amount: \"$1,120.00\", date: \"Oct 28\" },\n  { id: \"INV-2038\", customer: \"Quill Studio\", status: \"Refunded\", amount: \"$240.00\", date: \"Oct 26\" },\n];\n\nexport function Dashboard01({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <AppShell\n      brand=\"Duebird\"\n      nav={NAV}\n      secondary={{\n        label: \"Workspaces\",\n        items: [\n          { label: \"Production\", icon: Server, href: \"#\" },\n          { label: \"Staging\", icon: FlaskConical, href: \"#\" },\n        ],\n      }}\n      user={{ name: \"Tomás Ruiz\", detail: \"tomas@duebird.app\", initials: \"TR\" }}\n      topbar={\n        <>\n          <label className=\"relative flex w-full max-w-60 items-center\">\n            <span className=\"sr-only\">Search</span>\n            <Search\n              aria-hidden=\"true\"\n              className=\"pointer-events-none absolute left-2.5 size-3.5 text-muted-foreground\"\n            />\n            <Input type=\"search\" placeholder=\"Search\" className=\"h-8 pl-8\" />\n          </label>\n          <Button variant=\"ghost\" size=\"icon-sm\" aria-label=\"Notifications\">\n            <Bell />\n          </Button>\n        </>\n      }\n      className={className}\n      {...props}\n    >\n      <PageTitle\n        title=\"Overview\"\n        subtitle=\"November so far, compared with October.\"\n        actions={\n          <>\n            <Button variant=\"outline\" size=\"sm\">\n              Export\n            </Button>\n            <Button size=\"sm\">\n              <Plus />\n              New invoice\n            </Button>\n          </>\n        }\n      />\n\n      {/* One emphasised tile per row: the first, because revenue is the point. */}\n      <div className=\"grid grid-cols-1 gap-3 @md/main:grid-cols-2 @3xl/main:grid-cols-4\">\n        {STATS.map((stat, i) => (\n          <div\n            key={stat.label}\n            className={cn(\"flex flex-col gap-3 p-5\", i === 0 ? \"ds-tile-emphasis\" : \"ds-tile\")}\n          >\n            <p className=\"ds-label\">{stat.label}</p>\n            <div>\n              <p className=\"ds-stat\">{stat.value}</p>\n              <p className=\"ds-small mt-1 text-muted-foreground\">{stat.caption}</p>\n            </div>\n          </div>\n        ))}\n      </div>\n\n      <div className=\"mt-4 grid gap-4 @3xl/main:grid-cols-3\">\n        <Card className=\"gap-0 py-0 @3xl/main:col-span-2\">\n          <CardHeader className=\"border-b py-4\">\n            <CardTitle>Recent invoices</CardTitle>\n            <CardDescription>The latest four, newest first.</CardDescription>\n            <CardAction>\n              <Button variant=\"outline\" size=\"sm\">\n                All invoices\n                <ArrowRight />\n              </Button>\n            </CardAction>\n          </CardHeader>\n          <CardContent className=\"px-2 pb-2\">\n            <Table>\n              <TableHeader>\n                <TableRow>\n                  <TableHead>Customer</TableHead>\n                  <TableHead>Status</TableHead>\n                  <TableHead className=\"hidden @lg/main:table-cell\">Invoice</TableHead>\n                  <TableHead className=\"text-right\">Amount</TableHead>\n                </TableRow>\n              </TableHeader>\n              <TableBody>\n                {INVOICES.map((row) => (\n                  <TableRow key={row.id}>\n                    <TableCell className=\"font-medium\">\n                      {row.customer}\n                      <span className=\"ds-meta block @lg/main:hidden\">{row.date}</span>\n                    </TableCell>\n                    <TableCell>\n                      <Badge variant=\"outline\" className={TONE[row.status]}>\n                        {row.status}\n                      </Badge>\n                    </TableCell>\n                    <TableCell className=\"ds-meta hidden @lg/main:table-cell\">{row.id}</TableCell>\n                    <TableCell className=\"text-right tabular-nums\">{row.amount}</TableCell>\n                  </TableRow>\n                ))}\n              </TableBody>\n            </Table>\n          </CardContent>\n        </Card>\n\n        <Card className=\"gap-4\">\n          <CardHeader>\n            <CardTitle>Growth plan</CardTitle>\n            <CardDescription>Renews on December 4.</CardDescription>\n            <CardAction>\n              <Badge variant=\"outline\" className=\"tint-success\">\n                Active\n              </Badge>\n            </CardAction>\n          </CardHeader>\n          <CardContent className=\"flex flex-col gap-5\">\n            <div className=\"flex flex-col gap-2\">\n              <div className=\"flex items-baseline justify-between gap-2\">\n                <span className=\"ds-label\">Seats</span>\n                <span className=\"ds-meta\">18 / 25</span>\n              </div>\n              <Progress value={72} aria-label=\"Seats used\" />\n            </div>\n            <div className=\"flex flex-col gap-2\">\n              <div className=\"flex items-baseline justify-between gap-2\">\n                <span className=\"ds-label\">API calls</span>\n                <span className=\"ds-meta\">412k / 1M</span>\n              </div>\n              <Progress value={41} aria-label=\"API calls used\" />\n            </div>\n            <p className=\"ds-small text-muted-foreground\">\n              Need more room?{\" \"}\n              <a href=\"#\" className=\"ds-link\">\n                Compare plans\n              </a>\n            </p>\n            <Button variant=\"outline\" className=\"w-full\">\n              <CreditCard />\n              Manage billing\n            </Button>\n          </CardContent>\n        </Card>\n      </div>\n    </AppShell>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/satori-ui/blocks/dashboard-01.tsx"
    },
    {
      "path": "design-systems/blocks/app-shell.tsx",
      "content": "import * as React from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { Avatar, AvatarFallback } from \"@/components/ui/avatar\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * The frame every application block sits in: a sidebar, a top bar and a\n * content panel.\n *\n * It renders in whichever Satori UI design system scopes it. The structure\n * is fixed; the look comes from the block contract (ds-shell, ds-nav-item …),\n * so Cueit draws translucent chrome on its canvas while Skita insets a ringed\n * white panel on a zinc one, from the same markup.\n *\n * The sidebar narrows to an icon rail rather than disappearing when its\n * container is narrow. It uses container queries, so it responds to the box\n * it is placed in, not to the window.\n */\n\nexport type AppShellNavItem = {\n  label: string;\n  icon: LucideIcon;\n  href: string;\n  /** Marks the row with aria-current=\"page\". */\n  current?: boolean;\n  /** A small count after the label, such as unread items. */\n  count?: number;\n};\n\nexport type AppShellProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n  /** Product name beside the mark. */\n  brand: string;\n  /** One or two characters in the mark. Defaults to the brand's first letter. */\n  mark?: string;\n  nav: AppShellNavItem[];\n  /** A second, labelled list under the main nav (projects, teams …). */\n  secondary?: { label: string; items: AppShellNavItem[] };\n  user?: { name: string; detail?: string; initials: string };\n  /** Content for the top bar: search, breadcrumbs, a notifications button. */\n  topbar?: React.ReactNode;\n};\n\nexport function AppShell({\n  brand,\n  mark,\n  nav,\n  secondary,\n  user,\n  topbar,\n  className,\n  children,\n  ...props\n}: AppShellProps) {\n  return (\n    <div className={cn(\"@container/shell w-full\", className)} {...props}>\n      <div className=\"ds-shell flex min-h-[560px] w-full overflow-hidden\">\n        <aside className=\"ds-shell-sidebar flex w-14 shrink-0 flex-col items-center gap-5 px-2 py-3 @4xl/shell:w-56 @4xl/shell:items-stretch @4xl/shell:px-3\">\n          <div className=\"flex items-center gap-2.5 @4xl/shell:px-2\">\n            <span\n              aria-hidden=\"true\"\n              className=\"ds-mark flex size-7 shrink-0 items-center justify-center text-xs\"\n            >\n              {mark ?? brand.charAt(0)}\n            </span>\n            <span className=\"ds-text hidden truncate font-semibold @4xl/shell:inline\">{brand}</span>\n          </div>\n\n          <nav aria-label=\"Main\" className=\"flex flex-col gap-0.5\">\n            {nav.map((item) => (\n              <ShellLink key={item.label} item={item} />\n            ))}\n          </nav>\n\n          {secondary && (\n            <nav aria-label={secondary.label} className=\"hidden flex-col gap-0.5 @4xl/shell:flex\">\n              <p className=\"ds-label px-2.5 pb-1\">{secondary.label}</p>\n              {secondary.items.map((item) => (\n                <ShellLink key={item.label} item={item} />\n              ))}\n            </nav>\n          )}\n\n          {user && (\n            <div className=\"mt-auto flex items-center gap-2.5 @4xl/shell:px-2 @4xl/shell:py-1\">\n              <Avatar className=\"size-7\">\n                <AvatarFallback>{user.initials}</AvatarFallback>\n              </Avatar>\n              <div className=\"hidden min-w-0 @4xl/shell:block\">\n                <p className=\"ds-small truncate font-medium\">{user.name}</p>\n                {user.detail && <p className=\"ds-meta truncate\">{user.detail}</p>}\n              </div>\n            </div>\n          )}\n        </aside>\n\n        <div className=\"ds-shell-panel @container/main flex min-w-0 flex-1 flex-col\">\n          {topbar && (\n            <div className=\"ds-shell-topbar flex h-12 shrink-0 items-center justify-between gap-3 px-4\">\n              {topbar}\n            </div>\n          )}\n          <main className=\"min-w-0 flex-1 p-5 @3xl/main:p-6\">{children}</main>\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction ShellLink({ item }: { item: AppShellNavItem }) {\n  const Icon = item.icon;\n  return (\n    <a\n      href={item.href}\n      title={item.label}\n      aria-current={item.current ? \"page\" : undefined}\n      className=\"ds-nav-item flex h-8 w-8 items-center justify-center gap-2.5 @4xl/shell:w-auto @4xl/shell:justify-start @4xl/shell:px-2.5\"\n    >\n      <Icon className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n      <span className=\"hidden truncate @4xl/shell:inline\">{item.label}</span>\n      {item.count !== undefined && (\n        <span className=\"ds-meta ml-auto hidden @4xl/shell:inline\">{item.count}</span>\n      )}\n    </a>\n  );\n}\n\n/** Every screen opens with a title, a subtitle and its actions on one row. */\nexport function PageTitle({\n  title,\n  subtitle,\n  actions,\n  className,\n}: {\n  title: string;\n  subtitle?: string;\n  actions?: React.ReactNode;\n  className?: string;\n}) {\n  return (\n    <div className={cn(\"mb-6 flex flex-wrap items-end justify-between gap-x-6 gap-y-3\", className)}>\n      <div className=\"min-w-0\">\n        <h1 className=\"ds-title text-foreground\">{title}</h1>\n        {subtitle && <p className=\"ds-subtitle mt-1 max-w-[68ch]\">{subtitle}</p>}\n      </div>\n      {actions && <div className=\"flex shrink-0 flex-wrap items-center gap-2\">{actions}</div>}\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/satori-ui/blocks/app-shell.tsx"
    }
  ],
  "type": "registry:block"
}