@pantheon-systems/pds-toolkit-react 2.0.0-alpha.23 → 2.0.0-alpha.24
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 +6 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +343 -339
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{Skiplink → links/Skiplink}/Skiplink.d.ts +0 -0
|
@@ -4,10 +4,15 @@ export type SortOrder = 'asc' | 'desc';
|
|
|
4
4
|
export interface TableColumn {
|
|
5
5
|
/** Content to display in the header cell. */
|
|
6
6
|
header: ReactNode;
|
|
7
|
-
/** Stable identifier used for
|
|
7
|
+
/** Stable identifier used for rendering cell content from rowData. */
|
|
8
8
|
id: string;
|
|
9
9
|
/** When true, renders a sort button next to the header label. */
|
|
10
10
|
sortable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Key to use for sorting instead of `id`. Use when the cell renders a
|
|
13
|
+
* ReactNode but a separate plain-text field in rowData should drive the sort.
|
|
14
|
+
*/
|
|
15
|
+
sortKey?: string;
|
|
11
16
|
}
|
|
12
17
|
export interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
13
18
|
/** Additional class names */
|