{
  "component": {
    "id": "dashboard-layout",
    "name": "Dashboard layout",
    "tier": "pro",
    "exampleId": "dashboard-layout",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/dashboard-layout-demo.tsx",
    "exportName": "DashboardLayoutDemo",
    "sha256": "5f90319792c0270078e2bb49a09d9edba6fb857a2db3313f21b893ff694eb7f9",
    "helperImports": [],
    "directComponentImports": [
      "dashboard-layout"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/dashboard-layout",
    "registryUrl": "https://tidalui.com/r/pro/dashboard-layout.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/dashboard-layout",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/dashboard-layout",
      "registryUrl": "https://tidalui.com/r/pro/dashboard-layout.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/dashboard-layout.tsx",
    "exports": [
      "TidalDashboardLayout",
      "TidalDashboardNavAction",
      "TidalDashboardNavGroup",
      "TidalDashboardNavLink"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/dashboard-layout.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-compose-refs@1.1.5",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "dashboard-layout"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/dashboard-layout.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/dashboard-layout.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/dashboard-layout-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useEffect, useId, useMemo, useRef, useState } from \"react\";\n\nimport { Activity, Check, Circle, Download, FolderKanban, LayoutDashboard, Plus, Search } from \"lucide-react\";\n\nimport { TidalDashboardLayout, TidalDashboardNavAction, TidalDashboardNavGroup, TidalDashboardNavLink } from \"./components/ui/dashboard-layout\";\n\nimport \"./components/ui/dashboard-layout.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .dashboard-demo,\\n.tidal-scope .dashboard-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .dashboard-demo {\\n  width: 100%;\\n  max-width: 1240px;\\n  min-width: 0;\\n  padding: clamp(8px, 2.5vw, 28px);\\n  color: var(--t-ink);\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  container: dashboard-demo / inline-size;\\n}\\n\\n.tidal-scope .dashboard-demo > .tidal-dashboard {\\n  max-width: none;\\n}\\n\\n.tidal-scope .dashboard-demo-search {\\n  display: flex;\\n  min-width: 0;\\n  width: min(240px, 30cqi);\\n  min-height: 44px;\\n  align-items: center;\\n  gap: 8px;\\n  padding: 0 11px;\\n  color: var(--t-muted);\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n}\\n\\n.tidal-scope .dashboard-demo-search:focus-within {\\n  color: var(--t-ink);\\n  border-color: var(--t-ink);\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .dashboard-demo-search input {\\n  width: 100%;\\n  min-width: 0;\\n  padding: 0;\\n  color: var(--t-ink);\\n  background: transparent;\\n  border: 0;\\n  outline: 0;\\n  font: inherit;\\n  font-size: 16px;\\n}\\n\\n.tidal-scope .dashboard-demo-search input::placeholder {\\n  color: var(--t-muted);\\n}\\n\\n.tidal-scope .dashboard-demo-add,\\n.tidal-scope .dashboard-demo-section-heading button,\\n.tidal-scope .dashboard-demo-projects button {\\n  display: inline-flex;\\n  min-width: 44px;\\n  min-height: 44px;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 8px;\\n  max-width: 100%;\\n  padding: 8px 12px;\\n  color: var(--t-surface);\\n  background: var(--t-ink);\\n  border: 1px solid var(--t-ink);\\n  border-radius: var(--t-radius-control);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  line-height: 1.35;\\n  cursor: pointer;\\n  overflow-wrap: anywhere;\\n  transition:\\n    color 160ms,\\n    background 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope\\n  :is(\\n    .dashboard-demo-add,\\n    .dashboard-demo-section-heading button,\\n    .dashboard-demo-projects button\\n  ):hover {\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope\\n  :is(\\n    .dashboard-demo-add,\\n    .dashboard-demo-section-heading button,\\n    .dashboard-demo-projects button\\n  ):active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope\\n  :is(\\n    .dashboard-demo-add,\\n    .dashboard-demo-section-heading button,\\n    .dashboard-demo-projects button\\n  ):focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .dashboard-demo-sr {\\n  position: absolute;\\n  width: 1px;\\n  height: 1px;\\n  padding: 0;\\n  margin: -1px;\\n  overflow: hidden;\\n  clip: rect(0 0 0 0);\\n  clip-path: inset(50%);\\n  white-space: nowrap;\\n}\\n\\n.tidal-scope .dashboard-demo-page {\\n  min-width: 0;\\n  animation: dashboard-demo-page-in 420ms var(--t-ease-out) both;\\n}\\n\\n.tidal-scope .dashboard-demo-page-header {\\n  display: flex;\\n  min-width: 0;\\n  align-items: flex-start;\\n  justify-content: space-between;\\n  gap: 20px;\\n  padding-bottom: 24px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .dashboard-demo-page-header > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-eyebrow,\\n.tidal-scope .dashboard-demo-date,\\n.tidal-scope .dashboard-demo-section-heading > div > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 660;\\n  letter-spacing: 0.1em;\\n  line-height: 1.45;\\n}\\n\\n.tidal-scope .dashboard-demo-page-header h2 {\\n  margin: 9px 0 0;\\n  color: var(--t-ink);\\n  font-size: clamp(30px, 5.2cqi, 48px);\\n  font-weight: 500;\\n  letter-spacing: -0.055em;\\n  line-height: 1;\\n  text-wrap: balance;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-page-header h2:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 5px;\\n}\\n\\n.tidal-scope .dashboard-demo-page-header p {\\n  max-width: 54ch;\\n  margin: 11px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.6;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-date {\\n  flex: none;\\n  padding-top: 5px;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .dashboard-demo-metrics {\\n  display: grid;\\n  grid-template-columns: repeat(3, minmax(0, 1fr));\\n  gap: 1px;\\n  min-width: 0;\\n  margin-top: 20px;\\n  overflow: hidden;\\n  background: var(--t-border);\\n  border: 1px solid var(--t-border);\\n  border-radius: 16px;\\n}\\n\\n.tidal-scope .dashboard-demo-metrics article {\\n  min-width: 0;\\n  min-height: 142px;\\n  padding: 19px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .dashboard-demo-metrics :is(span, strong, small) {\\n  display: block;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-metrics span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 650;\\n  letter-spacing: 0.08em;\\n  line-height: 1.4;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .dashboard-demo-metrics strong {\\n  margin-top: 15px;\\n  color: var(--t-ink);\\n  font-size: clamp(25px, 3.8cqi, 38px);\\n  font-weight: 520;\\n  letter-spacing: -0.045em;\\n  line-height: 1;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .dashboard-demo-metrics small {\\n  margin-top: 12px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .dashboard-demo-work {\\n  min-width: 0;\\n  margin-top: 18px;\\n  padding: 19px;\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 16px;\\n}\\n\\n.tidal-scope .dashboard-demo-section-heading {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 14px;\\n  padding-bottom: 14px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .dashboard-demo-section-heading > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-section-heading h3 {\\n  margin: 4px 0 0;\\n  color: var(--t-ink);\\n  font-size: 13px;\\n  font-weight: 620;\\n  line-height: 1.4;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-section-heading button,\\n.tidal-scope .dashboard-demo-projects button {\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  border-color: var(--t-border);\\n}\\n\\n.tidal-scope .dashboard-demo-task-list {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list > label {\\n  position: relative;\\n  display: grid;\\n  grid-template-columns: 44px minmax(0, 1fr);\\n  min-width: 0;\\n  min-height: 58px;\\n  align-items: center;\\n  gap: 10px;\\n  padding: 6px 0;\\n  border-bottom: 1px solid var(--t-border);\\n  cursor: pointer;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list > label:last-child {\\n  border-bottom: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list input {\\n  position: absolute;\\n  width: 44px;\\n  height: 44px;\\n  margin: 0;\\n  opacity: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-checkbox {\\n  display: grid;\\n  width: 32px;\\n  height: 32px;\\n  place-items: center;\\n  color: var(--t-muted);\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: 9px;\\n  transition:\\n    color 160ms,\\n    background 180ms,\\n    transform 240ms var(--t-ease-spring);\\n}\\n\\n.tidal-scope [data-complete=\\\"true\\\"] .dashboard-demo-checkbox {\\n  color: var(--t-surface);\\n  background: var(--t-ink);\\n  border-color: var(--t-ink);\\n  transform: rotate(-3deg);\\n}\\n\\n.tidal-scope\\n  .dashboard-demo-task-list\\n  input:focus-visible\\n  + .dashboard-demo-checkbox {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list label > span:last-child {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list :is(strong, small) {\\n  display: block;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list strong {\\n  color: var(--t-ink);\\n  font-size: 11px;\\n  font-weight: 610;\\n  line-height: 1.45;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list small {\\n  margin-top: 2px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.45;\\n}\\n\\n.tidal-scope .dashboard-demo-projects {\\n  display: grid;\\n  grid-template-columns: repeat(3, minmax(0, 1fr));\\n  gap: 12px;\\n  min-width: 0;\\n  margin-top: 20px;\\n}\\n\\n.tidal-scope .dashboard-demo-projects article {\\n  display: flex;\\n  min-width: 0;\\n  min-height: 250px;\\n  flex-direction: column;\\n  padding: 18px;\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 16px;\\n  transition:\\n    border-color 180ms,\\n    transform 240ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .dashboard-demo-projects article[data-active=\\\"true\\\"] {\\n  border-color: var(--t-ink);\\n  box-shadow: inset 0 0 0 1px var(--t-ink);\\n}\\n\\n.tidal-scope .dashboard-demo-projects article > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .dashboard-demo-projects article > div {\\n  min-width: 0;\\n  margin-top: 29px;\\n}\\n\\n.tidal-scope .dashboard-demo-projects h3 {\\n  margin: 0;\\n  color: var(--t-ink);\\n  font-size: 17px;\\n  font-weight: 560;\\n  letter-spacing: -0.03em;\\n  line-height: 1.2;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-projects p {\\n  margin: 9px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.6;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-projects article > small {\\n  margin-top: auto;\\n  padding-top: 22px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n}\\n\\n.tidal-scope .dashboard-demo-projects button {\\n  width: 100%;\\n  margin-top: 11px;\\n}\\n\\n.tidal-scope .dashboard-demo-projects button[aria-pressed=\\\"true\\\"] {\\n  color: var(--t-surface);\\n  background: var(--t-ink);\\n  border-color: var(--t-ink);\\n}\\n\\n.tidal-scope .dashboard-demo-activity {\\n  position: relative;\\n  display: grid;\\n  gap: 0;\\n  min-width: 0;\\n  margin: 20px 0 0;\\n  padding: 0;\\n  overflow: hidden;\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 16px;\\n  list-style: none;\\n}\\n\\n.tidal-scope .dashboard-demo-activity > li {\\n  display: grid;\\n  grid-template-columns: 54px 16px minmax(0, 1fr);\\n  min-width: 0;\\n  min-height: 92px;\\n  align-items: center;\\n  gap: 12px;\\n  padding: 15px 19px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .dashboard-demo-activity > li:last-child {\\n  border-bottom: 0;\\n}\\n\\n.tidal-scope .dashboard-demo-activity time {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .dashboard-demo-activity li > span {\\n  width: 8px;\\n  height: 8px;\\n  border: 2px solid var(--t-ink);\\n  border-radius: 50%;\\n  box-shadow: 0 0 0 5px var(--t-subtle);\\n}\\n\\n.tidal-scope .dashboard-demo-activity p {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-ink);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-empty {\\n  min-width: 0;\\n  padding: 24px;\\n  color: var(--t-muted);\\n  background: var(--t-subtle);\\n  border: 1px dashed var(--t-border);\\n  border-radius: 12px;\\n  font-size: 11px;\\n  line-height: 1.55;\\n  text-align: center;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .dashboard-demo-task-list > .dashboard-demo-empty {\\n  margin-top: 14px;\\n}\\n\\n.tidal-scope .dashboard-demo-status {\\n  min-height: 44px;\\n  margin: 18px 0 0;\\n  padding: 12px 14px;\\n  color: var(--t-muted);\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 11px;\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container dashboard-demo (max-width: 820px) {\\n  .tidal-scope .dashboard-demo-projects {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .dashboard-demo-projects article {\\n    min-height: 0;\\n  }\\n}\\n\\n@container dashboard-demo (max-width: 520px) {\\n  .tidal-scope .dashboard-demo-search {\\n    width: 100%;\\n  }\\n\\n  .tidal-scope .dashboard-demo-add > span {\\n    display: none;\\n  }\\n\\n  .tidal-scope .dashboard-demo-add {\\n    width: 44px;\\n    padding: 0;\\n  }\\n\\n  .tidal-scope .dashboard-demo-page-header,\\n  .tidal-scope .dashboard-demo-section-heading {\\n    align-items: flex-start;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .dashboard-demo-date {\\n    padding-top: 0;\\n  }\\n\\n  .tidal-scope .dashboard-demo-metrics {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .dashboard-demo-metrics article {\\n    min-height: 112px;\\n  }\\n\\n  .tidal-scope .dashboard-demo-section-heading button {\\n    width: 100%;\\n  }\\n\\n  .tidal-scope .dashboard-demo-activity > li {\\n    grid-template-columns: 44px 12px minmax(0, 1fr);\\n    gap: 8px;\\n    padding: 13px;\\n  }\\n}\\n\\n@media (max-width: 390px) {\\n  .tidal-scope .dashboard-demo {\\n    padding: 5px;\\n  }\\n}\\n\\n@media (hover: none) and (pointer: coarse) {\\n  .tidal-scope .dashboard-demo-search input {\\n    font-size: 16px;\\n  }\\n}\\n\\n@keyframes dashboard-demo-page-in {\\n  from {\\n    opacity: 0;\\n    transform: translateY(8px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: none;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .dashboard-demo-page,\\n  .tidal-scope .dashboard-demo-checkbox,\\n  .tidal-scope .dashboard-demo-projects article,\\n  .tidal-scope\\n    :is(\\n      .dashboard-demo-add,\\n      .dashboard-demo-section-heading button,\\n      .dashboard-demo-projects button\\n    ) {\\n    animation: none;\\n    transition: none;\\n    transform: none;\\n  }\\n}\";\n\ntype DashboardView = \"overview\" | \"projects\" | \"activity\";\n\ntype SampleTask = {\n  id: string;\n  title: string;\n  project: string;\n  complete: boolean;\n};\n\nconst INITIAL_TASKS: readonly SampleTask[] = [\n  {\n    id: \"copy\",\n    title: \"Approve sample release copy\",\n    project: \"Launch plan\",\n    complete: true,\n  },\n  {\n    id: \"brief\",\n    title: \"Review fictional project brief\",\n    project: \"Research notes\",\n    complete: false,\n  },\n  {\n    id: \"checklist\",\n    title: \"Confirm local launch checklist\",\n    project: \"Launch plan\",\n    complete: false,\n  },\n];\n\nconst PROJECTS = [\n  {\n    id: \"launch\",\n    name: \"Launch plan\",\n    description: \"Sample release copy, checks, and review notes.\",\n    state: \"In review\",\n  },\n  {\n    id: \"research\",\n    name: \"Research notes\",\n    description: \"Fictional interviews and local source summaries.\",\n    state: \"Active\",\n  },\n  {\n    id: \"archive\",\n    name: \"Archive map\",\n    description: \"A sample index for completed local documents.\",\n    state: \"Planned\",\n  },\n] as const;\n\nconst ACTIVITY_ITEMS = [\n  {\n    id: \"a1\",\n    dateTime: \"2026-10-14T09:30:00\",\n    time: \"09:30\",\n    title: \"Ava completed the sample release copy.\",\n  },\n  {\n    id: \"a2\",\n    dateTime: \"2026-10-14T10:15:00\",\n    time: \"10:15\",\n    title: \"Noah added two fictional research notes.\",\n  },\n  {\n    id: \"a3\",\n    dateTime: \"2026-10-14T11:40:00\",\n    time: \"11:40\",\n    title: \"Mila moved the local checklist into review.\",\n  },\n] as const;\n\nconst VIEW_COPY: Record<DashboardView, { title: string; description: string }> =\n  {\n    overview: {\n      title: \"Workspace overview\",\n      description: \"A connected local view of sample work and progress.\",\n    },\n    projects: {\n      title: \"Sample projects\",\n      description: \"Three fictional projects with locally selected context.\",\n    },\n    activity: {\n      title: \"Recent activity\",\n      description: \"A static sample record of local workspace changes.\",\n    },\n  };\n\nexport function DashboardLayoutDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const overviewId = `dashboard-overview-${generatedId}`;\n  const workTitleId = `dashboard-work-${generatedId}`;\n  const [view, setView] = useState<DashboardView>(\"overview\");\n  const [tasks, setTasks] = useState<readonly SampleTask[]>(INITIAL_TASKS);\n  const [activeProject, setActiveProject] = useState(\"launch\");\n  const [query, setQuery] = useState(\"\");\n  const [status, setStatus] = useState(\n    \"This fictional workspace runs entirely in local React state.\",\n  );\n  const pageHeadingRef = useRef<HTMLHeadingElement>(null);\n  const focusFrame = useRef<number | null>(null);\n\n  useEffect(\n    () => () => {\n      if (focusFrame.current !== null) cancelAnimationFrame(focusFrame.current);\n    },\n    [],\n  );\n\n  function chooseView(next: DashboardView) {\n    setView(next);\n    setQuery(\"\");\n    setStatus(`${VIEW_COPY[next].title} opened locally.`);\n    if (focusFrame.current !== null) cancelAnimationFrame(focusFrame.current);\n    focusFrame.current = requestAnimationFrame(() => {\n      focusFrame.current = null;\n      pageHeadingRef.current?.focus({ preventScroll: true });\n    });\n  }\n\n  function toggleTask(id: string) {\n    setTasks((current) =>\n      current.map((task) =>\n        task.id === id ? { ...task, complete: !task.complete } : task,\n      ),\n    );\n    const task = tasks.find((item) => item.id === id);\n    setStatus(\n      task?.complete\n        ? `${task.title} returned to open sample work.`\n        : `${task?.title ?? \"Sample task\"} marked complete locally.`,\n    );\n  }\n\n  function addSampleTask() {\n    if (tasks.some((task) => task.id === \"walkthrough\")) {\n      setStatus(\"The sample walkthrough task is already visible.\");\n      return;\n    }\n    setTasks((current) => [\n      ...current,\n      {\n        id: \"walkthrough\",\n        title: \"Prepare a fictional workspace walkthrough\",\n        project: \"Launch plan\",\n        complete: false,\n      },\n    ]);\n    setView(\"overview\");\n    setQuery(\"\");\n    setStatus(\"One sample walkthrough task was added locally.\");\n  }\n\n  const normalizedQuery = query.trim().toLocaleLowerCase();\n  const visibleTasks = useMemo(\n    () =>\n      tasks.filter((task) =>\n        `${task.title} ${task.project}`\n          .toLocaleLowerCase()\n          .includes(normalizedQuery),\n      ),\n    [normalizedQuery, tasks],\n  );\n  const visibleProjects = PROJECTS.filter((project) =>\n    `${project.name} ${project.description} ${project.state}`\n      .toLocaleLowerCase()\n      .includes(normalizedQuery),\n  );\n  const visibleActivity = ACTIVITY_ITEMS.filter((item) =>\n    item.title.toLocaleLowerCase().includes(normalizedQuery),\n  );\n  const completedCount = tasks.filter((task) => task.complete).length;\n\n  return (\n    <section className=\"dashboard-demo\">\n      <TidalDashboardLayout\n        title=\"Northstar\"\n        mark=\"N\"\n        brandHref={`#${overviewId}`}\n        brandProps={{\n          onClick: (event: import(\"react\").MouseEvent<HTMLAnchorElement>) => {\n            if (\n              event.button === 0 &&\n              !event.metaKey &&\n              !event.ctrlKey &&\n              !event.shiftKey &&\n              !event.altKey\n            ) {\n              chooseView(\"overview\");\n            }\n          },\n        }}\n        navigation={\n          <>\n            <TidalDashboardNavGroup label=\"Workspace\">\n              <TidalDashboardNavAction\n                label=\"Overview\"\n                icon={<LayoutDashboard />}\n                active={view === \"overview\"}\n                onClick={() => chooseView(\"overview\")}\n              />\n              <TidalDashboardNavAction\n                label=\"Projects\"\n                icon={<FolderKanban />}\n                badge={PROJECTS.length}\n                active={view === \"projects\"}\n                onClick={() => chooseView(\"projects\")}\n              />\n              <TidalDashboardNavAction\n                label=\"Activity\"\n                icon={<Activity />}\n                active={view === \"activity\"}\n                onClick={() => chooseView(\"activity\")}\n              />\n            </TidalDashboardNavGroup>\n            <TidalDashboardNavGroup label=\"Reference\">\n              <TidalDashboardNavLink\n                href=\"/sample-project-brief.txt\"\n                download\n                label=\"Sample brief\"\n                icon={<Download />}\n                onClick={() =>\n                  setStatus(\n                    \"The fictional sample brief download was requested.\",\n                  )\n                }\n              />\n            </TidalDashboardNavGroup>\n          </>\n        }\n        navigationFooter={\n          <span>\n            <strong>Fictional workspace</strong>\n            <small>No account, sync, or saved data</small>\n          </span>\n        }\n        header={\n          <>\n            <label className=\"dashboard-demo-search\">\n              <span className=\"dashboard-demo-sr\">Search this sample view</span>\n              <Search size={15} aria-hidden=\"true\" />\n              <input\n                type=\"search\"\n                value={query}\n                placeholder=\"Search view\"\n                onChange={(event) => setQuery(event.target.value)}\n              />\n            </label>\n            <button\n              className=\"dashboard-demo-add\"\n              type=\"button\"\n              aria-label=\"Add sample task\"\n              onClick={addSampleTask}\n            >\n              <Plus size={15} aria-hidden=\"true\" />\n              <span>Add sample task</span>\n            </button>\n          </>\n        }\n      >\n        <div className=\"dashboard-demo-page\" key={view}>\n          <header className=\"dashboard-demo-page-header\">\n            <div>\n              <span className=\"dashboard-demo-eyebrow\">LOCAL SAMPLE</span>\n              <h2\n                ref={pageHeadingRef}\n                tabIndex={-1}\n                id={\n                  view === \"overview\"\n                    ? overviewId\n                    : `dashboard-${view}-${generatedId}`\n                }\n              >\n                {VIEW_COPY[view].title}\n              </h2>\n              <p>{VIEW_COPY[view].description}</p>\n            </div>\n            <span className=\"dashboard-demo-date\">OCT 14 / 2026</span>\n          </header>\n\n          {view === \"overview\" ? (\n            <div className=\"dashboard-demo-overview\">\n              <div className=\"dashboard-demo-metrics\">\n                <article>\n                  <span>Sample projects</span>\n                  <strong>{String(PROJECTS.length).padStart(2, \"0\")}</strong>\n                  <small>Fictional local records</small>\n                </article>\n                <article>\n                  <span>Tasks complete</span>\n                  <strong>\n                    {completedCount}/{tasks.length}\n                  </strong>\n                  <small>Updates as boxes change</small>\n                </article>\n                <article>\n                  <span>Active context</span>\n                  <strong>\n                    {PROJECTS.find(\n                      (project) => project.id === activeProject,\n                    )?.name.split(\" \")[0] ?? \"None\"}\n                  </strong>\n                  <small>Selected on the Projects page</small>\n                </article>\n              </div>\n\n              <section\n                className=\"dashboard-demo-work\"\n                aria-labelledby={workTitleId}\n              >\n                <div className=\"dashboard-demo-section-heading\">\n                  <div>\n                    <span>OPEN WORK</span>\n                    <h3 id={workTitleId}>Today in the sample workspace</h3>\n                  </div>\n                  <button type=\"button\" onClick={() => chooseView(\"projects\")}>\n                    View projects\n                  </button>\n                </div>\n                <div className=\"dashboard-demo-task-list\">\n                  {visibleTasks.length ? (\n                    visibleTasks.map((task) => (\n                      <label key={task.id} data-complete={task.complete}>\n                        <input\n                          type=\"checkbox\"\n                          checked={task.complete}\n                          onChange={() => toggleTask(task.id)}\n                        />\n                        <span\n                          className=\"dashboard-demo-checkbox\"\n                          aria-hidden=\"true\"\n                        >\n                          {task.complete ? (\n                            <Check size={13} />\n                          ) : (\n                            <Circle size={10} />\n                          )}\n                        </span>\n                        <span>\n                          <strong>{task.title}</strong>\n                          <small>{task.project}</small>\n                        </span>\n                      </label>\n                    ))\n                  ) : (\n                    <div className=\"dashboard-demo-empty\">\n                      No sample tasks match this search.\n                    </div>\n                  )}\n                </div>\n              </section>\n            </div>\n          ) : null}\n\n          {view === \"projects\" ? (\n            <div className=\"dashboard-demo-projects\">\n              {visibleProjects.length ? (\n                visibleProjects.map((project, index) => (\n                  <article\n                    key={project.id}\n                    data-active={activeProject === project.id}\n                    style={\n                      {\n                        \"--dashboard-project-index\": index,\n                      } as React.CSSProperties\n                    }\n                  >\n                    <span>{String(index + 1).padStart(2, \"0\")}</span>\n                    <div>\n                      <h3>{project.name}</h3>\n                      <p>{project.description}</p>\n                    </div>\n                    <small>{project.state}</small>\n                    <button\n                      type=\"button\"\n                      aria-pressed={activeProject === project.id}\n                      onClick={() => {\n                        setActiveProject(project.id);\n                        setStatus(\n                          `${project.name} is the active local sample.`,\n                        );\n                      }}\n                    >\n                      {activeProject === project.id ? \"Active\" : \"Set active\"}\n                    </button>\n                  </article>\n                ))\n              ) : (\n                <div className=\"dashboard-demo-empty\">\n                  No sample projects match this search.\n                </div>\n              )}\n            </div>\n          ) : null}\n\n          {view === \"activity\" ? (\n            <ol className=\"dashboard-demo-activity\">\n              {visibleActivity.length ? (\n                visibleActivity.map((item, index) => (\n                  <li\n                    key={item.id}\n                    style={\n                      {\n                        \"--dashboard-activity-index\": index,\n                      } as React.CSSProperties\n                    }\n                  >\n                    <time dateTime={item.dateTime}>{item.time}</time>\n                    <span aria-hidden=\"true\" />\n                    <p>{item.title}</p>\n                  </li>\n                ))\n              ) : (\n                <li className=\"dashboard-demo-empty\">\n                  No sample activity matches this search.\n                </li>\n              )}\n            </ol>\n          ) : null}\n        </div>\n\n        <p className=\"dashboard-demo-status\" role=\"status\">\n          {status}\n        </p>\n      </TidalDashboardLayout>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <DashboardLayoutDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/dashboard-layout.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"\"",
      "setter": "setQuery",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
