@royaloperahouse/chord 1.24.2-c-chord-development → 1.24.3-a-chord-development

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.
@@ -6501,7 +6501,9 @@ var ContactCard = function ContactCard(_ref) {
6501
6501
  };
6502
6502
 
6503
6503
  var _templateObject$R, _templateObject2$A, _templateObject3$s, _templateObject4$l, _templateObject5$f;
6504
- var ContentSummaryWrapper = /*#__PURE__*/styled__default.article(_templateObject$R || (_templateObject$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-items: start;\n align-items: center;\n margin: 20px 0;\n gap: 24px;\n\n @media ", " {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n"])), devices.mobile);
6504
+ var ContentSummaryWrapper = /*#__PURE__*/styled__default.article(_templateObject$R || (_templateObject$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-items: start;\n align-items: center;\n margin: 20px 0;\n gap: 24px;\n cursor: ", ";\n\n @media ", " {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n"])), function (props) {
6505
+ return props.clickable ? 'pointer' : 'default';
6506
+ }, devices.mobile);
6505
6507
  var ContentSummaryImageWrapper = /*#__PURE__*/styled__default.div(_templateObject2$A || (_templateObject2$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 0 0 33.3%;\n"])));
6506
6508
  var ContentSummaryTextWrapper = /*#__PURE__*/styled__default.div(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n gap: 22px;\n\n & > * {\n margin-block-start: 0;\n margin-block-end: 0;\n }\n\n @media ", " {\n margin: 0 20px;\n gap: 12px;\n }\n\n & .content-summary-text-link {\n height: unset;\n }\n"])), function (props) {
6507
6509
  return props.showImage ? 2 : '1 / span 4';
@@ -6513,6 +6515,12 @@ var ContentSummaryBodyTextWrapper = /*#__PURE__*/styled__default.div(_templateOb
6513
6515
 
6514
6516
  var MAX_HEADER_LEVEL = 6;
6515
6517
 
6518
+ var clickHandler = function clickHandler(link) {
6519
+ if (link && link.href) {
6520
+ document.location.href = link.href;
6521
+ }
6522
+ };
6523
+
6516
6524
  var ContentSummary = function ContentSummary(_ref) {
6517
6525
  var title = _ref.title,
6518
6526
  subtitle = _ref.subtitle,
@@ -6525,9 +6533,15 @@ var ContentSummary = function ContentSummary(_ref) {
6525
6533
  showImage = _ref$showImage === void 0 ? false : _ref$showImage,
6526
6534
  _ref$truncate = _ref.truncate,
6527
6535
  truncate = _ref$truncate === void 0 ? 0 : _ref$truncate,
6536
+ _ref$fullyClickable = _ref.fullyClickable,
6537
+ fullyClickable = _ref$fullyClickable === void 0 ? false : _ref$fullyClickable,
6528
6538
  _ref$baseSemanticLeve = _ref.baseSemanticLevel,
6529
6539
  baseSemanticLevel = _ref$baseSemanticLeve === void 0 ? 3 : _ref$baseSemanticLeve;
6530
6540
  return /*#__PURE__*/React__default.createElement(ContentSummaryWrapper, {
6541
+ onClick: function onClick() {
6542
+ fullyClickable && clickHandler(link);
6543
+ },
6544
+ clickable: fullyClickable,
6531
6545
  "data-roh": "content-summary-item"
6532
6546
  }, showImage && image && /*#__PURE__*/React__default.createElement(ContentSummaryImageWrapper, {
6533
6547
  "data-testid": "image-wrapper"