@royaloperahouse/harmonic 1.0.6-e → 1.0.6-f
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 +2 -0
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +2 -1
- package/dist/harmonic.cjs.development.js +28 -21
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +28 -21
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +3 -1
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -5543,22 +5543,25 @@ var NavTopContainer = /*#__PURE__*/styled.div(_templateObject12 || (_templateObj
|
|
|
5543
5543
|
var NavTopContainerMobile = /*#__PURE__*/styled.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n display: flex;\n width: fit-content;\n align-items: center;\n height: 10%;\n margin-left: 20px;\n padding-bottom: 36px;\n }\n"])), devices.mobileAndTablet);
|
|
5544
5544
|
|
|
5545
5545
|
var _templateObject$B, _templateObject2$q, _templateObject3$f, _templateObject4$e, _templateObject5$a, _templateObject6$6, _templateObject7$4;
|
|
5546
|
-
var AccordionContainer = /*#__PURE__*/styled.div(_templateObject$B || (_templateObject$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n border-top:
|
|
5547
|
-
var
|
|
5548
|
-
return
|
|
5546
|
+
var AccordionContainer = /*#__PURE__*/styled.div(_templateObject$B || (_templateObject$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n border-top: ", ";\n border-bottom: ", ";\n"])), function (_ref) {
|
|
5547
|
+
var showTopLine = _ref.showTopLine;
|
|
5548
|
+
return showTopLine ? '2px solid var(--color-base-light-grey)' : 'none';
|
|
5549
|
+
}, function (_ref2) {
|
|
5550
|
+
var showBottomLine = _ref2.showBottomLine;
|
|
5551
|
+
return showBottomLine ? '2px solid var(--color-base-light-grey)' : 'none';
|
|
5549
5552
|
});
|
|
5550
|
-
var ChildrenContainer = /*#__PURE__*/styled.div(_templateObject2$q || (_templateObject2$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px 20px 28px 20px;\n\n opacity: ", ";\n transition: opacity 0.2s ease;\n pointer-events: ", ";\n\n\n @media ", " {\n margin: 12px 0px 24px 0px;\n }\n \n @media print { \n visibility: visible;\n }\n}\n"])), function (
|
|
5551
|
-
var isVisible = _ref2.isVisible;
|
|
5552
|
-
return isVisible ? 1 : 0;
|
|
5553
|
-
}, function (_ref3) {
|
|
5553
|
+
var ChildrenContainer = /*#__PURE__*/styled.div(_templateObject2$q || (_templateObject2$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px 20px 28px 20px;\n\n opacity: ", ";\n transition: opacity 0.2s ease;\n pointer-events: ", ";\n\n\n @media ", " {\n margin: 12px 0px 24px 0px;\n }\n \n @media print { \n visibility: visible;\n }\n}\n"])), function (_ref3) {
|
|
5554
5554
|
var isVisible = _ref3.isVisible;
|
|
5555
|
+
return isVisible ? 1 : 0;
|
|
5556
|
+
}, function (_ref4) {
|
|
5557
|
+
var isVisible = _ref4.isVisible;
|
|
5555
5558
|
return isVisible ? 'auto' : 'none';
|
|
5556
5559
|
}, devices.mobile);
|
|
5557
|
-
var TitleContainer$1 = /*#__PURE__*/styled.div(_templateObject3$f || (_templateObject3$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-top: 28px;\n padding-bottom: 28px;\n color: var(--color-primary-black);\n\n && svg {\n width: 24px;\n height: 24px;\n }\n\n :hover {\n cursor: ", ";\n pointer-events: ", ";\n }\n\n @media ", " {\n padding-top: 16px;\n padding-bottom: 16px;\n }\n"])), function (
|
|
5558
|
-
var hasChildren = _ref4.hasChildren;
|
|
5559
|
-
return hasChildren ? 'pointer' : 'default';
|
|
5560
|
-
}, function (_ref5) {
|
|
5560
|
+
var TitleContainer$1 = /*#__PURE__*/styled.div(_templateObject3$f || (_templateObject3$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-top: 28px;\n padding-bottom: 28px;\n color: var(--color-primary-black);\n\n && svg {\n width: 24px;\n height: 24px;\n }\n\n :hover {\n cursor: ", ";\n pointer-events: ", ";\n }\n\n @media ", " {\n padding-top: 16px;\n padding-bottom: 16px;\n }\n"])), function (_ref5) {
|
|
5561
5561
|
var hasChildren = _ref5.hasChildren;
|
|
5562
|
+
return hasChildren ? 'pointer' : 'default';
|
|
5563
|
+
}, function (_ref6) {
|
|
5564
|
+
var hasChildren = _ref6.hasChildren;
|
|
5562
5565
|
return hasChildren ? 'auto' : 'none';
|
|
5563
5566
|
}, devices.mobile);
|
|
5564
5567
|
var TitleText = /*#__PURE__*/styled(HarmonicSubtitle)(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: calc(100% - 32px);\n"])));
|
|
@@ -5567,14 +5570,14 @@ var ContentContainer = /*#__PURE__*/styled(ExtendedBodyCopyHarmonic).withConfig(
|
|
|
5567
5570
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5568
5571
|
return prop !== 'textHeight';
|
|
5569
5572
|
}
|
|
5570
|
-
})(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\n overflow: ", ";\n margin-bottom: ", ";\n\n @media print {\n max-height: max-content;\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 (
|
|
5571
|
-
var textHeight = _ref6.textHeight;
|
|
5572
|
-
return textHeight;
|
|
5573
|
-
}, function (_ref7) {
|
|
5573
|
+
})(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\n overflow: ", ";\n margin-bottom: ", ";\n\n @media print {\n max-height: max-content;\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 (_ref7) {
|
|
5574
5574
|
var textHeight = _ref7.textHeight;
|
|
5575
|
-
return textHeight
|
|
5575
|
+
return textHeight;
|
|
5576
5576
|
}, function (_ref8) {
|
|
5577
5577
|
var textHeight = _ref8.textHeight;
|
|
5578
|
+
return textHeight === '0px' ? 'hidden' : 'visible';
|
|
5579
|
+
}, function (_ref9) {
|
|
5580
|
+
var textHeight = _ref9.textHeight;
|
|
5578
5581
|
return textHeight === '0px' ? '0px' : '12px';
|
|
5579
5582
|
}, devices.mobile);
|
|
5580
5583
|
var PrintHideWrapper = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media print {\n display: none;\n }\n"])));
|
|
@@ -5596,8 +5599,10 @@ var Accordion = function Accordion(_ref) {
|
|
|
5596
5599
|
var _expandedStateIcon$ic, _collapsedStateIcon$i;
|
|
5597
5600
|
var _ref$title = _ref.title,
|
|
5598
5601
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
5599
|
-
_ref$
|
|
5600
|
-
|
|
5602
|
+
_ref$showTopLine = _ref.showTopLine,
|
|
5603
|
+
showTopLine = _ref$showTopLine === void 0 ? true : _ref$showTopLine,
|
|
5604
|
+
_ref$showBottomLine = _ref.showBottomLine,
|
|
5605
|
+
showBottomLine = _ref$showBottomLine === void 0 ? true : _ref$showBottomLine,
|
|
5601
5606
|
children = _ref.children,
|
|
5602
5607
|
_ref$initOpen = _ref.initOpen,
|
|
5603
5608
|
initOpen = _ref$initOpen === void 0 ? false : _ref$initOpen,
|
|
@@ -5739,7 +5744,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
5739
5744
|
};
|
|
5740
5745
|
var contentContainerId = title + "-accordion-content";
|
|
5741
5746
|
return /*#__PURE__*/React__default.createElement(AccordionContainer, {
|
|
5742
|
-
|
|
5747
|
+
showTopLine: showTopLine,
|
|
5748
|
+
showBottomLine: showBottomLine,
|
|
5743
5749
|
className: className
|
|
5744
5750
|
}, /*#__PURE__*/React__default.createElement(TitleContainer$1, {
|
|
5745
5751
|
onClick: toggleAccordion,
|
|
@@ -5779,7 +5785,7 @@ var Accordions = function Accordions(_ref) {
|
|
|
5779
5785
|
return /*#__PURE__*/React__default.createElement(Accordion, {
|
|
5780
5786
|
key: accordion.title + "-" + index,
|
|
5781
5787
|
title: accordion.title,
|
|
5782
|
-
|
|
5788
|
+
showBottomLine: isLastAccordion(index),
|
|
5783
5789
|
expandedStateIcon: accordion.expandedStateIcon,
|
|
5784
5790
|
collapsedStateIcon: accordion.collapsedStateIcon
|
|
5785
5791
|
}, accordion.children);
|
|
@@ -10659,7 +10665,8 @@ var ReadMore = function ReadMore(_ref) {
|
|
|
10659
10665
|
return /*#__PURE__*/React__default.createElement(AccordionContainer, {
|
|
10660
10666
|
tabIndex: 0,
|
|
10661
10667
|
onKeyDown: handleKeyDown,
|
|
10662
|
-
className: className
|
|
10668
|
+
className: className,
|
|
10669
|
+
showTopLine: false
|
|
10663
10670
|
}, /*#__PURE__*/React__default.createElement(ReadMoreContainer, {
|
|
10664
10671
|
"aria-label": title,
|
|
10665
10672
|
"aria-expanded": isFullTextOpen,
|