@apolitical/component-library 1.5.0 → 1.6.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/communities/community-details/community-details.d.ts +11 -1
- package/communities/index.d.ts +1 -0
- package/communities/join-button/join-button.d.ts +3 -1
- package/communities/members-list/index.d.ts +1 -0
- package/communities/members-list/members-list.d.ts +23 -0
- package/discussion/likes/likes.d.ts +16 -6
- package/discussion/likes/likes.helpers.d.ts +2 -0
- package/discussion/post/post.d.ts +6 -3
- package/general/index.d.ts +1 -0
- package/general/link/link.d.ts +1 -1
- package/general/tooltip/index.d.ts +1 -0
- package/general/tooltip/tooltip.d.ts +11 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/numbers.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/use-scroll-to-hash.d.ts +2 -0
- package/index.js +48 -48
- package/index.mjs +6885 -6734
- package/navigation/breadcrumbs/breadcrumbs.d.ts +16 -0
- package/navigation/breadcrumbs/index.d.ts +1 -0
- package/navigation/index.d.ts +1 -0
- package/navigation/load-more/index.d.ts +1 -0
- package/navigation/load-more/load-more.d.ts +7 -5
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_links.scss +4 -1
- package/styles/base/_titles.scss +16 -0
- package/styles/base/buttons/_buttons.scss +52 -1
- package/styles/base/buttons/_icons.scss +1 -0
- package/styles/base/buttons/_sizes.scss +1 -0
- package/styles/variables/colors/_theme.scss +18 -2
- package/text/empty-state-box/empty-state-box.d.ts +3 -1
- package/text/pill/pill.d.ts +5 -1
- package/user/contributors/contributors.d.ts +5 -2
- package/user/contributors/contributors.mock.d.ts +8 -5
- package/user/member/index.d.ts +1 -1
- package/user/member/member.d.ts +15 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface BreadcrumbsType {
|
|
2
|
+
/** The text to show for the breadcrumb */
|
|
3
|
+
text: string;
|
|
4
|
+
/** The link to use for the breadcrumb */
|
|
5
|
+
href: string;
|
|
6
|
+
/** Whether the breadcrumb is the current page */
|
|
7
|
+
current?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
/** The filter details */
|
|
11
|
+
breadcrumbs: BreadcrumbsType[];
|
|
12
|
+
/** Additional classes */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const Breadcrumbs: ({ breadcrumbs, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default Breadcrumbs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Breadcrumbs } from './breadcrumbs';
|
package/navigation/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonIconType } from '../../general';
|
|
3
|
-
interface
|
|
3
|
+
export interface PaginationType {
|
|
4
4
|
/** The current page we're viewing */
|
|
5
5
|
page?: number;
|
|
6
6
|
/** The number of elements we're looking to display */
|
|
@@ -8,15 +8,17 @@ interface Props {
|
|
|
8
8
|
/** The total number of elements that will be displayed on screen */
|
|
9
9
|
limit?: number;
|
|
10
10
|
/** The function that will be invoked when the button is clicked */
|
|
11
|
-
loadNextPage
|
|
12
|
-
/** An icon for the button - uses `Button`'s icon format */
|
|
13
|
-
icon: ButtonIconType;
|
|
11
|
+
loadNextPage?: ((e: React.MouseEvent<HTMLElement>) => void);
|
|
14
12
|
/** Text displayed in the component */
|
|
15
|
-
messages
|
|
13
|
+
messages?: {
|
|
16
14
|
button: string;
|
|
17
15
|
endOfFeed: string;
|
|
18
16
|
error: string;
|
|
19
17
|
};
|
|
18
|
+
}
|
|
19
|
+
interface Props extends PaginationType {
|
|
20
|
+
/** An icon for the button - uses `Button`'s icon format */
|
|
21
|
+
icon: ButtonIconType;
|
|
20
22
|
/** Additional classes */
|
|
21
23
|
className?: string;
|
|
22
24
|
/** GTM event context */
|