@uob-web-and-digital/component-library 1.6.4 → 1.7.0

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.
@@ -4,8 +4,9 @@ import { IconType } from '../Icons/Icons';
4
4
  import './searchResultDetail.scss';
5
5
  export interface SearchResultDetailProps {
6
6
  theme: ThemeProps;
7
+ inverse?: boolean;
7
8
  iconType: IconType;
8
9
  name: string;
9
10
  value: string;
10
11
  }
11
- export default function SearchResultDetail({ iconType, name, value, theme }: SearchResultDetailProps): ReactElement;
12
+ export default function SearchResultDetail({ iconType, inverse, name, value, theme }: SearchResultDetailProps): ReactElement;
@@ -0,0 +1,15 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import CardPromoProfile from './CardPromoProfile';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof CardPromoProfile;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof CardPromoProfile>;
13
+ export declare const CardPromoProfileSingle: Story;
14
+ export declare const CardPromoProfileSingleDark: Story;
15
+ export declare const CardPromoProfileMultiple: Story;
@@ -17,6 +17,7 @@ export interface CardPromoSignpostProps {
17
17
  authorString?: string;
18
18
  location?: string;
19
19
  copy?: string;
20
+ cardCopyIsRichText?: boolean;
20
21
  isSingle?: boolean;
21
22
  buttonPrimary?: TextButtonProps;
22
23
  buttonSecondary?: TextButtonProps;
@@ -26,4 +27,4 @@ export interface CardPromoSignpostProps {
26
27
  /**
27
28
  * Primary UI component for user interaction
28
29
  */
29
- export default function CardPromoSignpost({ theme, inverse, image, tag, title, subtitle, publishDate, authorString, location, copy, isSingle, buttonPrimary, buttonSecondary, link, imageOrientation, titleTag }: CardPromoSignpostProps): ReactElement;
30
+ export default function CardPromoSignpost({ theme, inverse, image, tag, title, subtitle, publishDate, authorString, location, copy, isSingle, cardCopyIsRichText, buttonPrimary, buttonSecondary, link, imageOrientation, titleTag }: CardPromoSignpostProps): ReactElement;
@@ -14,3 +14,4 @@ export declare const SinglePromoSignpostCardLight: Story;
14
14
  export declare const SinglePromoSignpostCardsDarkRightImage: Story;
15
15
  export declare const OneOfManyPromoSignpostCardsDark: Story;
16
16
  export declare const SinglePromoSignpostCardsDarkRightImageH4Title: Story;
17
+ export declare const ImageWithTextExampleWithMultiCopyParagraphs: Story;
@@ -4,7 +4,8 @@ import { SearchResultDetailProps } from '../../atoms/SearchResultDetail/SearchRe
4
4
  import './searchResultDetailList.scss';
5
5
  export interface SearchResultDetailListProps {
6
6
  theme: ThemeProps;
7
+ inverse?: boolean;
7
8
  details: Omit<SearchResultDetailProps, 'theme'>[];
8
9
  verticalDetails?: boolean;
9
10
  }
10
- export default function SearchResultDetailList({ theme, details, verticalDetails }: SearchResultDetailListProps): ReactElement;
11
+ export default function SearchResultDetailList({ theme, inverse, details, verticalDetails }: SearchResultDetailListProps): ReactElement;
@@ -9,3 +9,4 @@ export default meta;
9
9
  type Story = StoryObj<typeof Carousel>;
10
10
  export declare const CarouselExample: Story;
11
11
  export declare const CarouselWithPromoCards: Story;
12
+ export declare const CarouselWithPromoProfileCards: Story;
@@ -1,4 +1,7 @@
1
1
  import { CarouselProps } from './Carousel';
2
2
  import { CardNewsProps } from '../../molecules/CardNews/CardNews';
3
+ import { CardPromoProfileProps } from '../../molecules/CardPromoProfile/CardPromoProfile';
3
4
  export declare const newsCards: Omit<CardNewsProps, 'titleTag'>[];
4
5
  export declare const carouselProps: CarouselProps;
6
+ export declare const profileCards: CardPromoProfileProps[];
7
+ export declare const carouselPropsProfileCards: CarouselProps;
@@ -1,5 +1,6 @@
1
1
  import { HeroCoursesProps } from './HeroCourses';
2
2
  export declare const heroCoursesProps: HeroCoursesProps;
3
+ export declare const heroCoursesAnchorsProps: HeroCoursesProps;
3
4
  export declare const ranking: import("./components/CourseTileRanking").CourseTileRankingProps | undefined, heroCoursesNoRankingProps: {
4
5
  theme: import("../../../themeProps").ThemeProps;
5
6
  inverse?: boolean | undefined;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import StaffListingCarousel from '../StaffListingCarousel/StaffListingCarousel';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof StaffListingCarousel;
6
+ tags: string[];
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const ExampleThreeOrMoreProfiles: Story;
11
+ export declare const ExampleOneProfile: Story;
12
+ export declare const ExampleThreeProfilesNoCarousel: Story;
13
+ export declare const ExampleThreeOrMoreProfilesDark: Story;
@@ -1,6 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ThemeProps } from '../../../themeProps';
3
3
  import { CardStaffProps } from '../../molecules/CardStaff/CardStaff';
4
+ import { CardPromoProfileProps } from '../../molecules/CardPromoProfile/CardPromoProfile';
4
5
  import { LinkWithArrowProps } from '../../atoms/LinkWithArrow/LinkWithArrow';
5
6
  import { HeadingProps } from '../../atoms/Heading/Heading';
6
7
  import './staffListingCarousel.scss';
@@ -9,10 +10,11 @@ export interface StaffListingCarouselProps {
9
10
  inverse?: boolean;
10
11
  fullWidth?: boolean;
11
12
  heading: string;
12
- cards: CardStaffProps[];
13
+ cards: CardStaffProps[] | CardPromoProfileProps[];
13
14
  headingStyle?: 'news' | null;
14
15
  singleLink: LinkWithArrowProps;
15
16
  titleTag?: HeadingProps['htmlTag'];
16
17
  useCarousel?: boolean;
18
+ cardType?: 'staff' | 'promo-profile';
17
19
  }
18
- export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel }: StaffListingCarouselProps): ReactElement;
20
+ export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel, cardType }: StaffListingCarouselProps): ReactElement;
@@ -8,6 +8,7 @@ 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 ExampleThreeOrMoreStaffDark: Story;
11
12
  export declare const ExampleWithNewsStyleHeading: Story;
12
13
  export declare const ExampleOneStaff: Story;
13
14
  export declare const ExampleTwoStaff: Story;
@@ -1,4 +1,7 @@
1
1
  import { StaffListingCarouselProps } from './StaffListingCarousel';
2
+ import { CardPromoProfileProps } from '../../molecules/CardPromoProfile/CardPromoProfile';
2
3
  export declare const staffListingCarouselProps: StaffListingCarouselProps;
3
4
  export declare const newsStaffListingCarouselProps: StaffListingCarouselProps;
4
5
  export declare const staffListingEventsProps: StaffListingCarouselProps;
6
+ export declare const profileCards: CardPromoProfileProps[];
7
+ export declare const profileCardsDark: CardPromoProfileProps[];
package/dist/index.d.ts CHANGED
@@ -299,6 +299,7 @@ interface CardPromoSignpostProps {
299
299
  authorString?: string;
300
300
  location?: string;
301
301
  copy?: string;
302
+ cardCopyIsRichText?: boolean;
302
303
  isSingle?: boolean;
303
304
  buttonPrimary?: TextButtonProps;
304
305
  buttonSecondary?: TextButtonProps;
@@ -414,6 +415,7 @@ type IconProps = {
414
415
 
415
416
  interface SearchResultDetailProps {
416
417
  theme: ThemeProps;
418
+ inverse?: boolean;
417
419
  iconType: IconType;
418
420
  name: string;
419
421
  value: string;
@@ -1439,13 +1441,14 @@ interface StaffListingCarouselProps {
1439
1441
  inverse?: boolean;
1440
1442
  fullWidth?: boolean;
1441
1443
  heading: string;
1442
- cards: CardStaffProps[];
1444
+ cards: CardStaffProps[] | CardPromoProfileProps[];
1443
1445
  headingStyle?: 'news' | null;
1444
1446
  singleLink: LinkWithArrowProps;
1445
1447
  titleTag?: HeadingProps$1['htmlTag'];
1446
1448
  useCarousel?: boolean;
1449
+ cardType?: 'staff' | 'promo-profile';
1447
1450
  }
1448
- declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel }: StaffListingCarouselProps): ReactElement;
1451
+ declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel, cardType }: StaffListingCarouselProps): ReactElement;
1449
1452
 
1450
1453
  interface SidebarWrapperProps {
1451
1454
  /**