@uob-web-and-digital/component-library 2.4.0 → 2.4.2
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/main.css +1 -1
- package/dist/main.js +5 -5
- package/dist/module.js +5 -5
- 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;
|