@royaloperahouse/chord 0.1.0
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/LICENSE +21 -0
- package/README.md +82 -0
- package/dist/chord.cjs.development.js +3611 -0
- package/dist/chord.cjs.development.js.map +1 -0
- package/dist/chord.cjs.production.min.js +2 -0
- package/dist/chord.cjs.production.min.js.map +1 -0
- package/dist/chord.esm.js +3588 -0
- package/dist/chord.esm.js.map +1 -0
- package/dist/components/atoms/Account/Account.d.ts +3 -0
- package/dist/components/atoms/Account/index.d.ts +2 -0
- package/dist/components/atoms/Basket/Basket.d.ts +3 -0
- package/dist/components/atoms/Basket/Basket.style.d.ts +5 -0
- package/dist/components/atoms/Basket/index.d.ts +2 -0
- package/dist/components/atoms/Buttons/Button.d.ts +4 -0
- package/dist/components/atoms/Buttons/Button.style.d.ts +3 -0
- package/dist/components/atoms/Buttons/ButtonIconWrapper.style.d.ts +2 -0
- package/dist/components/atoms/Buttons/Primary/PrimaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/Secondary/SecondaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Secondary/SecondaryButtonWrapper.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/Tertiary/TertiaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Tertiary/TertiaryButton.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/index.d.ts +4 -0
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/atoms/Dropdown/Dropdown.style.d.ts +4 -0
- package/dist/components/atoms/Dropdown/index.d.ts +2 -0
- package/dist/components/atoms/Grid/Grid.d.ts +2 -0
- package/dist/components/atoms/Grid/GridItem.d.ts +3 -0
- package/dist/components/atoms/Grid/index.d.ts +3 -0
- package/dist/components/atoms/Heading/Heading.d.ts +3 -0
- package/dist/components/atoms/Heading/Heading.style.d.ts +3 -0
- package/dist/components/atoms/Heading/index.d.ts +2 -0
- package/dist/components/atoms/Icons/Icons.d.ts +4 -0
- package/dist/components/atoms/Icons/Icons.style.d.ts +9 -0
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +10 -0
- package/dist/components/atoms/Icons/StorybookSupport/IconsDiv.style.d.ts +2 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Sponsors/Sponsor.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +71 -0
- package/dist/components/atoms/Icons/index.d.ts +2 -0
- package/dist/components/atoms/Image/Image.d.ts +38 -0
- package/dist/components/atoms/ImageAspectRatioWrapper/ImageAspectRatioWrapper.d.ts +3 -0
- package/dist/components/atoms/ImageAspectRatioWrapper/index.d.ts +2 -0
- package/dist/components/atoms/IndividualListing/IndividualListing.d.ts +3 -0
- package/dist/components/atoms/IndividualListing/IndividualListing.style.d.ts +2 -0
- package/dist/components/atoms/IndividualListing/index.d.ts +2 -0
- package/dist/components/atoms/Logo/Logo.d.ts +3 -0
- package/dist/components/atoms/Logo/Logo.style.d.ts +6 -0
- package/dist/components/atoms/Logo/index.d.ts +2 -0
- package/dist/components/atoms/Search/Search.d.ts +3 -0
- package/dist/components/atoms/Search/Search.style.d.ts +3 -0
- package/dist/components/atoms/Search/index.d.ts +2 -0
- package/dist/components/atoms/SectionSplitter/SectionSplitter.d.ts +3 -0
- package/dist/components/atoms/SectionSplitter/SectionSplitter.style.d.ts +2 -0
- package/dist/components/atoms/SectionSplitter/index.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.d.ts +4 -0
- package/dist/components/atoms/Sponsorship/index.d.ts +2 -0
- package/dist/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/components/atoms/Tab/Tab.style.d.ts +3 -0
- package/dist/components/atoms/Tab/index.d.ts +2 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts +4 -0
- package/dist/components/atoms/TextLink/TextLink.style.d.ts +3 -0
- package/dist/components/atoms/TextLink/index.d.ts +2 -0
- package/dist/components/atoms/TypeTags/TypeTags.d.ts +3 -0
- package/dist/components/atoms/TypeTags/TypeTags.style.d.ts +2 -0
- package/dist/components/atoms/TypeTags/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +9 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/molecules/ContactNewsletter/ContactNewsletter.d.ts +4 -0
- package/dist/components/molecules/ContactNewsletter/ContactNewsletter.style.d.ts +8 -0
- package/dist/components/molecules/ContactNewsletter/index.d.ts +2 -0
- package/dist/components/molecules/Editorial/Editorial.d.ts +4 -0
- package/dist/components/molecules/Editorial/Editorial.style.d.ts +6 -0
- package/dist/components/molecules/Editorial/index.d.ts +2 -0
- package/dist/components/molecules/NavTop/NavTop.d.ts +3 -0
- package/dist/components/molecules/NavTop/NavTop.style.d.ts +1 -0
- package/dist/components/molecules/NavTop/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +3 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +2 -0
- package/dist/components/molecules/PolicyLinks/PolicyLinks.d.ts +4 -0
- package/dist/components/molecules/PolicyLinks/PolicyLinks.style.d.ts +3 -0
- package/dist/components/molecules/PolicyLinks/index.d.ts +2 -0
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.d.ts +4 -0
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +8 -0
- package/dist/components/molecules/PromoWithTitle/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.d.ts +3 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +5 -0
- package/dist/components/molecules/SearchBar/index.d.ts +2 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +3 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.style.d.ts +2 -0
- package/dist/components/molecules/SectionTitle/index.d.ts +2 -0
- package/dist/components/molecules/Tabs/Tabs.d.ts +3 -0
- package/dist/components/molecules/Tabs/Tabs.style.d.ts +5 -0
- package/dist/components/molecules/Tabs/index.d.ts +2 -0
- package/dist/components/molecules/TextOnly/TextOnly.d.ts +4 -0
- package/dist/components/molecules/TextOnly/TextOnly.style.d.ts +1 -0
- package/dist/components/molecules/TextOnly/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +6 -0
- package/dist/components/organisms/Footer/Footer.d.ts +4 -0
- package/dist/components/organisms/Footer/Footer.style.d.ts +6 -0
- package/dist/components/organisms/Footer/index.d.ts +2 -0
- package/dist/components/organisms/Navigation/Navigation.d.ts +3 -0
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +7 -0
- package/dist/components/organisms/Navigation/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -0
- package/dist/jest.setup.d.ts +1 -0
- package/dist/styles/GlobalStyles.d.ts +3 -0
- package/dist/styles/StorybookSupport/Colours/StorybookColourBox.d.ts +5 -0
- package/dist/styles/ThemeProvider.d.ts +3 -0
- package/dist/styles/themes.d.ts +2120 -0
- package/dist/styles/viewports.d.ts +13 -0
- package/dist/types/buttonTypes.d.ts +39 -0
- package/dist/types/editorial.d.ts +80 -0
- package/dist/types/footer.d.ts +41 -0
- package/dist/types/iconTypes.d.ts +33 -0
- package/dist/types/image.d.ts +12 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/navigation.d.ts +141 -0
- package/dist/types/types.d.ts +256 -0
- package/package.json +93 -0
- package/src/components/atoms/Account/Account.stories.tsx +93 -0
- package/src/components/atoms/Account/Account.test.tsx +54 -0
- package/src/components/atoms/Account/Account.tsx +25 -0
- package/src/components/atoms/Account/index.tsx +3 -0
- package/src/components/atoms/Basket/Basket.stories.tsx +79 -0
- package/src/components/atoms/Basket/Basket.style.tsx +74 -0
- package/src/components/atoms/Basket/Basket.test.tsx +35 -0
- package/src/components/atoms/Basket/Basket.tsx +34 -0
- package/src/components/atoms/Basket/index.tsx +3 -0
- package/src/components/atoms/Buttons/Button.style.tsx +31 -0
- package/src/components/atoms/Buttons/Button.tsx +21 -0
- package/src/components/atoms/Buttons/ButtonIconWrapper.style.tsx +10 -0
- package/src/components/atoms/Buttons/Buttons.stories.tsx +77 -0
- package/src/components/atoms/Buttons/Primary/PrimaryButton.stories.tsx +94 -0
- package/src/components/atoms/Buttons/Primary/PrimaryButton.test.tsx +39 -0
- package/src/components/atoms/Buttons/Primary/PrimaryButton.tsx +14 -0
- package/src/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.tsx +11 -0
- package/src/components/atoms/Buttons/Secondary/SecondaryButton.stories.tsx +84 -0
- package/src/components/atoms/Buttons/Secondary/SecondaryButton.test.tsx +39 -0
- package/src/components/atoms/Buttons/Secondary/SecondaryButton.tsx +14 -0
- package/src/components/atoms/Buttons/Secondary/SecondaryButtonWrapper.style.tsx +11 -0
- package/src/components/atoms/Buttons/Tertiary/TertiaryButton.stories.tsx +73 -0
- package/src/components/atoms/Buttons/Tertiary/TertiaryButton.style.tsx +29 -0
- package/src/components/atoms/Buttons/Tertiary/TertiaryButton.test.tsx +29 -0
- package/src/components/atoms/Buttons/Tertiary/TertiaryButton.tsx +18 -0
- package/src/components/atoms/Buttons/index.tsx +5 -0
- package/src/components/atoms/Dropdown/Dropdown.stories.tsx +153 -0
- package/src/components/atoms/Dropdown/Dropdown.style.tsx +64 -0
- package/src/components/atoms/Dropdown/Dropdown.test.tsx +67 -0
- package/src/components/atoms/Dropdown/Dropdown.tsx +131 -0
- package/src/components/atoms/Dropdown/index.tsx +3 -0
- package/src/components/atoms/Grid/Grid.stories.tsx +127 -0
- package/src/components/atoms/Grid/Grid.test.tsx +17 -0
- package/src/components/atoms/Grid/Grid.tsx +11 -0
- package/src/components/atoms/Grid/GridItem.test.tsx +25 -0
- package/src/components/atoms/Grid/GridItem.tsx +24 -0
- package/src/components/atoms/Grid/index.tsx +3 -0
- package/src/components/atoms/Heading/Heading.stories.tsx +44 -0
- package/src/components/atoms/Heading/Heading.style.tsx +14 -0
- package/src/components/atoms/Heading/Heading.test.tsx +13 -0
- package/src/components/atoms/Heading/Heading.tsx +15 -0
- package/src/components/atoms/Heading/index.tsx +3 -0
- package/src/components/atoms/Icons/Icons.stories.tsx +190 -0
- package/src/components/atoms/Icons/Icons.style.tsx +24 -0
- package/src/components/atoms/Icons/Icons.test.tsx +31 -0
- package/src/components/atoms/Icons/Icons.tsx +20 -0
- package/src/components/atoms/Icons/StorybookSupport/Iconography.tsx +27 -0
- package/src/components/atoms/Icons/StorybookSupport/IconsDiv.style.tsx +49 -0
- package/src/components/atoms/Icons/SvgIcons/12px/Remove.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/12px/Tick.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.tsx +13 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.tsx +20 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.tsx +16 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/Filter.svg.tsx +19 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.tsx +31 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.tsx +16 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.tsx +9 -0
- package/src/components/atoms/Icons/SvgIcons/Actions/Watch.svg.tsx +9 -0
- package/src/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.tsx +31 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.tsx +19 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.tsx +13 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/List.svg.tsx +22 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.tsx +20 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.tsx +13 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.tsx +19 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Logos/Sponsors/Sponsor.svg.tsx +26 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/Home.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.tsx +24 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.tsx +10 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.tsx +17 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/Search.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/User.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.tsx +12 -0
- package/src/components/atoms/Icons/SvgIcons/Text/Delete.svg.tsx +12 -0
- package/src/components/atoms/Icons/SvgIcons/Text/Shift.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Text/Space.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/Close.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/Detract.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/Expand.svg.tsx +8 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.tsx +12 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/GridView.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/ListView.svg.tsx +10 -0
- package/src/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.tsx +16 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Back10.svg.tsx +16 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Clips.svg.tsx +10 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Forward10.svg.tsx +16 -0
- package/src/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Minimise.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Muted.svg.tsx +15 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Pause.svg.tsx +9 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Play.svg.tsx +9 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Restart.svg.tsx +11 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.tsx +17 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Trailer.svg.tsx +12 -0
- package/src/components/atoms/Icons/SvgIcons/Video/Volume.svg.tsx +19 -0
- package/src/components/atoms/Icons/SvgIcons/index.tsx +149 -0
- package/src/components/atoms/Icons/__snapshots__/Icons.test.tsx.snap +1954 -0
- package/src/components/atoms/Icons/index.tsx +2 -0
- package/src/components/atoms/Image/Image.tsx +72 -0
- package/src/components/atoms/ImageAspectRatioWrapper/ImageAspectRatio.test.tsx +23 -0
- package/src/components/atoms/ImageAspectRatioWrapper/ImageAspectRatioWrapper.stories.tsx +71 -0
- package/src/components/atoms/ImageAspectRatioWrapper/ImageAspectRatioWrapper.tsx +15 -0
- package/src/components/atoms/ImageAspectRatioWrapper/index.tsx +3 -0
- package/src/components/atoms/IndividualListing/IndividualListing.stories.tsx +51 -0
- package/src/components/atoms/IndividualListing/IndividualListing.style.tsx +33 -0
- package/src/components/atoms/IndividualListing/IndividualListing.test.tsx +30 -0
- package/src/components/atoms/IndividualListing/IndividualListing.tsx +22 -0
- package/src/components/atoms/IndividualListing/index.tsx +3 -0
- package/src/components/atoms/Logo/Logo.stories.tsx +48 -0
- package/src/components/atoms/Logo/Logo.style.tsx +18 -0
- package/src/components/atoms/Logo/Logo.tsx +30 -0
- package/src/components/atoms/Logo/index.tsx +3 -0
- package/src/components/atoms/Search/Search.stories.tsx +63 -0
- package/src/components/atoms/Search/Search.style.tsx +36 -0
- package/src/components/atoms/Search/Search.test.tsx +24 -0
- package/src/components/atoms/Search/Search.tsx +16 -0
- package/src/components/atoms/Search/index.tsx +3 -0
- package/src/components/atoms/SectionSplitter/SectionSplitter.stories.tsx +47 -0
- package/src/components/atoms/SectionSplitter/SectionSplitter.style.tsx +11 -0
- package/src/components/atoms/SectionSplitter/SectionSplitter.tsx +22 -0
- package/src/components/atoms/SectionSplitter/index.tsx +3 -0
- package/src/components/atoms/Sponsorship/Sponsorship.stories.tsx +38 -0
- package/src/components/atoms/Sponsorship/Sponsorship.test.tsx +36 -0
- package/src/components/atoms/Sponsorship/Sponsorship.tsx +53 -0
- package/src/components/atoms/Sponsorship/index.tsx +3 -0
- package/src/components/atoms/Tab/Tab.stories.tsx +67 -0
- package/src/components/atoms/Tab/Tab.style.tsx +105 -0
- package/src/components/atoms/Tab/Tab.test.tsx +28 -0
- package/src/components/atoms/Tab/Tab.tsx +34 -0
- package/src/components/atoms/Tab/index.tsx +3 -0
- package/src/components/atoms/TextLink/TextLink.stories.tsx +81 -0
- package/src/components/atoms/TextLink/TextLink.style.tsx +26 -0
- package/src/components/atoms/TextLink/TextLink.test.tsx +39 -0
- package/src/components/atoms/TextLink/TextLink.tsx +20 -0
- package/src/components/atoms/TextLink/index.tsx +3 -0
- package/src/components/atoms/TypeTags/TypeTags.stories.tsx +57 -0
- package/src/components/atoms/TypeTags/TypeTags.style.tsx +28 -0
- package/src/components/atoms/TypeTags/TypeTags.test.tsx +21 -0
- package/src/components/atoms/TypeTags/TypeTags.tsx +15 -0
- package/src/components/atoms/TypeTags/index.tsx +3 -0
- package/src/components/atoms/index.tsx +22 -0
- package/src/components/index.tsx +38 -0
- package/src/components/molecules/ContactNewsletter/ContactNewsletter.style.tsx +116 -0
- package/src/components/molecules/ContactNewsletter/ContactNewsletter.test.tsx +85 -0
- package/src/components/molecules/ContactNewsletter/ContactNewsletter.tsx +51 -0
- package/src/components/molecules/ContactNewsletter/index.tsx +3 -0
- package/src/components/molecules/Editorial/Editorial.stories.tsx +78 -0
- package/src/components/molecules/Editorial/Editorial.style.tsx +73 -0
- package/src/components/molecules/Editorial/Editorial.test.tsx +73 -0
- package/src/components/molecules/Editorial/Editorial.tsx +32 -0
- package/src/components/molecules/Editorial/index.tsx +3 -0
- package/src/components/molecules/NavTop/NavTop.stories.tsx +95 -0
- package/src/components/molecules/NavTop/NavTop.style.tsx +14 -0
- package/src/components/molecules/NavTop/NavTop.test.tsx +113 -0
- package/src/components/molecules/NavTop/NavTop.tsx +27 -0
- package/src/components/molecules/NavTop/index.tsx +3 -0
- package/src/components/molecules/PeopleListing/PeopleListing.stories.tsx +185 -0
- package/src/components/molecules/PeopleListing/PeopleListing.style.tsx +8 -0
- package/src/components/molecules/PeopleListing/PeopleListing.test.tsx +24 -0
- package/src/components/molecules/PeopleListing/PeopleListing.tsx +27 -0
- package/src/components/molecules/PeopleListing/index.tsx +3 -0
- package/src/components/molecules/PolicyLinks/PolicyLinks.style.tsx +41 -0
- package/src/components/molecules/PolicyLinks/PolicyLinks.test.tsx +28 -0
- package/src/components/molecules/PolicyLinks/PolicyLinks.tsx +19 -0
- package/src/components/molecules/PolicyLinks/index.tsx +3 -0
- package/src/components/molecules/PromoWithTitle/PromoWithTitle.stories.tsx +119 -0
- package/src/components/molecules/PromoWithTitle/PromoWithTitle.style.tsx +108 -0
- package/src/components/molecules/PromoWithTitle/PromoWithTitle.test.tsx +75 -0
- package/src/components/molecules/PromoWithTitle/PromoWithTitle.tsx +53 -0
- package/src/components/molecules/PromoWithTitle/index.tsx +3 -0
- package/src/components/molecules/SearchBar/SearchBar.stories.tsx +35 -0
- package/src/components/molecules/SearchBar/SearchBar.style.tsx +66 -0
- package/src/components/molecules/SearchBar/SearchBar.test.tsx +63 -0
- package/src/components/molecules/SearchBar/SearchBar.tsx +69 -0
- package/src/components/molecules/SearchBar/index.tsx +3 -0
- package/src/components/molecules/SectionTitle/SectionTitle.stories.tsx +68 -0
- package/src/components/molecules/SectionTitle/SectionTitle.style.tsx +34 -0
- package/src/components/molecules/SectionTitle/SectionTitle.test.tsx +35 -0
- package/src/components/molecules/SectionTitle/SectionTitle.tsx +25 -0
- package/src/components/molecules/SectionTitle/index.tsx +3 -0
- package/src/components/molecules/Tabs/Tabs.stories.tsx +101 -0
- package/src/components/molecules/Tabs/Tabs.style.tsx +74 -0
- package/src/components/molecules/Tabs/Tabs.test.tsx +149 -0
- package/src/components/molecules/Tabs/Tabs.tsx +67 -0
- package/src/components/molecules/Tabs/index.tsx +3 -0
- package/src/components/molecules/TextOnly/TextOnly.stories.tsx +74 -0
- package/src/components/molecules/TextOnly/TextOnly.style.tsx +56 -0
- package/src/components/molecules/TextOnly/TextOnly.test.tsx +79 -0
- package/src/components/molecules/TextOnly/TextOnly.tsx +16 -0
- package/src/components/molecules/TextOnly/index.tsx +3 -0
- package/src/components/molecules/index.tsx +7 -0
- package/src/components/organisms/Footer/Footer.stories.tsx +54 -0
- package/src/components/organisms/Footer/Footer.style.tsx +72 -0
- package/src/components/organisms/Footer/Footer.test.tsx +31 -0
- package/src/components/organisms/Footer/Footer.tsx +53 -0
- package/src/components/organisms/Footer/exampleData.json +78 -0
- package/src/components/organisms/Footer/index.tsx +3 -0
- package/src/components/organisms/Navigation/Navigation.stories.tsx +110 -0
- package/src/components/organisms/Navigation/Navigation.style.tsx +87 -0
- package/src/components/organisms/Navigation/Navigation.test.tsx +115 -0
- package/src/components/organisms/Navigation/Navigation.tsx +109 -0
- package/src/components/organisms/Navigation/index.tsx +3 -0
- package/src/components/organisms/Navigation/menuData.json +104 -0
- package/src/components/organisms/index.tsx +4 -0
- package/src/index.tsx +44 -0
- package/src/jest.setup.ts +1 -0
- package/src/styles/GlobalStyles.tsx +205 -0
- package/src/styles/StorybookSupport/Colours/Colours.stories.mdx +101 -0
- package/src/styles/StorybookSupport/Colours/StorybookColourBox.tsx +32 -0
- package/src/styles/ThemeProvider.tsx +11 -0
- package/src/styles/themes.ts +398 -0
- package/src/styles/viewports.ts +14 -0
- package/src/types/buttonTypes.ts +42 -0
- package/src/types/editorial.ts +84 -0
- package/src/types/footer.ts +49 -0
- package/src/types/iconTypes.ts +38 -0
- package/src/types/image.ts +13 -0
- package/src/types/images.d.ts +1 -0
- package/src/types/index.tsx +5 -0
- package/src/types/navigation.ts +149 -0
- package/src/types/types.ts +276 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
const colors = {
|
|
2
|
+
core: '#C8102E',
|
|
3
|
+
stream: '#1866DC',
|
|
4
|
+
cinema: '#1A1A1A',
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const commonColors = {
|
|
8
|
+
black: '#1A1A1A',
|
|
9
|
+
white: '#FFFFFF',
|
|
10
|
+
darkgrey: '#727272',
|
|
11
|
+
midgrey: '#B2B2B2',
|
|
12
|
+
lightgrey: '#F0F0F0',
|
|
13
|
+
error: '#C8102E',
|
|
14
|
+
medium: '#D79233',
|
|
15
|
+
good: '#4EAA33',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const fontFamilies = {
|
|
19
|
+
adobeGaramondPro: 'adobe-garamond-pro',
|
|
20
|
+
adobeGaramondProItalics: 'adobe-garamond-pro-italics',
|
|
21
|
+
gothamSSmMedium: 'Gotham SSm Medium',
|
|
22
|
+
gothamSSm: 'Gotham SSm',
|
|
23
|
+
sabonNextLTProRegular: 'Sabon Next LT Pro Regular',
|
|
24
|
+
sabonNextLTProRegularItalics: 'Sabon Next LT Pro Regular Italics',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const common = {
|
|
28
|
+
fonts: {
|
|
29
|
+
desktop: {
|
|
30
|
+
sizes: {
|
|
31
|
+
headers: {
|
|
32
|
+
1: '96px',
|
|
33
|
+
2: '68px',
|
|
34
|
+
3: '44px',
|
|
35
|
+
4: '34px',
|
|
36
|
+
5: '24px',
|
|
37
|
+
6: '20px',
|
|
38
|
+
},
|
|
39
|
+
altHeaders: {
|
|
40
|
+
3: '44px',
|
|
41
|
+
4: '34px',
|
|
42
|
+
5: '24px',
|
|
43
|
+
6: '20px',
|
|
44
|
+
},
|
|
45
|
+
subtitles: {
|
|
46
|
+
1: '18px',
|
|
47
|
+
2: '12px',
|
|
48
|
+
},
|
|
49
|
+
titleDescription: '20px',
|
|
50
|
+
body: {
|
|
51
|
+
1: '17px',
|
|
52
|
+
2: '14px',
|
|
53
|
+
3: '12px',
|
|
54
|
+
},
|
|
55
|
+
listing: '17px',
|
|
56
|
+
buttons: '14px',
|
|
57
|
+
overline: {
|
|
58
|
+
1: '12px',
|
|
59
|
+
2: '10px',
|
|
60
|
+
},
|
|
61
|
+
navigation: '13px',
|
|
62
|
+
search: '24px',
|
|
63
|
+
},
|
|
64
|
+
letterSpacing: {
|
|
65
|
+
headers: {
|
|
66
|
+
1: '2px',
|
|
67
|
+
2: '1px',
|
|
68
|
+
3: '1px',
|
|
69
|
+
4: '1px',
|
|
70
|
+
5: '1px',
|
|
71
|
+
6: '1px',
|
|
72
|
+
},
|
|
73
|
+
overline: {
|
|
74
|
+
1: '1px',
|
|
75
|
+
2: '1px',
|
|
76
|
+
},
|
|
77
|
+
subtitles: {
|
|
78
|
+
1: '1px',
|
|
79
|
+
},
|
|
80
|
+
body: {
|
|
81
|
+
1: 'normal',
|
|
82
|
+
2: 'normal',
|
|
83
|
+
3: 'normal',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
lineHeights: {
|
|
87
|
+
headers: {
|
|
88
|
+
1: '110px',
|
|
89
|
+
2: '72px',
|
|
90
|
+
3: '48px',
|
|
91
|
+
4: '40px',
|
|
92
|
+
5: '30px',
|
|
93
|
+
6: '28px',
|
|
94
|
+
},
|
|
95
|
+
altHeaders: {
|
|
96
|
+
3: '48px',
|
|
97
|
+
4: '44px',
|
|
98
|
+
5: '30px',
|
|
99
|
+
6: '28px',
|
|
100
|
+
},
|
|
101
|
+
subtitles: {
|
|
102
|
+
1: '22px',
|
|
103
|
+
2: '22px',
|
|
104
|
+
},
|
|
105
|
+
titleDescription: '28px',
|
|
106
|
+
body: {
|
|
107
|
+
1: '24px',
|
|
108
|
+
2: '22px',
|
|
109
|
+
3: '18px',
|
|
110
|
+
},
|
|
111
|
+
peopleListing: '24px',
|
|
112
|
+
listing: '34px',
|
|
113
|
+
buttons: '20px',
|
|
114
|
+
overline: {
|
|
115
|
+
1: '14px',
|
|
116
|
+
2: '12px',
|
|
117
|
+
},
|
|
118
|
+
navigation: '16px',
|
|
119
|
+
},
|
|
120
|
+
families: {
|
|
121
|
+
headers: fontFamilies.gothamSSmMedium,
|
|
122
|
+
altHeaders: fontFamilies.adobeGaramondPro,
|
|
123
|
+
subtitles: fontFamilies.gothamSSmMedium,
|
|
124
|
+
body: fontFamilies.adobeGaramondPro,
|
|
125
|
+
bodyItalics: fontFamilies.adobeGaramondProItalics,
|
|
126
|
+
listing: fontFamilies.adobeGaramondPro,
|
|
127
|
+
listingItalics: fontFamilies.adobeGaramondProItalics,
|
|
128
|
+
buttons: fontFamilies.gothamSSm,
|
|
129
|
+
overline: fontFamilies.gothamSSmMedium,
|
|
130
|
+
navigation: fontFamilies.gothamSSmMedium,
|
|
131
|
+
peopleListingRole: fontFamilies.gothamSSm,
|
|
132
|
+
},
|
|
133
|
+
weights: {
|
|
134
|
+
headers: {
|
|
135
|
+
1: '400',
|
|
136
|
+
2: '400',
|
|
137
|
+
3: '400',
|
|
138
|
+
4: '400',
|
|
139
|
+
5: '400',
|
|
140
|
+
6: '400',
|
|
141
|
+
},
|
|
142
|
+
buttons: '400',
|
|
143
|
+
overline: {
|
|
144
|
+
1: '400',
|
|
145
|
+
},
|
|
146
|
+
body: {
|
|
147
|
+
1: '400',
|
|
148
|
+
2: '400',
|
|
149
|
+
3: '400',
|
|
150
|
+
},
|
|
151
|
+
subtitles: {
|
|
152
|
+
1: '400',
|
|
153
|
+
2: '400',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
transforms: {
|
|
157
|
+
headers: 'uppercase',
|
|
158
|
+
overline: 'uppercase',
|
|
159
|
+
subtitles: 'uppercase',
|
|
160
|
+
body: 'none',
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
mobile: {
|
|
164
|
+
sizes: {
|
|
165
|
+
headers: {
|
|
166
|
+
1: '38px',
|
|
167
|
+
2: '32px',
|
|
168
|
+
3: '26px',
|
|
169
|
+
4: '24px',
|
|
170
|
+
5: '20px',
|
|
171
|
+
6: '17px',
|
|
172
|
+
},
|
|
173
|
+
altHeaders: {
|
|
174
|
+
3: '26px',
|
|
175
|
+
4: '24px',
|
|
176
|
+
5: '20px',
|
|
177
|
+
6: '17px',
|
|
178
|
+
},
|
|
179
|
+
subtitles: {
|
|
180
|
+
1: '15px',
|
|
181
|
+
2: '12px',
|
|
182
|
+
},
|
|
183
|
+
titleDescription: '17px',
|
|
184
|
+
body: {
|
|
185
|
+
1: '16px',
|
|
186
|
+
2: '12px',
|
|
187
|
+
3: '11px',
|
|
188
|
+
},
|
|
189
|
+
listing: '16px',
|
|
190
|
+
buttons: '14px',
|
|
191
|
+
overline: {
|
|
192
|
+
1: '12px',
|
|
193
|
+
2: '10px',
|
|
194
|
+
},
|
|
195
|
+
navigation: '13px',
|
|
196
|
+
},
|
|
197
|
+
letterSpacing: {
|
|
198
|
+
headers: {
|
|
199
|
+
1: '1px',
|
|
200
|
+
2: '1px',
|
|
201
|
+
3: '1px',
|
|
202
|
+
4: '1px',
|
|
203
|
+
5: '1px',
|
|
204
|
+
6: '1px',
|
|
205
|
+
},
|
|
206
|
+
overline: {
|
|
207
|
+
1: '1px',
|
|
208
|
+
2: '1px',
|
|
209
|
+
},
|
|
210
|
+
subtitles: {
|
|
211
|
+
1: '1px',
|
|
212
|
+
},
|
|
213
|
+
body: {
|
|
214
|
+
1: 'normal',
|
|
215
|
+
2: 'normal',
|
|
216
|
+
3: 'normal',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
lineHeights: {
|
|
220
|
+
headers: {
|
|
221
|
+
1: '42px',
|
|
222
|
+
2: '36px',
|
|
223
|
+
3: '30px',
|
|
224
|
+
4: '28px',
|
|
225
|
+
5: '28px',
|
|
226
|
+
6: '24px',
|
|
227
|
+
},
|
|
228
|
+
altHeaders: {
|
|
229
|
+
3: '30px',
|
|
230
|
+
4: '28px',
|
|
231
|
+
5: '28px',
|
|
232
|
+
6: '24px',
|
|
233
|
+
},
|
|
234
|
+
subtitles: {
|
|
235
|
+
1: '22px',
|
|
236
|
+
2: '16px',
|
|
237
|
+
},
|
|
238
|
+
titleDescription: '24px',
|
|
239
|
+
body: {
|
|
240
|
+
1: '22px',
|
|
241
|
+
2: '18px',
|
|
242
|
+
3: '16px',
|
|
243
|
+
},
|
|
244
|
+
listing: '34px',
|
|
245
|
+
buttons: '20px',
|
|
246
|
+
overline: {
|
|
247
|
+
1: '14px',
|
|
248
|
+
2: '12px',
|
|
249
|
+
},
|
|
250
|
+
navigation: '16px',
|
|
251
|
+
},
|
|
252
|
+
families: {
|
|
253
|
+
headers: fontFamilies.gothamSSm,
|
|
254
|
+
altHeaders: fontFamilies.adobeGaramondPro,
|
|
255
|
+
subtitles: fontFamilies.gothamSSmMedium,
|
|
256
|
+
body: fontFamilies.adobeGaramondPro,
|
|
257
|
+
bodyItalics: fontFamilies.adobeGaramondProItalics,
|
|
258
|
+
listing: fontFamilies.adobeGaramondPro,
|
|
259
|
+
listingItalics: fontFamilies.adobeGaramondProItalics,
|
|
260
|
+
buttons: fontFamilies.gothamSSm,
|
|
261
|
+
overline: fontFamilies.gothamSSmMedium,
|
|
262
|
+
navigation: fontFamilies.gothamSSmMedium,
|
|
263
|
+
},
|
|
264
|
+
weights: {
|
|
265
|
+
headers: {
|
|
266
|
+
1: '400',
|
|
267
|
+
2: '400',
|
|
268
|
+
3: '400',
|
|
269
|
+
4: '400',
|
|
270
|
+
5: '400',
|
|
271
|
+
6: '400',
|
|
272
|
+
},
|
|
273
|
+
buttons: '400',
|
|
274
|
+
overline: {
|
|
275
|
+
1: '400',
|
|
276
|
+
},
|
|
277
|
+
body: {
|
|
278
|
+
1: '400',
|
|
279
|
+
2: '400',
|
|
280
|
+
3: '400',
|
|
281
|
+
},
|
|
282
|
+
subtitles: {
|
|
283
|
+
1: '400',
|
|
284
|
+
2: '400',
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
transforms: {
|
|
288
|
+
headers: 'uppercase',
|
|
289
|
+
overline: 'uppercase',
|
|
290
|
+
subtitles: 'uppercase',
|
|
291
|
+
body: 'none',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
spacing: {
|
|
296
|
+
1: '4px',
|
|
297
|
+
2: '8px',
|
|
298
|
+
3: '12px',
|
|
299
|
+
4: '16px',
|
|
300
|
+
5: '20px',
|
|
301
|
+
6: '24px',
|
|
302
|
+
7: '28px',
|
|
303
|
+
8: '32px',
|
|
304
|
+
9: '36px',
|
|
305
|
+
10: '40px',
|
|
306
|
+
12: '48px',
|
|
307
|
+
15: '60px',
|
|
308
|
+
18: '72px',
|
|
309
|
+
20: '80px',
|
|
310
|
+
30: '120px',
|
|
311
|
+
35: '140px',
|
|
312
|
+
40: '160px',
|
|
313
|
+
45: '180px',
|
|
314
|
+
50: '200px',
|
|
315
|
+
},
|
|
316
|
+
grid: {
|
|
317
|
+
mobile: {
|
|
318
|
+
margin: '20px',
|
|
319
|
+
outerMargin: '0',
|
|
320
|
+
gap: '12px',
|
|
321
|
+
},
|
|
322
|
+
tablet: {
|
|
323
|
+
margin: '50px',
|
|
324
|
+
outerMargin: '0',
|
|
325
|
+
gap: '20px',
|
|
326
|
+
},
|
|
327
|
+
desktop: {
|
|
328
|
+
margin: '10%',
|
|
329
|
+
outerMargin: '50px',
|
|
330
|
+
gap: '36px',
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
buttons: {
|
|
334
|
+
paddingX: '20px',
|
|
335
|
+
paddingY: '14px',
|
|
336
|
+
paddingYIcon: '12px',
|
|
337
|
+
iconWidth: '20px',
|
|
338
|
+
iconHeight: '20px',
|
|
339
|
+
iconMargin: '12px',
|
|
340
|
+
},
|
|
341
|
+
footer: {
|
|
342
|
+
desktop: {
|
|
343
|
+
height: '380px',
|
|
344
|
+
paddingTop: '44px',
|
|
345
|
+
paddingBottom: '0',
|
|
346
|
+
itemsGap: '32px',
|
|
347
|
+
mediaGap: '32px',
|
|
348
|
+
mediaIconWidth: '24px',
|
|
349
|
+
mediaIconHeight: '24px',
|
|
350
|
+
verticalSpacingLarge: '58px',
|
|
351
|
+
verticalSpacingSmall: '16px',
|
|
352
|
+
},
|
|
353
|
+
mobile: {
|
|
354
|
+
height: 'auto',
|
|
355
|
+
paddingTop: '20px',
|
|
356
|
+
paddingBottom: '20px',
|
|
357
|
+
itemsGap: '12px',
|
|
358
|
+
mediaGap: '28px',
|
|
359
|
+
mediaIconWidth: '28px',
|
|
360
|
+
mediaIconHeight: '28px',
|
|
361
|
+
verticalSpacingLarge: '24px',
|
|
362
|
+
verticalSpacingSmall: '24px',
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
export const core = {
|
|
368
|
+
...common,
|
|
369
|
+
colors: {
|
|
370
|
+
...commonColors,
|
|
371
|
+
primary: colors.core,
|
|
372
|
+
primaryButton: colors.core,
|
|
373
|
+
secondaryButton: commonColors.white,
|
|
374
|
+
tertiaryButton: 'transparent',
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
export const stream = {
|
|
378
|
+
...common,
|
|
379
|
+
colors: {
|
|
380
|
+
...commonColors,
|
|
381
|
+
primary: colors.stream,
|
|
382
|
+
primaryButton: colors.stream,
|
|
383
|
+
secondaryButton: commonColors.white,
|
|
384
|
+
tertiaryButton: 'transparent',
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
export const cinema = {
|
|
388
|
+
...common,
|
|
389
|
+
colors: {
|
|
390
|
+
...commonColors,
|
|
391
|
+
primary: colors.cinema,
|
|
392
|
+
primaryButton: commonColors.white,
|
|
393
|
+
secondaryButton: commonColors.white,
|
|
394
|
+
tertiaryButton: 'transparent',
|
|
395
|
+
},
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
export const themes = { core, stream, cinema };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const breakpoints = {
|
|
2
|
+
xs: 320,
|
|
3
|
+
sm: 700,
|
|
4
|
+
md: 1140,
|
|
5
|
+
lg: 1400,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const devices = {
|
|
9
|
+
mobile: `only screen and (max-width: ${breakpoints.sm - 1}px)`,
|
|
10
|
+
tablet: `only screen and (max-width: ${breakpoints.md - 1}px) and (min-width: ${breakpoints.sm}px)`,
|
|
11
|
+
mobileAndTablet: `only screen and (max-width: ${breakpoints.md - 1}px)`,
|
|
12
|
+
desktop: `only screen and (max-width: ${breakpoints.lg - 1}px) and (min-width: ${breakpoints.md}px)`,
|
|
13
|
+
largeDesktop: `only screen and (min-width: ${breakpoints.lg}px)`,
|
|
14
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode, AnchorHTMLAttributes, MouseEventHandler } from 'react';
|
|
2
|
+
import { IconNameType, DirectionType } from './iconTypes';
|
|
3
|
+
import { Colors } from './types';
|
|
4
|
+
|
|
5
|
+
export interface IButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Function to be called when a button is clicked
|
|
9
|
+
*/
|
|
10
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the icon to be used in the button
|
|
13
|
+
*/
|
|
14
|
+
iconName?: IconNameType;
|
|
15
|
+
/**
|
|
16
|
+
* Direction of the icon used in the button
|
|
17
|
+
*/
|
|
18
|
+
iconDirection?: DirectionType;
|
|
19
|
+
/**
|
|
20
|
+
* Color of text and icon
|
|
21
|
+
*/
|
|
22
|
+
color?: Colors;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IPrimaryButtonProps extends IButtonProps {
|
|
26
|
+
/**
|
|
27
|
+
* Button background color
|
|
28
|
+
*/
|
|
29
|
+
bgColor?: Colors;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ITertiaryButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
33
|
+
/**
|
|
34
|
+
* Color of text and icon
|
|
35
|
+
*/
|
|
36
|
+
color?: Colors;
|
|
37
|
+
/**
|
|
38
|
+
* Function to be called when a button is clicked
|
|
39
|
+
*/
|
|
40
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, MouseEventHandler, ReactElement } from 'react';
|
|
2
|
+
import { DirectionType, IconNameType } from './iconTypes';
|
|
3
|
+
import { Colors } from './types';
|
|
4
|
+
export interface IEditorialProps {
|
|
5
|
+
/**
|
|
6
|
+
* Text placed in the editorial component
|
|
7
|
+
*/
|
|
8
|
+
text: string;
|
|
9
|
+
/**
|
|
10
|
+
* Subtitle placed in the editorial component
|
|
11
|
+
*/
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Position of the image in the editorial component
|
|
15
|
+
*/
|
|
16
|
+
imagePosition?: 'left' | 'right';
|
|
17
|
+
/**
|
|
18
|
+
* Image tag or component to be displayed in the editorial component with aspect ratio 1:1
|
|
19
|
+
*/
|
|
20
|
+
children: ReactElement<HTMLImageElement>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IEditorialGridProps {
|
|
24
|
+
/**
|
|
25
|
+
* Sets if the image will be placed in the right (false) or the left (true)
|
|
26
|
+
*/
|
|
27
|
+
imageToLeft: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type PromoWithTitleLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
31
|
+
/**
|
|
32
|
+
* Text inside the link
|
|
33
|
+
*/
|
|
34
|
+
text: string;
|
|
35
|
+
/**
|
|
36
|
+
* Function to be called when a button is clicked
|
|
37
|
+
*/
|
|
38
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
39
|
+
/**
|
|
40
|
+
* Name of the icon to be used in the button
|
|
41
|
+
*/
|
|
42
|
+
iconName?: IconNameType;
|
|
43
|
+
/**
|
|
44
|
+
* Direction of the icon used in the button
|
|
45
|
+
*/
|
|
46
|
+
iconDirection?: DirectionType;
|
|
47
|
+
/**
|
|
48
|
+
* Color of text and icon
|
|
49
|
+
*/
|
|
50
|
+
color?: Colors;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type PromoLinks = [PromoWithTitleLink, PromoWithTitleLink?];
|
|
54
|
+
|
|
55
|
+
export interface IPromoWithTitleProps {
|
|
56
|
+
/**
|
|
57
|
+
* Text placed in the editorial component
|
|
58
|
+
*/
|
|
59
|
+
text?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Text placed in the editorial component
|
|
62
|
+
*/
|
|
63
|
+
title: string;
|
|
64
|
+
/**
|
|
65
|
+
* Text placed in the editorial component
|
|
66
|
+
*/
|
|
67
|
+
titleSize?: 'small' | 'large';
|
|
68
|
+
/**
|
|
69
|
+
* Subtitle placed in the editorial component
|
|
70
|
+
*/
|
|
71
|
+
subtitle?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Position of the image in the editorial component
|
|
74
|
+
*/
|
|
75
|
+
imagePosition?: 'left' | 'right';
|
|
76
|
+
/**
|
|
77
|
+
* Image tag or component to be displayed in the editorial component with aspect ratio 4:3
|
|
78
|
+
*/
|
|
79
|
+
children: ReactElement<HTMLImageElement>;
|
|
80
|
+
/**
|
|
81
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
82
|
+
*/
|
|
83
|
+
links?: PromoLinks;
|
|
84
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IconNameType } from './iconTypes';
|
|
2
|
+
|
|
3
|
+
export type CommonLink = {
|
|
4
|
+
href: string;
|
|
5
|
+
title: string;
|
|
6
|
+
dataRoh: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type PolicyLink = CommonLink & {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type SocialMediaLink = {
|
|
14
|
+
dataRoh: string;
|
|
15
|
+
name: IconNameType;
|
|
16
|
+
href: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type ExternalLink = CommonLink & {
|
|
20
|
+
target?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type Newsletter = {
|
|
24
|
+
text: string;
|
|
25
|
+
link: CommonLink;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type FooterData = {
|
|
29
|
+
policyLinks: PolicyLink[];
|
|
30
|
+
socialMediaLinks: SocialMediaLink[];
|
|
31
|
+
newsletter: Newsletter;
|
|
32
|
+
contact: CommonLink;
|
|
33
|
+
artsLogo: ExternalLink;
|
|
34
|
+
additionalInfo: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export interface IFooterProps {
|
|
38
|
+
data: FooterData;
|
|
39
|
+
}
|
|
40
|
+
export interface IPolicyLinksProps {
|
|
41
|
+
items: PolicyLink[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IContactNewsletterProps {
|
|
45
|
+
signUpText: string;
|
|
46
|
+
signUpLink: CommonLink;
|
|
47
|
+
socialMediaLinks: SocialMediaLink[];
|
|
48
|
+
contact: CommonLink;
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Directions } from '../components/atoms/Icons/Icons.style';
|
|
2
|
+
import { IconLibrary } from '../components/atoms/Icons/SvgIcons';
|
|
3
|
+
|
|
4
|
+
export type DirectionType = keyof typeof Directions;
|
|
5
|
+
|
|
6
|
+
export type IconNameType = keyof typeof IconLibrary;
|
|
7
|
+
|
|
8
|
+
export interface IIconStyledProps {
|
|
9
|
+
color?: string;
|
|
10
|
+
direction?: DirectionType;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IconSVGProps {
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface IIconProps {
|
|
18
|
+
/**
|
|
19
|
+
* Extra CSS className to add to the element.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Colour override - for components it is better to use themes instead.
|
|
24
|
+
*/
|
|
25
|
+
color?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Used for accessibility.
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Direction to use, 'right' by default.
|
|
32
|
+
*/
|
|
33
|
+
direction?: DirectionType;
|
|
34
|
+
/**
|
|
35
|
+
* Icon to display.
|
|
36
|
+
*/
|
|
37
|
+
iconName: IconNameType;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.jpeg';
|