@uob-web-and-digital/component-library 2.12.10 → 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/components/organisms/TextOverMedia/TextOverMedia.d.ts +14 -0
- package/dist/components/organisms/TextOverMedia/TextOverMedia.stories.d.ts +22 -0
- package/dist/components/organisms/TextOverMedia/defaultProps.d.ts +4 -0
- package/dist/index.d.ts +3 -2
- 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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import './textOverMedia.scss';
|
|
3
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
4
|
+
import { ThemeProps } from '../../../themeProps';
|
|
5
|
+
export interface TextOverMediaProps {
|
|
6
|
+
theme: ThemeProps;
|
|
7
|
+
inverse?: boolean;
|
|
8
|
+
image: ImageProps;
|
|
9
|
+
imageCaption?: string;
|
|
10
|
+
imageCredit?: string;
|
|
11
|
+
contentPosition?: 'left' | 'right';
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export default function TextOverMedia({ theme, inverse, image, imageCaption, imageCredit, contentPosition, children }: TextOverMediaProps): ReactElement | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import TextOverMedia from './TextOverMedia';
|
|
3
|
+
import './textOverMedia.scss';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof TextOverMedia;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
backgrounds: {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
layout: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof TextOverMedia>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Dark: Story;
|
|
19
|
+
export declare const Light: Story;
|
|
20
|
+
export declare const RightContent: Story;
|
|
21
|
+
export declare const LightQuote: Story;
|
|
22
|
+
export declare const LightNoChildren: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,5 +69,6 @@ import { FormSelectProps, SelectOptionsProps } from './components/atoms/FormSele
|
|
|
69
69
|
import CardPromoProfile, { CardPromoProfileProps } from './components/molecules/CardPromoProfile/CardPromoProfile';
|
|
70
70
|
import CardStaff, { CardStaffProps } from './components/molecules/CardStaff/CardStaff';
|
|
71
71
|
import LogoWall, { LogoWallProps } from './components/organisms/LogoWall/LogoWall';
|
|
72
|
-
|
|
73
|
-
export {
|
|
72
|
+
import TextOverMedia, { TextOverMediaProps } from './components/organisms/TextOverMedia/TextOverMedia';
|
|
73
|
+
export type { AccordionProps, AccreditationPromotionProps, AlertBannerProps, AnchorTargetProps, BreadcrumbsProps, CarouselProps, CardProfileProps, CardStaffProps, CenterWrapperProps, ClearingBannerProps, CourseDeliveryPillsProps, CTAComponentProps, EmbedWrapperProps, FactBoxesProps, FeaturedContentProps, FeaturedSignpostProps, FeaturedVideoProps, FiveArticlesGridProps, FooterProps, FormSelectProps, GenericDetailSectionProps, GeneralSearchFilterProps, HeaderProps, HeadingProps, HeroProps, HeroArticleProps, HeroCarouselProps, HeroCoursesProps, HeroProfileProps, ImageBlockProps, ImageCarouselProps, InPageNavigationProps, IntroTextProps, LeadNewsArticlesProps, ListingFilterWrapperProps, ListingResultsProps, ListingResultsCountProps, ListTableProps, LocationSelectorProps, MainWrapperProps, ModuleCardGroupProps, NewsArticlesPromoBlockProps, PaginationProps, PromoBlockProps, QuoteBlockProps, RelatedCoursesProps, ResearchStoryCarouselProps, RichTextProps, ScholarshipCarouselProps, SearchCoursesProps, SelectOptionsProps, StaffListingCarouselProps, SidebarWrapperProps, SignPostProps, SingleButtonProps, SkipToContentProps, TabsBlockProps, TextWithBackgroundProps, TwoColumnWrapperProps, TopicSelectorProps, StandardListingFilterProps, VideoCardComponentProps, VideoEmbedProps, ScrollableTableProps, ScrollableTableCategory, ModalCTAProps, LocationSectionProps, CardPromoProfileProps, CardPromoSignpostProps, CardImageAndTextProps, LogoWallProps, TextOverMediaProps };
|
|
74
|
+
export { Accordion, AcreditationPromotion, AlertBanner, AnchorTarget, Breadcrumbs, Carousel, CardProfile, CardPromoSignpost, CardStaff, CentreWrapper, ClearingBanner, CourseDeliveryPills, CTAComponent, EmbedWrapper, FactBoxes, FeaturedContent, FeaturedSignpost, FeaturedVideo, FiveArticlesGrid, Footer, GeneralSearchFilter, GenericDetailSection, Header, Heading, Hero, HeroArticle, HeroCarousel, HeroCourses, HeroProfile, ImageBlock, ImageCarousel, InPageNavigation, IntroText, LeadNewsArticles, ListingFilterWrapper, ListingResults, ListingResultsCount, ListTable, LocationSelector, MainWrapper, ModuleCardGroup, NewsArticlesPromoBlock, Pagination, PromoBlock, PromoBlockGrid, QuoteBlock, RelatedCourses, ResearchStoryCarousel, RichText, ScholarshipCarousel, SearchCourses, SidebarWrapper, SignPost, SingleButton, SkipToContent, StaffListingCarousel, StandardListingFilter, TabsBlock, TextWithBackground, TopicSelector, TwoColumnWrapper, VideoCardComponent, VideoEmbed, ScrollableTable, ModalCTA, LocationSection, CardPromoProfile, CardImageAndText, LogoWall, TextOverMedia };
|