@royaloperahouse/harmonic 1.0.1-a → 1.0.1-d
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/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +2 -10
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.types.d.ts +10 -0
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/TextLogo/TextLogo.d.ts +3 -10
- package/dist/components/atoms/TextLogo/TextLogo.types.d.ts +10 -0
- package/dist/components/atoms/index.d.ts +7 -2
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/BodyContent/BodyContent.d.ts +1 -4
- package/dist/components/molecules/BodyContent/BodyContent.types.d.ts +4 -0
- package/dist/components/molecules/Information/InfoCta.types.d.ts +11 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.types.d.ts +14 -0
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +1 -7
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.types.d.ts +7 -0
- package/dist/components/molecules/PageHeading/Promo/components/Badge.d.ts +2 -8
- package/dist/components/molecules/PageHeading/Promo/components/Badge.types.d.ts +7 -0
- package/dist/components/molecules/PageHeading/Promo/components/Button.d.ts +2 -8
- package/dist/components/molecules/PageHeading/Promo/components/Button.types.d.ts +7 -0
- package/dist/components/molecules/Pagination/Pagination.d.ts +2 -13
- package/dist/components/molecules/Pagination/Pagination.types.d.ts +13 -0
- package/dist/components/molecules/Paywall/Paywall.styles.d.ts +1 -4
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +2 -7
- package/dist/components/molecules/PromoWithTitle/PromoChild.types.d.ts +7 -0
- package/dist/components/molecules/Select2/Select2.d.ts +1 -3
- package/dist/components/molecules/Select2/Select2.types.d.ts +6 -0
- package/dist/components/molecules/SignUpForm/components/SignUpFormButton.d.ts +2 -6
- package/dist/components/molecules/SignUpForm/components/SignUpFormButton.types.d.ts +6 -0
- package/dist/components/molecules/Swipe/Swipe.d.ts +2 -6
- package/dist/components/molecules/Swipe/Swipe.types.d.ts +17 -0
- package/dist/components/molecules/Table/Table.style.d.ts +1 -1
- package/dist/components/molecules/Table/components/HeaderCells.d.ts +1 -4
- package/dist/components/molecules/Table/components/HeaderCells.types.d.ts +5 -0
- package/dist/components/molecules/index.d.ts +10 -3
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.d.ts +2 -3
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.types.d.ts +2 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.d.ts +3 -9
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.types.d.ts +8 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts +3 -12
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.types.d.ts +11 -0
- package/dist/harmonic.cjs.development.css +319 -0
- package/dist/harmonic.cjs.development.js +3521 -3922
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +3563 -3971
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +1 -0
- package/dist/types/types.d.ts +19 -2
- package/package.json +2 -1
- package/dist/components/atoms/Radio/Radio.d.ts +0 -7
- package/dist/components/atoms/Radio/Radio.style.d.ts +0 -4
- package/dist/components/atoms/Radio/index.d.ts +0 -2
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +0 -7
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +0 -1
- package/dist/components/molecules/RadioGroup/index.d.ts +0 -2
- package/dist/components/molecules/Select/Select.d.ts +0 -101
- package/dist/components/molecules/Select/Select.style.d.ts +0 -13
- package/dist/components/molecules/Select/index.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDropdownProps } from '../../../types/types';
|
|
3
|
-
declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, className, role, ariaLabel, trimTabText, }: IDropdownProps) => React.JSX.Element;
|
|
3
|
+
declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, className, role, ariaLabel, tabLinkId, trimTabText, }: IDropdownProps) => React.JSX.Element;
|
|
4
4
|
export default Dropdown;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
iconName: IconNameType;
|
|
5
|
-
label: string;
|
|
6
|
-
direction?: DirectionType;
|
|
7
|
-
ariaLabel?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IIconographyGridProps {
|
|
10
|
-
iconsArray: IStorybookIcon[];
|
|
11
|
-
}
|
|
2
|
+
import { IIconographyGridProps } from './Iconography.types';
|
|
3
|
+
export type { IIconographyGridProps, IStorybookIcon } from './Iconography.types';
|
|
12
4
|
export declare function Iconography({ iconsArray }: IIconographyGridProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DirectionType, IconNameType } from '../../../../types/iconTypes';
|
|
2
|
+
export interface IStorybookIcon {
|
|
3
|
+
iconName: IconNameType;
|
|
4
|
+
label: string;
|
|
5
|
+
direction?: DirectionType;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IIconographyGridProps {
|
|
9
|
+
iconsArray: IStorybookIcon[];
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITabProps } from '../../../types/types';
|
|
3
|
-
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, dataTestId, isOpen, }: ITabProps) => React.JSX.Element;
|
|
3
|
+
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, dataTestId, isOpen, }: ITabProps) => React.JSX.Element;
|
|
4
4
|
export default Tab;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
Cinema = "CINEMA"
|
|
6
|
-
}
|
|
7
|
-
export interface ITextLogoProps {
|
|
8
|
-
productName: TextLogoProduct;
|
|
9
|
-
color: Colors;
|
|
10
|
-
fontSize?: number;
|
|
11
|
-
}
|
|
2
|
+
import { ITextLogoProps } from './TextLogo.types';
|
|
3
|
+
export { TextLogoProduct } from './TextLogo.types';
|
|
4
|
+
export type { ITextLogoProps } from './TextLogo.types';
|
|
12
5
|
declare const Logo: ({ color, productName, fontSize }: ITextLogoProps) => React.ReactElement;
|
|
13
6
|
export default Logo;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { CinemaBadge, StreamBadge } from './Badge';
|
|
2
|
+
import Account from './Account';
|
|
3
|
+
import AuxiliaryButton from './Buttons/Auxiliary/AuxiliaryButton';
|
|
2
4
|
import { PrimaryButton, SecondaryButton, TertiaryButton } from './Buttons';
|
|
3
5
|
import ControlledDropdown from './ControlledDropdown';
|
|
6
|
+
import Dropdown from './Dropdown';
|
|
4
7
|
import { Grid, GridItem } from './Grid';
|
|
5
8
|
import { Icon } from './Icons';
|
|
6
9
|
import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
|
|
10
|
+
import Logo from './Logo';
|
|
11
|
+
import Person from './Person';
|
|
7
12
|
import Progress from './Progress';
|
|
8
|
-
import Radio from './Radio';
|
|
9
13
|
import Radio2 from './Radio2';
|
|
10
14
|
import RotatorButtons from './RotatorButtons';
|
|
15
|
+
import Search from './Search';
|
|
11
16
|
import SecondaryLogo from './SecondaryLogo';
|
|
12
17
|
import SectionSplitter from './SectionSplitter';
|
|
13
18
|
import SponsorLogo from './SponsorLogo';
|
|
@@ -26,4 +31,4 @@ import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
|
|
|
26
31
|
import VideoControls from './VideoControls';
|
|
27
32
|
import { Stepper } from './Stepper';
|
|
28
33
|
import SocialLinks from './SocialLinks';
|
|
29
|
-
export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, Progress, PrimaryButton,
|
|
34
|
+
export { Account, AltHeader, AuxiliaryButton, BodyText, CinemaBadge, ControlledDropdown, Dropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Logo, Overline, Person, Progress, PrimaryButton, Radio2, RotatorButtons, Search, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, SocialLinks, Stepper, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, VideoControls, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './Typography';
|
|
2
|
-
import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress,
|
|
3
|
-
import { AnchorTabBar, Footer, Navigation, StickyBar, TitleWithCTA, UpsellSection, Carousel, MinimalCarousel, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream } from './organisms';
|
|
4
|
-
import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, CastFilter, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlight, PageHeadingHighlightCarousel, PasswordStrength, Pagination, Paywall, PeopleListing, PromoWithTags, PromoWithTitle,
|
|
2
|
+
import { Account, AltHeader, BodyText, CinemaBadge, ControlledDropdown, Dropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Logo, Overline, Person, PrimaryButton, Progress, Radio2, RotatorButtons, Search, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, SocialLinks, SponsorLogo, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
|
|
3
|
+
import { AnchorTabBar, Footer, Navigation, StickyBar, TitleWithCTA, UpsellSection, Carousel, MinimalCarousel, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, ModalWindow } from './organisms';
|
|
4
|
+
import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Basket, BodyContent, Card, Cards, CastFilter, ContactNewsletter, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, MiniCard, NavTop, PersonDetails, PersonCard, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlight, PageHeadingHighlightCarousel, PasswordStrength, Pagination, Paywall, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, Quote, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Table, Tabs, UpsellCard, UpsellCards, VideoWithControls, SkipToMain } from './molecules';
|
|
5
5
|
import ThemeProvider from '../styles/ThemeProvider';
|
|
6
6
|
import GlobalStyles from '../styles/GlobalStyles';
|
|
7
7
|
export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, SkipToMain, };
|
|
8
|
-
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CastFilter, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Header, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, MinimalCarousel, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Paywall, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle,
|
|
8
|
+
export { Accordion, Accordions, Account, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Basket, BodyContent, BodyText, Card, Cards, Carousel, CastFilter, ContactNewsletter, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, Dropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Header, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, MinimalCarousel, MiniCard, ModalWindow, NavTop, Navigation, Overline, Person, PersonCard, PersonDetails, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Paywall, PeopleListing, PolicyLinks, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio2, RadioGroup2, ReadMore, RotatorButtons, Search, SecondaryButton, SecondaryLogo, SocialLinks, StatusBanner, SearchBar, SectionTitle, Select2, Select2Async, SponsorLogo, SignUpForm, Swipe, SwipeRef, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, VideoControls, VideoWithControls, };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { IBodyContentProps } from '../../../types/types';
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
html: string;
|
|
6
|
-
};
|
|
3
|
+
import { BodyContentTextContainerProps } from './BodyContent.types';
|
|
7
4
|
export declare const BodyContentTextContainer: ({ className, html }: BodyContentTextContainerProps) => React.JSX.Element;
|
|
8
5
|
declare const BodyContent: FunctionComponent<IBodyContentProps>;
|
|
9
6
|
export default BodyContent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DirectionType, IconNameType } from '../../../types/iconTypes';
|
|
2
|
+
import type { InformationCtaVariant } from '../../../types/information';
|
|
3
|
+
import { LinkTarget } from '../../../types/types';
|
|
4
|
+
export declare type RenderButtonProps = {
|
|
5
|
+
variant: InformationCtaVariant;
|
|
6
|
+
link: string;
|
|
7
|
+
text: string;
|
|
8
|
+
iconName?: IconNameType;
|
|
9
|
+
iconDirection?: DirectionType;
|
|
10
|
+
target: LinkTarget;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type VideoPoster = {
|
|
2
|
+
desktop?: string;
|
|
3
|
+
mobile?: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type Video = {
|
|
7
|
+
elementId: string;
|
|
8
|
+
desktop?: string;
|
|
9
|
+
mobile?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface IVideoProps {
|
|
12
|
+
video: Video;
|
|
13
|
+
poster: VideoPoster;
|
|
14
|
+
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface IBrandingProps {
|
|
4
|
-
brandingStyle: BrandingStyle;
|
|
5
|
-
brandingLink?: string;
|
|
6
|
-
brandingText?: string;
|
|
7
|
-
invert: boolean;
|
|
8
|
-
}
|
|
2
|
+
import { IBrandingProps } from './CompactHeaderBranding.types';
|
|
9
3
|
declare const CompactHeaderBranding: FunctionComponent<IBrandingProps>;
|
|
10
4
|
export default CompactHeaderBranding;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare type Props = {
|
|
5
|
-
theme?: ThemeType;
|
|
6
|
-
badge?: PageHeadingPromoBadge;
|
|
7
|
-
isMobile: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const Badge: React.FC<Props>;
|
|
2
|
+
import { BadgeProps } from './Badge.types';
|
|
3
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
10
4
|
export default Badge;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare type Props = {
|
|
5
|
-
link: PageHeadingPromoAdditionalLink | EditorialLink;
|
|
6
|
-
theme?: ThemeType;
|
|
7
|
-
isMobile?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const Button: React.FC<Props>;
|
|
2
|
+
import { ButtonProps } from './Button.types';
|
|
3
|
+
declare const Button: React.FC<ButtonProps>;
|
|
10
4
|
export default Button;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EditorialLink, ThemeType } from '../../../../../types';
|
|
2
|
+
import { PageHeadingPromoAdditionalLink } from '../../../../../types/impactHeader';
|
|
3
|
+
export declare type ButtonProps = {
|
|
4
|
+
link: PageHeadingPromoAdditionalLink | EditorialLink;
|
|
5
|
+
theme?: ThemeType;
|
|
6
|
+
isMobile?: boolean;
|
|
7
|
+
};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
pageCount: number;
|
|
5
|
-
baseUrl: string;
|
|
6
|
-
onPageChange?: never;
|
|
7
|
-
className?: string;
|
|
8
|
-
} | {
|
|
9
|
-
currentPage: number;
|
|
10
|
-
pageCount: number;
|
|
11
|
-
onPageChange: (page: number) => void;
|
|
12
|
-
baseUrl?: never;
|
|
13
|
-
className?: string;
|
|
14
|
-
};
|
|
2
|
+
import { PageData } from './Pagination.types';
|
|
3
|
+
export type { PageData } from './Pagination.types';
|
|
15
4
|
export declare const reducePages: (pages: number[], currentPage: number) => number[];
|
|
16
5
|
declare const Pagination: ({ pageCount, currentPage, baseUrl, className, onPageChange }: PageData) => React.ReactElement;
|
|
17
6
|
export default Pagination;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type PageData = {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
pageCount: number;
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
onPageChange?: never;
|
|
6
|
+
className?: string;
|
|
7
|
+
} | {
|
|
8
|
+
currentPage: number;
|
|
9
|
+
pageCount: number;
|
|
10
|
+
onPageChange: (page: number) => void;
|
|
11
|
+
baseUrl?: never;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
@@ -5,10 +5,7 @@ export declare const Button: import("styled-components").StyledComponent<import(
|
|
|
5
5
|
textColor: "primary-black";
|
|
6
6
|
}, "textColor" | "borderColor" | "hoveredColor" | "pressedColor">;
|
|
7
7
|
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const Description: import("styled-components").StyledComponent<({ className, html }: {
|
|
9
|
-
className?: string | undefined;
|
|
10
|
-
html: string;
|
|
11
|
-
}) => import("react").JSX.Element, any, {}, never>;
|
|
8
|
+
export declare const Description: import("styled-components").StyledComponent<({ className, html }: import("../BodyContent/BodyContent.types").BodyContentTextContainerProps) => import("react").JSX.Element, any, {}, never>;
|
|
12
9
|
export declare const Heading: import("styled-components").StyledComponent<({ children, size, em, color, serif, hierarchy, tag, className, ...props }: import("../../../types/typography").HarmonicHeaderProps) => import("react").DOMElement<{
|
|
13
10
|
defaultChecked?: boolean | undefined;
|
|
14
11
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent
|
|
2
|
-
import {
|
|
3
|
-
interface IPromoChildProps {
|
|
4
|
-
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
5
|
-
videoSettings: IVideoWithControlsSettings;
|
|
6
|
-
imageToLeft: boolean;
|
|
7
|
-
}
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IPromoChildProps } from './PromoChild.types';
|
|
8
3
|
declare const PromoChild: FunctionComponent<IPromoChildProps>;
|
|
9
4
|
export default PromoChild;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IVideoWithControlsSettings } from '../../../types/types';
|
|
3
|
+
export interface IPromoChildProps {
|
|
4
|
+
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
5
|
+
videoSettings: IVideoWithControlsSettings;
|
|
6
|
+
imageToLeft: boolean;
|
|
7
|
+
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { DropdownIndicatorProps } from 'react-select';
|
|
3
3
|
import { ISelect2Props } from '../../../types/formTypes';
|
|
4
|
+
import { IWrapperProps } from './Select2.types';
|
|
4
5
|
export declare const DropdownIndicator: (props: DropdownIndicatorProps) => React.JSX.Element;
|
|
5
|
-
interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode' | 'className'> {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
6
|
export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
|
|
9
7
|
/**
|
|
10
8
|
* A Select2 component wraps react-select with Harmonic styling and additional elements like
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
theme: ThemeType;
|
|
5
|
-
onClick: (e: React.FormEvent) => Promise<void>;
|
|
6
|
-
};
|
|
7
|
-
declare const SignUpFormButton: React.FC<Props>;
|
|
2
|
+
import { SignUpFormButtonProps } from './SignUpFormButton.types';
|
|
3
|
+
declare const SignUpFormButton: React.FC<SignUpFormButtonProps>;
|
|
8
4
|
export default SignUpFormButton;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
prevSlide: () => void;
|
|
5
|
-
hasOverflow: () => boolean;
|
|
6
|
-
hasNext: () => boolean;
|
|
7
|
-
}
|
|
2
|
+
import { SwipeRef } from './Swipe.types';
|
|
3
|
+
export type { SwipeRef } from './Swipe.types';
|
|
8
4
|
declare const Swipe: React.ForwardRefExoticComponent<{
|
|
9
5
|
children: React.ReactNode[];
|
|
10
6
|
infinite?: boolean | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SwipeProps = {
|
|
3
|
+
children: React.ReactNode[];
|
|
4
|
+
infinite?: boolean;
|
|
5
|
+
slidesOffsetBefore?: number;
|
|
6
|
+
slidesAriaHidden?: boolean;
|
|
7
|
+
onIndexChange?: (index: number) => void;
|
|
8
|
+
onActiveChange?: (value: boolean) => void;
|
|
9
|
+
onOverflowChange?: (overflow: boolean) => void;
|
|
10
|
+
limitDragToNavigableRange?: boolean;
|
|
11
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export interface SwipeRef {
|
|
13
|
+
nextSlide: () => void;
|
|
14
|
+
prevSlide: () => void;
|
|
15
|
+
hasOverflow: () => boolean;
|
|
16
|
+
hasNext: () => boolean;
|
|
17
|
+
}
|
|
@@ -7,6 +7,6 @@ export declare const TableHeader: import("styled-components").StyledComponent<"t
|
|
|
7
7
|
export declare const TableCell: import("styled-components").StyledComponent<"td", any, {
|
|
8
8
|
columns: number;
|
|
9
9
|
}, never>;
|
|
10
|
-
export declare const PaginationWrapper: import("styled-components").StyledComponent<({ pageCount, currentPage, baseUrl, className, onPageChange }: import("../Pagination/Pagination").PageData) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>, any, {}, never>;
|
|
10
|
+
export declare const PaginationWrapper: import("styled-components").StyledComponent<({ pageCount, currentPage, baseUrl, className, onPageChange }: import("../Pagination/Pagination.types").PageData) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>, any, {}, never>;
|
|
11
11
|
export declare const ScrollButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const AriaDescription: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import Accordion from './Accordion';
|
|
2
2
|
import Accordions from './Accordions';
|
|
3
3
|
import AnnouncementBanner from './AnnouncementBanner';
|
|
4
|
+
import Basket from './Basket';
|
|
5
|
+
import BodyContent from './BodyContent';
|
|
4
6
|
import Card from './Card';
|
|
5
7
|
import Cards from './Cards';
|
|
6
8
|
import CastFilter from './CastFilter';
|
|
7
9
|
import ContactCard from './ContactCard';
|
|
10
|
+
import ContactNewsletter from './ContactNewsletter';
|
|
8
11
|
import ContentSummary from './ContentSummary';
|
|
9
12
|
import Editorial from './Editorial';
|
|
10
13
|
import HotFilters from './HotFilters';
|
|
@@ -15,18 +18,21 @@ import { PeopleListing, CreditListing } from './PeopleListing';
|
|
|
15
18
|
import PolicyLinks from './PolicyLinks';
|
|
16
19
|
import PromoWithTags from './PromoWithTags';
|
|
17
20
|
import PromoWithTitle from './PromoWithTitle';
|
|
18
|
-
import
|
|
21
|
+
import Quote from './Quote';
|
|
19
22
|
import RadioGroup2 from './RadioGroup2';
|
|
20
23
|
import StatusBanner from './StatusBanner';
|
|
21
24
|
import SearchBar from './SearchBar';
|
|
22
25
|
import SectionTitle from './SectionTitle';
|
|
23
|
-
import Select from './Select';
|
|
24
26
|
import Select2 from './Select2';
|
|
25
27
|
import Select2Async from './Select2Async';
|
|
28
|
+
import { Swipe, SwipeRef } from './Swipe';
|
|
26
29
|
import Tabs from './Tabs';
|
|
27
30
|
import UpsellCard from './UpsellCard';
|
|
28
31
|
import ImageWithCaption from './ImageWithCaption';
|
|
29
32
|
import MiniCard from './MiniCard';
|
|
33
|
+
import NavTop from './NavTop';
|
|
34
|
+
import PersonCard from './PersonCard';
|
|
35
|
+
import PersonDetails from './PersonDetails';
|
|
30
36
|
import ReadMore from './ReadMore';
|
|
31
37
|
import AuxiliaryNav from './AuxiliaryNav';
|
|
32
38
|
import PasswordStrength from './PasswordStrength';
|
|
@@ -36,4 +42,5 @@ import SignUpForm from './SignUpForm';
|
|
|
36
42
|
import AnchorBar from './AnchorBar';
|
|
37
43
|
import SkipToMain from './SkipToMain';
|
|
38
44
|
import Paywall from './Paywall';
|
|
39
|
-
|
|
45
|
+
import UpsellCards from './UpsellCards';
|
|
46
|
+
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Basket, BodyContent, Card, Cards, CastFilter, ContactCard, ContactNewsletter, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, MiniCard, NavTop, PersonCard, PersonDetails, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingHighlight, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlightCarousel, PasswordStrength, Pagination, Paywall, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, Quote, RadioGroup2, ReadMore, StatusBanner, SectionTitle, SearchBar, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Tabs, Table, UpsellCard, UpsellCards, VideoWithControls, SkipToMain, };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare
|
|
4
|
-
declare const Buttons: FunctionComponent<Props>;
|
|
2
|
+
import { HighlightsCarouselButtonsProps } from './Buttons.types';
|
|
3
|
+
declare const Buttons: FunctionComponent<HighlightsCarouselButtonsProps>;
|
|
5
4
|
export default Buttons;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare type Props = {
|
|
5
|
-
logo?: ReactElement<ILogosProps> | null;
|
|
6
|
-
slide: HighlightsCarouselSlide;
|
|
7
|
-
currentSlideIndex: number;
|
|
8
|
-
};
|
|
9
|
-
declare const InfoSection: FunctionComponent<Props>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { HighlightsCarouselInfoSectionProps } from './InfoSection.types';
|
|
3
|
+
declare const InfoSection: FunctionComponent<HighlightsCarouselInfoSectionProps>;
|
|
10
4
|
export default InfoSection;
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { HighlightsCarouselSlide } from '../../../../../types/carousel';
|
|
3
|
+
import { ILogosProps } from '../../../../../types/types';
|
|
4
|
+
export declare type HighlightsCarouselInfoSectionProps = {
|
|
5
|
+
logo?: ReactElement<ILogosProps> | null;
|
|
6
|
+
slide: HighlightsCarouselSlide;
|
|
7
|
+
currentSlideIndex: number;
|
|
8
|
+
};
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare type Props = {
|
|
5
|
-
slidesMedia: (HighlightsCarouselSlideImage | HighlightsCarouselSlideVideo)[];
|
|
6
|
-
currentSlide: number;
|
|
7
|
-
setCurrentSlide: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
-
carouselRef: React.RefObject<SwipeRef>;
|
|
9
|
-
hasMultipleSlides: boolean;
|
|
10
|
-
carouselTitle?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const SwipeCarousel: FunctionComponent<Props>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { HighlightsCarouselSwipeCarouselProps } from './SwipeCarousel.types';
|
|
3
|
+
declare const SwipeCarousel: FunctionComponent<HighlightsCarouselSwipeCarouselProps>;
|
|
13
4
|
export default SwipeCarousel;
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighlightsCarouselSlideImage, HighlightsCarouselSlideVideo } from '../../../../../types/carousel';
|
|
3
|
+
import { SwipeRef } from '../../../../molecules';
|
|
4
|
+
export declare type HighlightsCarouselSwipeCarouselProps = {
|
|
5
|
+
slidesMedia: (HighlightsCarouselSlideImage | HighlightsCarouselSlideVideo)[];
|
|
6
|
+
currentSlide: number;
|
|
7
|
+
setCurrentSlide: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
+
carouselRef: React.RefObject<SwipeRef>;
|
|
9
|
+
hasMultipleSlides: boolean;
|
|
10
|
+
carouselTitle?: string;
|
|
11
|
+
};
|