@oc-digital/react-component-library 5.2.0-beta.43 → 5.2.0-beta.45
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CellProps, HeaderGroup, Row, TableBodyPropGetter, TableBodyProps, TablePropGetter, TableProps } from "react-table";
|
|
2
2
|
import { SchemaOf } from "yup";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { VirtualItem } from "react-virtual/types";
|
|
5
4
|
export type IAlignment = "left" | "right" | "inherit" | "center" | "justify";
|
|
6
5
|
export type RowData = {
|
|
7
6
|
[key: string]: any;
|
|
@@ -92,9 +91,6 @@ export interface ITableContentProps extends Pick<IEditableTableProps, "disabled"
|
|
|
92
91
|
rowsToRender: Row<RowData>[];
|
|
93
92
|
disabled: boolean;
|
|
94
93
|
includeRowSelect: boolean;
|
|
95
|
-
paddingTop: number;
|
|
96
|
-
paddingBottom: number;
|
|
97
|
-
virtualRows: VirtualItem[];
|
|
98
94
|
isAllRowsSelected: boolean;
|
|
99
95
|
selectedFlatRows: Row<RowData>[];
|
|
100
96
|
}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* When using this to size inputs, the input must have CSS box-sizing: content-box
|
|
5
5
|
*/
|
|
6
|
-
export declare function getTextWidth(text: string, element: HTMLElement): string;
|
|
6
|
+
export declare function getTextWidth(text: string, element: HTMLElement, maxWidth?: number): string;
|