@bluemarble/bm-components 0.0.45 → 0.0.46
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.
|
@@ -28,5 +28,5 @@ interface GridProps {
|
|
|
28
28
|
onPageChange: (pageNumber: number) => void;
|
|
29
29
|
setRowsPerPage: (rows: number) => void;
|
|
30
30
|
}
|
|
31
|
-
export declare function BaseGrid({ columns
|
|
31
|
+
export declare function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, }: GridProps): JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -7,10 +7,10 @@ interface UseGridProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function useGrid<T extends Record<string, any>>({ columns, filters, rowsPerPageOptions, }: UseGridProps): {
|
|
9
9
|
data: any[];
|
|
10
|
+
defaultData: T[];
|
|
10
11
|
set: (data: T[]) => void;
|
|
11
12
|
onSortBy: (prop: string) => void;
|
|
12
13
|
sortedBy: string;
|
|
13
|
-
defaultData: T[];
|
|
14
14
|
sortedDirection: "desc" | "asc";
|
|
15
15
|
columns: ColumnsProps[];
|
|
16
16
|
currentPage: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ interface GridProps {
|
|
|
222
222
|
onPageChange: (pageNumber: number) => void;
|
|
223
223
|
setRowsPerPage: (rows: number) => void;
|
|
224
224
|
}
|
|
225
|
-
declare function BaseGrid({ columns
|
|
225
|
+
declare function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, }: GridProps): JSX.Element;
|
|
226
226
|
|
|
227
227
|
declare type FilterCompareType = "gte" | "lte" | "lt" | "gt" | "equal" | "in";
|
|
228
228
|
declare type FilterProps = {
|
|
@@ -249,10 +249,10 @@ interface UseGridProps {
|
|
|
249
249
|
}
|
|
250
250
|
declare function useGrid<T extends Record<string, any>>({ columns, filters, rowsPerPageOptions, }: UseGridProps): {
|
|
251
251
|
data: any[];
|
|
252
|
+
defaultData: T[];
|
|
252
253
|
set: (data: T[]) => void;
|
|
253
254
|
onSortBy: (prop: string) => void;
|
|
254
255
|
sortedBy: string;
|
|
255
|
-
defaultData: T[];
|
|
256
256
|
sortedDirection: "desc" | "asc";
|
|
257
257
|
columns: ColumnsProps[];
|
|
258
258
|
currentPage: number;
|