@royaloperahouse/chord 0.5.3 → 0.5.7
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 +17 -0
- package/dist/chord.cjs.development.js +131 -47
- 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 +125 -40
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/Card/Card.style.d.ts +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/chord.esm.js
CHANGED
|
@@ -734,6 +734,36 @@ var EditMyList = (function (_ref) {
|
|
|
734
734
|
}));
|
|
735
735
|
});
|
|
736
736
|
|
|
737
|
+
var Favourite = (function (_ref) {
|
|
738
|
+
var _ref$color = _ref.color,
|
|
739
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
740
|
+
return /*#__PURE__*/createElement("svg", {
|
|
741
|
+
width: "100%",
|
|
742
|
+
height: "100%",
|
|
743
|
+
viewBox: "0 0 24 24",
|
|
744
|
+
fill: "none",
|
|
745
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
746
|
+
}, /*#__PURE__*/createElement("path", {
|
|
747
|
+
d: "M12 4.69994L13.88 8.51994L14.12 8.98994L14.64 9.06994L18.85 9.67994L15.8 12.6799L15.43 13.0499L15.51 13.5599L16.23 17.7599L12.47 15.7599L12 15.5099L11.53 15.7499L7.77 17.7499L8.49 13.5499L8.57 13.0399L8.2 12.6699L5.15 9.66994L9.36 9.05994L9.88 8.97994L10.12 8.50994L12 4.69994ZM12 2.43994L9.22 8.07994L3 8.99994L7.5 13.3899L6.44 19.5799L12 16.6399L17.56 19.5599L16.5 13.3699L21 8.99994L14.78 8.09994L12 2.43994Z",
|
|
748
|
+
fill: color
|
|
749
|
+
}));
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
var FavouriteFull = (function (_ref) {
|
|
753
|
+
var _ref$color = _ref.color,
|
|
754
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
755
|
+
return /*#__PURE__*/createElement("svg", {
|
|
756
|
+
width: "100%",
|
|
757
|
+
height: "100%",
|
|
758
|
+
viewBox: "0 0 24 24",
|
|
759
|
+
fill: "none",
|
|
760
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
761
|
+
}, /*#__PURE__*/createElement("path", {
|
|
762
|
+
d: "M9.22 8.07994L12 2.43994L14.78 8.09994L21 8.99994L16.5 13.3699L17.56 19.5599L12 16.6399L6.44 19.5799L7.5 13.3899L3 8.99994L9.22 8.07994Z",
|
|
763
|
+
fill: color
|
|
764
|
+
}));
|
|
765
|
+
});
|
|
766
|
+
|
|
737
767
|
var Filter = (function (_ref) {
|
|
738
768
|
var _ref$color = _ref.color,
|
|
739
769
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1598,6 +1628,21 @@ var Refresh = (function (_ref) {
|
|
|
1598
1628
|
}));
|
|
1599
1629
|
});
|
|
1600
1630
|
|
|
1631
|
+
var Star = (function (_ref) {
|
|
1632
|
+
var _ref$color = _ref.color,
|
|
1633
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
1634
|
+
return /*#__PURE__*/createElement("svg", {
|
|
1635
|
+
width: "100%",
|
|
1636
|
+
height: "100%",
|
|
1637
|
+
viewBox: "0 0 48 46",
|
|
1638
|
+
fill: "none",
|
|
1639
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1640
|
+
}, /*#__PURE__*/createElement("path", {
|
|
1641
|
+
d: "M24 0L30.0248 16.7076L47.7764 17.2746L33.7483 28.1674L38.6946 45.2254L24 35.25L9.30537 45.2254L14.2517 28.1674L0.223587 17.2746L17.9752 16.7076L24 0Z",
|
|
1642
|
+
fill: color
|
|
1643
|
+
}));
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1601
1646
|
var AudioDescription = (function (_ref) {
|
|
1602
1647
|
var _ref$color = _ref.color,
|
|
1603
1648
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1897,6 +1942,8 @@ var IconLibrary = {
|
|
|
1897
1942
|
Expand: Expand,
|
|
1898
1943
|
ExternalLink: ExternalLink,
|
|
1899
1944
|
Facebook: Facebook,
|
|
1945
|
+
Favourite: Favourite,
|
|
1946
|
+
FavouriteFull: FavouriteFull,
|
|
1900
1947
|
Filter: Filter,
|
|
1901
1948
|
FindAScreening: FindAScreening,
|
|
1902
1949
|
Forward10: Forward10,
|
|
@@ -1928,6 +1975,7 @@ var IconLibrary = {
|
|
|
1928
1975
|
Settings: Settings,
|
|
1929
1976
|
Shift: Shift,
|
|
1930
1977
|
Space: Space,
|
|
1978
|
+
Star: Star,
|
|
1931
1979
|
Subscribe: Subscribe,
|
|
1932
1980
|
Subtitles: Subtitles,
|
|
1933
1981
|
Tick: Tick,
|
|
@@ -2537,7 +2585,7 @@ var Tab = function Tab(_ref) {
|
|
|
2537
2585
|
};
|
|
2538
2586
|
|
|
2539
2587
|
var _templateObject$f, _templateObject2$3;
|
|
2540
|
-
var TabLinkWrapper = /*#__PURE__*/styled.a(_templateObject$f || (_templateObject$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: ", ";\n font-family: var(--font-family-navigation);\n font-size: var(--font-size-navigation);\n font-weight: var(--font-weight-navigation);\n line-height: var(--line-height-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n text-transform: var(--text-transform-navigation);\n color: ", ";\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n border-bottom: ", ";\n ", "\n\n
|
|
2588
|
+
var TabLinkWrapper = /*#__PURE__*/styled.a(_templateObject$f || (_templateObject$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: ", ";\n font-family: var(--font-family-navigation);\n font-size: var(--font-size-navigation);\n font-weight: var(--font-weight-navigation);\n line-height: var(--line-height-navigation);\n letter-spacing: var(--letter-spacing-navigation);\n text-transform: var(--text-transform-navigation);\n color: ", ";\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n border-bottom: ", ";\n ", "\n\n @media ", ", ", " {\n &:hover {\n color: var(--base-color-", ");\n border-bottom: 1px solid var(--base-color-", ");\n\n && svg path {\n fill: var(--base-color-", ");\n }\n }\n }\n"])), function (_ref) {
|
|
2541
2589
|
var iconName = _ref.iconName;
|
|
2542
2590
|
return iconName ? 'calc(var(--text-link-underline-offset) - 4px) 0' : 'var(--text-link-underline-offset) 0';
|
|
2543
2591
|
}, function (_ref2) {
|
|
@@ -2553,7 +2601,7 @@ var TabLinkWrapper = /*#__PURE__*/styled.a(_templateObject$f || (_templateObject
|
|
|
2553
2601
|
var selected = _ref4.selected,
|
|
2554
2602
|
hoverColor = _ref4.hoverColor;
|
|
2555
2603
|
return selected ? "&& svg path {\n fill: var(--base-color-" + hoverColor + ");\n }" : '';
|
|
2556
|
-
}, function (_ref5) {
|
|
2604
|
+
}, devices.desktop, devices.largeDesktop, function (_ref5) {
|
|
2557
2605
|
var hoverColor = _ref5.hoverColor;
|
|
2558
2606
|
return hoverColor;
|
|
2559
2607
|
}, function (_ref6) {
|
|
@@ -2647,7 +2695,7 @@ var RotatorButtons = function RotatorButtons(_ref) {
|
|
|
2647
2695
|
var renderPrevIcon = function renderPrevIcon() {
|
|
2648
2696
|
return /*#__PURE__*/React__default.createElement(Icon, {
|
|
2649
2697
|
iconName: 'CarouselArrow',
|
|
2650
|
-
direction: "
|
|
2698
|
+
direction: "reverse"
|
|
2651
2699
|
});
|
|
2652
2700
|
};
|
|
2653
2701
|
|
|
@@ -3877,8 +3925,6 @@ var _excluded$7 = ["text"],
|
|
|
3877
3925
|
_excluded3 = ["id", "text"];
|
|
3878
3926
|
|
|
3879
3927
|
var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
3880
|
-
var _tabListRef$current, _tabListRef$current2;
|
|
3881
|
-
|
|
3882
3928
|
var tabs = _ref.tabs,
|
|
3883
3929
|
title = _ref.title,
|
|
3884
3930
|
links = _ref.links,
|
|
@@ -3894,13 +3940,15 @@ var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
|
3894
3940
|
tabsOverflow = _useState2[0],
|
|
3895
3941
|
setTabsOverflow = _useState2[1];
|
|
3896
3942
|
|
|
3897
|
-
var _useState3 = useState(
|
|
3898
|
-
|
|
3899
|
-
|
|
3943
|
+
var _useState3 = useState(false),
|
|
3944
|
+
canScrollToLeft = _useState3[0],
|
|
3945
|
+
setCanScrollToLeft = _useState3[1];
|
|
3946
|
+
|
|
3947
|
+
var _useState4 = useState(tabsOverflow),
|
|
3948
|
+
canScrollToRight = _useState4[0],
|
|
3949
|
+
setCanScrollToRight = _useState4[1];
|
|
3900
3950
|
|
|
3901
3951
|
var hasTitleOrLinks = title || links;
|
|
3902
|
-
var scrollStart = 0 === scroll;
|
|
3903
|
-
var scrollEnd = (((_tabListRef$current = tabListRef.current) == null ? void 0 : _tabListRef$current.scrollWidth) || 0) - (((_tabListRef$current2 = tabListRef.current) == null ? void 0 : _tabListRef$current2.clientWidth) || 0) <= scroll;
|
|
3904
3952
|
|
|
3905
3953
|
var isSelectedItem = function isSelectedItem(id) {
|
|
3906
3954
|
return id === selectedItem;
|
|
@@ -3915,10 +3963,11 @@ var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
|
3915
3963
|
};
|
|
3916
3964
|
|
|
3917
3965
|
useEffect(function () {
|
|
3918
|
-
var _tabListRef$
|
|
3966
|
+
var _tabListRef$current, _tabListRef$current2;
|
|
3919
3967
|
|
|
3920
|
-
var tabsIsOverflowed = (((_tabListRef$
|
|
3968
|
+
var tabsIsOverflowed = (((_tabListRef$current = tabListRef.current) == null ? void 0 : _tabListRef$current.scrollWidth) || 0) > (((_tabListRef$current2 = tabListRef.current) == null ? void 0 : _tabListRef$current2.clientWidth) || 0);
|
|
3921
3969
|
setTabsOverflow(tabsIsOverflowed);
|
|
3970
|
+
setCanScrollToRight(tabsIsOverflowed);
|
|
3922
3971
|
}, [tabListRef]);
|
|
3923
3972
|
useEffect(function () {
|
|
3924
3973
|
var scrollTriggerCheck = function scrollTriggerCheck() {
|
|
@@ -3933,6 +3982,24 @@ var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
|
3933
3982
|
if (window.scrollY === 0) {
|
|
3934
3983
|
setSelectedItem(onTabClick ? selectedItem : '');
|
|
3935
3984
|
} else if (reachedItem) {
|
|
3985
|
+
var _ref2 = (tabListRef == null ? void 0 : tabListRef.current) || {},
|
|
3986
|
+
_ref2$scrollLeft = _ref2.scrollLeft,
|
|
3987
|
+
scrollLeft = _ref2$scrollLeft === void 0 ? 0 : _ref2$scrollLeft,
|
|
3988
|
+
_ref2$clientWidth = _ref2.clientWidth,
|
|
3989
|
+
clientWidth = _ref2$clientWidth === void 0 ? 0 : _ref2$clientWidth;
|
|
3990
|
+
|
|
3991
|
+
var tabLinkElement = document.getElementById("tablink-" + reachedItem.id) || {
|
|
3992
|
+
offsetLeft: 0,
|
|
3993
|
+
offsetWidth: 0
|
|
3994
|
+
};
|
|
3995
|
+
var offsetLeft = tabLinkElement.offsetLeft,
|
|
3996
|
+
offsetWidth = tabLinkElement.offsetWidth;
|
|
3997
|
+
var isInView = offsetLeft >= scrollLeft && offsetLeft + offsetWidth < scrollLeft + clientWidth;
|
|
3998
|
+
|
|
3999
|
+
if (!isInView && tabListRef != null && tabListRef.current) {
|
|
4000
|
+
tabListRef.current.scrollLeft = offsetLeft;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
3936
4003
|
setSelectedItem(reachedItem.id);
|
|
3937
4004
|
}
|
|
3938
4005
|
};
|
|
@@ -3941,34 +4008,47 @@ var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
|
3941
4008
|
return function () {
|
|
3942
4009
|
return document.removeEventListener('scroll', scrollTriggerCheck);
|
|
3943
4010
|
};
|
|
3944
|
-
}, [tabs, selectedItem, hasTitleOrLinks]);
|
|
3945
|
-
var tabsColumnStart = tabsOverflow ?
|
|
3946
|
-
var tabsColumnSpan = tabsOverflow ?
|
|
4011
|
+
}, [tabs, selectedItem, hasTitleOrLinks, tabListRef]);
|
|
4012
|
+
var tabsColumnStart = tabsOverflow ? !canScrollToLeft ? 2 : 1 : 3;
|
|
4013
|
+
var tabsColumnSpan = tabsOverflow ? !canScrollToLeft ? 14 : 15 : 13;
|
|
3947
4014
|
|
|
3948
|
-
var
|
|
3949
|
-
primaryButtonText =
|
|
3950
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(
|
|
4015
|
+
var _ref3 = (links == null ? void 0 : links[0]) || {},
|
|
4016
|
+
primaryButtonText = _ref3.text,
|
|
4017
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded$7);
|
|
3951
4018
|
|
|
3952
|
-
var
|
|
3953
|
-
secondaryButtonText =
|
|
3954
|
-
secondaryButtonProps = _objectWithoutPropertiesLoose(
|
|
4019
|
+
var _ref4 = (links == null ? void 0 : links[1]) || {},
|
|
4020
|
+
secondaryButtonText = _ref4.text,
|
|
4021
|
+
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref4, _excluded2);
|
|
3955
4022
|
|
|
3956
4023
|
var scrollToRight = function scrollToRight() {
|
|
3957
4024
|
if (tabListRef.current) {
|
|
4025
|
+
var scroll = tabListRef.current.scrollLeft;
|
|
3958
4026
|
var newScroll = Math.min(tabListRef.current.clientWidth, tabListRef.current.scrollWidth - scroll);
|
|
3959
4027
|
tabListRef.current.scrollLeft += newScroll;
|
|
3960
|
-
setScroll(tabListRef.current.scrollLeft + newScroll);
|
|
3961
4028
|
}
|
|
3962
4029
|
};
|
|
3963
4030
|
|
|
3964
4031
|
var scrollToLeft = function scrollToLeft() {
|
|
3965
4032
|
if (tabListRef.current) {
|
|
4033
|
+
var scroll = tabListRef.current.scrollLeft;
|
|
3966
4034
|
var newScroll = Math.max(0, scroll - tabListRef.current.clientWidth);
|
|
3967
4035
|
tabListRef.current.scrollLeft = newScroll;
|
|
3968
|
-
setScroll(newScroll);
|
|
3969
4036
|
}
|
|
3970
4037
|
};
|
|
3971
4038
|
|
|
4039
|
+
var onTabsScroll = function onTabsScroll() {
|
|
4040
|
+
var _ref5 = (tabListRef == null ? void 0 : tabListRef.current) || {},
|
|
4041
|
+
_ref5$scrollLeft = _ref5.scrollLeft,
|
|
4042
|
+
scrollLeft = _ref5$scrollLeft === void 0 ? 0 : _ref5$scrollLeft,
|
|
4043
|
+
_ref5$clientWidth = _ref5.clientWidth,
|
|
4044
|
+
clientWidth = _ref5$clientWidth === void 0 ? 0 : _ref5$clientWidth,
|
|
4045
|
+
_ref5$scrollWidth = _ref5.scrollWidth,
|
|
4046
|
+
scrollWidth = _ref5$scrollWidth === void 0 ? 0 : _ref5$scrollWidth;
|
|
4047
|
+
|
|
4048
|
+
setCanScrollToLeft(scrollLeft > 0);
|
|
4049
|
+
setCanScrollToRight(scrollLeft + clientWidth < scrollWidth);
|
|
4050
|
+
};
|
|
4051
|
+
|
|
3972
4052
|
return /*#__PURE__*/React__default.createElement(AnchorTapbarWrapper, null, title || links ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TitleCTAGrid, null, title ? /*#__PURE__*/React__default.createElement(GridItem, {
|
|
3973
4053
|
columnStartDesktop: 2,
|
|
3974
4054
|
columnSpanDesktop: 9,
|
|
@@ -3993,27 +4073,29 @@ var AnchorTapBar = function AnchorTapBar(_ref) {
|
|
|
3993
4073
|
"data-testid": "anchor-tabs"
|
|
3994
4074
|
}, /*#__PURE__*/React__default.createElement(TabsList, {
|
|
3995
4075
|
ref: tabListRef,
|
|
3996
|
-
tabsOverflow: tabsOverflow
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4076
|
+
tabsOverflow: tabsOverflow,
|
|
4077
|
+
onScroll: onTabsScroll
|
|
4078
|
+
}, tabs.map(function (_ref6) {
|
|
4079
|
+
var id = _ref6.id,
|
|
4080
|
+
text = _ref6.text,
|
|
4081
|
+
rest = _objectWithoutPropertiesLoose(_ref6, _excluded3);
|
|
4001
4082
|
|
|
4002
4083
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
4003
4084
|
key: id
|
|
4004
4085
|
}, /*#__PURE__*/React__default.createElement(TabLink, Object.assign({
|
|
4005
4086
|
selected: isSelectedItem(id),
|
|
4087
|
+
id: "tablink-" + id,
|
|
4006
4088
|
onClick: function onClick(e) {
|
|
4007
4089
|
return onClicktab(e, id);
|
|
4008
4090
|
},
|
|
4009
4091
|
tabIndex: 0
|
|
4010
4092
|
}, rest), text));
|
|
4011
|
-
})), tabsOverflow ? /*#__PURE__*/React__default.createElement(ArrowsContainer, null,
|
|
4093
|
+
})), tabsOverflow ? /*#__PURE__*/React__default.createElement(ArrowsContainer, null, canScrollToLeft ? /*#__PURE__*/React__default.createElement(ArrowWrapper, {
|
|
4012
4094
|
onClick: scrollToLeft
|
|
4013
4095
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
4014
4096
|
iconName: "Arrow",
|
|
4015
4097
|
direction: "reverse"
|
|
4016
|
-
})) : null,
|
|
4098
|
+
})) : null, canScrollToRight ? /*#__PURE__*/React__default.createElement(ArrowWrapper, {
|
|
4017
4099
|
onClick: scrollToRight
|
|
4018
4100
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
4019
4101
|
iconName: "Arrow"
|
|
@@ -4041,7 +4123,7 @@ var CarouselWrapper = /*#__PURE__*/styled.div(_templateObject$x || (_templateObj
|
|
|
4041
4123
|
var calcColumns = "calc(calc(80% - " + gapsInMainGraid + ") * " + numberOfColumns + " / 12)";
|
|
4042
4124
|
return "\n & {\n .swiper-slide {\n width: calc(" + calcColumns + " + " + gapsSpace + " - 1px);\n margin-right: var(--grid-column-gap);\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n ";
|
|
4043
4125
|
} else {
|
|
4044
|
-
return "\n & {\n .swiper-slide {\n height: fit-content;\n width: auto;\n margin-right: var(--grid-column-gap);\n -webkit-transform: translate3d(0, 0, 0);\n\n > div {\n height: " + imagesHeightDesktop + "px;\n }\n }\n }\n ";
|
|
4126
|
+
return "\n & {\n .swiper-slide {\n height: fit-content;\n width: auto;\n margin-right: var(--grid-column-gap);\n -webkit-transform: translate3d(0, 0, 0);\n\n > div {\n height: calc(" + imagesHeightDesktop + "px + var(--line-height-body-2) + 12px);\n }\n }\n }\n ";
|
|
4045
4127
|
}
|
|
4046
4128
|
}, devices.mobile, function (_ref2) {
|
|
4047
4129
|
var active = _ref2.active,
|
|
@@ -4058,11 +4140,11 @@ var CarouselWrapper = /*#__PURE__*/styled.div(_templateObject$x || (_templateObj
|
|
|
4058
4140
|
var marginRight = active ? "calc(calc(var(--grid-column-gap) * 2) + " + columnWidth + ")" : "calc(calc(" + columnWidth + " * 2) + var(--grid-column-gap))";
|
|
4059
4141
|
return "\n && {\n .swiper-slide {\n width: calc(" + calcColumns + " + " + gapsSpace + " - 1px);\n margin-right: " + marginRight + ";\n -webkit-transform: translate3d(0, 0, 0);\n }\n }";
|
|
4060
4142
|
} else {
|
|
4061
|
-
return "\n &&& {\n .swiper-slide > div{\n height: " + imagesHeightDevice + "px;\n }\n }";
|
|
4143
|
+
return "\n &&& {\n .swiper-slide > div{\n height: calc(" + imagesHeightDevice + "px + var(--line-height-body-2) + 12px);\n }\n }";
|
|
4062
4144
|
}
|
|
4063
4145
|
});
|
|
4064
4146
|
var TitleButtonsGrid = /*#__PURE__*/styled(Grid)(_templateObject2$h || (_templateObject2$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 28px;\n\n @media ", " {\n margin-bottom: 20px;\n }\n"])), devices.mobile);
|
|
4065
|
-
var TitleWrapper = /*#__PURE__*/styled.div(_templateObject3$b || (_templateObject3$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n align-items: center;\n user-select: text;\n\n
|
|
4147
|
+
var TitleWrapper = /*#__PURE__*/styled.div(_templateObject3$b || (_templateObject3$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n align-items: center;\n user-select: text;\n\n h4 {\n padding: 0;\n margin: 0;\n }\n"])));
|
|
4066
4148
|
var ButtonsWrapper = /*#__PURE__*/styled.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n\n @media ", " {\n display: none;\n }\n"])), devices.mobileAndTablet);
|
|
4067
4149
|
|
|
4068
4150
|
var Carousel = function Carousel(_ref) {
|
|
@@ -4142,7 +4224,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4142
4224
|
}, /*#__PURE__*/React__default.createElement(TitleWrapper, {
|
|
4143
4225
|
"data-testid": "carousel-title-wrapper"
|
|
4144
4226
|
}, /*#__PURE__*/React__default.createElement(AltHeader, {
|
|
4145
|
-
level:
|
|
4227
|
+
level: 4
|
|
4146
4228
|
}, title))), /*#__PURE__*/React__default.createElement(GridItem, {
|
|
4147
4229
|
columnStartDesktop: 14,
|
|
4148
4230
|
columnSpanDesktop: 2,
|
|
@@ -4466,7 +4548,7 @@ var Accordions = function Accordions(_ref) {
|
|
|
4466
4548
|
}));
|
|
4467
4549
|
};
|
|
4468
4550
|
|
|
4469
|
-
var _templateObject$B, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$4;
|
|
4551
|
+
var _templateObject$B, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3;
|
|
4470
4552
|
var LENGTH_LARGE_TEXT = 28;
|
|
4471
4553
|
var LENGTH_SMALL_TEXT = 19;
|
|
4472
4554
|
var LENGTH_TEXT_TABLET = 10;
|
|
@@ -4480,10 +4562,11 @@ var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject4$b || (_templat
|
|
|
4480
4562
|
var fullWidth = _ref2.fullWidth;
|
|
4481
4563
|
return fullWidth ? '0' : '20px';
|
|
4482
4564
|
});
|
|
4483
|
-
var TitleContainer$2 = /*#__PURE__*/styled.div(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n"])));
|
|
4484
|
-
var
|
|
4485
|
-
var
|
|
4486
|
-
var
|
|
4565
|
+
var TitleContainer$2 = /*#__PURE__*/styled.div(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n\n @media ", " {\n display: none;\n }\n"])), devices.mobile);
|
|
4566
|
+
var TitleContainerMobile = /*#__PURE__*/styled.div(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: calc(-1 * var(--editorial-margin-between)) 0 calc(-1 * var(--editorial-margin-between)) 0;\n display: none;\n\n @media ", " {\n display: block;\n }\n"])), devices.mobile);
|
|
4567
|
+
var TextContainer = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin-top: var(--editorial-spacing-hover);\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n em {\n font-family: var(--font-family-body-italics);\n }\n"])));
|
|
4568
|
+
var SubtitleContainer = /*#__PURE__*/styled.span(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-2);\n font-weight: var(--font-weight-subtitle-2);\n line-height: var(--line-height-subtitle-2);\n letter-spacing: var(--letter-spacing-subtitle-2);\n text-transform: var(--text-transform-subtitle);\n display: block;\n overflow-wrap: break-word;\n"])));
|
|
4569
|
+
var ButtonsContainer$1 = /*#__PURE__*/styled.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n opacity: 0;\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref3) {
|
|
4487
4570
|
var size = _ref3.size,
|
|
4488
4571
|
primaryButtonTextLength = _ref3.primaryButtonTextLength,
|
|
4489
4572
|
tertiaryButtonTextLength = _ref3.tertiaryButtonTextLength;
|
|
@@ -4622,6 +4705,8 @@ var Card = function Card(_ref) {
|
|
|
4622
4705
|
}, tags ? /*#__PURE__*/React__default.createElement(TypeTags, {
|
|
4623
4706
|
list: tags
|
|
4624
4707
|
}) : null, /*#__PURE__*/React__default.createElement(TitleContainer$2, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
4708
|
+
level: size === 'small' ? 6 : 5
|
|
4709
|
+
}, title)), /*#__PURE__*/React__default.createElement(TitleContainerMobile, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
4625
4710
|
level: 6
|
|
4626
4711
|
}, title)), subtitle ? /*#__PURE__*/React__default.createElement(SubtitleContainer, null, subtitle) : null, /*#__PURE__*/React__default.createElement(TextContainer, {
|
|
4627
4712
|
dangerouslySetInnerHTML: {
|
|
@@ -5968,5 +6053,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$N || (_templat
|
|
|
5968
6053
|
return theme.grid.tablet.margin;
|
|
5969
6054
|
}, devices.desktop, devices.largeDesktop);
|
|
5970
6055
|
|
|
5971
|
-
export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, Button$1 as TertiaryButton, TextOnly, Theme as ThemeProvider, ThemeType, TypeTags, devices };
|
|
6056
|
+
export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, Button$1 as TertiaryButton, TextOnly, Theme as ThemeProvider, ThemeType, TypeTags, devices };
|
|
5972
6057
|
//# sourceMappingURL=chord.esm.js.map
|