@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 horacio.ayestaran
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# Royal Opera House Harmonic - Front End Design System
|
|
2
|
+
|
|
3
|
+
Welcome to The Royal Opera House Front End Design System, `@royaloperahouse/harmonic`
|
|
4
|
+
|
|
5
|
+
This package is a library of UI components intended to be used in the ROH website.
|
|
6
|
+
|
|
7
|
+
It uses React, TypeScript, TSDX and Storybook.
|
|
8
|
+
|
|
9
|
+
The NPM packages are published at [coming soon](https://www.npmjs.com/package/@royaloperahouse/harmonic)
|
|
10
|
+
|
|
11
|
+
The Storybook for the latest version of the library is hosted at [coming soon]()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Prerequisites
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
* Make sure the required package dependencies are installed using `yarn install`
|
|
18
|
+
|
|
19
|
+
* If this is the first time you are working on Harmonic, make sure to run `yarn build` to build all the modules.
|
|
20
|
+
|
|
21
|
+
* **To deploy the storybook publicly** you will need credentials for the **parent** 'Royal Opera House' AWS account in your `~/.aws/credentials` file.
|
|
22
|
+
* The deploy script expects these to be called `[parent]`.
|
|
23
|
+
|
|
24
|
+
* You can find these values at:
|
|
25
|
+
|
|
26
|
+
*AWS 'Your Applications' page -> 'Royal Opera House' -> 'Developer Access' -> 'Command line or programmatic access'*
|
|
27
|
+
|
|
28
|
+
* **To deploy a preview** for demo / QA you will need the `CHROMATIC_PROJECT_TOKEN` -- find this in 1Password
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* **To publish the NPM package** you will need the ROH `NPM_TOKEN` -- find this in 1Password
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Versioning
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
We use [Semantic Versioning](https://semver.org/) for Harmonic.
|
|
38
|
+
|
|
39
|
+
Given a version number MAJOR.MINOR.PATCH, increment the:
|
|
40
|
+
|
|
41
|
+
* MAJOR version when you make incompatible library changes
|
|
42
|
+
* MINOR version when you add functionality in a backwards compatible manner
|
|
43
|
+
* PATCH version when you make backwards compatible bug fixes
|
|
44
|
+
|
|
45
|
+
When you create a new release always update the `CHANGELOG` and `package.json`
|
|
46
|
+
|
|
47
|
+
Increment your version from the latest stable version on (WIP)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Deploying the Storybook
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### **1. To build and deploy locally**
|
|
54
|
+
|
|
55
|
+
You can quickly build and serve the contents of `/storybook-static` from your local machine, for development and manual testing. To do this run:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
yarn storybook
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
By default the storybook will be accessible at
|
|
62
|
+
[http://localhost:6006/]()
|
|
63
|
+
|
|
64
|
+
The server will hot-reload on most changes.
|
|
65
|
+
|
|
66
|
+
### **2. To deploy a preview version remotely**
|
|
67
|
+
|
|
68
|
+
You can deploy a release candidate, or work-in-progress to [Chromatic](https://www.chromatic.com/) for showcase or QA.
|
|
69
|
+
|
|
70
|
+
**NOTE:** you will need the `CHROMATIC_PROJECT_TOKEN` as described in *Prerequisites* above.
|
|
71
|
+
|
|
72
|
+
Either set the token as a shell variable or use a `.env` file in the (WIP) root directory containing the token, as so:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
CHROMATIC_PROJECT_TOKEN=tokengoeshere
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Run:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
yarn deploy-storybook-dev
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
to build and deploy the storybook from your repo to Chromatic.
|
|
85
|
+
|
|
86
|
+
You will find the address of your deployed storybook in the console output, looking something like this:
|
|
87
|
+
|
|
88
|
+
`→ View your Storybook at https://randomHexString-randomAlphabeticalString.chromatic.com`
|
|
89
|
+
|
|
90
|
+
### **3. To deploy a release version**
|
|
91
|
+
|
|
92
|
+
You can deploy the contents of `./storybook-static` to S3 as a static site, which is permanently accessible at [WIP]()
|
|
93
|
+
|
|
94
|
+
**NOTE:** To do this you will need the correct `AWS` credentials set up, as described in *Prerequisites* above.
|
|
95
|
+
|
|
96
|
+
First build the storybook using:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
yarn build-storybook
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
then run:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
yarn deploy-storybook
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
> **IMPORTANT:** This URL is intended to showcase the latest stable version of (WIP), it should be kept up to date with the main (WIP) branch and should **only** be used for release versions. If you want to deploy a development version follow the steps above under *To deploy a preview version remotely*.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## Releasing a New Package Version
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
This is the procedure for releasing a new Harmonic NPM package.
|
|
115
|
+
|
|
116
|
+
There are two types of package:
|
|
117
|
+
|
|
118
|
+
A **snapshot** can be published to use a development version of the (WIP) library in our frontend staging environments, to perform integrated, manual testing.
|
|
119
|
+
|
|
120
|
+
A **stable** package is published for use in production.
|
|
121
|
+
|
|
122
|
+
**NOTE:** You will need the `NPM_TOKEN`, as described in 'Prerequisites' above.
|
|
123
|
+
|
|
124
|
+
### **1. To release a snapshot version**
|
|
125
|
+
|
|
126
|
+
> **IMPORTANT:** Make sure you always publish your **snapshots** from (WIP) after merging in your feature branch.
|
|
127
|
+
|
|
128
|
+
For snapshots, `RELEASE_VERSION` should be the same as the latest **stable** version of the (WIP) Library, as found in (WIP), followed by an **unused** lowercase letter.
|
|
129
|
+
|
|
130
|
+
For example, if the latest stable release was 1.42.0, and the last snapshot published to NPM was 1.42.0-w, you would use RELEASE_VERSION `1.42.0-x`
|
|
131
|
+
|
|
132
|
+
To publish a snapshot use:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-snapshot
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The version published to NPM will be named, e.g. `1.42.0-a-harmonic-development`, use this to install the snapshot package in the frontend repos.
|
|
139
|
+
|
|
140
|
+
### **2. To release a stable version**
|
|
141
|
+
|
|
142
|
+
> **IMPORTANT:** Make sure you always publish your **stable** packages from (WIP) after merging in your feature branch.
|
|
143
|
+
|
|
144
|
+
For stable releases, increment your version from the latest **stable** version found on (WIP), following the rules described in *Versioning* above, and use this as `RELEASE_VERSION`. (Make sure it matches the version in your `package.json` and `CHANGELOG.md`!)
|
|
145
|
+
|
|
146
|
+
To publish a stable package use:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
wip
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## Using the Package
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
The package is deployed to NPM, and can be installed using yarn or npm:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm i --save @royaloperahouse/harmonic
|
|
160
|
+
```
|
|
161
|
+
```bash
|
|
162
|
+
yarn add @royaloperahouse/harmonic
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## Testing
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
To **Lint** the package use:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
yarn lint
|
|
173
|
+
# Use the --fix option to perform automatic fixes
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
To run the **unit tests** (using Jest) use:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
yarn test
|
|
180
|
+
|
|
181
|
+
# Use the -u option to update snapshots if needed
|
|
182
|
+
# Run `yarn test:watch` to re-run tests on changes
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
To **run and and store the unit tests** for display in storybook use:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
yarn test-storybook
|
|
189
|
+
# Use the -u option to update snapshots if needed
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
## Development Process
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
### **1. Branching Model**
|
|
197
|
+
* The (WIP) project lives in the `roh-components` *monorepo*
|
|
198
|
+
* When working on WIP, treat the (WIP) directory as your root
|
|
199
|
+
* The WIP **development** branch is currently WIP
|
|
200
|
+
* The WIP **main** branch is currently WIP
|
|
201
|
+
* All work should be done on a correctly named **feature branch** of the format: `issueType/ticketNumber-short-description-of-feature`, e.g. WIP
|
|
202
|
+
* Always create your feature branch FROM, and submit pull requests TO, the **main** branch
|
|
203
|
+
* For **QA / UAT** of a WIP component in isolation: following review you should deploy a preview version to Chromatic straight from your **feature branch** _without_ merging to development
|
|
204
|
+
* For releasing an **NPM snapshot**: merge your feature branch into the **development** branch and publish the NPM snapshot from there
|
|
205
|
+
|
|
206
|
+
### **2. Detailed Workflow**
|
|
207
|
+
|
|
208
|
+
#### **Before review:**
|
|
209
|
+
|
|
210
|
+
* Git pull the latest version of WIP
|
|
211
|
+
* Checkout a new, correctly-named feature branch from WIP
|
|
212
|
+
* Do your work on this feature branch
|
|
213
|
+
* Run: `yarn lint`
|
|
214
|
+
* Run: `yarn test`
|
|
215
|
+
* Commit your changes
|
|
216
|
+
* Create a pull request from your feature branch to WIP
|
|
217
|
+
* Add the appropriate reviewers
|
|
218
|
+
|
|
219
|
+
#### **Before QA / UAT:**
|
|
220
|
+
|
|
221
|
+
After your PR is approved, you have two options:
|
|
222
|
+
|
|
223
|
+
**i.** For QA of a component in isolation:
|
|
224
|
+
|
|
225
|
+
* Follow the steps above in *Deploying the Storybook -> 2. Deploying a preview version remotely*
|
|
226
|
+
* Share the generated Chromatic URL with the appropriate people for QA / UAT
|
|
227
|
+
|
|
228
|
+
**ii.** For integrated testing of a component in the frontend staging environments:
|
|
229
|
+
|
|
230
|
+
* Check out the WIP branch
|
|
231
|
+
* Merge your work in to WIP
|
|
232
|
+
* Follow the steps above under *Publishing a New Package Version -> 1. To release a snapshot version*
|
|
233
|
+
* Git push the updated WIP branch to remote
|
|
234
|
+
* Finally, in the frontend repo:
|
|
235
|
+
|
|
236
|
+
1. Update the `package.json` to reference the new snapshot version
|
|
237
|
+
2. Run: `yarn install`
|
|
238
|
+
3. Deploy the frontend to a staging environment
|
|
239
|
+
|
|
240
|
+
#### **When ready for production:**
|
|
241
|
+
|
|
242
|
+
* Return to your WIP **feature branch**
|
|
243
|
+
* Update the WIP version in `package.json`, incrementing from the last **stable** release, found in WIP, and following the rules described in the *Versioning* section
|
|
244
|
+
* Update `CHANGELOG.md`, adding the new version number and a short description of your changes
|
|
245
|
+
* Run: `yarn lint`
|
|
246
|
+
* Run: `yarn test`
|
|
247
|
+
* Run: `yarn test-storybook -u`
|
|
248
|
+
* Run: `yarn build-storybook`
|
|
249
|
+
* Git commit, push, and update your PR for final approval
|
|
250
|
+
* Merge your approved PR to WIP
|
|
251
|
+
* Follow the steps in *Publishing a New Package Version -> 2. To release a stable version* to publish the NPM package
|
|
252
|
+
* Finally, follow the steps in *Deploying The Storybook -> 3. To deploy a release version*, to update the public WIP Storybook page
|
|
253
|
+
|
|
254
|
+
Once you have successfully published a new release version, you can open a ticket to update to this version in any of the frontend repos.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
## Notes
|
|
258
|
+
---
|
|
259
|
+
### The `storybook-static` folder
|
|
260
|
+
|
|
261
|
+
This folder contains all the HTML / JS required to deploy the Storybook as a static site. It's autogenerated whenever the Storybook is built and therefore will show up a lot of merge conflicts when you merge other branches into your feature branch. It is best to leave generating the storybook until the later part of your workflow, but in case you run into conflicts earlier, it's ok to just delete the folder and regenerate using:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
yarn build-storybook
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
For the same reason changes to this folder will cause a lot of big diffs, when looking at a PR, but can mostly be skimmed over unless something looks unusual.
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
### Examples
|
|
271
|
+
|
|
272
|
+
There is an example implementation in the example folder. Alternatively there are also integration examples in storybook. Make sure to keep these updated so as to showcase the current components available.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
### Bundle analysis
|
|
276
|
+
|
|
277
|
+
Calculate the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `yarn size` and visualize it with `yarn analyze`.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAuxiliaryButtonProps } from '../../../../types';
|
|
3
|
+
declare const AuxiliaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../../types/buttonTypes").IButtonProps>, any, IAuxiliaryButtonProps, never>;
|
|
4
|
+
export default AuxiliaryButtonWrapper;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPrimaryButtonProps } from '../../../../types/buttonTypes';
|
|
3
|
+
declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../../types/buttonTypes").IButtonProps>, any, IPrimaryButtonProps, never>;
|
|
4
|
+
export default PrimaryButtonWrapper;
|
|
5
|
+
export declare const AriaDescription: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IButtonProps } from '../../../../types/buttonTypes';
|
|
3
|
+
declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<IButtonProps>, any, IButtonProps, never>;
|
|
4
|
+
export default PrimaryButtonWrapper;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITertiaryButtonProps } from '../../../../types/buttonTypes';
|
|
2
|
+
declare const TertiaryButtonWrapper: import("styled-components").StyledComponent<"a", any, ITertiaryButtonProps, never>;
|
|
3
|
+
declare const TertiaryIconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
|
+
export { TertiaryIconWrapper, TertiaryButtonWrapper };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IControlledDropdownHeaderProps } from '../../../types/types';
|
|
2
|
+
export declare const ControlledDropdownWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ControlledDropdownHeaderContainer: import("styled-components").StyledComponent<"span", any, IControlledDropdownHeaderProps, never>;
|
|
4
|
+
export declare const ControlledDropdownHeaderContainerLink: import("styled-components").StyledComponent<"span", any, IControlledDropdownHeaderProps & {
|
|
5
|
+
as: string;
|
|
6
|
+
}, "as">;
|
|
7
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IDropdowItemProps, IDropdownProps } from '../../../types/types';
|
|
2
|
+
export declare const TabContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const OptionItem: import("styled-components").StyledComponent<"a", any, IDropdowItemProps, never>;
|
|
4
|
+
export declare const OptionsContainer: import("styled-components").StyledComponent<"div", any, IDropdownProps, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IIconStyledProps } from '../../../types/iconTypes';
|
|
2
|
+
export declare const Directions: {
|
|
3
|
+
left: string;
|
|
4
|
+
right: string;
|
|
5
|
+
up: string;
|
|
6
|
+
down: string;
|
|
7
|
+
reverse: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"span", any, IIconStyledProps, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DirectionType, IconNameType } from '../../../../types/iconTypes';
|
|
2
|
+
export interface IStorybookIcon {
|
|
3
|
+
iconName: IconNameType;
|
|
4
|
+
label: string;
|
|
5
|
+
direction?: DirectionType;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IIconographyGridProps {
|
|
9
|
+
iconsArray: IStorybookIcon[];
|
|
10
|
+
}
|
|
11
|
+
export declare function Iconography({ iconsArray }: IIconographyGridProps): JSX.Element;
|