@bluemarble/bm-components 0.0.76 → 0.0.79
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.
|
@@ -6,6 +6,7 @@ export interface ColumnsProps {
|
|
|
6
6
|
width?: number;
|
|
7
7
|
sx?: SxProps;
|
|
8
8
|
canSort?: boolean;
|
|
9
|
+
children?: ReactNode;
|
|
9
10
|
}
|
|
10
11
|
interface GridProps {
|
|
11
12
|
columns: ColumnsProps[];
|
|
@@ -27,6 +28,8 @@ interface GridProps {
|
|
|
27
28
|
rowsPerPage: number;
|
|
28
29
|
onPageChange: (pageNumber: number) => void;
|
|
29
30
|
setRowsPerPage: (rows: number) => void;
|
|
31
|
+
isLoading?: boolean;
|
|
32
|
+
hideFooter?: boolean;
|
|
30
33
|
}
|
|
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;
|
|
34
|
+
export declare function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, hideFooter, isLoading }: GridProps): JSX.Element;
|
|
32
35
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -200,6 +200,7 @@ interface ColumnsProps {
|
|
|
200
200
|
width?: number;
|
|
201
201
|
sx?: SxProps;
|
|
202
202
|
canSort?: boolean;
|
|
203
|
+
children?: ReactNode;
|
|
203
204
|
}
|
|
204
205
|
interface GridProps {
|
|
205
206
|
columns: ColumnsProps[];
|
|
@@ -221,8 +222,10 @@ interface GridProps {
|
|
|
221
222
|
rowsPerPage: number;
|
|
222
223
|
onPageChange: (pageNumber: number) => void;
|
|
223
224
|
setRowsPerPage: (rows: number) => void;
|
|
225
|
+
isLoading?: boolean;
|
|
226
|
+
hideFooter?: boolean;
|
|
224
227
|
}
|
|
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;
|
|
228
|
+
declare function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, hideFooter, isLoading }: GridProps): JSX.Element;
|
|
226
229
|
|
|
227
230
|
declare type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in';
|
|
228
231
|
declare type FilterProps = {
|