@royaloperahouse/harmonic 1.0.6-k → 1.0.6-l
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/dist/components/molecules/Accordion/Accordion.style.d.ts +1 -0
- package/dist/harmonic.cjs.development.js +15 -10
- 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 +15 -10
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -5557,11 +5557,14 @@ var ChildrenContainer = /*#__PURE__*/styled.div(_templateObject2$q || (_template
|
|
|
5557
5557
|
var isVisible = _ref4.isVisible;
|
|
5558
5558
|
return isVisible ? 'auto' : 'none';
|
|
5559
5559
|
}, devices.mobile);
|
|
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
|
-
var
|
|
5562
|
-
return
|
|
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 margin-left: ", ";\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 margin-left: 0;\n }\n"])), function (_ref5) {
|
|
5561
|
+
var titleMargin = _ref5.titleMargin;
|
|
5562
|
+
return titleMargin || '0';
|
|
5563
5563
|
}, function (_ref6) {
|
|
5564
5564
|
var hasChildren = _ref6.hasChildren;
|
|
5565
|
+
return hasChildren ? 'pointer' : 'default';
|
|
5566
|
+
}, function (_ref7) {
|
|
5567
|
+
var hasChildren = _ref7.hasChildren;
|
|
5565
5568
|
return hasChildren ? 'auto' : 'none';
|
|
5566
5569
|
}, devices.mobile);
|
|
5567
5570
|
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"])));
|
|
@@ -5570,14 +5573,14 @@ var ContentContainer = /*#__PURE__*/styled(ExtendedBodyCopyHarmonic).withConfig(
|
|
|
5570
5573
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5571
5574
|
return prop !== 'textHeight';
|
|
5572
5575
|
}
|
|
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 (
|
|
5574
|
-
var textHeight = _ref7.textHeight;
|
|
5575
|
-
return textHeight;
|
|
5576
|
-
}, function (_ref8) {
|
|
5576
|
+
})(_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 (_ref8) {
|
|
5577
5577
|
var textHeight = _ref8.textHeight;
|
|
5578
|
-
return textHeight
|
|
5578
|
+
return textHeight;
|
|
5579
5579
|
}, function (_ref9) {
|
|
5580
5580
|
var textHeight = _ref9.textHeight;
|
|
5581
|
+
return textHeight === '0px' ? 'hidden' : 'visible';
|
|
5582
|
+
}, function (_ref0) {
|
|
5583
|
+
var textHeight = _ref0.textHeight;
|
|
5581
5584
|
return textHeight === '0px' ? '0px' : '12px';
|
|
5582
5585
|
}, devices.mobile);
|
|
5583
5586
|
var PrintHideWrapper = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media print {\n display: none;\n }\n"])));
|
|
@@ -5609,7 +5612,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
5609
5612
|
className = _ref.className,
|
|
5610
5613
|
expandedStateIcon = _ref.expandedStateIcon,
|
|
5611
5614
|
collapsedStateIcon = _ref.collapsedStateIcon,
|
|
5612
|
-
childrenContainerStyle = _ref.childrenContainerStyle
|
|
5615
|
+
childrenContainerStyle = _ref.childrenContainerStyle,
|
|
5616
|
+
titleMargin = _ref.titleMargin;
|
|
5613
5617
|
var _useState = useState(initOpen),
|
|
5614
5618
|
openAccordion = _useState[0],
|
|
5615
5619
|
setOpenAccordion = _useState[1];
|
|
@@ -5756,7 +5760,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
5756
5760
|
"aria-label": title,
|
|
5757
5761
|
"aria-expanded": openAccordion,
|
|
5758
5762
|
"aria-controls": contentContainerId,
|
|
5759
|
-
hasChildren: !!children
|
|
5763
|
+
hasChildren: !!children,
|
|
5764
|
+
titleMargin: titleMargin
|
|
5760
5765
|
}, /*#__PURE__*/React__default.createElement(TitleText, null, title), children && (/*#__PURE__*/React__default.createElement(PrintHideWrapper, null, /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, icon))))), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
5761
5766
|
"data-testid": "richcontainer",
|
|
5762
5767
|
ref: content,
|