luna-one 3.1.467 → 3.1.470
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.
|
@@ -92,7 +92,7 @@ var ComparisonToolTip = function ComparisonToolTip(_ref) {
|
|
|
92
92
|
},
|
|
93
93
|
"aria-label": "More info on ".concat(column === null || column === void 0 ? void 0 : column.columnName)
|
|
94
94
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
-
className: "ter-comparison-table__tooltip-text ".concat(tooltipOpen === true ?
|
|
95
|
+
className: "ter-comparison-table__tooltip-text ".concat(tooltipOpen === true ? "ter-comparison-table__tooltip--open" : ""),
|
|
96
96
|
style: tooltipPlacement
|
|
97
97
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
98
|
className: "ter-comparison-table__tooltip-inner"
|
|
@@ -157,7 +157,7 @@ exports.renderProductDetailsColumn = renderProductDetailsColumn;
|
|
|
157
157
|
var displayHiddenColumn = function displayHiddenColumn(product, showImages) {
|
|
158
158
|
var _product$image3, _product$image4, _product$productLink4, _product$productLink5;
|
|
159
159
|
|
|
160
|
-
// this function returns a copy of the data to the table, purely for sizing the <th> element wrapping it.
|
|
160
|
+
// this function returns a copy of the data to the table, purely for sizing the <th> element wrapping it.
|
|
161
161
|
// Without this, the height of the TR isn't calculated properly - the displayed <th> content is position: sticky.
|
|
162
162
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
163
163
|
className: "ter-comparison-table__comparison-cell ter-comparison-table__product-info-hidden ".concat(product !== null && product !== void 0 && product.productTag ? "ter-comparison-table__product-info--with-tag" : "")
|
|
@@ -178,10 +178,22 @@ var displayHiddenColumn = function displayHiddenColumn(product, showImages) {
|
|
|
178
178
|
|
|
179
179
|
var checkMatchingProductDetail = function checkMatchingProductDetail(productAttribute, index, comparisonColumnGroups) {
|
|
180
180
|
var allColumns = [];
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
|
|
182
|
+
if (comparisonColumnGroups && comparisonColumnGroups !== null && comparisonColumnGroups !== void 0 && comparisonColumnGroups.length) {
|
|
183
|
+
comparisonColumnGroups === null || comparisonColumnGroups === void 0 ? void 0 : comparisonColumnGroups.forEach(function (column) {
|
|
184
|
+
if (column && column !== null && column !== void 0 && column.comparisonColumns) {
|
|
185
|
+
allColumns.push.apply(allColumns, (0, _toConsumableArray2["default"])(column === null || column === void 0 ? void 0 : column.comparisonColumns));
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (productAttribute !== null && productAttribute !== void 0 && productAttribute.name && allColumns && allColumns !== null && allColumns !== void 0 && allColumns.length) {
|
|
191
|
+
var _allColumns$index;
|
|
192
|
+
|
|
193
|
+
return (productAttribute === null || productAttribute === void 0 ? void 0 : productAttribute.name) === ((_allColumns$index = allColumns[index]) === null || _allColumns$index === void 0 ? void 0 : _allColumns$index.columnName) ? true : false;
|
|
194
|
+
} else {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
185
197
|
};
|
|
186
198
|
|
|
187
199
|
var renderProductDetails = function renderProductDetails(productAttributes, comparisonColumnGroups) {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
&.right {
|
|
27
27
|
@media screen and (min-width: $breakpoint-sm) {
|
|
28
28
|
.nav-entries {
|
|
29
|
-
max-width:
|
|
29
|
+
max-width: 260px;
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
&.right {
|
|
80
80
|
.nav-entry {
|
|
81
81
|
text-align: left;
|
|
82
|
+
padding: 10px 10px;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
|
|
@@ -202,12 +203,12 @@
|
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
&.left {
|
|
205
|
-
margin-right:
|
|
206
|
+
margin-right: 30px;
|
|
206
207
|
border-right-width: 6px;
|
|
207
208
|
border-right-style: solid;
|
|
208
209
|
|
|
209
210
|
.nav-entry {
|
|
210
|
-
width:
|
|
211
|
+
width: 260px;
|
|
211
212
|
border-right-width: 6px;
|
|
212
213
|
border-right-style: solid;
|
|
213
214
|
justify-content: flex-start;
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
border-left-style: solid;
|
|
228
229
|
|
|
229
230
|
.nav-entry {
|
|
230
|
-
width:
|
|
231
|
+
width: 260px;
|
|
231
232
|
border-left-width: 6px;
|
|
232
233
|
transform: translateX(-6px);
|
|
233
234
|
border-left-style: solid;
|
|
@@ -449,7 +450,7 @@
|
|
|
449
450
|
|
|
450
451
|
&.left {
|
|
451
452
|
@media screen and (min-width: $breakpoint-sm) {
|
|
452
|
-
padding-right:
|
|
453
|
+
padding-right: 30px;
|
|
453
454
|
|
|
454
455
|
.nav-entry.active .nav-thumbnail:before {
|
|
455
456
|
right: -22px;
|
|
@@ -703,8 +704,31 @@
|
|
|
703
704
|
overflow: hidden;
|
|
704
705
|
|
|
705
706
|
.ter-block-list-items {
|
|
707
|
+
margin: 5px auto;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.ter-bounded-cards {
|
|
706
711
|
margin: 0 auto;
|
|
707
|
-
max-width:
|
|
712
|
+
max-width: 822px !important;
|
|
713
|
+
display: flex;
|
|
714
|
+
flex-wrap: wrap;
|
|
715
|
+
@media screen and (max-width: $breakpoint-md) {
|
|
716
|
+
max-width: 720px !important;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
@media screen and (max-width: 1200px) {
|
|
720
|
+
max-width: 650px !important;
|
|
721
|
+
grid-gap: 20px;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
@media screen and (max-width: 1100px) {
|
|
725
|
+
max-width: 550px !important;
|
|
726
|
+
grid-gap: 36px;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
@media screen and (max-width: $breakpoint-sm) {
|
|
730
|
+
margin: 5px;
|
|
731
|
+
}
|
|
708
732
|
}
|
|
709
733
|
|
|
710
734
|
.ter-bounded-card {
|
|
@@ -714,7 +738,7 @@
|
|
|
714
738
|
|
|
715
739
|
@media screen and (max-width: $breakpoint-md) {
|
|
716
740
|
min-width: 200px;
|
|
717
|
-
max-width:
|
|
741
|
+
max-width: 250px;
|
|
718
742
|
}
|
|
719
743
|
|
|
720
744
|
@media screen and (max-width: $breakpoint-sm) {
|
|
@@ -6,10 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var formatSpecialCharText = function formatSpecialCharText(text) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
if (text && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
10
|
+
var _DOMParser, _DOMParser$parseFromS, _DOMParser$parseFromS2;
|
|
11
|
+
|
|
12
|
+
var formattedText = text.replace('©', '<sup>©</sup>').replace('®', '<sup>®</sup>').replace('™', '<sup>™</sup>');
|
|
13
|
+
return {
|
|
14
|
+
__html: (_DOMParser = new DOMParser()) === null || _DOMParser === void 0 ? void 0 : (_DOMParser$parseFromS = _DOMParser.parseFromString(formattedText, "text/html")) === null || _DOMParser$parseFromS === void 0 ? void 0 : (_DOMParser$parseFromS2 = _DOMParser$parseFromS.body) === null || _DOMParser$parseFromS2 === void 0 ? void 0 : _DOMParser$parseFromS2.innerHTML
|
|
15
|
+
};
|
|
16
|
+
}
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
var _default = formatSpecialCharText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luna-one",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.470",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17.0.2",
|
|
6
6
|
"react-dom": "^17.0.2",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-scroll": "^1.8.7",
|
|
52
52
|
"react-slidedown": "^2.4.7",
|
|
53
53
|
"smoothscroll-polyfill": "^0.4.4",
|
|
54
|
-
"terra-one": "^3.0.
|
|
54
|
+
"terra-one": "^3.0.155"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"start": "start-storybook -p 9009 -s public",
|