@royaloperahouse/harmonic 0.18.2-c → 0.18.2-d

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 +12 -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/HotFilters/HotFilters.style.d.ts +16 -1
  13. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +16 -1
  14. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +302 -9
  15. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +1 -0
  16. package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
  17. package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.style.d.ts +1 -0
  18. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +16 -1
  19. package/dist/harmonic.cjs.development.css +0 -319
  20. package/dist/harmonic.cjs.development.js +574 -346
  21. package/dist/harmonic.cjs.development.js.map +1 -1
  22. package/dist/harmonic.cjs.production.min.js +1 -1
  23. package/dist/harmonic.cjs.production.min.js.map +1 -1
  24. package/dist/harmonic.esm.js +583 -358
  25. package/dist/harmonic.esm.js.map +1 -1
  26. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
  27. package/dist/types/carousel.d.ts +12 -0
  28. package/dist/types/impactHeader.d.ts +14 -32
  29. package/dist/types/progress.d.ts +3 -3
  30. package/dist/types/promoWithTags.d.ts +12 -0
  31. package/dist/types/types.d.ts +7 -9
  32. package/package.json +4 -3
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ThemeType } from '../../types';
3
3
  import './theme/fonts.css';
4
- import './theme/typography.css';
5
4
  export declare const DEFAULT_THEME = ThemeType.Core;
6
5
  interface HarmonicThemeProviderProps {
7
6
  theme: ThemeType;
@@ -143,6 +143,18 @@ export declare type HighlightsCarouselSlide = {
143
143
  * Renders an auxiliary button when passed
144
144
  */
145
145
  auxiliaryCTA?: EditorialLink;
146
+ /**
147
+ * Set the visualization of progress bar
148
+ */
149
+ withContinueWatching?: boolean;
150
+ /**
151
+ * The progress percentage
152
+ */
153
+ progress?: number;
154
+ /**
155
+ * The progress title
156
+ */
157
+ progressTitle?: string;
146
158
  };
147
159
  export interface IHighlightsCarouselProps {
148
160
  /**
@@ -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 {
@@ -1,4 +1,4 @@
1
- import { Colors } from './types';
1
+ import { ThemeColor } from './types';
2
2
  export interface IProgressSteps {
3
3
  /**
4
4
  * Number of the steps
@@ -21,11 +21,11 @@ export interface IProgressProps {
21
21
  /**
22
22
  * Color of the elapsed line
23
23
  */
24
- elapsedLineColor?: Colors;
24
+ elapsedLineColor?: ThemeColor;
25
25
  /**
26
26
  * Color of the pending line
27
27
  */
28
- pendingLineColor?: Colors;
28
+ pendingLineColor?: ThemeColor;
29
29
  /**
30
30
  * Number of the steps
31
31
  */
@@ -80,6 +80,18 @@ export interface IPromoWithTagsProps {
80
80
  * Additional CSS class names to apply to component.
81
81
  */
82
82
  className?: string;
83
+ /**
84
+ * Set the visualization of progress bar
85
+ */
86
+ withContinueWatching?: boolean;
87
+ /**
88
+ * The progress percentage
89
+ */
90
+ progress?: number;
91
+ /**
92
+ * The progress title
93
+ */
94
+ progressTitle?: string;
83
95
  }
84
96
  export interface IPromoWithTagsStyledProps {
85
97
  /**
@@ -147,10 +147,6 @@ 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;
154
150
  /**
155
151
  * Defines the ARIA role of the element for accessibility purposes.
156
152
  */
@@ -226,11 +222,7 @@ export interface IDropdownProps {
226
222
  */
227
223
  ariaLabel?: string;
228
224
  /**
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
225
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
234
226
  */
235
227
  trimTabText?: boolean;
236
228
  }
@@ -721,6 +713,12 @@ export interface IVideoControlsProps {
721
713
  */
722
714
  loop?: boolean;
723
715
  }
716
+ export interface IVideoControlsImpactProps {
717
+ /** Video element id */
718
+ videoElementId: string;
719
+ /** Loops */
720
+ loop?: boolean;
721
+ }
724
722
  export declare type IVideoWithControlsSettings = Omit<IVideoControlsProps, 'videoElementId' | 'videoContainerId'>;
725
723
  export interface IVideoWithControlsProps {
726
724
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.18.2-c",
3
+ "version": "0.18.2-d",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -128,7 +128,7 @@
128
128
  "typescript": "^4.4.4"
129
129
  },
130
130
  "dependencies": {
131
- "date-fns": "^4.1.0",
131
+ "moment": "^2.29.4",
132
132
  "react-modal": "^3.16.1",
133
133
  "react-scrolllock": "^5.0.1",
134
134
  "react-select": "^5.8.0"
@@ -142,5 +142,6 @@
142
142
  "npx eslint src --fix ",
143
143
  "npx prettier src --write --uncommitted"
144
144
  ]
145
- }
145
+ },
146
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
146
147
  }