@royaloperahouse/chord 1.8.1-a-chord-development → 1.8.1-b-chord-development
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 +28 -21
- 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 +28 -21
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/Card/Card.style.d.ts +4 -1
- package/dist/types/card.d.ts +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4955,34 +4955,37 @@ var CardContainer = /*#__PURE__*/styled__default.div(_templateObject$F || (_temp
|
|
|
4955
4955
|
var onlyShowButtonsOnHover = _ref.onlyShowButtonsOnHover;
|
|
4956
4956
|
return !onlyShowButtonsOnHover ? "height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between; \n " : '';
|
|
4957
4957
|
});
|
|
4958
|
-
var HoverContainer = /*#__PURE__*/styled__default.div(_templateObject2$p || (_templateObject2$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--editorial-spacing-hover);\n background-color: var(--base-color-
|
|
4958
|
+
var HoverContainer = /*#__PURE__*/styled__default.div(_templateObject2$p || (_templateObject2$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: var(--editorial-spacing-hover);\n background-color: var(--base-color-", ");\n position: absolute;\n width: 100%;\n z-index: ", ";\n"])), function (_ref2) {
|
|
4959
|
+
var lineColor = _ref2.lineColor;
|
|
4960
|
+
return lineColor;
|
|
4961
|
+
}, zIndexes.contentOverlay);
|
|
4959
4962
|
var ProgressContainer = /*#__PURE__*/styled__default.div(_templateObject3$h || (_templateObject3$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: -10px;\n"])));
|
|
4960
|
-
var ContentContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin-top: var(--editorial-margin-between);\n\n @media ", " {\n margin-left: ", ";\n margin-right: ", ";\n }\n"])), devices.mobile, function (
|
|
4961
|
-
var fullWidth = _ref2.fullWidth;
|
|
4962
|
-
return fullWidth ? '0' : '20px';
|
|
4963
|
-
}, function (_ref3) {
|
|
4963
|
+
var ContentContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin-top: var(--editorial-margin-between);\n\n @media ", " {\n margin-left: ", ";\n margin-right: ", ";\n }\n"])), devices.mobile, function (_ref3) {
|
|
4964
4964
|
var fullWidth = _ref3.fullWidth;
|
|
4965
4965
|
return fullWidth ? '0' : '20px';
|
|
4966
|
+
}, function (_ref4) {
|
|
4967
|
+
var fullWidth = _ref4.fullWidth;
|
|
4968
|
+
return fullWidth ? '0' : '20px';
|
|
4966
4969
|
});
|
|
4967
4970
|
var TitleContainer$2 = /*#__PURE__*/styled__default.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.mobileAndTablet);
|
|
4968
4971
|
var TitleContainerMobile = /*#__PURE__*/styled__default.div(_templateObject6$7 || (_templateObject6$7 = /*#__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.mobileAndTablet);
|
|
4969
4972
|
var TextContainer = /*#__PURE__*/styled__default.div(_templateObject7$5 || (_templateObject7$5 = /*#__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"])));
|
|
4970
4973
|
var SubtitleContainer = /*#__PURE__*/styled__default.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"])));
|
|
4971
4974
|
|
|
4972
|
-
var getButtonsOpacity = function getButtonsOpacity(
|
|
4973
|
-
var onlyShowButtonsOnHover =
|
|
4975
|
+
var getButtonsOpacity = function getButtonsOpacity(_ref5) {
|
|
4976
|
+
var onlyShowButtonsOnHover = _ref5.onlyShowButtonsOnHover;
|
|
4974
4977
|
return onlyShowButtonsOnHover ? 'opacity: 0;' : 'opacity: 1;';
|
|
4975
4978
|
};
|
|
4976
4979
|
|
|
4977
|
-
var getButtonsMinHeight = function getButtonsMinHeight(
|
|
4978
|
-
var onlyShowButtonsOnHover =
|
|
4980
|
+
var getButtonsMinHeight = function getButtonsMinHeight(_ref6) {
|
|
4981
|
+
var onlyShowButtonsOnHover = _ref6.onlyShowButtonsOnHover;
|
|
4979
4982
|
return onlyShowButtonsOnHover ? 'min-height: unset;' : 'min-height: 120px;';
|
|
4980
4983
|
};
|
|
4981
4984
|
|
|
4982
|
-
var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n ", ";\n margin-left: ", ";\n margin-right: ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), getButtonsOpacity, function (
|
|
4983
|
-
var size =
|
|
4984
|
-
primaryButtonTextLength =
|
|
4985
|
-
tertiaryButtonTextLength =
|
|
4985
|
+
var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n gap: 16px;\n margin-top: var(--editorial-margin-between);\n\n ", "\n\n @media ", " {\n ", ";\n margin-left: ", ";\n margin-right: ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n ", ";\n opacity: 1 !important;\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), getButtonsOpacity, function (_ref7) {
|
|
4986
|
+
var size = _ref7.size,
|
|
4987
|
+
primaryButtonTextLength = _ref7.primaryButtonTextLength,
|
|
4988
|
+
tertiaryButtonTextLength = _ref7.tertiaryButtonTextLength;
|
|
4986
4989
|
var isLinksLayoutColumn = size === 'small' ? primaryButtonTextLength >= LENGTH_SMALL_TEXT || tertiaryButtonTextLength >= LENGTH_SMALL_TEXT : primaryButtonTextLength >= LENGTH_LARGE_TEXT || tertiaryButtonTextLength >= LENGTH_LARGE_TEXT;
|
|
4987
4990
|
|
|
4988
4991
|
if (isLinksLayoutColumn) {
|
|
@@ -4990,15 +4993,15 @@ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject9$3 ||
|
|
|
4990
4993
|
}
|
|
4991
4994
|
|
|
4992
4995
|
return '';
|
|
4993
|
-
}, devices.mobile, getButtonsMinHeight, function (
|
|
4994
|
-
var fullWidth = _ref7.fullWidth;
|
|
4995
|
-
return fullWidth ? '0' : '20px';
|
|
4996
|
-
}, function (_ref8) {
|
|
4996
|
+
}, devices.mobile, getButtonsMinHeight, function (_ref8) {
|
|
4997
4997
|
var fullWidth = _ref8.fullWidth;
|
|
4998
4998
|
return fullWidth ? '0' : '20px';
|
|
4999
|
-
},
|
|
5000
|
-
var
|
|
5001
|
-
|
|
4999
|
+
}, function (_ref9) {
|
|
5000
|
+
var fullWidth = _ref9.fullWidth;
|
|
5001
|
+
return fullWidth ? '0' : '20px';
|
|
5002
|
+
}, devices.tablet, getButtonsMinHeight, function (_ref10) {
|
|
5003
|
+
var primaryButtonTextLength = _ref10.primaryButtonTextLength,
|
|
5004
|
+
tertiaryButtonTextLength = _ref10.tertiaryButtonTextLength;
|
|
5002
5005
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET;
|
|
5003
5006
|
|
|
5004
5007
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -5060,7 +5063,9 @@ var Card = function Card(_ref) {
|
|
|
5060
5063
|
_ref$fullWidth = _ref.fullWidth,
|
|
5061
5064
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
5062
5065
|
_ref$onlyShowButtonsO = _ref.onlyShowButtonsOnHover,
|
|
5063
|
-
onlyShowButtonsOnHover = _ref$onlyShowButtonsO === void 0 ? true : _ref$onlyShowButtonsO
|
|
5066
|
+
onlyShowButtonsOnHover = _ref$onlyShowButtonsO === void 0 ? true : _ref$onlyShowButtonsO,
|
|
5067
|
+
_ref$hoverLineColor = _ref.hoverLineColor,
|
|
5068
|
+
hoverLineColor = _ref$hoverLineColor === void 0 ? exports.Colors.Core : _ref$hoverLineColor;
|
|
5064
5069
|
|
|
5065
5070
|
var truncate = function truncate(str, n) {
|
|
5066
5071
|
return str.length >= n ? str.substr(0, n) : str;
|
|
@@ -5121,6 +5126,7 @@ var Card = function Card(_ref) {
|
|
|
5121
5126
|
flexGrow: onlyShowButtonsOnHover ? 'unset' : 1
|
|
5122
5127
|
}
|
|
5123
5128
|
}, hovered && /*#__PURE__*/React__default.createElement(HoverContainer, {
|
|
5129
|
+
lineColor: hoverLineColor,
|
|
5124
5130
|
"data-testid": "hovercontainer"
|
|
5125
5131
|
}), /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
5126
5132
|
aspectRatio: exports.AspectRatio['4:3']
|
|
@@ -5189,6 +5195,7 @@ var Cards = function Cards(_ref) {
|
|
|
5189
5195
|
tags: card.tags,
|
|
5190
5196
|
withContinueWatching: card.withContinueWatching,
|
|
5191
5197
|
onlyShowButtonsOnHover: card.onlyShowButtonsOnHover,
|
|
5198
|
+
hoverLineColor: card.hoverLineColor,
|
|
5192
5199
|
fullWidth: card.fullWidth
|
|
5193
5200
|
}));
|
|
5194
5201
|
}));
|