@royaloperahouse/chord 2.3.3 → 2.4.0
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/CHANGELOG.md +4 -0
- package/dist/chord.cjs.development.js +103 -29
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +104 -31
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Typography/Typography.d.ts +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +2 -2
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/helpers/generateDomElementId.d.ts +8 -0
- package/dist/index.d.ts +2 -2
- package/dist/types/editorial.d.ts +18 -2
- package/dist/types/impactHeader.d.ts +13 -0
- package/dist/types/types.d.ts +6 -1
- package/package.json +1 -1
package/dist/chord.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { createElement, memo, useRef, useCallback, useEffect, useState, forwardRef, cloneElement } from 'react';
|
|
1
|
+
import React__default, { createElement, memo, useRef, useCallback, useEffect, useState, forwardRef, useMemo, cloneElement } from 'react';
|
|
2
2
|
import styled, { css, ThemeProvider, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { renderToString } from 'react-dom/server';
|
|
@@ -2792,9 +2792,10 @@ var StyledTag = function StyledTag(_ref) {
|
|
|
2792
2792
|
}, children);
|
|
2793
2793
|
};
|
|
2794
2794
|
var AltHeader = function AltHeader(_ref2) {
|
|
2795
|
-
var
|
|
2795
|
+
var semanticLevel = _ref2.semanticLevel,
|
|
2796
|
+
level = _ref2.level,
|
|
2796
2797
|
children = _ref2.children;
|
|
2797
|
-
var renderedTag = "h" + level;
|
|
2798
|
+
var renderedTag = semanticLevel ? "h" + semanticLevel : "h" + level;
|
|
2798
2799
|
return /*#__PURE__*/React__default.createElement(StyledTag, {
|
|
2799
2800
|
tag: renderedTag,
|
|
2800
2801
|
typography: "altHeader",
|
|
@@ -4994,7 +4995,7 @@ var _templateObject$w, _templateObject2$j, _templateObject3$d, _templateObject4$
|
|
|
4994
4995
|
var VideoPlayButton = /*#__PURE__*/styled.button(_templateObject$w || (_templateObject$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #fff;\n border: none;\n padding: 12px;\n cursor: pointer;\n"])));
|
|
4995
4996
|
var VideoFullscreenButton = /*#__PURE__*/styled.button(_templateObject2$j || (_templateObject2$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 56px;\n height: 36px;\n background-color: rgb(26, 26, 26, 0.6);\n border-radius: 5px;\n padding: 5px 14px;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
|
|
4996
4997
|
var VideoControlsWrapper = /*#__PURE__*/styled.div(_templateObject3$d || (_templateObject3$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 0;\n width: 100%;\n"])));
|
|
4997
|
-
var VideoControlsInnerWrapper = /*#__PURE__*/styled.div(_templateObject4$a || (_templateObject4$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin:
|
|
4998
|
+
var VideoControlsInnerWrapper = /*#__PURE__*/styled.div(_templateObject4$a || (_templateObject4$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 40px 17px 30px;\n"])));
|
|
4998
4999
|
var LeftWrapper = /*#__PURE__*/styled.div(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
4999
5000
|
var VideoVolume = /*#__PURE__*/styled.input(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100px;\n margin-left: 24px;\n"])));
|
|
5000
5001
|
var VideoMute = /*#__PURE__*/styled.button(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 17px;\n height: 17px;\n background: none;\n border: none;\n padding: 0;\n svg {\n width: 100%;\n height: 100%;\n }\n cursor: pointer;\n"])));
|
|
@@ -5064,6 +5065,16 @@ var VideoControls = function VideoControls(_ref2) {
|
|
|
5064
5065
|
video.loop = loop;
|
|
5065
5066
|
}
|
|
5066
5067
|
}, [loop]);
|
|
5068
|
+
useEffect(function () {
|
|
5069
|
+
var handleFullscreenChange = function handleFullscreenChange() {
|
|
5070
|
+
setIsFullscreen(!!document.fullscreenElement);
|
|
5071
|
+
};
|
|
5072
|
+
|
|
5073
|
+
document.addEventListener('fullscreenchange', handleFullscreenChange);
|
|
5074
|
+
return function () {
|
|
5075
|
+
document.removeEventListener('fullscreenchange', handleFullscreenChange);
|
|
5076
|
+
};
|
|
5077
|
+
}, []);
|
|
5067
5078
|
var handleFullscreen = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
|
|
5068
5079
|
var videoContainer;
|
|
5069
5080
|
return runtime_1.wrap(function _callee$(_context) {
|
|
@@ -5162,7 +5173,9 @@ var VideoControls = function VideoControls(_ref2) {
|
|
|
5162
5173
|
setVolume(newVolume);
|
|
5163
5174
|
}
|
|
5164
5175
|
}, [isMuted]);
|
|
5165
|
-
return /*#__PURE__*/React__default.createElement(VideoControlsWrapper,
|
|
5176
|
+
return /*#__PURE__*/React__default.createElement(VideoControlsWrapper, {
|
|
5177
|
+
className: "video-controls-container"
|
|
5178
|
+
}, /*#__PURE__*/React__default.createElement(VideoControlsInnerWrapper, null, /*#__PURE__*/React__default.createElement(LeftWrapper, null, /*#__PURE__*/React__default.createElement(VideoPlayButton, {
|
|
5166
5179
|
id: "play",
|
|
5167
5180
|
onClick: handlePlay,
|
|
5168
5181
|
className: "video-play-button",
|
|
@@ -7843,14 +7856,20 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
7843
7856
|
link = _ref.link,
|
|
7844
7857
|
_ref$sponsor = _ref.sponsor,
|
|
7845
7858
|
sponsor = _ref$sponsor === void 0 ? false : _ref$sponsor,
|
|
7846
|
-
children = _ref.children
|
|
7859
|
+
children = _ref.children,
|
|
7860
|
+
_ref$semanticLevel = _ref.semanticLevel,
|
|
7861
|
+
semanticLevel = _ref$semanticLevel === void 0 ? 1 : _ref$semanticLevel,
|
|
7862
|
+
_ref$copyCharLimit = _ref.copyCharLimit,
|
|
7863
|
+
copyCharLimit = _ref$copyCharLimit === void 0 ? 250 : _ref$copyCharLimit,
|
|
7864
|
+
_ref$titleCharLimit = _ref.titleCharLimit,
|
|
7865
|
+
titleCharLimit = _ref$titleCharLimit === void 0 ? 40 : _ref$titleCharLimit;
|
|
7847
7866
|
|
|
7848
7867
|
var _ref2 = link || {},
|
|
7849
7868
|
linkText = _ref2.text,
|
|
7850
7869
|
restLink = _objectWithoutPropertiesLoose(_ref2, ["text"]);
|
|
7851
7870
|
|
|
7852
|
-
var truncatedText = text == null ? void 0 : text.substring(0,
|
|
7853
|
-
var truncatedTitle = title && title.substring(0,
|
|
7871
|
+
var truncatedText = text == null ? void 0 : text.substring(0, copyCharLimit);
|
|
7872
|
+
var truncatedTitle = title && title.substring(0, titleCharLimit);
|
|
7854
7873
|
var isTitleUnAvailable = !title;
|
|
7855
7874
|
return /*#__PURE__*/React__default.createElement(PageHeadingWrapper, {
|
|
7856
7875
|
"data-testid": "page-heading-wrapper",
|
|
@@ -7861,7 +7880,8 @@ var PageHeading = function PageHeading(_ref) {
|
|
|
7861
7880
|
}, children ? /*#__PURE__*/React__default.createElement(ChildrenWrapper, {
|
|
7862
7881
|
isPageHeadingWithoutTitle: isTitleUnAvailable
|
|
7863
7882
|
}, children) : null, !isTitleUnAvailable && /*#__PURE__*/React__default.createElement(Header, {
|
|
7864
|
-
level: 2
|
|
7883
|
+
level: 2,
|
|
7884
|
+
semanticLevel: semanticLevel
|
|
7865
7885
|
}, truncatedTitle)), text ? /*#__PURE__*/React__default.createElement(TextWrapper, {
|
|
7866
7886
|
"data-testid": "page-heading-text"
|
|
7867
7887
|
}, /*#__PURE__*/React__default.createElement(PageHeadingText, {
|
|
@@ -7928,7 +7948,9 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
7928
7948
|
bgUrlDesktop = _ref.bgUrlDesktop,
|
|
7929
7949
|
bgUrlDevice = _ref.bgUrlDevice,
|
|
7930
7950
|
_ref$bgImageAltText = _ref.bgImageAltText,
|
|
7931
|
-
bgImageAltText = _ref$bgImageAltText === void 0 ? '' : _ref$bgImageAltText
|
|
7951
|
+
bgImageAltText = _ref$bgImageAltText === void 0 ? '' : _ref$bgImageAltText,
|
|
7952
|
+
_ref$semanticLevel = _ref.semanticLevel,
|
|
7953
|
+
semanticLevel = _ref$semanticLevel === void 0 ? 3 : _ref$semanticLevel;
|
|
7932
7954
|
var truncatedText = text && text.substring(0, 75);
|
|
7933
7955
|
|
|
7934
7956
|
var _ref2 = link || {},
|
|
@@ -7964,7 +7986,8 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
7964
7986
|
}, children) : null, text ? /*#__PURE__*/React__default.createElement(TextWrapper$1, {
|
|
7965
7987
|
"data-testid": "impact-text"
|
|
7966
7988
|
}, /*#__PURE__*/React__default.createElement(Header, {
|
|
7967
|
-
level: 3
|
|
7989
|
+
level: 3,
|
|
7990
|
+
semanticLevel: semanticLevel
|
|
7968
7991
|
}, truncatedText)) : null, link ? /*#__PURE__*/React__default.createElement(ButtonWrapper$2, {
|
|
7969
7992
|
"data-testid": "impact-link"
|
|
7970
7993
|
}, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, restLink), linkText)) : null), scrollHref ? /*#__PURE__*/React__default.createElement(ScrollDownWrapper, {
|
|
@@ -8332,7 +8355,11 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
8332
8355
|
_ref4$brandingStyle = _ref4.brandingStyle,
|
|
8333
8356
|
brandingStyle = _ref4$brandingStyle === void 0 ? 'BlockText' : _ref4$brandingStyle,
|
|
8334
8357
|
brandingText = _ref4.brandingText,
|
|
8335
|
-
brandingLink = _ref4.brandingLink
|
|
8358
|
+
brandingLink = _ref4.brandingLink,
|
|
8359
|
+
_ref4$showCopy = _ref4.showCopy,
|
|
8360
|
+
showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy,
|
|
8361
|
+
_ref4$semanticLevel = _ref4.semanticLevel,
|
|
8362
|
+
semanticLevel = _ref4$semanticLevel === void 0 ? 1 : _ref4$semanticLevel;
|
|
8336
8363
|
|
|
8337
8364
|
var _ref5 = link || {},
|
|
8338
8365
|
linkText = _ref5.text,
|
|
@@ -8358,7 +8385,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
8358
8385
|
})) : /*#__PURE__*/React__default.createElement(Sponsorship, null)) : null, /*#__PURE__*/React__default.createElement(CompactHeaderAssetWrapper, null, /*#__PURE__*/React__default.createElement(CompactHeaderVideo, {
|
|
8359
8386
|
video: video,
|
|
8360
8387
|
poster: poster
|
|
8361
|
-
})), /*#__PURE__*/React__default.createElement(CompactHeaderCopyWrapper, {
|
|
8388
|
+
})), showCopy && /*#__PURE__*/React__default.createElement(CompactHeaderCopyWrapper, {
|
|
8362
8389
|
className: "page-heading-compact__background",
|
|
8363
8390
|
invert: invert
|
|
8364
8391
|
}, /*#__PURE__*/React__default.createElement(CompactHeaderBranding, {
|
|
@@ -8368,7 +8395,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
8368
8395
|
invert: invert
|
|
8369
8396
|
}), /*#__PURE__*/React__default.createElement(CompactHeaderTitleWrapper, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
8370
8397
|
level: titleSize,
|
|
8371
|
-
semanticLevel:
|
|
8398
|
+
semanticLevel: semanticLevel
|
|
8372
8399
|
}, title && truncate(title, 40))), link && /*#__PURE__*/React__default.createElement(CompactHeaderCTAWrapper, null, /*#__PURE__*/React__default.createElement(PrimaryButtonWithInversion, Object.assign({}, restLink, {
|
|
8373
8400
|
invert: invert,
|
|
8374
8401
|
className: "page-heading-compact__button"
|
|
@@ -8916,7 +8943,7 @@ var ButtonsContainer$3 = /*#__PURE__*/styled.div(_templateObject7$d || (_templat
|
|
|
8916
8943
|
});
|
|
8917
8944
|
|
|
8918
8945
|
var _templateObject$15;
|
|
8919
|
-
var VideoContainer = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n aspect-ratio: ", ";\n\n @supports not (aspect-ratio: ", ") {\n width: 100%;\n padding-top: ", "%;\n }\n"])), function (_ref) {
|
|
8946
|
+
var VideoContainer = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n aspect-ratio: ", ";\n\n @supports not (aspect-ratio: ", ") {\n width: 100%;\n padding-top: ", "%;\n }\n\n video {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n\n @supports not (aspect-ratio: ", ") {\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n"])), function (_ref) {
|
|
8920
8947
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
8921
8948
|
aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
|
|
8922
8949
|
return aspectRatio;
|
|
@@ -8928,6 +8955,10 @@ var VideoContainer = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObj
|
|
|
8928
8955
|
var _ref3$aspectRatio = _ref3.aspectRatio,
|
|
8929
8956
|
aspectRatio = _ref3$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref3$aspectRatio;
|
|
8930
8957
|
return AspectRatioLegacy[aspectRatio];
|
|
8958
|
+
}, function (_ref4) {
|
|
8959
|
+
var _ref4$aspectRatio = _ref4.aspectRatio,
|
|
8960
|
+
aspectRatio = _ref4$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref4$aspectRatio;
|
|
8961
|
+
return aspectRatio;
|
|
8931
8962
|
});
|
|
8932
8963
|
|
|
8933
8964
|
var getAspectRatioFromVideo = function getAspectRatioFromVideo(video) {
|
|
@@ -8944,17 +8975,50 @@ var getAspectRatioFromVideo = function getAspectRatioFromVideo(video) {
|
|
|
8944
8975
|
return AspectRatio[aspectRatioKey] || AspectRatio['16:9'];
|
|
8945
8976
|
};
|
|
8946
8977
|
|
|
8978
|
+
/**
|
|
8979
|
+
* Generates a random string in the format XXX-XXX.
|
|
8980
|
+
* Does not meet UUID standards.
|
|
8981
|
+
* To be used where only a small number of unique IDs are required, e.g. DOM element IDs.
|
|
8982
|
+
*
|
|
8983
|
+
* @return {string} A random string in the format XXX-XXX.
|
|
8984
|
+
*/
|
|
8985
|
+
var generateDomElementId = function generateDomElementId() {
|
|
8986
|
+
var randomPart = Math.floor(100 + Math.random() * 900).toString();
|
|
8987
|
+
var datePart = Date.now().toString().slice(-3);
|
|
8988
|
+
return randomPart + "-" + datePart;
|
|
8989
|
+
};
|
|
8990
|
+
|
|
8947
8991
|
var VideoWithControls$1 = function VideoWithControls(_ref) {
|
|
8948
8992
|
var video = _ref.video,
|
|
8949
8993
|
settings = _ref.settings;
|
|
8950
|
-
var
|
|
8951
|
-
autoPlay = settings.autoPlay;
|
|
8994
|
+
var videoRef = useRef(null);
|
|
8952
8995
|
|
|
8953
8996
|
var _useState = useState(AspectRatio['16:9']),
|
|
8954
8997
|
aspectRatio = _useState[0],
|
|
8955
8998
|
setAspectRatio = _useState[1];
|
|
8956
8999
|
|
|
8957
|
-
var
|
|
9000
|
+
var _React$useState = React__default.useState(false),
|
|
9001
|
+
isVideoReady = _React$useState[0],
|
|
9002
|
+
setIsVideoReady = _React$useState[1];
|
|
9003
|
+
|
|
9004
|
+
var muted = settings.muted,
|
|
9005
|
+
autoPlay = settings.autoPlay;
|
|
9006
|
+
React__default.useEffect(function () {
|
|
9007
|
+
var changeVideoReadiness = function changeVideoReadiness() {
|
|
9008
|
+
setIsVideoReady(true);
|
|
9009
|
+
};
|
|
9010
|
+
|
|
9011
|
+
if (videoRef.current) {
|
|
9012
|
+
videoRef.current.addEventListener('canplay', changeVideoReadiness);
|
|
9013
|
+
return function () {
|
|
9014
|
+
var _videoRef$current;
|
|
9015
|
+
|
|
9016
|
+
return (_videoRef$current = videoRef.current) == null ? void 0 : _videoRef$current.removeEventListener('canplay', changeVideoReadiness);
|
|
9017
|
+
};
|
|
9018
|
+
}
|
|
9019
|
+
|
|
9020
|
+
return undefined;
|
|
9021
|
+
}, []);
|
|
8958
9022
|
|
|
8959
9023
|
var handleMetadataLoaded = function handleMetadataLoaded() {
|
|
8960
9024
|
if (videoRef.current) {
|
|
@@ -8963,18 +9027,24 @@ var VideoWithControls$1 = function VideoWithControls(_ref) {
|
|
|
8963
9027
|
}
|
|
8964
9028
|
};
|
|
8965
9029
|
|
|
8966
|
-
var
|
|
9030
|
+
var videoElementId = useMemo(function () {
|
|
9031
|
+
return "video-id-" + generateDomElementId();
|
|
9032
|
+
}, []);
|
|
9033
|
+
var clonedVideo = /*#__PURE__*/cloneElement(video, _extends({
|
|
9034
|
+
playsInline: true
|
|
9035
|
+
}, muted ? {
|
|
8967
9036
|
muted: true
|
|
8968
9037
|
} : {}, autoPlay && muted ? {
|
|
8969
9038
|
autoPlay: true
|
|
8970
9039
|
} : {}, {
|
|
8971
9040
|
height: '100%',
|
|
8972
9041
|
width: '100%',
|
|
8973
|
-
onLoadedMetadata: handleMetadataLoaded
|
|
9042
|
+
onLoadedMetadata: handleMetadataLoaded,
|
|
9043
|
+
id: videoElementId
|
|
8974
9044
|
}, {
|
|
9045
|
+
poster: autoPlay && isVideoReady ? undefined : video.props.poster,
|
|
8975
9046
|
ref: videoRef
|
|
8976
9047
|
}));
|
|
8977
|
-
var videoElementId = clonedVideo.props.id;
|
|
8978
9048
|
var videoContainerId = "video-container-for-" + videoElementId;
|
|
8979
9049
|
|
|
8980
9050
|
var videoControlsProps = _extends({}, settings, {
|
|
@@ -8982,14 +9052,13 @@ var VideoWithControls$1 = function VideoWithControls(_ref) {
|
|
|
8982
9052
|
videoContainerId: videoContainerId
|
|
8983
9053
|
});
|
|
8984
9054
|
|
|
8985
|
-
|
|
8986
|
-
setAspectRatio(AspectRatio['16:9']);
|
|
8987
|
-
}, [video.props.src]);
|
|
9055
|
+
var showVideoControls = autoPlay ? isVideoReady : true;
|
|
8988
9056
|
return /*#__PURE__*/React__default.createElement(VideoContainer, {
|
|
9057
|
+
className: "video-with-controls-container",
|
|
8989
9058
|
aspectRatio: aspectRatio,
|
|
8990
9059
|
id: videoContainerId,
|
|
8991
|
-
"data-testid":
|
|
8992
|
-
}, clonedVideo, /*#__PURE__*/React__default.createElement(VideoControls, Object.assign({}, videoControlsProps)));
|
|
9060
|
+
"data-testid": 'video-container'
|
|
9061
|
+
}, clonedVideo, showVideoControls && /*#__PURE__*/React__default.createElement(VideoControls, Object.assign({}, videoControlsProps)));
|
|
8993
9062
|
};
|
|
8994
9063
|
|
|
8995
9064
|
var PromoChild = function PromoChild(_ref) {
|
|
@@ -9023,7 +9092,8 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
9023
9092
|
text = _ref.text,
|
|
9024
9093
|
links = _ref.links,
|
|
9025
9094
|
children = _ref.children,
|
|
9026
|
-
videoSettings = _ref.videoSettings
|
|
9095
|
+
videoSettings = _ref.videoSettings,
|
|
9096
|
+
titleSemanticLevel = _ref.titleSemanticLevel;
|
|
9027
9097
|
|
|
9028
9098
|
var truncate = function truncate(str, n) {
|
|
9029
9099
|
return str.length >= n ? str.substr(0, n) : str;
|
|
@@ -9064,7 +9134,8 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
9064
9134
|
"data-testid": "content-wrapper",
|
|
9065
9135
|
imageToLeft: imageToLeft
|
|
9066
9136
|
}, /*#__PURE__*/React__default.createElement(PromoWithTitleContainer, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
9067
|
-
level: titleLevel
|
|
9137
|
+
level: titleLevel,
|
|
9138
|
+
semanticLevel: titleSemanticLevel != null ? titleSemanticLevel : titleLevel
|
|
9068
9139
|
}, title)), subtitle ? /*#__PURE__*/React__default.createElement(PromoWithTitleSubtitle, null, subtitle) : null, /*#__PURE__*/React__default.createElement(PromoWithTitleText, {
|
|
9069
9140
|
dangerouslySetInnerHTML: {
|
|
9070
9141
|
__html: text
|
|
@@ -9297,7 +9368,8 @@ var SectionTitle = function SectionTitle(_ref) {
|
|
|
9297
9368
|
var title = _ref.title,
|
|
9298
9369
|
_ref$size = _ref.size,
|
|
9299
9370
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
9300
|
-
description = _ref.description
|
|
9371
|
+
description = _ref.description,
|
|
9372
|
+
semanticLevel = _ref.semanticLevel;
|
|
9301
9373
|
var headingLevel = size === 'large' ? 1 : 2;
|
|
9302
9374
|
return /*#__PURE__*/React__default.createElement(SectionTitleWrapper, null, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
9303
9375
|
columnStartDesktop: 3,
|
|
@@ -9305,7 +9377,8 @@ var SectionTitle = function SectionTitle(_ref) {
|
|
|
9305
9377
|
columnStartDevice: 2,
|
|
9306
9378
|
columnSpanDevice: 12
|
|
9307
9379
|
}, /*#__PURE__*/React__default.createElement(Header, {
|
|
9308
|
-
level: headingLevel
|
|
9380
|
+
level: headingLevel,
|
|
9381
|
+
semanticLevel: semanticLevel != null ? semanticLevel : headingLevel
|
|
9309
9382
|
}, title)), description && /*#__PURE__*/React__default.createElement(GridItem, {
|
|
9310
9383
|
columnStartDesktop: 3,
|
|
9311
9384
|
columnSpanDesktop: 8,
|
|
@@ -11791,5 +11864,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1m || (_templa
|
|
|
11791
11864
|
return theme.fonts.tablet.sizes.body[1];
|
|
11792
11865
|
}, devices.desktop, devices.largeDesktop);
|
|
11793
11866
|
|
|
11794
|
-
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryButton, AuxiliaryNav, BodyText, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, SelectComponent as Select2, SelectComponent$1 as Select2Async, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Table, Tabs, Button$1 as TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, Theme as ThemeProvider, ThemeType, Tickbox, Tickbox2, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, VideoControls, breakpoints, devices, zIndexes };
|
|
11867
|
+
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryButton, AuxiliaryNav, BodyText, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, SelectComponent as Select2, SelectComponent$1 as Select2Async, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Table, Tabs, Button$1 as TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, Theme as ThemeProvider, ThemeType, Tickbox, Tickbox2, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls$1 as VideoWithControls, breakpoints, devices, zIndexes };
|
|
11795
11868
|
//# sourceMappingURL=chord.esm.js.map
|