@apolitical/component-library 1.15.1-beta.0 → 1.15.3

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.
@@ -1,14 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ButtonIconType } from '../../general';
3
3
  export interface PaginationType {
4
- /** The current page we're viewing */
5
- page?: number;
6
- /** The number of elements we're looking to display */
7
- length?: number;
8
- /** The total number of elements that will be displayed on screen */
9
- limit?: number;
4
+ /** Whether there is another page to load */
5
+ hasNextPage: boolean;
10
6
  /** The function that will be invoked when the button is clicked */
11
- loadNextPage?: ((e: React.MouseEvent<HTMLElement>) => void);
7
+ loadNextPage: ((e: React.MouseEvent<HTMLElement>) => void);
12
8
  /** Text displayed in the component */
13
9
  messages?: {
14
10
  button: string;
@@ -26,5 +22,5 @@ interface Props extends PaginationType {
26
22
  /** The language to use */
27
23
  locale?: string;
28
24
  }
29
- declare const LoadMore: ({ page, length, limit, loadNextPage, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
25
+ declare const LoadMore: ({ hasNextPage, loadNextPage, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element;
30
26
  export default LoadMore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.15.1-beta.0",
3
+ "version": "1.15.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {