@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
|
@@ -4,7 +4,9 @@ export declare const AccordionContainer: import("styled-components").StyledCompo
|
|
|
4
4
|
export declare const ChildrenContainer: import("styled-components").StyledComponent<"div", any, {
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
+
hasChildren?: boolean | undefined;
|
|
9
|
+
}, never>;
|
|
8
10
|
export declare const TitleText: import("styled-components").StyledComponent<({ children, size, color, className, tag: Tag, }: import("../../../types/typography").ITaggedTypographyProps) => import("react").JSX.Element, any, {}, never>;
|
|
9
11
|
export declare const ContentContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {
|
|
10
12
|
textHeight?: string | undefined;
|
|
@@ -8126,15 +8126,21 @@ var ChildrenContainer = /*#__PURE__*/styled__default.div(_templateObject2$D || (
|
|
|
8126
8126
|
var isVisible = _ref3.isVisible;
|
|
8127
8127
|
return isVisible ? 'auto' : 'none';
|
|
8128
8128
|
}, devices.mobile);
|
|
8129
|
-
var TitleContainer$3 = /*#__PURE__*/styled__default.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"])))
|
|
8129
|
+
var TitleContainer$3 = /*#__PURE__*/styled__default.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) {
|
|
8130
|
+
var hasChildren = _ref4.hasChildren;
|
|
8131
|
+
return hasChildren ? 'pointer' : 'default';
|
|
8132
|
+
}, function (_ref5) {
|
|
8133
|
+
var hasChildren = _ref5.hasChildren;
|
|
8134
|
+
return hasChildren ? 'auto' : 'none';
|
|
8135
|
+
}, devices.mobile);
|
|
8130
8136
|
var TitleText$1 = /*#__PURE__*/styled__default(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"])));
|
|
8131
8137
|
var ExtendedBodyCopyHarmonic = /*#__PURE__*/styled__default(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"])));
|
|
8132
8138
|
var ContentContainer = /*#__PURE__*/styled__default(ExtendedBodyCopyHarmonic).withConfig({
|
|
8133
8139
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
8134
8140
|
return prop !== 'textHeight';
|
|
8135
8141
|
}
|
|
8136
|
-
})(_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 (
|
|
8137
|
-
var textHeight =
|
|
8142
|
+
})(_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) {
|
|
8143
|
+
var textHeight = _ref6.textHeight;
|
|
8138
8144
|
return textHeight;
|
|
8139
8145
|
}, devices.mobile);
|
|
8140
8146
|
var PrintHideWrapper = /*#__PURE__*/styled__default.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media print {\n display: none;\n }\n"])));
|
|
@@ -8192,7 +8198,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8192
8198
|
role: "button",
|
|
8193
8199
|
"aria-label": title,
|
|
8194
8200
|
"aria-expanded": openAccordion,
|
|
8195
|
-
"aria-controls": contentContainerId
|
|
8201
|
+
"aria-controls": contentContainerId,
|
|
8202
|
+
hasChildren: !!children
|
|
8196
8203
|
}, /*#__PURE__*/React__default.createElement(TitleText$1, null, title), children && (/*#__PURE__*/React__default.createElement(PrintHideWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
8197
8204
|
iconName: iconName
|
|
8198
8205
|
})))), /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
@@ -8201,7 +8208,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8201
8208
|
textHeight: textHeight,
|
|
8202
8209
|
id: contentContainerId,
|
|
8203
8210
|
"aria-live": "polite",
|
|
8204
|
-
tag: "div"
|
|
8211
|
+
tag: "div",
|
|
8212
|
+
size: "large"
|
|
8205
8213
|
}, /*#__PURE__*/React__default.createElement(ChildrenContainer, {
|
|
8206
8214
|
isVisible: childrenVisibility
|
|
8207
8215
|
}, children)));
|
|
@@ -8782,6 +8790,7 @@ var Editorial = function Editorial(_ref) {
|
|
|
8782
8790
|
tag: "span"
|
|
8783
8791
|
}, subtitle) : null, /*#__PURE__*/React__default.createElement(EditorialText, {
|
|
8784
8792
|
tag: "div",
|
|
8793
|
+
size: "large",
|
|
8785
8794
|
dangerouslySetInnerHTML: {
|
|
8786
8795
|
__html: text
|
|
8787
8796
|
}
|