@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.
- package/CHANGELOG.md +3 -0
- package/dist/chord.cjs.development.js +73 -30
- 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 +73 -30
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +5 -1
- package/dist/types/editorial.d.ts +11 -3
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
194
|
+
* Image to be displayed in the editorial component with aspect ratio 4:3
|
|
191
195
|
*/
|
|
192
|
-
|
|
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
|
*/
|
package/dist/types/types.d.ts
CHANGED