@apolitical/component-library 1.18.3 → 1.18.5-beta.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/discussion/components/add-post/add-post.d.ts +9 -4
- package/discussion/components/form/form.d.ts +4 -2
- package/discussion/components/form/index.d.ts +1 -0
- package/discussion/components/thread/thread.d.ts +13 -5
- package/discussion/feeds/replies-feed/nested-replies-feed/nested-replies-feed.d.ts +1 -1
- package/index.js +13 -13
- package/index.mjs +1515 -1574
- package/navigation/load-more/load-more.d.ts +5 -7
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonPropsType } from '../../general';
|
|
3
3
|
export interface PaginationType {
|
|
4
4
|
/** Whether or not there is another page of content to load */
|
|
5
5
|
hasNextPage: boolean;
|
|
6
6
|
/** The function that will be invoked when the button is clicked */
|
|
7
|
-
loadNextPage: (
|
|
7
|
+
loadNextPage: (e: React.MouseEvent<HTMLElement>) => void;
|
|
8
8
|
/** Text displayed in the component */
|
|
9
9
|
messages?: {
|
|
10
10
|
button: string;
|
|
@@ -13,14 +13,12 @@ export interface PaginationType {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
interface Props extends PaginationType {
|
|
16
|
-
/** An icon for the button - uses `Button`'s icon format */
|
|
17
|
-
icon: ButtonIconType;
|
|
18
16
|
/** Additional classes */
|
|
19
17
|
className?: string;
|
|
20
18
|
/** GTM event context */
|
|
21
19
|
gtmContext?: string;
|
|
22
|
-
/** The language to use */
|
|
23
|
-
locale?: string;
|
|
24
20
|
}
|
|
25
|
-
|
|
21
|
+
interface Props extends ButtonPropsType {
|
|
22
|
+
}
|
|
23
|
+
declare const LoadMore: ({ hasNextPage, loadNextPage, variant, size, styling, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
24
|
export default LoadMore;
|