@devbonnysid/ui-kit-default 1.6.6 → 1.7.0
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/components/Table/hooks/usePagination.d.ts +3 -2
- package/dist/index.cjs.js +6 -6
- package/dist/index.es.js +376 -368
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type UsePaginationProps = {
|
|
2
2
|
initialPage?: number;
|
|
3
3
|
initialPageSize?: number;
|
|
4
|
-
totalItems
|
|
4
|
+
totalItems?: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const usePagination: ({ totalItems, initialPageSize, initialPage, }: UsePaginationProps) => {
|
|
6
|
+
export declare const usePagination: ({ totalItems: totalItemsProp, initialPageSize, initialPage, }: UsePaginationProps) => {
|
|
7
7
|
page: number;
|
|
8
8
|
apiPage: number;
|
|
9
9
|
pageSize: number;
|
|
@@ -15,5 +15,6 @@ export declare const usePagination: ({ totalItems, initialPageSize, initialPage,
|
|
|
15
15
|
onChangePageSize: (newPageSize: number) => void;
|
|
16
16
|
onNextPage: () => void;
|
|
17
17
|
onPrevPage: () => void;
|
|
18
|
+
setTotalItems: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
18
19
|
};
|
|
19
20
|
export type UsePaginationReturn = ReturnType<typeof usePagination>;
|