@up42/up-components 0.10.5 → 0.10.7
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/dist/cjs/index.js +1 -1
- package/dist/cjs/types/components/DataGrid/DataGrid.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/utils/hooks/useRemotePagination.d.ts +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/DataGrid/DataGrid.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/utils/hooks/useRemotePagination.d.ts +4 -0
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DataGridProps as MuiDataGridProps } from '@mui/x-data-grid';
|
|
3
|
-
export { type GridColDef, type GridRowId, type GridSelectionModel } from '@mui/x-data-grid';
|
|
3
|
+
export { type GridColDef, type GridRenderCellParams, type GridRowId, type GridSelectionModel, type GridSortModel, } from '@mui/x-data-grid';
|
|
4
4
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
5
5
|
export declare type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
|
|
6
6
|
/**
|
|
@@ -43,7 +43,7 @@ export { Tag, type TagProps } from './components/Tag/Tag';
|
|
|
43
43
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
44
44
|
export { CodeBox, type CodeBoxProps } from './components/CodeBox/CodeBox';
|
|
45
45
|
export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, TableFooter, TablePagination, TableSortLabel, type TableProps, type TableBodyProps, type TableCellProps, type TableHeadProps, type TableContainerProps, type TableRowProps, type TableFooterProps, type TablePaginationProps, type TableSortLabelProps, } from './components/Table/Table';
|
|
46
|
-
export { DataGrid, type DataGridProps, type GridColDef, type GridRowId, type GridSelectionModel, } from './components/DataGrid/DataGrid';
|
|
46
|
+
export { DataGrid, type DataGridProps, type GridColDef, type GridRenderCellParams, type GridRowId, type GridSelectionModel, type GridSortModel, } from './components/DataGrid/DataGrid';
|
|
47
47
|
export { capitalize } from './utils/helpers/capitalize';
|
|
48
48
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
49
49
|
export { formatNumber } from './utils/helpers/formatNumber';
|
|
@@ -9,6 +9,8 @@ declare type UseRemotePaginationResponse = {
|
|
|
9
9
|
count: number;
|
|
10
10
|
data: any[];
|
|
11
11
|
isLoading: boolean;
|
|
12
|
+
refetch: () => Promise<any>;
|
|
13
|
+
isRefetching: boolean;
|
|
12
14
|
setPage: (page: number) => void;
|
|
13
15
|
setPageSize: (page: number) => void;
|
|
14
16
|
columnsSort: any[];
|
|
@@ -26,5 +28,7 @@ export declare const useRemotePagination: (fetchingHook: ({ params }: {
|
|
|
26
28
|
}) => {
|
|
27
29
|
data: PaginatedResponse<any> | undefined;
|
|
28
30
|
isLoading: boolean;
|
|
31
|
+
refetch: () => Promise<any>;
|
|
32
|
+
isRefetching: boolean;
|
|
29
33
|
}, columns: any[]) => UseRemotePaginationResponse;
|
|
30
34
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ import { TablePaginationProps as TablePaginationProps$1 } from '@mui/material/Ta
|
|
|
46
46
|
import { TableSortLabelProps as TableSortLabelProps$1 } from '@mui/material/TableSortLabel';
|
|
47
47
|
import { TableFooterProps as TableFooterProps$1 } from '@mui/material/TableFooter';
|
|
48
48
|
import { DataGridProps as DataGridProps$1 } from '@mui/x-data-grid';
|
|
49
|
-
export { GridColDef, GridRowId, GridSelectionModel } from '@mui/x-data-grid';
|
|
49
|
+
export { GridColDef, GridRenderCellParams, GridRowId, GridSelectionModel, GridSortModel } from '@mui/x-data-grid';
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Documentation: https://up-components.up42.dev/?path=/story/introduction
|
|
@@ -1902,6 +1902,8 @@ declare type UseRemotePaginationResponse = {
|
|
|
1902
1902
|
count: number;
|
|
1903
1903
|
data: any[];
|
|
1904
1904
|
isLoading: boolean;
|
|
1905
|
+
refetch: () => Promise<any>;
|
|
1906
|
+
isRefetching: boolean;
|
|
1905
1907
|
setPage: (page: number) => void;
|
|
1906
1908
|
setPageSize: (page: number) => void;
|
|
1907
1909
|
columnsSort: any[];
|
|
@@ -1919,6 +1921,8 @@ declare const useRemotePagination: (fetchingHook: ({ params }: {
|
|
|
1919
1921
|
}) => {
|
|
1920
1922
|
data: PaginatedResponse<any> | undefined;
|
|
1921
1923
|
isLoading: boolean;
|
|
1924
|
+
refetch: () => Promise<any>;
|
|
1925
|
+
isRefetching: boolean;
|
|
1922
1926
|
}, columns: any[]) => UseRemotePaginationResponse;
|
|
1923
1927
|
|
|
1924
1928
|
declare type CreateAlertProps = {
|