@uob-web-and-digital/component-library 0.0.62 → 0.0.64
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/organisms/ImageBlock/ImageBlock.d.ts +2 -1
- package/dist/components/organisms/IntroText/IntroText.d.ts +2 -1
- package/dist/components/organisms/IntroText/defaultProps.d.ts +2 -0
- package/dist/components/organisms/StaffListingCarousel/StaffListingCarousel.d.ts +2 -1
- package/dist/components/organisms/StaffListingCarousel/StaffListingCarousel.stories.d.ts +1 -0
- package/dist/components/organisms/TextWithBackground/TextWithBackground.d.ts +2 -1
- package/dist/components/organisms/VideoEmbed/VideoEmbed.d.ts +3 -1
- package/dist/index.d.ts +11 -5
- package/dist/main.css +1 -1
- package/dist/main.js +4 -11
- package/dist/module.js +4 -11
- package/dist/utils/util.d.ts +0 -1
- package/package.json +2 -3
|
@@ -4,6 +4,7 @@ import { HeadingProps } from '../../molecules/Heading/Heading';
|
|
|
4
4
|
import { CardImageProps } from '../../molecules/CardImage/CardImage';
|
|
5
5
|
export interface ImageBlockProps extends HeadingProps {
|
|
6
6
|
fullWidth: boolean;
|
|
7
|
+
makeHeadingFullWidth?: boolean;
|
|
7
8
|
images?: Omit<CardImageProps, 'theme' | 'inverse'>[];
|
|
8
9
|
}
|
|
9
|
-
export default function ImageBlock({ theme, inverse, title, description, linkProps, fullWidth, images }: ImageBlockProps): ReactElement | null;
|
|
10
|
+
export default function ImageBlock({ theme, inverse, title, description, linkProps, fullWidth, makeHeadingFullWidth, images }: ImageBlockProps): ReactElement | null;
|
|
@@ -10,6 +10,7 @@ export interface IntroTextProps {
|
|
|
10
10
|
* Whether to inverse the colours
|
|
11
11
|
*/
|
|
12
12
|
inverse?: boolean;
|
|
13
|
+
fullWidth?: boolean;
|
|
13
14
|
text: string;
|
|
14
15
|
}
|
|
15
|
-
export default function IntroText({ text, theme, inverse }: IntroTextProps): ReactElement;
|
|
16
|
+
export default function IntroText({ text, theme, inverse, fullWidth }: IntroTextProps): ReactElement;
|
|
@@ -9,6 +9,7 @@ export interface StaffListingCarouselProps {
|
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
heading: string;
|
|
11
11
|
cards: CardStaffProps[];
|
|
12
|
+
headingStyle?: 'news' | null;
|
|
12
13
|
singleLink: LinkWithArrowProps;
|
|
13
14
|
}
|
|
14
|
-
export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, cards, singleLink }: StaffListingCarouselProps): ReactElement;
|
|
15
|
+
export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink }: StaffListingCarouselProps): ReactElement;
|
|
@@ -8,5 +8,6 @@ declare const meta: {
|
|
|
8
8
|
export default meta;
|
|
9
9
|
type Story = StoryObj<typeof meta>;
|
|
10
10
|
export declare const ExampleThreeOrMoreStaff: Story;
|
|
11
|
+
export declare const ExampleWithNewsStyleHeading: Story;
|
|
11
12
|
export declare const ExampleOneStaff: Story;
|
|
12
13
|
export declare const ExampleTwoStaff: Story;
|
|
@@ -17,5 +17,6 @@ export interface TextWithBackgroundProps {
|
|
|
17
17
|
linkTitle?: string;
|
|
18
18
|
externalLink?: boolean;
|
|
19
19
|
linkStyle?: 'primary' | 'secondary' | 'paragraph-link';
|
|
20
|
+
fullWidth?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export default function TextWithBackground({ text, theme, inverse, headingLevel, headingText, url, linkTitle, externalLink, linkStyle }: TextWithBackgroundProps): ReactElement;
|
|
22
|
+
export default function TextWithBackground({ text, theme, inverse, headingLevel, headingText, url, linkTitle, externalLink, linkStyle, fullWidth }: TextWithBackgroundProps): ReactElement;
|
|
@@ -17,5 +17,7 @@ export interface VideoEmbedProps {
|
|
|
17
17
|
heading?: Omit<HeadingProps, 'theme' | 'inverse'>;
|
|
18
18
|
transcript?: string;
|
|
19
19
|
fullWidth?: boolean;
|
|
20
|
+
videoCaption?: string;
|
|
21
|
+
videoCredit?: string;
|
|
20
22
|
}
|
|
21
|
-
export default function VideoEmbed({ theme, inverse, imageSrc, videoUrl, videoId, heading, audioDescribedVideoId, audioDescribedVideoUrl, transcript, fullWidth }: VideoEmbedProps): ReactElement;
|
|
23
|
+
export default function VideoEmbed({ theme, inverse, imageSrc, videoUrl, videoId, heading, audioDescribedVideoId, audioDescribedVideoUrl, transcript, fullWidth, videoCaption, videoCredit }: VideoEmbedProps): ReactElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -868,9 +868,10 @@ declare function HeroCarousel({ theme, cards }: HeroCarouselProps): ReactElement
|
|
|
868
868
|
|
|
869
869
|
interface ImageBlockProps extends HeadingProps$1 {
|
|
870
870
|
fullWidth: boolean;
|
|
871
|
+
makeHeadingFullWidth?: boolean;
|
|
871
872
|
images?: Omit<CardImageProps, 'theme' | 'inverse'>[];
|
|
872
873
|
}
|
|
873
|
-
declare function ImageBlock({ theme, inverse, title, description, linkProps, fullWidth, images }: ImageBlockProps): ReactElement | null;
|
|
874
|
+
declare function ImageBlock({ theme, inverse, title, description, linkProps, fullWidth, makeHeadingFullWidth, images }: ImageBlockProps): ReactElement | null;
|
|
874
875
|
|
|
875
876
|
interface ImageCarouselProps extends HeadingProps$1 {
|
|
876
877
|
fullWidth?: boolean;
|
|
@@ -909,9 +910,10 @@ interface IntroTextProps {
|
|
|
909
910
|
* Whether to inverse the colours
|
|
910
911
|
*/
|
|
911
912
|
inverse?: boolean;
|
|
913
|
+
fullWidth?: boolean;
|
|
912
914
|
text: string;
|
|
913
915
|
}
|
|
914
|
-
declare function IntroText({ text, theme, inverse }: IntroTextProps): ReactElement;
|
|
916
|
+
declare function IntroText({ text, theme, inverse, fullWidth }: IntroTextProps): ReactElement;
|
|
915
917
|
|
|
916
918
|
interface MostReadNewsProps {
|
|
917
919
|
theme: ThemeProps;
|
|
@@ -1239,9 +1241,10 @@ interface StaffListingCarouselProps {
|
|
|
1239
1241
|
fullWidth?: boolean;
|
|
1240
1242
|
heading: string;
|
|
1241
1243
|
cards: CardStaffProps[];
|
|
1244
|
+
headingStyle?: 'news' | null;
|
|
1242
1245
|
singleLink: LinkWithArrowProps;
|
|
1243
1246
|
}
|
|
1244
|
-
declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, cards, singleLink }: StaffListingCarouselProps): ReactElement;
|
|
1247
|
+
declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink }: StaffListingCarouselProps): ReactElement;
|
|
1245
1248
|
|
|
1246
1249
|
interface SidebarWrapperProps {
|
|
1247
1250
|
/**
|
|
@@ -1358,8 +1361,9 @@ interface TextWithBackgroundProps {
|
|
|
1358
1361
|
linkTitle?: string;
|
|
1359
1362
|
externalLink?: boolean;
|
|
1360
1363
|
linkStyle?: 'primary' | 'secondary' | 'paragraph-link';
|
|
1364
|
+
fullWidth?: boolean;
|
|
1361
1365
|
}
|
|
1362
|
-
declare function TextWithBackground({ text, theme, inverse, headingLevel, headingText, url, linkTitle, externalLink, linkStyle }: TextWithBackgroundProps): ReactElement;
|
|
1366
|
+
declare function TextWithBackground({ text, theme, inverse, headingLevel, headingText, url, linkTitle, externalLink, linkStyle, fullWidth }: TextWithBackgroundProps): ReactElement;
|
|
1363
1367
|
|
|
1364
1368
|
interface PillProps {
|
|
1365
1369
|
/**
|
|
@@ -1473,7 +1477,9 @@ interface VideoEmbedProps {
|
|
|
1473
1477
|
heading?: Omit<HeadingProps$1, 'theme' | 'inverse'>;
|
|
1474
1478
|
transcript?: string;
|
|
1475
1479
|
fullWidth?: boolean;
|
|
1480
|
+
videoCaption?: string;
|
|
1481
|
+
videoCredit?: string;
|
|
1476
1482
|
}
|
|
1477
|
-
declare function VideoEmbed({ theme, inverse, imageSrc, videoUrl, videoId, heading, audioDescribedVideoId, audioDescribedVideoUrl, transcript, fullWidth }: VideoEmbedProps): ReactElement;
|
|
1483
|
+
declare function VideoEmbed({ theme, inverse, imageSrc, videoUrl, videoId, heading, audioDescribedVideoId, audioDescribedVideoUrl, transcript, fullWidth, videoCaption, videoCredit }: VideoEmbedProps): ReactElement;
|
|
1478
1484
|
|
|
1479
1485
|
export { Accordion, type AccordionProps, type AccreditationPromotionProps, AcreditationPromotion, AlertBanner, type AlertBannerProps, AnchorTarget, type AnchorTargetProps, Breadcrumbs, type BreadcrumbsProps, CTAComponent, type CTAComponentProps, Carousel, type CarouselProps, type CenterWrapperProps, CenterWrapper as CentreWrapper, ClearingBanner, type ClearingBannerProps, CourseDeliveryPills, type CourseDeliveryPillsProps, EmbedWrapper, type EmbedWrapperProps, FactBoxes, type FactBoxesProps, FeaturedContent, type FeaturedContentProps, FeaturedSignpost, type FeaturedSignpostProps, FeaturedVideo, type FeaturedVideoProps, FiveArticlesGrid, type FiveArticlesGridProps, Footer, type FooterProps, GeneralSearchFilter, type GeneralSearchFilterProps, GenericDetailSection, type GenericDetailSectionProps, Header, type HeaderProps, Hero, HeroArticle, type HeroArticleProps, HeroCarousel, type HeroCarouselProps, HeroCourses, type HeroCoursesProps, type HeroProps, ImageBlock, type ImageBlockProps, ImageCarousel, type ImageCarouselProps, InPageNavigation, type InPageNavigationProps, IntroText, type IntroTextProps, LeadNewsArticles, type LeadNewsArticlesProps, ListingFilterWrapper, type ListingFilterWrapperProps, ListingResults, ListingResultsCount, type ListingResultsCountProps, type ListingResultsProps, MainWrapper, type MainWrapperProps, NewsArticlesPromoBlock, type NewsArticlesPromoBlockProps, Pagination, type PaginationProps, PromoBlock, PromoBlockGrid, type PromoBlockProps$1 as PromoBlockProps, QuoteBlock, type QuoteBlockProps, RelatedCourses, type RelatedCoursesProps, RichText, type RichTextProps, SearchCourses, type SearchCoursesProps, SidebarWrapper, type SidebarWrapperProps, SignPost, type SignPostProps, SingleButton, type SingleButtonProps, SkipToContent, type SkipToContentProps, StaffListingCarousel, type StaffListingCarouselProps, StandardListingFilter, type StandardListingFilterProps, TabsBlock, type TabsBlockProps, TextWithBackground, type TextWithBackgroundProps, TopicSelector, type TopicSelectorProps, VideoCardComponent, type VideoCardComponentProps, VideoEmbed, type VideoEmbedProps };
|