hplx-react-elements-dev 1.2.24 → 1.2.26
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.
|
@@ -17,10 +17,11 @@ export interface ReusableTableProps {
|
|
|
17
17
|
onPaginationClick?: ((activePage: number) => void) | undefined;
|
|
18
18
|
displayHeaderName?: string;
|
|
19
19
|
tableClassesToOverride?: string;
|
|
20
|
+
headerRowClasses?: string;
|
|
20
21
|
}
|
|
21
22
|
export interface ITableColDef {
|
|
22
23
|
field: string;
|
|
23
|
-
|
|
24
|
+
headerCellClasses?: string;
|
|
24
25
|
cellClasses?: string;
|
|
25
26
|
description?: string;
|
|
26
27
|
fieldHeaderName: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ITableColDef } from
|
|
3
|
-
import { IPaginationProps } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ITableColDef } from "../ReusableTableTypes";
|
|
3
|
+
import { IPaginationProps } from "../components/Pagination";
|
|
4
4
|
interface TableContextProps {
|
|
5
5
|
rowsData: Array<object>;
|
|
6
6
|
allColumns: ITableColDef[];
|
|
7
|
+
headerRowClasses: string;
|
|
7
8
|
leftPinnedColumns: ITableColDef[];
|
|
8
9
|
rightPinnedColumns: ITableColDef[];
|
|
9
10
|
nonPinnedColumns: ITableColDef[];
|
|
@@ -14,10 +15,11 @@ interface TableContextProps {
|
|
|
14
15
|
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
15
16
|
}
|
|
16
17
|
export declare const useTableContext: () => TableContextProps;
|
|
17
|
-
export declare const TableProvider: ({ children, initialColumns, rowData, paginationProps, onPaginationClick }: {
|
|
18
|
+
export declare const TableProvider: ({ children, initialColumns, rowData, headerRowClasses, paginationProps, onPaginationClick, }: {
|
|
18
19
|
children: React.ReactNode;
|
|
19
20
|
initialColumns: Array<ITableColDef>;
|
|
20
21
|
rowData: Array<object>;
|
|
22
|
+
headerRowClasses: string;
|
|
21
23
|
paginationProps: IPaginationProps;
|
|
22
24
|
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
23
25
|
}) => JSX.Element;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -306,6 +306,8 @@ export interface DropdownFieldProps<IsMulti extends boolean> {
|
|
|
306
306
|
showSelectAllOption?: IsMulti extends true ? boolean : never;
|
|
307
307
|
selectAllLabel?: IsMulti extends true ? string : never;
|
|
308
308
|
prefixLabel?: string;
|
|
309
|
+
labelClassName?: string;
|
|
310
|
+
placeholderClassName?: string;
|
|
309
311
|
}
|
|
310
312
|
export type Select = <IsMulti extends boolean = false>(props: DropdownFieldProps<IsMulti>) => ReactElement;
|
|
311
313
|
export interface CardType {
|