@royaloperahouse/chord 1.2.0 → 1.3.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.
- package/CHANGELOG.md +3 -0
- package/dist/chord.cjs.development.js +99 -56
- 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 +100 -57
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Typography/Typography.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +5 -3
- package/dist/helpers/defaultValues.d.ts +7 -0
- package/dist/types/editorial.d.ts +16 -0
- package/dist/types/typography.d.ts +5 -1
- package/package.json +1 -1
|
@@ -2,6 +2,6 @@ import { IAltHeaderProps, IBodyTextProps, IHeaderProps, IOverlineProps, IStyledT
|
|
|
2
2
|
export declare const StyledTag: ({ tag, typography, children, level }: IStyledTag) => JSX.Element;
|
|
3
3
|
export declare const AltHeader: ({ level, children }: IAltHeaderProps) => JSX.Element;
|
|
4
4
|
export declare const BodyText: ({ level, children, tag }: IBodyTextProps) => JSX.Element;
|
|
5
|
-
export declare const Header: ({ level, children }: IHeaderProps) => JSX.Element;
|
|
5
|
+
export declare const Header: ({ semanticLevel, level, children }: IHeaderProps) => JSX.Element;
|
|
6
6
|
export declare const Overline: ({ level, children, tag }: IOverlineProps) => JSX.Element;
|
|
7
7
|
export declare const Subtitle: ({ level, children, tag }: ISubtitleProps) => JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
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 PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
4
|
-
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
5
|
-
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
3
|
export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
4
|
export declare const PromoWithTagsText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
5
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
@@ -14,3 +11,8 @@ export declare const ExtraContentWrapper: import("styled-components").StyledComp
|
|
|
14
11
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
12
|
export declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
13
|
export declare const MobileTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const PromoWithTagsTypeTags: import("styled-components").StyledComponent<({ list }: import("../../../types/types").ITypeTagsProps) => JSX.Element, any, {}, never>;
|
|
15
|
+
export declare const PromoWithTagsHeader: import("styled-components").StyledComponent<({ semanticLevel, level, children }: import("../../../types/typography").IHeaderProps) => JSX.Element, any, {}, never>;
|
|
16
|
+
export declare const PromoWithTagsExtraContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
17
|
+
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
18
|
+
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -42,6 +42,10 @@ export interface IEditorialGridProps {
|
|
|
42
42
|
* Indicates if component should be hidden
|
|
43
43
|
*/
|
|
44
44
|
hideSection?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Modifies styles to fixed height card
|
|
47
|
+
*/
|
|
48
|
+
asCard?: boolean;
|
|
45
49
|
}
|
|
46
50
|
export interface IPromoWithTagsStyledProps {
|
|
47
51
|
/**
|
|
@@ -228,4 +232,16 @@ export interface IPromoWithTagsProps {
|
|
|
228
232
|
* Text in the bottom
|
|
229
233
|
*/
|
|
230
234
|
bottomText?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Display with reduced height & font size for use as card
|
|
237
|
+
*/
|
|
238
|
+
asCard?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Make CTA appear disabled
|
|
241
|
+
*/
|
|
242
|
+
disableCTA?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Copy to show on disabled CTA
|
|
245
|
+
*/
|
|
246
|
+
disabledCTACopy?: string;
|
|
231
247
|
}
|
|
@@ -30,9 +30,13 @@ export interface IStyledTag extends ITypographyWrapperProps, IGenericTypography
|
|
|
30
30
|
}
|
|
31
31
|
export interface IHeaderProps extends IGenericTypography {
|
|
32
32
|
/**
|
|
33
|
-
* Header level, 1, 2, 3, 4, 5 or 6.
|
|
33
|
+
* Display Header level, 1, 2, 3, 4, 5 or 6.
|
|
34
34
|
*/
|
|
35
35
|
level: TypographyLevel;
|
|
36
|
+
/**
|
|
37
|
+
* Semantic Header level, 1, 2, 3, 4, 5 or 6. - Not to be used for aeshetics.
|
|
38
|
+
*/
|
|
39
|
+
semanticLevel?: TypographyLevel;
|
|
36
40
|
}
|
|
37
41
|
export interface IAltHeaderProps extends IGenericTypography {
|
|
38
42
|
/**
|