@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.
- package/CHANGELOG.md +196 -4
- package/README.GIT +211 -56
- package/README.md +2 -2
- package/dist/chord.cjs.development.js +4009 -1673
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +4109 -1787
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +1 -0
- package/dist/components/atoms/Progress/Progress.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
- package/dist/components/atoms/Radio/Radio.d.ts +3 -0
- package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
- package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
- package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
- package/dist/components/atoms/Stepper/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
- package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextField/TextField.d.ts +41 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +5 -0
- package/dist/components/atoms/TextField/index.d.ts +2 -0
- package/dist/components/atoms/TextLogo/TextLogo.d.ts +13 -0
- package/dist/components/atoms/TextLogo/index.d.ts +2 -0
- package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
- package/dist/components/atoms/Timer/Timer.d.ts +4 -0
- package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
- package/dist/components/atoms/Timer/index.d.ts +2 -0
- package/dist/components/atoms/Typography/Typography.d.ts +1 -1
- package/dist/components/atoms/VideoControls/VideoControls.d.ts +9 -0
- package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +10 -0
- package/dist/components/atoms/VideoControls/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +14 -6
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/Basket/Basket.d.ts +3 -0
- package/dist/components/molecules/Basket/helpers.d.ts +3 -0
- package/dist/components/molecules/Basket/hooks.d.ts +8 -0
- package/dist/components/molecules/Card/Card.style.d.ts +13 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +3 -0
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
- package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
- package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
- package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
- package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
- package/dist/components/molecules/MiniCard/index.d.ts +2 -0
- package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
- package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
- package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +3 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
- package/dist/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +3 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
- package/dist/components/molecules/Select/Select.d.ts +99 -0
- package/dist/components/molecules/Select/Select.style.d.ts +14 -0
- package/dist/components/molecules/Select/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
- package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
- package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +10 -3
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +6 -2
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
- package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
- package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
- package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +2 -3
- package/dist/helpers/arrays.d.ts +6 -0
- package/dist/helpers/defaultValues.d.ts +7 -0
- package/dist/helpers/devices.d.ts +3 -0
- package/dist/helpers/formatStrings.d.ts +2 -0
- package/dist/helpers/htmlStrings.d.ts +2 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +6 -4
- package/dist/styles/themes.d.ts +1172 -96
- package/dist/styles/viewports.d.ts +3 -0
- package/dist/types/card.d.ts +40 -0
- package/dist/types/carousel.d.ts +22 -1
- package/dist/types/creditListing.d.ts +12 -0
- package/dist/types/editorial.d.ts +59 -55
- package/dist/types/formTypes.d.ts +170 -0
- package/dist/types/impactHeader.d.ts +122 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/navigation.d.ts +68 -4
- package/dist/types/progress.d.ts +33 -0
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/tickbox.d.ts +35 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +38 -9
- package/dist/types/typography.d.ts +18 -2
- package/dist/types/upsell.d.ts +78 -0
- package/dist/types/utility.d.ts +4 -0
- package/package.json +9 -4
- package/dist/components/atoms/Basket/Basket.d.ts +0 -3
- package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
- package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
- package/dist/components/organisms/Carousel/index.d.ts +0 -2
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
- package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
- /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
- /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
|
@@ -69,5 +69,6 @@ export declare const IconLibrary: {
|
|
|
69
69
|
UserSignedIn: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
70
70
|
Volume: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
71
71
|
Watch: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
72
|
+
X: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
72
73
|
Youtube: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
73
74
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { IProgressProps } from '../../../types/
|
|
2
|
-
export declare const ProgressView: import("styled-components").StyledComponent<"div", any,
|
|
3
|
-
export declare const ElapsedProgressView: import("styled-components").StyledComponent<"div", any, IProgressProps
|
|
1
|
+
import { IProgressProps } from '../../../types/progress';
|
|
2
|
+
export declare const ProgressView: import("styled-components").StyledComponent<"div", any, IProgressProps, never>;
|
|
3
|
+
export declare const ElapsedProgressView: import("styled-components").StyledComponent<"div", any, IProgressProps & {
|
|
4
|
+
isProgressWithSteps: boolean;
|
|
5
|
+
}, never>;
|
|
4
6
|
export declare const PendingProgressView: import("styled-components").StyledComponent<"div", any, IProgressProps, never>;
|
|
7
|
+
export declare const StepsWrapper: import("styled-components").StyledComponent<"div", any, IProgressProps, never>;
|
|
8
|
+
export declare const StepWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
isVisible: boolean;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
}, never>;
|
|
@@ -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,58 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IStepperProps } from '../../../types/formTypes';
|
|
3
|
+
/**
|
|
4
|
+
* A chord Stepper component, used similarly to an HTML input type number.
|
|
5
|
+
*
|
|
6
|
+
* The buttons are clickable but not keyboard focusable
|
|
7
|
+
*
|
|
8
|
+
* An `initialValue`, the `step` to increase / decrease by, `min`
|
|
9
|
+
* and `max` values can all be provided, but are optional, with defaults.
|
|
10
|
+
*
|
|
11
|
+
* The displayed value can be controlled by:
|
|
12
|
+
*
|
|
13
|
+
* - Entering a value in to the central input area (both mouse and keyboard-focusable)
|
|
14
|
+
*
|
|
15
|
+
* - Clicking the buttons on either side (mouse only)
|
|
16
|
+
*
|
|
17
|
+
* - Keyboard-focusing the stepper box and using the arrow keys
|
|
18
|
+
*
|
|
19
|
+
* In all cases the value will be clamped between min and max values.
|
|
20
|
+
*
|
|
21
|
+
* The maximum width of the component is 4 characters, meaning 3 digits with a
|
|
22
|
+
* sign, or 4 without.
|
|
23
|
+
*
|
|
24
|
+
* Optional `plusAction` and `minusAction` functions can be provided and will be
|
|
25
|
+
* called on click of the corresponding buttons.
|
|
26
|
+
*
|
|
27
|
+
* The component will display an `error` string beneath the stepper box, if present.
|
|
28
|
+
*
|
|
29
|
+
* Styles are provided for the `disabled` state and for display on dark or
|
|
30
|
+
* coloured backgrounds, using the `darkMode` boolean.
|
|
31
|
+
*
|
|
32
|
+
* Finally, an `accessibleName` string can be provided. Although optional,
|
|
33
|
+
* it's a very good idea to include this so that users of screen-readers
|
|
34
|
+
* know what they are actually controlling.
|
|
35
|
+
*
|
|
36
|
+
* Example:
|
|
37
|
+
*
|
|
38
|
+
* ```tsx
|
|
39
|
+
* import { Stepper } from '@royaloperahouse/chord'
|
|
40
|
+
*
|
|
41
|
+
* <div>
|
|
42
|
+
* <p>How How many seas must a white dove sail before she sleeps in the sand?</p>
|
|
43
|
+
* <Stepper
|
|
44
|
+
* initialValue={12}
|
|
45
|
+
* step={2}
|
|
46
|
+
* min={-8}
|
|
47
|
+
* max={667}
|
|
48
|
+
* plusAction={() => {console.log('More seas')}}
|
|
49
|
+
* minusAction={() => {console.log('Fewer seas')}}
|
|
50
|
+
* darkMode={false}
|
|
51
|
+
* disabled={false}
|
|
52
|
+
* error="Something went wrong!"
|
|
53
|
+
* accessibleName="Number of seas"
|
|
54
|
+
* />
|
|
55
|
+
* </div>
|
|
56
|
+
*/
|
|
57
|
+
export declare const Component: ({ initialValue, step, min, max, minusAction, plusAction, darkMode, error, disabled, accessibleName, }: IStepperProps) => ReactElement;
|
|
58
|
+
export default Component;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IStepperProps } from '../../../types/formTypes';
|
|
2
|
+
export declare const StepperWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StepperError: import("styled-components").StyledComponent<"div", any, Pick<IStepperProps, "darkMode">, never>;
|
|
4
|
+
export declare const StepperBox: import("styled-components").StyledComponent<"div", any, Pick<IStepperProps, "darkMode" | "error" | "disabled">, never>;
|
|
5
|
+
export declare const StepperValue: import("styled-components").StyledComponent<"input", any, Pick<IStepperProps, "disabled">, never>;
|
|
6
|
+
export declare const StepperButton: import("styled-components").StyledComponent<"div", any, Pick<IStepperProps, "disabled">, never>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ITextAreaProps } from '../../../types/formTypes';
|
|
2
|
+
/**
|
|
3
|
+
* An HTML textarea component for Chord.
|
|
4
|
+
*
|
|
5
|
+
* Control the height and width of the component with `height` and `width`.
|
|
6
|
+
*
|
|
7
|
+
* The TextArea can also be used as the direct child of a
|
|
8
|
+
* Chord Grid component, in which case you can control the width and
|
|
9
|
+
* horizontal position by specifying GridItem props.
|
|
10
|
+
*
|
|
11
|
+
* If a fixed pixel width is specified it will take precedence over the
|
|
12
|
+
* column span on Desktop.
|
|
13
|
+
*
|
|
14
|
+
* Example using width:
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <TextArea
|
|
18
|
+
* label='My Text Area'
|
|
19
|
+
* error={myError}
|
|
20
|
+
* height={100}
|
|
21
|
+
* width={300}
|
|
22
|
+
* darkMode={true}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* Example of use as a GridItem:
|
|
27
|
+
*
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import {Grid, TextArea} from '@royaloperahouse/chord';
|
|
30
|
+
*
|
|
31
|
+
* <Grid>
|
|
32
|
+
* <TextArea
|
|
33
|
+
* label='My Text Area'
|
|
34
|
+
* error={myError}
|
|
35
|
+
* darkMode={false}
|
|
36
|
+
* height={250}
|
|
37
|
+
* columnStartDesktop={2}
|
|
38
|
+
* columnSpanDesktop={7}
|
|
39
|
+
* />
|
|
40
|
+
* </Grid>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare const TextArea: ({ label, error, width, darkMode, height, columnStartDesktop, columnStartDevice, columnSpanDesktop, columnSpanDevice, maxLength, tabIndex, ...textareaProps }: ITextAreaProps) => JSX.Element;
|
|
44
|
+
export default TextArea;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ITextAreaProps } from '../../../types/formTypes';
|
|
2
|
+
export declare const TextAreaWrapper: import("styled-components").StyledComponent<"div", any, Pick<ITextAreaProps, "width" | "height">, never>;
|
|
3
|
+
export declare const TextAreaLabel: import("styled-components").StyledComponent<"div", any, Pick<ITextAreaProps, "darkMode">, never>;
|
|
4
|
+
export declare const TextAreaBox: import("styled-components").StyledComponent<"textarea", any, Pick<ITextAreaProps, "error" | "darkMode">, never>;
|
|
5
|
+
export declare const TextAreaError: import("styled-components").StyledComponent<"div", any, Pick<ITextAreaProps, "darkMode">, never>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ITextFieldProps } from '../../../types/formTypes';
|
|
2
|
+
/**
|
|
3
|
+
* A text field component, that wraps around the native `<input />` element
|
|
4
|
+
* and adds some extra information around it (i.e. a text label and an error label).
|
|
5
|
+
*
|
|
6
|
+
* # Labels
|
|
7
|
+
* You can use this component just like you would use a regular `<input />` element,
|
|
8
|
+
* just with the extra `label` prop, to set the label of the content. For example:
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <TextField label="This is a label" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* **IMPORTANT!** If you want to render a `<TextField />` without a label, you will
|
|
14
|
+
* have to make the label an empty string:
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <TextField label='' />
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* This is not recommended, as it makes the input non-accessible - all `<TextField />`s should
|
|
20
|
+
* have a label.
|
|
21
|
+
*
|
|
22
|
+
* # Light / Dark mode
|
|
23
|
+
* The component can also adapt its styles for light / dark mode. If you want this component
|
|
24
|
+
* to be rendered on a dark / coloured background, you can use the `darkMode` prop.
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <div>
|
|
27
|
+
* <WhiteBackgroundContainer>
|
|
28
|
+
* <TextField label="..." />
|
|
29
|
+
* </WhiteBackgroundContainer>
|
|
30
|
+
*
|
|
31
|
+
* <BlackBackgroundContainer>
|
|
32
|
+
* <TextField darkMode label="..." />
|
|
33
|
+
* </BlackBackgroundContainer>
|
|
34
|
+
* <BlueBackgroundContainer>
|
|
35
|
+
* <TextField darkMode label="..." />
|
|
36
|
+
* </BlueBackgroundContainer>
|
|
37
|
+
* </div>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
declare const TextField: ({ label, error, darkMode, width, ...inputProps }: ITextFieldProps) => JSX.Element;
|
|
41
|
+
export default TextField;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ITextFieldProps } from '../../../types/formTypes';
|
|
2
|
+
export declare const TextFieldContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, Pick<ITextFieldProps, "error" | "darkMode">, never>;
|
|
4
|
+
export declare const TextLabel: import("styled-components").StyledComponent<"p", any, Pick<ITextFieldProps, "darkMode">, never>;
|
|
5
|
+
export declare const ErrorLabel: import("styled-components").StyledComponent<"p", any, Pick<ITextFieldProps, "darkMode">, never>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
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
|
+
}
|
|
12
|
+
declare const Logo: ({ color, productName, fontSize }: ITextLogoProps) => React.ReactElement;
|
|
13
|
+
export default Logo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Colors } from '../../../types';
|
|
2
|
+
declare type WithFont = {
|
|
3
|
+
fontSize: number;
|
|
4
|
+
color: Colors;
|
|
5
|
+
};
|
|
6
|
+
export declare const LogoWrapper: import("styled-components").StyledComponent<"div", any, WithFont, never>;
|
|
7
|
+
export declare const LogoRightSide: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const LogoLeftSide: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
color: Colors;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const LogoLeftSideRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { TickboxLabelProps, TickboxInputProps, TickboxCheckmarkProps } from '../../../types/tickbox';
|
|
2
|
+
interface ITickboxErrorProps {
|
|
3
|
+
dark: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TickboxError: import("styled-components").StyledComponent<"div", any, ITickboxErrorProps, never>;
|
|
2
6
|
export declare const TickboxLabel: import("styled-components").StyledComponent<"label", any, TickboxLabelProps, never>;
|
|
3
7
|
export declare const TickboxCheckmark: import("styled-components").StyledComponent<"span", any, TickboxCheckmarkProps, never>;
|
|
4
8
|
export declare const TickboxInput: import("styled-components").StyledComponent<"input", any, TickboxInputProps, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITimerProps } from '../../../types/timer';
|
|
2
|
+
export declare const TimerWrapper: import("styled-components").StyledComponent<"div", any, Pick<ITimerProps, "color">, never>;
|
|
3
|
+
export declare const Line: import("styled-components").StyledComponent<"div", any, Pick<ITimerProps, "color">, never>;
|
|
4
|
+
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const ValuesWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const TimerLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const TimerValueSeparator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const TimerValueWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const TimerValue: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,6 +2,6 @@ import { IAltHeaderProps, IBodyTextProps, IHeaderProps, IOverlineProps, IStyledT
|
|
|
2
2
|
export declare const StyledTag: ({ tag, typography, children, level }: IStyledTag) => JSX.Element;
|
|
3
3
|
export declare const AltHeader: ({ level, children }: IAltHeaderProps) => JSX.Element;
|
|
4
4
|
export declare const BodyText: ({ level, children, tag }: IBodyTextProps) => JSX.Element;
|
|
5
|
-
export declare const Header: ({ level, children }: IHeaderProps) => JSX.Element;
|
|
5
|
+
export declare const Header: ({ semanticLevel, level, children }: IHeaderProps) => JSX.Element;
|
|
6
6
|
export declare const Overline: ({ level, children, tag }: IOverlineProps) => JSX.Element;
|
|
7
7
|
export declare const Subtitle: ({ level, children, tag }: ISubtitleProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare type withDeviceVolume = {
|
|
2
|
+
volumeHidden?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const VideoPlayButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
5
|
+
declare const VideoControlsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
declare const VideoVolume: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
7
|
+
declare const VideoMute: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
8
|
+
declare const VolumeControlsWrapper: import("styled-components").StyledComponent<"div", any, withDeviceVolume, never>;
|
|
9
|
+
declare const StoryBookWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export { VideoPlayButton, VideoControlsWrapper, VideoVolume, VideoMute, VolumeControlsWrapper, StoryBookWrapper };
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
import { CinemaBadge, StreamBadge } from './Badge';
|
|
1
2
|
import { PrimaryButton, SecondaryButton, TertiaryButton } from './Buttons';
|
|
3
|
+
import ControlledDropdown from './ControlledDropdown';
|
|
2
4
|
import { Grid, GridItem } from './Grid';
|
|
3
5
|
import { Icon } from './Icons';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
+
import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
|
|
7
|
+
import Progress from './Progress';
|
|
8
|
+
import Radio from './Radio';
|
|
9
|
+
import RotatorButtons from './RotatorButtons';
|
|
6
10
|
import SecondaryLogo from './SecondaryLogo';
|
|
11
|
+
import SectionSplitter from './SectionSplitter';
|
|
7
12
|
import SponsorLogo from './SponsorLogo';
|
|
8
13
|
import Sponsorship from './Sponsorship';
|
|
9
|
-
import SectionSplitter from './SectionSplitter';
|
|
10
|
-
import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
|
|
11
14
|
import Tab from './Tab';
|
|
12
15
|
import TabLink from './TabLink';
|
|
16
|
+
import TextArea from './TextArea';
|
|
17
|
+
import TextField from './TextField';
|
|
13
18
|
import TextLink from './TextLink';
|
|
19
|
+
import TextLogo from './TextLogo';
|
|
14
20
|
import Tickbox from './Tickbox';
|
|
21
|
+
import Timer from './Timer';
|
|
15
22
|
import TypeTags from './TypeTags';
|
|
16
|
-
import RotatorButtons from './RotatorButtons';
|
|
17
23
|
import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
|
|
18
|
-
|
|
24
|
+
import VideoControls from './VideoControls';
|
|
25
|
+
import { Stepper } from './Stepper';
|
|
26
|
+
export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, Progress, PrimaryButton, Radio, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TextArea, TextField, TextLink, TextLogo, Tickbox, Timer, TypeTags, VideoControls, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TextLink, Tickbox, TypeTags } from './atoms';
|
|
2
|
-
import { AnchorTabBar,
|
|
3
|
-
import { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote } from './molecules';
|
|
1
|
+
import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextLink, Tickbox, Timer, TypeTags, VideoControls } from './atoms';
|
|
2
|
+
import { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
|
|
3
|
+
import { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, SearchBar, SectionTitle, Select, Tabs, TextOnly, UpsellCard, Quote } from './molecules';
|
|
4
4
|
import ThemeProvider from '../styles/ThemeProvider';
|
|
5
5
|
import GlobalStyles from '../styles/GlobalStyles';
|
|
6
|
-
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, ContactCard,
|
|
6
|
+
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, RadioGroup, RotatorButtons, SecondaryButton, SecondaryLogo, SearchBar, SectionTitle, Select, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BasketProps {
|
|
2
|
+
basketText?: string;
|
|
3
|
+
basketTotalNumItems: number;
|
|
4
|
+
basketIsActive?: boolean;
|
|
5
|
+
basketIsEmpty: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const useBasket: (expiryUnixTimestamp?: number | undefined, numItems?: number, numVirtualItems?: number) => BasketProps;
|
|
8
|
+
export {};
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { ICardButtonContainerProps, ICardContentContainerProps } from '../../../types/card';
|
|
2
|
+
import { Colors } from '../../..';
|
|
2
3
|
export declare const CardContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
4
|
onlyShowButtonsOnHover: boolean;
|
|
5
|
+
isCardClickable: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const HoverContainer: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
+
lineColor?: Colors | undefined;
|
|
4
9
|
}, never>;
|
|
5
|
-
export declare const HoverContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
10
|
export declare const ProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
11
|
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, ICardContentContainerProps, never>;
|
|
8
12
|
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
13
|
export declare const TitleContainerMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
14
|
export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
15
|
export declare const SubtitleContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
16
|
+
export declare const LabelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
17
|
+
isVisible: boolean;
|
|
18
|
+
isGridCard: boolean;
|
|
19
|
+
}, never>;
|
|
20
|
+
export declare const LabelElements: import("styled-components").StyledComponent<"div", any, {
|
|
21
|
+
bgColor?: Colors | undefined;
|
|
22
|
+
}, never>;
|
|
23
|
+
export declare const LabelIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
24
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, ICardButtonContainerProps, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IContentSummaryProps } from '../../../types/editorial';
|
|
2
|
+
declare const ContentSummary: ({ title, subtitle, bodyText, link, image, largeTitle, showImage, truncate, fullyClickable, baseSemanticLevel, }: IContentSummaryProps) => JSX.Element;
|
|
3
|
+
export default ContentSummary;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface BodyTextProps {
|
|
2
|
+
truncate?: number;
|
|
3
|
+
}
|
|
4
|
+
interface ContentSummaryProps {
|
|
5
|
+
showImage?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Clickable {
|
|
8
|
+
clickable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BodyTextRelative: import("styled-components").StyledComponent<({ level, children, tag }: import("../../../types/typography").IBodyTextProps) => JSX.Element, any, {}, never>;
|
|
11
|
+
export declare const ContentSummaryWrapper: import("styled-components").StyledComponent<"article", any, Clickable, never>;
|
|
12
|
+
export declare const ContentSummaryImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const ContentSummaryTextWrapper: import("styled-components").StyledComponent<"div", any, ContentSummaryProps, never>;
|
|
14
|
+
export declare const ContentSummaryTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const BodyTextLimit: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
export declare const ContentSummaryBodyTextWrapper: import("styled-components").StyledComponent<"div", any, BodyTextProps, never>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const defaultProps: {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle: string;
|
|
4
|
+
bodyText: string;
|
|
5
|
+
link: {
|
|
6
|
+
text: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
image: HTMLImageElement;
|
|
10
|
+
showImage: boolean;
|
|
11
|
+
largeTitle: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const searchProps: {
|
|
14
|
+
title: string;
|
|
15
|
+
bodyText: string;
|
|
16
|
+
showImage: boolean;
|
|
17
|
+
subtitle: undefined;
|
|
18
|
+
truncate: number;
|
|
19
|
+
link: {
|
|
20
|
+
text: string;
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
image: HTMLImageElement;
|
|
24
|
+
largeTitle: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CardContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
4
|
+
export declare const ImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { INavTopProps } from '../../../types/navigation';
|
|
2
|
-
declare const NavTop: ({ accountText, accountLink, accountIcon, accountOptions, onLink, basketText, basketLink, basketNumItems, onClickSearch, isShowSearch, colorPrimary, }: INavTopProps) => JSX.Element;
|
|
2
|
+
declare const NavTop: ({ accountText, accountLink, accountIcon, accountOptions, onLink, basketText, basketExpiryUnixTimestamp, basketLink, basketNumItems, basketNumVirtualItems, onClickSearch, isShowSearch, colorPrimary, }: INavTopProps) => JSX.Element;
|
|
3
3
|
export default NavTop;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Colors } from '../../../../types';
|
|
3
|
+
declare type withInversion = {
|
|
4
|
+
invert: boolean;
|
|
5
|
+
theme: {
|
|
6
|
+
colors: Colors;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const BrandingTextBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
declare const BrandingTextBody: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
11
|
+
declare const ComapctHeaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
declare const ComapctHeaderGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
declare const CompactHeaderAssetWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
declare const CompactHeaderCopyWrapper: import("styled-components").StyledComponent<"div", any, withInversion, never>;
|
|
15
|
+
declare const CompactHeaderLogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
declare const CompactHeaderTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
declare const CompactHeaderCTAWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
declare const PrimaryButtonWithInversion: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../../types/buttonTypes").IPrimaryButtonProps>, any, withInversion, never>;
|
|
19
|
+
declare const PlayButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
20
|
+
declare const VideoControlsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
declare const VideoVolume: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
22
|
+
declare const VideoMute: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
23
|
+
declare const VolumeControlsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
|
+
export { BrandingTextBlock, BrandingTextBody, ComapctHeaderWrapper, ComapctHeaderGrid, CompactHeaderAssetWrapper, CompactHeaderCopyWrapper, CompactHeaderLogoWrapper, CompactHeaderTitleWrapper, CompactHeaderCTAWrapper, PrimaryButtonWithInversion, PlayButton, VideoControlsWrapper, VideoVolume, VideoMute, VolumeControlsWrapper, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { BrandingStyle } from '../../../../../types/impactHeader';
|
|
3
|
+
interface IBrandingProps {
|
|
4
|
+
brandingStyle: BrandingStyle;
|
|
5
|
+
brandingLink?: string;
|
|
6
|
+
brandingText?: string;
|
|
7
|
+
invert: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const CompactHeaderBranding: FunctionComponent<IBrandingProps>;
|
|
10
|
+
export default CompactHeaderBranding;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { IPageHeadingImpactProps } from '../../../../types/
|
|
2
|
+
import { IPageHeadingImpactProps } from '../../../../types/impactHeader';
|
|
3
3
|
declare const PageHeadingImpact: FunctionComponent<IPageHeadingImpactProps>;
|
|
4
4
|
export default PageHeadingImpact;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IImpactWrappersStyledProps } from '../../../../types/editorial';
|
|
2
2
|
export declare const ImpactWrapper: import("styled-components").StyledComponent<"div", any, IImpactWrappersStyledProps, never>;
|
|
3
|
+
export declare const ImpactHeaderImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
4
|
export declare const ImpactGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
5
|
export declare const SponsorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const LogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface IPageHeadingWrapperProps {
|
|
2
|
+
isPageHeadingWithoutTitle?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const PageHeadingWrapper: import("styled-components").StyledComponent<"div", any, IPageHeadingWrapperProps, never>;
|
|
2
5
|
export declare const PageHeadingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any,
|
|
4
|
-
export declare const ChildrenWrapper: import("styled-components").StyledComponent<"div", any,
|
|
6
|
+
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, IPageHeadingWrapperProps, never>;
|
|
7
|
+
export declare const ChildrenWrapper: import("styled-components").StyledComponent<"div", any, IPageHeadingWrapperProps, never>;
|
|
5
8
|
export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
9
|
export declare const LogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
10
|
export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|