@royaloperahouse/harmonic 0.18.5 → 0.18.6-b

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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +9 -1
  3. package/dist/components/atoms/Buttons/Button.d.ts +10 -3
  4. package/dist/components/atoms/Buttons/Primary/PrimaryButton.d.ts +17 -3
  5. package/dist/components/atoms/Buttons/Primary/PrimaryButton.style.d.ts +9 -1
  6. package/dist/components/atoms/Buttons/Secondary/SecondaryButton.style.d.ts +9 -1
  7. package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
  8. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  9. package/dist/components/atoms/VideoControlsImpact/VideoControlsImpact.d.ts +4 -0
  10. package/dist/components/atoms/VideoControlsImpact/VideoControlsImpact.style.d.ts +5 -0
  11. package/dist/components/atoms/VideoControlsImpact/index.d.ts +2 -0
  12. package/dist/components/molecules/CastFilter/CastFilters.style.d.ts +1 -0
  13. package/dist/components/molecules/HotFilters/HotFilters.style.d.ts +16 -1
  14. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +16 -1
  15. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +302 -9
  16. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +2 -0
  17. package/dist/components/organisms/Carousels/Carousel/Carousel.d.ts +3 -1
  18. package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +3 -1
  19. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +16 -1
  20. package/dist/harmonic.cjs.development.css +319 -0
  21. package/dist/harmonic.cjs.development.js +547 -336
  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 +559 -345
  26. package/dist/harmonic.esm.js.map +1 -1
  27. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +1 -0
  28. package/dist/types/impactHeader.d.ts +14 -32
  29. package/dist/types/signUpForm.d.ts +1 -0
  30. package/dist/types/types.d.ts +19 -1
  31. package/dist/types/upsell.d.ts +2 -0
  32. package/package.json +3 -4
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ThemeType } from '../../types';
3
3
  import './theme/fonts.css';
4
+ import './theme/typography.css';
4
5
  export declare const DEFAULT_THEME = ThemeType.Core;
5
6
  interface HarmonicThemeProviderProps {
6
7
  theme: ThemeType;
@@ -20,46 +20,28 @@ export interface CustomSponsorImageData {
20
20
  title: string;
21
21
  }
22
22
  export interface IPageHeadingImpactProps {
23
- /**
24
- * Text placed in the impact component
25
- */
23
+ /** Text placed in the impact component */
26
24
  text?: string;
27
- /**
28
- * Link placed in the impact component
29
- */
25
+ /** Link placed in the impact component */
30
26
  link?: EditorialLink;
31
- /**
32
- * Boolean to show/hide sponsorship logo (default true)
33
- */
27
+ /** Boolean to show/hide sponsorship logo (default true) */
34
28
  sponsor?: boolean;
35
- /**
36
- * Data for custom sponsor
37
- */
29
+ /** Data for custom sponsor */
38
30
  customSponsorImage?: CustomSponsorImageData;
39
- /**
40
- * Background url for desktops
41
- */
31
+ /** Background url for desktops */
42
32
  bgUrlDesktop: string;
43
- /**
44
- * Background url for devices
45
- */
33
+ /** Background url for devices */
46
34
  bgUrlDevice?: string;
47
- /**
48
- * Alt text for the main image
49
- */
35
+ /** Alt text for the main image */
50
36
  bgImageAltText?: string;
51
- /**
52
- * Logo to be placed in page heading component
53
- */
37
+ /** Desktop video url */
38
+ videoUrlDesktop?: string;
39
+ /** Mobile video url */
40
+ videoUrlMobile?: string;
41
+ /** Logo to be placed in page heading component */
54
42
  children?: ReactNode;
55
- /**
56
- * Internal anchor ref
57
- */
58
- scrollHref?: string;
59
- /**
60
- * Semantic level of the header
61
- */
62
- semanticLevel?: TypographyLevel;
43
+ /** Custom CSS classes */
44
+ className?: string;
63
45
  }
64
46
  export declare type BrandingStyle = 'BlockText' | 'BodyText' | 'StreamLogo' | 'CinemaLogo' | 'TextLink';
65
47
  export interface IPageHeadingCompactProps {
@@ -68,6 +68,7 @@ export interface ISignUpFormProps {
68
68
  export declare type SignUpFormComponentTitleProps = {
69
69
  title: string;
70
70
  isMobile?: boolean;
71
+ titleFontFamily?: 'Grey' | 'Victor' | undefined;
71
72
  };
72
73
  export declare type SignUpFormComponentMessageProps = {
73
74
  message: string;
@@ -147,6 +147,10 @@ export interface ITabProps {
147
147
  * Additional CSS class names to apply to the navigation component.
148
148
  */
149
149
  className?: string;
150
+ /**
151
+ * The unique ID to assign to the link element.
152
+ */
153
+ tabLinkId?: string;
150
154
  /**
151
155
  * Defines the ARIA role of the element for accessibility purposes.
152
156
  */
@@ -222,7 +226,11 @@ export interface IDropdownProps {
222
226
  */
223
227
  ariaLabel?: string;
224
228
  /**
225
- * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
229
+ * The unique ID to assign to the link element inside the tab.
230
+ */
231
+ tabLinkId?: string;
232
+ /**
233
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
226
234
  */
227
235
  trimTabText?: boolean;
228
236
  }
@@ -489,6 +497,10 @@ export declare type ICastFiltersProps = {
489
497
  * Handle clicking the text link.
490
498
  */
491
499
  onClear?: () => void;
500
+ /**
501
+ * Render person images in greyscale
502
+ */
503
+ greyscale?: boolean;
492
504
  };
493
505
  export interface ISponsorshipProps {
494
506
  /**
@@ -721,6 +733,12 @@ export interface IVideoControlsProps {
721
733
  */
722
734
  loop?: boolean;
723
735
  }
736
+ export interface IVideoControlsImpactProps {
737
+ /** Video element id */
738
+ videoElementId: string;
739
+ /** Loops */
740
+ loop?: boolean;
741
+ }
724
742
  export declare type IVideoWithControlsSettings = Omit<IVideoControlsProps, 'videoElementId' | 'videoContainerId'>;
725
743
  export interface IVideoWithControlsProps {
726
744
  /**
@@ -80,4 +80,6 @@ export interface IUpsellSectionProps {
80
80
  theme?: ThemeType;
81
81
  /** Custom CSS classes */
82
82
  className?: string;
83
+ /** Sets Font Family by default Grey */
84
+ titleFontFamily?: 'Victor' | 'Grey' | undefined;
83
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.18.5",
3
+ "version": "0.18.6-b",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -129,7 +129,7 @@
129
129
  "typescript": "^4.4.4"
130
130
  },
131
131
  "dependencies": {
132
- "moment": "^2.29.4",
132
+ "date-fns": "^4.1.0",
133
133
  "react-modal": "^3.16.1",
134
134
  "react-scrolllock": "^5.0.1",
135
135
  "react-select": "^5.8.0"
@@ -143,6 +143,5 @@
143
143
  "npx eslint src --fix ",
144
144
  "npx prettier src --write --uncommitted"
145
145
  ]
146
- },
147
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
146
+ }
148
147
  }