@uob-web-and-digital/component-library 2.11.1 → 2.12.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.
@@ -2,16 +2,18 @@ import { ReactElement } from 'react';
2
2
  import { ThemeProps } from '../../../themeProps';
3
3
  import './paragraphLink.scss';
4
4
  export interface ParagraphLinkProps {
5
- /**
6
- * The theme to use
7
- */
8
5
  theme: ThemeProps;
9
- /**
10
- * Whether to inverse the colours
11
- */
12
6
  inverse?: boolean;
13
7
  label: string;
14
8
  url: string;
15
9
  externalLink?: boolean;
16
10
  }
17
- export default function ParagraphLink({ theme, inverse, label, url, externalLink }: ParagraphLinkProps): ReactElement;
11
+ type Single = ParagraphLinkProps & {
12
+ items?: undefined;
13
+ };
14
+ type Multiple = {
15
+ items: (ParagraphLinkProps | undefined)[];
16
+ } & Partial<ParagraphLinkProps>;
17
+ export type ParagraphLinkComponentProps = Single | Multiple;
18
+ export default function ParagraphLink(props: ParagraphLinkComponentProps): ReactElement;
19
+ export {};
@@ -17,6 +17,6 @@ export interface HeroArticleProps {
17
17
  publishDate: string;
18
18
  readTime?: string;
19
19
  shareButtons: ShareButtonsProps;
20
- author?: ParagraphLinkProps;
20
+ author?: ParagraphLinkProps | ParagraphLinkProps[];
21
21
  }
22
22
  export default function HeroArticle({ theme, inverse, title, titleTag, description, cardImage, publishDate, readTime, shareButtons, author }: HeroArticleProps): ReactElement | null;
@@ -8,3 +8,4 @@ declare const meta: {
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof HeroArticle>;
10
10
  export declare const Example: Story;
11
+ export declare const TwoAuthors: Story;
@@ -1,2 +1,3 @@
1
1
  import { HeroArticleProps } from './HeroArticle';
2
2
  export declare const heroArticleProps: HeroArticleProps;
3
+ export declare const heroArticlePropsTwoAuthors: HeroArticleProps;