@royaloperahouse/harmonic 1.0.6-r → 1.0.6-s
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/harmonic.cjs.development.js +9 -2
- 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 +9 -2
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5582,6 +5582,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
5582
5582
|
_ref$showBottomLine = _ref.showBottomLine,
|
|
5583
5583
|
showBottomLine = _ref$showBottomLine === void 0 ? true : _ref$showBottomLine,
|
|
5584
5584
|
children = _ref.children,
|
|
5585
|
+
visibleStandfirst = _ref.visibleStandfirst,
|
|
5585
5586
|
_ref$initOpen = _ref.initOpen,
|
|
5586
5587
|
initOpen = _ref$initOpen === void 0 ? false : _ref$initOpen,
|
|
5587
5588
|
className = _ref.className,
|
|
@@ -5722,6 +5723,11 @@ var Accordion = function Accordion(_ref) {
|
|
|
5722
5723
|
toggleAccordion();
|
|
5723
5724
|
}
|
|
5724
5725
|
};
|
|
5726
|
+
var Standfirst = function Standfirst() {
|
|
5727
|
+
return visibleStandfirst ? (/*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
|
|
5728
|
+
isVisible: true
|
|
5729
|
+
}, visibleStandfirst))) : null;
|
|
5730
|
+
};
|
|
5725
5731
|
var contentContainerId = title + "-accordion-content";
|
|
5726
5732
|
return /*#__PURE__*/React__default.createElement(AccordionContainer, {
|
|
5727
5733
|
showTopLine: showTopLine,
|
|
@@ -5737,7 +5743,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
5737
5743
|
"aria-controls": contentContainerId,
|
|
5738
5744
|
hasChildren: !!children,
|
|
5739
5745
|
titleMargin: titleMargin
|
|
5740
|
-
}, /*#__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, {
|
|
5746
|
+
}, /*#__PURE__*/React__default.createElement(TitleText, null, title), children && (/*#__PURE__*/React__default.createElement(PrintHideWrapper, null, /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, icon))))), visibleStandfirst && /*#__PURE__*/React__default.createElement(Standfirst, null), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
5741
5747
|
"data-testid": "richcontainer",
|
|
5742
5748
|
ref: content,
|
|
5743
5749
|
textHeight: textHeight,
|
|
@@ -5771,7 +5777,8 @@ var Accordions = function Accordions(_ref) {
|
|
|
5771
5777
|
expandedStateIcon: accordion.expandedStateIcon,
|
|
5772
5778
|
collapsedStateIcon: accordion.collapsedStateIcon,
|
|
5773
5779
|
titleMargin: accordion.titleMargin,
|
|
5774
|
-
childrenContainerStyle: accordion.childrenContainerStyle
|
|
5780
|
+
childrenContainerStyle: accordion.childrenContainerStyle,
|
|
5781
|
+
visibleStandfirst: accordion.visibleStandfirst
|
|
5775
5782
|
}, accordion.children);
|
|
5776
5783
|
}));
|
|
5777
5784
|
};
|