@uob-web-and-digital/component-library 1.6.0 → 1.6.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.
- package/dist/components/molecules/GenericDetail/GenericDetail.d.ts +4 -1
- package/dist/components/molecules/GenericDetail/GenericDetail.stories.d.ts +2 -0
- package/dist/components/organisms/LocationSection/LocationSection.d.ts +6 -2
- package/dist/index.d.ts +19 -13
- package/dist/main.css +1 -1
- package/dist/main.js +4 -4
- package/dist/module.js +4 -4
- package/package.json +1 -1
|
@@ -2,10 +2,13 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import { IconType } from '../../atoms/Icons/Icons';
|
|
4
4
|
import './genericDetail.scss';
|
|
5
|
+
import { LinkWithIconProps } from '../../atoms/LinkWithIcon/LinkWithIcon';
|
|
5
6
|
export interface GenericDetailProps {
|
|
6
7
|
theme: ThemeProps;
|
|
7
8
|
iconType: IconType;
|
|
8
9
|
title: string;
|
|
10
|
+
valueLabel?: string;
|
|
9
11
|
value: string;
|
|
12
|
+
scrollToSectionLink?: LinkWithIconProps;
|
|
10
13
|
}
|
|
11
|
-
export default function GenericDetail({ iconType, title, value, theme }: GenericDetailProps): ReactElement;
|
|
14
|
+
export default function GenericDetail({ iconType, title, valueLabel, value, scrollToSectionLink, theme }: GenericDetailProps): ReactElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import { GenericDetailProps } from '../../molecules/GenericDetail/GenericDetail';
|
|
4
|
-
import './LocationSection.scss';
|
|
5
4
|
import { LinkWithArrowProps } from '../../atoms/LinkWithArrow/LinkWithArrow';
|
|
5
|
+
import './LocationSection.scss';
|
|
6
6
|
export interface LocationSectionProps {
|
|
7
7
|
theme: ThemeProps;
|
|
8
8
|
embedChildren: ReactNode;
|
|
@@ -10,5 +10,9 @@ export interface LocationSectionProps {
|
|
|
10
10
|
address: string[];
|
|
11
11
|
services?: Omit<GenericDetailProps, 'theme'>[];
|
|
12
12
|
link?: LinkWithArrowProps;
|
|
13
|
+
/**
|
|
14
|
+
* Optional titleTag of the component
|
|
15
|
+
*/
|
|
16
|
+
titleTag?: 'h2' | 'h3';
|
|
13
17
|
}
|
|
14
|
-
export default function LocationSection({ theme, embedChildren, googleMapLink, address, services, link }: LocationSectionProps): ReactElement;
|
|
18
|
+
export default function LocationSection({ theme, embedChildren, googleMapLink, address, services, link, titleTag }: LocationSectionProps): ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -684,11 +684,25 @@ interface FooterProps {
|
|
|
684
684
|
}
|
|
685
685
|
declare function Footer({ theme, locations, summaryLinks, hygieneLinks, activeCampus, address, telephoneAsNumber, telephoneAsDisplay, telIntroText, socialIcons }: FooterProps): ReactElement;
|
|
686
686
|
|
|
687
|
+
interface LinkWithIconProps {
|
|
688
|
+
theme: ThemeProps;
|
|
689
|
+
inverse?: boolean;
|
|
690
|
+
url: string;
|
|
691
|
+
title: string;
|
|
692
|
+
externalLink: boolean;
|
|
693
|
+
iconLeft?: Omit<IconProps, 'theme'>;
|
|
694
|
+
iconRight?: Omit<IconProps, 'theme'>;
|
|
695
|
+
ariaLabel?: string;
|
|
696
|
+
onClick?: MouseEventHandler;
|
|
697
|
+
}
|
|
698
|
+
|
|
687
699
|
interface GenericDetailProps {
|
|
688
700
|
theme: ThemeProps;
|
|
689
701
|
iconType: IconType;
|
|
690
702
|
title: string;
|
|
703
|
+
valueLabel?: string;
|
|
691
704
|
value: string;
|
|
705
|
+
scrollToSectionLink?: LinkWithIconProps;
|
|
692
706
|
}
|
|
693
707
|
|
|
694
708
|
interface GenericDetailSectionProps {
|
|
@@ -923,18 +937,6 @@ interface ModalCTAButtonProps {
|
|
|
923
937
|
modalChildren: ReactNode;
|
|
924
938
|
}
|
|
925
939
|
|
|
926
|
-
interface LinkWithIconProps {
|
|
927
|
-
theme: ThemeProps;
|
|
928
|
-
inverse?: boolean;
|
|
929
|
-
url: string;
|
|
930
|
-
title: string;
|
|
931
|
-
externalLink: boolean;
|
|
932
|
-
iconLeft?: Omit<IconProps, 'theme'>;
|
|
933
|
-
iconRight?: Omit<IconProps, 'theme'>;
|
|
934
|
-
ariaLabel?: string;
|
|
935
|
-
onClick?: MouseEventHandler;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
940
|
interface CourseTileProps {
|
|
939
941
|
title: string;
|
|
940
942
|
value: string;
|
|
@@ -1736,8 +1738,12 @@ interface LocationSectionProps {
|
|
|
1736
1738
|
address: string[];
|
|
1737
1739
|
services?: Omit<GenericDetailProps, 'theme'>[];
|
|
1738
1740
|
link?: LinkWithArrowProps;
|
|
1741
|
+
/**
|
|
1742
|
+
* Optional titleTag of the component
|
|
1743
|
+
*/
|
|
1744
|
+
titleTag?: 'h2' | 'h3';
|
|
1739
1745
|
}
|
|
1740
|
-
declare function LocationSection({ theme, embedChildren, googleMapLink, address, services, link }: LocationSectionProps): ReactElement;
|
|
1746
|
+
declare function LocationSection({ theme, embedChildren, googleMapLink, address, services, link, titleTag }: LocationSectionProps): ReactElement;
|
|
1741
1747
|
|
|
1742
1748
|
interface HeroProfileProps {
|
|
1743
1749
|
/**
|