@royaloperahouse/chord 1.2.0 → 1.2.1-a-chord-development
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 +504 -7
- package/README.md +250 -40
- package/dist/chord.cjs.development.js +9019 -3801
- 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 +8986 -3797
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +1 -0
- package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
- package/dist/components/atoms/Grid/index.d.ts +2 -1
- package/dist/components/atoms/Icons/Icons.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +1 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +76 -70
- package/dist/components/atoms/Logo/Logo.d.ts +1 -1
- 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 +6 -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/Radio2/Radio2.d.ts +23 -0
- package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
- package/dist/components/atoms/Radio2/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 +42 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +9 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +10 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +5 -0
- package/dist/components/atoms/TextField/index.d.ts +3 -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.d.ts +3 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
- package/dist/components/atoms/Tickbox2/index.d.ts +2 -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 +2 -2
- package/dist/components/atoms/VideoControls/VideoControls.d.ts +4 -0
- package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +13 -0
- package/dist/components/atoms/VideoControls/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +17 -7
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +7 -2
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +21 -0
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +9 -0
- package/dist/components/molecules/AuxiliaryNav/index.d.ts +2 -0
- 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 +17 -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/Information/InfoCta.d.ts +2 -2
- package/dist/components/molecules/Information/Information.style.d.ts +6 -3
- 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/PasswordStrength/PasswordStrength.d.ts +33 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +13 -0
- package/dist/components/molecules/PasswordStrength/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +8 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -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/PromoWithTitle/PromoChild.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +6 -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/RadioGroup2/RadioGroup2.d.ts +38 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
- package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
- package/dist/components/molecules/ReadMore/ReadMore.d.ts +4 -0
- package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +9 -0
- package/dist/components/molecules/ReadMore/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/components/molecules/Select/Select.d.ts +100 -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/Select2/Select2.d.ts +24 -0
- package/dist/components/molecules/Select2/Select2.style.d.ts +5 -0
- package/dist/components/molecules/Select2/index.d.ts +2 -0
- package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
- package/dist/components/molecules/Select2Async/index.d.ts +2 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
- package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
- package/dist/components/molecules/Table/Table.d.ts +4 -0
- package/dist/components/molecules/Table/Table.style.d.ts +19 -0
- package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
- package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
- package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
- package/dist/components/molecules/Table/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/VideoWithControls/VideoWithControls.d.ts +4 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +19 -3
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
- package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +68 -0
- package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +4 -0
- package/dist/components/organisms/ModalWindow/index.d.ts +2 -0
- 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 +3 -3
- package/dist/helpers/arrays.d.ts +6 -0
- package/dist/helpers/aspectRatio.d.ts +2 -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/generateDomElementId.d.ts +8 -0
- package/dist/helpers/htmlStrings.d.ts +5 -1
- package/dist/helpers/keyboards.d.ts +3 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +9 -4
- package/dist/styles/themes.d.ts +1188 -104
- package/dist/styles/viewports.d.ts +3 -0
- package/dist/types/auxiliaryNav.d.ts +39 -0
- package/dist/types/buttonTypes.d.ts +18 -0
- package/dist/types/card.d.ts +44 -0
- package/dist/types/carousel.d.ts +22 -1
- package/dist/types/creditListing.d.ts +13 -0
- package/dist/types/editorial.d.ts +80 -56
- package/dist/types/formTypes.d.ts +328 -0
- package/dist/types/iconTypes.d.ts +6 -0
- package/dist/types/image.d.ts +3 -0
- package/dist/types/impactHeader.d.ts +135 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/information.d.ts +17 -12
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/modalWindow.d.ts +20 -0
- package/dist/types/navigation.d.ts +68 -4
- package/dist/types/passwordStrength.d.ts +51 -0
- package/dist/types/progress.d.ts +33 -0
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/tableTypes.d.ts +47 -0
- package/dist/types/tickbox.d.ts +35 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +168 -10
- 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 +15 -4
- package/README.GIT +0 -122
- 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
|
@@ -2,12 +2,15 @@ export declare const breakpoints: {
|
|
|
2
2
|
xs: number;
|
|
3
3
|
sm: number;
|
|
4
4
|
md: number;
|
|
5
|
+
ml: number;
|
|
5
6
|
lg: number;
|
|
6
7
|
};
|
|
7
8
|
export declare const devices: {
|
|
9
|
+
smallMobile: string;
|
|
8
10
|
mobile: string;
|
|
9
11
|
tablet: string;
|
|
10
12
|
mobileAndTablet: string;
|
|
11
13
|
desktop: string;
|
|
14
|
+
smallDesktop: string;
|
|
12
15
|
largeDesktop: string;
|
|
13
16
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface IAuxiliaryNavProps {
|
|
2
|
+
/**
|
|
3
|
+
* Menu items
|
|
4
|
+
*/
|
|
5
|
+
items: IItem[];
|
|
6
|
+
/**
|
|
7
|
+
* Item will be marked as active.
|
|
8
|
+
* Should be equal to text prop from one of the items
|
|
9
|
+
*/
|
|
10
|
+
activeItem: string;
|
|
11
|
+
/**
|
|
12
|
+
* If component should render the mobile view
|
|
13
|
+
*/
|
|
14
|
+
isMobile?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* aria-label attribute for nav element
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type INavProps = Pick<IAuxiliaryNavProps, 'items' | 'activeItem' | 'ariaLabel'>;
|
|
21
|
+
export interface IItem {
|
|
22
|
+
/**
|
|
23
|
+
* Item text
|
|
24
|
+
*/
|
|
25
|
+
text: string;
|
|
26
|
+
/**
|
|
27
|
+
* Href for item link
|
|
28
|
+
*/
|
|
29
|
+
href: string;
|
|
30
|
+
/**
|
|
31
|
+
* Item click handler
|
|
32
|
+
* Default link behavior will be prevented if this specified
|
|
33
|
+
*/
|
|
34
|
+
onClick?: (e: MouseEvent) => void;
|
|
35
|
+
}
|
|
36
|
+
export interface IItemProps extends IItem {
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
isMobile?: boolean;
|
|
39
|
+
}
|
|
@@ -20,6 +20,10 @@ export interface IButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
20
20
|
* Direction of the icon used in the button
|
|
21
21
|
*/
|
|
22
22
|
iconDirection?: DirectionType;
|
|
23
|
+
/**
|
|
24
|
+
* ClassName for the icon to be used in the button
|
|
25
|
+
*/
|
|
26
|
+
iconClassName?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Color of text and icon
|
|
25
29
|
*/
|
|
@@ -30,6 +34,20 @@ export interface IPrimaryButtonProps extends IButtonProps {
|
|
|
30
34
|
* Button background color
|
|
31
35
|
*/
|
|
32
36
|
bgColor?: Colors;
|
|
37
|
+
/**
|
|
38
|
+
* Disabled state
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface IAuxiliaryButtonProps extends IButtonProps {
|
|
43
|
+
/**
|
|
44
|
+
* Button background color
|
|
45
|
+
*/
|
|
46
|
+
bgColor?: Colors;
|
|
47
|
+
/**
|
|
48
|
+
* Function to be called when a button is clicked
|
|
49
|
+
*/
|
|
50
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
33
51
|
}
|
|
34
52
|
export interface ITertiaryButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
35
53
|
/**
|
package/dist/types/card.d.ts
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { StyledProps } from 'styled-components';
|
|
2
|
+
import { Colors, EditorialLink, IconNameType } from '.';
|
|
2
3
|
import { PromoLinks } from './editorial';
|
|
4
|
+
import { DirectionType } from './iconTypes';
|
|
5
|
+
export interface CardLabelProps {
|
|
6
|
+
/**
|
|
7
|
+
* Label text
|
|
8
|
+
*/
|
|
9
|
+
text: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the icon to be used in the label
|
|
12
|
+
*/
|
|
13
|
+
iconName?: IconNameType;
|
|
14
|
+
/**
|
|
15
|
+
* Direction of the icon used in the label
|
|
16
|
+
*/
|
|
17
|
+
iconDirection?: DirectionType;
|
|
18
|
+
/**
|
|
19
|
+
* Icon color
|
|
20
|
+
*/
|
|
21
|
+
color?: Colors;
|
|
22
|
+
/**
|
|
23
|
+
* Background color
|
|
24
|
+
*/
|
|
25
|
+
bgColor?: Colors;
|
|
26
|
+
}
|
|
3
27
|
export interface ICardProps {
|
|
4
28
|
/**
|
|
5
29
|
* The progress percentage
|
|
@@ -9,6 +33,10 @@ export interface ICardProps {
|
|
|
9
33
|
* Text placed in the Card component
|
|
10
34
|
*/
|
|
11
35
|
text?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Highlighted small text
|
|
38
|
+
*/
|
|
39
|
+
highlightText?: string;
|
|
12
40
|
/**
|
|
13
41
|
* List of Type Tags to display.
|
|
14
42
|
*/
|
|
@@ -49,10 +77,26 @@ export interface ICardProps {
|
|
|
49
77
|
* Defines if buttons are hidden; True by default;
|
|
50
78
|
*/
|
|
51
79
|
onlyShowButtonsOnHover?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Defines the color for a line that appears on hover
|
|
82
|
+
*/
|
|
83
|
+
hoverLineColor?: Colors;
|
|
52
84
|
/**
|
|
53
85
|
* A callback to be called when the
|
|
54
86
|
*/
|
|
55
87
|
onClick?: VoidFunction;
|
|
88
|
+
/**
|
|
89
|
+
* Renders label at the top of the card. E.g. Coming soon
|
|
90
|
+
*/
|
|
91
|
+
labelParams?: CardLabelProps;
|
|
92
|
+
/**
|
|
93
|
+
* Defines if it is Card in the Grid or in the Carousel
|
|
94
|
+
*/
|
|
95
|
+
isGridCard?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Renders an auxiliary button when passed
|
|
98
|
+
*/
|
|
99
|
+
auxiliaryCTA?: EditorialLink;
|
|
56
100
|
}
|
|
57
101
|
export interface ICardContentContainerProps extends StyledProps<any> {
|
|
58
102
|
/**
|
package/dist/types/carousel.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ImgHTMLAttributes, ReactElement } from 'react';
|
|
|
2
2
|
import { ICardProps } from './card';
|
|
3
3
|
import { EditorialLink } from './editorial';
|
|
4
4
|
import { IImageWithCaptionProps } from './image';
|
|
5
|
+
import { IntegratedTimerProps } from './timer';
|
|
5
6
|
import { ILogosProps } from './types';
|
|
6
7
|
export declare enum CarouselType {
|
|
7
8
|
Image = "image",
|
|
@@ -12,7 +13,7 @@ export interface ICarouselProps {
|
|
|
12
13
|
/**
|
|
13
14
|
* Carousel title
|
|
14
15
|
*/
|
|
15
|
-
title
|
|
16
|
+
title?: string;
|
|
16
17
|
/**
|
|
17
18
|
* Carousel type.
|
|
18
19
|
*/
|
|
@@ -29,6 +30,10 @@ export interface ICarouselProps {
|
|
|
29
30
|
* Carousel children (only Card and ImageAspectRatioWrapper children are allowed).
|
|
30
31
|
*/
|
|
31
32
|
children: ReactElement<ICardProps | IImageWithCaptionProps>[];
|
|
33
|
+
/**
|
|
34
|
+
* Defines if there should be offset added at the beginning of the container. True by default;
|
|
35
|
+
*/
|
|
36
|
+
useOffset?: boolean;
|
|
32
37
|
}
|
|
33
38
|
export interface ICarouselWrapperProps {
|
|
34
39
|
/**
|
|
@@ -47,6 +52,14 @@ export interface ICarouselWrapperProps {
|
|
|
47
52
|
* Only for image type. It sets the height in pixels of the slides in desktop(default 500)
|
|
48
53
|
*/
|
|
49
54
|
imagesHeightDesktop?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Additional top padding for slides in the carousel
|
|
57
|
+
*/
|
|
58
|
+
slidesTopPadding?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Sets overflow to swiper when specified
|
|
61
|
+
*/
|
|
62
|
+
overflow?: string;
|
|
50
63
|
}
|
|
51
64
|
export declare type HighlightsCarouselSlideImage = ImgHTMLAttributes<HTMLImageElement> & {
|
|
52
65
|
key: string;
|
|
@@ -68,6 +81,10 @@ export declare type HighlightsCarouselSlide = {
|
|
|
68
81
|
* text in info section
|
|
69
82
|
*/
|
|
70
83
|
infoText?: string;
|
|
84
|
+
/**
|
|
85
|
+
* additional info section
|
|
86
|
+
*/
|
|
87
|
+
additionalInfo?: string;
|
|
71
88
|
/**
|
|
72
89
|
* Link in info section
|
|
73
90
|
*/
|
|
@@ -76,6 +93,10 @@ export declare type HighlightsCarouselSlide = {
|
|
|
76
93
|
* Slide image
|
|
77
94
|
*/
|
|
78
95
|
image: HighlightsCarouselSlideImage;
|
|
96
|
+
/**
|
|
97
|
+
* Params for Timer component
|
|
98
|
+
*/
|
|
99
|
+
timerParams?: IntegratedTimerProps;
|
|
79
100
|
};
|
|
80
101
|
export interface IHighlightsCarouselProps {
|
|
81
102
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ListingPerson } from './types';
|
|
2
|
+
export interface ICreditListing {
|
|
3
|
+
roles: {
|
|
4
|
+
name: string;
|
|
5
|
+
people: ListingPerson[];
|
|
6
|
+
description: string;
|
|
7
|
+
musicTitle: string[];
|
|
8
|
+
replacement: string;
|
|
9
|
+
additionalInfo: string;
|
|
10
|
+
dataROH: string;
|
|
11
|
+
}[];
|
|
12
|
+
columnCount?: number;
|
|
13
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
1
|
+
import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { ButtonType } from './buttonTypes';
|
|
4
4
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
5
|
-
import { Colors,
|
|
5
|
+
import { Colors, IVideoWithControlsSettings } from './types';
|
|
6
|
+
import { TypographyLevel } from './typography';
|
|
6
7
|
export interface IEditorialProps {
|
|
7
8
|
/**
|
|
8
9
|
* Text placed in the editorial component
|
|
@@ -42,12 +43,10 @@ export interface IEditorialGridProps {
|
|
|
42
43
|
* Indicates if component should be hidden
|
|
43
44
|
*/
|
|
44
45
|
hideSection?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface IPromoWithTagsStyledProps {
|
|
47
46
|
/**
|
|
48
|
-
*
|
|
47
|
+
* Modifies styles to fixed height card
|
|
49
48
|
*/
|
|
50
|
-
|
|
49
|
+
asCard?: boolean;
|
|
51
50
|
}
|
|
52
51
|
export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
53
52
|
/**
|
|
@@ -102,13 +101,21 @@ export interface IPromoWithTitleProps {
|
|
|
102
101
|
*/
|
|
103
102
|
imagePosition?: 'left' | 'right';
|
|
104
103
|
/**
|
|
105
|
-
* Image tag
|
|
104
|
+
* Image tag with aspect ratio 4:3 or video tag with aspect ratio 16:9 (desktop) or 1:1 (mobile)
|
|
106
105
|
*/
|
|
107
|
-
children: ReactElement<HTMLImageElement>;
|
|
106
|
+
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
107
|
+
/**
|
|
108
|
+
* Settings for the VideoWithControls component.
|
|
109
|
+
*/
|
|
110
|
+
videoSettings?: IVideoWithControlsSettings;
|
|
108
111
|
/**
|
|
109
112
|
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
110
113
|
*/
|
|
111
114
|
links?: PromoLinks;
|
|
115
|
+
/**
|
|
116
|
+
* Semantic level of the title. Default is 2.
|
|
117
|
+
*/
|
|
118
|
+
titleSemanticLevel?: TypographyLevel;
|
|
112
119
|
}
|
|
113
120
|
export interface IThemePageHeadingProps {
|
|
114
121
|
/**
|
|
@@ -127,26 +134,26 @@ export interface IThemePageHeadingProps {
|
|
|
127
134
|
* Boolean to show/hide sponsorship logo (default true)
|
|
128
135
|
*/
|
|
129
136
|
sponsor?: boolean;
|
|
130
|
-
}
|
|
131
|
-
export interface IPageHeadingProps extends IThemePageHeadingProps {
|
|
132
137
|
/**
|
|
133
|
-
*
|
|
138
|
+
* Semantic level of the title. Default is 1.
|
|
134
139
|
*/
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
export interface IPageHeadingImpactProps {
|
|
140
|
+
semanticLevel?: TypographyLevel;
|
|
138
141
|
/**
|
|
139
|
-
*
|
|
142
|
+
* Character limit for the text
|
|
140
143
|
*/
|
|
141
|
-
|
|
144
|
+
copyCharLimit?: number;
|
|
142
145
|
/**
|
|
143
|
-
*
|
|
146
|
+
* Character limit for the title
|
|
144
147
|
*/
|
|
145
|
-
|
|
148
|
+
titleCharLimit?: number;
|
|
149
|
+
}
|
|
150
|
+
export interface IPageHeadingProps extends IThemePageHeadingProps {
|
|
146
151
|
/**
|
|
147
|
-
*
|
|
152
|
+
* Logo to be placed in page heading component
|
|
148
153
|
*/
|
|
149
|
-
|
|
154
|
+
children?: ReactNode;
|
|
155
|
+
}
|
|
156
|
+
export interface IImpactWrappersStyledProps extends StyledProps<any> {
|
|
150
157
|
/**
|
|
151
158
|
* Background url for desktops
|
|
152
159
|
*/
|
|
@@ -155,77 +162,94 @@ export interface IPageHeadingImpactProps {
|
|
|
155
162
|
* Background url for devices
|
|
156
163
|
*/
|
|
157
164
|
bgUrlDevice?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface IHighlightsHeaderProps {
|
|
158
167
|
/**
|
|
159
|
-
*
|
|
168
|
+
* Text placed in the editorial component
|
|
160
169
|
*/
|
|
161
|
-
|
|
170
|
+
title: string;
|
|
162
171
|
/**
|
|
163
|
-
*
|
|
172
|
+
* Subtitle placed in the editorial component
|
|
164
173
|
*/
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
export interface IImpactWrappersStyledProps extends StyledProps<any> {
|
|
174
|
+
subtitle?: string;
|
|
168
175
|
/**
|
|
169
|
-
*
|
|
176
|
+
* Text placed in the editorial component
|
|
170
177
|
*/
|
|
171
|
-
|
|
178
|
+
text?: string;
|
|
172
179
|
/**
|
|
173
|
-
*
|
|
180
|
+
* Explanation
|
|
174
181
|
*/
|
|
175
|
-
|
|
182
|
+
images?: Array<ImgHTMLAttributes<HTMLImageElement>>;
|
|
176
183
|
}
|
|
177
|
-
export
|
|
184
|
+
export declare type IContentSummaryLink = Omit<EditorialLink, 'buttonType' | 'bgColor' | 'iconName' | 'iconDirection'>;
|
|
185
|
+
interface IContentSummaryImageProps {
|
|
178
186
|
/**
|
|
179
|
-
*
|
|
187
|
+
* URL of the content summary image
|
|
180
188
|
*/
|
|
181
|
-
|
|
189
|
+
src: string;
|
|
182
190
|
/**
|
|
183
|
-
*
|
|
191
|
+
* Alt text of the content summary image
|
|
184
192
|
*/
|
|
185
|
-
|
|
193
|
+
alt?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface IContentSummaryProps {
|
|
186
196
|
/**
|
|
187
|
-
* Title
|
|
197
|
+
* Title for content summary
|
|
188
198
|
*/
|
|
189
|
-
|
|
199
|
+
title?: string;
|
|
190
200
|
/**
|
|
191
|
-
* Subtitle
|
|
201
|
+
* Subtitle field, used, e.g. for date in News summaries
|
|
192
202
|
*/
|
|
193
203
|
subtitle?: string;
|
|
194
204
|
/**
|
|
195
|
-
*
|
|
205
|
+
* Main text area for content summary item
|
|
196
206
|
*/
|
|
197
|
-
|
|
207
|
+
bodyText?: string;
|
|
198
208
|
/**
|
|
199
|
-
*
|
|
209
|
+
* Link object with text for cta, can also have <a> tag attributes href, target etc...
|
|
200
210
|
*/
|
|
201
|
-
|
|
211
|
+
link?: IContentSummaryLink;
|
|
202
212
|
/**
|
|
203
|
-
*
|
|
213
|
+
* Image to display in the component with aspect ratio 1.3:1
|
|
204
214
|
*/
|
|
205
|
-
|
|
215
|
+
image?: IContentSummaryImageProps;
|
|
206
216
|
/**
|
|
207
|
-
*
|
|
217
|
+
* Show an image to the left of the text or not
|
|
208
218
|
*/
|
|
209
|
-
|
|
219
|
+
showImage?: boolean;
|
|
210
220
|
/**
|
|
211
|
-
*
|
|
221
|
+
* Display a larger title for e.g. displaying search results
|
|
212
222
|
*/
|
|
213
|
-
|
|
223
|
+
largeTitle?: boolean;
|
|
214
224
|
/**
|
|
225
|
+
* Truncate the body text after the given number of lines
|
|
226
|
+
*/
|
|
227
|
+
truncate?: number;
|
|
215
228
|
/**
|
|
216
|
-
*
|
|
229
|
+
* Option to make the entire component clickable for search results
|
|
217
230
|
*/
|
|
218
|
-
|
|
231
|
+
fullyClickable?: boolean;
|
|
219
232
|
/**
|
|
220
|
-
*
|
|
233
|
+
* The base semantic header level for the component: 1 | 2 | 3 | 4 | 5 | 6
|
|
221
234
|
*/
|
|
222
|
-
|
|
235
|
+
baseSemanticLevel?: TypographyLevel;
|
|
236
|
+
}
|
|
237
|
+
export interface IPanelHeadingProps {
|
|
238
|
+
/**
|
|
239
|
+
* Content to display in the left hand panel
|
|
240
|
+
*/
|
|
241
|
+
info: ReactElement<HTMLElement>;
|
|
223
242
|
/**
|
|
224
|
-
*
|
|
243
|
+
* Image to display in the right hand panel, aspect ratio 4:3
|
|
225
244
|
*/
|
|
226
|
-
|
|
245
|
+
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
246
|
+
/**
|
|
247
|
+
* Colour of the info panel background
|
|
248
|
+
*/
|
|
249
|
+
color?: Colors;
|
|
227
250
|
/**
|
|
228
|
-
*
|
|
251
|
+
* Reference of the div to scroll to when clicking on Scroll Down
|
|
229
252
|
*/
|
|
230
|
-
|
|
253
|
+
scrollTo?: string;
|
|
231
254
|
}
|
|
255
|
+
export {};
|