@uob-web-and-digital/component-library 0.0.25 → 0.0.27
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/BreadcrumbLink/BreadcrumbLink.d.ts +10 -0
- package/dist/components/atoms/BreadcrumbLink/BreadcrumbLink.stories.d.ts +11 -0
- package/dist/components/{CampusSelectorLink → atoms/CampusSelectorLink}/CampusSelectorLink.d.ts +1 -1
- package/dist/components/{ExampleTheming → atoms/ExampleTheming}/ExampleTheming.d.ts +1 -1
- package/dist/components/{FormInput → atoms/FormInput}/FormInput.d.ts +1 -1
- package/dist/components/{FormSelect → atoms/FormSelect}/FormSelect.d.ts +1 -1
- package/dist/components/{IconButton → atoms/IconButton}/IconButton.d.ts +1 -1
- package/dist/components/{Icons → atoms/Icons}/Icons.d.ts +1 -1
- package/dist/components/{LinkStandard → atoms/LinkStandard}/LinkStandard.d.ts +1 -1
- package/dist/components/{LinkWithArrow → atoms/LinkWithArrow}/LinkWithArrow.d.ts +1 -1
- package/dist/components/{NavLink → atoms/NavLink}/NavLink.d.ts +1 -1
- package/dist/components/{PageLink → atoms/PageLink}/PageLink.d.ts +1 -1
- package/dist/components/{ParagraphLink → atoms/ParagraphLink}/ParagraphLink.d.ts +1 -1
- package/dist/components/{ReverseLinkWithArrow → atoms/ReverseLinkWithArrow}/ReverseLinkWithArrow.d.ts +1 -1
- package/dist/components/{TextButton → atoms/TextButton}/TextButton.d.ts +1 -1
- package/dist/components/{TextButtonWithIcon → atoms/TextButtonWithIcon}/TextButtonWithIcon.d.ts +1 -1
- package/dist/components/{Video → atoms/Video}/Video.d.ts +1 -1
- package/dist/components/{CampusSelector → molecules/CampusSelector}/CampusSelector.d.ts +1 -1
- package/dist/components/{CardFeatured → molecules/CardFeatured}/CardFeatured.d.ts +2 -2
- package/dist/components/{CardMenu → molecules/CardMenu}/CardMenu.d.ts +2 -2
- package/dist/components/{CardNews → molecules/CardNews}/CardNews.d.ts +2 -2
- package/dist/components/{CardVideo → molecules/CardVideo}/CardVideo.d.ts +2 -2
- package/dist/components/{CarouselNav → molecules/CarouselNav}/CarouselNav.d.ts +1 -1
- package/dist/components/{FullModal → molecules/FullModal}/FullModal.d.ts +1 -1
- package/dist/components/organisms/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/organisms/Breadcrumbs/Breadcrumbs.stories.d.ts +11 -0
- package/dist/components/organisms/Breadcrumbs/defaultProps.d.ts +2 -0
- package/dist/components/{Carousel → organisms/Carousel}/Carousel.d.ts +4 -4
- package/dist/components/{Carousel → organisms/Carousel}/defaultProps.d.ts +1 -1
- package/dist/components/{FeaturedContent → organisms/FeaturedContent}/FeaturedContent.d.ts +2 -2
- package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/FeaturedSignpost.d.ts +1 -1
- package/dist/components/{FeaturedVideo → organisms/FeaturedVideo}/FeaturedVideo.d.ts +2 -2
- package/dist/components/{FeaturedVideo → organisms/FeaturedVideo}/FeaturedVideo.stories.d.ts +2 -2
- package/dist/components/{Footer → organisms/Footer}/Footer.d.ts +2 -2
- package/dist/components/{Header → organisms/Header}/Header.d.ts +2 -2
- package/dist/components/{Header → organisms/Header}/components/MainMenu.d.ts +2 -2
- package/dist/components/{Header → organisms/Header}/components/NestedMenu.d.ts +1 -1
- package/dist/components/{Header → organisms/Header}/components/SearchMenu.d.ts +1 -1
- package/dist/components/{Header → organisms/Header}/defaultProps.d.ts +2 -2
- package/dist/components/{HeroCarousel → organisms/HeroCarousel}/HeroCarousel.d.ts +1 -1
- package/dist/components/{HeroCarousel → organisms/HeroCarousel}/components/HeroCardContent.d.ts +1 -1
- package/dist/components/{SearchCourses → organisms/SearchCourses}/SearchCourses.d.ts +2 -2
- package/dist/components/{SignPost → organisms/SignPost}/SignPost.d.ts +1 -1
- package/dist/components/{SkipToContent → organisms/SkipToContent}/SkipToContent.d.ts +1 -1
- package/dist/components/{VideoCardComponent → organisms/VideoCardComponent}/VideoCardComponent.d.ts +2 -2
- package/dist/components/{VideoCardComponent → organisms/VideoCardComponent}/VideoCardComponent.stories.d.ts +2 -2
- package/dist/index.d.ts +16 -1
- package/dist/main.css +1 -1
- package/dist/main.js +5 -5
- package/dist/module.js +5 -5
- package/package.json +1 -1
- package/dist/components/Button/Button.d.ts +0 -28
- package/dist/components/Button/Button.stories.d.ts +0 -21
- /package/dist/components/{CampusSelectorLink → atoms/CampusSelectorLink}/CampusSelectorLink.stories.d.ts +0 -0
- /package/dist/components/{ExampleTheming → atoms/ExampleTheming}/ExampleTheming.stories.d.ts +0 -0
- /package/dist/components/{FormInput → atoms/FormInput}/FormInput.stories.d.ts +0 -0
- /package/dist/components/{FormInput → atoms/FormInput}/defaultProps.d.ts +0 -0
- /package/dist/components/{FormSelect → atoms/FormSelect}/FormSelect.stories.d.ts +0 -0
- /package/dist/components/{FormSelect → atoms/FormSelect}/defaultProps.d.ts +0 -0
- /package/dist/components/{IconButton → atoms/IconButton}/IconButton.stories.d.ts +0 -0
- /package/dist/components/{IconButton → atoms/IconButton}/defaultProps.d.ts +0 -0
- /package/dist/components/{Image → atoms/Image}/Image.d.ts +0 -0
- /package/dist/components/{LinkStandard → atoms/LinkStandard}/LinkStandard.stories.d.ts +0 -0
- /package/dist/components/{LinkWithArrow → atoms/LinkWithArrow}/LinkWithArrow.stories.d.ts +0 -0
- /package/dist/components/{MainWrapper → atoms/MainWrapper}/MainWrapper.d.ts +0 -0
- /package/dist/components/{NavLink → atoms/NavLink}/NavLink.stories.d.ts +0 -0
- /package/dist/components/{PageLink → atoms/PageLink}/PageLink.stories.d.ts +0 -0
- /package/dist/components/{ParagraphLink → atoms/ParagraphLink}/ParagraphLink.stories.d.ts +0 -0
- /package/dist/components/{Parallax → atoms/Parallax}/Parallax.d.ts +0 -0
- /package/dist/components/{ReverseLinkWithArrow → atoms/ReverseLinkWithArrow}/ReverseLinkWithArrow.stories.d.ts +0 -0
- /package/dist/components/{TextButton → atoms/TextButton}/TextButton.stories.d.ts +0 -0
- /package/dist/components/{TextButtonWithIcon → atoms/TextButtonWithIcon}/TextButtonWithIcon.stories.d.ts +0 -0
- /package/dist/components/{Video → atoms/Video}/Video.stories.d.ts +0 -0
- /package/dist/components/{Video → atoms/Video}/defaultProps.d.ts +0 -0
- /package/dist/components/{CampusSelector → molecules/CampusSelector}/CampusSelector.stories.d.ts +0 -0
- /package/dist/components/{CardFeatured → molecules/CardFeatured}/CardFeatured.stories.d.ts +0 -0
- /package/dist/components/{CardFeatured → molecules/CardFeatured}/animationVariants.d.ts +0 -0
- /package/dist/components/{CardFeatured → molecules/CardFeatured}/defaultProps.d.ts +0 -0
- /package/dist/components/{CardMenu → molecules/CardMenu}/CardMenu.stories.d.ts +0 -0
- /package/dist/components/{CardNews → molecules/CardNews}/CardNews.stories.d.ts +0 -0
- /package/dist/components/{CardVideo → molecules/CardVideo}/CardVideo.stories.d.ts +0 -0
- /package/dist/components/{CarouselNav → molecules/CarouselNav}/CarouselNav.stories.d.ts +0 -0
- /package/dist/components/{Carousel → organisms/Carousel}/Carousel.stories.d.ts +0 -0
- /package/dist/components/{FeaturedContent → organisms/FeaturedContent}/FeaturedContent.stories.d.ts +0 -0
- /package/dist/components/{FeaturedContent → organisms/FeaturedContent}/defaultProps.d.ts +0 -0
- /package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/FeaturedSignpost.stories.d.ts +0 -0
- /package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/animationProperties.d.ts +0 -0
- /package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/components/LinesOfIntent.d.ts +0 -0
- /package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/components/SignpostImage.d.ts +0 -0
- /package/dist/components/{FeaturedSignpost → organisms/FeaturedSignpost}/defaultProps.d.ts +0 -0
- /package/dist/components/{FeaturedVideo → organisms/FeaturedVideo}/defaultProps.d.ts +0 -0
- /package/dist/components/{Footer → organisms/Footer}/Footer.stories.d.ts +0 -0
- /package/dist/components/{Footer → organisms/Footer}/defaultProps.d.ts +0 -0
- /package/dist/components/{Header → organisms/Header}/Header.stories.d.ts +0 -0
- /package/dist/components/{Header → organisms/Header}/types.d.ts +0 -0
- /package/dist/components/{HeroCarousel → organisms/HeroCarousel}/HeroCarousel.stories.d.ts +0 -0
- /package/dist/components/{HeroCarousel → organisms/HeroCarousel}/animationVariants.d.ts +0 -0
- /package/dist/components/{HeroCarousel → organisms/HeroCarousel}/components/HeroImage.d.ts +0 -0
- /package/dist/components/{HeroCarousel → organisms/HeroCarousel}/components/LinesOfIntent.d.ts +0 -0
- /package/dist/components/{HeroCarousel → organisms/HeroCarousel}/defaultProps.d.ts +0 -0
- /package/dist/components/{SearchCourses → organisms/SearchCourses}/SearchCourses.stories.d.ts +0 -0
- /package/dist/components/{SearchCourses → organisms/SearchCourses}/defaultProps.d.ts +0 -0
- /package/dist/components/{SignPost → organisms/SignPost}/SignPost.stories.d.ts +0 -0
- /package/dist/components/{SignPost → organisms/SignPost}/defaultProps.d.ts +0 -0
- /package/dist/components/{SkipToContent → organisms/SkipToContent}/SkipToContent.stories.d.ts +0 -0
- /package/dist/components/{VideoCardComponent → organisms/VideoCardComponent}/defaultProps.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './breadcrumbLink.scss';
|
|
4
|
+
export interface BreadcrumbLinkProps {
|
|
5
|
+
theme: ThemeProps;
|
|
6
|
+
inverse?: boolean;
|
|
7
|
+
url: string;
|
|
8
|
+
title: string;
|
|
9
|
+
}
|
|
10
|
+
export default function BreadcrumbLink({ theme, inverse, url, title }: BreadcrumbLinkProps): ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import BreadcrumbLink from './BreadcrumbLink';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof BreadcrumbLink;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Dark: Story;
|
|
11
|
+
export declare const Light: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import './icons.scss';
|
|
4
4
|
export type IconType = 'twitter' | 'facebook' | 'wechat' | 'weibo' | 'youtube' | 'instagram' | 'linkedin' | 'chevron-down' | 'chevron-right' | 'arrow-right' | 'arrow-right-large' | 'location' | 'hamburger' | 'cross' | 'arrow-left' | 'search' | 'arrow-down' | 'play';
|
|
5
5
|
export type IconProps = {
|
package/dist/components/{TextButtonWithIcon → atoms/TextButtonWithIcon}/TextButtonWithIcon.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
|
2
2
|
import { IconType } from '../Icons/Icons';
|
|
3
|
-
import { ThemeProps } from '
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './textButtonWithIcon.scss';
|
|
5
5
|
export interface TextButtonWithIconProps {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { KeyboardEvent } from 'react';
|
|
2
|
-
import { ImageProps } from '
|
|
3
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './cardFeatured.scss';
|
|
5
5
|
export interface CardFeaturedProps {
|
|
6
6
|
theme: ThemeProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ImageProps } from '
|
|
3
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './cardMenu.scss';
|
|
5
5
|
export interface CardMenuProps {
|
|
6
6
|
theme: ThemeProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ImageProps } from '
|
|
3
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './cardNews.scss';
|
|
5
5
|
export interface CardNewsProps {
|
|
6
6
|
theme: ThemeProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ImageProps } from '
|
|
3
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
3
|
+
import { ThemeProps } from '../../../themeProps';
|
|
4
4
|
import './cardVideo.scss';
|
|
5
5
|
export interface CardVideoProps {
|
|
6
6
|
theme: ThemeProps;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import './breadcrumbs.scss';
|
|
4
|
+
interface Link {
|
|
5
|
+
url: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export interface BreadcrumbsProps {
|
|
9
|
+
theme: ThemeProps;
|
|
10
|
+
inverse?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Links need to be provided in top down order, from parent to child
|
|
13
|
+
* E.g. Home, Level1, Level2, Level3
|
|
14
|
+
*/
|
|
15
|
+
links: Link[];
|
|
16
|
+
}
|
|
17
|
+
export default function Breadcrumbs({ theme, inverse, links }: BreadcrumbsProps): ReactElement;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import Breadcrumbs from './Breadcrumbs';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Breadcrumbs;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Dark: Story;
|
|
11
|
+
export declare const Light: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { CardNewsProps } from '
|
|
3
|
-
import { CardFeaturedProps } from '
|
|
4
|
-
import { CardVideoProps } from '
|
|
5
|
-
import { ThemeProps } from '
|
|
2
|
+
import { CardNewsProps } from '../../molecules/CardNews/CardNews';
|
|
3
|
+
import { CardFeaturedProps } from '../../molecules/CardFeatured/CardFeatured';
|
|
4
|
+
import { CardVideoProps } from '../../molecules/CardVideo/CardVideo';
|
|
5
|
+
import { ThemeProps } from '../../../themeProps';
|
|
6
6
|
import './carousel.scss';
|
|
7
7
|
export interface CarouselProps {
|
|
8
8
|
theme: ThemeProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CarouselProps } from './Carousel';
|
|
2
|
-
import { CardNewsProps } from '
|
|
2
|
+
import { CardNewsProps } from '../../molecules/CardNews/CardNews';
|
|
3
3
|
export declare const newsCards: Omit<CardNewsProps, 'titleTag'>[];
|
|
4
4
|
export declare const carouselProps: CarouselProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
3
|
-
import { CardFeaturedProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import { CardFeaturedProps } from '../../molecules/CardFeatured/CardFeatured';
|
|
4
4
|
import './featuredContent.scss';
|
|
5
5
|
export interface FeaturedContentProps {
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import './featuredVideo.scss';
|
|
4
|
-
import { ImageProps } from '
|
|
4
|
+
import { ImageProps } from '../../atoms/Image/Image';
|
|
5
5
|
export interface FeaturedVideoProps {
|
|
6
6
|
theme: ThemeProps;
|
|
7
7
|
inverse?: boolean;
|
package/dist/components/{FeaturedVideo → organisms/FeaturedVideo}/FeaturedVideo.stories.d.ts
RENAMED
|
@@ -5,9 +5,9 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof FeaturedVideo;
|
|
7
7
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
8
|
-
theme: import("
|
|
8
|
+
theme: import("../../../themeProps").ThemeProps;
|
|
9
9
|
inverse?: boolean | undefined;
|
|
10
|
-
image: import("
|
|
10
|
+
image: import("../../atoms/Image/Image").ImageProps;
|
|
11
11
|
title: string;
|
|
12
12
|
youtubeId: string;
|
|
13
13
|
audioYoutubeId?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
3
|
-
import { IconType } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import { IconType } from '../../atoms/Icons/Icons';
|
|
4
4
|
import './footer.scss';
|
|
5
5
|
export interface FooterLinkProps {
|
|
6
6
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
3
|
import { HeaderLink } from './types';
|
|
4
4
|
import { SearchMenuProps } from './components/SearchMenu';
|
|
5
|
-
import { CardMenuProps } from '
|
|
5
|
+
import { CardMenuProps } from '../../molecules/CardMenu/CardMenu';
|
|
6
6
|
import './header.scss';
|
|
7
7
|
export interface HeaderProps {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { HeaderLink } from '../types';
|
|
3
|
-
import { ThemeProps } from '
|
|
4
|
-
import { CardMenuProps } from '
|
|
3
|
+
import { ThemeProps } from '../../../../themeProps';
|
|
4
|
+
import { CardMenuProps } from '../../../molecules/CardMenu/CardMenu';
|
|
5
5
|
export interface MainMenuProps {
|
|
6
6
|
primaryLinks: HeaderLink[];
|
|
7
7
|
secondaryLinks: HeaderLink[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { HeaderLink } from '../types';
|
|
3
|
-
import { ThemeProps } from '
|
|
3
|
+
import { ThemeProps } from '../../../../themeProps';
|
|
4
4
|
export interface NestedMenuProps {
|
|
5
5
|
headingLink: HeaderLink;
|
|
6
6
|
onClickGoBack: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeaderProps } from './Header';
|
|
2
2
|
export declare const headerProps: HeaderProps;
|
|
3
|
-
export declare const menuCards: [import("
|
|
4
|
-
theme: import("
|
|
3
|
+
export declare const menuCards: [import("../../molecules/CardMenu/CardMenu").CardMenuProps, import("../../molecules/CardMenu/CardMenu").CardMenuProps, import("../../molecules/CardMenu/CardMenu").CardMenuProps] | undefined, headerPropsDubai: {
|
|
4
|
+
theme: import("../../../themeProps").ThemeProps;
|
|
5
5
|
primaryLinks: import("./types").HeaderLink[];
|
|
6
6
|
secondaryLinks: import("./types").HeaderLink[];
|
|
7
7
|
homepageUrl: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
3
|
-
import { SelectOptionsProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import { SelectOptionsProps } from '../../atoms/FormSelect/FormSelect';
|
|
4
4
|
import './searchCourses.scss';
|
|
5
5
|
export interface FilterOptionsProps {
|
|
6
6
|
label: string;
|
package/dist/components/{VideoCardComponent → organisms/VideoCardComponent}/VideoCardComponent.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ThemeProps } from '
|
|
3
|
-
import { CardVideoProps } from '
|
|
2
|
+
import { ThemeProps } from '../../../themeProps';
|
|
3
|
+
import { CardVideoProps } from '../../molecules/CardVideo/CardVideo';
|
|
4
4
|
import './videoCardComponent.scss';
|
|
5
5
|
export interface VideoCardComponentProps {
|
|
6
6
|
/**
|
|
@@ -5,13 +5,13 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof VideoCardComponent;
|
|
7
7
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
8
|
-
theme: import("
|
|
8
|
+
theme: import("../../../themeProps").ThemeProps;
|
|
9
9
|
title: string;
|
|
10
10
|
linkUrl?: string | undefined;
|
|
11
11
|
linkText?: string | undefined;
|
|
12
12
|
externalLink?: boolean | undefined;
|
|
13
13
|
tag?: string | undefined;
|
|
14
|
-
cards: [import("
|
|
14
|
+
cards: [import("../../molecules/CardVideo/CardVideo").CardVideoProps, import("../../molecules/CardVideo/CardVideo").CardVideoProps, import("../../molecules/CardVideo/CardVideo").CardVideoProps];
|
|
15
15
|
}>) => JSX.Element)[];
|
|
16
16
|
tags: string[];
|
|
17
17
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -358,4 +358,19 @@ interface VideoCardComponentProps {
|
|
|
358
358
|
}
|
|
359
359
|
declare function VideoCardComponent({ theme, tag, title, linkUrl, linkText, externalLink, cards }: VideoCardComponentProps): ReactElement | null;
|
|
360
360
|
|
|
361
|
-
|
|
361
|
+
interface Link {
|
|
362
|
+
url: string;
|
|
363
|
+
title: string;
|
|
364
|
+
}
|
|
365
|
+
interface BreadcrumbsProps {
|
|
366
|
+
theme: ThemeProps;
|
|
367
|
+
inverse?: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* Links need to be provided in top down order, from parent to child
|
|
370
|
+
* E.g. Home, Level1, Level2, Level3
|
|
371
|
+
*/
|
|
372
|
+
links: Link[];
|
|
373
|
+
}
|
|
374
|
+
declare function Breadcrumbs({ theme, inverse, links }: BreadcrumbsProps): ReactElement;
|
|
375
|
+
|
|
376
|
+
export { Breadcrumbs, Carousel, FeaturedContent, FeaturedSignpost, FeaturedVideo, Footer, Header, HeroCarousel, MainWrapper, SearchCourses, SignPost, SkipToContent, VideoCardComponent };
|