@uob-web-and-digital/component-library 0.0.86 → 0.0.88
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.
- package/dist/components/atoms/TextButtonWithIcon/TextButtonWithIcon.d.ts +5 -1
- package/dist/components/molecules/ModalCTAButton/ModalCTAButton.d.ts +11 -0
- package/dist/components/molecules/ModalCTAButton/ModalCTAButton.stories.d.ts +10 -0
- package/dist/components/molecules/ModalCTAButton/defaultProps.d.ts +2 -0
- package/dist/components/organisms/EmbedWrapper/EmbedWrapper.d.ts +2 -1
- package/dist/components/organisms/HeroCourses/HeroCourses.d.ts +3 -1
- package/dist/components/organisms/HeroCourses/defaultProps.d.ts +2 -0
- package/dist/index.d.ts +16 -2
- package/dist/main.css +1 -1
- package/dist/main.js +2 -2
- package/dist/module.js +2 -2
- package/package.json +1 -1
|
@@ -7,6 +7,10 @@ export interface TextButtonWithIconProps {
|
|
|
7
7
|
* The theme to use
|
|
8
8
|
*/
|
|
9
9
|
theme: ThemeProps;
|
|
10
|
+
/**
|
|
11
|
+
* The id & one trust element to add for One Trust cookie settings button */
|
|
12
|
+
id?: string;
|
|
13
|
+
oneTrustElement?: string;
|
|
10
14
|
/**
|
|
11
15
|
* Whether to inverse the colours
|
|
12
16
|
*/
|
|
@@ -35,4 +39,4 @@ export interface TextButtonWithIconProps {
|
|
|
35
39
|
*/
|
|
36
40
|
iconPosition?: 'left' | 'right';
|
|
37
41
|
}
|
|
38
|
-
export default function TextButtonWithIcon({ theme, inverse, label, onClick, url, externalLink, hollow, isSubmit, icon, iconPosition }: TextButtonWithIconProps): ReactElement;
|
|
42
|
+
export default function TextButtonWithIcon({ theme, id, inverse, label, onClick, url, externalLink, hollow, isSubmit, icon, iconPosition, oneTrustElement }: TextButtonWithIconProps): ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './modalCTAButton.scss';
|
|
4
|
+
export interface ModalCTAButtonProps {
|
|
5
|
+
theme: ThemeProps;
|
|
6
|
+
inverse?: boolean;
|
|
7
|
+
buttonLabel: string;
|
|
8
|
+
hollow?: boolean;
|
|
9
|
+
modalChildren: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export default function ModalButtonCTA({ theme, inverse, buttonLabel, hollow, modalChildren }: ModalCTAButtonProps): ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import ModalCTAButton from './ModalCTAButton';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ModalCTAButton;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Example: Story;
|
|
@@ -15,5 +15,6 @@ export interface EmbedWrapperProps {
|
|
|
15
15
|
*/
|
|
16
16
|
children: ReactNode;
|
|
17
17
|
fullWidth?: boolean;
|
|
18
|
+
className?: string;
|
|
18
19
|
}
|
|
19
|
-
export default function EmbedWrapper({ theme, inverse, children, fullWidth }: EmbedWrapperProps): ReactElement;
|
|
20
|
+
export default function EmbedWrapper({ theme, inverse, children, fullWidth, className }: EmbedWrapperProps): ReactElement;
|
|
@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import './heroCourses.scss';
|
|
4
4
|
import { TextButtonProps } from '../../atoms/TextButton/TextButton';
|
|
5
|
+
import { ModalCTAButtonProps } from '../../molecules/ModalCTAButton/ModalCTAButton';
|
|
5
6
|
import { CourseTileProps } from './components/CourseTile';
|
|
6
7
|
import { CourseTileSelectProps } from './components/CourseTileSelect';
|
|
7
8
|
import { CourseTileRankingProps } from './components/CourseTileRanking';
|
|
@@ -29,5 +30,6 @@ export interface HeroCoursesProps {
|
|
|
29
30
|
ucas?: CourseTileProps;
|
|
30
31
|
deliveryFormat?: CourseTileProps;
|
|
31
32
|
locationDetails?: LocationSelectorProps;
|
|
33
|
+
modalCTA?: ModalCTAButtonProps;
|
|
32
34
|
}
|
|
33
|
-
export default function HeroCourses({ theme, title, titleTag, awardShort, links, ranking, award, campus, ucas, duration, entryRequirements, startDate, yearOfEntry, fees, deliveryFormat, locationDetails }: HeroCoursesProps): ReactElement | null;
|
|
35
|
+
export default function HeroCourses({ theme, title, titleTag, awardShort, links, ranking, award, campus, ucas, duration, entryRequirements, startDate, yearOfEntry, fees, deliveryFormat, locationDetails, modalCTA }: HeroCoursesProps): ReactElement | null;
|
|
@@ -18,6 +18,7 @@ export declare const ranking: import("./components/CourseTileRanking").CourseTil
|
|
|
18
18
|
ucas?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
19
19
|
deliveryFormat?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
20
20
|
locationDetails?: import("../../..").LocationSelectorProps | undefined;
|
|
21
|
+
modalCTA?: import("../../molecules/ModalCTAButton/ModalCTAButton").ModalCTAButtonProps | undefined;
|
|
21
22
|
};
|
|
22
23
|
export declare const deliveryFormat: import("./components/CourseTile").CourseTileProps | undefined, heroCoursesNoRankingNoDeliveryFormat: {
|
|
23
24
|
theme: import("../../../themeProps").ThemeProps;
|
|
@@ -36,5 +37,6 @@ export declare const deliveryFormat: import("./components/CourseTile").CourseTil
|
|
|
36
37
|
fees: import("./components/CourseTile").CourseTileProps;
|
|
37
38
|
ucas?: import("./components/CourseTile").CourseTileProps | undefined;
|
|
38
39
|
locationDetails?: import("../../..").LocationSelectorProps | undefined;
|
|
40
|
+
modalCTA?: import("../../molecules/ModalCTAButton/ModalCTAButton").ModalCTAButtonProps | undefined;
|
|
39
41
|
};
|
|
40
42
|
export declare const heroCoursesPGProps: HeroCoursesProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -383,6 +383,10 @@ interface TextButtonWithIconProps {
|
|
|
383
383
|
* The theme to use
|
|
384
384
|
*/
|
|
385
385
|
theme: ThemeProps;
|
|
386
|
+
/**
|
|
387
|
+
* The id & one trust element to add for One Trust cookie settings button */
|
|
388
|
+
id?: string;
|
|
389
|
+
oneTrustElement?: string;
|
|
386
390
|
/**
|
|
387
391
|
* Whether to inverse the colours
|
|
388
392
|
*/
|
|
@@ -465,8 +469,9 @@ interface EmbedWrapperProps {
|
|
|
465
469
|
*/
|
|
466
470
|
children: ReactNode;
|
|
467
471
|
fullWidth?: boolean;
|
|
472
|
+
className?: string;
|
|
468
473
|
}
|
|
469
|
-
declare function EmbedWrapper({ theme, inverse, children, fullWidth }: EmbedWrapperProps): ReactElement;
|
|
474
|
+
declare function EmbedWrapper({ theme, inverse, children, fullWidth, className }: EmbedWrapperProps): ReactElement;
|
|
470
475
|
|
|
471
476
|
interface CardFactProps {
|
|
472
477
|
theme: ThemeProps;
|
|
@@ -798,6 +803,14 @@ interface HeroArticleProps {
|
|
|
798
803
|
}
|
|
799
804
|
declare function HeroArticle({ theme, inverse, title, titleTag, description, cardImage, publishDate, readTime, shareButtons }: HeroArticleProps): ReactElement | null;
|
|
800
805
|
|
|
806
|
+
interface ModalCTAButtonProps {
|
|
807
|
+
theme: ThemeProps;
|
|
808
|
+
inverse?: boolean;
|
|
809
|
+
buttonLabel: string;
|
|
810
|
+
hollow?: boolean;
|
|
811
|
+
modalChildren: ReactNode;
|
|
812
|
+
}
|
|
813
|
+
|
|
801
814
|
interface LinkWithIconProps {
|
|
802
815
|
theme: ThemeProps;
|
|
803
816
|
inverse?: boolean;
|
|
@@ -861,8 +874,9 @@ interface HeroCoursesProps {
|
|
|
861
874
|
ucas?: CourseTileProps;
|
|
862
875
|
deliveryFormat?: CourseTileProps;
|
|
863
876
|
locationDetails?: LocationSelectorProps;
|
|
877
|
+
modalCTA?: ModalCTAButtonProps;
|
|
864
878
|
}
|
|
865
|
-
declare function HeroCourses({ theme, title, titleTag, awardShort, links, ranking, award, campus, ucas, duration, entryRequirements, startDate, yearOfEntry, fees, deliveryFormat, locationDetails }: HeroCoursesProps): ReactElement | null;
|
|
879
|
+
declare function HeroCourses({ theme, title, titleTag, awardShort, links, ranking, award, campus, ucas, duration, entryRequirements, startDate, yearOfEntry, fees, deliveryFormat, locationDetails, modalCTA }: HeroCoursesProps): ReactElement | null;
|
|
866
880
|
|
|
867
881
|
interface HeroCarouselCard {
|
|
868
882
|
category: string;
|