@uob-web-and-digital/component-library 2.13.0 → 2.14.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/atoms/Icons/Icons.d.ts +1 -1
- package/dist/components/molecules/ListingResultCard/Cards/NewsCard.d.ts +2 -1
- package/dist/components/molecules/ListingResultCard/ListingResultCard.stories.d.ts +1 -0
- package/dist/components/molecules/ListingResultCard/defaultProps.d.ts +1 -0
- package/dist/components/organisms/HeroCarousel/components/HeroImage.d.ts +1 -1
- package/dist/components/organisms/HeroVideo/HeroVideo.d.ts +17 -0
- package/dist/components/organisms/HeroVideo/HeroVideo.stories.d.ts +10 -0
- package/dist/components/organisms/HeroVideo/defaultProps.d.ts +2 -0
- package/dist/main.css +1 -1
- package/dist/main.js +4 -4
- package/dist/module.js +5 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import './icons.scss';
|
|
4
|
-
export type IconType = 'twitter' | 'facebook' | 'wechat' | 'weibo' | 'youtube' | 'rednote' | 'instagram' | 'linkedin' | 'tiktok' | 'chevron-down' | 'chevron-right' | 'arrow-right' | 'arrow-right-large' | 'location' | 'hamburger' | 'cross' | 'slim-cross' | 'arrow-left' | 'search' | 'arrow-down' | 'play' | 'person' | 'people' | 'computer' | 'book' | 'mortar-board' | 'document' | 'briefcase' | 'notepad' | 'external' | 'clearing-tick' | 'phone' | 'email' | 'quote-marks' | 'calendar' | 'clock' | 'internet' | 'slim-location' | 'bathroom' | 'catering' | 'pound' | 'scroll' | 'settings' | 'rocket' | 'staggered-arrow' | 'segmented-pie-chart' | 'home' | 'domain' | 'note-add' | 'flight' | 'one' | 'two' | 'one-two-three' | 'camping' | 'groups' | 'bed' | 'restaurant' | 'success' | 'award_star' | 'warning-light' | 'warning-dark' | 'information' | 'star' | 'menu' | 'co-present' | 'assignment-add' | 'cast-for-education' | 'live-tv' | 'supervisor-account' | 'experiment' | 'footprint' | 'flag' | 'chat' | 'payments' | 'award-star';
|
|
4
|
+
export type IconType = 'twitter' | 'facebook' | 'wechat' | 'weibo' | 'youtube' | 'rednote' | 'instagram' | 'linkedin' | 'tiktok' | 'chevron-down' | 'chevron-right' | 'arrow-right' | 'arrow-right-large' | 'location' | 'hamburger' | 'cross' | 'slim-cross' | 'arrow-left' | 'search' | 'arrow-down' | 'play' | 'person' | 'people' | 'computer' | 'book' | 'mortar-board' | 'document' | 'briefcase' | 'notepad' | 'external' | 'clearing-tick' | 'phone' | 'email' | 'quote-marks' | 'calendar' | 'clock' | 'internet' | 'slim-location' | 'bathroom' | 'catering' | 'pound' | 'scroll' | 'settings' | 'rocket' | 'staggered-arrow' | 'segmented-pie-chart' | 'home' | 'domain' | 'note-add' | 'flight' | 'one' | 'two' | 'one-two-three' | 'camping' | 'groups' | 'bed' | 'restaurant' | 'success' | 'award_star' | 'warning-light' | 'warning-dark' | 'information' | 'star' | 'menu' | 'co-present' | 'assignment-add' | 'cast-for-education' | 'live-tv' | 'supervisor-account' | 'experiment' | 'footprint' | 'flag' | 'chat' | 'payments' | 'award-star' | 'pause' | 'mute-on' | 'mute-off';
|
|
5
5
|
export type IconProps = {
|
|
6
6
|
/**
|
|
7
7
|
* The theme to use
|
|
@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { ImageProps } from '../../../atoms/Image/Image';
|
|
3
3
|
import { SearchResultDetailProps } from '../../../atoms/SearchResultDetail/SearchResultDetail';
|
|
4
4
|
import { ThemeProps } from '../../../../themeProps';
|
|
5
|
+
import { ParagraphLinkProps } from '../../../atoms/ParagraphLink/ParagraphLink';
|
|
5
6
|
export interface NewsCardProps {
|
|
6
7
|
theme: ThemeProps;
|
|
7
8
|
type: 'news';
|
|
@@ -9,7 +10,7 @@ export interface NewsCardProps {
|
|
|
9
10
|
title: string;
|
|
10
11
|
url: string;
|
|
11
12
|
description?: string;
|
|
12
|
-
author?:
|
|
13
|
+
author?: ParagraphLinkProps | ParagraphLinkProps[];
|
|
13
14
|
details: Omit<SearchResultDetailProps, 'theme'>[];
|
|
14
15
|
showCategory?: boolean;
|
|
15
16
|
}
|
|
@@ -15,6 +15,7 @@ export declare const EventCardH3Title: Story;
|
|
|
15
15
|
export declare const EventCardMoreDatesAvailable: Story;
|
|
16
16
|
export declare const StaffCard: Story;
|
|
17
17
|
export declare const NewsCard: Story;
|
|
18
|
+
export declare const NewsCardTwoAuthors: Story;
|
|
18
19
|
export declare const AccomodationCard: Story;
|
|
19
20
|
export declare const CourseCard: Story;
|
|
20
21
|
export declare const CourseCardH3Title: Story;
|
|
@@ -11,6 +11,7 @@ export declare const eventCardRichTextProps: EventCardProps;
|
|
|
11
11
|
export declare const eventCardMoreDateAvailableProps: EventCardProps;
|
|
12
12
|
export declare const staffCardProps: StaffCardProps;
|
|
13
13
|
export declare const newsCardProps: NewsCardProps;
|
|
14
|
+
export declare const newsCardTwoAuthorsProps: NewsCardProps;
|
|
14
15
|
export declare const accomodationCardProps: AccomodationCardProps;
|
|
15
16
|
export declare const courseCardProps: CourseCardProps;
|
|
16
17
|
export declare const profileCardProps: ProfileCardProps;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './heroVideo.scss';
|
|
4
|
+
export interface HeroVideoProps {
|
|
5
|
+
theme: ThemeProps;
|
|
6
|
+
title: string;
|
|
7
|
+
titleTag?: 'h1' | 'h2';
|
|
8
|
+
description: string;
|
|
9
|
+
bgVideoUrl: string;
|
|
10
|
+
bgVideoMobileThumbnail: string;
|
|
11
|
+
bgVideoAltText: string;
|
|
12
|
+
fullVideoId: string;
|
|
13
|
+
fullVideoButtonLabel: string;
|
|
14
|
+
describedVideoId?: string;
|
|
15
|
+
describedVideoButtonLabel: string;
|
|
16
|
+
}
|
|
17
|
+
export default function HeroVideo({ theme, title, titleTag, description, bgVideoUrl, bgVideoMobileThumbnail, bgVideoAltText, fullVideoId, fullVideoButtonLabel, describedVideoId, describedVideoButtonLabel }: HeroVideoProps): ReactElement | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroVideo from './HeroVideo';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof HeroVideo;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof HeroVideo>;
|
|
10
|
+
export declare const Example: Story;
|