@secondstaxorg/sscomp 1.7.86 → 1.7.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.7.86",
3
+ "version": "1.7.88",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
- interface PaginationProps {
3
- itemsPerPage: number;
4
- totalItems: number;
5
- returnedPageNum: (a: number) => void;
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
+ }
@@ -11,5 +11,8 @@ export interface statusProps {
11
11
  * How wide should the badge be
12
12
  */
13
13
  width?: number | string;
14
+ /**
15
+ * Specify if the badge should be large or small
16
+ */
14
17
  size?: 'sm' | 'lg';
15
18
  }