@uob-web-and-digital/component-library 2.16.1 → 2.17.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.
|
@@ -37,8 +37,9 @@ export interface HeroProps {
|
|
|
37
37
|
style: 'rectangle' | 'lines-of-intent';
|
|
38
38
|
fetchPriority?: React.ImgHTMLAttributes<HTMLImageElement>['fetchPriority'];
|
|
39
39
|
};
|
|
40
|
+
publishDate?: string;
|
|
40
41
|
links?: [] | [Link] | [Link, Link];
|
|
41
42
|
courseSearchProps?: CourseSearchProps;
|
|
42
43
|
}
|
|
43
|
-
export default function Hero({ theme, inverse, title, titleTag, description, image, links, courseSearchProps }: HeroProps): ReactElement | null;
|
|
44
|
+
export default function Hero({ theme, inverse, title, titleTag, description, image, publishDate, links, courseSearchProps }: HeroProps): ReactElement | null;
|
|
44
45
|
export {};
|
|
@@ -8,8 +8,10 @@ declare const meta: {
|
|
|
8
8
|
export default meta;
|
|
9
9
|
type Story = StoryObj<typeof Hero>;
|
|
10
10
|
export declare const DarkColourBlock: Story;
|
|
11
|
+
export declare const DarkColourBlockAndH1TitleAndPublishDate: Story;
|
|
11
12
|
export declare const DarkColourBlockAndH1Title: Story;
|
|
12
13
|
export declare const LightColourBlock: Story;
|
|
14
|
+
export declare const LightColourBlockAndPublishDate: Story;
|
|
13
15
|
export declare const DarkRectangleImage: Story;
|
|
14
16
|
export declare const LightRectangleImage: Story;
|
|
15
17
|
export declare const DarkLinesOfIntentImage: Story;
|