@royaloperahouse/harmonic 0.9.1 → 0.9.2

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
@@ -8442,7 +8442,8 @@ var Card = function Card(_ref) {
8442
8442
  labelParams = _ref.labelParams,
8443
8443
  _ref$isGridCard = _ref.isGridCard,
8444
8444
  isGridCard = _ref$isGridCard === void 0 ? false : _ref$isGridCard,
8445
- auxiliaryCTA = _ref.auxiliaryCTA;
8445
+ auxiliaryCTA = _ref.auxiliaryCTA,
8446
+ onClick = _ref.onClick;
8446
8447
  var truncate = function truncate(str, n) {
8447
8448
  return str.length >= n ? str.substr(0, n) : str;
8448
8449
  };
@@ -8493,6 +8494,7 @@ var Card = function Card(_ref) {
8493
8494
  }, /*#__PURE__*/React__default.createElement("a", {
8494
8495
  href: firstButton == null ? void 0 : firstButton.href,
8495
8496
  target: firstButton == null ? void 0 : firstButton.target,
8497
+ onClick: onClick,
8496
8498
  className: "targetLink",
8497
8499
  style: {
8498
8500
  flexGrow: onlyShowButtonsOnHover ? 'unset' : 1