@royaloperahouse/chord 1.1.0 → 1.2.10

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 (132) hide show
  1. package/CHANGELOG.md +196 -4
  2. package/README.GIT +211 -56
  3. package/README.md +2 -2
  4. package/dist/chord.cjs.development.js +4009 -1673
  5. package/dist/chord.cjs.development.js.map +1 -1
  6. package/dist/chord.cjs.production.min.js +1 -1
  7. package/dist/chord.cjs.production.min.js.map +1 -1
  8. package/dist/chord.esm.js +4109 -1787
  9. package/dist/chord.esm.js.map +1 -1
  10. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
  11. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +1 -0
  12. package/dist/components/atoms/Progress/Progress.d.ts +1 -1
  13. package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
  14. package/dist/components/atoms/Radio/Radio.d.ts +3 -0
  15. package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
  16. package/dist/components/atoms/Radio/index.d.ts +2 -0
  17. package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
  18. package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
  19. package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
  20. package/dist/components/atoms/Stepper/index.d.ts +2 -0
  21. package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
  22. package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
  23. package/dist/components/atoms/TextArea/index.d.ts +2 -0
  24. package/dist/components/atoms/TextField/TextField.d.ts +41 -0
  25. package/dist/components/atoms/TextField/TextField.style.d.ts +5 -0
  26. package/dist/components/atoms/TextField/index.d.ts +2 -0
  27. package/dist/components/atoms/TextLogo/TextLogo.d.ts +13 -0
  28. package/dist/components/atoms/TextLogo/index.d.ts +2 -0
  29. package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
  30. package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
  31. package/dist/components/atoms/Timer/Timer.d.ts +4 -0
  32. package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
  33. package/dist/components/atoms/Timer/index.d.ts +2 -0
  34. package/dist/components/atoms/Typography/Typography.d.ts +1 -1
  35. package/dist/components/atoms/VideoControls/VideoControls.d.ts +9 -0
  36. package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +10 -0
  37. package/dist/components/atoms/VideoControls/index.d.ts +2 -0
  38. package/dist/components/atoms/index.d.ts +14 -6
  39. package/dist/components/index.d.ts +4 -4
  40. package/dist/components/molecules/Basket/Basket.d.ts +3 -0
  41. package/dist/components/molecules/Basket/helpers.d.ts +3 -0
  42. package/dist/components/molecules/Basket/hooks.d.ts +8 -0
  43. package/dist/components/molecules/Card/Card.style.d.ts +13 -1
  44. package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +3 -0
  45. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
  46. package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
  47. package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
  48. package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
  49. package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
  50. package/dist/components/molecules/MiniCard/index.d.ts +2 -0
  51. package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
  52. package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
  53. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
  54. package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
  55. package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
  56. package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +1 -1
  57. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
  58. package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
  59. package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
  60. package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
  61. package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
  62. package/dist/components/molecules/PageHeading/index.d.ts +3 -1
  63. package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
  64. package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
  65. package/dist/components/molecules/Pagination/index.d.ts +2 -0
  66. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +3 -0
  67. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +5 -0
  68. package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
  69. package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
  70. package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
  71. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
  72. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +3 -0
  73. package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
  74. package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
  75. package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
  76. package/dist/components/molecules/Select/Select.d.ts +99 -0
  77. package/dist/components/molecules/Select/Select.style.d.ts +14 -0
  78. package/dist/components/molecules/Select/index.d.ts +2 -0
  79. package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -0
  80. package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
  81. package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
  82. package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
  83. package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
  84. package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
  85. package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
  86. package/dist/components/molecules/index.d.ts +10 -3
  87. package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
  88. package/dist/components/organisms/Navigation/Navigation.style.d.ts +6 -2
  89. package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
  90. package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
  91. package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
  92. package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
  93. package/dist/components/organisms/index.d.ts +2 -3
  94. package/dist/helpers/arrays.d.ts +6 -0
  95. package/dist/helpers/defaultValues.d.ts +7 -0
  96. package/dist/helpers/devices.d.ts +3 -0
  97. package/dist/helpers/formatStrings.d.ts +2 -0
  98. package/dist/helpers/htmlStrings.d.ts +2 -0
  99. package/dist/helpers/urls.d.ts +2 -0
  100. package/dist/index.d.ts +6 -4
  101. package/dist/styles/themes.d.ts +1172 -96
  102. package/dist/styles/viewports.d.ts +3 -0
  103. package/dist/types/card.d.ts +40 -0
  104. package/dist/types/carousel.d.ts +22 -1
  105. package/dist/types/creditListing.d.ts +12 -0
  106. package/dist/types/editorial.d.ts +59 -55
  107. package/dist/types/formTypes.d.ts +170 -0
  108. package/dist/types/impactHeader.d.ts +122 -0
  109. package/dist/types/index.d.ts +4 -1
  110. package/dist/types/miniCard.d.ts +27 -0
  111. package/dist/types/navigation.d.ts +68 -4
  112. package/dist/types/progress.d.ts +33 -0
  113. package/dist/types/promoWithTags.d.ts +81 -0
  114. package/dist/types/tickbox.d.ts +35 -0
  115. package/dist/types/timer.d.ts +37 -0
  116. package/dist/types/types.d.ts +38 -9
  117. package/dist/types/typography.d.ts +18 -2
  118. package/dist/types/upsell.d.ts +78 -0
  119. package/dist/types/utility.d.ts +4 -0
  120. package/package.json +9 -4
  121. package/dist/components/atoms/Basket/Basket.d.ts +0 -3
  122. package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
  123. package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
  124. package/dist/components/organisms/Carousel/index.d.ts +0 -2
  125. package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
  126. package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
  127. package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
  128. package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
  129. package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
  130. package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
  131. /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
  132. /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ export declare const PanelGrid: import("styled-components").StyledComponent<"div", any, {
2
+ color: string | undefined;
3
+ }, never>;
4
+ export declare const LeftPanel: import("styled-components").StyledComponent<"div", any, {
5
+ hasImage: boolean;
6
+ }, never>;
7
+ export declare const RightPanel: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const ScrollDownWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import PageTitlePanel from './Panel';
2
+ export default PageTitlePanel;
@@ -1,5 +1,7 @@
1
1
  import PageHeadingCore from './Core';
2
2
  import PageHeadingCinema from './Cinema';
3
3
  import PageHeadingImpact from './Impact';
4
+ import PageHeadingPanel from './Panel';
4
5
  import PageHeadingStream from './Stream';
5
- export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream };
6
+ import PageHeadingCompact from './Compact/Compact';
7
+ export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PageHeadingCompact, PageHeadingPanel, };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface PageData {
3
+ currentPage: number;
4
+ pageCount: number;
5
+ baseUrl: string;
6
+ }
7
+ export declare const reducePages: (pages: number[], currentPage: number) => number[];
8
+ declare const Pagination: ({ pageCount, currentPage, baseUrl }: PageData) => React.ReactElement;
9
+ export default Pagination;
@@ -0,0 +1,8 @@
1
+ export declare const MorePages: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const PageNumberWrapper: import("styled-components").StyledComponent<"ol", any, {}, never>;
3
+ export declare const PageNumber: import("styled-components").StyledComponent<"a", any, {
4
+ active?: string | undefined;
5
+ }, never>;
6
+ export declare const NextPage: import("styled-components").StyledComponent<"a", any, {
7
+ active?: string | undefined;
8
+ }, never>;
@@ -0,0 +1,2 @@
1
+ import Pagination from './Pagination';
2
+ export default Pagination;
@@ -0,0 +1,3 @@
1
+ import { ICreditListing } from '../../../../types';
2
+ declare const CreditListing: ({ roles }: ICreditListing) => JSX.Element;
3
+ export default CreditListing;
@@ -0,0 +1,5 @@
1
+ export declare const ReplacementWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const CreditListingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const CreditWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import CreditListing from './CreditListing';
2
+ export default CreditListing;
@@ -1,2 +1,3 @@
1
1
  import PeopleListing from './PeopleListing';
2
- export default PeopleListing;
2
+ import CreditListing from './CreditListing';
3
+ export { PeopleListing, CreditListing };
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { IPromoWithTagsProps } from '../../../types/editorial';
2
+ import { IPromoWithTagsProps } from '../../../types/promoWithTags';
3
3
  declare const PromoWithTags: FunctionComponent<IPromoWithTagsProps>;
4
4
  export default PromoWithTags;
@@ -1,8 +1,7 @@
1
- import { IEditorialGridProps, IPromoWithTagsStyledProps } from '../../../types/editorial';
1
+ /// <reference types="react" />
2
+ import { IEditorialGridProps } from '../../../types/editorial';
3
+ import { IPromoWithTagsStyledProps } from '../../../types/promoWithTags';
2
4
  export declare const PromoWithTagsGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
3
- export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
4
- export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
5
- export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
5
  export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
7
6
  export declare const PromoWithTagsText: import("styled-components").StyledComponent<"div", any, {}, never>;
8
7
  export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
@@ -14,3 +13,11 @@ export declare const ExtraContentWrapper: import("styled-components").StyledComp
14
13
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
15
14
  export declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
16
15
  export declare const MobileTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const PromoWithTagsTypeTags: import("styled-components").StyledComponent<({ list }: import("../../../types/types").ITypeTagsProps) => JSX.Element, any, {}, never>;
17
+ export declare const PromoWithTagsHeader: import("styled-components").StyledComponent<({ semanticLevel, level, children }: import("../../../types/typography").IHeaderProps) => JSX.Element, any, {}, never>;
18
+ export declare const PromoWithTagsTextLink: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/types").ITextLinkProps>, any, {}, never>;
19
+ export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
20
+ export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
21
+ export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
22
+ export declare const TimerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
23
+ export declare const EndDateText: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,3 @@
1
+ import { IRadioGroupProps } from '../../../types/formTypes';
2
+ declare const RadioGroup: ({ radios, columnStartDesktop, columnStartDevice, columnSpanDesktop, columnSpanDevice, columnStartSmallDevice, columnSpanSmallDevice, onChange, }: IRadioGroupProps) => JSX.Element;
3
+ 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;
@@ -1,6 +1,7 @@
1
1
  export declare const SearchBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const SvgContainerSearch: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SvgContainerClose: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SearchUnavailableContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
6
  export declare const SearchLinkContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
7
  export declare const SearchArrowContainer: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -0,0 +1,99 @@
1
+ import { ISelectProps } from '../../../types/formTypes';
2
+ /**
3
+ * A select component, created using <ul> and <li> elements, with bespoke accessibility
4
+ * logic.
5
+ *
6
+ * # Usage
7
+ * ## Defining a component that uses a typical Select element
8
+ * ```tsx
9
+ * const MyComponent = () => {
10
+ * const handleSelect = (value: number, text: string) => {
11
+ * console.log("Selected", value);
12
+ * };
13
+ *
14
+ * return <>
15
+ * <Select
16
+ * label="This is a label"
17
+ * options={[
18
+ * { text: "Option 1", value: 1 },
19
+ * { text: "Option 2", value: 2 },
20
+ * ]}
21
+ * onSelect={handleSelect}
22
+ * />
23
+ * </>
24
+ * }
25
+ * ```
26
+ *
27
+ * ## Defining a component that uses a disabled Select element
28
+ * ```tsx
29
+ * const MyComponent = () => {
30
+ * const handleSelect = (value: number, text: string) => {
31
+ * console.log("Selected", value);
32
+ * };
33
+ *
34
+ * return <>
35
+ * <Select
36
+ * disabled // Select component disabled explicitely
37
+ * label="This is a label"
38
+ * options={[
39
+ * { text: "Option 1", value: 1 },
40
+ * { text: "Option 2", value: 2 },
41
+ * ]}
42
+ * onSelect={handleSelect}
43
+ * />
44
+ * <Select
45
+ * label="This is a label"
46
+ * options={[]} // Select component disabled implicitely by passing an empty array of options
47
+ * onSelect={handleSelect}
48
+ * />
49
+ * </>
50
+ * }
51
+ * ```
52
+ *
53
+ * ## Defining a component with a non-labelled Select element
54
+ * ```tsx
55
+ * const MyComponent = () => {
56
+ * const handleSelect = (value: number, text: string) => {
57
+ * console.log("Selected", value);
58
+ * };
59
+ *
60
+ * return <>
61
+ * <Select
62
+ * label=""
63
+ * options={[
64
+ * { text: "Option 1", value: 1 },
65
+ * { text: "Option 2", value: 2 },
66
+ * ]}
67
+ * onSelect={handleSelect}
68
+ * />
69
+ * </>
70
+ * }
71
+ * ```
72
+ *
73
+ * ## Changing the dimensions of a Select element (px)
74
+ * ```tsx
75
+ * const MyComponent = () => {
76
+ * const handleSelect = (value: number, text: string) => {
77
+ * console.log("Selected", value);
78
+ * };
79
+ *
80
+ * const selectWidthPx = 100;
81
+ * const selectHeightPx = 27;
82
+ *
83
+ * return <>
84
+ * <Select
85
+ * label="This is a label"
86
+ * options={[
87
+ * { text: "Option 1", value: 1 },
88
+ * { text: "Option 2", value: 2 },
89
+ * ]}
90
+ * onSelect={handleSelect}
91
+ * width={selectWidthPx}
92
+ * height={selectHeightPx}
93
+ * />
94
+ * </>
95
+ * }
96
+ * ```
97
+ */
98
+ declare function Select<T>({ label, options, onSelect, disabled, resetWhenOptionsUpdate, width, height, }: ISelectProps<T>): JSX.Element;
99
+ export default Select;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ISelectProps } from '../../../types/formTypes';
3
+ export declare const ArrowIcon: import("styled-components").StyledComponent<import("react").MemoExoticComponent<({ className, color, iconName, title, direction }: 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, {
4
+ iconName: "DropdownArrow";
5
+ color: string;
6
+ title: "Select Arrow";
7
+ }, "title" | "color" | "iconName">;
8
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const Options: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const Option: import("styled-components").StyledComponent<"li", any, {
12
+ hover: boolean;
13
+ }, never>;
14
+ 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;
@@ -0,0 +1,2 @@
1
+ import { IOfferTextProps } from '../../../types/upsell';
2
+ export declare const OfferText: ({ title, description }: IOfferTextProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IUpsellCardProps } from '../../../types/upsell';
3
+ declare const UpsellCard: FunctionComponent<IUpsellCardProps>;
4
+ export default UpsellCard;
@@ -0,0 +1,15 @@
1
+ import { Colors } from '../../../types';
2
+ declare type withColor = {
3
+ theme: {
4
+ color: Colors;
5
+ };
6
+ };
7
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const PromoLabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const PromoLabel: import("styled-components").StyledComponent<"div", any, withColor, never>;
10
+ export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
12
+ export declare const OfferTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const PriceRow: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const LineThrough: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ import UpsellCard from './UpsellCard';
2
+ export default UpsellCard;
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IUpsellCardsProps } from '../../../types/upsell';
3
+ declare const UpsellCards: FunctionComponent<IUpsellCardsProps>;
4
+ export default UpsellCards;
@@ -0,0 +1 @@
1
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import UpsellCards from './UpsellCards';
2
+ export default UpsellCards;
@@ -4,15 +4,22 @@ import AnnouncementBanner from './AnnouncementBanner';
4
4
  import Card from './Card';
5
5
  import Cards from './Cards';
6
6
  import ContactCard from './ContactCard';
7
+ import ContentSummary from './ContentSummary';
7
8
  import Editorial from './Editorial';
8
9
  import Information from './Information';
9
- import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
10
- import PeopleListing from './PeopleListing';
10
+ import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact } from './PageHeading';
11
+ import Pagination from './Pagination';
12
+ import { PeopleListing, CreditListing } from './PeopleListing';
11
13
  import PromoWithTags from './PromoWithTags';
12
14
  import PromoWithTitle from './PromoWithTitle';
15
+ import RadioGroup from './RadioGroup';
16
+ import SearchBar from './SearchBar';
13
17
  import SectionTitle from './SectionTitle';
18
+ import Select from './Select';
14
19
  import Tabs from './Tabs';
15
20
  import TextOnly from './TextOnly';
21
+ import UpsellCard from './UpsellCard';
16
22
  import ImageWithCaption from './ImageWithCaption';
17
23
  import Quote from './Quote';
18
- export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
24
+ import MiniCard from './MiniCard';
25
+ export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, Quote, SectionTitle, SearchBar, Select, Tabs, TextOnly, UpsellCard, };
@@ -1,7 +1,8 @@
1
- import { IAnchorTabsListProps } from '../../../types/navigation';
2
- export declare const AnchorTapbarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { IAnchorTabArrowsBoxProps, IAnchorTabsListProps, IAnchorTabBarBorderProps } from '../../../types/navigation';
2
+ export declare const LIST_ITEM_GAP = 32;
3
+ export declare const AnchorTabbarWrapper: import("styled-components").StyledComponent<"div", any, IAnchorTabBarBorderProps, never>;
3
4
  export declare const TabsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
6
  export declare const TabsList: import("styled-components").StyledComponent<"ul", any, IAnchorTabsListProps, never>;
6
- export declare const ArrowsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const ArrowsContainer: import("styled-components").StyledComponent<"div", any, IAnchorTabArrowsBoxProps, never>;
7
8
  export declare const ArrowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,8 +2,12 @@ import { INavigationWrapperProps } from '../../../types/navigation';
2
2
  export declare const NavigationWrapper: import("styled-components").StyledComponent<"div", any, INavigationWrapperProps, never>;
3
3
  export declare const FullScreenContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const NavigationGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const SearchBackground: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const GridItemSearch: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
5
+ export declare const SearchBackground: import("styled-components").StyledComponent<"div", any, {
6
+ visible?: boolean | undefined;
7
+ }, never>;
8
+ export declare const GridItemSearch: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps & {
9
+ visible?: boolean | undefined;
10
+ }, never>;
7
11
  export declare const NavigationGridMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
8
12
  export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
13
  export declare const MenuContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +1,6 @@
1
+ interface IStickyBarGridProps {
2
+ hideBottomBorder: boolean;
3
+ }
1
4
  export declare const StickyBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StickyBarGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const StickyBarGrid: import("styled-components").StyledComponent<"div", any, IStickyBarGridProps, never>;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IUpsellSectionProps } from '../../../types/upsell';
3
+ declare const UpsellSection: FunctionComponent<IUpsellSectionProps>;
4
+ export default UpsellSection;
@@ -0,0 +1,3 @@
1
+ export declare const UpsellBorderBox: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import UpsellSection from './UpsellSection';
2
+ export default UpsellSection;
@@ -1,9 +1,8 @@
1
1
  import Navigation from './Navigation';
2
2
  import Footer from './Footer';
3
3
  import AnchorTabBar from './AnchorTabBar';
4
- import Carousel from './Carousel';
5
- import { HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream } from './HighlightsCarousel';
6
4
  import TitleWithCTA from './TitleWithCTA';
5
+ import UpsellSection from './UpsellSection';
7
6
  import { LiveChat } from './LiveChat';
8
7
  import StickyBar from './StickyBar';
9
- export { AnchorTabBar, Carousel, Footer, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, LiveChat, Navigation, StickyBar, TitleWithCTA, };
8
+ export { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection };
@@ -0,0 +1,6 @@
1
+ export declare const truncateArrayByPropLength: (array: {
2
+ [key: string]: string;
3
+ }[], prop: string, maxChars: number, elipsis?: boolean) => {
4
+ [key: string]: string;
5
+ }[];
6
+ export declare const getConcatenatedPropLength: (array: any[], prop: string) => any;
@@ -0,0 +1,7 @@
1
+ export declare const placeholderImage: {
2
+ altText: string;
3
+ desktopPath: string;
4
+ mobilePath: string;
5
+ caption: null;
6
+ thumbPath: null;
7
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useIOS: () => boolean;
2
+ export declare const isMobile: () => boolean;
3
+ export declare const useMobile: () => boolean;
@@ -0,0 +1,2 @@
1
+ export declare const setMaxCharLength: (value: string, maxLength: number) => string;
2
+ export declare const formatPrice: (value: string | undefined) => string;
@@ -1 +1,3 @@
1
+ export declare const stripAllHtmlTags: (htmlString: string) => string;
1
2
  export declare const truncateHtmlString: (str: string, resultLength: number, addDots?: boolean) => string;
3
+ export declare const truncate: (str: string, n: number) => string;
@@ -0,0 +1,2 @@
1
+ export declare const isSameSiteUrl: (url: string) => boolean;
2
+ export declare const useSameSiteUrl: (url: string) => boolean;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ControlledDropdown, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote } from './components';
2
- import { devices } from './styles/viewports';
3
- import { AspectRatio, CarouselType, Colors, IconNameType, TickboxMode, ThemeType, ButtonType } from './types';
4
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AspectRatio, BodyText, ButtonType, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ControlledDropdown, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, Quote, };
1
+ import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, RadioGroup, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, Timer, TypeTags, UpsellCard, UpsellSection, Quote } from './components';
2
+ import { devices, breakpoints } from './styles/viewports';
3
+ import zIndexes from './styles/zIndexes';
4
+ import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeType } from './types';
5
+ import { MiniCard } from './components/molecules';
6
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, ITimerProps, IntegratedTimerProps, LiveChat, MiniCard, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, RadioGroup, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };