@abgov/react-components 4.0.0-alpha.109 → 4.0.0-alpha.110
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/lib/table/table.d.ts +2 -0
- package/package.json +1 -1
- package/react-components.esm.js +417 -179
- package/react-components.umd.js +416 -179
package/lib/table/table.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
export declare type TableVariant = "normal" | "relaxed";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
+
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
6
|
width?: string;
|
|
6
7
|
stickyheader?: boolean;
|
|
7
8
|
variant?: TableVariant;
|
|
@@ -15,6 +16,7 @@ declare global {
|
|
|
15
16
|
}
|
|
16
17
|
export interface TableProps extends Margins {
|
|
17
18
|
width?: string;
|
|
19
|
+
onSort?: (sortBy: string, sortDir: number) => void;
|
|
18
20
|
variant?: TableVariant;
|
|
19
21
|
testId?: string;
|
|
20
22
|
children: ReactNode;
|
package/package.json
CHANGED