@royaloperahouse/chord 1.2.0 → 1.2.1-a-chord-development
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/CHANGELOG.md +504 -7
- package/README.md +250 -40
- package/dist/chord.cjs.development.js +9019 -3801
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +8986 -3797
- package/dist/chord.esm.js.map +1 -1
- 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/Primary/PrimaryButtonWrapper.style.d.ts +1 -0
- package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
- package/dist/components/atoms/Grid/index.d.ts +2 -1
- package/dist/components/atoms/Icons/Icons.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +1 -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 +1 -1
- package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +1 -1
- 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 +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +1 -1
- 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 +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +76 -70
- package/dist/components/atoms/Logo/Logo.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
- 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/Sponsorship/Sponsorship.style.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/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/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 +3 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -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/Typography/Typography.d.ts +2 -2
- 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 +17 -7
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +7 -2
- 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/helpers.d.ts +3 -0
- package/dist/components/molecules/Basket/hooks.d.ts +8 -0
- package/dist/components/molecules/Card/Card.style.d.ts +17 -1
- 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/Information/InfoCta.d.ts +2 -2
- package/dist/components/molecules/Information/Information.style.d.ts +6 -3
- 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 +1 -1
- 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/Impact/Impact.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
- 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/index.d.ts +3 -1
- 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 +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +8 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +9 -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.style.d.ts +1 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- 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/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 +19 -3
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
- 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.style.d.ts +6 -2
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
- 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 +3 -3
- 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 -1
- package/dist/helpers/keyboards.d.ts +3 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +9 -4
- package/dist/styles/themes.d.ts +1188 -104
- package/dist/styles/viewports.d.ts +3 -0
- package/dist/types/auxiliaryNav.d.ts +39 -0
- package/dist/types/buttonTypes.d.ts +18 -0
- package/dist/types/card.d.ts +44 -0
- package/dist/types/carousel.d.ts +22 -1
- package/dist/types/creditListing.d.ts +13 -0
- package/dist/types/editorial.d.ts +80 -56
- package/dist/types/formTypes.d.ts +328 -0
- package/dist/types/iconTypes.d.ts +6 -0
- package/dist/types/image.d.ts +3 -0
- package/dist/types/impactHeader.d.ts +135 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/information.d.ts +17 -12
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/modalWindow.d.ts +20 -0
- package/dist/types/navigation.d.ts +68 -4
- 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/tableTypes.d.ts +47 -0
- package/dist/types/tickbox.d.ts +35 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +168 -10
- package/dist/types/typography.d.ts +18 -2
- package/dist/types/upsell.d.ts +78 -0
- package/dist/types/utility.d.ts +4 -0
- package/package.json +15 -4
- package/README.GIT +0 -122
- package/dist/components/atoms/Basket/Basket.d.ts +0 -3
- package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
- package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
- package/dist/components/organisms/Carousel/index.d.ts +0 -2
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
- package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
- /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
- /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode, AnchorHTMLAttributes, MouseEventHandler } from 'react';
|
|
1
|
+
import { ReactNode, AnchorHTMLAttributes, MouseEventHandler, ReactElement } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { IconNameType, DirectionType } from './iconTypes';
|
|
4
|
+
import { TypographyLevel, TypographyType } from './typography';
|
|
4
5
|
export declare enum Colors {
|
|
5
6
|
White = "white",
|
|
6
7
|
Black = "black",
|
|
@@ -19,7 +20,8 @@ export declare enum Colors {
|
|
|
19
20
|
export declare enum ThemeType {
|
|
20
21
|
Core = "core",
|
|
21
22
|
Stream = "stream",
|
|
22
|
-
Cinema = "cinema"
|
|
23
|
+
Cinema = "cinema",
|
|
24
|
+
Schools = "schools"
|
|
23
25
|
}
|
|
24
26
|
export interface IThemeProviderProps {
|
|
25
27
|
/**
|
|
@@ -53,6 +55,10 @@ export interface ILogoProps {
|
|
|
53
55
|
* The title of the image
|
|
54
56
|
*/
|
|
55
57
|
title?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The title of the image
|
|
60
|
+
*/
|
|
61
|
+
altText?: string;
|
|
56
62
|
}
|
|
57
63
|
export interface IOptionItem {
|
|
58
64
|
/**
|
|
@@ -258,6 +264,10 @@ export declare type ListingPerson = {
|
|
|
258
264
|
* Use headshot or not
|
|
259
265
|
*/
|
|
260
266
|
useHeadshot: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Replacement text
|
|
269
|
+
*/
|
|
270
|
+
replacement?: string;
|
|
261
271
|
};
|
|
262
272
|
export declare type ListingRole = {
|
|
263
273
|
/**
|
|
@@ -279,6 +289,20 @@ export interface IPeopleListing {
|
|
|
279
289
|
*/
|
|
280
290
|
roles: ListingRole[];
|
|
281
291
|
}
|
|
292
|
+
export interface IPagination {
|
|
293
|
+
/**
|
|
294
|
+
* The total number of pages
|
|
295
|
+
*/
|
|
296
|
+
pageCount: 10;
|
|
297
|
+
/**
|
|
298
|
+
* The current page
|
|
299
|
+
*/
|
|
300
|
+
currentPage: 1;
|
|
301
|
+
/**
|
|
302
|
+
* The url to base page links on
|
|
303
|
+
*/
|
|
304
|
+
baseUrl: '/';
|
|
305
|
+
}
|
|
282
306
|
export interface INodeProps {
|
|
283
307
|
/**
|
|
284
308
|
* The current object of Node
|
|
@@ -295,13 +319,21 @@ export interface IGridItemProps extends StyledProps<any> {
|
|
|
295
319
|
*/
|
|
296
320
|
columnSpanDesktop?: number;
|
|
297
321
|
/**
|
|
298
|
-
* The column in which to place the child elements in
|
|
322
|
+
* The column in which to place the child elements in tablet devices
|
|
299
323
|
*/
|
|
300
324
|
columnStartDevice: number;
|
|
301
325
|
/**
|
|
302
|
-
* The number of columns over which the child elements will span in
|
|
326
|
+
* The number of columns over which the child elements will span in tablet devices
|
|
303
327
|
*/
|
|
304
328
|
columnSpanDevice?: number;
|
|
329
|
+
/**
|
|
330
|
+
* The column in which to place the child elements in small mobile devices
|
|
331
|
+
*/
|
|
332
|
+
columnStartSmallDevice?: number;
|
|
333
|
+
/**
|
|
334
|
+
* The number of columns over which the child elements will span in small mobile devices
|
|
335
|
+
*/
|
|
336
|
+
columnSpanSmallDevice?: number;
|
|
305
337
|
}
|
|
306
338
|
export interface ISponsorLogoProps {
|
|
307
339
|
/**
|
|
@@ -318,6 +350,10 @@ export interface ISponsorshipProps {
|
|
|
318
350
|
* Source URL for Sponsorship IFRAME.
|
|
319
351
|
*/
|
|
320
352
|
src?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Alt Text for image.
|
|
355
|
+
*/
|
|
356
|
+
altText?: string;
|
|
321
357
|
/**
|
|
322
358
|
* Used for Analytics.
|
|
323
359
|
*/
|
|
@@ -326,6 +362,10 @@ export interface ISponsorshipProps {
|
|
|
326
362
|
* Used for Accessibility.
|
|
327
363
|
*/
|
|
328
364
|
title?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Used to determine that there is custom data for Sponsorship
|
|
367
|
+
*/
|
|
368
|
+
isCustomImage?: boolean;
|
|
329
369
|
}
|
|
330
370
|
export interface ITextLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
331
371
|
children: ReactNode;
|
|
@@ -394,12 +434,24 @@ export interface ISectionTitleProps {
|
|
|
394
434
|
* Optional description that can be rendered below the title.
|
|
395
435
|
*/
|
|
396
436
|
description?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Semantic level of the title.
|
|
439
|
+
*/
|
|
440
|
+
semanticLevel?: TypographyLevel;
|
|
397
441
|
}
|
|
398
442
|
export interface ILogosProps {
|
|
399
443
|
/**
|
|
400
444
|
* Color used to fill logos.
|
|
401
445
|
*/
|
|
402
446
|
fillColor?: Colors.White | Colors.Black;
|
|
447
|
+
/**
|
|
448
|
+
* Text aligned logo variants.
|
|
449
|
+
*/
|
|
450
|
+
align?: 'left' | 'center';
|
|
451
|
+
/**
|
|
452
|
+
* Fill color inversion.
|
|
453
|
+
*/
|
|
454
|
+
invert?: boolean;
|
|
403
455
|
}
|
|
404
456
|
export interface ILogosStyledProps extends StyledProps<any> {
|
|
405
457
|
/**
|
|
@@ -416,6 +468,10 @@ export interface IAccordionProps {
|
|
|
416
468
|
* The component to be wrapped into the accordion
|
|
417
469
|
*/
|
|
418
470
|
children?: ReactNode;
|
|
471
|
+
/**
|
|
472
|
+
* Components wrapped into the accordion that are always visible
|
|
473
|
+
*/
|
|
474
|
+
visibleStandfirst?: ReactNode;
|
|
419
475
|
/**
|
|
420
476
|
* Set if accordions are stacked
|
|
421
477
|
*/
|
|
@@ -424,6 +480,18 @@ export interface IAccordionProps {
|
|
|
424
480
|
* Set init open
|
|
425
481
|
*/
|
|
426
482
|
initOpen?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* Set content type - header or subtitle
|
|
485
|
+
*/
|
|
486
|
+
contentType?: TypographyType;
|
|
487
|
+
/**
|
|
488
|
+
* Set display level - aesthetic
|
|
489
|
+
*/
|
|
490
|
+
displayLevel?: TypographyLevel;
|
|
491
|
+
/**
|
|
492
|
+
* Set semantic level - not to be used for aesthetic
|
|
493
|
+
*/
|
|
494
|
+
semanticLevel?: TypographyLevel;
|
|
427
495
|
}
|
|
428
496
|
export interface IAccordionsProps {
|
|
429
497
|
/**
|
|
@@ -431,12 +499,6 @@ export interface IAccordionsProps {
|
|
|
431
499
|
*/
|
|
432
500
|
items: IAccordionProps[];
|
|
433
501
|
}
|
|
434
|
-
export interface IProgressProps {
|
|
435
|
-
/**
|
|
436
|
-
* The progress percentage
|
|
437
|
-
*/
|
|
438
|
-
progress?: number;
|
|
439
|
-
}
|
|
440
502
|
export interface IAnnouncementBannerProps {
|
|
441
503
|
/**
|
|
442
504
|
* Announcement banner title
|
|
@@ -455,4 +517,100 @@ export interface IAnnouncementBannerProps {
|
|
|
455
517
|
*/
|
|
456
518
|
icon: 'Info' | 'Clock' | 'Location' | 'Reminder' | 'Star';
|
|
457
519
|
}
|
|
520
|
+
export interface IReadMoreProps {
|
|
521
|
+
/**
|
|
522
|
+
* Read More Component title
|
|
523
|
+
*/
|
|
524
|
+
title?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Intro text to be truncated
|
|
527
|
+
*/
|
|
528
|
+
introText: ReactNode;
|
|
529
|
+
/**
|
|
530
|
+
* Component to be wrapped in ReadMore comp
|
|
531
|
+
*/
|
|
532
|
+
fullText: ReactNode;
|
|
533
|
+
/**
|
|
534
|
+
* Set init open
|
|
535
|
+
*/
|
|
536
|
+
initOpen: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Custom text for link when closed
|
|
539
|
+
*/
|
|
540
|
+
showMoreText: string;
|
|
541
|
+
/**
|
|
542
|
+
* Custom text for link when opened
|
|
543
|
+
*/
|
|
544
|
+
hideText: string;
|
|
545
|
+
/**
|
|
546
|
+
* Character limit
|
|
547
|
+
*/
|
|
548
|
+
characterLimit?: number;
|
|
549
|
+
/**
|
|
550
|
+
* Optional truncation
|
|
551
|
+
*/
|
|
552
|
+
truncate?: boolean;
|
|
553
|
+
}
|
|
554
|
+
export interface IStatusBannerProps {
|
|
555
|
+
/**
|
|
556
|
+
* Status banner text
|
|
557
|
+
*/
|
|
558
|
+
statusText: string;
|
|
559
|
+
/**
|
|
560
|
+
* Set init visibility
|
|
561
|
+
*/
|
|
562
|
+
visibility: boolean;
|
|
563
|
+
}
|
|
564
|
+
export interface IVideoControlsProps {
|
|
565
|
+
/**
|
|
566
|
+
* Video element id
|
|
567
|
+
*/
|
|
568
|
+
videoElementId: string;
|
|
569
|
+
/**
|
|
570
|
+
* Id of an element containing both the VideoControls and the video HTML element
|
|
571
|
+
* Used to request fullscreen.
|
|
572
|
+
*/
|
|
573
|
+
videoContainerId?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Default muted
|
|
576
|
+
*/
|
|
577
|
+
muted: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* Default playing
|
|
580
|
+
*/
|
|
581
|
+
autoPlay: boolean;
|
|
582
|
+
/**
|
|
583
|
+
* Hide volume
|
|
584
|
+
*/
|
|
585
|
+
soundControl?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* Hide fullscreen. If false, provide a videoContainerId.
|
|
588
|
+
*/
|
|
589
|
+
fullScreenOption?: boolean;
|
|
590
|
+
/**
|
|
591
|
+
* Loops
|
|
592
|
+
*/
|
|
593
|
+
loop?: boolean;
|
|
594
|
+
}
|
|
595
|
+
export declare type IVideoWithControlsSettings = Omit<IVideoControlsProps, 'videoElementId' | 'videoContainerId'>;
|
|
596
|
+
export interface IVideoWithControlsProps {
|
|
597
|
+
/**
|
|
598
|
+
* Video element
|
|
599
|
+
*/
|
|
600
|
+
video: ReactElement<HTMLVideoElement>;
|
|
601
|
+
/**
|
|
602
|
+
* Settings for video controls
|
|
603
|
+
*/
|
|
604
|
+
settings: IVideoWithControlsSettings;
|
|
605
|
+
}
|
|
458
606
|
export declare type Image = Pick<HTMLImageElement, 'alt' | 'src'>;
|
|
607
|
+
export declare enum LinkTarget {
|
|
608
|
+
/**
|
|
609
|
+
* Opens the link in the same frame or tab as the current page.
|
|
610
|
+
*/
|
|
611
|
+
Self = "_self",
|
|
612
|
+
/**
|
|
613
|
+
* Opens the link in a new browser tab or window, depending on the browser settings.
|
|
614
|
+
*/
|
|
615
|
+
Blank = "_blank"
|
|
616
|
+
}
|
|
@@ -4,7 +4,7 @@ export declare type TypographyLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
|
4
4
|
export declare type AltHeaderLevel = 3 | 4 | 5 | 6;
|
|
5
5
|
export declare type BodyLevel = 1 | 2 | 3;
|
|
6
6
|
export declare type SubtitleLevel = 1 | 2;
|
|
7
|
-
export declare type OverlineLevel = 1 | 2;
|
|
7
|
+
export declare type OverlineLevel = 1 | 2 | 3 | 4;
|
|
8
8
|
export declare type TypographyType = 'header' | 'altHeader' | 'body' | 'subtitle' | 'overline';
|
|
9
9
|
export interface ITypographyWrapperProps extends StyledProps<any> {
|
|
10
10
|
/**
|
|
@@ -30,15 +30,23 @@ export interface IStyledTag extends ITypographyWrapperProps, IGenericTypography
|
|
|
30
30
|
}
|
|
31
31
|
export interface IHeaderProps extends IGenericTypography {
|
|
32
32
|
/**
|
|
33
|
-
* Header level, 1, 2, 3, 4, 5 or 6.
|
|
33
|
+
* Display Header level, 1, 2, 3, 4, 5 or 6.
|
|
34
34
|
*/
|
|
35
35
|
level: TypographyLevel;
|
|
36
|
+
/**
|
|
37
|
+
* Semantic Header level, 1, 2, 3, 4, 5 or 6. - Not to be used for aeshetics.
|
|
38
|
+
*/
|
|
39
|
+
semanticLevel?: TypographyLevel;
|
|
36
40
|
}
|
|
37
41
|
export interface IAltHeaderProps extends IGenericTypography {
|
|
38
42
|
/**
|
|
39
43
|
* AltHeader level, 3, 4, 5 or 6.
|
|
40
44
|
*/
|
|
41
45
|
level: AltHeaderLevel;
|
|
46
|
+
/**
|
|
47
|
+
* Semantic Header level, 1, 2, 3, 4, 5 or 6. - Not to be used for aeshetics.
|
|
48
|
+
*/
|
|
49
|
+
semanticLevel?: TypographyLevel;
|
|
42
50
|
}
|
|
43
51
|
export interface IBodyTextProps extends IGenericTypography {
|
|
44
52
|
/**
|
|
@@ -55,6 +63,10 @@ export interface ISubtitleProps extends IGenericTypography {
|
|
|
55
63
|
* Subtitle level, 1 or 2.
|
|
56
64
|
*/
|
|
57
65
|
level: SubtitleLevel;
|
|
66
|
+
/**
|
|
67
|
+
* Semantic Header level, 1, 2, 3, 4, 5 or 6. - Not to be used for aeshetics.
|
|
68
|
+
*/
|
|
69
|
+
semanticLevel?: TypographyLevel;
|
|
58
70
|
/**
|
|
59
71
|
* HTML tag to use to render Subtitle, by default div.
|
|
60
72
|
*/
|
|
@@ -65,6 +77,10 @@ export interface IOverlineProps extends IGenericTypography {
|
|
|
65
77
|
* Overline level, 1 or 2.
|
|
66
78
|
*/
|
|
67
79
|
level: OverlineLevel;
|
|
80
|
+
/**
|
|
81
|
+
* Semantic Header level, 1, 2, 3, 4, 5 or 6. - Not to be used for aeshetics.
|
|
82
|
+
*/
|
|
83
|
+
semanticLevel?: TypographyLevel;
|
|
68
84
|
/**
|
|
69
85
|
* HTML tag to use to render Overline, by default div.
|
|
70
86
|
*/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { EditorialLink } from '.';
|
|
2
|
+
import { ThemeType } from '.';
|
|
3
|
+
export interface IOfferTextProps {
|
|
4
|
+
/**
|
|
5
|
+
* Repeatable element title
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Repeatable element description
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpsellCardProps {
|
|
14
|
+
/**
|
|
15
|
+
* Card title
|
|
16
|
+
*/
|
|
17
|
+
title?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Card subtitle
|
|
20
|
+
*/
|
|
21
|
+
subTitle?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Card price
|
|
24
|
+
*/
|
|
25
|
+
price?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Promo price
|
|
28
|
+
*/
|
|
29
|
+
promoPrice?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Flag for featurette (e.g. "best offer")
|
|
32
|
+
*/
|
|
33
|
+
flag?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Offer texts repeatable elements
|
|
36
|
+
*/
|
|
37
|
+
offerTexts?: IOfferTextProps[];
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
link?: EditorialLink;
|
|
42
|
+
/**
|
|
43
|
+
* Theme: Core, Stream, or Cinema
|
|
44
|
+
*/
|
|
45
|
+
theme?: ThemeType;
|
|
46
|
+
}
|
|
47
|
+
export interface IUpsellCardsProps {
|
|
48
|
+
/**
|
|
49
|
+
* Array of upsellCards
|
|
50
|
+
*/
|
|
51
|
+
upsellCards?: IUpsellCardProps[];
|
|
52
|
+
/**
|
|
53
|
+
* Theme options
|
|
54
|
+
*/
|
|
55
|
+
theme?: ThemeType;
|
|
56
|
+
}
|
|
57
|
+
export interface IUpsellSectionProps {
|
|
58
|
+
/**
|
|
59
|
+
* Upsell Section title
|
|
60
|
+
*/
|
|
61
|
+
title?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Richtext section
|
|
64
|
+
*/
|
|
65
|
+
richText?: string;
|
|
66
|
+
/**
|
|
67
|
+
* CTA link. Eg. for sign in.
|
|
68
|
+
*/
|
|
69
|
+
link?: EditorialLink;
|
|
70
|
+
/**
|
|
71
|
+
* Array of upsellCards
|
|
72
|
+
*/
|
|
73
|
+
upsellCards?: IUpsellCardProps[];
|
|
74
|
+
/**
|
|
75
|
+
* Theme options
|
|
76
|
+
*/
|
|
77
|
+
theme?: ThemeType;
|
|
78
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royaloperahouse/chord",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1-a-chord-development",
|
|
4
4
|
"author": "Royal Opera House",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"size": "size-limit",
|
|
22
22
|
"analyze": "size-limit --why",
|
|
23
23
|
"storybook": "start-storybook -s ./external -p 6006",
|
|
24
|
+
"build-storybook-dev": "build-storybook",
|
|
24
25
|
"build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
|
|
26
|
+
"deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
|
|
25
27
|
"deploy-storybook": "storybook-to-aws-s3 --bucket-path=chord.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
|
|
26
28
|
"test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
|
|
27
29
|
"publish-release": "make prepare-release-candidate; make publish-release",
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
"<rootDir>/src/jest.setup.ts"
|
|
64
66
|
],
|
|
65
67
|
"moduleNameMapper": {
|
|
66
|
-
"
|
|
68
|
+
"\\.(png|jpg|jpeg)$": "<rootDir>/external/images/mock-image.js"
|
|
67
69
|
},
|
|
68
70
|
"modulePathIgnorePatterns": [
|
|
69
71
|
"<rootDir>/storybook-static"
|
|
@@ -84,27 +86,36 @@
|
|
|
84
86
|
"@testing-library/jest-dom": "^5.15.0",
|
|
85
87
|
"@testing-library/react": "^12.1.2",
|
|
86
88
|
"@testing-library/user-event": "^13.5.0",
|
|
89
|
+
"@types/dompurify": "^2.4.0",
|
|
87
90
|
"@types/jest": "^27.0.2",
|
|
88
91
|
"@types/react": "^17.0.34",
|
|
89
92
|
"@types/react-dom": "^17.0.11",
|
|
93
|
+
"@types/react-modal": "^3.16.3",
|
|
94
|
+
"@types/react-select": "^5.0.1",
|
|
90
95
|
"@types/react-test-renderer": "^17.0.1",
|
|
91
96
|
"@types/styled-components": "^5.1.15",
|
|
92
|
-
"@types/swiper": "^5.4.3",
|
|
93
97
|
"@types/testing-library__jest-dom": "^5.14.1",
|
|
94
98
|
"babel-loader": "^8.2.3",
|
|
99
|
+
"chromatic": "^11.5.5",
|
|
95
100
|
"husky": "^7.0.4",
|
|
96
101
|
"react": "^17.0.2",
|
|
97
102
|
"react-dom": "^17.0.2",
|
|
98
103
|
"react-is": "^17.0.2",
|
|
104
|
+
"react-router-dom": "^6.22.3",
|
|
105
|
+
"react-test-renderer": "^17.0.2",
|
|
99
106
|
"size-limit": "^6.0.4",
|
|
100
107
|
"storybook-addon-designs": "^6.2.0",
|
|
101
108
|
"storybook-addon-pseudo-states": "^1.0.0",
|
|
109
|
+
"styled-components": "^5.3.9",
|
|
102
110
|
"ts-jest": "^27.0.7",
|
|
103
111
|
"tsdx": "^0.14.1",
|
|
104
112
|
"tslib": "^2.3.1",
|
|
105
113
|
"typescript": "^4.4.4"
|
|
106
114
|
},
|
|
107
115
|
"dependencies": {
|
|
108
|
-
"
|
|
116
|
+
"moment": "^2.29.4",
|
|
117
|
+
"react-modal": "^3.16.1",
|
|
118
|
+
"react-scrolllock": "^5.0.1",
|
|
119
|
+
"react-select": "^5.8.0"
|
|
109
120
|
}
|
|
110
121
|
}
|
package/README.GIT
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# Royal Opera House - Front End Design System
|
|
2
|
-
|
|
3
|
-
Welcome to the Royal Opera House Front End Design System, `@royaloperahouse/chord`.
|
|
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
|
-
## Commands
|
|
10
|
-
|
|
11
|
-
The required package dependencies need to be insalled using `yarn`. Once ready you can issue the following:
|
|
12
|
-
|
|
13
|
-
To run Lint on the package use:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
yarn lint # you can also use the --fix option to perform automatic fixes
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
To run the unit tests (using Jest) use:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
yarn test # you can also use the -u option to update snapshots if needed
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
To run the unit tests (using Jest) and store them for display in storybook use:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
yarn test-storybook # you can also use the -u option to update snapshots if needed
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
To run storybook use:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
yarn storybook
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
To build a static version of storybook use:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
yarn build-storybook
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
This will create a static copy in `./storybook-static`, and there is an index.html page inside the core directory. This allows the site to be previewed directly in the git repository via serving pages (it needs to be configured for that branch).
|
|
44
|
-
|
|
45
|
-
To deploy the storybook publically:
|
|
46
|
-
|
|
47
|
-
### Prerequisites
|
|
48
|
-
|
|
49
|
-
Make sure you have credentials for the *parent* 'Royal Opera House' AWS account in your `~/.aws/credentials` file. The deploy script expects these to be called `[parent]`.
|
|
50
|
-
|
|
51
|
-
You can get these values at:
|
|
52
|
-
|
|
53
|
-
AWS 'Your Applications' page -> 'Royal Opera House' -> 'Developer Access' ->
|
|
54
|
-
'Command line or programmatic access'
|
|
55
|
-
|
|
56
|
-
### Deployment
|
|
57
|
-
|
|
58
|
-
To deploy, first *build* the storybook as above
|
|
59
|
-
|
|
60
|
-
then use:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
yarn deploy-storybook
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
This will deploy the contents of `./storybook-static` to S3 as a static site accessible at [chord.roh.org.uk](chord.roh.org.uk)
|
|
67
|
-
|
|
68
|
-
To build the package use:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
yarn build
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
To release a new version.
|
|
75
|
-
|
|
76
|
-
Release will be published in npm (NPM_TOKEN will be required)
|
|
77
|
-
Storybook will be pushed to bitbucket. *** Push will be done Ensure you don't have things pendint to push
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-release
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
MORE INFO TO FOLLOW - PARTICULARLY FOR THE CI SETUP AND HOW PACKAGES ARE PUSHED.
|
|
85
|
-
|
|
86
|
-
# Recommended Use of Package
|
|
87
|
-
|
|
88
|
-
The package is deployed to NPM, and can be installed using yarn or npm:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
npm i --save @royaloperahouse/chord
|
|
92
|
-
```
|
|
93
|
-
```bash
|
|
94
|
-
yarn add @royaloperahouse/chord
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
# Processes to follow prior to commits
|
|
98
|
-
|
|
99
|
-
Before a commit is made you need to do the following:
|
|
100
|
-
|
|
101
|
-
- Make sure that you are in your own work branch (properly named, including the JIRA ticket number and a short description)
|
|
102
|
-
- `yarn lint` - ensure that you are not introducing errors
|
|
103
|
-
- `yarn test` - ensure that tests are running as expected
|
|
104
|
-
- `yarn test-storybook` - Save the test results to for the static site
|
|
105
|
-
- `yarn build-storybook` - Update the static site
|
|
106
|
-
- Commit your changes in your branch locally
|
|
107
|
-
|
|
108
|
-
Next, if you are ready to merge into the main development branch then:
|
|
109
|
-
|
|
110
|
-
- _*ensure that you pull the latest changes from that branch into your new branch, resolving any merge conflicts that may arise*_
|
|
111
|
-
- Commit any merge changes locally
|
|
112
|
-
- Push your branch changes to the origin repo
|
|
113
|
-
- Raise a Pull Request to merge back into the main development branch, AND ensure that the required reviewers are assigned.
|
|
114
|
-
- The reviewers may raise issues, and once resolved, they will be responsible for performing the merge.
|
|
115
|
-
|
|
116
|
-
### Example
|
|
117
|
-
|
|
118
|
-
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.
|
|
119
|
-
|
|
120
|
-
### Bundle analysis
|
|
121
|
-
|
|
122
|
-
Calculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `yarn size` and visulize it with `yarn analyze`.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ICarouselWrapperProps } from '../../../types/carousel';
|
|
2
|
-
export declare const CarouselWrapper: import("styled-components").StyledComponent<"div", any, ICarouselWrapperProps, never>;
|
|
3
|
-
export declare const TitleButtonsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const ButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const TitleGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const HighlightsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const CarouselTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const InfoLogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const InfoTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const InfoTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const InfoLinkWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const CarouselWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const RotatorButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const RotatorButtonsWrapperMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const HtmlBodyText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
12
|
-
export declare const FirstButtonComponentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import HighlightsCarouselCinema from './HighlightsCinema';
|
|
2
|
-
import HighlightsCarouselCore from './HighlightsCore';
|
|
3
|
-
import HighlightsCarouselStream from './HighlightsStream';
|
|
4
|
-
import HighlightsCarousel from './HighlightsCarousel';
|
|
5
|
-
export { HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream };
|
|
File without changes
|
|
File without changes
|