@royaloperahouse/chord 2.4.9 → 2.4.10

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
+ ## [2.4.10]
2
+ - Credit Listing component: extend column count
3
+
1
4
  ## [2.4.9]
2
5
  - Information component: fix UI issues
3
6
 
@@ -8862,7 +8862,10 @@ var PeopleListing = function PeopleListing(_ref) {
8862
8862
 
8863
8863
  var _templateObject$11, _templateObject2$L, _templateObject3$C, _templateObject4$u;
8864
8864
  var ReplacementWrapper = /*#__PURE__*/styled__default.div(_templateObject$11 || (_templateObject$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n"])));
8865
- var CreditListingWrapper = /*#__PURE__*/styled__default(PeopleListingGrid)(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n p {\n line-height: 1.5;\n }\n"])));
8865
+ var CreditListingWrapper = /*#__PURE__*/styled__default(PeopleListingGrid)(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n p {\n line-height: 1.5;\n }\n\n grid-template-columns: ", ";\n\n @media ", " {\n grid-template-columns: 1fr;\n }\n\n @media ", " {\n grid-template-columns: repeat(2, 1fr);\n }\n"])), function (_ref) {
8866
+ var columnCount = _ref.columnCount;
8867
+ return "repeat(" + columnCount + ", 1fr)";
8868
+ }, devices.mobile, devices.tablet);
8866
8869
  var DescriptionWrapper = /*#__PURE__*/styled__default.div(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n p {\n line-height: 25px;\n margin-bottom: 3px;\n }\n"])));
8867
8870
  var RoleWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--base-color-darkgrey);\n overflow-wrap: break-word;\n min-height: 1.5em;\n"])));
8868
8871
 
@@ -8885,9 +8888,13 @@ var concatenateMusicTitle = function concatenateMusicTitle(musicTitle) {
8885
8888
  };
8886
8889
 
8887
8890
  var CreditListing = function CreditListing(_ref) {
8888
- var roles = _ref.roles;
8891
+ var roles = _ref.roles,
8892
+ _ref$columnCount = _ref.columnCount,
8893
+ columnCount = _ref$columnCount === void 0 ? 4 : _ref$columnCount;
8889
8894
  var charThreshold = 180;
8890
- return /*#__PURE__*/React__default.createElement(CreditListingWrapper, null, roles.map(function (_ref2, index) {
8895
+ return /*#__PURE__*/React__default.createElement(CreditListingWrapper, {
8896
+ columnCount: columnCount
8897
+ }, roles.map(function (_ref2, index) {
8891
8898
  var name = _ref2.name,
8892
8899
  people = _ref2.people,
8893
8900
  description = _ref2.description,
@@ -8896,9 +8903,10 @@ var CreditListing = function CreditListing(_ref) {
8896
8903
  additionalInfo = _ref2.additionalInfo,
8897
8904
  dataROH = _ref2.dataROH;
8898
8905
  var namesLength = getConcatenatedPropLength(people, 'name');
8906
+ var columnSpanDesktop = namesLength > charThreshold ? people.length > 2 ? 4 : 2 : 1;
8899
8907
  return /*#__PURE__*/React__default.createElement(GridItem, {
8900
- columnSpanDesktop: namesLength > charThreshold ? 2 : 1,
8901
- columnSpanDevice: namesLength > charThreshold ? 2 : 1,
8908
+ columnSpanDesktop: columnSpanDesktop,
8909
+ columnSpanDevice: columnSpanDesktop,
8902
8910
  columnSpanSmallDevice: 2,
8903
8911
  key: name + "-" + index
8904
8912
  }, /*#__PURE__*/React__default.createElement(TextWrapper$2, null, /*#__PURE__*/React__default.createElement(RoleWrapper$1, {