@apolitical/component-library 5.1.1-jc.1 → 5.1.1

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.
@@ -0,0 +1,33 @@
1
+ interface Props {
2
+ /** The style of the link. Defaults to 'default', which shows all of the details. */
3
+ variant?: 'default' | 'condensed';
4
+ /** The data to render in the link */
5
+ data: {
6
+ /** An image to show */
7
+ image?: {
8
+ /** The image file */
9
+ src: string;
10
+ /** The width of the image */
11
+ width?: number;
12
+ /** The height of the image */
13
+ height?: number;
14
+ /** The alt text for the image */
15
+ alt?: string;
16
+ };
17
+ /** The url to link to */
18
+ url: string;
19
+ /** The title text to show on the link */
20
+ title: string;
21
+ /** Paragraph text to show on the link; this is only shown on extra-large and large sizes */
22
+ description?: string;
23
+ };
24
+ /** The Google Tag Manager data to be passed to the link */
25
+ gtm?: {
26
+ /** The context of the event for GTM */
27
+ context?: string;
28
+ /** The event description for GTM */
29
+ event?: string;
30
+ };
31
+ }
32
+ declare const EnrichedUrl: ({ variant, data: { image, url, title, description }, gtm, }: Props) => import("react/jsx-runtime").JSX.Element;
33
+ export default EnrichedUrl;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ url: string;
3
+ image: {
4
+ src: string;
5
+ };
6
+ title: string;
7
+ description: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as EnrichedUrl } from './enriched-url';
@@ -1,4 +1,5 @@
1
1
  export * from './breadcrumbs';
2
+ export * from './enriched-url';
2
3
  export * from './filters';
3
4
  export * from './language-switcher';
4
5
  export * from './load-more';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "5.1.1-jc.1",
3
+ "version": "5.1.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -4,8 +4,6 @@ interface Props {
4
4
  styling?: {
5
5
  /** The background of the section. Defaults to `default` */
6
6
  background?: 'default' | 'light' | 'dark';
7
- /** The size of the padding. Defaults to `none` */
8
- padding?: 'none' | 'medium' | 'large';
9
7
  };
10
8
  /** Additional classes */
11
9
  className?: string;