@royaloperahouse/chord 0.5.4 → 0.5.5
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 -0
- package/dist/chord.cjs.development.js +7 -8
- 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 +1 -1
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2424,19 +2424,17 @@ var SectionSplitter = function SectionSplitter(_ref) {
|
|
|
2424
2424
|
}, /*#__PURE__*/React__default.createElement(Splitter, null)));
|
|
2425
2425
|
};
|
|
2426
2426
|
|
|
2427
|
-
var AspectRatio;
|
|
2428
|
-
|
|
2429
2427
|
(function (AspectRatio) {
|
|
2430
2428
|
AspectRatio["1:1"] = "1 / 1";
|
|
2431
2429
|
AspectRatio["3:4"] = "3 / 4";
|
|
2432
2430
|
AspectRatio["4:3"] = "4 / 3";
|
|
2433
2431
|
AspectRatio["16:9"] = "16 / 9";
|
|
2434
|
-
})(AspectRatio || (AspectRatio = {}));
|
|
2432
|
+
})(exports.AspectRatio || (exports.AspectRatio = {}));
|
|
2435
2433
|
|
|
2436
2434
|
var _templateObject$d;
|
|
2437
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) {
|
|
2438
2436
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
2439
|
-
aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
|
|
2437
|
+
aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
|
|
2440
2438
|
return aspectRatio;
|
|
2441
2439
|
});
|
|
2442
2440
|
|
|
@@ -4378,7 +4376,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
4378
4376
|
return /*#__PURE__*/React__default.createElement(swiperReact_js.SwiperSlide, {
|
|
4379
4377
|
key: image.key
|
|
4380
4378
|
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
4381
|
-
aspectRatio: AspectRatio['4:3']
|
|
4379
|
+
aspectRatio: exports.AspectRatio['4:3']
|
|
4382
4380
|
}, /*#__PURE__*/React__default.createElement("img", Object.assign({}, image))));
|
|
4383
4381
|
}))));
|
|
4384
4382
|
};
|
|
@@ -4644,7 +4642,7 @@ var Card = function Card(_ref) {
|
|
|
4644
4642
|
}, hovered && /*#__PURE__*/React__default.createElement(HoverContainer, {
|
|
4645
4643
|
"data-testid": "hovercontainer"
|
|
4646
4644
|
}), /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
4647
|
-
aspectRatio: AspectRatio['4:3']
|
|
4645
|
+
aspectRatio: exports.AspectRatio['4:3']
|
|
4648
4646
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
4649
4647
|
src: image,
|
|
4650
4648
|
alt: "test"
|
|
@@ -4748,7 +4746,7 @@ var Editorial = function Editorial(_ref) {
|
|
|
4748
4746
|
"data-testid": "image-wrapper",
|
|
4749
4747
|
imageToLeft: imageToLeft
|
|
4750
4748
|
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
4751
|
-
aspectRatio: AspectRatio['1:1']
|
|
4749
|
+
aspectRatio: exports.AspectRatio['1:1']
|
|
4752
4750
|
}, children)), /*#__PURE__*/React__default.createElement(EditorialTextWrapper, {
|
|
4753
4751
|
"data-testid": "text-wrapper",
|
|
4754
4752
|
imageToLeft: imageToLeft
|
|
@@ -5045,7 +5043,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
5045
5043
|
"data-testid": "image-wrapper",
|
|
5046
5044
|
imageToLeft: imageToLeft
|
|
5047
5045
|
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
5048
|
-
aspectRatio: AspectRatio['4:3']
|
|
5046
|
+
aspectRatio: exports.AspectRatio['4:3']
|
|
5049
5047
|
}, children)), /*#__PURE__*/React__default.createElement(PromoWithTitleContentWrapper, {
|
|
5050
5048
|
"data-testid": "content-wrapper",
|
|
5051
5049
|
imageToLeft: imageToLeft
|
|
@@ -6027,6 +6025,7 @@ exports.HighlightsCarouselCinema = HighlightsCinema;
|
|
|
6027
6025
|
exports.HighlightsCarouselCore = HighlightsCore;
|
|
6028
6026
|
exports.HighlightsCarouselStream = HighlightsStream;
|
|
6029
6027
|
exports.Icon = Icon;
|
|
6028
|
+
exports.ImageAspectRatioWrapper = ImageAspectRatioWrapper;
|
|
6030
6029
|
exports.ImageWithCaption = ImageWithCaption;
|
|
6031
6030
|
exports.Navigation = Navigation;
|
|
6032
6031
|
exports.Overline = Overline;
|