@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,205 @@
|
|
|
1
|
+
import { createGlobalStyle, GlobalStyleComponent } from 'styled-components';
|
|
2
|
+
import { devices } from './viewports';
|
|
3
|
+
|
|
4
|
+
const GlobalStyles: GlobalStyleComponent<any, any> = createGlobalStyle`
|
|
5
|
+
html {
|
|
6
|
+
--base-color-primary: ${({ theme }) => theme.colors.primary};
|
|
7
|
+
--base-color-white: ${({ theme }) => theme.colors.white};
|
|
8
|
+
--base-color-black: ${({ theme }) => theme.colors.black};
|
|
9
|
+
--base-color-dark-grey: ${({ theme }) => theme.colors.darkgrey};
|
|
10
|
+
--base-color-mid-grey: ${({ theme }) => theme.colors.midgrey};
|
|
11
|
+
--base-color-light-grey: ${({ theme }) => theme.colors.lightgrey};
|
|
12
|
+
--error-color-state: ${({ theme }) => theme.colors.error};
|
|
13
|
+
--medium-color-state: ${({ theme }) => theme.colors.medium};
|
|
14
|
+
--good-color-state: ${({ theme }) => theme.colors.good};
|
|
15
|
+
--base-color-darkgrey: ${({ theme }) => theme.colors.darkgrey};
|
|
16
|
+
--base-color-midgrey: ${({ theme }) => theme.colors.midgrey};
|
|
17
|
+
--base-color-lightgrey: ${({ theme }) => theme.colors.lightgrey};
|
|
18
|
+
--base-color-transparent: transparent;
|
|
19
|
+
--base-color-errorstate: ${({ theme }) => theme.colors.error};
|
|
20
|
+
--base-color-mediumstate: ${({ theme }) => theme.colors.medium};
|
|
21
|
+
--base-color-goodstate: ${({ theme }) => theme.colors.good};
|
|
22
|
+
|
|
23
|
+
--button-height: ${({ theme }) => theme.spacing[12]};
|
|
24
|
+
--button-line-height: ${({ theme }) => theme.fonts.desktop.lineHeights.buttons};
|
|
25
|
+
--button-padding-x: ${({ theme }) => theme.buttons.paddingX};
|
|
26
|
+
--button-padding-y: ${({ theme }) => theme.buttons.paddingY};
|
|
27
|
+
--button-padding-y-icon: ${({ theme }) => theme.buttons.paddingYIcon};
|
|
28
|
+
--button-icon-margin: ${({ theme }) => theme.buttons.iconMargin};
|
|
29
|
+
--button-icon-width: ${({ theme }) => theme.buttons.iconWidth};
|
|
30
|
+
--button-icon-height: ${({ theme }) => theme.buttons.iconHeight};
|
|
31
|
+
--button-font-size: ${({ theme }) => theme.fonts.desktop.sizes.buttons};
|
|
32
|
+
--button-font-weight: ${({ theme }) => theme.fonts.desktop.weights.buttons};
|
|
33
|
+
|
|
34
|
+
--font-size-header-1: ${({ theme }) => theme.fonts.desktop.sizes.headers[1]};
|
|
35
|
+
--letter-spacing-header-1: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[1]};
|
|
36
|
+
--line-height-header-1: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[1]};
|
|
37
|
+
--font-weight-header-1: ${({ theme }) => theme.fonts.desktop.weights.headers[1]};
|
|
38
|
+
--font-size-header-2: ${({ theme }) => theme.fonts.desktop.sizes.headers[2]};
|
|
39
|
+
--letter-spacing-header-2: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[2]};
|
|
40
|
+
--line-height-header-2: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[2]};
|
|
41
|
+
--font-weight-header-2: ${({ theme }) => theme.fonts.desktop.weights.headers[2]};
|
|
42
|
+
--font-size-header-3: ${({ theme }) => theme.fonts.desktop.sizes.headers[3]};
|
|
43
|
+
--letter-spacing-header-3: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[3]};
|
|
44
|
+
--line-height-header-3: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[3]};
|
|
45
|
+
--font-weight-header-3: ${({ theme }) => theme.fonts.desktop.weights.headers[3]};
|
|
46
|
+
--font-size-header-4: ${({ theme }) => theme.fonts.desktop.sizes.headers[4]};
|
|
47
|
+
--letter-spacing-header-4: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[4]};
|
|
48
|
+
--line-height-header-4: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[4]};
|
|
49
|
+
--font-weight-header-4: ${({ theme }) => theme.fonts.desktop.weights.headers[4]};
|
|
50
|
+
--font-size-header-5: ${({ theme }) => theme.fonts.desktop.sizes.headers[5]};
|
|
51
|
+
--letter-spacing-header-5: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[5]};
|
|
52
|
+
--line-height-header-5: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[5]};
|
|
53
|
+
--font-weight-header-5: ${({ theme }) => theme.fonts.desktop.weights.headers[5]};
|
|
54
|
+
--font-size-header-6: ${({ theme }) => theme.fonts.desktop.sizes.headers[6]};
|
|
55
|
+
--letter-spacing-header-6: ${({ theme }) => theme.fonts.desktop.letterSpacing.headers[6]};
|
|
56
|
+
--line-height-header-6: ${({ theme }) => theme.fonts.desktop.lineHeights.headers[6]};
|
|
57
|
+
--font-weight-header-6: ${({ theme }) => theme.fonts.desktop.weights.headers[6]};
|
|
58
|
+
|
|
59
|
+
--font-size-overline-1: ${({ theme }) => theme.fonts.desktop.sizes.overline[1]};
|
|
60
|
+
--font-weigth-overline-1: ${({ theme }) => theme.fonts.desktop.weights.overline[1]};
|
|
61
|
+
--line-height-overline-1: ${({ theme }) => theme.fonts.desktop.lineHeights.overline[1]};
|
|
62
|
+
--text-transform-overline-1: ${({ theme }) => theme.fonts.desktop.transforms.overline};
|
|
63
|
+
--letter-spacing-overline-1: ${({ theme }) => theme.fonts.desktop.letterSpacing.overline[1]};
|
|
64
|
+
--font-family-body-1: ${({ theme }) => theme.fonts.desktop.families.body};
|
|
65
|
+
--font-size-title-description: ${({ theme }) => theme.fonts.desktop.sizes.titleDescription};
|
|
66
|
+
--line-height-title-description: ${({ theme }) => theme.fonts.desktop.lineHeights.titleDescription};
|
|
67
|
+
--font-size-body-1: ${({ theme }) => theme.fonts.desktop.sizes.body[1]};
|
|
68
|
+
--font-weigth-body-1: ${({ theme }) => theme.fonts.desktop.weights.body[1]};
|
|
69
|
+
--line-height-body-1: ${({ theme }) => theme.fonts.desktop.lineHeights.body[1]};
|
|
70
|
+
--text-transform-body-1: ${({ theme }) => theme.fonts.desktop.transforms.body};
|
|
71
|
+
--letter-spacing-body-1: ${({ theme }) => theme.fonts.desktop.letterSpacing.body[1]};
|
|
72
|
+
--font-size-body-2: ${({ theme }) => theme.fonts.desktop.sizes.body[2]};
|
|
73
|
+
--line-height-body-2: ${({ theme }) => theme.fonts.desktop.lineHeights.body[2]};
|
|
74
|
+
--font-size-body-3: ${({ theme }) => theme.fonts.desktop.sizes.body[3]};
|
|
75
|
+
--line-height-body-3: ${({ theme }) => theme.fonts.desktop.lineHeights.body[3]};
|
|
76
|
+
--font-size-subtitles-1: ${({ theme }) => theme.fonts.desktop.sizes.subtitles[1]};
|
|
77
|
+
--font-weigth-subtitles-1: ${({ theme }) => theme.fonts.desktop.weights.subtitles[1]};
|
|
78
|
+
--line-height-subtitles-1: ${({ theme }) => theme.fonts.desktop.lineHeights.subtitles[1]};
|
|
79
|
+
--text-transform-subtitles-1: ${({ theme }) => theme.fonts.desktop.transforms.subtitles};
|
|
80
|
+
--letter-spacing-subtitles-1: ${({ theme }) => theme.fonts.desktop.letterSpacing.subtitles[1]};
|
|
81
|
+
--line-height-listing: ${({ theme }) => theme.fonts.desktop.lineHeights.listing};
|
|
82
|
+
|
|
83
|
+
--font-size-individual-listing-name: ${({ theme }) => theme.fonts.desktop.sizes.listing};
|
|
84
|
+
--line-height-individual-listing-name: ${({ theme }) => theme.fonts.desktop.lineHeights.peopleListing};
|
|
85
|
+
--line-height-people-listing-gap: ${({ theme }) => theme.spacing[6]};
|
|
86
|
+
|
|
87
|
+
--font-family-header: ${({ theme }) => theme.fonts.desktop.families.headers};
|
|
88
|
+
--font-family-body: ${({ theme }) => theme.fonts.desktop.families.body};
|
|
89
|
+
--font-family-body-italics: ${({ theme }) => theme.fonts.desktop.families.bodyItalics};
|
|
90
|
+
--font-family-buttons: ${({ theme }) => theme.fonts.desktop.families.buttons};
|
|
91
|
+
--font-family-overline: ${({ theme }) => theme.fonts.desktop.families.overline};
|
|
92
|
+
--font-family-subtitles: ${({ theme }) => theme.fonts.desktop.families.subtitles};
|
|
93
|
+
--font-family-people-listing-role: ${({ theme }) => theme.fonts.desktop.families.peopleListingRole};
|
|
94
|
+
--font-family-people-listing-name: ${({ theme }) => theme.fonts.desktop.families.body};
|
|
95
|
+
|
|
96
|
+
--font-family-navigation: ${({ theme }) => theme.fonts.desktop.families.navigation};
|
|
97
|
+
--font-size-navigation: ${({ theme }) => theme.fonts.desktop.sizes.navigation};
|
|
98
|
+
--navigation-small-gap: ${({ theme }) => theme.spacing[4]};
|
|
99
|
+
--navigation-middle-gap: ${({ theme }) => theme.spacing[5]};
|
|
100
|
+
--navigation-large-gap: ${({ theme }) => theme.spacing[6]};
|
|
101
|
+
--navigation-xlarge-gap: ${({ theme }) => theme.spacing[9]};
|
|
102
|
+
--navigation-large-margin: ${({ theme }) => theme.spacing[15]};
|
|
103
|
+
|
|
104
|
+
--font-size-search: ${({ theme }) => theme.fonts.desktop.sizes.search};
|
|
105
|
+
|
|
106
|
+
--grid-margin: ${({ theme }) => theme.grid.desktop.margin};
|
|
107
|
+
--grid-outer-margin: ${({ theme }) => theme.grid.desktop.outerMargin};
|
|
108
|
+
--grid-template-columns: calc(${({ theme }) => theme.grid.desktop.outerMargin} - ${({ theme }) =>
|
|
109
|
+
theme.grid.desktop.gap}) calc(${({ theme }) => theme.grid.desktop.margin} - ${({ theme }) =>
|
|
110
|
+
theme.grid.desktop.outerMargin} - ${({ theme }) => theme.grid.desktop.gap}) repeat(12, minmax(0,1fr)) calc(${({
|
|
111
|
+
theme,
|
|
112
|
+
}) => theme.grid.desktop.margin} - ${({ theme }) => theme.grid.desktop.outerMargin} - ${({ theme }) =>
|
|
113
|
+
theme.grid.desktop.gap}) calc(${({ theme }) => theme.grid.desktop.outerMargin} - ${({ theme }) =>
|
|
114
|
+
theme.grid.desktop.gap});
|
|
115
|
+
--grid-column-gap: ${({ theme }) => theme.grid.desktop.gap};
|
|
116
|
+
--grid-margin: 0;
|
|
117
|
+
|
|
118
|
+
--footer-height: ${({ theme }) => theme.footer.desktop.height};
|
|
119
|
+
--footer-padding-top: ${({ theme }) => theme.footer.desktop.paddingTop};
|
|
120
|
+
--footer-padding-bottom: ${({ theme }) => theme.footer.desktop.paddingBottom};
|
|
121
|
+
--footer-items-gap: ${({ theme }) => theme.footer.desktop.itemsGap};
|
|
122
|
+
--footer-media-gap: ${({ theme }) => theme.footer.desktop.mediaGap};
|
|
123
|
+
--footer-media-icon-width: ${({ theme }) => theme.footer.desktop.mediaIconWidth};
|
|
124
|
+
--footer-media-icon-height: ${({ theme }) => theme.footer.desktop.mediaIconHeight};
|
|
125
|
+
--footer-vertical-spacing-lg: ${({ theme }) => theme.footer.desktop.verticalSpacingLarge};
|
|
126
|
+
--footer-vertical-spacing-sm: ${({ theme }) => theme.footer.desktop.verticalSpacingSmall};
|
|
127
|
+
|
|
128
|
+
--text-link-underline-offset: ${({ theme }) => theme.spacing[2]};
|
|
129
|
+
|
|
130
|
+
--editorial-subtitle-margin-bottom: ${({ theme }) => theme.spacing[4]};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
@media ${devices.mobile} {
|
|
134
|
+
--font-size-header-1: ${({ theme }) => theme.fonts.mobile.sizes.headers[1]};
|
|
135
|
+
--line-height-header-1: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[1]};
|
|
136
|
+
--font-family-header-1: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
137
|
+
--font-size-header-2: ${({ theme }) => theme.fonts.mobile.sizes.headers[2]};
|
|
138
|
+
--line-height-header-2: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[2]};
|
|
139
|
+
--font-family-header-2: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
140
|
+
--font-size-header-3: ${({ theme }) => theme.fonts.mobile.sizes.headers[3]};
|
|
141
|
+
--line-height-header-3: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[3]};
|
|
142
|
+
--font-family-header-3: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
143
|
+
--font-size-header-4: ${({ theme }) => theme.fonts.mobile.sizes.headers[4]};
|
|
144
|
+
--line-height-header-4: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[4]};
|
|
145
|
+
--font-family-header-4: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
146
|
+
--font-size-header-5: ${({ theme }) => theme.fonts.mobile.sizes.headers[5]};
|
|
147
|
+
--line-height-header-5: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[5]};
|
|
148
|
+
--font-family-header-5: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
149
|
+
--font-size-header-6: ${({ theme }) => theme.fonts.mobile.sizes.headers[6]};
|
|
150
|
+
--line-height-header-6: ${({ theme }) => theme.fonts.mobile.lineHeights.headers[6]};
|
|
151
|
+
--font-family-header-6: ${({ theme }) => theme.fonts.mobile.families.headers};
|
|
152
|
+
|
|
153
|
+
--font-size-overline-1: ${({ theme }) => theme.fonts.mobile.sizes.overline[1]};
|
|
154
|
+
--font-weigth-overline-1: ${({ theme }) => theme.fonts.mobile.weights.overline[1]};
|
|
155
|
+
--line-height-overline-1: ${({ theme }) => theme.fonts.mobile.lineHeights.overline[1]};
|
|
156
|
+
--letter-spacing-overline-1: ${({ theme }) => theme.fonts.mobile.letterSpacing.overline[1]};
|
|
157
|
+
--font-size-title-description: ${({ theme }) => theme.fonts.mobile.sizes.titleDescription};
|
|
158
|
+
--line-height-title-description: ${({ theme }) => theme.fonts.mobile.lineHeights.titleDescription};
|
|
159
|
+
--font-size-body-2: ${({ theme }) => theme.fonts.mobile.sizes.body[2]};
|
|
160
|
+
--line-height-body-2: ${({ theme }) => theme.fonts.mobile.lineHeights.body[2]};
|
|
161
|
+
--font-size-body-3: ${({ theme }) => theme.fonts.mobile.sizes.body[3]};
|
|
162
|
+
--line-height-body-3: ${({ theme }) => theme.fonts.mobile.lineHeights.body[3]};
|
|
163
|
+
--font-size-subtitles-1: ${({ theme }) => theme.fonts.mobile.sizes.subtitles[1]};
|
|
164
|
+
--font-weigth-subtitles-1: ${({ theme }) => theme.fonts.mobile.weights.subtitles[1]};
|
|
165
|
+
--line-height-subtitles-1: ${({ theme }) => theme.fonts.mobile.lineHeights.subtitles[1]};
|
|
166
|
+
--text-transform-subtitles-1: ${({ theme }) => theme.fonts.mobile.transforms.subtitles};
|
|
167
|
+
--letter-spacing-subtitles-1: ${({ theme }) => theme.fonts.mobile.letterSpacing.subtitles[1]};
|
|
168
|
+
--line-height-people-listing-gap: ${({ theme }) => theme.spacing[4]};
|
|
169
|
+
|
|
170
|
+
--grid-template-columns: calc(${({ theme }) => theme.grid.mobile.margin} - ${({ theme }) =>
|
|
171
|
+
theme.grid.mobile.gap}) repeat(12, minmax(0, 1fr)) calc(${({ theme }) => theme.grid.mobile.margin} - ${({ theme }) =>
|
|
172
|
+
theme.grid.mobile.gap});
|
|
173
|
+
--grid-column-gap: ${({ theme }) => theme.grid.mobile.gap};
|
|
174
|
+
--grid-margin: ${({ theme }) => theme.grid.mobile.margin};
|
|
175
|
+
|
|
176
|
+
--footer-height: ${({ theme }) => theme.footer.mobile.height};
|
|
177
|
+
--footer-padding-top: ${({ theme }) => theme.footer.mobile.paddingTop};
|
|
178
|
+
--footer-padding-bottom: ${({ theme }) => theme.footer.mobile.paddingBottom};
|
|
179
|
+
--footer-items-gap: ${({ theme }) => theme.footer.mobile.itemsGap};
|
|
180
|
+
--footer-media-gap: ${({ theme }) => theme.footer.mobile.mediaGap};
|
|
181
|
+
--footer-media-icon-width: ${({ theme }) => theme.footer.mobile.mediaIconWidth};
|
|
182
|
+
--footer-media-icon-height: ${({ theme }) => theme.footer.mobile.mediaIconHeight};
|
|
183
|
+
--footer-vertical-spacing-lg: ${({ theme }) => theme.footer.mobile.verticalSpacingLarge};
|
|
184
|
+
--footer-vertical-spacing-sm: ${({ theme }) => theme.footer.mobile.verticalSpacingSmall};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@media ${devices.tablet} {
|
|
188
|
+
--grid-template-columns: calc(${({ theme }) => theme.grid.tablet.margin} - ${({ theme }) =>
|
|
189
|
+
theme.grid.tablet.gap}) repeat(12, minmax(0, 1fr)) calc(${({ theme }) => theme.grid.tablet.margin} - ${({ theme }) =>
|
|
190
|
+
theme.grid.tablet.gap});
|
|
191
|
+
--grid-column-gap: ${({ theme }) => theme.grid.tablet.gap};
|
|
192
|
+
--grid-margin: ${({ theme }) => theme.grid.tablet.margin};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media ${devices.desktop} {
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media ${devices.largeDesktop} {
|
|
200
|
+
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
`;
|
|
204
|
+
|
|
205
|
+
export default GlobalStyles;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
|
|
2
|
+
import { StorybookColourBox } from './StorybookColourBox';
|
|
3
|
+
import { themes } from '../../themes';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<Meta
|
|
7
|
+
title="Foundations/Colours"
|
|
8
|
+
parameters= {{
|
|
9
|
+
viewMode: 'docs',
|
|
10
|
+
previewTabs: {
|
|
11
|
+
canvas: { hidden: true }
|
|
12
|
+
}
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export const Template = (args) => <div>{args.colourSpecs.map((c, n) => <StorybookColourBox color={c.color} name={c.name} key={`colour_${n}`} />)}</div>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# Colours
|
|
21
|
+
|
|
22
|
+
Colours are split into sections based on use case. There are also themes which should be followed in components which relate to events.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Primary Palette
|
|
26
|
+
|
|
27
|
+
The primary palette is representative of the core brand colours. These are the colours which should be used to make it instantly recognisable to relatable to the ROH brand.
|
|
28
|
+
|
|
29
|
+
<Canvas>
|
|
30
|
+
<Story
|
|
31
|
+
name="Primary Palette"
|
|
32
|
+
args={{
|
|
33
|
+
colourSpecs: [
|
|
34
|
+
{ color: themes.core.colors.primary, name: 'Core' },
|
|
35
|
+
{ color: themes.core.colors.black, name: 'Black' },
|
|
36
|
+
]
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
{Template.bind({})}
|
|
40
|
+
</Story>
|
|
41
|
+
</Canvas>
|
|
42
|
+
|
|
43
|
+
## Base Colours
|
|
44
|
+
The base colours are those which are supporting to the primary. The main base colour of the site is white, and there are three tones of grey which can be used. The ‘Light Grey’ and ‘Mid Grey’ should never be used for text as it will fail accessibility. If a grey tone needs to be used the ‘Dark Grey’ should be used.
|
|
45
|
+
|
|
46
|
+
<Canvas>
|
|
47
|
+
<Story
|
|
48
|
+
name="Base Colours"
|
|
49
|
+
args={{
|
|
50
|
+
colourSpecs: [
|
|
51
|
+
{ color: themes.core.colors.white, name: 'White' },
|
|
52
|
+
{ color: themes.core.colors.darkgrey, name: 'Dark Grey' },
|
|
53
|
+
{ color: themes.core.colors.midgrey, name: 'Mid Grey' },
|
|
54
|
+
{ color: themes.core.colors.lightgrey, name: 'Light Grey' },
|
|
55
|
+
]
|
|
56
|
+
}}
|
|
57
|
+
>
|
|
58
|
+
{Template.bind({})}
|
|
59
|
+
</Story>
|
|
60
|
+
</Canvas>
|
|
61
|
+
|
|
62
|
+
## States
|
|
63
|
+
|
|
64
|
+
These are the colour which are used to depict a state such as errors.
|
|
65
|
+
|
|
66
|
+
<Canvas>
|
|
67
|
+
<Story
|
|
68
|
+
name="States"
|
|
69
|
+
args={{
|
|
70
|
+
colourSpecs: [
|
|
71
|
+
{ color: themes.core.colors.error, name: 'Error' },
|
|
72
|
+
{ color: themes.core.colors.medium, name: 'Medium' },
|
|
73
|
+
{ color: themes.core.colors.good, name: 'Good' },
|
|
74
|
+
]
|
|
75
|
+
}}>
|
|
76
|
+
{Template.bind({})}
|
|
77
|
+
</Story>
|
|
78
|
+
</Canvas>
|
|
79
|
+
|
|
80
|
+
## Event Themes
|
|
81
|
+
|
|
82
|
+
When it comes to event components, these are defined by a colourway system where the accent colour changes.
|
|
83
|
+
|
|
84
|
+
* In ‘Core’ events, or ‘generic’ content, the theme should be ‘Core’.
|
|
85
|
+
* In all ‘Stream’ events, the theme should be ‘Stream’.
|
|
86
|
+
* In all ‘Cinema’ events, the theme should be ‘Cinema’ which is the black colour.
|
|
87
|
+
|
|
88
|
+
<Canvas>
|
|
89
|
+
<Story
|
|
90
|
+
name="Event Themes"
|
|
91
|
+
args={{
|
|
92
|
+
colourSpecs: [
|
|
93
|
+
{ color: themes.core.colors.primary, name: 'Core' },
|
|
94
|
+
{ color: themes.stream.colors.primary, name: 'Stream' },
|
|
95
|
+
{ color: themes.cinema.colors.primary, name: 'Cinema' },
|
|
96
|
+
]
|
|
97
|
+
}}>
|
|
98
|
+
{Template.bind({})}
|
|
99
|
+
</Story>
|
|
100
|
+
</Canvas>
|
|
101
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
export interface IStorybookColourBoxProps {
|
|
4
|
+
color: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const StorybookColourBox = styled.div<IStorybookColourBoxProps>`
|
|
9
|
+
|
|
10
|
+
& {
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: ${({ color }: IStorybookColourBoxProps) => color}
|
|
13
|
+
border: 4px solid ${({ color }: IStorybookColourBoxProps) => (color === '#FFFFFF' ? '#f0f0f0' : color)}
|
|
14
|
+
display: inline-block;
|
|
15
|
+
height: 80px;
|
|
16
|
+
margin: 20px;
|
|
17
|
+
width: 180px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:after {
|
|
21
|
+
align-items: center;
|
|
22
|
+
color: ${({ color }: IStorybookColourBoxProps) => color}
|
|
23
|
+
content: ${({ name }: IStorybookColourBoxProps) => "'" + name + "';"}
|
|
24
|
+
display: grid;
|
|
25
|
+
filter: invert(100%) grayscale(100%) brightness(100);
|
|
26
|
+
height: 100%;
|
|
27
|
+
margin: auto 0px;
|
|
28
|
+
text-align: center;
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeProvider } from 'styled-components';
|
|
3
|
+
import { themes } from './themes';
|
|
4
|
+
import { IThemeProviderProps } from '../types/types';
|
|
5
|
+
|
|
6
|
+
const Theme = ({ children, theme }: IThemeProviderProps) => {
|
|
7
|
+
const chosenTheme = themes[theme];
|
|
8
|
+
return <ThemeProvider theme={chosenTheme}>{children}</ThemeProvider>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default Theme;
|