@royaloperahouse/chord 0.5.5 → 0.5.9
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 +13 -0
- package/dist/chord.cjs.development.js +145 -22
- 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 +145 -22
- 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/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +2 -1
- package/dist/types/image.d.ts +23 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [0.5.9]
|
|
4
|
+
- Reduce tablet grid margin from 50px to 32px.
|
|
5
|
+
- Add alternative to aspect-ratio css attribute.
|
|
6
|
+
|
|
7
|
+
## [0.5.8]
|
|
8
|
+
- PromoWithTitle links style
|
|
9
|
+
|
|
10
|
+
## [0.5.7]
|
|
11
|
+
- Added Star icon to Iconography
|
|
12
|
+
|
|
13
|
+
## [0.5.6]
|
|
14
|
+
- Added Favourite and Favourite Full icons to Iconography
|
|
15
|
+
|
|
3
16
|
## [0.5.5]
|
|
4
17
|
- Export ImageAspectRatioWrapper component and AspectRatio enum
|
|
5
18
|
|
|
@@ -469,7 +469,7 @@ var common = {
|
|
|
469
469
|
gap: '12px'
|
|
470
470
|
},
|
|
471
471
|
tablet: {
|
|
472
|
-
margin: '
|
|
472
|
+
margin: '32px',
|
|
473
473
|
outerMargin: '0',
|
|
474
474
|
gap: '20px'
|
|
475
475
|
},
|
|
@@ -742,6 +742,36 @@ var EditMyList = (function (_ref) {
|
|
|
742
742
|
}));
|
|
743
743
|
});
|
|
744
744
|
|
|
745
|
+
var Favourite = (function (_ref) {
|
|
746
|
+
var _ref$color = _ref.color,
|
|
747
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
748
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
749
|
+
width: "100%",
|
|
750
|
+
height: "100%",
|
|
751
|
+
viewBox: "0 0 24 24",
|
|
752
|
+
fill: "none",
|
|
753
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
754
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
755
|
+
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",
|
|
756
|
+
fill: color
|
|
757
|
+
}));
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
var FavouriteFull = (function (_ref) {
|
|
761
|
+
var _ref$color = _ref.color,
|
|
762
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
763
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
764
|
+
width: "100%",
|
|
765
|
+
height: "100%",
|
|
766
|
+
viewBox: "0 0 24 24",
|
|
767
|
+
fill: "none",
|
|
768
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
769
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
770
|
+
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",
|
|
771
|
+
fill: color
|
|
772
|
+
}));
|
|
773
|
+
});
|
|
774
|
+
|
|
745
775
|
var Filter = (function (_ref) {
|
|
746
776
|
var _ref$color = _ref.color,
|
|
747
777
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1606,6 +1636,21 @@ var Refresh = (function (_ref) {
|
|
|
1606
1636
|
}));
|
|
1607
1637
|
});
|
|
1608
1638
|
|
|
1639
|
+
var Star = (function (_ref) {
|
|
1640
|
+
var _ref$color = _ref.color,
|
|
1641
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
1642
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1643
|
+
width: "100%",
|
|
1644
|
+
height: "100%",
|
|
1645
|
+
viewBox: "0 0 48 46",
|
|
1646
|
+
fill: "none",
|
|
1647
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1648
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1649
|
+
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",
|
|
1650
|
+
fill: color
|
|
1651
|
+
}));
|
|
1652
|
+
});
|
|
1653
|
+
|
|
1609
1654
|
var AudioDescription = (function (_ref) {
|
|
1610
1655
|
var _ref$color = _ref.color,
|
|
1611
1656
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1905,6 +1950,8 @@ var IconLibrary = {
|
|
|
1905
1950
|
Expand: Expand,
|
|
1906
1951
|
ExternalLink: ExternalLink,
|
|
1907
1952
|
Facebook: Facebook,
|
|
1953
|
+
Favourite: Favourite,
|
|
1954
|
+
FavouriteFull: FavouriteFull,
|
|
1908
1955
|
Filter: Filter,
|
|
1909
1956
|
FindAScreening: FindAScreening,
|
|
1910
1957
|
Forward10: Forward10,
|
|
@@ -1936,6 +1983,7 @@ var IconLibrary = {
|
|
|
1936
1983
|
Settings: Settings,
|
|
1937
1984
|
Shift: Shift,
|
|
1938
1985
|
Space: Space,
|
|
1986
|
+
Star: Star,
|
|
1939
1987
|
Subscribe: Subscribe,
|
|
1940
1988
|
Subtitles: Subtitles,
|
|
1941
1989
|
Tick: Tick,
|
|
@@ -2431,11 +2479,41 @@ var SectionSplitter = function SectionSplitter(_ref) {
|
|
|
2431
2479
|
AspectRatio["16:9"] = "16 / 9";
|
|
2432
2480
|
})(exports.AspectRatio || (exports.AspectRatio = {}));
|
|
2433
2481
|
|
|
2482
|
+
var AspectRatioLegacy;
|
|
2483
|
+
|
|
2484
|
+
(function (AspectRatioLegacy) {
|
|
2485
|
+
AspectRatioLegacy["1 / 1"] = "100";
|
|
2486
|
+
AspectRatioLegacy["3 / 4"] = "133";
|
|
2487
|
+
AspectRatioLegacy["4 / 3"] = "75";
|
|
2488
|
+
AspectRatioLegacy["16 / 9"] = "56.25";
|
|
2489
|
+
})(AspectRatioLegacy || (AspectRatioLegacy = {}));
|
|
2490
|
+
|
|
2491
|
+
var AspectRatioWidth;
|
|
2492
|
+
|
|
2493
|
+
(function (AspectRatioWidth) {
|
|
2494
|
+
AspectRatioWidth["1 / 1"] = "1";
|
|
2495
|
+
AspectRatioWidth["3 / 4"] = "0.75";
|
|
2496
|
+
AspectRatioWidth["4 / 3"] = "1.33";
|
|
2497
|
+
AspectRatioWidth["16 / 9"] = "1.78";
|
|
2498
|
+
})(AspectRatioWidth || (AspectRatioWidth = {}));
|
|
2499
|
+
|
|
2434
2500
|
var _templateObject$d;
|
|
2435
|
-
var ImageAspectRatioWrapper = /*#__PURE__*/styled__default.div(_templateObject$d || (_templateObject$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: ", ";\n\n img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"])), function (_ref) {
|
|
2501
|
+
var ImageAspectRatioWrapper = /*#__PURE__*/styled__default.div(_templateObject$d || (_templateObject$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: ", ";\n\n @supports not (aspect-ratio: ", ") {\n position: relative;\n width: 100%;\n padding-top: ", "%;\n }\n\n img {\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) {
|
|
2436
2502
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
2437
2503
|
aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
|
|
2438
2504
|
return aspectRatio;
|
|
2505
|
+
}, function (_ref2) {
|
|
2506
|
+
var _ref2$aspectRatio = _ref2.aspectRatio,
|
|
2507
|
+
aspectRatio = _ref2$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref2$aspectRatio;
|
|
2508
|
+
return aspectRatio;
|
|
2509
|
+
}, function (_ref3) {
|
|
2510
|
+
var _ref3$aspectRatio = _ref3.aspectRatio,
|
|
2511
|
+
aspectRatio = _ref3$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref3$aspectRatio;
|
|
2512
|
+
return AspectRatioLegacy[aspectRatio];
|
|
2513
|
+
}, function (_ref4) {
|
|
2514
|
+
var _ref4$aspectRatio = _ref4.aspectRatio,
|
|
2515
|
+
aspectRatio = _ref4$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref4$aspectRatio;
|
|
2516
|
+
return aspectRatio;
|
|
2439
2517
|
});
|
|
2440
2518
|
|
|
2441
2519
|
var _templateObject$e, _templateObject2$2;
|
|
@@ -4125,7 +4203,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4125
4203
|
if (window.matchMedia(devices.mobile).matches) {
|
|
4126
4204
|
setSlidesOffsetBefore(20); // Mobile margin grid
|
|
4127
4205
|
} else if (window.matchMedia(devices.tablet).matches) {
|
|
4128
|
-
setSlidesOffsetBefore(
|
|
4206
|
+
setSlidesOffsetBefore(32); // Tablet margin grid
|
|
4129
4207
|
} else {
|
|
4130
4208
|
setSlidesOffsetBefore(Math.floor(window.innerWidth * 0.1) - 3); // 10% of width
|
|
4131
4209
|
}
|
|
@@ -4206,7 +4284,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
4206
4284
|
|
|
4207
4285
|
var _templateObject$y, _templateObject2$i, _templateObject3$c, _templateObject4$9, _templateObject5$5, _templateObject6$5, _templateObject7$3, _templateObject8$3, _templateObject9$2, _templateObject10$1;
|
|
4208
4286
|
var HighlightsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$y || (_templateObject$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--base-color-black);\n color: var(--base-color-white);\n user-select: none;\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
|
|
4209
|
-
var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$i || (_templateObject2$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n h4 {\n margin: 0;\n padding: 0;\n }\n\n h5 {\n display: none;\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 1 / 6;\n padding-top: 32px;\n padding-right: 28px;\n\n h4 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: var(--line-height-altHeader-5);\n\n h4 {\n display: none;\n }\n\n h5 {\n margin: 0;\n padding: 0;\n display: block;\n }\n }\n }\n"])), devices.tablet, function (_ref) {
|
|
4287
|
+
var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$i || (_templateObject2$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n h4 {\n margin: 0;\n padding: 0;\n }\n\n h5 {\n display: none;\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 1 / 6;\n padding-top: 32px;\n padding-right: 28px;\n padding-left: 32px;\n\n h4 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: var(--line-height-altHeader-5);\n\n h4 {\n display: none;\n }\n\n h5 {\n margin: 0;\n padding: 0;\n display: block;\n }\n }\n }\n"])), devices.tablet, function (_ref) {
|
|
4210
4288
|
var theme = _ref.theme;
|
|
4211
4289
|
return theme.fonts.mobile.sizes.altHeaders[4];
|
|
4212
4290
|
}, function (_ref2) {
|
|
@@ -4219,7 +4297,7 @@ var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$i |
|
|
|
4219
4297
|
var theme = _ref4.theme;
|
|
4220
4298
|
return theme.fonts.mobile.lineHeights.altHeaders[4];
|
|
4221
4299
|
}, devices.mobile);
|
|
4222
|
-
var InfoWrapper = /*#__PURE__*/styled__default.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 6;\n padding: 28px 28px 28px
|
|
4300
|
+
var InfoWrapper = /*#__PURE__*/styled__default.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 6;\n padding: 28px 28px 28px 32px;\n }\n }\n\n @media ", " {\n & {\n grid-area: 3 / 1 / 4 / 15;\n width: 100%;\n padding: 0 20px;\n margin: 24px 0;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4223
4301
|
var InfoLogoWrapper = /*#__PURE__*/styled__default.div(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n width: 132px;\n height: 36px;\n\n @media ", " {\n & {\n margin-bottom: 20px;\n width: 102px;\n height: 28px;\n }\n }\n"])), devices.mobile);
|
|
4224
4302
|
var InfoTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: text;\n h3 {\n padding: 0;\n margin: 0 0 8px 0;\n }\n\n h6 {\n padding: 0;\n margin: 0;\n }\n\n @media ", " {\n & {\n h3 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n\n h6 {\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n }\n }\n }\n"])), devices.tablet, function (_ref5) {
|
|
4225
4303
|
var theme = _ref5.theme;
|
|
@@ -4272,8 +4350,8 @@ var InfoTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$5 || (_t
|
|
|
4272
4350
|
return theme.fonts.mobile.lineHeights.body[1];
|
|
4273
4351
|
}, devices.mobile);
|
|
4274
4352
|
var InfoLinkWrapper = /*#__PURE__*/styled__default.div(_templateObject7$3 || (_templateObject7$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
4275
|
-
var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 7 / 3 / 17;\n position: relative;\n height: 100%;\n width: 100%;\n\n .swiper-slide {\n width: calc(100% - 50px - var(--rotator-button-width));\n -webkit-transform: translate3d(0, 0, 0);\n }\n\n @media ", " {\n & {\n grid-area: 1 / 6 / 3 / 15;\n }\n }\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 3 / 15;\n\n .swiper-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4276
|
-
var RotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: 50px;\n top: calc(50% - calc(var(--rotator-button-width) / 2));\n z-index: 2;\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.mobile);
|
|
4353
|
+
var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 7 / 3 / 17;\n position: relative;\n height: 100%;\n width: 100%;\n\n .swiper-slide {\n width: calc(100% - 50px - var(--rotator-button-width));\n -webkit-transform: translate3d(0, 0, 0);\n }\n\n @media ", " {\n & {\n grid-area: 1 / 6 / 3 / 15;\n\n .swiper-slide {\n width: calc(100% - 32px - var(--rotator-button-width));\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 3 / 15;\n\n .swiper-slide {\n width: 100%;\n -webkit-transform: translate3d(0, 0, 0);\n }\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4354
|
+
var RotatorButtonsWrapper = /*#__PURE__*/styled__default.div(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: 50px;\n top: calc(50% - calc(var(--rotator-button-width) / 2));\n z-index: 2;\n\n @media ", " {\n & {\n right: 32px;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4277
4355
|
var RotatorButtonsWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n\n @media ", " {\n & {\n display: flex;\n grid-area: 1 / 11 / 2 / 14;\n align-self: center;\n justify-content: flex-end;\n }\n }\n"])), devices.mobile);
|
|
4278
4356
|
|
|
4279
4357
|
var _excluded$8 = ["text"];
|
|
@@ -4837,7 +4915,7 @@ var PageHeadingCinema = function PageHeadingCinema(_ref) {
|
|
|
4837
4915
|
};
|
|
4838
4916
|
|
|
4839
4917
|
var _templateObject$G, _templateObject2$p, _templateObject3$i, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
|
|
4840
|
-
var ImpactWrapper = /*#__PURE__*/styled__default.div(_templateObject$G || (_templateObject$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: 16 / 9;\n background-image: url('", "');\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n align-items: center;\n\n ::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--base-color-black);\n filter: opacity(40%);\n z-index: ", ";\n }\n\n @media ", " {\n & {\n aspect-ratio: 1 / 1;\n background-image: url('", "');\n background-position: center;\n display: flex;\n align-items: start;\n }\n }\n"])), function (_ref) {
|
|
4918
|
+
var ImpactWrapper = /*#__PURE__*/styled__default.div(_templateObject$G || (_templateObject$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: 16 / 9;\n @supports not (aspect-ratio: 16 / 9) {\n height: 56.25vw;\n }\n\n background-image: url('", "');\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n align-items: center;\n\n ::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--base-color-black);\n filter: opacity(40%);\n z-index: ", ";\n }\n\n @media ", " {\n & {\n aspect-ratio: 1 / 1;\n @supports not (aspect-ratio: 1 / 1) {\n height: 100vw;\n }\n background-image: url('", "');\n background-position: center;\n display: flex;\n align-items: start;\n }\n }\n"])), function (_ref) {
|
|
4841
4919
|
var bgUrlDesktop = _ref.bgUrlDesktop;
|
|
4842
4920
|
return bgUrlDesktop;
|
|
4843
4921
|
}, zIndexes.content, devices.mobile, function (_ref2) {
|
|
@@ -4846,7 +4924,7 @@ var ImpactWrapper = /*#__PURE__*/styled__default.div(_templateObject$G || (_temp
|
|
|
4846
4924
|
return bgUrlDevice ? bgUrlDevice : bgUrlDesktop;
|
|
4847
4925
|
});
|
|
4848
4926
|
var ImpactGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$p || (_templateObject2$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n z-index: ", ";\n gap: 0 var(--grid-column-gap);\n grid-template-rows: min-content min-content min-content;\n grid-template-areas:\n '. . . . . . logo logo logo logo . . . . . .'\n '. . . text text text text text text text text text text . . .'\n '. . . button button button button button button button button button button . . .';\n\n @media ", " {\n & {\n height: 100%;\n grid-template-rows: 1fr max-content 1fr;\n grid-template-areas:\n '. . . . logo logo logo logo logo logo . . . .'\n '. text text text text text text text text text text text text .'\n '. button button button button button button button button button button button button .';\n }\n }\n\n @media ", " {\n & {\n grid-template-areas:\n '. . . . . logo logo logo logo . . . . .'\n '. text text text text text text text text text text text text .'\n '. . button button button button button button button button button button . .';\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
4849
|
-
var SponsorWrapper = /*#__PURE__*/styled__default.div(_templateObject3$i || (_templateObject3$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 20px;\n right: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @media ", " {\n & {\n right: var(--grid-margin);\n }\n }\n"])), zIndexes.contentOverlay, devices.
|
|
4927
|
+
var SponsorWrapper = /*#__PURE__*/styled__default.div(_templateObject3$i || (_templateObject3$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 20px;\n right: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @media ", " {\n & {\n right: var(--grid-margin);\n }\n }\n"])), zIndexes.contentOverlay, devices.mobileAndTablet);
|
|
4850
4928
|
var LogoWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n align-self: end;\n"])));
|
|
4851
4929
|
var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: text;\n color: var(--base-color-white);\n text-align: center;\n margin-top: 40px;\n max-height: calc(2 * var(--line-height-header-3));\n overflow: hidden;\n\n h3 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n max-height: calc(3 * var(--line-height-header-3));\n }\n }\n\n @media ", " {\n & {\n margin-top: 12px;\n max-height: calc(3 * var(--line-height-header-3));\n }\n\n h3 {\n font-size: var(--font-size-header-5);\n letter-spacing: var(--letter-spacing-header-5);\n line-height: var(--line-height-header-5);\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
4852
4930
|
var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
|
|
@@ -4972,12 +5050,21 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled__default.div(_templateObj
|
|
|
4972
5050
|
}, devices.mobile);
|
|
4973
5051
|
var PromoWithTitleContainer = /*#__PURE__*/styled__default.div(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 0 32px 0;\n\n h2,\n h3 {\n margin: 0;\n }\n\n @media ", " {\n & {\n margin: 0 0 24px 0;\n }\n }\n"])), devices.mobile);
|
|
4974
5052
|
var PromoWithTitleSubtitle = /*#__PURE__*/styled__default.span(_templateObject5$b || (_templateObject5$b = /*#__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-1);\n font-weight: var(--font-weight-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n margin-bottom: var(--editorial-subtitle-margin-bottom);\n display: block;\n overflow-wrap: break-word;\n"])));
|
|
4975
|
-
var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__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: 0;\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"])))
|
|
4976
|
-
var
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
5053
|
+
var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__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: 0;\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\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: ", ";\n }\n\n &:visited {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n }\n"])), function (_ref5) {
|
|
5054
|
+
var theme = _ref5.theme;
|
|
5055
|
+
return theme.colors.black;
|
|
5056
|
+
}, function (_ref6) {
|
|
5057
|
+
var theme = _ref6.theme;
|
|
5058
|
+
return theme.colors.darkgrey;
|
|
5059
|
+
}, function (_ref7) {
|
|
5060
|
+
var theme = _ref7.theme;
|
|
5061
|
+
return theme.colors.primary;
|
|
5062
|
+
});
|
|
5063
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 32px;\n\n ", "\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref8) {
|
|
5064
|
+
var _ref8$primaryButtonTe = _ref8.primaryButtonTextLength,
|
|
5065
|
+
primaryButtonTextLength = _ref8$primaryButtonTe === void 0 ? 0 : _ref8$primaryButtonTe,
|
|
5066
|
+
_ref8$tertiaryButtonT = _ref8.tertiaryButtonTextLength,
|
|
5067
|
+
tertiaryButtonTextLength = _ref8$tertiaryButtonT === void 0 ? 0 : _ref8$tertiaryButtonT;
|
|
4981
5068
|
var isLinksLayoutColumn = primaryButtonTextLength >= LENGTH_TEXT || tertiaryButtonTextLength >= LENGTH_TEXT;
|
|
4982
5069
|
|
|
4983
5070
|
if (isLinksLayoutColumn) {
|
|
@@ -4985,11 +5072,11 @@ var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject7$7 ||
|
|
|
4985
5072
|
}
|
|
4986
5073
|
|
|
4987
5074
|
return '';
|
|
4988
|
-
}, devices.mobile, devices.tablet, function (
|
|
4989
|
-
var
|
|
4990
|
-
primaryButtonTextLength =
|
|
4991
|
-
|
|
4992
|
-
tertiaryButtonTextLength =
|
|
5075
|
+
}, devices.mobile, devices.tablet, function (_ref9) {
|
|
5076
|
+
var _ref9$primaryButtonTe = _ref9.primaryButtonTextLength,
|
|
5077
|
+
primaryButtonTextLength = _ref9$primaryButtonTe === void 0 ? 0 : _ref9$primaryButtonTe,
|
|
5078
|
+
_ref9$tertiaryButtonT = _ref9.tertiaryButtonTextLength,
|
|
5079
|
+
tertiaryButtonTextLength = _ref9$tertiaryButtonT === void 0 ? 0 : _ref9$tertiaryButtonT;
|
|
4993
5080
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET$1 || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET$1;
|
|
4994
5081
|
|
|
4995
5082
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -5114,14 +5201,50 @@ var TextOnly = function TextOnly(_ref) {
|
|
|
5114
5201
|
};
|
|
5115
5202
|
|
|
5116
5203
|
var _templateObject$M, _templateObject2$s;
|
|
5117
|
-
var Wrapper$2 = /*#__PURE__*/styled__default.div(_templateObject$M || (_templateObject$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n }\n"])), ImageAspectRatioWrapper)
|
|
5204
|
+
var Wrapper$2 = /*#__PURE__*/styled__default.div(_templateObject$M || (_templateObject$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n height: 100%;\n width: fit-content;\n\n ", " {\n height: calc(100% - 12px - var(--line-height-body-2));\n @supports not (aspect-ratio: ", ") {\n width: ", ";\n }\n }\n"])), ImageAspectRatioWrapper, function (_ref) {
|
|
5205
|
+
var _ref$aspectRatio = _ref.aspectRatio,
|
|
5206
|
+
aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
|
|
5207
|
+
return aspectRatio;
|
|
5208
|
+
}, function (_ref2) {
|
|
5209
|
+
var _ref2$aspectRatio = _ref2.aspectRatio,
|
|
5210
|
+
aspectRatio = _ref2$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref2$aspectRatio,
|
|
5211
|
+
height = _ref2.height;
|
|
5212
|
+
return "calc(calc(" + height + "px - 12px - var(--line-height-body-2)) * " + AspectRatioWidth[aspectRatio] + ")";
|
|
5213
|
+
});
|
|
5118
5214
|
var CaptionWrapper = /*#__PURE__*/styled__default.div(_templateObject2$s || (_templateObject2$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 12px;\n height: var(--line-height-body-2);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-2);\n font-weight: var(--font-weight-body-2);\n letter-spacing: var(--letter-spacing-body-2);\n line-height: var(--line-height-body-2);\n text-transform: var(--text-transform-body-2);\n word-break: var(--word-break-body-2);\n font-style: italic;\n"])));
|
|
5119
5215
|
|
|
5120
5216
|
var ImageWithCaption = function ImageWithCaption(_ref) {
|
|
5121
5217
|
var caption = _ref.caption,
|
|
5122
5218
|
children = _ref.children,
|
|
5123
5219
|
aspectRatio = _ref.aspectRatio;
|
|
5124
|
-
|
|
5220
|
+
var wrapperRef = React.useRef(null);
|
|
5221
|
+
|
|
5222
|
+
var _useState = React.useState(0),
|
|
5223
|
+
height = _useState[0],
|
|
5224
|
+
setHeight = _useState[1];
|
|
5225
|
+
|
|
5226
|
+
React.useEffect(function () {
|
|
5227
|
+
var setWrapperHeight = function setWrapperHeight() {
|
|
5228
|
+
var _wrapperRef$current;
|
|
5229
|
+
|
|
5230
|
+
return setHeight((wrapperRef == null ? void 0 : (_wrapperRef$current = wrapperRef.current) == null ? void 0 : _wrapperRef$current.offsetHeight) || 0);
|
|
5231
|
+
};
|
|
5232
|
+
|
|
5233
|
+
window.addEventListener('resize', setWrapperHeight);
|
|
5234
|
+
|
|
5235
|
+
if (wrapperRef) {
|
|
5236
|
+
setWrapperHeight();
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
return function () {
|
|
5240
|
+
return window.removeEventListener('resize', setWrapperHeight);
|
|
5241
|
+
};
|
|
5242
|
+
}, [wrapperRef]);
|
|
5243
|
+
return /*#__PURE__*/React__default.createElement(Wrapper$2, {
|
|
5244
|
+
aspectRatio: aspectRatio,
|
|
5245
|
+
ref: wrapperRef,
|
|
5246
|
+
height: height
|
|
5247
|
+
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
5125
5248
|
aspectRatio: aspectRatio
|
|
5126
5249
|
}, children), /*#__PURE__*/React__default.createElement(CaptionWrapper, null, caption));
|
|
5127
5250
|
};
|