@royaloperahouse/harmonic 1.0.1-g → 1.0.2
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 +3 -5
- package/README.GIT +293 -0
- package/README.md +43 -267
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.css +0 -319
- package/dist/harmonic.cjs.development.js +65 -111
- 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 +73 -122
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/modalWindow.d.ts +0 -4
- package/dist/types/types.d.ts +2 -43
- package/package.json +1 -1
|
@@ -2692,7 +2692,6 @@ var Tab = function Tab(_ref) {
|
|
|
2692
2692
|
className = _ref.className,
|
|
2693
2693
|
role = _ref.role,
|
|
2694
2694
|
ariaLabel = _ref.ariaLabel,
|
|
2695
|
-
tabLinkId = _ref.tabLinkId,
|
|
2696
2695
|
color = _ref.color,
|
|
2697
2696
|
dataTestId = _ref.dataTestId,
|
|
2698
2697
|
isOpen = _ref.isOpen;
|
|
@@ -2727,9 +2726,8 @@ var Tab = function Tab(_ref) {
|
|
|
2727
2726
|
className: className,
|
|
2728
2727
|
"data-testid": dataTestId
|
|
2729
2728
|
}, /*#__PURE__*/React__default.createElement(TabText, {
|
|
2730
|
-
id: tabLinkId,
|
|
2731
|
-
trimText: trimText,
|
|
2732
2729
|
color: color,
|
|
2730
|
+
trimText: trimText,
|
|
2733
2731
|
withTextInMobile: withTextInMobile,
|
|
2734
2732
|
"aria-hidden": "true"
|
|
2735
2733
|
}, title), withIcon !== 'none' && /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -2759,7 +2757,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2759
2757
|
className = _ref.className,
|
|
2760
2758
|
role = _ref.role,
|
|
2761
2759
|
ariaLabel = _ref.ariaLabel,
|
|
2762
|
-
tabLinkId = _ref.tabLinkId,
|
|
2763
2760
|
trimTabText = _ref.trimTabText;
|
|
2764
2761
|
var node = React.useRef();
|
|
2765
2762
|
var _useState = React.useState(false),
|
|
@@ -2856,7 +2853,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2856
2853
|
};
|
|
2857
2854
|
var renderTab = function renderTab() {
|
|
2858
2855
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tab, {
|
|
2859
|
-
tabLinkId: tabLinkId,
|
|
2860
2856
|
trimText: trimTabText,
|
|
2861
2857
|
title: title,
|
|
2862
2858
|
titleLink: titleLink,
|
|
@@ -2936,8 +2932,7 @@ var Account = function Account(_ref) {
|
|
|
2936
2932
|
iconName: iconName,
|
|
2937
2933
|
withOptionsInMobile: false,
|
|
2938
2934
|
withIcon: "left",
|
|
2939
|
-
className: className
|
|
2940
|
-
tabLinkId: "account-link"
|
|
2935
|
+
className: className
|
|
2941
2936
|
});
|
|
2942
2937
|
};
|
|
2943
2938
|
|
|
@@ -5667,7 +5662,6 @@ var Accordion = function Accordion(_ref) {
|
|
|
5667
5662
|
var toggleAccordion = function toggleAccordion() {
|
|
5668
5663
|
if (React__default.Children.count(children) === 0) return;
|
|
5669
5664
|
if (openAccordion) {
|
|
5670
|
-
setIcon(collapsedStateIconData);
|
|
5671
5665
|
setOpenAccordion(false);
|
|
5672
5666
|
setTextHeight('0px');
|
|
5673
5667
|
setIcon(collapsedStateIconData);
|
|
@@ -6020,9 +6014,14 @@ var BodyContent = function BodyContent(_ref2) {
|
|
|
6020
6014
|
_ref2$renderGridItem = _ref2.renderGridItem,
|
|
6021
6015
|
renderGridItem = _ref2$renderGridItem === void 0 ? true : _ref2$renderGridItem;
|
|
6022
6016
|
var textContainerClassName = !renderGrid && !renderGridItem ? className : undefined;
|
|
6023
|
-
var content = /*#__PURE__*/React__default.createElement(
|
|
6017
|
+
var content = /*#__PURE__*/React__default.createElement(TextContainer, {
|
|
6018
|
+
tag: "div",
|
|
6019
|
+
size: "large",
|
|
6020
|
+
"data-testid": "text-container",
|
|
6024
6021
|
className: textContainerClassName,
|
|
6025
|
-
|
|
6022
|
+
dangerouslySetInnerHTML: {
|
|
6023
|
+
__html: addTypographyClasses(text)
|
|
6024
|
+
}
|
|
6026
6025
|
});
|
|
6027
6026
|
var gridItemOrContent = renderGridItem ? (/*#__PURE__*/React__default.createElement(GridItem, {
|
|
6028
6027
|
columnStartDesktop: columnStartDesktop,
|
|
@@ -6821,6 +6820,7 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6821
6820
|
});
|
|
6822
6821
|
Swipe.displayName = 'Swipe';
|
|
6823
6822
|
|
|
6823
|
+
var _excluded$i = ["name", "image", "onClick"];
|
|
6824
6824
|
var CastFilters = function CastFilters(_ref) {
|
|
6825
6825
|
var cast = _ref.cast,
|
|
6826
6826
|
headingText = _ref.headingText,
|
|
@@ -6831,15 +6831,12 @@ var CastFilters = function CastFilters(_ref) {
|
|
|
6831
6831
|
listRoleDescription = _ref.listRoleDescription,
|
|
6832
6832
|
className = _ref.className,
|
|
6833
6833
|
onSelect = _ref.onSelect,
|
|
6834
|
-
onSelectId = _ref.onSelectId,
|
|
6835
6834
|
onApply = _ref.onApply,
|
|
6836
|
-
onApplyIds = _ref.onApplyIds,
|
|
6837
6835
|
onClear = _ref.onClear,
|
|
6838
6836
|
_ref$greyscale = _ref.greyscale,
|
|
6839
6837
|
greyscale = _ref$greyscale === void 0 ? false : _ref$greyscale,
|
|
6840
6838
|
_ref$selectedIndices = _ref.selectedIndices,
|
|
6841
|
-
selectedIndices = _ref$selectedIndices === void 0 ? [] : _ref$selectedIndices
|
|
6842
|
-
selectedIds = _ref.selectedIds;
|
|
6839
|
+
selectedIndices = _ref$selectedIndices === void 0 ? [] : _ref$selectedIndices;
|
|
6843
6840
|
var _useViewport = useViewport(),
|
|
6844
6841
|
isMobile = _useViewport.isMobile;
|
|
6845
6842
|
var castWrapperRef = React.useRef(null);
|
|
@@ -6941,51 +6938,14 @@ var CastFilters = function CastFilters(_ref) {
|
|
|
6941
6938
|
isDraggingRef.current = false;
|
|
6942
6939
|
hasDraggedRef.current = false;
|
|
6943
6940
|
}, [isMobile]);
|
|
6944
|
-
var
|
|
6945
|
-
if (person.id !== undefined && person.id !== null) return String(person.id);
|
|
6946
|
-
if (person.slug !== undefined && person.slug !== null) return String(person.slug);
|
|
6947
|
-
return person.name;
|
|
6948
|
-
}, []);
|
|
6949
|
-
var isIdSelectionMode = selectedIds !== undefined;
|
|
6950
|
-
var selectedIdsSet = React.useMemo(function () {
|
|
6951
|
-
var ids = selectedIds != null ? selectedIds : [];
|
|
6952
|
-
return new Set(ids.map(function (id) {
|
|
6953
|
-
return String(id);
|
|
6954
|
-
}));
|
|
6955
|
-
}, [selectedIds]);
|
|
6956
|
-
var selectedStateIndices = React.useMemo(function () {
|
|
6957
|
-
if (!isIdSelectionMode) return selectedIndices;
|
|
6958
|
-
return cast.flatMap(function (person, index) {
|
|
6959
|
-
var itemId = getCastItemSelectionId(person);
|
|
6960
|
-
return selectedIdsSet.has(itemId) ? [index] : [];
|
|
6961
|
-
});
|
|
6962
|
-
}, [cast, getCastItemSelectionId, isIdSelectionMode, selectedIdsSet, selectedIndices]);
|
|
6963
|
-
var selectedStateIds = React.useMemo(function () {
|
|
6964
|
-
if (isIdSelectionMode) {
|
|
6965
|
-
return cast.filter(function (person) {
|
|
6966
|
-
return selectedIdsSet.has(getCastItemSelectionId(person));
|
|
6967
|
-
}).map(function (person) {
|
|
6968
|
-
return getCastItemSelectionId(person);
|
|
6969
|
-
});
|
|
6970
|
-
}
|
|
6971
|
-
return selectedIndices.map(function (index) {
|
|
6972
|
-
return cast[index];
|
|
6973
|
-
}).filter(function (person) {
|
|
6974
|
-
return person !== undefined;
|
|
6975
|
-
}).map(function (person) {
|
|
6976
|
-
return getCastItemSelectionId(person);
|
|
6977
|
-
});
|
|
6978
|
-
}, [cast, getCastItemSelectionId, isIdSelectionMode, selectedIdsSet, selectedIndices]);
|
|
6979
|
-
var handleClick = React__default.useCallback(function (index, itemId, onClick) {
|
|
6941
|
+
var handleClick = React__default.useCallback(function (index, onClick) {
|
|
6980
6942
|
if (hasDraggedRef.current) return;
|
|
6981
|
-
if (onSelectId) onSelectId(itemId);
|
|
6982
6943
|
if (onSelect) onSelect(index);
|
|
6983
6944
|
if (onClick) onClick();
|
|
6984
|
-
}, [onSelect
|
|
6985
|
-
var handlePersonKeydown = React__default.useCallback(function (e, index,
|
|
6986
|
-
if (e.key === 'Enter'
|
|
6987
|
-
|
|
6988
|
-
handleClick(index, itemId, onClick);
|
|
6945
|
+
}, [onSelect]);
|
|
6946
|
+
var handlePersonKeydown = React__default.useCallback(function (e, index, onClick) {
|
|
6947
|
+
if (e.key === 'Enter') {
|
|
6948
|
+
handleClick(index, onClick);
|
|
6989
6949
|
}
|
|
6990
6950
|
}, [handleClick]);
|
|
6991
6951
|
var handleClearKeydown = React__default.useCallback(function (e) {
|
|
@@ -6999,25 +6959,23 @@ var CastFilters = function CastFilters(_ref) {
|
|
|
6999
6959
|
var name = person.name,
|
|
7000
6960
|
image = person.image,
|
|
7001
6961
|
_onClick = person.onClick,
|
|
7002
|
-
|
|
7003
|
-
var
|
|
7004
|
-
var isSelected = isIdSelectionMode ? selectedIdsSet.has(personSelectionId) : selectedIndices.includes(index);
|
|
6962
|
+
rest = _objectWithoutPropertiesLoose(person, _excluded$i);
|
|
6963
|
+
var isSelected = selectedIndices.includes(index);
|
|
7005
6964
|
var personImage = image || placeholderImage || defaultPlaceholderImage;
|
|
7006
6965
|
return /*#__PURE__*/React__default.createElement(PersonWrapper, {
|
|
7007
|
-
key:
|
|
6966
|
+
key: index,
|
|
7008
6967
|
"aria-selected": isSelected,
|
|
7009
|
-
"aria-label": ariaLabel != null ? ariaLabel : name,
|
|
7010
6968
|
role: "option",
|
|
7011
6969
|
tabIndex: 0,
|
|
7012
|
-
onClick: function onClick() {
|
|
7013
|
-
return handleClick(index, personSelectionId, _onClick);
|
|
7014
|
-
},
|
|
7015
6970
|
onKeyDown: function onKeyDown(e) {
|
|
7016
|
-
return handlePersonKeydown(e, index,
|
|
6971
|
+
return handlePersonKeydown(e, index, _onClick);
|
|
7017
6972
|
}
|
|
7018
|
-
}, /*#__PURE__*/React__default.createElement(PersonToggle, {
|
|
7019
|
-
isSelected: isSelected
|
|
7020
|
-
|
|
6973
|
+
}, /*#__PURE__*/React__default.createElement(PersonToggle, Object.assign({
|
|
6974
|
+
isSelected: isSelected,
|
|
6975
|
+
onClick: function onClick() {
|
|
6976
|
+
return handleClick(index, _onClick);
|
|
6977
|
+
}
|
|
6978
|
+
}, rest), /*#__PURE__*/React__default.createElement(PersonImage, {
|
|
7021
6979
|
src: personImage,
|
|
7022
6980
|
alt: image ? name : "Placeholder image for " + name,
|
|
7023
6981
|
draggable: false,
|
|
@@ -7056,7 +7014,7 @@ var CastFilters = function CastFilters(_ref) {
|
|
|
7056
7014
|
role: "listbox",
|
|
7057
7015
|
"aria-roledescription": listRoleDescription != null ? listRoleDescription : 'filter list',
|
|
7058
7016
|
"aria-label": "filter list",
|
|
7059
|
-
"aria-multiselectable":
|
|
7017
|
+
"aria-multiselectable": true,
|
|
7060
7018
|
onMouseDown: handleMouseDown,
|
|
7061
7019
|
onMouseMove: handleMouseMove,
|
|
7062
7020
|
onMouseUp: handleMouseUp,
|
|
@@ -7067,15 +7025,14 @@ var CastFilters = function CastFilters(_ref) {
|
|
|
7067
7025
|
ref: swipeRef,
|
|
7068
7026
|
onOverflowChange: handleOverflowChange,
|
|
7069
7027
|
limitDragToNavigableRange: true
|
|
7070
|
-
}, getPersonCards())))), showActionButtonsSection && (/*#__PURE__*/React__default.createElement(ActionButtons, null,
|
|
7028
|
+
}, getPersonCards())))), showActionButtonsSection && (/*#__PURE__*/React__default.createElement(ActionButtons, null, selectedIndices.length === 0 && emptySelectionText && (/*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
7071
7029
|
size: "medium",
|
|
7072
7030
|
className: "mobile-only"
|
|
7073
|
-
}, emptySelectionText)),
|
|
7031
|
+
}, emptySelectionText)), selectedIndices.length === 0 && !emptySelectionText && /*#__PURE__*/React__default.createElement(EmptySelectionTextSpacer, null), selectedIndices.length > 0 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, onApply && /*#__PURE__*/React__default.createElement(PrimaryButton, {
|
|
7074
7032
|
onClick: function onClick() {
|
|
7075
|
-
|
|
7076
|
-
if (onApplyIds) onApplyIds(selectedStateIds);
|
|
7033
|
+
return onApply(selectedIndices);
|
|
7077
7034
|
}
|
|
7078
|
-
}, ctaText != null ? ctaText : 'Apply')
|
|
7035
|
+
}, ctaText != null ? ctaText : 'Apply'), onClear && (/*#__PURE__*/React__default.createElement(TextLink, {
|
|
7079
7036
|
tabIndex: 0,
|
|
7080
7037
|
role: "button",
|
|
7081
7038
|
onClick: onClear,
|
|
@@ -7324,7 +7281,7 @@ var HotFiltersWrapper = /*#__PURE__*/styled__default.div(_templateObject$O || (_
|
|
|
7324
7281
|
var HotFilterOptionsWrapper = /*#__PURE__*/styled__default.div(_templateObject2$B || (_templateObject2$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n width: fit-content;\n min-width: 400px;\n justify-content: space-between;\n gap: 16px;\n font-family: var(--font-family-sans);\n\n @media ", " {\n gap: 10px;\n }\n"])), devices.mobile);
|
|
7325
7282
|
var StyledHotFiltersButton = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--color-base-black);\n min-width: fit-content;\n\n :hover {\n color: var(--color-base-white);\n }\n"])));
|
|
7326
7283
|
|
|
7327
|
-
var _excluded$
|
|
7284
|
+
var _excluded$j = ["text", "onClick"];
|
|
7328
7285
|
var HotFilters = function HotFilters(_ref) {
|
|
7329
7286
|
var items = _ref.items,
|
|
7330
7287
|
className = _ref.className,
|
|
@@ -7340,7 +7297,7 @@ var HotFilters = function HotFilters(_ref) {
|
|
|
7340
7297
|
}, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
|
|
7341
7298
|
var text = item.text,
|
|
7342
7299
|
_onClick = item.onClick,
|
|
7343
|
-
rest = _objectWithoutPropertiesLoose(item, _excluded$
|
|
7300
|
+
rest = _objectWithoutPropertiesLoose(item, _excluded$j);
|
|
7344
7301
|
var isSelected = index === selectedIndex;
|
|
7345
7302
|
return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, Object.assign({
|
|
7346
7303
|
key: index,
|
|
@@ -7782,7 +7739,7 @@ var VideoControlsImpact = function VideoControlsImpact(_ref) {
|
|
|
7782
7739
|
})))));
|
|
7783
7740
|
};
|
|
7784
7741
|
|
|
7785
|
-
var _excluded$
|
|
7742
|
+
var _excluded$k = ["text"];
|
|
7786
7743
|
var CHAR_LIMIT = 100;
|
|
7787
7744
|
var useResponsiveVideo = function useResponsiveVideo(video, poster) {
|
|
7788
7745
|
var mobileVideo = video.mobile || video.desktop;
|
|
@@ -7904,7 +7861,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref4) {
|
|
|
7904
7861
|
var truncatedText = text && text.length > CHAR_LIMIT ? text.slice(0, CHAR_LIMIT).trimEnd() + "\u2026" : text;
|
|
7905
7862
|
var _ref5 = link || {},
|
|
7906
7863
|
linkText = _ref5.text,
|
|
7907
|
-
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$
|
|
7864
|
+
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$k);
|
|
7908
7865
|
var video = {
|
|
7909
7866
|
elementId: 'impact-header-video',
|
|
7910
7867
|
desktop: videoUrlDesktop,
|
|
@@ -8381,7 +8338,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
|
|
|
8381
8338
|
return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
|
|
8382
8339
|
};
|
|
8383
8340
|
|
|
8384
|
-
var _excluded$
|
|
8341
|
+
var _excluded$l = ["text"];
|
|
8385
8342
|
var useResponsiveVideo$1 = function useResponsiveVideo(video, poster) {
|
|
8386
8343
|
var mobileVideo = video.mobile || video.desktop;
|
|
8387
8344
|
var desktopVideo = video.desktop || video.mobile;
|
|
@@ -8486,7 +8443,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
8486
8443
|
showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy;
|
|
8487
8444
|
var _ref5 = link || {},
|
|
8488
8445
|
linkText = _ref5.text,
|
|
8489
|
-
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$
|
|
8446
|
+
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$l);
|
|
8490
8447
|
// const titleSize = title && title.length > 20 ? 4 : 3;
|
|
8491
8448
|
var video = {
|
|
8492
8449
|
elementId: 'compact-header-video',
|
|
@@ -9070,12 +9027,12 @@ var HarmonicHeaderWithWrapper = /*#__PURE__*/styled__default(HarmonicHeader)(_te
|
|
|
9070
9027
|
var BodyCopyHarmonicWithWrapper$1 = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n margin-bottom: 32px;\n whiete-space: break-spaces;\n overflow-wrap: break-word;\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: var(--color-primary-black);\n }\n\n &:visited {\n color: var(--color-base-dark-grey);\n }\n\n &:hover {\n color: var(--color-primary-red);\n }\n }\n @media ", " {\n margin-bottom: 24px;\n }\n"])), devices.mobile);
|
|
9071
9028
|
var HarmonicSubtitleWithWrapper = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-wrap: break-word;\n margin-bottom: 16px;\n"])));
|
|
9072
9029
|
|
|
9073
|
-
var _excluded$
|
|
9030
|
+
var _excluded$m = ["text"],
|
|
9074
9031
|
_excluded2$2 = ["text"],
|
|
9075
9032
|
_excluded3$1 = ["text"];
|
|
9076
9033
|
var _buttonTypeToButton$1;
|
|
9077
9034
|
var LENGTH_TEXT$1 = 28;
|
|
9078
|
-
var LENGTH_TEXT_PARAGRAPH =
|
|
9035
|
+
var LENGTH_TEXT_PARAGRAPH = 130;
|
|
9079
9036
|
var buttonTypeToButton$1 = (_buttonTypeToButton$1 = {}, _buttonTypeToButton$1[exports.ButtonType.Primary] = PrimaryButton, _buttonTypeToButton$1[exports.ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton$1[exports.ButtonType.Tertiary] = TertiaryButton, _buttonTypeToButton$1);
|
|
9080
9037
|
var PromoWithTags = function PromoWithTags(_ref) {
|
|
9081
9038
|
var _ref$imagePosition = _ref.imagePosition,
|
|
@@ -9138,7 +9095,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
9138
9095
|
var _ref2 = firstButton || {},
|
|
9139
9096
|
_ref2$text = _ref2.text,
|
|
9140
9097
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
9141
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9098
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
|
|
9142
9099
|
var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
|
|
9143
9100
|
var secondButton = links == null ? void 0 : links[1];
|
|
9144
9101
|
var _ref3 = secondButton || {},
|
|
@@ -9422,7 +9379,7 @@ var PromoChild = function PromoChild(_ref) {
|
|
|
9422
9379
|
}));
|
|
9423
9380
|
};
|
|
9424
9381
|
|
|
9425
|
-
var _excluded$
|
|
9382
|
+
var _excluded$n = ["text"],
|
|
9426
9383
|
_excluded2$3 = ["text"];
|
|
9427
9384
|
var LENGTH_TEXT$3 = 28;
|
|
9428
9385
|
var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
@@ -9449,7 +9406,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
9449
9406
|
var _ref2 = primaryButton || {},
|
|
9450
9407
|
_ref2$text = _ref2.text,
|
|
9451
9408
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
9452
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9409
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$n);
|
|
9453
9410
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
|
|
9454
9411
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
9455
9412
|
var _ref3 = tertiaryButton || {},
|
|
@@ -9888,7 +9845,7 @@ var ErrorLabel$5 = /*#__PURE__*/styled__default.div(_templateObject4$y || (_temp
|
|
|
9888
9845
|
return "var(--color-state-error)";
|
|
9889
9846
|
});
|
|
9890
9847
|
|
|
9891
|
-
var _excluded$
|
|
9848
|
+
var _excluded$o = ["label", "error", "width", "darkMode", "isSearchable", "components", "className"];
|
|
9892
9849
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
9893
9850
|
return /*#__PURE__*/React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
|
|
9894
9851
|
iconName: "DropdownArrow"
|
|
@@ -9943,7 +9900,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
9943
9900
|
isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable,
|
|
9944
9901
|
components = _ref2.components,
|
|
9945
9902
|
className = _ref2.className,
|
|
9946
|
-
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9903
|
+
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
|
|
9947
9904
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
9948
9905
|
label: label,
|
|
9949
9906
|
error: error,
|
|
@@ -9962,7 +9919,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
9962
9919
|
})));
|
|
9963
9920
|
};
|
|
9964
9921
|
|
|
9965
|
-
var _excluded$
|
|
9922
|
+
var _excluded$p = ["label", "error", "width", "darkMode", "components"];
|
|
9966
9923
|
/**
|
|
9967
9924
|
* The Select2Async component is similar to Select 2, but uses react-select async
|
|
9968
9925
|
* component for select instead of regular react-select component. This can be used
|
|
@@ -9984,7 +9941,7 @@ var SelectComponent$1 = function SelectComponent(_ref) {
|
|
|
9984
9941
|
_ref$darkMode = _ref.darkMode,
|
|
9985
9942
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
9986
9943
|
components = _ref.components,
|
|
9987
|
-
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9944
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
9988
9945
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
9989
9946
|
label: label,
|
|
9990
9947
|
error: error,
|
|
@@ -10256,7 +10213,7 @@ var Wrapper$6 = /*#__PURE__*/styled__default.figure(_templateObject$1d || (_temp
|
|
|
10256
10213
|
var CaptionWrapper = /*#__PURE__*/styled__default.figcaption(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: table-caption;\n caption-side: bottom;\n margin-top: var(--carousel-image-caption-margin);\n"])));
|
|
10257
10214
|
var CaptionContext = /*#__PURE__*/styled__default(Caption)(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n max-height: 46px;\n white-space: normal;\n word-break: break-word;\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n"])));
|
|
10258
10215
|
|
|
10259
|
-
var _excluded$
|
|
10216
|
+
var _excluded$q = ["caption", "altText", "src", "srcSet", "sizes", "loading", "aspectRatio", "className"];
|
|
10260
10217
|
var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
10261
10218
|
var caption = _ref.caption,
|
|
10262
10219
|
altText = _ref.altText,
|
|
@@ -10266,7 +10223,7 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
|
10266
10223
|
loading = _ref.loading,
|
|
10267
10224
|
aspectRatio = _ref.aspectRatio,
|
|
10268
10225
|
className = _ref.className,
|
|
10269
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10226
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
10270
10227
|
return /*#__PURE__*/React__default.createElement(Wrapper$6, Object.assign({
|
|
10271
10228
|
aspectRatio: aspectRatio,
|
|
10272
10229
|
className: className
|
|
@@ -11863,7 +11820,7 @@ var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject0$8 || (_temp
|
|
|
11863
11820
|
return disabled ? 'var(--color-state-disabled)' : 'var(--button-anchor-tab-color)';
|
|
11864
11821
|
});
|
|
11865
11822
|
|
|
11866
|
-
var _excluded$
|
|
11823
|
+
var _excluded$r = ["id", "text"];
|
|
11867
11824
|
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
11868
11825
|
var tabs = _ref.tabs,
|
|
11869
11826
|
onTabClick = _ref.onTabClick,
|
|
@@ -12074,7 +12031,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
12074
12031
|
}, tabs.map(function (_ref4) {
|
|
12075
12032
|
var id = _ref4.id,
|
|
12076
12033
|
text = _ref4.text,
|
|
12077
|
-
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$
|
|
12034
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$r);
|
|
12078
12035
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
12079
12036
|
key: id
|
|
12080
12037
|
}, /*#__PURE__*/React__default.createElement(TabLink, Object.assign({
|
|
@@ -12136,7 +12093,7 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
|
|
|
12136
12093
|
var MessageWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject9$a || (_templateObject9$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
12137
12094
|
var MessageWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject0$9 || (_templateObject0$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
|
|
12138
12095
|
|
|
12139
|
-
var _excluded$
|
|
12096
|
+
var _excluded$s = ["text"],
|
|
12140
12097
|
_excluded2$4 = ["text"];
|
|
12141
12098
|
var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
12142
12099
|
var title = _ref.title,
|
|
@@ -12146,7 +12103,7 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
|
12146
12103
|
message = _ref.message;
|
|
12147
12104
|
var _ref2 = (links == null ? void 0 : links[0]) || {},
|
|
12148
12105
|
primaryButtonText = _ref2.text,
|
|
12149
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
12106
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$s);
|
|
12150
12107
|
var _ref3 = (links == null ? void 0 : links[1]) || {},
|
|
12151
12108
|
secondaryButtonText = _ref3.text,
|
|
12152
12109
|
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2$4);
|
|
@@ -12254,7 +12211,7 @@ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$19 || (_t
|
|
|
12254
12211
|
var ContentWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
12255
12212
|
var Overlay = /*#__PURE__*/styled__default(Grid)(_templateObject4$N || (_templateObject4$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
|
|
12256
12213
|
|
|
12257
|
-
var _excluded$
|
|
12214
|
+
var _excluded$t = ["isOpen", "setIsOpen", "children", "appElementId"];
|
|
12258
12215
|
var MAX_Z_INDEX = 9999999999;
|
|
12259
12216
|
if (Modal.defaultStyles.content) {
|
|
12260
12217
|
Modal.defaultStyles.content.position = 'static';
|
|
@@ -12328,9 +12285,7 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
12328
12285
|
setIsOpen = _ref.setIsOpen,
|
|
12329
12286
|
children = _ref.children,
|
|
12330
12287
|
appElementId = _ref.appElementId,
|
|
12331
|
-
|
|
12332
|
-
closeButtonAriaLabel = _ref$closeButtonAriaL === void 0 ? 'Close modal window' : _ref$closeButtonAriaL,
|
|
12333
|
-
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12288
|
+
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
12334
12289
|
var isMobile = useMobile();
|
|
12335
12290
|
var customStyles = {
|
|
12336
12291
|
overlay: {
|
|
@@ -12362,11 +12317,10 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
12362
12317
|
columnSpanSmallDevice: 14
|
|
12363
12318
|
}, /*#__PURE__*/React__default.createElement(InnerModal, null, /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
12364
12319
|
onClick: closeModalHandler,
|
|
12365
|
-
"aria-label":
|
|
12320
|
+
"aria-label": "Close modal window",
|
|
12366
12321
|
tabIndex: 0
|
|
12367
12322
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
12368
|
-
iconName: "Close"
|
|
12369
|
-
"aria-hidden": "true"
|
|
12323
|
+
iconName: "Close"
|
|
12370
12324
|
})), /*#__PURE__*/React__default.createElement(ContentWrapper$3, null, children))), /*#__PURE__*/React__default.createElement(ScrollLock, null)));
|
|
12371
12325
|
};
|
|
12372
12326
|
|
|
@@ -12478,7 +12432,7 @@ var TitleWrapper$5 = /*#__PURE__*/styled__default.div(_templateObject5$E || (_te
|
|
|
12478
12432
|
var isDescriptionPresent = _ref4.isDescriptionPresent;
|
|
12479
12433
|
return isDescriptionPresent && 'margin: 20px 0';
|
|
12480
12434
|
});
|
|
12481
|
-
var TitleText$1 = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject6$u || (_templateObject6$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n line-height: 42px;\n }\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n padding-
|
|
12435
|
+
var TitleText$1 = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject6$u || (_templateObject6$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n line-height: 42px;\n }\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n padding-bottom: 4px;\n box-sizing: border-box;\n /* max-height = 2 * 40px (two lines): 40px is the design line-height for header--medium (matches font-size/optical metrics), +4px provides extra descender room so glyphs like g/y aren't clipped \u2014 non\u2011WebKit fallback */\n max-height: calc(2 * 40px + 4px);\n"])));
|
|
12482
12436
|
var ButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject7$o || (_templateObject7$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n"])));
|
|
12483
12437
|
var TitleGridItem = /*#__PURE__*/styled__default(GridItem)(_templateObject8$h || (_templateObject8$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n grid-column: 2 / span 10;\n }\n"])), devices.tablet);
|
|
12484
12438
|
var SwipeGridWrapper = /*#__PURE__*/styled__default(GridItem)(_templateObject9$b || (_templateObject9$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .swipe {\n padding-inline-start: 2px;\n padding-block-start: 2px;\n }\n\n ", ";\n\n @media ", " {\n grid-column: ", ";\n }\n\n @media ", " {\n grid-column: 2 / span 13;\n }\n"])), function (_ref5) {
|
|
@@ -12749,7 +12703,7 @@ var VideoWithControlsWrapper = /*#__PURE__*/styled__default.div(_templateObject1
|
|
|
12749
12703
|
}, devices.mobile);
|
|
12750
12704
|
var ProgressContainer$1 = /*#__PURE__*/styled__default.div(_templateObject16$1 || (_templateObject16$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n\n p {\n margin-bottom: 16px;\n }\n\n @media ", " {\n margin-top: 20px;\n\n p {\n margin-bottom: 12px;\n }\n }\n"])), devices.mobileAndTablet);
|
|
12751
12705
|
|
|
12752
|
-
var _excluded$
|
|
12706
|
+
var _excluded$u = ["text"],
|
|
12753
12707
|
_excluded2$5 = ["text"];
|
|
12754
12708
|
var _buttonTypeToButton$2;
|
|
12755
12709
|
var buttonTypeToButton$2 = (_buttonTypeToButton$2 = {}, _buttonTypeToButton$2[exports.ButtonType.Primary] = PrimaryButton, _buttonTypeToButton$2[exports.ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton$2[exports.ButtonType.Tertiary] = TertiaryButton, _buttonTypeToButton$2);
|
|
@@ -12760,7 +12714,7 @@ var Buttons = function Buttons(_ref) {
|
|
|
12760
12714
|
var _ref2 = firstButton || {},
|
|
12761
12715
|
_ref2$text = _ref2.text,
|
|
12762
12716
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
12763
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
12717
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$u);
|
|
12764
12718
|
var secondButton = links == null ? void 0 : links[1];
|
|
12765
12719
|
var _ref3 = secondButton || {},
|
|
12766
12720
|
_ref3$text = _ref3.text,
|
|
@@ -12997,11 +12951,11 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
12997
12951
|
})));
|
|
12998
12952
|
};
|
|
12999
12953
|
|
|
13000
|
-
var _excluded$
|
|
12954
|
+
var _excluded$v = ["logo", "slides"];
|
|
13001
12955
|
var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
13002
12956
|
var logo = _ref.logo,
|
|
13003
12957
|
slides = _ref.slides,
|
|
13004
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12958
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
13005
12959
|
var slidesWithLinks = slides.map(function (slide) {
|
|
13006
12960
|
var links = processSlideLinks(slide.links);
|
|
13007
12961
|
return _extends({}, slide, {
|
|
@@ -13018,10 +12972,10 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
|
13018
12972
|
})));
|
|
13019
12973
|
};
|
|
13020
12974
|
|
|
13021
|
-
var _excluded$
|
|
12975
|
+
var _excluded$w = ["slides"];
|
|
13022
12976
|
var HighlightsCore = function HighlightsCore(_ref) {
|
|
13023
12977
|
var slides = _ref.slides,
|
|
13024
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12978
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
13025
12979
|
var slidesWithLinks = slides.map(function (slide) {
|
|
13026
12980
|
var links = processSlideLinks(slide.links);
|
|
13027
12981
|
return _extends({}, slide, {
|
|
@@ -13035,11 +12989,11 @@ var HighlightsCore = function HighlightsCore(_ref) {
|
|
|
13035
12989
|
})));
|
|
13036
12990
|
};
|
|
13037
12991
|
|
|
13038
|
-
var _excluded$
|
|
12992
|
+
var _excluded$x = ["logo", "slides"];
|
|
13039
12993
|
var HighlightsStream = function HighlightsStream(_ref) {
|
|
13040
12994
|
var logo = _ref.logo,
|
|
13041
12995
|
slides = _ref.slides,
|
|
13042
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12996
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
13043
12997
|
var slidesWithLinks = slides.map(function (slide) {
|
|
13044
12998
|
var links = processSlideLinks(slide.links);
|
|
13045
12999
|
return _extends({}, slide, {
|