@royaloperahouse/chord 0.7.44 → 0.7.45

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.
@@ -1,6 +1,6 @@
1
1
  import { IEditorialGridProps, IPromoWithTagsStyledProps } from '../../../types/editorial';
2
2
  export declare const PromoWithTagsGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
3
- export declare const PromoWithTagsImageWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
3
+ export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
4
4
  export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
5
5
  export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -10,3 +10,7 @@ export declare const PromoWithTagsTagWrapper: import("styled-components").Styled
10
10
  export declare const PromoWithTagsAdditionalText: import("styled-components").StyledComponent<"div", any, {}, never>;
11
11
  export declare const TextLinksContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
12
12
  export declare const TextLinkWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const ExtraContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const MobileTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  import { AnchorHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  import { StyledProps } from 'styled-components';
3
3
  import { DirectionType, IconNameType } from './iconTypes';
4
- import { Colors } from './types';
4
+ import { Colors, Image } from './types';
5
5
  export interface IEditorialProps {
6
6
  /**
7
7
  * Text placed in the editorial component
@@ -37,6 +37,10 @@ export interface IEditorialGridProps {
37
37
  * Indicates if component has block for the text links
38
38
  */
39
39
  hasTextLinks?: boolean;
40
+ /**
41
+ * Indicates if component should be hidden
42
+ */
43
+ hideSection?: boolean;
40
44
  }
41
45
  export interface IPromoWithTagsStyledProps {
42
46
  /**
@@ -187,9 +191,13 @@ export interface IPromoWithTagsProps {
187
191
  */
188
192
  imagePosition?: 'left' | 'right';
189
193
  /**
190
- * Image tag or component to be displayed in the editorial component with aspect ratio 4:3
194
+ * Image to be displayed in the editorial component with aspect ratio 4:3
191
195
  */
192
- children: ReactElement<HTMLImageElement>;
196
+ image?: Image;
197
+ /**
198
+ * Component to be displayed instead of the image after clicking on the button
199
+ */
200
+ children?: ReactElement<HTMLElement>;
193
201
  /**
194
202
  * Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
195
203
  */
@@ -455,3 +455,4 @@ export interface IAnnouncementBannerProps {
455
455
  */
456
456
  icon: 'Info' | 'Clock' | 'Location' | 'Reminder' | 'Star';
457
457
  }
458
+ export declare type Image = Pick<HTMLImageElement, 'alt' | 'src'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "0.7.44",
3
+ "version": "0.7.45",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",