@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,255 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { StyledProps } from 'styled-components';
|
|
3
|
+
import { ButtonType } from './buttonTypes';
|
|
4
|
+
import { DirectionType, IconNameType } from './iconTypes';
|
|
5
|
+
import { Colors, IVideoWithControlsSettings } from './types';
|
|
6
|
+
import { TypographyLevel } from './typography';
|
|
7
|
+
export interface IEditorialProps {
|
|
8
|
+
/**
|
|
9
|
+
* Text placed in the editorial component
|
|
10
|
+
*/
|
|
11
|
+
text: string;
|
|
12
|
+
/**
|
|
13
|
+
* Subtitle placed in the editorial component
|
|
14
|
+
*/
|
|
15
|
+
subtitle?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Position of the image in the editorial component
|
|
18
|
+
*/
|
|
19
|
+
imagePosition?: 'left' | 'right';
|
|
20
|
+
/**
|
|
21
|
+
* Image tag or component to be displayed in the editorial component with aspect ratio 1:1
|
|
22
|
+
*/
|
|
23
|
+
children: ReactElement<HTMLImageElement>;
|
|
24
|
+
}
|
|
25
|
+
export interface IEditorialGridProps {
|
|
26
|
+
/**
|
|
27
|
+
* Sets if the image will be placed in the right (false) or the left (true)
|
|
28
|
+
*/
|
|
29
|
+
imageToLeft?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Set the length of primary button text
|
|
32
|
+
*/
|
|
33
|
+
primaryButtonTextLength?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Set the length of tertiary button text
|
|
36
|
+
*/
|
|
37
|
+
tertiaryButtonTextLength?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates if component has block for the text links
|
|
40
|
+
*/
|
|
41
|
+
hasTextLinks?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates if component should be hidden
|
|
44
|
+
*/
|
|
45
|
+
hideSection?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Modifies styles to fixed height card
|
|
48
|
+
*/
|
|
49
|
+
asCard?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
52
|
+
/**
|
|
53
|
+
* Text inside the link
|
|
54
|
+
*/
|
|
55
|
+
text: string;
|
|
56
|
+
/**
|
|
57
|
+
* Function to be called when a button is clicked
|
|
58
|
+
*/
|
|
59
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
60
|
+
/**
|
|
61
|
+
* Name of the icon to be used in the button
|
|
62
|
+
*/
|
|
63
|
+
iconName?: IconNameType;
|
|
64
|
+
/**
|
|
65
|
+
* Direction of the icon used in the button
|
|
66
|
+
*/
|
|
67
|
+
iconDirection?: DirectionType;
|
|
68
|
+
/**
|
|
69
|
+
* Color of text and icon
|
|
70
|
+
*/
|
|
71
|
+
color?: Colors;
|
|
72
|
+
/**
|
|
73
|
+
* background color
|
|
74
|
+
*/
|
|
75
|
+
bgColor?: Colors;
|
|
76
|
+
/**
|
|
77
|
+
* type of the button to be rendered; When not passed the Primary and Tetriary are displayed by default;
|
|
78
|
+
*/
|
|
79
|
+
buttonType?: ButtonType;
|
|
80
|
+
};
|
|
81
|
+
export declare type PromoLinks = [EditorialLink, EditorialLink?];
|
|
82
|
+
export interface IPromoWithTitleProps {
|
|
83
|
+
/**
|
|
84
|
+
* Text placed in the editorial component
|
|
85
|
+
*/
|
|
86
|
+
text?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Text placed in the editorial component
|
|
89
|
+
*/
|
|
90
|
+
title: string;
|
|
91
|
+
/**
|
|
92
|
+
* Text placed in the editorial component
|
|
93
|
+
*/
|
|
94
|
+
titleSize?: 'small' | 'large';
|
|
95
|
+
/**
|
|
96
|
+
* Subtitle placed in the editorial component
|
|
97
|
+
*/
|
|
98
|
+
subtitle?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Position of the image in the editorial component
|
|
101
|
+
*/
|
|
102
|
+
imagePosition?: 'left' | 'right';
|
|
103
|
+
/**
|
|
104
|
+
* Image tag with aspect ratio 4:3 or video tag with aspect ratio 16:9 (desktop) or 1:1 (mobile)
|
|
105
|
+
*/
|
|
106
|
+
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
107
|
+
/**
|
|
108
|
+
* Settings for the VideoWithControls component.
|
|
109
|
+
*/
|
|
110
|
+
videoSettings?: IVideoWithControlsSettings;
|
|
111
|
+
/**
|
|
112
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
113
|
+
*/
|
|
114
|
+
links?: PromoLinks;
|
|
115
|
+
/**
|
|
116
|
+
* Semantic level of the title. Default is 2.
|
|
117
|
+
*/
|
|
118
|
+
titleSemanticLevel?: TypographyLevel;
|
|
119
|
+
}
|
|
120
|
+
export interface IThemePageHeadingProps {
|
|
121
|
+
/**
|
|
122
|
+
* Title placed in the page heading component
|
|
123
|
+
*/
|
|
124
|
+
title: string;
|
|
125
|
+
/**
|
|
126
|
+
* Text placed in the page heading component
|
|
127
|
+
*/
|
|
128
|
+
text?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Link placed in the page heading component
|
|
131
|
+
*/
|
|
132
|
+
link?: EditorialLink;
|
|
133
|
+
/**
|
|
134
|
+
* Boolean to show/hide sponsorship logo (default true)
|
|
135
|
+
*/
|
|
136
|
+
sponsor?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Semantic level of the title. Default is 1.
|
|
139
|
+
*/
|
|
140
|
+
semanticLevel?: TypographyLevel;
|
|
141
|
+
/**
|
|
142
|
+
* Character limit for the text
|
|
143
|
+
*/
|
|
144
|
+
copyCharLimit?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Character limit for the title
|
|
147
|
+
*/
|
|
148
|
+
titleCharLimit?: number;
|
|
149
|
+
}
|
|
150
|
+
export interface IPageHeadingProps extends IThemePageHeadingProps {
|
|
151
|
+
/**
|
|
152
|
+
* Logo to be placed in page heading component
|
|
153
|
+
*/
|
|
154
|
+
children?: ReactNode;
|
|
155
|
+
}
|
|
156
|
+
export interface IImpactWrappersStyledProps extends StyledProps<any> {
|
|
157
|
+
/**
|
|
158
|
+
* Background url for desktops
|
|
159
|
+
*/
|
|
160
|
+
bgUrlDesktop: string;
|
|
161
|
+
/**
|
|
162
|
+
* Background url for devices
|
|
163
|
+
*/
|
|
164
|
+
bgUrlDevice?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface IHighlightsHeaderProps {
|
|
167
|
+
/**
|
|
168
|
+
* Text placed in the editorial component
|
|
169
|
+
*/
|
|
170
|
+
title: string;
|
|
171
|
+
/**
|
|
172
|
+
* Subtitle placed in the editorial component
|
|
173
|
+
*/
|
|
174
|
+
subtitle?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Text placed in the editorial component
|
|
177
|
+
*/
|
|
178
|
+
text?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Explanation
|
|
181
|
+
*/
|
|
182
|
+
images?: Array<ImgHTMLAttributes<HTMLImageElement>>;
|
|
183
|
+
}
|
|
184
|
+
export declare type IContentSummaryLink = Omit<EditorialLink, 'buttonType' | 'bgColor' | 'iconName' | 'iconDirection'>;
|
|
185
|
+
interface IContentSummaryImageProps {
|
|
186
|
+
/**
|
|
187
|
+
* URL of the content summary image
|
|
188
|
+
*/
|
|
189
|
+
src: string;
|
|
190
|
+
/**
|
|
191
|
+
* Alt text of the content summary image
|
|
192
|
+
*/
|
|
193
|
+
alt?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface IContentSummaryProps {
|
|
196
|
+
/**
|
|
197
|
+
* Title for content summary
|
|
198
|
+
*/
|
|
199
|
+
title?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Subtitle field, used, e.g. for date in News summaries
|
|
202
|
+
*/
|
|
203
|
+
subtitle?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Main text area for content summary item
|
|
206
|
+
*/
|
|
207
|
+
bodyText?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Link object with text for cta, can also have <a> tag attributes href, target etc...
|
|
210
|
+
*/
|
|
211
|
+
link?: IContentSummaryLink;
|
|
212
|
+
/**
|
|
213
|
+
* Image to display in the component with aspect ratio 1.3:1
|
|
214
|
+
*/
|
|
215
|
+
image?: IContentSummaryImageProps;
|
|
216
|
+
/**
|
|
217
|
+
* Show an image to the left of the text or not
|
|
218
|
+
*/
|
|
219
|
+
showImage?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Display a larger title for e.g. displaying search results
|
|
222
|
+
*/
|
|
223
|
+
largeTitle?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Truncate the body text after the given number of lines
|
|
226
|
+
*/
|
|
227
|
+
truncate?: number;
|
|
228
|
+
/**
|
|
229
|
+
* Option to make the entire component clickable for search results
|
|
230
|
+
*/
|
|
231
|
+
fullyClickable?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* The base semantic header level for the component: 1 | 2 | 3 | 4 | 5 | 6
|
|
234
|
+
*/
|
|
235
|
+
baseSemanticLevel?: TypographyLevel;
|
|
236
|
+
}
|
|
237
|
+
export interface IPanelHeadingProps {
|
|
238
|
+
/**
|
|
239
|
+
* Content to display in the left hand panel
|
|
240
|
+
*/
|
|
241
|
+
info: ReactElement<HTMLElement>;
|
|
242
|
+
/**
|
|
243
|
+
* Image to display in the right hand panel, aspect ratio 4:3
|
|
244
|
+
*/
|
|
245
|
+
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
246
|
+
/**
|
|
247
|
+
* Colour of the info panel background
|
|
248
|
+
*/
|
|
249
|
+
color?: Colors;
|
|
250
|
+
/**
|
|
251
|
+
* Reference of the div to scroll to when clicking on Scroll Down
|
|
252
|
+
*/
|
|
253
|
+
scrollTo?: string;
|
|
254
|
+
}
|
|
255
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IconNameType } from './iconTypes';
|
|
2
|
+
export declare type CommonLink = {
|
|
3
|
+
href: string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataRoh: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type PolicyLink = CommonLink & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type SocialMediaLink = {
|
|
11
|
+
dataRoh: string;
|
|
12
|
+
name: IconNameType;
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type ExternalLink = CommonLink & {
|
|
16
|
+
target?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type Newsletter = {
|
|
19
|
+
text: string;
|
|
20
|
+
link: CommonLink;
|
|
21
|
+
};
|
|
22
|
+
export declare type FooterData = {
|
|
23
|
+
policyLinks: PolicyLink[];
|
|
24
|
+
socialMediaLinks: SocialMediaLink[];
|
|
25
|
+
newsletter: Newsletter;
|
|
26
|
+
contact: CommonLink;
|
|
27
|
+
artsLogo: ExternalLink;
|
|
28
|
+
additionalInfo: string;
|
|
29
|
+
};
|
|
30
|
+
export interface IFooterProps {
|
|
31
|
+
data: FooterData;
|
|
32
|
+
}
|
|
33
|
+
export interface IPolicyLinksProps {
|
|
34
|
+
items: PolicyLink[];
|
|
35
|
+
}
|
|
36
|
+
export interface IContactNewsletterProps {
|
|
37
|
+
signUpText: string;
|
|
38
|
+
signUpLink: CommonLink;
|
|
39
|
+
socialMediaLinks: SocialMediaLink[];
|
|
40
|
+
contact: CommonLink;
|
|
41
|
+
}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { IGridItemProps } from './types';
|
|
3
|
+
import Select from 'react-select';
|
|
4
|
+
import SelectAsync from 'react-select/async';
|
|
5
|
+
export interface ITextAreaProps extends Partial<IGridItemProps>, InputHTMLAttributes<HTMLTextAreaElement> {
|
|
6
|
+
/**
|
|
7
|
+
* A text label to be shown above the text area input box.
|
|
8
|
+
*
|
|
9
|
+
* Default: `undefined`
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* An error message to be shown below the text area input box.
|
|
14
|
+
*
|
|
15
|
+
* Default: `undefined`
|
|
16
|
+
*/
|
|
17
|
+
error?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Width in pixels.
|
|
20
|
+
*
|
|
21
|
+
* Default: 100% container width
|
|
22
|
+
*/
|
|
23
|
+
width?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Height in pixels..
|
|
26
|
+
*
|
|
27
|
+
* Default: `200px`
|
|
28
|
+
*/
|
|
29
|
+
height?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Specify whether or not the containing element has a dark background.
|
|
32
|
+
* This property affects the border colours for focused and error states.
|
|
33
|
+
*
|
|
34
|
+
* Default: `false`
|
|
35
|
+
*/
|
|
36
|
+
darkMode?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare type ITextFieldType = 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url';
|
|
39
|
+
export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
40
|
+
/**
|
|
41
|
+
* A text label to be shown above the text input field.
|
|
42
|
+
*/
|
|
43
|
+
label?: string;
|
|
44
|
+
/**
|
|
45
|
+
* An error label to be shown below the text input field.
|
|
46
|
+
* Input will be rendered with a red border if this prop exist.
|
|
47
|
+
* Empty string can be passed to render only error state without
|
|
48
|
+
* error message.
|
|
49
|
+
*/
|
|
50
|
+
error?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Type of text field.
|
|
53
|
+
* It can be one of: `text`, `email`, `password`,
|
|
54
|
+
* `number`, `search`, `tel`, `url`.
|
|
55
|
+
* `password` type adds `Show/Hide` button over the input element.
|
|
56
|
+
* Any other types don't change the view of the element, just change
|
|
57
|
+
* accessibility stuff
|
|
58
|
+
*/
|
|
59
|
+
type?: ITextFieldType;
|
|
60
|
+
/**
|
|
61
|
+
* A style prop that allows us to change what colours to
|
|
62
|
+
* use for light or dark mode (e.g. text color, border color, etc...)
|
|
63
|
+
* based on the background color.
|
|
64
|
+
*
|
|
65
|
+
* Defaults to `false`.
|
|
66
|
+
*/
|
|
67
|
+
darkMode?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Width in pixels.
|
|
70
|
+
* This will limit the maximum width of input element.
|
|
71
|
+
* By default it will take all available space.
|
|
72
|
+
*/
|
|
73
|
+
width?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface ITickbox2Props extends InputHTMLAttributes<HTMLInputElement> {
|
|
76
|
+
/**
|
|
77
|
+
* The content of tickbox
|
|
78
|
+
*/
|
|
79
|
+
children: React.ReactNode;
|
|
80
|
+
/**
|
|
81
|
+
* An error label to be shown below the tickbox.
|
|
82
|
+
* Tickbox will be rendered with a red border if this prop exist.
|
|
83
|
+
* Empty string can be passed to render only error state without
|
|
84
|
+
* error message.
|
|
85
|
+
*/
|
|
86
|
+
error?: string;
|
|
87
|
+
/**
|
|
88
|
+
* A style prop that allows us to change what colours to
|
|
89
|
+
* use for light or dark mode (e.g. text color, border color, etc...)
|
|
90
|
+
* based on the background color.
|
|
91
|
+
*
|
|
92
|
+
* Defaults to `false`.
|
|
93
|
+
*/
|
|
94
|
+
darkMode?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Use a black background and white checkmark for the tickbox.
|
|
97
|
+
* This style was used before as a default. Not preferred in new components.
|
|
98
|
+
*
|
|
99
|
+
* Defaults to `false`.
|
|
100
|
+
*/
|
|
101
|
+
blackBox?: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface IRadio2Props extends InputHTMLAttributes<HTMLInputElement> {
|
|
104
|
+
/**
|
|
105
|
+
* The content of radio
|
|
106
|
+
*/
|
|
107
|
+
children: React.ReactNode;
|
|
108
|
+
/**
|
|
109
|
+
* An error label to be shown below the radio.
|
|
110
|
+
* Radio will be rendered with a red border if this prop exist.
|
|
111
|
+
* Empty string can be passed to render only error state without
|
|
112
|
+
* error message.
|
|
113
|
+
*/
|
|
114
|
+
error?: string;
|
|
115
|
+
/**
|
|
116
|
+
* A style prop that allows us to change what colours to
|
|
117
|
+
* use for light or dark mode (e.g. text color, border color, etc...)
|
|
118
|
+
* based on the background color.
|
|
119
|
+
*
|
|
120
|
+
* Defaults to `false`.
|
|
121
|
+
*/
|
|
122
|
+
darkMode?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Use a black background and white checkmark for the radio.
|
|
125
|
+
* This style was used before as a default. Not preferred in new components.
|
|
126
|
+
*
|
|
127
|
+
* Defaults to `false`.
|
|
128
|
+
*/
|
|
129
|
+
blackBox?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export interface IRadioGroup2Radio {
|
|
132
|
+
content: React.ReactNode;
|
|
133
|
+
value: string | number;
|
|
134
|
+
}
|
|
135
|
+
export interface IRadioGroup2Props {
|
|
136
|
+
/**
|
|
137
|
+
* Array of radios
|
|
138
|
+
*/
|
|
139
|
+
radios: IRadioGroup2Radio[];
|
|
140
|
+
/**
|
|
141
|
+
* Name property for radios.
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* Render radios horizontally.
|
|
146
|
+
*
|
|
147
|
+
* Defaults to `false`.
|
|
148
|
+
*/
|
|
149
|
+
horizontalMode?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Callback on change of radio.
|
|
152
|
+
*/
|
|
153
|
+
onChange?: (value: string) => void;
|
|
154
|
+
/**
|
|
155
|
+
* Value of default checked radio.
|
|
156
|
+
*/
|
|
157
|
+
defaultValue?: string | number;
|
|
158
|
+
/**
|
|
159
|
+
* Distance between radio elements in px.
|
|
160
|
+
*
|
|
161
|
+
* Defaults to `30`.
|
|
162
|
+
*/
|
|
163
|
+
gap?: number;
|
|
164
|
+
/**
|
|
165
|
+
* An error label to be shown below the radiogroup.
|
|
166
|
+
* Radios will be rendered with a red border if this prop exist.
|
|
167
|
+
* Empty string can be passed to render only error state without
|
|
168
|
+
* error message.
|
|
169
|
+
*/
|
|
170
|
+
error?: string;
|
|
171
|
+
/**
|
|
172
|
+
* A style prop that allows us to change what colours to
|
|
173
|
+
* use for light or dark mode (e.g. text color, border color, etc...)
|
|
174
|
+
* based on the background color.
|
|
175
|
+
*
|
|
176
|
+
* Defaults to `false`.
|
|
177
|
+
*/
|
|
178
|
+
darkMode?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Use a black background and white checkmark for the radio.
|
|
181
|
+
* This style was used before as a default. Not preferred in new components.
|
|
182
|
+
*
|
|
183
|
+
* Defaults to `false`.
|
|
184
|
+
*/
|
|
185
|
+
blackBox?: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface IOption<T> {
|
|
188
|
+
text: string;
|
|
189
|
+
readonly value: T;
|
|
190
|
+
}
|
|
191
|
+
export interface ISelectProps<T = unknown> {
|
|
192
|
+
/** The text label to be shown above the select component. */
|
|
193
|
+
label: string;
|
|
194
|
+
/**
|
|
195
|
+
* The options of the select component.
|
|
196
|
+
* If not provided OR provided an empty array,
|
|
197
|
+
* the component will be disabled.
|
|
198
|
+
*/
|
|
199
|
+
options: readonly IOption<T>[];
|
|
200
|
+
/**
|
|
201
|
+
* Function to be ran when an option is selected.
|
|
202
|
+
*/
|
|
203
|
+
onSelect: (value: IOption<T>['value'], text: IOption<T>['text']) => void;
|
|
204
|
+
/**
|
|
205
|
+
* Disables the select component
|
|
206
|
+
*/
|
|
207
|
+
disabled?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Style prop - sets the width of the select component in px.
|
|
210
|
+
*/
|
|
211
|
+
width?: number | 'default';
|
|
212
|
+
/**
|
|
213
|
+
* Style prop - sets the height of the select component in px.
|
|
214
|
+
*/
|
|
215
|
+
height?: number | 'default';
|
|
216
|
+
/**
|
|
217
|
+
* Opt-in to resetting the selected value to the first option,
|
|
218
|
+
* when the options change.
|
|
219
|
+
* Defaults to `false`;
|
|
220
|
+
*/
|
|
221
|
+
resetWhenOptionsUpdate?: boolean;
|
|
222
|
+
}
|
|
223
|
+
interface ISelect2MainProps {
|
|
224
|
+
/**
|
|
225
|
+
* A text label to be shown above the text input field.
|
|
226
|
+
*/
|
|
227
|
+
label?: string;
|
|
228
|
+
/**
|
|
229
|
+
* An error label to be shown below the text input field.
|
|
230
|
+
* Input will be rendered with a red border if this prop exist.
|
|
231
|
+
* Empty string can be passed to render only error state without
|
|
232
|
+
* error message.
|
|
233
|
+
*/
|
|
234
|
+
error?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Width in pixels.
|
|
237
|
+
* This will limit the maximum width of input element.
|
|
238
|
+
* By default it will take all available space.
|
|
239
|
+
*/
|
|
240
|
+
width?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Specify whether or not the containing element has a dark background.
|
|
243
|
+
* This property affects the border colours for focused and error states.
|
|
244
|
+
*
|
|
245
|
+
* Default: `false`
|
|
246
|
+
*/
|
|
247
|
+
darkMode?: boolean;
|
|
248
|
+
}
|
|
249
|
+
export declare type ISelect2Props = ISelect2MainProps & React.ComponentProps<typeof Select>;
|
|
250
|
+
export declare type ISelect2AsyncProps = ISelect2MainProps & React.ComponentProps<typeof SelectAsync>;
|
|
251
|
+
export interface IStepperProps {
|
|
252
|
+
/** The initial value to display in the center of the element */
|
|
253
|
+
initialValue?: number;
|
|
254
|
+
/**
|
|
255
|
+
* Function to call when the left, minus button is clicked
|
|
256
|
+
*/
|
|
257
|
+
minusAction?: () => void;
|
|
258
|
+
/**
|
|
259
|
+
* Function to call when the right, plus button is clicked
|
|
260
|
+
*/
|
|
261
|
+
plusAction?: () => void;
|
|
262
|
+
/**
|
|
263
|
+
* Amount to increment and decrement by
|
|
264
|
+
*/
|
|
265
|
+
step?: number;
|
|
266
|
+
/** An error message to be shown below the stepper.
|
|
267
|
+
*
|
|
268
|
+
* Default: `undefined`
|
|
269
|
+
*/
|
|
270
|
+
error?: string;
|
|
271
|
+
/**
|
|
272
|
+
* A style prop that allows us to change what colours to
|
|
273
|
+
* use for light or dark mode (e.g. text color, border color, etc...)
|
|
274
|
+
* based on the background color.
|
|
275
|
+
*
|
|
276
|
+
* Defaults to `false`.
|
|
277
|
+
*/
|
|
278
|
+
darkMode?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Set disapled state
|
|
281
|
+
*/
|
|
282
|
+
disabled?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Minimum value allowed in the stepper
|
|
285
|
+
*/
|
|
286
|
+
min?: number;
|
|
287
|
+
/**
|
|
288
|
+
* Maximum value allowed in the stepper
|
|
289
|
+
*/
|
|
290
|
+
max?: number;
|
|
291
|
+
/**
|
|
292
|
+
* Description of the stepper function for screen readers,
|
|
293
|
+
* e.g. "Number of tickets"
|
|
294
|
+
*/
|
|
295
|
+
accessibleName?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface IRadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
298
|
+
/**
|
|
299
|
+
* A text label to be shown to the right of the radio.
|
|
300
|
+
*
|
|
301
|
+
* Default: `undefined`
|
|
302
|
+
*/
|
|
303
|
+
label?: string;
|
|
304
|
+
/**
|
|
305
|
+
* An error message to be shown to the right of the radio button.
|
|
306
|
+
*
|
|
307
|
+
* Default: `undefined`
|
|
308
|
+
*/
|
|
309
|
+
error?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Callback on change of radio checked state.
|
|
312
|
+
*/
|
|
313
|
+
onChange?: (label: string) => void;
|
|
314
|
+
}
|
|
315
|
+
export interface IRadioGroupProps extends Partial<IGridItemProps> {
|
|
316
|
+
/**
|
|
317
|
+
* Array of Radio Props
|
|
318
|
+
*/
|
|
319
|
+
radios?: IRadioProps[];
|
|
320
|
+
/**
|
|
321
|
+
* Callback on change of radio group checked state.
|
|
322
|
+
*/
|
|
323
|
+
onChange?: (checkedRadio: IRadioProps | undefined) => void;
|
|
324
|
+
}
|
|
325
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Directions } from '../components/atoms/Icons/Icons.style';
|
|
2
|
+
import { IconLibrary } from '../components/atoms/Icons/SvgIcons';
|
|
3
|
+
export declare type DirectionType = keyof typeof Directions;
|
|
4
|
+
export declare type IconNameType = keyof typeof IconLibrary;
|
|
5
|
+
export interface IIconStyledProps {
|
|
6
|
+
color?: string;
|
|
7
|
+
direction?: DirectionType;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IconSVGProps {
|
|
11
|
+
color?: string;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IIconProps {
|
|
15
|
+
/**
|
|
16
|
+
* Extra CSS className to add to the element.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Colour override - for components it is better to use themes instead.
|
|
21
|
+
*/
|
|
22
|
+
color?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Used for accessibility.
|
|
25
|
+
*/
|
|
26
|
+
title?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Direction to use, 'right' by default.
|
|
29
|
+
*/
|
|
30
|
+
direction?: DirectionType;
|
|
31
|
+
/**
|
|
32
|
+
* Icon to display.
|
|
33
|
+
*/
|
|
34
|
+
iconName: IconNameType;
|
|
35
|
+
/**
|
|
36
|
+
* Descriptive alt text for Assistive Tech.
|
|
37
|
+
*/
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { StyledProps } from 'styled-components';
|
|
3
|
+
export declare enum AspectRatio {
|
|
4
|
+
'1:1' = "1 / 1",
|
|
5
|
+
'3:4' = "3 / 4",
|
|
6
|
+
'4:3' = "4 / 3",
|
|
7
|
+
'3:2' = "3 / 2",
|
|
8
|
+
'16:9' = "16 / 9"
|
|
9
|
+
}
|
|
10
|
+
export declare enum AspectRatioLegacy {
|
|
11
|
+
'1 / 1' = "100",
|
|
12
|
+
'3 / 4' = "133",
|
|
13
|
+
'4 / 3' = "75",
|
|
14
|
+
'3 / 2' = "66.67",
|
|
15
|
+
'16 / 9' = "56.25"
|
|
16
|
+
}
|
|
17
|
+
export declare enum AspectRatioWidth {
|
|
18
|
+
'1 / 1' = "1",
|
|
19
|
+
'3 / 4' = "0.75",
|
|
20
|
+
'4 / 3' = "1.33",
|
|
21
|
+
'3 / 2' = "1.5",
|
|
22
|
+
'16 / 9' = "1.78"
|
|
23
|
+
}
|
|
24
|
+
export interface IImageAspectRatioWrapperProps {
|
|
25
|
+
/**
|
|
26
|
+
* Aspect ratio of the contained image
|
|
27
|
+
*/
|
|
28
|
+
aspectRatio?: AspectRatio;
|
|
29
|
+
}
|
|
30
|
+
export interface IImageWithCaptionProps {
|
|
31
|
+
/**
|
|
32
|
+
* Aspect ratio of the contained image
|
|
33
|
+
*/
|
|
34
|
+
aspectRatio?: AspectRatio;
|
|
35
|
+
/**
|
|
36
|
+
* Image caption or credit
|
|
37
|
+
*/
|
|
38
|
+
caption: string;
|
|
39
|
+
/**
|
|
40
|
+
* Image element
|
|
41
|
+
*/
|
|
42
|
+
children: ReactElement<HTMLImageElement>;
|
|
43
|
+
}
|
|
44
|
+
export interface IImageWithCaptionWrapperProps extends StyledProps<any> {
|
|
45
|
+
/**
|
|
46
|
+
* Aspect ratio of the contained image
|
|
47
|
+
*/
|
|
48
|
+
aspectRatio?: AspectRatio;
|
|
49
|
+
/**
|
|
50
|
+
* Height of the wrapper
|
|
51
|
+
*/
|
|
52
|
+
height: number;
|
|
53
|
+
}
|