@pantheon-systems/pds-toolkit-react 2.0.0-alpha.22 → 2.0.0-alpha.23
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/components/Table/Table.d.ts +5 -0
- package/dist/index.js +490 -481
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ export interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
|
21
21
|
currentPage?: number;
|
|
22
22
|
/**
|
|
23
23
|
* Column id to sort by on initial render. Only applies in uncontrolled sort mode.
|
|
24
|
+
* Like `defaultValue` in HTML inputs, this is mount-only — changing it after mount
|
|
25
|
+
* has no effect. Use `sortKey` + `onSort` for controlled sort.
|
|
24
26
|
*/
|
|
25
27
|
defaultSortKey?: string;
|
|
26
28
|
/**
|
|
@@ -96,6 +98,9 @@ export interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
|
96
98
|
/**
|
|
97
99
|
* Callback fired when row selection changes. Providing this prop enables
|
|
98
100
|
* the checkbox column. Receives the full array of currently selected row IDs.
|
|
101
|
+
* Note: in uncontrolled selection mode, IDs of rows removed from `rowData`
|
|
102
|
+
* (e.g. after filtering) remain in the internal selection set. Clear selection
|
|
103
|
+
* explicitly when filtering if stale IDs are a concern.
|
|
99
104
|
*/
|
|
100
105
|
onRowSelectionChange?: (ids: string[]) => void;
|
|
101
106
|
/**
|