@royaloperahouse/harmonic 0.1.8-g → 0.1.8-h

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.
@@ -8606,22 +8606,29 @@ var COLORS$4 = {
8606
8606
  hover: 'var(--information-panel-button-hover-color)',
8607
8607
  pressed: 'var(--information-panel-button-pressed-color)'
8608
8608
  };
8609
- var getTextColor$4 = function getTextColor(variant, colorValue) {
8610
- return variant === InformationCtaVariants.Primary ? COLORS$4["default"] : colorValue;
8609
+ var getTextColor$4 = function getTextColor(variant, theme, colorValue) {
8610
+ if (theme === ThemeType.Cinema && (variant === InformationCtaVariants.Tertiary || variant === InformationCtaVariants.TextLink)) {
8611
+ return 'var(--color-primary-black)';
8612
+ }
8613
+ if (variant === InformationCtaVariants.Primary) {
8614
+ return COLORS$4["default"];
8615
+ }
8616
+ return colorValue;
8611
8617
  };
8612
8618
  var getBackgroundColor$2 = function getBackgroundColor(variant, colorValue) {
8613
- return variant === InformationCtaVariants.Primary ? "background-color: " + colorValue + ";" : '';
8619
+ return variant === InformationCtaVariants.Primary || variant === undefined ? "background-color: " + colorValue + ";" : '';
8614
8620
  };
8615
8621
  var getBorderColor$1 = function getBorderColor(variant, colorValue) {
8616
- return variant === InformationCtaVariants.Primary || variant === InformationCtaVariants.Secondary ? "border-color: " + colorValue + ";" : '';
8622
+ return variant === InformationCtaVariants.Primary || variant === InformationCtaVariants.Secondary || variant === undefined ? "border-color: " + colorValue + ";" : '';
8617
8623
  };
8618
8624
 
8619
8625
  var _templateObject$Z, _templateObject2$K, _templateObject3$w, _templateObject4$r;
8620
8626
  var InfoWrapper$1 = /*#__PURE__*/styled(Grid)(_templateObject$Z || (_templateObject$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 60px 0;\n color: var(--information-panel-color);\n background-color: var(--information-panel-bg-color);\n\n @media ", " {\n padding: 40px 0;\n }\n"])), devices.mobile);
8621
8627
  var InfoTitle = /*#__PURE__*/styled('div')(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n * {\n margin-block: 0;\n }\n"])));
8622
8628
  var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n\n @media ", " {\n margin-top: 16px;\n }\n\n a {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n\n :hover:not(:active) {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n }\n\n :active {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n }\n }\n"])), devices.mobile, function (_ref) {
8623
- var variant = _ref.variant;
8624
- return getTextColor$4(variant, COLORS$4.background);
8629
+ var variant = _ref.variant,
8630
+ theme = _ref.theme;
8631
+ return getTextColor$4(variant, theme, COLORS$4.background);
8625
8632
  }, function (_ref2) {
8626
8633
  var variant = _ref2.variant;
8627
8634
  return getBackgroundColor$2(variant, COLORS$4.background);
@@ -8629,11 +8636,13 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
8629
8636
  var variant = _ref3.variant;
8630
8637
  return getBorderColor$1(variant, COLORS$4.background);
8631
8638
  }, function (_ref4) {
8632
- var variant = _ref4.variant;
8633
- return getTextColor$4(variant, COLORS$4.background);
8639
+ var variant = _ref4.variant,
8640
+ theme = _ref4.theme;
8641
+ return getTextColor$4(variant, theme, COLORS$4.background);
8634
8642
  }, function (_ref5) {
8635
- var variant = _ref5.variant;
8636
- return getTextColor$4(variant, COLORS$4.hover);
8643
+ var variant = _ref5.variant,
8644
+ theme = _ref5.theme;
8645
+ return getTextColor$4(variant, theme, COLORS$4.hover);
8637
8646
  }, function (_ref6) {
8638
8647
  var variant = _ref6.variant;
8639
8648
  return getBackgroundColor$2(variant, COLORS$4.hover);
@@ -8641,11 +8650,13 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
8641
8650
  var variant = _ref7.variant;
8642
8651
  return getBorderColor$1(variant, COLORS$4.hover);
8643
8652
  }, function (_ref8) {
8644
- var variant = _ref8.variant;
8645
- return getTextColor$4(variant, COLORS$4.hover);
8653
+ var variant = _ref8.variant,
8654
+ theme = _ref8.theme;
8655
+ return getTextColor$4(variant, theme, COLORS$4.hover);
8646
8656
  }, function (_ref9) {
8647
- var variant = _ref9.variant;
8648
- return getTextColor$4(variant, COLORS$4.pressed);
8657
+ var variant = _ref9.variant,
8658
+ theme = _ref9.theme;
8659
+ return getTextColor$4(variant, theme, COLORS$4.pressed);
8649
8660
  }, function (_ref10) {
8650
8661
  var variant = _ref10.variant;
8651
8662
  return getBackgroundColor$2(variant, COLORS$4.pressed);
@@ -8653,8 +8664,9 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
8653
8664
  var variant = _ref11.variant;
8654
8665
  return getBorderColor$1(variant, COLORS$4.pressed);
8655
8666
  }, function (_ref12) {
8656
- var variant = _ref12.variant;
8657
- return getTextColor$4(variant, COLORS$4.pressed);
8667
+ var variant = _ref12.variant,
8668
+ theme = _ref12.theme;
8669
+ return getTextColor$4(variant, theme, COLORS$4.pressed);
8658
8670
  });
8659
8671
  var InfoBodyWrapper = /*#__PURE__*/styled(BodyCopyHarmonic)(_templateObject4$r || (_templateObject4$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--information-panel-color);\n\n a {\n text-decoration: underline;\n color: var(--information-panel-color);\n }\n\n @media ", " {\n padding-top: 4px;\n }\n"])), devices.mobile);
8660
8672
 
@@ -8707,9 +8719,11 @@ var InfoCta = function InfoCta(_ref2) {
8707
8719
  iconName = _ref2.iconName,
8708
8720
  iconDirection = _ref2.iconDirection,
8709
8721
  _ref2$target = _ref2.target,
8710
- target = _ref2$target === void 0 ? LinkTarget.Self : _ref2$target;
8722
+ target = _ref2$target === void 0 ? LinkTarget.Self : _ref2$target,
8723
+ theme = _ref2.theme;
8711
8724
  return /*#__PURE__*/React__default.createElement(InfoCTAWrapper, {
8712
- variant: variant
8725
+ variant: variant,
8726
+ theme: theme
8713
8727
  }, renderButton({
8714
8728
  variant: variant,
8715
8729
  link: link,
@@ -8734,7 +8748,8 @@ var Information = function Information(_ref) {
8734
8748
  var body = _ref.body,
8735
8749
  title = _ref.title,
8736
8750
  cta = _ref.cta,
8737
- className = _ref.className;
8751
+ className = _ref.className,
8752
+ theme = _ref.theme;
8738
8753
  var safeTitle = title || {
8739
8754
  text: '',
8740
8755
  textSize: 'medium'
@@ -8772,7 +8787,8 @@ var Information = function Information(_ref) {
8772
8787
  text: cta.text,
8773
8788
  iconName: cta.iconName,
8774
8789
  iconDirection: cta.iconDirection,
8775
- target: cta.target
8790
+ target: cta.target,
8791
+ theme: theme
8776
8792
  })))));
8777
8793
  };
8778
8794