@royaloperahouse/harmonic 0.19.1-b → 0.19.1-c

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.
Files changed (60) hide show
  1. package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
  2. package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +10 -2
  3. package/dist/components/atoms/Radio/Radio.d.ts +7 -0
  4. package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
  5. package/dist/components/atoms/Radio/index.d.ts +2 -0
  6. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  7. package/dist/components/atoms/TextLogo/TextLogo.d.ts +10 -3
  8. package/dist/components/atoms/index.d.ts +2 -7
  9. package/dist/components/index.d.ts +4 -4
  10. package/dist/components/molecules/BodyContent/BodyContent.d.ts +4 -1
  11. package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +7 -1
  12. package/dist/components/molecules/PageHeading/Promo/components/Badge.d.ts +8 -2
  13. package/dist/components/molecules/PageHeading/Promo/components/Button.d.ts +8 -2
  14. package/dist/components/molecules/Pagination/Pagination.d.ts +13 -2
  15. package/dist/components/molecules/Paywall/Paywall.styles.d.ts +4 -1
  16. package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +7 -2
  17. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +7 -0
  18. package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
  19. package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
  20. package/dist/components/molecules/Select/Select.d.ts +101 -0
  21. package/dist/components/molecules/Select/Select.style.d.ts +13 -0
  22. package/dist/components/molecules/Select/index.d.ts +2 -0
  23. package/dist/components/molecules/Select2/Select2.d.ts +3 -1
  24. package/dist/components/molecules/SignUpForm/components/SignUpFormButton.d.ts +6 -2
  25. package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
  26. package/dist/components/molecules/Swipe/Swipe.d.ts +6 -2
  27. package/dist/components/molecules/Table/Table.style.d.ts +1 -1
  28. package/dist/components/molecules/Table/components/HeaderCells.d.ts +4 -1
  29. package/dist/components/molecules/index.d.ts +3 -10
  30. package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.d.ts +3 -2
  31. package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.d.ts +9 -3
  32. package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts +12 -3
  33. package/dist/harmonic.cjs.development.css +0 -319
  34. package/dist/harmonic.cjs.development.js +2198 -1801
  35. package/dist/harmonic.cjs.development.js.map +1 -1
  36. package/dist/harmonic.cjs.production.min.js +1 -1
  37. package/dist/harmonic.cjs.production.min.js.map +1 -1
  38. package/dist/harmonic.esm.js +2369 -1965
  39. package/dist/harmonic.esm.js.map +1 -1
  40. package/dist/index.d.ts +2 -2
  41. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
  42. package/dist/types/types.d.ts +1 -9
  43. package/package.json +1 -1
  44. package/dist/components/atoms/Icons/StorybookSupport/Iconography.types.d.ts +0 -10
  45. package/dist/components/atoms/TextLogo/TextLogo.types.d.ts +0 -10
  46. package/dist/components/molecules/BodyContent/BodyContent.types.d.ts +0 -4
  47. package/dist/components/molecules/Information/InfoCta.types.d.ts +0 -11
  48. package/dist/components/molecules/PageHeading/Compact/Compact.types.d.ts +0 -14
  49. package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.types.d.ts +0 -7
  50. package/dist/components/molecules/PageHeading/Promo/components/Badge.types.d.ts +0 -7
  51. package/dist/components/molecules/PageHeading/Promo/components/Button.types.d.ts +0 -7
  52. package/dist/components/molecules/Pagination/Pagination.types.d.ts +0 -13
  53. package/dist/components/molecules/PromoWithTitle/PromoChild.types.d.ts +0 -7
  54. package/dist/components/molecules/Select2/Select2.types.d.ts +0 -6
  55. package/dist/components/molecules/SignUpForm/components/SignUpFormButton.types.d.ts +0 -6
  56. package/dist/components/molecules/Swipe/Swipe.types.d.ts +0 -17
  57. package/dist/components/molecules/Table/components/HeaderCells.types.d.ts +0 -5
  58. package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.types.d.ts +0 -2
  59. package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.types.d.ts +0 -8
  60. package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.types.d.ts +0 -11
@@ -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, tabLinkId, trimTabText, }: IDropdownProps) => React.JSX.Element;
3
+ declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, className, role, ariaLabel, trimTabText, }: IDropdownProps) => React.JSX.Element;
4
4
  export default Dropdown;
@@ -1,4 +1,12 @@
1
1
  import React from 'react';
2
- import { IIconographyGridProps } from './Iconography.types';
3
- export type { IIconographyGridProps, IStorybookIcon } from './Iconography.types';
2
+ import { DirectionType, IconNameType } from '../../../../types/iconTypes';
3
+ export interface IStorybookIcon {
4
+ iconName: IconNameType;
5
+ label: string;
6
+ direction?: DirectionType;
7
+ ariaLabel?: string;
8
+ }
9
+ export interface IIconographyGridProps {
10
+ iconsArray: IStorybookIcon[];
11
+ }
4
12
  export declare function Iconography({ iconsArray }: IIconographyGridProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IRadioProps } from '../../../types/formTypes';
3
+ /**
4
+ * DEPRECATED. Use Radio2 instead
5
+ */
6
+ declare const Radio: ({ checked, error, label, onChange }: IRadioProps) => React.JSX.Element;
7
+ export default Radio;
@@ -0,0 +1,4 @@
1
+ import { IRadioProps } from '../../../types/formTypes';
2
+ export declare const RadioContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const RadioLine: import("styled-components").StyledComponent<"div", any, IRadioProps, never>;
4
+ export declare const RadioError: import("styled-components").StyledComponent<"div", any, IRadioProps, never>;
@@ -0,0 +1,2 @@
1
+ import Radio from './Radio';
2
+ export default Radio;
@@ -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, tabLinkId, 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, color, dataTestId, isOpen, }: ITabProps) => React.JSX.Element;
4
4
  export default Tab;
@@ -1,6 +1,13 @@
1
1
  import * as React from 'react';
2
- import { ITextLogoProps } from './TextLogo.types';
3
- export { TextLogoProduct } from './TextLogo.types';
4
- export type { ITextLogoProps } from './TextLogo.types';
2
+ import { Colors } from '../../../types';
3
+ export declare enum TextLogoProduct {
4
+ Stream = "STREAM",
5
+ Cinema = "CINEMA"
6
+ }
7
+ export interface ITextLogoProps {
8
+ productName: TextLogoProduct;
9
+ color: Colors;
10
+ fontSize?: number;
11
+ }
5
12
  declare const Logo: ({ color, productName, fontSize }: ITextLogoProps) => React.ReactElement;
6
13
  export default Logo;
@@ -1,18 +1,13 @@
1
1
  import { CinemaBadge, StreamBadge } from './Badge';
2
- import Account from './Account';
3
- import AuxiliaryButton from './Buttons/Auxiliary/AuxiliaryButton';
4
2
  import { PrimaryButton, SecondaryButton, TertiaryButton } from './Buttons';
5
3
  import ControlledDropdown from './ControlledDropdown';
6
- import Dropdown from './Dropdown';
7
4
  import { Grid, GridItem } from './Grid';
8
5
  import { Icon } from './Icons';
9
6
  import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
10
- import Logo from './Logo';
11
- import Person from './Person';
12
7
  import Progress from './Progress';
8
+ import Radio from './Radio';
13
9
  import Radio2 from './Radio2';
14
10
  import RotatorButtons from './RotatorButtons';
15
- import Search from './Search';
16
11
  import SecondaryLogo from './SecondaryLogo';
17
12
  import SectionSplitter from './SectionSplitter';
18
13
  import SponsorLogo from './SponsorLogo';
@@ -31,4 +26,4 @@ import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
31
26
  import VideoControls from './VideoControls';
32
27
  import { Stepper } from './Stepper';
33
28
  import SocialLinks from './SocialLinks';
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, };
29
+ export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, Progress, PrimaryButton, Radio, Radio2, RotatorButtons, 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 { 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';
2
+ import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, 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 } 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, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Table, Tabs, UpsellCard, 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, 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, };
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, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SponsorLogo, SignUpForm, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls, };
@@ -1,6 +1,9 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { IBodyContentProps } from '../../../types/types';
3
- import { BodyContentTextContainerProps } from './BodyContent.types';
3
+ declare type BodyContentTextContainerProps = {
4
+ className?: string;
5
+ html: string;
6
+ };
4
7
  export declare const BodyContentTextContainer: ({ className, html }: BodyContentTextContainerProps) => React.JSX.Element;
5
8
  declare const BodyContent: FunctionComponent<IBodyContentProps>;
6
9
  export default BodyContent;
@@ -1,4 +1,10 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { IBrandingProps } from './CompactHeaderBranding.types';
2
+ import { BrandingStyle } from '../../../../../types/impactHeader';
3
+ interface IBrandingProps {
4
+ brandingStyle: BrandingStyle;
5
+ brandingLink?: string;
6
+ brandingText?: string;
7
+ invert: boolean;
8
+ }
3
9
  declare const CompactHeaderBranding: FunctionComponent<IBrandingProps>;
4
10
  export default CompactHeaderBranding;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
- import { BadgeProps } from './Badge.types';
3
- declare const Badge: React.FC<BadgeProps>;
2
+ import { ThemeType } from '../../../../../types';
3
+ import { PageHeadingPromoBadge } from '../../../../../types/impactHeader';
4
+ declare type Props = {
5
+ theme?: ThemeType;
6
+ badge?: PageHeadingPromoBadge;
7
+ isMobile: boolean;
8
+ };
9
+ declare const Badge: React.FC<Props>;
4
10
  export default Badge;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
- import { ButtonProps } from './Button.types';
3
- declare const Button: React.FC<ButtonProps>;
2
+ import { EditorialLink, ThemeType } from '../../../../../types';
3
+ import { PageHeadingPromoAdditionalLink } from '../../../../../types/impactHeader';
4
+ declare type Props = {
5
+ link: PageHeadingPromoAdditionalLink | EditorialLink;
6
+ theme?: ThemeType;
7
+ isMobile?: boolean;
8
+ };
9
+ declare const Button: React.FC<Props>;
4
10
  export default Button;
@@ -1,6 +1,17 @@
1
1
  import React from 'react';
2
- import { PageData } from './Pagination.types';
3
- export type { PageData } from './Pagination.types';
2
+ export declare type PageData = {
3
+ currentPage: number;
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
+ };
4
15
  export declare const reducePages: (pages: number[], currentPage: number) => number[];
5
16
  declare const Pagination: ({ pageCount, currentPage, baseUrl, className, onPageChange }: PageData) => React.ReactElement;
6
17
  export default Pagination;
@@ -5,7 +5,10 @@ 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 }: import("../BodyContent/BodyContent.types").BodyContentTextContainerProps) => import("react").JSX.Element, 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>;
9
12
  export declare const Heading: import("styled-components").StyledComponent<({ children, size, em, color, serif, hierarchy, tag, className, ...props }: import("../../../types/typography").HarmonicHeaderProps) => import("react").DOMElement<{
10
13
  defaultChecked?: boolean | undefined;
11
14
  defaultValue?: string | number | readonly string[] | undefined;
@@ -1,4 +1,9 @@
1
- import { FunctionComponent } from 'react';
2
- import { IPromoChildProps } from './PromoChild.types';
1
+ import { FunctionComponent, ReactElement } from 'react';
2
+ import { IVideoWithControlsSettings } from '../../../types/types';
3
+ interface IPromoChildProps {
4
+ children: ReactElement<HTMLImageElement | HTMLVideoElement>;
5
+ videoSettings: IVideoWithControlsSettings;
6
+ imageToLeft: boolean;
7
+ }
3
8
  declare const PromoChild: FunctionComponent<IPromoChildProps>;
4
9
  export default PromoChild;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IRadioGroupProps } from '../../../types/formTypes';
3
+ /**
4
+ * DEPRECATED. Use RadioGroup2 instead
5
+ */
6
+ declare const RadioGroup: ({ radios, columnStartDesktop, columnStartDevice, columnSpanDesktop, columnSpanDevice, columnStartSmallDevice, columnSpanSmallDevice, onChange, }: IRadioGroupProps) => React.JSX.Element;
7
+ export default RadioGroup;
@@ -0,0 +1 @@
1
+ export declare const RadioGroupContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import RadioGroup from './RadioGroup';
2
+ export default RadioGroup;
@@ -0,0 +1,101 @@
1
+ import React from 'react';
2
+ import { ISelectProps } from '../../../types/formTypes';
3
+ /**
4
+ * DEPRECATED. Use Select2 instead.
5
+ * A select component, created using <ul> and <li> elements, with bespoke accessibility
6
+ * logic.
7
+ *
8
+ * # Usage
9
+ * ## Defining a component that uses a typical Select element
10
+ * ```tsx
11
+ * const MyComponent = () => {
12
+ * const handleSelect = (value: number, text: string) => {
13
+ * console.log("Selected", value);
14
+ * };
15
+ *
16
+ * return <>
17
+ * <Select
18
+ * label="This is a label"
19
+ * options={[
20
+ * { text: "Option 1", value: 1 },
21
+ * { text: "Option 2", value: 2 },
22
+ * ]}
23
+ * onSelect={handleSelect}
24
+ * />
25
+ * </>
26
+ * }
27
+ * ```
28
+ *
29
+ * ## Defining a component that uses a disabled Select element
30
+ * ```tsx
31
+ * const MyComponent = () => {
32
+ * const handleSelect = (value: number, text: string) => {
33
+ * console.log("Selected", value);
34
+ * };
35
+ *
36
+ * return <>
37
+ * <Select
38
+ * disabled // Select component disabled explicitely
39
+ * label="This is a label"
40
+ * options={[
41
+ * { text: "Option 1", value: 1 },
42
+ * { text: "Option 2", value: 2 },
43
+ * ]}
44
+ * onSelect={handleSelect}
45
+ * />
46
+ * <Select
47
+ * label="This is a label"
48
+ * options={[]} // Select component disabled implicitely by passing an empty array of options
49
+ * onSelect={handleSelect}
50
+ * />
51
+ * </>
52
+ * }
53
+ * ```
54
+ *
55
+ * ## Defining a component with a non-labelled Select element
56
+ * ```tsx
57
+ * const MyComponent = () => {
58
+ * const handleSelect = (value: number, text: string) => {
59
+ * console.log("Selected", value);
60
+ * };
61
+ *
62
+ * return <>
63
+ * <Select
64
+ * label=""
65
+ * options={[
66
+ * { text: "Option 1", value: 1 },
67
+ * { text: "Option 2", value: 2 },
68
+ * ]}
69
+ * onSelect={handleSelect}
70
+ * />
71
+ * </>
72
+ * }
73
+ * ```
74
+ *
75
+ * ## Changing the dimensions of a Select element (px)
76
+ * ```tsx
77
+ * const MyComponent = () => {
78
+ * const handleSelect = (value: number, text: string) => {
79
+ * console.log("Selected", value);
80
+ * };
81
+ *
82
+ * const selectWidthPx = 100;
83
+ * const selectHeightPx = 27;
84
+ *
85
+ * return <>
86
+ * <Select
87
+ * label="This is a label"
88
+ * options={[
89
+ * { text: "Option 1", value: 1 },
90
+ * { text: "Option 2", value: 2 },
91
+ * ]}
92
+ * onSelect={handleSelect}
93
+ * width={selectWidthPx}
94
+ * height={selectHeightPx}
95
+ * />
96
+ * </>
97
+ * }
98
+ * ```
99
+ */
100
+ declare function Select<T>({ label, options, onSelect, disabled, resetWhenOptionsUpdate, width, height, }: ISelectProps<T>): React.JSX.Element;
101
+ export default Select;
@@ -0,0 +1,13 @@
1
+ import { ISelectProps } from '../../../types/formTypes';
2
+ export declare const ArrowIcon: import("styled-components").StyledComponent<import("react").MemoExoticComponent<(props: import("../../../types/iconTypes").IIconProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>>, any, {
3
+ iconName: "DropdownArrow";
4
+ color: string;
5
+ title: "Select Arrow";
6
+ }, "title" | "color" | "iconName">;
7
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const Options: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const Option: import("styled-components").StyledComponent<"li", any, {
11
+ hover: boolean;
12
+ }, never>;
13
+ export declare const SelectList: import("styled-components").StyledComponent<"ul", any, Pick<Required<ISelectProps<unknown>>, "height" | "width">, never>;
@@ -0,0 +1,2 @@
1
+ import Select from './Select';
2
+ export default Select;
@@ -1,8 +1,10 @@
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';
5
4
  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
+ }
6
8
  export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
7
9
  /**
8
10
  * A Select2 component wraps react-select with Harmonic styling and additional elements like
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
- import { SignUpFormButtonProps } from './SignUpFormButton.types';
3
- declare const SignUpFormButton: React.FC<SignUpFormButtonProps>;
2
+ import { ThemeType } from '../../../../types/types';
3
+ declare type Props = {
4
+ theme: ThemeType;
5
+ onClick: (e: React.FormEvent) => Promise<void>;
6
+ };
7
+ declare const SignUpFormButton: React.FC<Props>;
4
8
  export default SignUpFormButton;
@@ -1,6 +1,6 @@
1
1
  interface FocusableTabProps {
2
2
  hide?: boolean;
3
3
  }
4
- export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, dataTestId, isOpen, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
4
+ export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, dataTestId, isOpen, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
5
5
  export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export {};
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
- import { SwipeRef } from './Swipe.types';
3
- export type { SwipeRef } from './Swipe.types';
2
+ export interface SwipeRef {
3
+ nextSlide: () => void;
4
+ prevSlide: () => void;
5
+ hasOverflow: () => boolean;
6
+ hasNext: () => boolean;
7
+ }
4
8
  declare const Swipe: React.ForwardRefExoticComponent<{
5
9
  children: React.ReactNode[];
6
10
  infinite?: boolean | undefined;
@@ -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.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>;
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>;
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,4 +1,7 @@
1
1
  import React from 'react';
2
- import { HeaderCellsProps } from './HeaderCells.types';
2
+ interface HeaderCellsProps {
3
+ headings: React.ReactNode[];
4
+ columns: number;
5
+ }
3
6
  declare const HeaderCells: React.FC<HeaderCellsProps>;
4
7
  export default HeaderCells;
@@ -1,13 +1,10 @@
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';
6
4
  import Card from './Card';
7
5
  import Cards from './Cards';
8
6
  import CastFilter from './CastFilter';
9
7
  import ContactCard from './ContactCard';
10
- import ContactNewsletter from './ContactNewsletter';
11
8
  import ContentSummary from './ContentSummary';
12
9
  import Editorial from './Editorial';
13
10
  import HotFilters from './HotFilters';
@@ -18,21 +15,18 @@ import { PeopleListing, CreditListing } from './PeopleListing';
18
15
  import PolicyLinks from './PolicyLinks';
19
16
  import PromoWithTags from './PromoWithTags';
20
17
  import PromoWithTitle from './PromoWithTitle';
21
- import Quote from './Quote';
18
+ import RadioGroup from './RadioGroup';
22
19
  import RadioGroup2 from './RadioGroup2';
23
20
  import StatusBanner from './StatusBanner';
24
21
  import SearchBar from './SearchBar';
25
22
  import SectionTitle from './SectionTitle';
23
+ import Select from './Select';
26
24
  import Select2 from './Select2';
27
25
  import Select2Async from './Select2Async';
28
- import { Swipe, SwipeRef } from './Swipe';
29
26
  import Tabs from './Tabs';
30
27
  import UpsellCard from './UpsellCard';
31
28
  import ImageWithCaption from './ImageWithCaption';
32
29
  import MiniCard from './MiniCard';
33
- import NavTop from './NavTop';
34
- import PersonCard from './PersonCard';
35
- import PersonDetails from './PersonDetails';
36
30
  import ReadMore from './ReadMore';
37
31
  import AuxiliaryNav from './AuxiliaryNav';
38
32
  import PasswordStrength from './PasswordStrength';
@@ -42,5 +36,4 @@ import SignUpForm from './SignUpForm';
42
36
  import AnchorBar from './AnchorBar';
43
37
  import SkipToMain from './SkipToMain';
44
38
  import Paywall from './Paywall';
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, };
39
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, CastFilter, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, MiniCard, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingHighlight, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlightCarousel, PasswordStrength, Pagination, Paywall, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, SignUpForm, Tabs, Table, UpsellCard, VideoWithControls, SkipToMain, };
@@ -1,4 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { HighlightsCarouselButtonsProps } from './Buttons.types';
3
- declare const Buttons: FunctionComponent<HighlightsCarouselButtonsProps>;
2
+ import { HighlightsCarouselSlide } from '../../../../../types/carousel';
3
+ declare type Props = Pick<HighlightsCarouselSlide, 'links' | 'auxiliaryCTA'>;
4
+ declare const Buttons: FunctionComponent<Props>;
4
5
  export default Buttons;
@@ -1,4 +1,10 @@
1
- import { FunctionComponent } from 'react';
2
- import { HighlightsCarouselInfoSectionProps } from './InfoSection.types';
3
- declare const InfoSection: FunctionComponent<HighlightsCarouselInfoSectionProps>;
1
+ import { FunctionComponent, ReactElement } from 'react';
2
+ import { HighlightsCarouselSlide } from '../../../../../types/carousel';
3
+ import { ILogosProps } from '../../../../../types/types';
4
+ declare type Props = {
5
+ logo?: ReactElement<ILogosProps> | null;
6
+ slide: HighlightsCarouselSlide;
7
+ currentSlideIndex: number;
8
+ };
9
+ declare const InfoSection: FunctionComponent<Props>;
4
10
  export default InfoSection;
@@ -1,4 +1,13 @@
1
- import { FunctionComponent } from 'react';
2
- import { HighlightsCarouselSwipeCarouselProps } from './SwipeCarousel.types';
3
- declare const SwipeCarousel: FunctionComponent<HighlightsCarouselSwipeCarouselProps>;
1
+ import React, { FunctionComponent } from 'react';
2
+ import { HighlightsCarouselSlideImage, HighlightsCarouselSlideVideo } from '../../../../../types/carousel';
3
+ import { SwipeRef } from '../../../../molecules/Swipe';
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>;
4
13
  export default SwipeCarousel;