@secondstaxorg/sscomp 1.9.18 → 1.9.21
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 +30 -26
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +82 -54
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +29 -25
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
- package/types/components/Pagination/type.d.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/Secondstax/sscomp.git"
|
|
10
10
|
},
|
|
11
|
-
"description": "A react component library for
|
|
11
|
+
"description": "A react component library for secondSTAX",
|
|
12
12
|
"main": "dist/index.min.js",
|
|
13
13
|
"module": "dist/index.es.js",
|
|
14
14
|
"types": "types/index.d.ts",
|
|
@@ -15,6 +15,17 @@ export interface PaginationProps {
|
|
|
15
15
|
* Callback function that returns the set of items that have been paginated based on the number of items per page
|
|
16
16
|
*/
|
|
17
17
|
paginatedItems: (arr: []) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Callback function to return the total number of items to be paginated
|
|
20
|
+
*/
|
|
21
|
+
numItems?: (a: number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback function to return start and end position of the items that have been paginated relative to the `items` array
|
|
24
|
+
*/
|
|
25
|
+
paginatedItemsRange?: (range: {
|
|
26
|
+
start: number;
|
|
27
|
+
end: number;
|
|
28
|
+
}) => void;
|
|
18
29
|
/**
|
|
19
30
|
* Specify custom label for text displayed throughout component
|
|
20
31
|
*/
|