@royaloperahouse/harmonic 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 +277 -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/Badge/Badge.style.d.ts +2 -0
- package/dist/components/atoms/Badge/CinemaBadge.d.ts +4 -0
- package/dist/components/atoms/Badge/StreamBadge.d.ts +4 -0
- package/dist/components/atoms/Badge/index.d.ts +3 -0
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/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 +5 -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/ControlledDropdown/ControlledDropdown.d.ts +4 -0
- package/dist/components/atoms/ControlledDropdown/ControlledDropdown.style.d.ts +7 -0
- package/dist/components/atoms/ControlledDropdown/index.d.ts +2 -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/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 +11 -0
- package/dist/components/atoms/Icons/StorybookSupport/IconsDiv.style.d.ts +2 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +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/Favourite.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.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/Seat.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/Standing.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +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/X.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/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/Utility/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.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 +79 -0
- package/dist/components/atoms/Icons/index.d.ts +2 -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/Logo/Logo.d.ts +3 -0
- package/dist/components/atoms/Logo/Logo.style.d.ts +1 -0
- package/dist/components/atoms/Logo/index.d.ts +2 -0
- package/dist/components/atoms/Progress/Progress.d.ts +4 -0
- package/dist/components/atoms/Progress/Progress.styles.d.ts +11 -0
- package/dist/components/atoms/Progress/index.d.ts +2 -0
- package/dist/components/atoms/Radio/Radio.d.ts +6 -0
- package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
- package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
- package/dist/components/atoms/Radio2/index.d.ts +2 -0
- package/dist/components/atoms/RotatorButtons/RotatorButtons.d.ts +3 -0
- package/dist/components/atoms/RotatorButtons/RotatorButtons.style.d.ts +3 -0
- package/dist/components/atoms/RotatorButtons/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/SecondaryLogo/SecodaryLogo.style.d.ts +2 -0
- package/dist/components/atoms/SecondaryLogo/SecondaryLogo.d.ts +4 -0
- package/dist/components/atoms/SecondaryLogo/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/SponsorLogo/SponsorLogo.d.ts +4 -0
- package/dist/components/atoms/SponsorLogo/SponsorLogo.style.d.ts +1 -0
- package/dist/components/atoms/SponsorLogo/index.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.d.ts +4 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/index.d.ts +2 -0
- package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
- package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
- package/dist/components/atoms/Stepper/index.d.ts +2 -0
- package/dist/components/atoms/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/TabLink/TabLink.d.ts +4 -0
- package/dist/components/atoms/TabLink/TabLink.style.d.ts +3 -0
- package/dist/components/atoms/TabLink/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
- package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextField/TextField.d.ts +42 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +9 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +10 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +5 -0
- package/dist/components/atoms/TextField/index.d.ts +3 -0
- package/dist/components/atoms/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/TextLogo/TextLogo.d.ts +13 -0
- package/dist/components/atoms/TextLogo/index.d.ts +2 -0
- package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
- package/dist/components/atoms/Tickbox/Tickbox.d.ts +7 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +9 -0
- package/dist/components/atoms/Tickbox/index.d.ts +2 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
- package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
- package/dist/components/atoms/Timer/Timer.d.ts +4 -0
- package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
- package/dist/components/atoms/Timer/index.d.ts +2 -0
- package/dist/components/atoms/TypeTags/TypeTags.d.ts +3 -0
- package/dist/components/atoms/TypeTags/TypeTags.style.d.ts +1 -0
- package/dist/components/atoms/TypeTags/index.d.ts +2 -0
- package/dist/components/atoms/Typography/Typography.d.ts +7 -0
- package/dist/components/atoms/Typography/Typography.style.d.ts +3 -0
- package/dist/components/atoms/Typography/index.d.ts +2 -0
- package/dist/components/atoms/VideoControls/VideoControls.d.ts +4 -0
- package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +13 -0
- package/dist/components/atoms/VideoControls/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +28 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/molecules/Accordion/Accordion.d.ts +4 -0
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +10 -0
- package/dist/components/molecules/Accordion/index.d.ts +2 -0
- package/dist/components/molecules/Accordions/Accordions.d.ts +4 -0
- package/dist/components/molecules/Accordions/Accordions.style.d.ts +1 -0
- package/dist/components/molecules/Accordions/index.d.ts +2 -0
- package/dist/components/molecules/AnnouncementBanner/AnnouncementBanner.d.ts +4 -0
- package/dist/components/molecules/AnnouncementBanner/AnnouncementBanner.style.d.ts +3 -0
- package/dist/components/molecules/AnnouncementBanner/index.d.ts +2 -0
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +21 -0
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +9 -0
- package/dist/components/molecules/AuxiliaryNav/index.d.ts +2 -0
- package/dist/components/molecules/Basket/Basket.d.ts +3 -0
- package/dist/components/molecules/Basket/Basket.style.d.ts +5 -0
- package/dist/components/molecules/Basket/helpers.d.ts +3 -0
- package/dist/components/molecules/Basket/hooks.d.ts +8 -0
- package/dist/components/molecules/Basket/index.d.ts +2 -0
- package/dist/components/molecules/Card/Card.d.ts +4 -0
- package/dist/components/molecules/Card/Card.style.d.ts +28 -0
- package/dist/components/molecules/Card/index.d.ts +2 -0
- package/dist/components/molecules/Cards/Cards.d.ts +3 -0
- package/dist/components/molecules/Cards/Cards.style.d.ts +2 -0
- package/dist/components/molecules/Cards/index.d.ts +2 -0
- package/dist/components/molecules/ContactCard/ContactCard.d.ts +4 -0
- package/dist/components/molecules/ContactCard/ContactCard.style.d.ts +6 -0
- package/dist/components/molecules/ContactCard/index.d.ts +2 -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/ContentSummary/ContentSummary.d.ts +3 -0
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
- package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
- package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
- package/dist/components/molecules/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/ImageWithCaption/ImageWithCaption.d.ts +4 -0
- package/dist/components/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +3 -0
- package/dist/components/molecules/ImageWithCaption/index.d.ts +2 -0
- package/dist/components/molecules/Information/InfoCta.d.ts +4 -0
- package/dist/components/molecules/Information/Information.d.ts +4 -0
- package/dist/components/molecules/Information/Information.style.d.ts +10 -0
- package/dist/components/molecules/Information/index.d.ts +2 -0
- package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
- package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
- package/dist/components/molecules/MiniCard/index.d.ts +2 -0
- package/dist/components/molecules/NavTop/NavTop.d.ts +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/PageHeading/Cinema/Cinema.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Cinema/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Core/Core.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Core/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +9 -0
- package/dist/components/molecules/PageHeading/Impact/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/PageHeading.d.ts +4 -0
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +11 -0
- package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
- package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Stream/Stream.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Stream/Stream.style.d.ts +1 -0
- package/dist/components/molecules/PageHeading/Stream/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +7 -0
- package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
- package/dist/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.d.ts +33 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +13 -0
- package/dist/components/molecules/PasswordStrength/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +3 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +3 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +6 -0
- package/dist/components/molecules/PeopleListing/Person.d.ts +7 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +3 -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/PromoWithTags/PromoWithTags.d.ts +4 -0
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +23 -0
- package/dist/components/molecules/PromoWithTags/index.d.ts +2 -0
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +9 -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/Quote/Quote.d.ts +4 -0
- package/dist/components/molecules/Quote/Quote.style.d.ts +4 -0
- package/dist/components/molecules/Quote/index.d.ts +2 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
- package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
- package/dist/components/molecules/ReadMore/ReadMore.d.ts +4 -0
- package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +9 -0
- package/dist/components/molecules/ReadMore/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.d.ts +3 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +7 -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/Select/Select.d.ts +100 -0
- package/dist/components/molecules/Select/Select.style.d.ts +14 -0
- package/dist/components/molecules/Select/index.d.ts +2 -0
- package/dist/components/molecules/Select2/Select2.d.ts +24 -0
- package/dist/components/molecules/Select2/Select2.style.d.ts +5 -0
- package/dist/components/molecules/Select2/index.d.ts +2 -0
- package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
- package/dist/components/molecules/Select2Async/index.d.ts +2 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
- package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
- package/dist/components/molecules/Table/Table.d.ts +4 -0
- package/dist/components/molecules/Table/Table.style.d.ts +19 -0
- package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
- package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
- package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
- package/dist/components/molecules/Table/index.d.ts +2 -0
- package/dist/components/molecules/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/UpsellCard/OfferText.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
- package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
- package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.d.ts +4 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +34 -0
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.d.ts +4 -0
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +8 -0
- package/dist/components/organisms/AnchorTabBar/index.d.ts +2 -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/LiveChat/LiveChat.d.ts +3 -0
- package/dist/components/organisms/LiveChat/index.d.ts +2 -0
- package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +68 -0
- package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +4 -0
- package/dist/components/organisms/ModalWindow/index.d.ts +2 -0
- package/dist/components/organisms/Navigation/Navigation.d.ts +3 -0
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +16 -0
- package/dist/components/organisms/Navigation/index.d.ts +2 -0
- package/dist/components/organisms/StickyBar/StickyBar.d.ts +4 -0
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +6 -0
- package/dist/components/organisms/StickyBar/index.d.ts +2 -0
- package/dist/components/organisms/TitleWithCTA/TitleWithCTA.d.ts +4 -0
- package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +12 -0
- package/dist/components/organisms/TitleWithCTA/index.d.ts +2 -0
- package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
- package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
- package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +9 -0
- package/dist/harmonic.cjs.development.js +12331 -0
- package/dist/harmonic.cjs.development.js.map +1 -0
- package/dist/harmonic.cjs.production.min.js +2 -0
- package/dist/harmonic.cjs.production.min.js.map +1 -0
- package/dist/harmonic.esm.js +12248 -0
- package/dist/harmonic.esm.js.map +1 -0
- package/dist/helpers/arrays.d.ts +6 -0
- package/dist/helpers/aspectRatio.d.ts +2 -0
- package/dist/helpers/defaultValues.d.ts +7 -0
- package/dist/helpers/devices.d.ts +3 -0
- package/dist/helpers/formatStrings.d.ts +2 -0
- package/dist/helpers/generateDomElementId.d.ts +8 -0
- package/dist/helpers/htmlStrings.d.ts +5 -0
- package/dist/helpers/keyboards.d.ts +3 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +8 -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 +3756 -0
- package/dist/styles/viewports.d.ts +16 -0
- package/dist/styles/zIndexes.d.ts +4 -0
- package/dist/types/auxiliaryNav.d.ts +39 -0
- package/dist/types/buttonTypes.d.ts +80 -0
- package/dist/types/card.d.ts +138 -0
- package/dist/types/carousel.d.ts +128 -0
- package/dist/types/contactCard.d.ts +45 -0
- package/dist/types/creditListing.d.ts +12 -0
- package/dist/types/editorial.d.ts +255 -0
- package/dist/types/footer.d.ts +41 -0
- package/dist/types/formTypes.d.ts +325 -0
- package/dist/types/iconTypes.d.ts +39 -0
- package/dist/types/image.d.ts +53 -0
- package/dist/types/impactHeader.d.ts +135 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/information.d.ts +85 -0
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/modalWindow.d.ts +20 -0
- package/dist/types/navigation.d.ts +374 -0
- package/dist/types/passwordStrength.d.ts +51 -0
- package/dist/types/progress.d.ts +33 -0
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/quote.d.ts +17 -0
- package/dist/types/tableTypes.d.ts +47 -0
- package/dist/types/tickbox.d.ts +79 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +602 -0
- package/dist/types/typography.d.ts +89 -0
- package/dist/types/upsell.d.ts +78 -0
- package/dist/types/utility.d.ts +4 -0
- package/package.json +125 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditorialLink } from '../types';
|
|
3
|
+
import { TypographyLevel } from './typography';
|
|
4
|
+
export interface IPageHeadingImpactProps {
|
|
5
|
+
/**
|
|
6
|
+
* Text placed in the impact component
|
|
7
|
+
*/
|
|
8
|
+
text?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Link placed in the impact component
|
|
11
|
+
*/
|
|
12
|
+
link?: EditorialLink;
|
|
13
|
+
/**
|
|
14
|
+
* Boolean to show/hide sponsorship logo (default true)
|
|
15
|
+
*/
|
|
16
|
+
sponsor?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Data for custom sponsor
|
|
19
|
+
*/
|
|
20
|
+
customSponsorImage?: CustomSponsorImageData;
|
|
21
|
+
/**
|
|
22
|
+
* Background url for desktops
|
|
23
|
+
*/
|
|
24
|
+
bgUrlDesktop: string;
|
|
25
|
+
/**
|
|
26
|
+
* Background url for devices
|
|
27
|
+
*/
|
|
28
|
+
bgUrlDevice?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Alt text for the main image
|
|
31
|
+
*/
|
|
32
|
+
bgImageAltText?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Logo to be placed in page heading component
|
|
35
|
+
*/
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Internal anchor ref
|
|
39
|
+
*/
|
|
40
|
+
scrollHref?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Semantic level of the header
|
|
43
|
+
*/
|
|
44
|
+
semanticLevel?: TypographyLevel;
|
|
45
|
+
}
|
|
46
|
+
export declare type BrandingStyle = 'BlockText' | 'BodyText' | 'StreamLogo' | 'CinemaLogo' | 'TextLink';
|
|
47
|
+
export interface IPageHeadingCompactProps {
|
|
48
|
+
/**
|
|
49
|
+
* Text placed in the impact component
|
|
50
|
+
*/
|
|
51
|
+
title?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Render title as small for long titles
|
|
54
|
+
*/
|
|
55
|
+
smallTitle?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Link placed in the impact component
|
|
58
|
+
*/
|
|
59
|
+
link?: EditorialLink;
|
|
60
|
+
/**
|
|
61
|
+
* Boolean to show/hide sponsorship logo (default true)
|
|
62
|
+
*/
|
|
63
|
+
sponsor?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Data for custom sponsor
|
|
66
|
+
*/
|
|
67
|
+
customSponsorImage?: CustomSponsorImageData;
|
|
68
|
+
/**
|
|
69
|
+
* Background url for desktops
|
|
70
|
+
*/
|
|
71
|
+
bgUrlDesktop: string;
|
|
72
|
+
/**
|
|
73
|
+
* Background url for devices
|
|
74
|
+
*/
|
|
75
|
+
bgUrlDevice?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Alt text for the main image
|
|
78
|
+
*/
|
|
79
|
+
bgImageAltText?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Logo or Text to be placed in page heading component
|
|
82
|
+
* @type {string}
|
|
83
|
+
*/
|
|
84
|
+
brandingStyle: BrandingStyle;
|
|
85
|
+
/**
|
|
86
|
+
* Link for the TextLink branding style option
|
|
87
|
+
*/
|
|
88
|
+
brandingLink?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Text to be placed in the branding section - BlockText, BodyText, or TextLink
|
|
91
|
+
*/
|
|
92
|
+
brandingText?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Flag whether to show inverted colors
|
|
95
|
+
* @default false
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* */
|
|
98
|
+
invert?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Desktop video url
|
|
101
|
+
* @type {string}
|
|
102
|
+
* */
|
|
103
|
+
videoUrlDesktop?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Mobile video url
|
|
106
|
+
* @type {string}
|
|
107
|
+
* */
|
|
108
|
+
videoUrlMobile?: string;
|
|
109
|
+
/**
|
|
110
|
+
* If true, shows the copy section (title, CTAs etc.). If false, only the video banner is visible. True by default.
|
|
111
|
+
*/
|
|
112
|
+
showCopy?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Semantic level of the header
|
|
115
|
+
*/
|
|
116
|
+
semanticLevel?: TypographyLevel;
|
|
117
|
+
}
|
|
118
|
+
export interface CustomSponsorImageData {
|
|
119
|
+
/**
|
|
120
|
+
* Source URL for Sponsorship logo
|
|
121
|
+
*/
|
|
122
|
+
src: string;
|
|
123
|
+
/**
|
|
124
|
+
* Alt Text for image.
|
|
125
|
+
*/
|
|
126
|
+
altText?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Used for Analytics.
|
|
129
|
+
*/
|
|
130
|
+
dataRoh: string;
|
|
131
|
+
/**
|
|
132
|
+
* Used for Accessibility.
|
|
133
|
+
*/
|
|
134
|
+
title: string;
|
|
135
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FooterData } from './footer';
|
|
2
|
+
import { Colors, ThemeType } from './types';
|
|
3
|
+
import { INavigationProps, INavTopProps } from './navigation';
|
|
4
|
+
import { CarouselType } from './carousel';
|
|
5
|
+
import { IconNameType } from './iconTypes';
|
|
6
|
+
import { AspectRatio } from './image';
|
|
7
|
+
import { TickboxMode } from './tickbox';
|
|
8
|
+
import { ButtonType, IAuxiliaryButtonProps } from './buttonTypes';
|
|
9
|
+
import { EditorialLink } from './editorial';
|
|
10
|
+
import { IPageHeadingCompactProps } from './impactHeader';
|
|
11
|
+
import { IntegratedTimerProps, ITimerProps } from './timer';
|
|
12
|
+
import { ICreditListing } from './creditListing';
|
|
13
|
+
import { ModalWindowProps } from './modalWindow';
|
|
14
|
+
export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, FooterData, IconNameType, IAuxiliaryButtonProps, ICreditListing, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeType, };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DirectionType, IconNameType } from './iconTypes';
|
|
2
|
+
export declare enum CtaVariant {
|
|
3
|
+
Primary = "Primary",
|
|
4
|
+
Secondary = "Secondary",
|
|
5
|
+
Tertiary = "Tertiary",
|
|
6
|
+
TextLink = "TextLink"
|
|
7
|
+
}
|
|
8
|
+
export declare enum CtaTheme {
|
|
9
|
+
Cinema = "Cinema",
|
|
10
|
+
Core = "Core",
|
|
11
|
+
Stream = "Stream"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TitleVariant {
|
|
14
|
+
Header = "Header",
|
|
15
|
+
AltHeader = "AltHeader"
|
|
16
|
+
}
|
|
17
|
+
export declare enum BackgroundColour {
|
|
18
|
+
Cinema = "cinema",
|
|
19
|
+
Core = "core",
|
|
20
|
+
Stream = "stream",
|
|
21
|
+
White = "white"
|
|
22
|
+
}
|
|
23
|
+
export declare type TitleTextSize = 3 | 4 | 5 | 6;
|
|
24
|
+
export interface CTAProps {
|
|
25
|
+
/**
|
|
26
|
+
* Text to display on the CTA
|
|
27
|
+
*/
|
|
28
|
+
text: string;
|
|
29
|
+
/**
|
|
30
|
+
* Link for the CTA
|
|
31
|
+
*/
|
|
32
|
+
link: string;
|
|
33
|
+
/**
|
|
34
|
+
* Style of the CTA. Choices are "Primary" (solid button background), "Secondary" (transparent button background) or "Tertiary" (text only)
|
|
35
|
+
*/
|
|
36
|
+
variant?: CtaVariant;
|
|
37
|
+
/**
|
|
38
|
+
* Theme to use for the CTA. Choices are "Core" (red), "Stream" (blue), or "Cinema" (black)
|
|
39
|
+
*/
|
|
40
|
+
theme?: CtaTheme;
|
|
41
|
+
/**
|
|
42
|
+
* Flag to decide whether to adjust the CTA colours for display on coloured backgrounds
|
|
43
|
+
*/
|
|
44
|
+
infoThemed: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Name of the icon to be used in the button
|
|
47
|
+
*/
|
|
48
|
+
iconName?: IconNameType;
|
|
49
|
+
/**
|
|
50
|
+
* Direction of the icon used in the button
|
|
51
|
+
*/
|
|
52
|
+
iconDirection?: DirectionType;
|
|
53
|
+
}
|
|
54
|
+
export interface TitleProps {
|
|
55
|
+
/**
|
|
56
|
+
* Title text to display
|
|
57
|
+
*/
|
|
58
|
+
text: string;
|
|
59
|
+
/**
|
|
60
|
+
* Title typography type. Choices are Heading or AltHeader
|
|
61
|
+
*/
|
|
62
|
+
variant: TitleVariant;
|
|
63
|
+
/**
|
|
64
|
+
* The size of the title text
|
|
65
|
+
*/
|
|
66
|
+
textSize: TitleTextSize;
|
|
67
|
+
}
|
|
68
|
+
export interface IInformationProps {
|
|
69
|
+
/**
|
|
70
|
+
* Main body text to display in the Information Component
|
|
71
|
+
*/
|
|
72
|
+
body: string;
|
|
73
|
+
/**
|
|
74
|
+
* Optional CTA to display underneath the body text
|
|
75
|
+
*/
|
|
76
|
+
cta?: CTAProps;
|
|
77
|
+
/**
|
|
78
|
+
* Title options for the component
|
|
79
|
+
*/
|
|
80
|
+
title: TitleProps;
|
|
81
|
+
/**
|
|
82
|
+
* Background Colour. Choices: None, Core, Cinema, Stream
|
|
83
|
+
*/
|
|
84
|
+
background?: BackgroundColour;
|
|
85
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IconNameType } from './iconTypes';
|
|
2
|
+
export interface IMiniCardProps {
|
|
3
|
+
/**
|
|
4
|
+
* Title placed in the component
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Subtitle placed in the component
|
|
9
|
+
*/
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Image to render
|
|
13
|
+
*/
|
|
14
|
+
image: string;
|
|
15
|
+
/**
|
|
16
|
+
* Image alt text
|
|
17
|
+
*/
|
|
18
|
+
imageAltText: string;
|
|
19
|
+
/**
|
|
20
|
+
* An icon to be rendered in the middle of the image
|
|
21
|
+
*/
|
|
22
|
+
iconName?: IconNameType;
|
|
23
|
+
/**
|
|
24
|
+
* A color for the icon
|
|
25
|
+
*/
|
|
26
|
+
iconColor?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import Modal from 'react-modal';
|
|
3
|
+
export interface ModalWindowProps extends Modal.Props {
|
|
4
|
+
/**
|
|
5
|
+
* Boolean indicating if the modal is open.
|
|
6
|
+
*/
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Function to set the open state of the modal.
|
|
10
|
+
*/
|
|
11
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Content to be displayed within the modal.
|
|
14
|
+
*/
|
|
15
|
+
children: ReactElement;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the app element to assist with accessibility.
|
|
18
|
+
*/
|
|
19
|
+
appElementId?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler } from 'react';
|
|
2
|
+
import { DirectionType, IconNameType } from './iconTypes';
|
|
3
|
+
import { Colors, IOptionItem } from './types';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
export interface IAccountProps {
|
|
6
|
+
/**
|
|
7
|
+
* The text of the title
|
|
8
|
+
*/
|
|
9
|
+
title?: string;
|
|
10
|
+
/**
|
|
11
|
+
* An Array of Option components
|
|
12
|
+
*/
|
|
13
|
+
options?: IOptionItem[];
|
|
14
|
+
/**
|
|
15
|
+
* Function to be called when is clicked
|
|
16
|
+
*/
|
|
17
|
+
onClick?: (e: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the icon
|
|
20
|
+
*/
|
|
21
|
+
iconName?: IconNameType;
|
|
22
|
+
/**
|
|
23
|
+
* The link of the title
|
|
24
|
+
*/
|
|
25
|
+
titleLink?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The primary color
|
|
28
|
+
*/
|
|
29
|
+
colorPrimary?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IBasketProps {
|
|
32
|
+
/**
|
|
33
|
+
* The value of the text
|
|
34
|
+
*/
|
|
35
|
+
text?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The unix timestamp when basket items will be released.
|
|
38
|
+
*/
|
|
39
|
+
expiryTime?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the link
|
|
42
|
+
*/
|
|
43
|
+
link?: string;
|
|
44
|
+
/**
|
|
45
|
+
* To keep selected the text of the Basket
|
|
46
|
+
*/
|
|
47
|
+
selected?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The number of items of the Basket (eg. Tickets)
|
|
50
|
+
*/
|
|
51
|
+
numItems?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The number of 'virtual' items of the Basket (eg. Stream subscription)
|
|
54
|
+
* These items remain in the basket after expiryTime is reached
|
|
55
|
+
*/
|
|
56
|
+
numVirtualItems?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Function to be called when is clicked
|
|
59
|
+
*/
|
|
60
|
+
onClick?: (e: string) => void;
|
|
61
|
+
/**
|
|
62
|
+
* The primary color
|
|
63
|
+
*/
|
|
64
|
+
colorPrimary?: string;
|
|
65
|
+
/**
|
|
66
|
+
* For changing the color of the basket icon & text (when not in hover state)
|
|
67
|
+
*/
|
|
68
|
+
isActive?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ISearchProps {
|
|
71
|
+
/**
|
|
72
|
+
* To keep selected the text of the Basket
|
|
73
|
+
*/
|
|
74
|
+
selected?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Function to be called when is clicked
|
|
77
|
+
*/
|
|
78
|
+
onClick?: () => void;
|
|
79
|
+
/**
|
|
80
|
+
* The primary color
|
|
81
|
+
*/
|
|
82
|
+
colorPrimary?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface INavigationWrapperProps {
|
|
85
|
+
/**
|
|
86
|
+
* True if menu is open
|
|
87
|
+
*/
|
|
88
|
+
isMenuOpen?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface INavTopProps {
|
|
91
|
+
children?: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* The text of Account component
|
|
94
|
+
*/
|
|
95
|
+
accountText?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The link of Account component
|
|
98
|
+
*/
|
|
99
|
+
accountLink?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The icon of Account component
|
|
102
|
+
*/
|
|
103
|
+
accountIcon?: IconNameType;
|
|
104
|
+
/**
|
|
105
|
+
* The options of Account component
|
|
106
|
+
*/
|
|
107
|
+
accountOptions?: IOptionItem[];
|
|
108
|
+
/**
|
|
109
|
+
* The text of Basket component
|
|
110
|
+
*/
|
|
111
|
+
basketText?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The unix timestamp when basket items will be released.
|
|
114
|
+
*/
|
|
115
|
+
basketExpiryUnixTimestamp?: number;
|
|
116
|
+
/**
|
|
117
|
+
* The link of Basket component
|
|
118
|
+
*/
|
|
119
|
+
basketLink?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The number of items of Basket component
|
|
122
|
+
*/
|
|
123
|
+
basketNumItems?: number;
|
|
124
|
+
/**
|
|
125
|
+
* The number of 'virtual' items of the Basket (eg. Stream subscription)
|
|
126
|
+
* These items remain in the basket after expiryTime is reached
|
|
127
|
+
*/
|
|
128
|
+
basketNumVirtualItems?: number;
|
|
129
|
+
/**
|
|
130
|
+
* For changing the color of the basket icon & text (when not in hover state)
|
|
131
|
+
*/
|
|
132
|
+
basketIsActive?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* To know if search component is showed or not
|
|
135
|
+
*/
|
|
136
|
+
isShowSearch?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Function to be called when Search component is clicked
|
|
139
|
+
*/
|
|
140
|
+
onClickSearch?: () => void;
|
|
141
|
+
/**
|
|
142
|
+
* Function to be called when is clicked
|
|
143
|
+
*/
|
|
144
|
+
onLink?: (e: string) => void;
|
|
145
|
+
/**
|
|
146
|
+
* The primary color
|
|
147
|
+
*/
|
|
148
|
+
colorPrimary?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface iMenuOptionProps {
|
|
151
|
+
/**
|
|
152
|
+
* The text of the title
|
|
153
|
+
*/
|
|
154
|
+
title: string;
|
|
155
|
+
/**
|
|
156
|
+
* An Array of Option components
|
|
157
|
+
*/
|
|
158
|
+
options: IOptionItem[];
|
|
159
|
+
/**
|
|
160
|
+
* The link of the title
|
|
161
|
+
*/
|
|
162
|
+
titleLink?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface IMenuProps {
|
|
165
|
+
/**
|
|
166
|
+
* An Array of menu items
|
|
167
|
+
*/
|
|
168
|
+
items: iMenuOptionProps[];
|
|
169
|
+
}
|
|
170
|
+
export interface INavigationProps {
|
|
171
|
+
/**
|
|
172
|
+
* Link url to Logo component
|
|
173
|
+
*/
|
|
174
|
+
logoLink?: string;
|
|
175
|
+
/**
|
|
176
|
+
* An Object to set NavTop data component
|
|
177
|
+
*/
|
|
178
|
+
dataNavTop: INavTopProps;
|
|
179
|
+
/**
|
|
180
|
+
* Function to be called when is searched
|
|
181
|
+
*/
|
|
182
|
+
onSearch: (e: string) => void;
|
|
183
|
+
/**
|
|
184
|
+
* Function to be called when is clicked
|
|
185
|
+
*/
|
|
186
|
+
onLink: (e: string) => void;
|
|
187
|
+
/**
|
|
188
|
+
* A set of data to make a menu
|
|
189
|
+
*/
|
|
190
|
+
menuData: IMenuProps;
|
|
191
|
+
/**
|
|
192
|
+
* The url for the Desktop version of the logo
|
|
193
|
+
*/
|
|
194
|
+
desktopLogoUrl: string;
|
|
195
|
+
/**
|
|
196
|
+
* The url for the Mobile and Tablet version of the logo
|
|
197
|
+
*/
|
|
198
|
+
devicesLogoUrl?: string;
|
|
199
|
+
}
|
|
200
|
+
export interface ISearchBarProps {
|
|
201
|
+
/**
|
|
202
|
+
* Function to be called when is clicked
|
|
203
|
+
*/
|
|
204
|
+
onClick: (e: string) => void;
|
|
205
|
+
/**
|
|
206
|
+
* Function to be called when is closed
|
|
207
|
+
*/
|
|
208
|
+
onClose?: (e?: React.MouseEvent) => void;
|
|
209
|
+
}
|
|
210
|
+
export declare type TitleCTALink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
211
|
+
/**
|
|
212
|
+
* Text inside the link
|
|
213
|
+
*/
|
|
214
|
+
text: string;
|
|
215
|
+
/**
|
|
216
|
+
* Function to be called when a button is clicked
|
|
217
|
+
*/
|
|
218
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
219
|
+
/**
|
|
220
|
+
* Name of the icon to be used in the button
|
|
221
|
+
*/
|
|
222
|
+
iconName?: IconNameType;
|
|
223
|
+
/**
|
|
224
|
+
* Direction of the icon used in the button
|
|
225
|
+
*/
|
|
226
|
+
iconDirection?: DirectionType;
|
|
227
|
+
/**
|
|
228
|
+
* Color of text and icon
|
|
229
|
+
*/
|
|
230
|
+
color?: Colors;
|
|
231
|
+
};
|
|
232
|
+
export declare type TitleCTALinks = [TitleCTALink, TitleCTALink?];
|
|
233
|
+
export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
234
|
+
/**
|
|
235
|
+
* Visible text in a tab
|
|
236
|
+
*/
|
|
237
|
+
text: string;
|
|
238
|
+
/**
|
|
239
|
+
* Tab identifier, used to highlight items when user performs a scroll
|
|
240
|
+
*/
|
|
241
|
+
id: string;
|
|
242
|
+
/**
|
|
243
|
+
* Color of text and icon
|
|
244
|
+
*/
|
|
245
|
+
color?: Colors;
|
|
246
|
+
};
|
|
247
|
+
export interface IAnchorBarAbsolutePositionParams {
|
|
248
|
+
/**
|
|
249
|
+
* Navigation height that we need to calculate AnchorTabBar position properly
|
|
250
|
+
*/
|
|
251
|
+
navigationHeight: number;
|
|
252
|
+
/**
|
|
253
|
+
* Height of the content that is located in place before AnchorTabBar
|
|
254
|
+
*/
|
|
255
|
+
topOffset: number;
|
|
256
|
+
}
|
|
257
|
+
export interface IAnchorBarProps {
|
|
258
|
+
/**
|
|
259
|
+
* Tabs displayed in the anchor bar
|
|
260
|
+
*/
|
|
261
|
+
tabs: AnchorBarTab[];
|
|
262
|
+
/**
|
|
263
|
+
* Function to be called when a tab is clicked
|
|
264
|
+
*/
|
|
265
|
+
onTabClick?: (e: MouseEvent, id: string) => void;
|
|
266
|
+
/**
|
|
267
|
+
* Set the id of the tab actived
|
|
268
|
+
*/
|
|
269
|
+
activeTab?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Only for IOS devices that do not fully support sticky position, in case a keyboard is opened on the device
|
|
272
|
+
*/
|
|
273
|
+
absolutePositionParams?: IAnchorBarAbsolutePositionParams;
|
|
274
|
+
/**
|
|
275
|
+
* Boolean to set bottom border
|
|
276
|
+
*/
|
|
277
|
+
bottomBorder?: boolean;
|
|
278
|
+
}
|
|
279
|
+
export interface ITitleCTAProps {
|
|
280
|
+
/**
|
|
281
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
282
|
+
*/
|
|
283
|
+
links?: TitleCTALinks;
|
|
284
|
+
/**
|
|
285
|
+
* Text placed in the anchor bar component
|
|
286
|
+
*/
|
|
287
|
+
title?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Boolean to determine if is sticky
|
|
290
|
+
*/
|
|
291
|
+
sticky?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Text in replacement of links
|
|
294
|
+
*/
|
|
295
|
+
message?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface ITitleCTAGridItemProps {
|
|
298
|
+
/**
|
|
299
|
+
* Text placed in the anchor bar component
|
|
300
|
+
*/
|
|
301
|
+
title?: string;
|
|
302
|
+
}
|
|
303
|
+
export interface IAnchorTabsListProps {
|
|
304
|
+
/**
|
|
305
|
+
* Boolean to determine that the list tab is overflowed
|
|
306
|
+
*/
|
|
307
|
+
tabsOverflow: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Boolean to determine if there are two arrows displayed
|
|
310
|
+
*/
|
|
311
|
+
hasTwoArrows: boolean;
|
|
312
|
+
}
|
|
313
|
+
export interface IAnchorTabBarBorderProps {
|
|
314
|
+
/**
|
|
315
|
+
* Boolean to set bottom border
|
|
316
|
+
*/
|
|
317
|
+
bottomBorder: boolean;
|
|
318
|
+
}
|
|
319
|
+
export interface IAnchorTabArrowsBoxProps {
|
|
320
|
+
/**
|
|
321
|
+
* Boolean to determine width of the arrows container
|
|
322
|
+
*/
|
|
323
|
+
fullWidth: boolean;
|
|
324
|
+
}
|
|
325
|
+
export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
326
|
+
children: ReactNode;
|
|
327
|
+
/**
|
|
328
|
+
* Function to be called when a button is clicked
|
|
329
|
+
*/
|
|
330
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
331
|
+
/**
|
|
332
|
+
* Name of the icon to be used in the button
|
|
333
|
+
*/
|
|
334
|
+
iconName?: IconNameType;
|
|
335
|
+
/**
|
|
336
|
+
* Direction of the icon used in the button
|
|
337
|
+
*/
|
|
338
|
+
iconDirection?: DirectionType;
|
|
339
|
+
/**
|
|
340
|
+
* Color of text and icon
|
|
341
|
+
*/
|
|
342
|
+
color?: Colors;
|
|
343
|
+
/**
|
|
344
|
+
* Color of text and icon on hover
|
|
345
|
+
*/
|
|
346
|
+
hoverColor?: Colors;
|
|
347
|
+
/**
|
|
348
|
+
* Set if tab is selected or not
|
|
349
|
+
*/
|
|
350
|
+
selected?: boolean;
|
|
351
|
+
}
|
|
352
|
+
export interface IStickyBarProps {
|
|
353
|
+
children: ReactNode;
|
|
354
|
+
/**
|
|
355
|
+
* Set columnstart in Desktop
|
|
356
|
+
*/
|
|
357
|
+
columnStartDesktop?: number;
|
|
358
|
+
/**
|
|
359
|
+
* Set columnSpan in Desktop
|
|
360
|
+
*/
|
|
361
|
+
columnSpanDesktop?: number;
|
|
362
|
+
/**
|
|
363
|
+
* Set columnstart in Device
|
|
364
|
+
*/
|
|
365
|
+
columnStartDevice?: number;
|
|
366
|
+
/**
|
|
367
|
+
* Set columnSpam in Device
|
|
368
|
+
*/
|
|
369
|
+
columnSpanDevice?: number;
|
|
370
|
+
/**
|
|
371
|
+
* Hide bottom border line
|
|
372
|
+
*/
|
|
373
|
+
hideBottomBorder?: boolean;
|
|
374
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Colors } from './types';
|
|
2
|
+
export interface IPasswordStrengthProps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of sections to show
|
|
5
|
+
*
|
|
6
|
+
* Default: 6
|
|
7
|
+
*/
|
|
8
|
+
sections?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Number of active sections
|
|
11
|
+
*
|
|
12
|
+
* Default: 0
|
|
13
|
+
*/
|
|
14
|
+
activeSections?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Color of non-active sections
|
|
17
|
+
*
|
|
18
|
+
* Default: Colors.MidGrey
|
|
19
|
+
*/
|
|
20
|
+
sectionsColor?: Colors;
|
|
21
|
+
/**
|
|
22
|
+
* Color of active sections
|
|
23
|
+
*
|
|
24
|
+
* Default: Colors.Black
|
|
25
|
+
*/
|
|
26
|
+
activeSectionsColor?: Colors;
|
|
27
|
+
/**
|
|
28
|
+
* Text
|
|
29
|
+
*
|
|
30
|
+
* Default: ""
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text color
|
|
35
|
+
*
|
|
36
|
+
* Default: Colors.Black
|
|
37
|
+
*/
|
|
38
|
+
textColor?: Colors;
|
|
39
|
+
/**
|
|
40
|
+
* Strength label text
|
|
41
|
+
*
|
|
42
|
+
* Default: ""
|
|
43
|
+
*/
|
|
44
|
+
strengthLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Strength label text
|
|
47
|
+
*
|
|
48
|
+
* Default: Colors.Black
|
|
49
|
+
*/
|
|
50
|
+
strengthLabelColor?: Colors;
|
|
51
|
+
}
|