@royaloperahouse/harmonic 0.12.0-c → 0.12.0-d
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/BodyContent/BodyContent.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +6 -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 +6 -10
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/editorial.d.ts +0 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TextContainer: import("styled-components").StyledComponent<"
|
|
1
|
+
export declare const TextContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
@@ -7008,7 +7008,7 @@ var Theme = function Theme(_ref) {
|
|
|
7008
7008
|
};
|
|
7009
7009
|
|
|
7010
7010
|
var _templateObject$I;
|
|
7011
|
-
var TextContainer$1 = /*#__PURE__*/styled__default
|
|
7011
|
+
var TextContainer$1 = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-base-black);\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n\n & h1,\n h2,\n h3,\n h4 {\n font-feature-settings: var(--font-feature-settings-header);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 60px 0 16px;\n\n + p {\n margin-top: 0px;\n }\n }\n\n & h5,\n h6 {\n font-feature-settings: var(--font-feature-settings-subtitle);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 60px 0 16px;\n\n + p {\n margin-top: 10px;\n }\n }\n\n & a {\n color: var(--color-base-black);\n text-decoration: underline;\n cursor: pointer;\n\n &:hover {\n color: var(--color-rbo-black-hovered);\n }\n\n &:active {\n color: var(--color-rbo-black-pressed);\n }\n }\n\n p {\n margin: 30px 0;\n }\n\n p:has(+ ul),\n p:has(+ ol) {\n margin-bottom: 12px;\n }\n\n & ul,\n & ol {\n padding: 0;\n list-style: none;\n margin-block-start: 0;\n margin-block-end: 0;\n }\n\n & ul li,\n & ol li {\n line-height: var(--line-height-listing);\n position: relative;\n padding-left: 32px;\n\n @media ", " {\n padding-left: 28px;\n }\n }\n\n & ul > li:before {\n display: inline-block;\n content: '\u2014';\n position: absolute;\n left: 0;\n width: 20px;\n text-align: right;\n margin-right: 12px;\n\n @media ", " {\n width: 16px;\n margin-right: 12px;\n }\n }\n\n & ol {\n counter-reset: custom-ol;\n }\n\n & ol > li {\n counter-increment: custom-ol;\n }\n\n & ol > li::before {\n content: counter(custom-ol, decimal-leading-zero) '';\n position: absolute;\n left: 0;\n min-width: 20px;\n text-align: right;\n margin-right: 12px;\n display: inline-block;\n\n @media ", " {\n min-width: 16px;\n margin-right: 12px;\n }\n }\n"])), devices.mobile, devices.mobile, devices.mobile);
|
|
7012
7012
|
|
|
7013
7013
|
var addTypographyClasses = function addTypographyClasses(html) {
|
|
7014
7014
|
return html.replace(/<h1>/g, "<h1 class=\"" + typographyStyles.header + " " + typographyStyles['header--large'] + "\">").replace(/<h2>/g, "<h2 class=\"" + typographyStyles.header + " " + typographyStyles['header--large'] + "\">").replace(/<h3>/g, "<h3 class=\"" + typographyStyles.header + " " + typographyStyles['header--medium'] + "\">").replace(/<h4>/g, "<h4 class=\"" + typographyStyles.header + " " + typographyStyles['header--medium'] + "\">").replace(/<h5>/g, "<h5 class=\"" + typographyStyles.header + " " + typographyStyles['header--small'] + "\">").replace(/<h6>/g, "<h6 class=\"" + typographyStyles.header + " " + typographyStyles['header--small'] + "\">");
|
|
@@ -7033,8 +7033,9 @@ var BodyContent = function BodyContent(_ref) {
|
|
|
7033
7033
|
columnStartDevice: columnStartDevice,
|
|
7034
7034
|
columnSpanDevice: columnSpanDevice
|
|
7035
7035
|
}, /*#__PURE__*/React__default.createElement(TextContainer$1, {
|
|
7036
|
+
tag: "div",
|
|
7037
|
+
size: "large",
|
|
7036
7038
|
"data-testid": "text-container",
|
|
7037
|
-
className: typographyStyles.bodycopy + " " + typographyStyles['bodycopy--large'],
|
|
7038
7039
|
dangerouslySetInnerHTML: {
|
|
7039
7040
|
__html: addTypographyClasses(text)
|
|
7040
7041
|
}
|
|
@@ -9062,10 +9063,6 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
9062
9063
|
_ref$sponsor = _ref.sponsor,
|
|
9063
9064
|
sponsor = _ref$sponsor === void 0 ? false : _ref$sponsor,
|
|
9064
9065
|
children = _ref.children,
|
|
9065
|
-
_ref$copyCharLimit = _ref.copyCharLimit,
|
|
9066
|
-
copyCharLimit = _ref$copyCharLimit === void 0 ? 250 : _ref$copyCharLimit,
|
|
9067
|
-
_ref$titleCharLimit = _ref.titleCharLimit,
|
|
9068
|
-
titleCharLimit = _ref$titleCharLimit === void 0 ? 40 : _ref$titleCharLimit,
|
|
9069
9066
|
className = _ref.className,
|
|
9070
9067
|
showBadge = _ref.showBadge,
|
|
9071
9068
|
theme = _ref.theme;
|
|
@@ -9076,8 +9073,6 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
9076
9073
|
pressedColor: ThemeColor['white-pressed']
|
|
9077
9074
|
});
|
|
9078
9075
|
var linkText = themedLink == null ? void 0 : themedLink.text;
|
|
9079
|
-
var truncatedText = text == null ? void 0 : text.substring(0, copyCharLimit);
|
|
9080
|
-
var truncatedTitle = title == null ? void 0 : title.substring(0, titleCharLimit);
|
|
9081
9076
|
var isTitleUnAvailable = !title;
|
|
9082
9077
|
var renderBadge = function renderBadge(currentTheme) {
|
|
9083
9078
|
if (!showBadge) return null;
|
|
@@ -9111,13 +9106,14 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
9111
9106
|
color: "white",
|
|
9112
9107
|
size: "large",
|
|
9113
9108
|
hierarchy: hierarchy
|
|
9114
|
-
},
|
|
9109
|
+
}, title))), text ? (/*#__PURE__*/React__default.createElement(TextWrapper, {
|
|
9115
9110
|
"data-testid": "page-heading-text"
|
|
9116
9111
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
9112
|
+
tag: "div",
|
|
9117
9113
|
color: "white",
|
|
9118
9114
|
size: "large",
|
|
9119
9115
|
dangerouslySetInnerHTML: {
|
|
9120
|
-
__html:
|
|
9116
|
+
__html: text
|
|
9121
9117
|
}
|
|
9122
9118
|
}))) : null, sponsor ? (/*#__PURE__*/React__default.createElement(LogoWrapper, {
|
|
9123
9119
|
"data-testid": "page-heading-sponsor",
|