luna-one 3.1.499 → 3.1.501
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/dist/luna/components/ProductSummary/ProductSummaryMethods.js +1 -1
- package/dist/luna/featurettes/ProductsPackage/ProductsPackage.js +4 -4
- package/dist/luna/featurettes/ProductsPackage/ProductsPackage.scss +5 -0
- package/dist/luna/utils/formatSpecialCharText.js +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ var SummaryCard = function SummaryCard(summaryCard, labels, version) {
|
|
|
59
59
|
}, labels === null || labels === void 0 ? void 0 : labels.productLineLabel), /*#__PURE__*/_react["default"].createElement("h4", {
|
|
60
60
|
className: "product-summary-card--container__line-text",
|
|
61
61
|
dangerouslySetInnerHTML: (0, _formatSpecialCharText["default"])(productLine)
|
|
62
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
})), regions && (regions === null || regions === void 0 ? void 0 : regions.length) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
63
|
className: "product-summary-card--container__regions"
|
|
64
64
|
}, (labels === null || labels === void 0 ? void 0 : labels.regionsLabel) && /*#__PURE__*/_react["default"].createElement("h1", {
|
|
65
65
|
className: "product-summary-card--container__regions-label"
|
|
@@ -74,7 +74,7 @@ var Image = (0, _component["default"])(function () {
|
|
|
74
74
|
var ProductsPackage = function ProductsPackage(_ref) {
|
|
75
75
|
var content = _ref.content;
|
|
76
76
|
|
|
77
|
-
var _useState = (0, _react.useState)(
|
|
77
|
+
var _useState = (0, _react.useState)(575),
|
|
78
78
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
79
79
|
heightOfTallestCard = _useState2[0],
|
|
80
80
|
setHeightOfTallestCard = _useState2[1];
|
|
@@ -110,16 +110,16 @@ var ProductsPackage = function ProductsPackage(_ref) {
|
|
|
110
110
|
return previousValue + currentValue;
|
|
111
111
|
}, startingValue);
|
|
112
112
|
|
|
113
|
-
if ((_cards === null || _cards === void 0 ? void 0 : _cards.length) > 3 && tallestCard >
|
|
113
|
+
if ((_cards === null || _cards === void 0 ? void 0 : _cards.length) > 3 && tallestCard > 575 && width > 600 && width !== 0) {
|
|
114
114
|
setHeightOfTallestCard(tallestCard + 70);
|
|
115
|
-
} else if (tallestCard >
|
|
115
|
+
} else if (tallestCard > 575 && width > 600 && width !== 0) {
|
|
116
116
|
setHeightOfTallestCard(tallestCard);
|
|
117
117
|
} else if (width <= 600 && width !== 0) {
|
|
118
118
|
var _document2, _document2$querySelec;
|
|
119
119
|
|
|
120
120
|
setHeightOfTallestCard(mobileHeight + ((_document2 = document) === null || _document2 === void 0 ? void 0 : (_document2$querySelec = _document2.querySelector(".mxp-products-package-container__right-section")) === null || _document2$querySelec === void 0 ? void 0 : _document2$querySelec.clientHeight));
|
|
121
121
|
} else {
|
|
122
|
-
setHeightOfTallestCard(
|
|
122
|
+
setHeightOfTallestCard(575);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, [width]);
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&--card-container {
|
|
154
|
+
height: 100%;
|
|
154
155
|
display: flex;
|
|
155
156
|
flex-direction: row;
|
|
156
157
|
scrollbar-gutter: stable;
|
|
@@ -172,6 +173,10 @@
|
|
|
172
173
|
min-width: 252px;
|
|
173
174
|
margin: 0px 40px 20px 0px;
|
|
174
175
|
|
|
176
|
+
&__image {
|
|
177
|
+
overflow: visible !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
&__body {
|
|
176
181
|
background-color: $white;
|
|
177
182
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var formatSpecialCharText = function formatSpecialCharText(text) {
|
|
9
|
-
if (text) {
|
|
9
|
+
if (text && typeof text === "string") {
|
|
10
10
|
var _formattedText;
|
|
11
11
|
|
|
12
12
|
var formattedText = text === null || text === void 0 ? void 0 : text.split(/(™)|(©)|(®)/g);
|