@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
package/dist/harmonic.esm.js
CHANGED
|
@@ -5607,6 +5607,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
5607
5607
|
_ref$showBottomLine = _ref.showBottomLine,
|
|
5608
5608
|
showBottomLine = _ref$showBottomLine === void 0 ? true : _ref$showBottomLine,
|
|
5609
5609
|
children = _ref.children,
|
|
5610
|
+
visibleStandfirst = _ref.visibleStandfirst,
|
|
5610
5611
|
_ref$initOpen = _ref.initOpen,
|
|
5611
5612
|
initOpen = _ref$initOpen === void 0 ? false : _ref$initOpen,
|
|
5612
5613
|
className = _ref.className,
|
|
@@ -5747,6 +5748,11 @@ var Accordion = function Accordion(_ref) {
|
|
|
5747
5748
|
toggleAccordion();
|
|
5748
5749
|
}
|
|
5749
5750
|
};
|
|
5751
|
+
var Standfirst = function Standfirst() {
|
|
5752
|
+
return visibleStandfirst ? (/*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
|
|
5753
|
+
isVisible: true
|
|
5754
|
+
}, visibleStandfirst))) : null;
|
|
5755
|
+
};
|
|
5750
5756
|
var contentContainerId = title + "-accordion-content";
|
|
5751
5757
|
return /*#__PURE__*/React__default.createElement(AccordionContainer, {
|
|
5752
5758
|
showTopLine: showTopLine,
|
|
@@ -5762,7 +5768,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
5762
5768
|
"aria-controls": contentContainerId,
|
|
5763
5769
|
hasChildren: !!children,
|
|
5764
5770
|
titleMargin: titleMargin
|
|
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, {
|
|
5771
|
+
}, /*#__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, {
|
|
5766
5772
|
"data-testid": "richcontainer",
|
|
5767
5773
|
ref: content,
|
|
5768
5774
|
textHeight: textHeight,
|
|
@@ -5796,7 +5802,8 @@ var Accordions = function Accordions(_ref) {
|
|
|
5796
5802
|
expandedStateIcon: accordion.expandedStateIcon,
|
|
5797
5803
|
collapsedStateIcon: accordion.collapsedStateIcon,
|
|
5798
5804
|
titleMargin: accordion.titleMargin,
|
|
5799
|
-
childrenContainerStyle: accordion.childrenContainerStyle
|
|
5805
|
+
childrenContainerStyle: accordion.childrenContainerStyle,
|
|
5806
|
+
visibleStandfirst: accordion.visibleStandfirst
|
|
5800
5807
|
}, accordion.children);
|
|
5801
5808
|
}));
|
|
5802
5809
|
};
|