@uob-web-and-digital/component-library 2.20.13 → 2.20.15
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/AccordionItem/AccordionItem.d.ts +3 -1
- package/dist/components/molecules/AccordionItem/AccordionItem.stories.d.ts +2 -0
- package/dist/components/organisms/DocumentPageNavigation/DocumentPageNavigation.d.ts +17 -0
- package/dist/components/organisms/DocumentPageNavigation/DocumentPageNavigation.stories.d.ts +20 -0
- package/dist/components/organisms/DocumentPageNavigation/defaultProps.d.ts +2 -0
- package/dist/index.d.ts +3 -2
- package/dist/main.css +1 -1
- package/dist/main.js +2 -2
- package/dist/module.js +2 -2
- package/package.json +1 -1
|
@@ -27,5 +27,7 @@ export interface AccordionItemProps {
|
|
|
27
27
|
text: string;
|
|
28
28
|
url: string;
|
|
29
29
|
};
|
|
30
|
+
noTopBorder?: boolean;
|
|
31
|
+
noSummaryPadding?: boolean;
|
|
30
32
|
}
|
|
31
|
-
export default function AccordionItem({ theme, title, icon, iconPosition, text, children, inverse, titleTag, cards, openByDefault, primaryButton, secondaryButton, link }: AccordionItemProps): ReactElement;
|
|
33
|
+
export default function AccordionItem({ theme, title, icon, iconPosition, text, children, inverse, titleTag, cards, openByDefault, primaryButton, secondaryButton, link, noTopBorder, noSummaryPadding }: AccordionItemProps): ReactElement;
|
|
@@ -15,6 +15,8 @@ export default meta;
|
|
|
15
15
|
type Story = StoryObj<typeof AccordionItem>;
|
|
16
16
|
export declare const Light: Story;
|
|
17
17
|
export declare const Dark: Story;
|
|
18
|
+
export declare const NoTopBorder: Story;
|
|
19
|
+
export declare const NoSummaryPadding: Story;
|
|
18
20
|
export declare const TitleTagUnset: Story;
|
|
19
21
|
export declare const TitleTagAsSpan: Story;
|
|
20
22
|
export declare const Stacked: () => ReactElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './documentPageNavigation.scss';
|
|
4
|
+
interface DocumentPageNavigationLink {
|
|
5
|
+
title: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DocumentPageNavigationProps {
|
|
9
|
+
theme: ThemeProps;
|
|
10
|
+
inverse?: boolean;
|
|
11
|
+
/** CMS hide/display toggle. When false the navigation is not rendered. */
|
|
12
|
+
display?: boolean;
|
|
13
|
+
previous?: DocumentPageNavigationLink;
|
|
14
|
+
next?: DocumentPageNavigationLink;
|
|
15
|
+
}
|
|
16
|
+
export default function DocumentPageNavigation({ theme, inverse, display, previous, next }: DocumentPageNavigationProps): ReactElement | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import DocumentPageNavigation from './DocumentPageNavigation';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DocumentPageNavigation;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {
|
|
8
|
+
display: {
|
|
9
|
+
control: "boolean";
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Initial: Story;
|
|
17
|
+
export declare const Middle: Story;
|
|
18
|
+
export declare const Final: Story;
|
|
19
|
+
export declare const Dark: Story;
|
|
20
|
+
export declare const Hidden: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import ImageMosaic, { ImageMosaicProps } from './components/organisms/ImageMosai
|
|
|
33
33
|
import ImageCarousel, { ImageCarouselProps } from './components/organisms/ImageCarousel/ImageCarousel';
|
|
34
34
|
import InPageNavigation, { InPageNavigationProps } from './components/organisms/InPageNavigation/InPageNavigation';
|
|
35
35
|
import DocumentNavigation, { DocumentNavigationProps } from './components/organisms/DocumentNavigation/DocumentNavigation';
|
|
36
|
+
import DocumentPageNavigation, { DocumentPageNavigationProps } from './components/organisms/DocumentPageNavigation/DocumentPageNavigation';
|
|
36
37
|
import IntroText, { IntroTextProps } from './components/organisms/IntroText/IntroText';
|
|
37
38
|
import LeadNewsArticles, { LeadNewsArticlesProps } from './components/organisms/LeadNewsArticles/LeadNewsArticles';
|
|
38
39
|
import ListingFilterWrapper, { ListingFilterWrapperProps } from './components/organisms/ListingFilterWrapper/ListingFilterWrapper';
|
|
@@ -75,5 +76,5 @@ import LogoWall, { LogoWallProps } from './components/organisms/LogoWall/LogoWal
|
|
|
75
76
|
import TextOverMedia, { TextOverMediaProps } from './components/organisms/TextOverMedia/TextOverMedia';
|
|
76
77
|
import SocialFeed, { SocialFeedProps } from './components/organisms/SocialFeed/SocialFeed';
|
|
77
78
|
import { HeaderLanding, HeaderLandingProps } from './components/organisms/HeaderLanding/HeaderLanding';
|
|
78
|
-
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, HeroVideoProps, ImageBlockProps, ImageCarouselProps, ImageMosaicProps, InPageNavigationProps, DocumentNavigationProps, 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, SocialFeedProps, HeaderLandingProps };
|
|
79
|
-
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, HeroVideo, ImageBlock, ImageCarousel, ImageMosaic, InPageNavigation, DocumentNavigation, 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, SocialFeed, HeaderLanding };
|
|
79
|
+
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, HeroVideoProps, ImageBlockProps, ImageCarouselProps, ImageMosaicProps, InPageNavigationProps, DocumentNavigationProps, DocumentPageNavigationProps, 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, SocialFeedProps, HeaderLandingProps };
|
|
80
|
+
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, HeroVideo, ImageBlock, ImageCarousel, ImageMosaic, InPageNavigation, DocumentNavigation, DocumentPageNavigation, 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, SocialFeed, HeaderLanding };
|