@nswds/app 1.84.0 → 1.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -16595,12 +16595,13 @@ function DataTable({
16595
16595
  search,
16596
16596
  toolbar,
16597
16597
  columns,
16598
- data
16598
+ data,
16599
+ initialSorting = []
16599
16600
  }) {
16600
16601
  const [rowSelection, setRowSelection] = React5__namespace.useState({});
16601
16602
  const [columnVisibility, setColumnVisibility] = React5__namespace.useState({});
16602
16603
  const [columnFilters, setColumnFilters] = React5__namespace.useState([]);
16603
- const [sorting, setSorting] = React5__namespace.useState([]);
16604
+ const [sorting, setSorting] = React5__namespace.useState(initialSorting);
16604
16605
  const [globalFilter, setGlobalFilter] = React5__namespace.useState("");
16605
16606
  const table = reactTable.useReactTable({
16606
16607
  data,