@royaloperahouse/harmonic 0.9.1-a → 0.9.2-a

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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.9.2]
2
+ - Add onClick handler to the Card component
3
+
1
4
  ## [0.9.0]
2
5
  - Upsell Card, Upsell Cards, Upsell section:
3
6
  - Add secondary CTA
@@ -8447,8 +8447,7 @@ var Card = function Card(_ref) {
8447
8447
  labelParams = _ref.labelParams,
8448
8448
  _ref$isGridCard = _ref.isGridCard,
8449
8449
  isGridCard = _ref$isGridCard === void 0 ? false : _ref$isGridCard,
8450
- auxiliaryCTA = _ref.auxiliaryCTA,
8451
- onClick = _ref.onClick;
8450
+ auxiliaryCTA = _ref.auxiliaryCTA;
8452
8451
  var truncate = function truncate(str, n) {
8453
8452
  return str.length >= n ? str.substr(0, n) : str;
8454
8453
  };
@@ -8499,7 +8498,7 @@ var Card = function Card(_ref) {
8499
8498
  }, /*#__PURE__*/React__default.createElement("a", {
8500
8499
  href: firstButton == null ? void 0 : firstButton.href,
8501
8500
  target: firstButton == null ? void 0 : firstButton.target,
8502
- onClick: onClick,
8501
+ onClick: firstButton == null ? void 0 : firstButton.onClick,
8503
8502
  className: "targetLink",
8504
8503
  style: {
8505
8504
  flexGrow: onlyShowButtonsOnHover ? 'unset' : 1