@royaloperahouse/chord 2.9.1 → 2.10.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 +5 -0
- package/dist/chord.cjs.development.js +35 -12
- 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 +35 -12
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Buttons/Secondary/SecondaryButtonWrapper.style.d.ts +2 -2
- package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +3 -1
- package/dist/types/upsell.d.ts +16 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IButtonProps } from '../../../../types/buttonTypes';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const SecondaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<IButtonProps>, any, IButtonProps, never>;
|
|
4
|
+
export default SecondaryButtonWrapper;
|
|
@@ -7,7 +7,9 @@ declare type withColor = {
|
|
|
7
7
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
8
|
export declare const PromoLabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
9
|
export declare const PromoLabel: import("styled-components").StyledComponent<"div", any, withColor, never>;
|
|
10
|
-
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", any, {
|
|
11
|
+
stackCtasEarly: boolean;
|
|
12
|
+
}, never>;
|
|
11
13
|
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
14
|
export declare const OfferTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
15
|
export declare const PriceRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/dist/types/upsell.d.ts
CHANGED
|
@@ -36,13 +36,27 @@ export interface IUpsellCardProps {
|
|
|
36
36
|
*/
|
|
37
37
|
offerTexts?: IOfferTextProps[];
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Optional link for primary CTA
|
|
40
40
|
*/
|
|
41
41
|
link?: EditorialLink;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Optional link for secondary CTA
|
|
44
|
+
*/
|
|
45
|
+
secondaryLink?: EditorialLink;
|
|
46
|
+
/**
|
|
47
|
+
* If true, switch to stacked CTAs earlier than usual to avoid button text spanning
|
|
48
|
+
* two lines. Useful when this component is rendered within in a narrow parent
|
|
49
|
+
* such as as an item in the Upsell Section.
|
|
50
|
+
*/
|
|
51
|
+
stackCtasEarly?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Theme for primary CTA: Core, Stream, or Cinema
|
|
44
54
|
*/
|
|
45
55
|
theme?: ThemeType;
|
|
56
|
+
/**
|
|
57
|
+
* Theme for secondary CTA: Core, Stream, or Cinema
|
|
58
|
+
*/
|
|
59
|
+
secondaryTheme?: ThemeType;
|
|
46
60
|
}
|
|
47
61
|
export interface IUpsellCardsProps {
|
|
48
62
|
/**
|