@apolitical/component-library 1.14.7-rc.4 → 1.14.9-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.
@@ -2,7 +2,8 @@ export * from './breadcrumbs';
2
2
  export * from './filters';
3
3
  export * from './language-switcher';
4
4
  export * from './load-more';
5
+ export * from './logo';
5
6
  export * from './more-menu';
6
7
  export * from './navigation-menu';
7
- export * from './logo';
8
+ export * from './share-links';
8
9
  export * from './tags';
@@ -0,0 +1 @@
1
+ export { default as ShareLinks } from './share-links';
@@ -0,0 +1,18 @@
1
+ interface Props {
2
+ /** The title of the page being shared */
3
+ title: string;
4
+ /** The URL of the page being shared */
5
+ link: string;
6
+ /** The referrer, to go into the UUID in the URL */
7
+ referrer?: string;
8
+ /** The Google Tag Manager event context */
9
+ gtmContext?: string;
10
+ /** The size of the buttons */
11
+ size?: 'large' | 'medium';
12
+ /** The styling variant */
13
+ variant?: 'default' | 'muted';
14
+ /** Additional classes */
15
+ className?: string;
16
+ }
17
+ declare const ShareLinks: ({ title, link, referrer, gtmContext, size, variant, className, }: Props) => import("react/jsx-runtime").JSX.Element;
18
+ export default ShareLinks;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare const generateLink: (link: string, type: string, referrer?: string) => string;
3
+ export declare const getLinkData: ({ title, link, referrer, }: {
4
+ title: string;
5
+ link: string;
6
+ referrer?: string | undefined;
7
+ }) => ({
8
+ key: string;
9
+ icon: string;
10
+ url: string;
11
+ shouldRender?: undefined;
12
+ onClick?: undefined;
13
+ } | {
14
+ key: string;
15
+ icon: string;
16
+ url: string;
17
+ shouldRender: () => (data: string) => Promise<void>;
18
+ onClick: (e: React.MouseEvent<HTMLElement>, url: string) => Promise<void>;
19
+ })[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.14.7-rc.4",
3
+ "version": "1.14.9-beta.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -0,0 +1 @@
1
+ export * from './not-found-error';
@@ -0,0 +1 @@
1
+ export { default as NotFoundError } from './not-found-error';
@@ -0,0 +1,2 @@
1
+ declare const NotFoundError: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotFoundError;
@@ -0,0 +1,2 @@
1
+ import { CardType } from '../../cards';
2
+ export declare const cards: CardType[];