@royaloperahouse/harmonic 0.12.0-d → 0.12.0-e
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 +3 -1
- package/dist/harmonic.cjs.development.js +14 -5
- 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 +14 -5
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -8167,15 +8167,21 @@ var ChildrenContainer = /*#__PURE__*/styled.div(_templateObject2$D || (_template
|
|
|
8167
8167
|
var isVisible = _ref3.isVisible;
|
|
8168
8168
|
return isVisible ? 'auto' : 'none';
|
|
8169
8169
|
}, devices.mobile);
|
|
8170
|
-
var TitleContainer$3 = /*#__PURE__*/styled.div(_templateObject3$r || (_templateObject3$r = /*#__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: pointer;\n }\n"])))
|
|
8170
|
+
var TitleContainer$3 = /*#__PURE__*/styled.div(_templateObject3$r || (_templateObject3$r = /*#__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 (_ref4) {
|
|
8171
|
+
var hasChildren = _ref4.hasChildren;
|
|
8172
|
+
return hasChildren ? 'pointer' : 'default';
|
|
8173
|
+
}, function (_ref5) {
|
|
8174
|
+
var hasChildren = _ref5.hasChildren;
|
|
8175
|
+
return hasChildren ? 'auto' : 'none';
|
|
8176
|
+
}, devices.mobile);
|
|
8171
8177
|
var TitleText$1 = /*#__PURE__*/styled(HarmonicSubtitle)(_templateObject4$n || (_templateObject4$n = /*#__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"])));
|
|
8172
8178
|
var ExtendedBodyCopyHarmonic = /*#__PURE__*/styled(BodyCopyHarmonic)(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: auto;\n transition: max-height 0.2s ease;\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n"])));
|
|
8173
8179
|
var ContentContainer = /*#__PURE__*/styled(ExtendedBodyCopyHarmonic).withConfig({
|
|
8174
8180
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
8175
8181
|
return prop !== 'textHeight';
|
|
8176
8182
|
}
|
|
8177
|
-
})(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\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 (
|
|
8178
|
-
var textHeight =
|
|
8183
|
+
})(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\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 (_ref6) {
|
|
8184
|
+
var textHeight = _ref6.textHeight;
|
|
8179
8185
|
return textHeight;
|
|
8180
8186
|
}, devices.mobile);
|
|
8181
8187
|
var PrintHideWrapper = /*#__PURE__*/styled.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media print {\n display: none;\n }\n"])));
|
|
@@ -8233,7 +8239,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8233
8239
|
role: "button",
|
|
8234
8240
|
"aria-label": title,
|
|
8235
8241
|
"aria-expanded": openAccordion,
|
|
8236
|
-
"aria-controls": contentContainerId
|
|
8242
|
+
"aria-controls": contentContainerId,
|
|
8243
|
+
hasChildren: !!children
|
|
8237
8244
|
}, /*#__PURE__*/React__default.createElement(TitleText$1, null, title), children && (/*#__PURE__*/React__default.createElement(PrintHideWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
8238
8245
|
iconName: iconName
|
|
8239
8246
|
})))), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
@@ -8242,7 +8249,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8242
8249
|
textHeight: textHeight,
|
|
8243
8250
|
id: contentContainerId,
|
|
8244
8251
|
"aria-live": "polite",
|
|
8245
|
-
tag: "div"
|
|
8252
|
+
tag: "div",
|
|
8253
|
+
size: "large"
|
|
8246
8254
|
}, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
|
|
8247
8255
|
isVisible: childrenVisibility
|
|
8248
8256
|
}, children)));
|
|
@@ -8823,6 +8831,7 @@ var Editorial = function Editorial(_ref) {
|
|
|
8823
8831
|
tag: "span"
|
|
8824
8832
|
}, subtitle) : null, /*#__PURE__*/React__default.createElement(EditorialText, {
|
|
8825
8833
|
tag: "div",
|
|
8834
|
+
size: "large",
|
|
8826
8835
|
dangerouslySetInnerHTML: {
|
|
8827
8836
|
__html: text
|
|
8828
8837
|
}
|