@royaloperahouse/chord 2.4.3-a-chord-development → 2.4.3-b-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,3 +1,13 @@
1
+ ## [2.4.3]
2
+ - Fix Page Heading spacing around the title
3
+
4
+ ## [2.4.2]
5
+ - Logo change in main nav bar - added alt text, updated url, updated images for local testing
6
+
7
+ ## [2.4.1]
8
+ - Update Stream and Cinema badges with new logo.
9
+ - Update Page and Compact headers with new badges.
10
+
1
11
  ## [2.4.0]
2
12
  - Added optional semantic level props to Page Heading, Alt Header, Promo With Title, and Section Title
3
13
  - Added optional character limit prop to Page Heading
@@ -7067,9 +7067,15 @@ var TextContainer = /*#__PURE__*/styled__default.div(_templateObject3$o || (_tem
7067
7067
  var _templateObject$N, _templateObject2$w, _templateObject3$p, _templateObject4$j, _templateObject5$e;
7068
7068
  var AccordionContainer = /*#__PURE__*/styled__default.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n div {\n overflow: hidden;\n }\n"])));
7069
7069
  var LineContainer = /*#__PURE__*/styled__default.div(_templateObject2$w || (_templateObject2$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2px;\n background-color: var(--base-color-lightgrey);\n width: 100%;\n"])));
7070
- var ChildrenContainer = /*#__PURE__*/styled__default.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px 20px 28px 20px;\n\n @media ", " {\n margin: 12px 0px 24px 0px;\n }\n"])), devices.mobile);
7070
+ var ChildrenContainer = /*#__PURE__*/styled__default.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px 20px 28px 20px;\n\n visibility: ", ";\n\n @media ", " {\n margin: 12px 0px 24px 0px;\n }\n \n @media print { \n visibility: visible;\n }\n}\n"])), function (_ref) {
7071
+ var isVisible = _ref.isVisible;
7072
+ return isVisible ? 'visible' : 'hidden';
7073
+ }, devices.mobile);
7071
7074
  var TitleContainer$3 = /*#__PURE__*/styled__default.div(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n\n && h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n div {\n margin: 21px 20px;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n @media ", " {\n margin: 12px 20px 12px 0px;\n }\n }\n\n && svg {\n width: var(--navigation-middle-gap);\n height: var(--navigation-middle-gap);\n margin-right: 20px;\n\n @media ", " {\n margin-right: 0px;\n }\n }\n\n :hover {\n cursor: pointer;\n }\n"])), devices.mobile, devices.mobile);
7072
- var ContentContainer = /*#__PURE__*/styled__default.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.2s ease;\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n\n & h1 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & h2 {\n font-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n\n @media ", " {\n transition: 100% 0.2s ease;\n }\n"])), devices.mobile);
7075
+ var ContentContainer = /*#__PURE__*/styled__default.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.2s ease;\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n max-height: ", ";\n\n @media print {\n max-height: 500px;\n }\n\n & h1 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & h2 {\n font-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n\n @media ", " {\n transition: 100% 0.2s ease;\n }\n"])), function (_ref2) {
7076
+ var textHeight = _ref2.textHeight;
7077
+ return textHeight;
7078
+ }, devices.mobile);
7073
7079
 
7074
7080
  var Accordion = function Accordion(_ref) {
7075
7081
  var _ref$title = _ref.title,
@@ -7100,11 +7106,7 @@ var Accordion = function Accordion(_ref) {
7100
7106
  setIconName = _useState3[1]; // Contents children visibility is set to prevent it from being keyboard tabbable when the accordion is closed
7101
7107
 
7102
7108
 
7103
- var _useState4 = React.useState(initOpen ? {
7104
- visibility: 'visible'
7105
- } : {
7106
- visibility: 'hidden'
7107
- }),
7109
+ var _useState4 = React.useState(initOpen),
7108
7110
  childrenVisibility = _useState4[0],
7109
7111
  setChildrenVisibility = _useState4[1];
7110
7112
 
@@ -7120,11 +7122,7 @@ var Accordion = function Accordion(_ref) {
7120
7122
  setOpenAccordion(!openAccordion);
7121
7123
  setTextHeight(openAccordion ? '0px' : content.current.scrollHeight + "px");
7122
7124
  setIconName(openAccordion ? 'Expand' : 'Detract');
7123
- setChildrenVisibility(openAccordion ? {
7124
- visibility: 'hidden'
7125
- } : {
7126
- visibility: 'visible'
7127
- });
7125
+ setChildrenVisibility(!openAccordion);
7128
7126
  };
7129
7127
 
7130
7128
  var keyDown = function keyDown(e) {
@@ -7134,7 +7132,9 @@ var Accordion = function Accordion(_ref) {
7134
7132
  };
7135
7133
 
7136
7134
  var Standfirst = function Standfirst() {
7137
- return visibleStandfirst ? /*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, null, visibleStandfirst)) : null;
7135
+ return visibleStandfirst ? /*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
7136
+ isVisible: childrenVisibility
7137
+ }, visibleStandfirst)) : null;
7138
7138
  };
7139
7139
 
7140
7140
  var contentContainerId = title + "-accordion-content";
@@ -7184,13 +7184,11 @@ var Accordion = function Accordion(_ref) {
7184
7184
  })), visibleStandfirst && /*#__PURE__*/React__default.createElement(Standfirst, null), /*#__PURE__*/React__default.createElement(ContentContainer, {
7185
7185
  "data-testid": "richcontainer",
7186
7186
  ref: content,
7187
- style: {
7188
- maxHeight: "" + textHeight
7189
- },
7187
+ textHeight: textHeight,
7190
7188
  id: contentContainerId,
7191
7189
  "aria-live": "polite"
7192
7190
  }, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
7193
- style: childrenVisibility
7191
+ isVisible: childrenVisibility
7194
7192
  }, children)), showLine && /*#__PURE__*/React__default.createElement(LineContainer, null));
7195
7193
  };
7196
7194