@uob-web-and-digital/component-library 2.24.3 → 2.24.4

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.
@@ -1,4 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
+ import { IconType } from '../Icons/Icons';
2
3
  import { ThemeProps } from '../../../themeProps';
3
4
  import './PageLink.scss';
4
5
  export interface PageLinkProps {
@@ -15,5 +16,7 @@ export interface PageLinkProps {
15
16
  level: 'level-one' | 'level-two';
16
17
  autoFocus?: boolean;
17
18
  externalLink?: boolean;
19
+ icon?: IconType;
20
+ iconPosition?: 'left' | 'right';
18
21
  }
19
- export declare const PageLink: ({ theme, inverse, url, label, level, autoFocus, externalLink }: PageLinkProps) => ReactElement;
22
+ export declare const PageLink: ({ theme, inverse, url, label, level, autoFocus, externalLink, icon, iconPosition }: PageLinkProps) => ReactElement;
@@ -3,7 +3,7 @@ import type { StoryObj } from '@storybook/react';
3
3
  import { PageLink } from './PageLink';
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ theme, inverse, url, label, level, autoFocus, externalLink }: import("./PageLink").PageLinkProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
+ component: ({ theme, inverse, url, label, level, autoFocus, externalLink, icon, iconPosition }: import("./PageLink").PageLinkProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7
7
  tags: string[];
8
8
  parameters: {
9
9
  backgrounds: {
@@ -16,3 +16,4 @@ type Story = StoryObj<typeof PageLink>;
16
16
  export declare const LevelOne: Story;
17
17
  export declare const LevelTwo: Story;
18
18
  export declare const Long: Story;
19
+ export declare const WithIcon: Story;
@@ -10,3 +10,4 @@ export default meta;
10
10
  type Story = StoryObj<typeof Header>;
11
11
  export declare const UK: Story;
12
12
  export declare const Dubai: Story;
13
+ export declare const WithArrowOnHeadingLinkWithUrl: Story;