{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "73:225"
  },
  "stories": [
    {
      "id": "figma-2131-504",
      "name": "Frame 2",
      "kind": "documented-example",
      "view": {
        "figmaNode": "2131:504",
        "part": "2131:401"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "actual-source-contract",
      "expected": "There is no universal upstream DataTable root primitive. The official pinned Base UI data-table guide defines a caller DataTable<TData>({columns,data}) composition using Table and TanStack Table v9. This reference pins @tanstack/react-table/table-core9.3.1, matching that documented major; v8 get*RowModel APIs are not silently substituted. tableFeatures opts into columnFilteringFeature/columnVisibilityFeature/rowPaginationFeature/rowSelectionFeature/rowSortingFeature, registers createFilteredRowModel/createPaginatedRowModel/createSortedRowModel and includesString/text functions. Core row model is automatic. useTable owns derived feature models; separate state/onSortingChange/onColumnFiltersChange/onColumnVisibilityChange/onRowSelectionChange/onPaginationChange can be caller controlled, and each callback receives a value or updater function—not Base UI eventDetails. columns supplies real accessor/display and header/cell renderers; table.FlexRender renders actual definitions. Sorting only applies where enabled and affects row order, not selected IDs. Filters affect the filtered model; pagination shows that model, with native boundary-disabled Previous/Next controls; source default page size10 is explicitly overridden to2 in this reference. Visibility changes cells and empty-state colSpan, not row data. Stable getRowId is deliberately set to payment.id so sorting/filtering/paging cannot relabel a selected row; default index identity is not assumed safe for externally reordered data. Row selection stores ID booleans independently, so hidden/filtered selected rows may remain selected. Select-all-page and select-all-filtered are distinct source APIs, never conflated. Table is a native table, not an interactive ARIA grid or spreadsheet; no roving cell keyboard/editing behavior is promised. Upstream docs basic example does not add every accessible context: reference supplies real caption, scope=col, aria-sort on current sortable email header, named row checkboxes, visible filter label, pagination landmark and polite matching count. No results is a real row with current visible-column colSpan. Loading/fetch/error/retry are explicit caller concerns; simulated error and durable feedback here are local and do not imply server fetching. The separately frozen dashboard-01 DataTable({data}) block uses its own schema, tabs, drag/reorder, chart/detail and actions; it is a supplementary concrete block, not an additional generic widget API or compulsory feature of every table recipe."
    },
    {
      "id": "keyboard-focus-disabled-error",
      "expected": "Native Tab/Enter/Space reach actual filter/header buttons/row checkboxes/page buttons; text editing remains native. Sorting changes aria-sort and row order without moving focus to a row. Disabled boundary page buttons cannot activate. Row selection is native checkbox state and does not turn tr into a command. Hidden columns remove their controls from the tree; filtered/empty/error feedback remains readable. Escape and arrow keys have no invented table selection/activation meaning; composed menus/dialogs retain their own completed contracts."
    },
    {
      "id": "explicit-instance-composition",
      "expected": "Reference uses the two literal payment records from the official guide plus a clearly named local third record to exercise pagination, USD formatting, stable IDs, page size2 and local error/retry. These dataset/page-size/caption/accessibility choices are caller composition, not visual values inferred from FIG or new upstream exports. The dashboard block is retained in the source inventory for audit; its application-specific drag/detail workflows are outside the generic guide recipe and are explicitly classified as block composition."
    }
  ]
}
