@royaloperahouse/harmonic 0.8.0 → 0.9.1

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.
@@ -13,6 +13,8 @@ declare type BaseProps = {
13
13
  onClick?: MouseEventHandler<HTMLAnchorElement>;
14
14
  /** Custom CSS classes */
15
15
  className?: string;
16
+ /** Styled Components theme */
17
+ theme?: unknown;
16
18
  };
17
19
  declare type IconProps = {
18
20
  /** Icon identifier */
@@ -421,7 +421,8 @@ export declare type IHotFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement
421
421
  export declare type IHotFilterProps = {
422
422
  items: IHotFilterItem[];
423
423
  className?: string;
424
- defaultSelectedIndex?: number;
424
+ selectedIndex?: number;
425
+ onSelect?: (index: number) => void;
425
426
  };
426
427
  export interface ISponsorshipProps {
427
428
  /**
@@ -39,9 +39,23 @@ export interface IUpsellCardProps {
39
39
  */
40
40
  link?: EditorialLink;
41
41
  /**
42
- * Theme: Core, Stream, or Cinema
42
+ * Optional link for secondary CTA
43
+ */
44
+ secondaryLink?: EditorialLink;
45
+ /**
46
+ * If true, switch to stacked CTAs earlier than usual to avoid button text spanning
47
+ * two lines. Useful when this component is rendered within in a narrow parent
48
+ * such as as an item in the Upsell Section.
49
+ */
50
+ stackCtasEarly?: boolean;
51
+ /**
52
+ * Theme for primary CTA: Core, Stream, or Cinema
43
53
  */
44
54
  theme?: ThemeType;
55
+ /**
56
+ * Theme for secondary CTA: Core, Stream, or Cinema
57
+ */
58
+ secondaryTheme?: ThemeType;
45
59
  }
46
60
  export interface IUpsellCardsProps {
47
61
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",