@uob-web-and-digital/component-library 0.0.104 → 0.0.105
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/CalendarGraphic/CalendarGraphic.d.ts +10 -0
- package/dist/components/atoms/CalendarGraphic/CalendarGraphic.stories.d.ts +12 -0
- package/dist/components/molecules/CardPromo/CardPromo.d.ts +5 -1
- package/dist/components/molecules/CardPromo/CardPromo.stories.d.ts +3 -0
- package/dist/components/organisms/PromoBlock/PromoBlock.stories.d.ts +1 -0
- package/dist/components/organisms/PromoBlock/defaultProps.d.ts +1 -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/StaffListingCarousel/defaultProps.d.ts +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/main.css +1 -1
- package/dist/main.js +4 -4
- package/dist/module.js +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './calendarGraphic.scss';
|
|
4
|
+
export interface CalendarGraphicProps {
|
|
5
|
+
theme: ThemeProps;
|
|
6
|
+
status: 'Upcoming' | 'Recorded' | 'More';
|
|
7
|
+
day?: string;
|
|
8
|
+
month?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function CalendarGraphic({ theme, status, day, month }: CalendarGraphicProps): ReactElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import CalendarGraphic from './CalendarGraphic';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CalendarGraphic;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const CalendarGraphicUpcomingEvent: Story;
|
|
11
|
+
export declare const CalendarGraphicRecordedEvent: Story;
|
|
12
|
+
export declare const CalendarGraphicMoreDatesEvent: Story;
|
|
@@ -3,6 +3,7 @@ import { ImageProps } from '../../atoms/Image/Image';
|
|
|
3
3
|
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './cardPromo.scss';
|
|
5
5
|
import { HeadingProps } from '../../atoms/Heading/Heading';
|
|
6
|
+
import { CalendarGraphicProps } from '../../atoms/CalendarGraphic/CalendarGraphic';
|
|
6
7
|
export interface CardPromoProps {
|
|
7
8
|
theme: ThemeProps;
|
|
8
9
|
inverse?: boolean;
|
|
@@ -22,8 +23,11 @@ export interface CardPromoProps {
|
|
|
22
23
|
isSingle?: boolean;
|
|
23
24
|
titleTag: HeadingProps['htmlTag'];
|
|
24
25
|
cardCopyIsRichText?: boolean;
|
|
26
|
+
eventStatus?: CalendarGraphicProps['status'];
|
|
27
|
+
eventDay?: CalendarGraphicProps['day'];
|
|
28
|
+
eventMonth?: CalendarGraphicProps['month'];
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Primary UI component for user interaction
|
|
28
32
|
*/
|
|
29
|
-
export default function CardPromo({ theme, inverse, image, tag, title, subtitle, href, publishDate, authorString, readingTime, location, copy, isSingle, titleTag, cardCopyIsRichText, eventTime }: CardPromoProps): ReactElement;
|
|
33
|
+
export default function CardPromo({ theme, inverse, image, tag, title, subtitle, href, publishDate, authorString, readingTime, location, copy, isSingle, titleTag, cardCopyIsRichText, eventTime, eventStatus, eventDay, eventMonth }: CardPromoProps): ReactElement;
|
|
@@ -16,3 +16,6 @@ export declare const SinglePromoCardLightRichTextCopy: Story;
|
|
|
16
16
|
export declare const SinglePromoCardDarkRichTextCopy: Story;
|
|
17
17
|
export declare const CardNoImage: Story;
|
|
18
18
|
export declare const OneOfManyPromoCards: Story;
|
|
19
|
+
export declare const EventPromoCardUpcomingExample: Story;
|
|
20
|
+
export declare const EventPromoCardRecordedExample: Story;
|
|
21
|
+
export declare const EventPromoCardMoreDatesExample: Story;
|
|
@@ -17,6 +17,7 @@ export declare const PromoBlockOneCardOnly: Story;
|
|
|
17
17
|
export declare const PromoBlockTwoCardsOnly: Story;
|
|
18
18
|
export declare const PromoBlockThreeCardsOnly: Story;
|
|
19
19
|
export declare const PromoBlockFourCardsPlus: Story;
|
|
20
|
+
export declare const PromoBlockThreeEventCardsOnly: Story;
|
|
20
21
|
export declare const PromoBlockFourCardsPlusDark: Story;
|
|
21
22
|
export declare const PromoBlockSignpostOneCardOnly: Story;
|
|
22
23
|
export declare const PromoBlockSignpostOneCardOnlyDark: Story;
|
|
@@ -2,6 +2,7 @@ import { PromoBlockProps } from './PromoBlock';
|
|
|
2
2
|
import { FormSelectProps, SelectOptionsProps } from '../../atoms/FormSelect/FormSelect';
|
|
3
3
|
export declare const promoBlockProps: PromoBlockProps;
|
|
4
4
|
export declare const promoBlockPropsAccommodation: PromoBlockProps;
|
|
5
|
+
export declare const promoBlockEventsProps: PromoBlockProps;
|
|
5
6
|
export declare const promoBlockSignpostProps: PromoBlockProps;
|
|
6
7
|
export declare const promoBlockVideoProps: PromoBlockProps;
|
|
7
8
|
export declare const promoBlockForCoursePage: PromoBlockProps;
|
|
@@ -13,5 +13,6 @@ export interface StaffListingCarouselProps {
|
|
|
13
13
|
headingStyle?: 'news' | null;
|
|
14
14
|
singleLink: LinkWithArrowProps;
|
|
15
15
|
titleTag?: HeadingProps['htmlTag'];
|
|
16
|
+
useCarousel?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag }: StaffListingCarouselProps): ReactElement;
|
|
18
|
+
export default function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel }: StaffListingCarouselProps): ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { StaffListingCarouselProps } from './StaffListingCarousel';
|
|
2
2
|
export declare const staffListingCarouselProps: StaffListingCarouselProps;
|
|
3
3
|
export declare const newsStaffListingCarouselProps: StaffListingCarouselProps;
|
|
4
|
+
export declare const staffListingEventsProps: StaffListingCarouselProps;
|
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,13 @@ interface CardVideoProps {
|
|
|
192
192
|
titleTag: HeadingProps$1['htmlTag'];
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
interface CalendarGraphicProps {
|
|
196
|
+
theme: ThemeProps;
|
|
197
|
+
status: 'Upcoming' | 'Recorded' | 'More';
|
|
198
|
+
day?: string;
|
|
199
|
+
month?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
195
202
|
interface CardPromoProps {
|
|
196
203
|
theme: ThemeProps;
|
|
197
204
|
inverse?: boolean;
|
|
@@ -211,6 +218,9 @@ interface CardPromoProps {
|
|
|
211
218
|
isSingle?: boolean;
|
|
212
219
|
titleTag: HeadingProps$1['htmlTag'];
|
|
213
220
|
cardCopyIsRichText?: boolean;
|
|
221
|
+
eventStatus?: CalendarGraphicProps['status'];
|
|
222
|
+
eventDay?: CalendarGraphicProps['day'];
|
|
223
|
+
eventMonth?: CalendarGraphicProps['month'];
|
|
214
224
|
}
|
|
215
225
|
|
|
216
226
|
interface TextButtonProps {
|
|
@@ -1336,8 +1346,9 @@ interface StaffListingCarouselProps {
|
|
|
1336
1346
|
headingStyle?: 'news' | null;
|
|
1337
1347
|
singleLink: LinkWithArrowProps;
|
|
1338
1348
|
titleTag?: HeadingProps$1['htmlTag'];
|
|
1349
|
+
useCarousel?: boolean;
|
|
1339
1350
|
}
|
|
1340
|
-
declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag }: StaffListingCarouselProps): ReactElement;
|
|
1351
|
+
declare function StaffListingCarousel({ theme, inverse, fullWidth, heading, headingStyle, cards, singleLink, titleTag, useCarousel }: StaffListingCarouselProps): ReactElement;
|
|
1341
1352
|
|
|
1342
1353
|
interface SidebarWrapperProps {
|
|
1343
1354
|
/**
|