@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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { IButtonProps } from '../../../../types/buttonTypes';
3
- declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<IButtonProps>, any, IButtonProps, never>;
4
- export default PrimaryButtonWrapper;
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, {}, never>;
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>;
@@ -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
- * Theme: Core, Stream, or Cinema
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",