@uob-web-and-digital/component-library 2.20.2 → 2.20.3

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,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ThemeProps } from '../../../themeProps';
3
+ import { HeadingProps } from '../../molecules/Heading/Heading';
3
4
  import './textWithBackground.scss';
4
5
  export interface TextWithBackgroundProps {
5
6
  /**
@@ -10,7 +11,7 @@ export interface TextWithBackgroundProps {
10
11
  * Whether to inverse the colours
11
12
  */
12
13
  inverse?: boolean;
13
- headingLevel: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
14
+ headingLevel?: HeadingProps['htmlTag'];
14
15
  headingText: string;
15
16
  text: string;
16
17
  url?: string;
@@ -20,3 +20,4 @@ export declare const LightWithPrimaryButton: Story;
20
20
  export declare const LightWithSecondaryButton: Story;
21
21
  export declare const LightWithParagraphLink: Story;
22
22
  export declare const LightNoLink: Story;
23
+ export declare const LightNoHeading: Story;