@uob-web-and-digital/component-library 1.1.0 → 2.0.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.
- package/README.md +1 -1
- package/dist/components/atoms/DateInput/DateInput.stories.d.ts +2 -15
- package/dist/components/atoms/VideoPlaceholder/VideoPlaceholder.stories.d.ts +2 -21
- package/dist/components/molecules/ListTable/ListTable.d.ts +8 -0
- package/dist/components/molecules/ListTable/ListTable.stories.d.ts +10 -0
- package/dist/components/molecules/VideoWithPlaceholder/VideoWithPlaceholder.stories.d.ts +2 -22
- package/dist/components/organisms/FeaturedVideo/FeaturedVideo.stories.d.ts +2 -17
- package/dist/components/organisms/GeneralSearchFilter/GeneralSearchFilter.stories.d.ts +2 -16
- package/dist/components/organisms/ListingFilterWrapper/ListingFilterWrapper.stories.d.ts +2 -13
- package/dist/components/organisms/RelatedCourses/RelatedCourses.d.ts +6 -1
- package/dist/components/organisms/RelatedCourses/RelatedCourses.stories.d.ts +2 -0
- package/dist/components/organisms/StandardListingFilter/StandardListingFilter.stories.d.ts +2 -14
- package/dist/components/organisms/VideoCardComponent/VideoCardComponent.stories.d.ts +2 -16
- package/dist/index.d.ts +68 -1762
- package/dist/main.css +1 -1
- package/dist/main.js +7 -7
- package/dist/module.js +7 -7
- package/dist/utils/ariaCarousel.d.ts +4 -1
- package/package.json +40 -41
package/README.md
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import DateInput from './DateInput';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof DateInput;
|
|
7
|
-
tags: string[];
|
|
8
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
9
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
10
|
-
name: string;
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
defaultValue?: string | undefined;
|
|
14
|
-
onChange?: ((e: React.ChangeEvent<Element>) => void) | undefined;
|
|
15
|
-
}>) => JSX.Element)[];
|
|
16
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof DateInput>;
|
|
17
4
|
export default meta;
|
|
18
5
|
type Story = StoryObj<typeof DateInput>;
|
|
19
6
|
export declare const Default: Story;
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import VideoPlaceholder from './VideoPlaceholder';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof VideoPlaceholder;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
backgrounds: {
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
14
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
15
|
-
imageSrc: {
|
|
16
|
-
small?: string | undefined;
|
|
17
|
-
medium?: string | undefined;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
onClick: () => void;
|
|
21
|
-
}>) => JSX.Element)[];
|
|
22
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof VideoPlaceholder>;
|
|
23
4
|
export default meta;
|
|
24
5
|
type Story = StoryObj<typeof VideoPlaceholder>;
|
|
25
6
|
export declare const Default: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './listTable.scss';
|
|
4
|
+
export interface ListTableProps {
|
|
5
|
+
theme?: ThemeProps;
|
|
6
|
+
listItems?: string[];
|
|
7
|
+
}
|
|
8
|
+
export default function ListTable({ theme, listItems }: ListTableProps): ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import ListTable from './ListTable';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ListTable;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import VideoWithPlaceholder from './VideoWithPlaceholder';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof VideoWithPlaceholder;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
backgrounds: {
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
14
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
15
|
-
videoId?: string | undefined;
|
|
16
|
-
videoUrl?: string | undefined;
|
|
17
|
-
imageSrc: {
|
|
18
|
-
small?: string | undefined;
|
|
19
|
-
medium?: string | undefined;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
}>) => JSX.Element)[];
|
|
23
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof VideoWithPlaceholder>;
|
|
24
4
|
export default meta;
|
|
25
5
|
type Story = StoryObj<typeof VideoWithPlaceholder>;
|
|
26
6
|
export declare const Default: Story;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import FeaturedVideo from './FeaturedVideo';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof FeaturedVideo;
|
|
7
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
8
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
9
|
-
inverse?: boolean | undefined;
|
|
10
|
-
image: import("../../atoms/Image/Image").ImageProps;
|
|
11
|
-
title: string;
|
|
12
|
-
youtubeId: string;
|
|
13
|
-
audioYoutubeId?: string | undefined;
|
|
14
|
-
youtubeButtonLabel?: string | undefined;
|
|
15
|
-
audioYoutubeButtonLabel?: string | undefined;
|
|
16
|
-
}>) => JSX.Element)[];
|
|
17
|
-
tags: string[];
|
|
18
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof FeaturedVideo>;
|
|
19
4
|
export default meta;
|
|
20
5
|
type Story = StoryObj<typeof FeaturedVideo>;
|
|
21
6
|
export declare const Dark: Story;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import GeneralSearchFilter from './GeneralSearchFilter';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof GeneralSearchFilter;
|
|
7
|
-
tags: string[];
|
|
8
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
9
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
10
|
-
heading: string;
|
|
11
|
-
typeName: string;
|
|
12
|
-
defaultCheckedType?: string | undefined;
|
|
13
|
-
typeGroups: import("./GeneralSearchFilter").TypeGroup[];
|
|
14
|
-
onViewResults?: (() => void) | undefined;
|
|
15
|
-
onClearFilters: () => void;
|
|
16
|
-
}>) => JSX.Element)[];
|
|
17
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof GeneralSearchFilter>;
|
|
18
4
|
export default meta;
|
|
19
5
|
type Story = StoryObj<typeof GeneralSearchFilter>;
|
|
20
6
|
export declare const Default: Story;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import ListingFilterWrapper from './ListingFilterWrapper';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof ListingFilterWrapper;
|
|
7
|
-
tags: string[];
|
|
8
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
9
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
10
|
-
showFilterButtonLabel: string;
|
|
11
|
-
numSelected?: number | undefined;
|
|
12
|
-
filterElement: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
-
}>) => JSX.Element)[];
|
|
14
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof ListingFilterWrapper>;
|
|
15
4
|
export default meta;
|
|
16
5
|
type Story = StoryObj<typeof ListingFilterWrapper>;
|
|
17
6
|
export declare const GeneralSearch: Story;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import { CardRelatedProps } from '../../molecules/CardRelatedCourse/CardRelatedCourse';
|
|
4
|
+
import { LinkWithArrowProps } from '../../atoms/LinkWithArrow/LinkWithArrow';
|
|
4
5
|
import './relatedCourses.scss';
|
|
6
|
+
type LinkProps = Omit<LinkWithArrowProps, 'theme' | 'inverse'>;
|
|
5
7
|
export interface RelatedCoursesProps {
|
|
6
8
|
theme: ThemeProps;
|
|
7
9
|
inverse?: boolean;
|
|
8
10
|
heading: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
linkProps?: LinkProps;
|
|
9
13
|
fullWidth?: boolean;
|
|
10
14
|
headingStyle?: 'news' | null;
|
|
11
15
|
cards: CardRelatedProps[];
|
|
12
16
|
}
|
|
13
|
-
export default function RelatedCourses({ theme, inverse, heading, headingStyle, fullWidth, cards }: RelatedCoursesProps): ReactElement;
|
|
17
|
+
export default function RelatedCourses({ theme, inverse, heading, description, linkProps, headingStyle, fullWidth, cards }: RelatedCoursesProps): ReactElement;
|
|
18
|
+
export {};
|
|
@@ -8,6 +8,8 @@ declare const meta: {
|
|
|
8
8
|
export default meta;
|
|
9
9
|
type Story = StoryObj<typeof meta>;
|
|
10
10
|
export declare const ExampleFourOrMoreCourses: Story;
|
|
11
|
+
export declare const ExampleWihDescription: Story;
|
|
12
|
+
export declare const ExampleWihLink: Story;
|
|
11
13
|
export declare const ExampleWithNewsStyleHeading: Story;
|
|
12
14
|
export declare const ExampleOneCourse: Story;
|
|
13
15
|
export declare const ExampleTwoCourses: Story;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import StandardListingFilter from './StandardListingFilter';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof StandardListingFilter;
|
|
7
|
-
tags: string[];
|
|
8
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
9
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
10
|
-
heading: string;
|
|
11
|
-
listingGroups: (import("./StandardListingFilter").DateProps | import("./StandardListingFilter").RadioProps | import("./StandardListingFilter").CheckboxProps | import("./StandardListingFilter").SelectProps)[];
|
|
12
|
-
onClearFilters: () => void;
|
|
13
|
-
onViewResults?: (() => void) | undefined;
|
|
14
|
-
}>) => JSX.Element)[];
|
|
15
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof StandardListingFilter>;
|
|
16
4
|
export default meta;
|
|
17
5
|
type Story = StoryObj<typeof StandardListingFilter>;
|
|
18
6
|
export declare const CoursesFilter: Story;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import VideoCardComponent from './VideoCardComponent';
|
|
4
|
-
declare const meta:
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof VideoCardComponent;
|
|
7
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
8
|
-
theme: import("../../../themeProps").ThemeProps;
|
|
9
|
-
title: string;
|
|
10
|
-
linkUrl?: string | undefined;
|
|
11
|
-
linkText?: string | undefined;
|
|
12
|
-
externalLink?: boolean | undefined;
|
|
13
|
-
tag?: string | undefined;
|
|
14
|
-
cards: [import("../../molecules/CardVideo/CardVideo").CardVideoProps, import("../../molecules/CardVideo/CardVideo").CardVideoProps, import("../../molecules/CardVideo/CardVideo").CardVideoProps];
|
|
15
|
-
}>) => JSX.Element)[];
|
|
16
|
-
tags: string[];
|
|
17
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof VideoCardComponent>;
|
|
18
4
|
export default meta;
|
|
19
5
|
type Story = StoryObj<typeof VideoCardComponent>;
|
|
20
6
|
export declare const Default: Story;
|