@secondstaxorg/sscomp 1.7.87 → 1.7.89
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/index.es.js +15 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +48 -37
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +26 -22
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/components/Pagination/index.d.ts +4 -6
- package/types/components/Pagination/type.d.ts +18 -0
- package/types/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
currPageNum: number;
|
|
7
|
-
}
|
|
2
|
+
import { PaginationProps } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* Pagination component for paginating an array
|
|
5
|
+
*/
|
|
8
6
|
declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
9
7
|
export default Pagination;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
/**
|
|
3
|
+
* Specify the number of items to paginate per set of returned items
|
|
4
|
+
*/
|
|
5
|
+
itemsPerPage: number;
|
|
6
|
+
/**
|
|
7
|
+
* Callback function that returns the current page number
|
|
8
|
+
*/
|
|
9
|
+
returnedPageNum?: (val: number) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Array of items to be paginated
|
|
12
|
+
*/
|
|
13
|
+
items: any[];
|
|
14
|
+
/**
|
|
15
|
+
* Callback function that returns the set of items that have been paginated based on the number of items per page
|
|
16
|
+
*/
|
|
17
|
+
paginatedItems: (arr: []) => void;
|
|
18
|
+
}
|
|
@@ -72,3 +72,4 @@ export { default as Accordion } from './Accordion/Accordion';
|
|
|
72
72
|
export { default as FileUpload } from './FileUpload/FileUpdload';
|
|
73
73
|
export { default as EmailField } from './EmailField/EmailField';
|
|
74
74
|
export { default as NumberField } from './NumberField/NumberField';
|
|
75
|
+
export { default as Pagination } from './Pagination';
|