{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "TreeView",
  "status": "beta",
  "description": "Application tree with hierarchical selection, expansion, roving focus, and arrow-key navigation.",
  "package": {
    "name": "@digitaltableteur/react",
    "import": "import { TreeView } from \"@digitaltableteur/react\";"
  },
  "props": {
    "nodes": {
      "type": "TreeViewNode[]",
      "optional": false,
      "description": "Hierarchical nodes."
    },
    "aria-label": {
      "type": "string",
      "optional": false,
      "description": "Accessible name for the tree."
    },
    "selectedId": {
      "type": "string | null",
      "optional": true,
      "description": "Controlled selected node identifier."
    },
    "defaultSelectedId": {
      "type": "string | null",
      "optional": true,
      "description": "Initial uncontrolled selected node identifier."
    },
    "onSelectedIdChange": {
      "type": "(id: string) => void",
      "optional": true,
      "description": "Receives selection changes."
    },
    "expandedIds": {
      "type": "string[]",
      "optional": true,
      "description": "Controlled expanded node identifiers."
    },
    "defaultExpandedIds": {
      "type": "string[]",
      "optional": true,
      "description": "Initial uncontrolled expanded node identifiers."
    },
    "onExpandedIdsChange": {
      "type": "(ids: string[]) => void",
      "optional": true,
      "description": "Receives expansion changes."
    },
    "size": {
      "type": "union",
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "optional": true,
      "description": "Density scale."
    },
    "className": {
      "type": "string",
      "optional": true
    }
  },
  "accessibility": {
    "criteria": [
      {
        "id": "axe-no-violations",
        "statement": "Required stories produce no axe violations at the configured severity.",
        "verification": "automated",
        "wcag": [
          "2.5.8"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:01.562Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:21.488Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:40.657Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.015Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.117Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:02.029Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:22.008Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:41.173Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:02.264Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:22.252Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:41.417Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.596Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.719Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.308Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.416Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:01.797Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:21.748Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:40.912Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "accessibility-tree",
        "statement": "The accessibility tree (role, name, state) matches the committed snapshot for every required story.",
        "verification": "automated",
        "wcag": [
          "1.3.1",
          "4.1.2"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:01.562Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.317Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:21.488Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:40.657Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.015Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:48.891Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.117Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:02.029Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.786Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:22.008Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:41.173Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:02.264Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:23.015Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:22.252Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:41.417Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.596Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:49.440Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.719Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.dark.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:43.308Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:49.153Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.light.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:37.416Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.dark.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:25:01.797Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.548Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:12:21.748Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.light.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:19:40.912Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "forced-colors-real-browser",
        "statement": "The component remains legible and operable under a real browser forced-colors: active pass.",
        "verification": "automated",
        "check": "npm run test:stories:hc",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-default.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.317Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-disabled-node.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:48.891Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-example.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.786Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-forced-colors.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:23.015Z",
            "passed": true,
            "runner": "local-audit-fixes"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-keyboard-interaction.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:49.440Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-large-tree.forced-colors.json",
            "sourceCommit": "b454078d59a2ce7928c45dbb79e82f840172579f",
            "capturedAt": "2026-10-15T18:19:49.153Z",
            "passed": true,
            "runner": "local-2026-10-15p"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/TreeView/__a11y-evidence__/navigation-treeview-playground.forced-colors.json",
            "sourceCommit": "ffbeeeec52e120b19494e2ac7b4dbab8ff13ceb3",
            "capturedAt": "2026-11-07T09:33:22.548Z",
            "passed": true,
            "runner": "local-audit-fixes"
          }
        ]
      },
      {
        "id": "keyboard-contract",
        "statement": "Every documented keyboard interaction works as specified.",
        "verification": "unverified",
        "wcag": [
          "2.1.1",
          "2.1.2"
        ],
        "note": "No exportable evidence record for this check; re-run the check to capture one."
      },
      {
        "id": "aria-requirements",
        "statement": "Documented ARIA roles, states, and properties are present on the rendered output.",
        "verification": "unverified",
        "wcag": [
          "4.1.2"
        ],
        "note": "No exportable evidence record for this check; re-run the check to capture one."
      },
      {
        "id": "human-a11y-review",
        "statement": "A human completed an end-to-end accessibility review of this component.",
        "verification": "manual",
        "note": "2026-07-26 — tree semantics, roving focus, expansion and selection keyboard behavior, and axe result reviewed in unit tests. 2026-08-03 — Phase 1 pass: light/dark/forced-colors verified in a real browser; full keyboard model (arrows, Home/End, Enter/Space) driven by a play story; axe caught and we fixed selected-row description contrast; AT-tree and real-browser forced-colors evidence captured.",
        "reviewedAt": "2026-07-26"
      }
    ]
  },
  "source": [
    "../../../nextjs-app/shared/components/TreeView/TreeView.module.css",
    "../../../nextjs-app/shared/components/TreeView/TreeView.tsx"
  ]
}
