@royaloperahouse/harmonic 0.19.1-a → 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 (46) hide show
  1. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +9 -1
  2. package/dist/components/atoms/Buttons/Button.d.ts +10 -3
  3. package/dist/components/atoms/Buttons/Primary/PrimaryButton.d.ts +17 -3
  4. package/dist/components/atoms/Buttons/Primary/PrimaryButton.style.d.ts +9 -1
  5. package/dist/components/atoms/Buttons/Secondary/SecondaryButton.style.d.ts +9 -1
  6. package/dist/components/atoms/Radio/Radio.d.ts +7 -0
  7. package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
  8. package/dist/components/atoms/Radio/index.d.ts +2 -0
  9. package/dist/components/atoms/VideoControlsImpact/VideoControlsImpact.d.ts +4 -0
  10. package/dist/components/atoms/VideoControlsImpact/VideoControlsImpact.style.d.ts +5 -0
  11. package/dist/components/atoms/VideoControlsImpact/index.d.ts +2 -0
  12. package/dist/components/atoms/index.d.ts +2 -1
  13. package/dist/components/index.d.ts +3 -3
  14. package/dist/components/molecules/CastFilter/CastFilters.style.d.ts +1 -0
  15. package/dist/components/molecules/HotFilters/HotFilters.style.d.ts +16 -1
  16. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +16 -1
  17. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +302 -9
  18. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +2 -0
  19. package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +1 -1
  20. package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +3 -1
  21. package/dist/components/molecules/PersonCard/PersonCard.style.d.ts +3 -1
  22. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +7 -0
  23. package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
  24. package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
  25. package/dist/components/molecules/Select/Select.d.ts +101 -0
  26. package/dist/components/molecules/Select/Select.style.d.ts +13 -0
  27. package/dist/components/molecules/Select/index.d.ts +2 -0
  28. package/dist/components/molecules/Select2/Select2.d.ts +1 -1
  29. package/dist/components/molecules/Swipe/Swipe.d.ts +1 -0
  30. package/dist/components/molecules/index.d.ts +3 -1
  31. package/dist/components/organisms/Carousels/Carousel/Carousel.d.ts +3 -1
  32. package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +3 -1
  33. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +16 -1
  34. package/dist/harmonic.cjs.development.js +1401 -589
  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 +1417 -608
  39. package/dist/harmonic.esm.js.map +1 -1
  40. package/dist/index.d.ts +2 -2
  41. package/dist/types/card.d.ts +2 -0
  42. package/dist/types/impactHeader.d.ts +14 -32
  43. package/dist/types/signUpForm.d.ts +1 -0
  44. package/dist/types/types.d.ts +14 -0
  45. package/dist/types/upsell.d.ts +2 -0
  46. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
1
  export declare const ReplacementWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const CreditListingWrapper: import("styled-components").StyledComponent<"div", any, {
3
+ $largeDesktopColumns?: 3 | 4 | undefined;
4
+ } & {
3
5
  columnCount: number;
4
6
  }, never>;
5
7
  export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IPeopleListing } from '../../../types/types';
3
- declare const PeopleListing: ({ roles, className }: IPeopleListing) => React.JSX.Element;
3
+ declare const PeopleListing: ({ roles, className, greyscale, largeDesktopColumns }: IPeopleListing) => React.JSX.Element;
4
4
  export default PeopleListing;
@@ -1 +1,3 @@
1
- export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {
2
+ $largeDesktopColumns?: 3 | 4 | undefined;
3
+ }, never>;
@@ -1,2 +1,4 @@
1
1
  export declare const PersonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const HeadshotWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const HeadshotWrapper: import("styled-components").StyledComponent<"div", any, {
3
+ greyscale?: boolean | undefined;
4
+ }, never>;
@@ -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;
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from 'react';
2
2
  import { DropdownIndicatorProps } from 'react-select';
3
3
  import { ISelect2Props } from '../../../types/formTypes';
4
4
  export declare const DropdownIndicator: (props: DropdownIndicatorProps) => React.JSX.Element;
5
- interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode'> {
5
+ interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode' | 'className'> {
6
6
  children: React.ReactNode;
7
7
  }
8
8
  export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
@@ -13,5 +13,6 @@ declare const Swipe: React.ForwardRefExoticComponent<{
13
13
  onIndexChange?: ((index: number) => void) | undefined;
14
14
  onActiveChange?: ((value: boolean) => void) | undefined;
15
15
  onOverflowChange?: ((overflow: boolean) => void) | undefined;
16
+ limitDragToNavigableRange?: boolean | undefined;
16
17
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeRef>>;
17
18
  export default Swipe;
@@ -15,10 +15,12 @@ import { PeopleListing, CreditListing } from './PeopleListing';
15
15
  import PolicyLinks from './PolicyLinks';
16
16
  import PromoWithTags from './PromoWithTags';
17
17
  import PromoWithTitle from './PromoWithTitle';
18
+ import RadioGroup from './RadioGroup';
18
19
  import RadioGroup2 from './RadioGroup2';
19
20
  import StatusBanner from './StatusBanner';
20
21
  import SearchBar from './SearchBar';
21
22
  import SectionTitle from './SectionTitle';
23
+ import Select from './Select';
22
24
  import Select2 from './Select2';
23
25
  import Select2Async from './Select2Async';
24
26
  import Tabs from './Tabs';
@@ -34,4 +36,4 @@ import SignUpForm from './SignUpForm';
34
36
  import AnchorBar from './AnchorBar';
35
37
  import SkipToMain from './SkipToMain';
36
38
  import Paywall from './Paywall';
37
- 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, RadioGroup2, ReadMore, StatusBanner, SectionTitle, SearchBar, Select2, Select2Async, SignUpForm, Tabs, Table, UpsellCard, 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,6 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { ICarouselProps } from '../../../../types/carousel';
3
- declare const Carousel: FunctionComponent<ICarouselProps>;
3
+ declare const Carousel: FunctionComponent<ICarouselProps & Partial<{
4
+ titleFontFamily: 'Victor' | 'Grey' | undefined;
5
+ }>>;
4
6
  export default Carousel;
@@ -1,4 +1,6 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { IHighlightsCarouselProps } from '../../../../types/carousel';
3
- declare const HighlightsCarousel: FunctionComponent<IHighlightsCarouselProps>;
3
+ declare const HighlightsCarousel: FunctionComponent<IHighlightsCarouselProps & Partial<{
4
+ titleFontFamily: 'Victor' | 'Grey' | undefined;
5
+ }>>;
4
6
  export default HighlightsCarousel;
@@ -6,6 +6,21 @@ export declare const AnchorTitle: import("styled-components").StyledComponent<"d
6
6
  export declare const GridItemTitleWrapper: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
7
7
  export declare const ButtonsDesktopWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
8
  export declare const ButtonsMobileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const PrimaryButtonReverse: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/buttonTypes").PrimaryButtonProps>, any, {}, never>;
9
+ export declare const PrimaryButtonReverse: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
10
+ children: import("react").ReactNode;
11
+ onClick?: ((event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void) | undefined;
12
+ className?: string | undefined;
13
+ } & {
14
+ iconName?: "Shift" | "AddToMyList" | "Arrow" | "ArrowPagination" | "AudioDescription" | "Back10" | "BalletAndDance" | "Basket" | "BasketFull" | "BritishSignLanguage" | "BookTickets" | "CarouselArrow" | "ChooseDates" | "Cinema" | "Clips" | "Clock" | "Close" | "Captioned" | "ClosedCaptions" | "Confirm" | "CreditCard" | "Delete" | "Detract" | "DropdownArrow" | "EditMyList" | "Email" | "Expand" | "Expand12px" | "ExternalLink" | "Facebook" | "FamilyFriendly" | "Favourite" | "FavouriteFull" | "Filter" | "FindAScreening" | "Forward10" | "FullScreen" | "GridView" | "Home" | "Info" | "Instagram" | "LastPageArrow" | "List" | "ListView" | "LiveStream" | "Location" | "Menu" | "Minimise" | "Muted" | "NavLogoMobile" | "NavLogoNoCrest" | "NavLogoWithCrest" | "OnMyList" | "OpenCaptions" | "OperaAndMusic" | "Pause" | "PDF" | "Phone" | "Play" | "Print" | "Refresh" | "RelaxedPerformance" | "Reminder" | "Remove" | "Remove12px" | "Restart" | "Search" | "Seat" | "Secure" | "Settings" | "Space" | "Standing" | "Star" | "Subscribe" | "Subtitles" | "Tick" | "Tickets" | "Tiktok" | "TouchTour" | "Trailer" | "Twitter" | "User" | "UserSignedIn" | "Volume" | "Watch" | "Wheelchair" | "X" | "Youtube" | undefined;
15
+ iconDirection?: "left" | "right" | "up" | "down" | "reverse" | undefined;
16
+ iconClassName?: string | undefined;
17
+ } & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & Pick<{
18
+ textColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
19
+ backgroundColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
20
+ borderColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
21
+ hoveredColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
22
+ pressedColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
23
+ disabled?: boolean | undefined;
24
+ }, "disabled" | "textColor" | "backgroundColor" | "hoveredColor" | "pressedColor"> & import("react").RefAttributes<HTMLAnchorElement>>, any, {}, never>;
10
25
  export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
11
26
  export declare const MessageWrapperMobile: import("styled-components").StyledComponent<"div", any, {}, never>;