@royaloperahouse/harmonic 0.15.0 → 0.17.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  3. package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
  4. package/dist/components/index.d.ts +3 -3
  5. package/dist/components/molecules/BodyContent/BodyContent.d.ts +6 -1
  6. package/dist/components/molecules/Card/Card.style.d.ts +1 -1
  7. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
  8. package/dist/components/molecules/Information/Information.style.d.ts +1 -1
  9. package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
  10. package/dist/components/molecules/Paywall/Paywall.d.ts +4 -0
  11. package/dist/components/molecules/Paywall/Paywall.styles.d.ts +292 -0
  12. package/dist/components/molecules/Paywall/index.d.ts +2 -0
  13. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +273 -3
  14. package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +273 -3
  15. package/dist/components/molecules/SkipToMain/SkipToMain.d.ts +20 -0
  16. package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +6 -0
  17. package/dist/components/molecules/SkipToMain/index.d.ts +2 -0
  18. package/dist/components/molecules/index.d.ts +3 -1
  19. package/dist/components/organisms/Carousels/Carousel/Carousel.style.d.ts +271 -1
  20. package/dist/components/organisms/Navigation/Navigation.d.ts +1 -1
  21. package/dist/harmonic.cjs.development.js +6819 -6665
  22. package/dist/harmonic.cjs.development.js.map +1 -1
  23. package/dist/harmonic.cjs.production.min.js +1 -1
  24. package/dist/harmonic.cjs.production.min.js.map +1 -1
  25. package/dist/harmonic.esm.js +6835 -6682
  26. package/dist/harmonic.esm.js.map +1 -1
  27. package/dist/index.d.ts +2 -2
  28. package/dist/types/navigation.d.ts +4 -0
  29. package/dist/types/types.d.ts +28 -0
  30. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls } from './components';
1
+ import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, Paywall, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls } from './components';
2
2
  import BodyContent from './components/molecules/BodyContent';
3
3
  import Quote from './components/molecules/Quote';
4
4
  import { devices, breakpoints } from './styles/viewports';
@@ -11,4 +11,4 @@ import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeP
11
11
  import { HarmonicSize } from './types/typography';
12
12
  import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
13
13
  export { useHarmonicTheme };
14
- export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
14
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, Paywall, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -203,6 +203,10 @@ export interface INavigationProps {
203
203
  * Additional CSS class names to apply to the navigation component.
204
204
  */
205
205
  className?: string;
206
+ /**
207
+ * Defines which tag the button should skip to. Default: 'main-content'.
208
+ */
209
+ skipToId?: string;
206
210
  }
207
211
  export interface ISearchBarProps {
208
212
  /**
@@ -163,6 +163,10 @@ export interface ITabProps {
163
163
  * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
164
164
  */
165
165
  trimText?: boolean;
166
+ /**
167
+ * data-testid string for easier testing
168
+ */
169
+ dataTestId?: string;
166
170
  /**
167
171
  * Boolean indicating if the Tab is open.
168
172
  */
@@ -723,3 +727,27 @@ export declare enum LinkTarget {
723
727
  */
724
728
  Blank = "_blank"
725
729
  }
730
+ export interface ISkipToMainProps {
731
+ /**
732
+ * Defines which tag the button should skip to.
733
+ */
734
+ skipToId?: string;
735
+ }
736
+ export declare type PaywallProps = {
737
+ /** Custom CSS classes */
738
+ className?: string;
739
+ /** Heading text */
740
+ title: string;
741
+ /** Introduction text */
742
+ intro?: string;
743
+ /** Body HTML */
744
+ description: string;
745
+ /** CTA text */
746
+ buttonText: string;
747
+ /** CTA URL */
748
+ buttonUrl: string;
749
+ /** Text before sign-in link (required to show sign-in link) */
750
+ signInPromptText?: string;
751
+ /** Sign-in link URL (required to show sign-in link) */
752
+ signInLinkUrl?: string;
753
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",