@royaloperahouse/chord 1.9.0-a-chord-development → 1.9.0-c-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.9.0-c]
4
+ - ContentSummary: make image clickable
5
+
6
+ ## [1.9.0-b]
7
+ - ContentSummary: change image size
8
+ - SearchBar: Export component
9
+
3
10
  ## [1.9.0-a]
4
11
  - ContentSummary: change image props
5
12
 
@@ -5287,7 +5287,7 @@ var ContactCard = function ContactCard(_ref) {
5287
5287
 
5288
5288
  var _templateObject$J, _templateObject2$t, _templateObject3$k, _templateObject4$e, _templateObject5$9;
5289
5289
  var ContentSummaryWrapper = /*#__PURE__*/styled__default.article(_templateObject$J || (_templateObject$J = /*#__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);
5290
- var ContentSummaryImageWrapper = /*#__PURE__*/styled__default.div(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-column: 1;\n"])));
5290
+ var ContentSummaryImageWrapper = /*#__PURE__*/styled__default.div(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 0 0 33.3%;\n"])));
5291
5291
  var ContentSummaryTextWrapper = /*#__PURE__*/styled__default.div(_templateObject3$k || (_templateObject3$k = /*#__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) {
5292
5292
  return props.showImage ? 2 : '1 / span 4';
5293
5293
  }, devices.mobile);
@@ -5318,9 +5318,14 @@ var ContentSummary = function ContentSummary(_ref) {
5318
5318
  "data-testid": "image-wrapper"
5319
5319
  }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
5320
5320
  aspectRatio: exports.AspectRatio['4:3']
5321
+ }, link != null && link.href ? /*#__PURE__*/React__default.createElement("a", {
5322
+ href: link.href
5321
5323
  }, /*#__PURE__*/React__default.createElement("img", {
5322
5324
  src: image.src,
5323
5325
  alt: image.alt
5326
+ })) : /*#__PURE__*/React__default.createElement("img", {
5327
+ src: image.src,
5328
+ alt: image.alt
5324
5329
  }))), /*#__PURE__*/React__default.createElement(ContentSummaryTextWrapper, {
5325
5330
  showImage: showImage
5326
5331
  }, title && /*#__PURE__*/React__default.createElement(ContentSummaryTitleWrapper, {
@@ -7379,6 +7384,7 @@ exports.PromoWithTags = PromoWithTags;
7379
7384
  exports.PromoWithTitle = PromoWithTitle;
7380
7385
  exports.Quote = Quote;
7381
7386
  exports.RotatorButtons = RotatorButtons;
7387
+ exports.SearchBar = SearchBar;
7382
7388
  exports.SecondaryButton = SecondaryButton;
7383
7389
  exports.SecondaryLogo = SecondaryLogo;
7384
7390
  exports.SectionSplitter = SectionSplitter;