@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,149 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { IconNameType } from './iconTypes';
|
|
3
|
+
import { IOptionItem } from './types';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface IAccountProps {
|
|
7
|
+
/**
|
|
8
|
+
* The text of the title
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* An Array of Option components
|
|
13
|
+
*/
|
|
14
|
+
options?: IOptionItem[];
|
|
15
|
+
/**
|
|
16
|
+
* Function to be called when is clicked
|
|
17
|
+
*/
|
|
18
|
+
onClick?: (e: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the icon
|
|
21
|
+
*/
|
|
22
|
+
iconName?: IconNameType;
|
|
23
|
+
/**
|
|
24
|
+
* The linknk of the title
|
|
25
|
+
*/
|
|
26
|
+
titleLink?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface IBasketProps {
|
|
30
|
+
/**
|
|
31
|
+
* The value of the text
|
|
32
|
+
*/
|
|
33
|
+
text?: string;
|
|
34
|
+
/**
|
|
35
|
+
* To keep selected the text of the Basket
|
|
36
|
+
*/
|
|
37
|
+
selected?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The number of items of the Basket
|
|
40
|
+
*/
|
|
41
|
+
numItems?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Function to be called when is clicked
|
|
44
|
+
*/
|
|
45
|
+
onClick?: (e: string) => void;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ISearchProps {
|
|
49
|
+
/**
|
|
50
|
+
* To keep selected the text of the Basket
|
|
51
|
+
*/
|
|
52
|
+
selected?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Function to be called when is clicked
|
|
55
|
+
*/
|
|
56
|
+
onClick?: (e: MouseEvent) => void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface INavTopProps {
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* The text of Account component
|
|
63
|
+
*/
|
|
64
|
+
accountText?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The icon of Account component
|
|
67
|
+
*/
|
|
68
|
+
accountIcon?: IconNameType;
|
|
69
|
+
/**
|
|
70
|
+
* The options of Account component
|
|
71
|
+
*/
|
|
72
|
+
accountOptions?: IOptionItem[];
|
|
73
|
+
/**
|
|
74
|
+
* The text of Basket component
|
|
75
|
+
*/
|
|
76
|
+
basketText?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The number of items of Basket component
|
|
79
|
+
*/
|
|
80
|
+
basketNumItems?: number;
|
|
81
|
+
/**
|
|
82
|
+
* To know if search component is showed or not
|
|
83
|
+
*/
|
|
84
|
+
isShowSearch?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Function to be called when Search component is clicked
|
|
87
|
+
*/
|
|
88
|
+
onClickSearch?: (e: MouseEvent) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Function to be called when is clicked
|
|
91
|
+
*/
|
|
92
|
+
onLink?: (e: string) => void;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface iMenuOptionProps {
|
|
96
|
+
/**
|
|
97
|
+
* The text of the title
|
|
98
|
+
*/
|
|
99
|
+
title: string;
|
|
100
|
+
/**
|
|
101
|
+
* An Array of Option components
|
|
102
|
+
*/
|
|
103
|
+
options: IOptionItem[];
|
|
104
|
+
/**
|
|
105
|
+
* The link of the title
|
|
106
|
+
*/
|
|
107
|
+
titleLink?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface IMenuProps {
|
|
111
|
+
/**
|
|
112
|
+
* An Array of menu items
|
|
113
|
+
*/
|
|
114
|
+
items: iMenuOptionProps[];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface INavigationProps {
|
|
118
|
+
/**
|
|
119
|
+
* An Object to set NavTop data component
|
|
120
|
+
*/
|
|
121
|
+
dataNavTop: INavTopProps;
|
|
122
|
+
/**
|
|
123
|
+
* Function to be called when is searched
|
|
124
|
+
*/
|
|
125
|
+
onSearch: (e: string) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Function to be called when is clicked
|
|
128
|
+
*/
|
|
129
|
+
onLink: (e: string) => void;
|
|
130
|
+
/**
|
|
131
|
+
* A set of data to make a menu
|
|
132
|
+
*/
|
|
133
|
+
menuData: IMenuProps;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ISearchBarProps {
|
|
137
|
+
/**
|
|
138
|
+
* Function to be called when is clicked
|
|
139
|
+
*/
|
|
140
|
+
onClick: (e: string) => void;
|
|
141
|
+
/**
|
|
142
|
+
* Function to be called when is closed
|
|
143
|
+
*/
|
|
144
|
+
onClose: () => void;
|
|
145
|
+
/**
|
|
146
|
+
* Function to be called when is changed the data of the search
|
|
147
|
+
*/
|
|
148
|
+
onChange: (e: boolean) => void;
|
|
149
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { ReactNode, AnchorHTMLAttributes, MouseEventHandler } from 'react';
|
|
2
|
+
import { StyledProps } from 'styled-components';
|
|
3
|
+
import { IconNameType, DirectionType } from './iconTypes';
|
|
4
|
+
|
|
5
|
+
export enum HeadingLevel {
|
|
6
|
+
H1 = 1,
|
|
7
|
+
H2 = 2,
|
|
8
|
+
H3 = 3,
|
|
9
|
+
H4 = 4,
|
|
10
|
+
H5 = 5,
|
|
11
|
+
H6 = 6,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum Colors {
|
|
15
|
+
White = 'white',
|
|
16
|
+
Black = 'black',
|
|
17
|
+
DarkGrey = 'darkgrey',
|
|
18
|
+
MidGrey = 'midgrey',
|
|
19
|
+
LightGrey = 'lightgrey',
|
|
20
|
+
Trasparent = 'transparent',
|
|
21
|
+
ErrorState = 'errorstate',
|
|
22
|
+
MediumState = 'mediumstate',
|
|
23
|
+
GoodState = 'goodstate',
|
|
24
|
+
Primary = 'primary',
|
|
25
|
+
}
|
|
26
|
+
export interface IHeadingProps {
|
|
27
|
+
level: HeadingLevel;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IHeadingWrapperProps extends StyledProps<any> {
|
|
32
|
+
level: HeadingLevel;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum ThemeType {
|
|
36
|
+
Core = 'core',
|
|
37
|
+
Stream = 'stream',
|
|
38
|
+
Cinema = 'cinema',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IThemeProviderProps {
|
|
42
|
+
/**
|
|
43
|
+
* The theme to use for the child elements
|
|
44
|
+
*/
|
|
45
|
+
theme: ThemeType;
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ILogoProps {
|
|
50
|
+
/**
|
|
51
|
+
* The id value
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The data-roh value
|
|
56
|
+
*/
|
|
57
|
+
dataRoh?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The anchor of the logo
|
|
60
|
+
*/
|
|
61
|
+
anchor?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface IOptionItem {
|
|
65
|
+
/**
|
|
66
|
+
* The text of the option
|
|
67
|
+
*/
|
|
68
|
+
option: string;
|
|
69
|
+
/**
|
|
70
|
+
* The link of the option
|
|
71
|
+
*/
|
|
72
|
+
optionLink: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface ITabProps {
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
/**
|
|
78
|
+
* The value of the title
|
|
79
|
+
*/
|
|
80
|
+
title?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The link of the title
|
|
83
|
+
*/
|
|
84
|
+
titleLink?: string;
|
|
85
|
+
/**
|
|
86
|
+
* To keep selected the title of the Tab
|
|
87
|
+
*/
|
|
88
|
+
selected?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the icon
|
|
91
|
+
*/
|
|
92
|
+
iconName?: IconNameType;
|
|
93
|
+
/**
|
|
94
|
+
* If options are available in mobile devices
|
|
95
|
+
*/
|
|
96
|
+
withOptionsInMobile?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The orientation of the icon
|
|
99
|
+
*/
|
|
100
|
+
withIcon?: 'right' | 'left' | 'none';
|
|
101
|
+
/**
|
|
102
|
+
* If show text in mobile devices
|
|
103
|
+
*/
|
|
104
|
+
withTextInMobile?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Function to be called when click
|
|
107
|
+
*/
|
|
108
|
+
onClick?: (e: string) => void;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface ITabsProps {
|
|
112
|
+
/**
|
|
113
|
+
* An Array with Dropdown components
|
|
114
|
+
*/
|
|
115
|
+
items?: IDropdownProps[];
|
|
116
|
+
/**
|
|
117
|
+
* Function to be called when click on showmenu
|
|
118
|
+
*/
|
|
119
|
+
onShowMenu?: (e: boolean) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Show menu in mobile devices
|
|
122
|
+
*/
|
|
123
|
+
showMenu?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Function to be called when click
|
|
126
|
+
*/
|
|
127
|
+
onChange?: (e: string) => void;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface IDropdownProps {
|
|
131
|
+
/**
|
|
132
|
+
* The value of the title
|
|
133
|
+
*/
|
|
134
|
+
title?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The orientation of the icon
|
|
137
|
+
*/
|
|
138
|
+
withIcon?: 'right' | 'left' | 'none';
|
|
139
|
+
/**
|
|
140
|
+
* The link of the title
|
|
141
|
+
*/
|
|
142
|
+
titleLink?: string;
|
|
143
|
+
/**
|
|
144
|
+
* To keep selected the title of the Dropdown
|
|
145
|
+
*/
|
|
146
|
+
selected?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* An Array with the options in the Dropdown
|
|
149
|
+
*/
|
|
150
|
+
options?: IOptionItem[];
|
|
151
|
+
/**
|
|
152
|
+
* The name of the icon
|
|
153
|
+
*/
|
|
154
|
+
iconName?: IconNameType;
|
|
155
|
+
/**
|
|
156
|
+
* Set if the behaviour of Dropdown change in mobile devices
|
|
157
|
+
*/
|
|
158
|
+
isMobileBehaviour?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* If options are available in mobile devices
|
|
161
|
+
*/
|
|
162
|
+
withOptionsInMobile?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Function to be called when click
|
|
165
|
+
*/
|
|
166
|
+
onChange?: (e: string) => void;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface IIndividualListing {
|
|
170
|
+
role: string;
|
|
171
|
+
name: string;
|
|
172
|
+
link?: string;
|
|
173
|
+
dataROH?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface IPeopleListing {
|
|
177
|
+
people: IIndividualListing[];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface INodeProps {
|
|
181
|
+
/**
|
|
182
|
+
* The current object of Node
|
|
183
|
+
*/
|
|
184
|
+
current: any;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface IGridItemProps extends StyledProps<any> {
|
|
188
|
+
/**
|
|
189
|
+
* The column in which to place the child elements
|
|
190
|
+
*/
|
|
191
|
+
columnStartDesktop: number;
|
|
192
|
+
/**
|
|
193
|
+
* The number of columns over which the child elements will span
|
|
194
|
+
*/
|
|
195
|
+
columnSpanDesktop?: number;
|
|
196
|
+
/**
|
|
197
|
+
* The column in which to place the child elements in mobile devices
|
|
198
|
+
*/
|
|
199
|
+
columnStartDevice: number;
|
|
200
|
+
/**
|
|
201
|
+
* The number of columns over which the child elements will span in mobile devices
|
|
202
|
+
*/
|
|
203
|
+
columnSpanDevice?: number;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface ISponsorshipProps {
|
|
207
|
+
/**
|
|
208
|
+
* Source URL for Sponsorship IFRAME.
|
|
209
|
+
*/
|
|
210
|
+
src?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Used for Analytics.
|
|
213
|
+
*/
|
|
214
|
+
dataRoh?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Used for Accessibility.
|
|
217
|
+
*/
|
|
218
|
+
title?: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface ITextLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
222
|
+
children: ReactNode;
|
|
223
|
+
/**
|
|
224
|
+
* Function to be called when a button is clicked
|
|
225
|
+
*/
|
|
226
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
227
|
+
/**
|
|
228
|
+
* Name of the icon to be used in the button
|
|
229
|
+
*/
|
|
230
|
+
iconName?: IconNameType;
|
|
231
|
+
/**
|
|
232
|
+
* Direction of the icon used in the button
|
|
233
|
+
*/
|
|
234
|
+
iconDirection?: DirectionType;
|
|
235
|
+
/**
|
|
236
|
+
* Color of text and icon
|
|
237
|
+
*/
|
|
238
|
+
color?: Colors;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface ISectionSplitterProps {
|
|
242
|
+
/**
|
|
243
|
+
* Set the width of the Section to full
|
|
244
|
+
*/
|
|
245
|
+
fullWidth?: boolean;
|
|
246
|
+
}
|
|
247
|
+
export interface ITypeTagsProps {
|
|
248
|
+
/**
|
|
249
|
+
* List of Type Tags to display.
|
|
250
|
+
*/
|
|
251
|
+
list: string[];
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface ITextOnlyProps {
|
|
255
|
+
/**
|
|
256
|
+
* Text placed in the TextOnly component
|
|
257
|
+
*/
|
|
258
|
+
text: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type SectionTitleSize = 'small' | 'large';
|
|
262
|
+
|
|
263
|
+
export interface ISectionTitleProps {
|
|
264
|
+
/**
|
|
265
|
+
* Title to display.
|
|
266
|
+
*/
|
|
267
|
+
title: string;
|
|
268
|
+
/**
|
|
269
|
+
* Size of title to display - by default small, which renders as an H2 (and large is an H1).
|
|
270
|
+
*/
|
|
271
|
+
size?: SectionTitleSize;
|
|
272
|
+
/**
|
|
273
|
+
* Optional description that can be rendered below the title.
|
|
274
|
+
*/
|
|
275
|
+
description?: string;
|
|
276
|
+
}
|