@asantemedia-org/edwardsvacuum-design-system 1.6.38 → 1.6.40
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/index.css +31 -0
- package/dist/index.esm.css +31 -0
- package/dist/index.esm.js +16 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +59 -53
- package/dist/index.js.map +1 -1
- package/dist/index.scss +31 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -334,6 +334,23 @@
|
|
|
334
334
|
.card-module__cmp-card--type-product_details__product-info___5L009 {
|
|
335
335
|
position: relative;
|
|
336
336
|
}
|
|
337
|
+
.card-module__cmp-card--type-product_details__header___Vb3-U {
|
|
338
|
+
margin-bottom: 1rem;
|
|
339
|
+
}
|
|
340
|
+
.card-module__cmp-card--type-product_details__header__title___4KSqX {
|
|
341
|
+
font-size: 1.5rem;
|
|
342
|
+
font-weight: 600;
|
|
343
|
+
margin-bottom: 0.5rem;
|
|
344
|
+
}
|
|
345
|
+
.card-module__cmp-card--type-product_details__header__product-code___zf7yq {
|
|
346
|
+
font-size: 0.875rem;
|
|
347
|
+
color: #666;
|
|
348
|
+
margin-bottom: 1rem;
|
|
349
|
+
}
|
|
350
|
+
.card-module__cmp-card--type-product_details__header__product-image___Kyy35 {
|
|
351
|
+
max-width: 100%;
|
|
352
|
+
height: auto;
|
|
353
|
+
}
|
|
337
354
|
.card-module__cmp-card--type-product_details__spares-list___VQ31R {
|
|
338
355
|
position: relative;
|
|
339
356
|
}
|
|
@@ -362,6 +379,20 @@
|
|
|
362
379
|
grid-template-columns: repeat(1, 1fr);
|
|
363
380
|
}
|
|
364
381
|
}
|
|
382
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-specification-list___tIfSl li {
|
|
383
|
+
margin-bottom: 0.75rem;
|
|
384
|
+
}
|
|
385
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-specification-list___tIfSl li strong {
|
|
386
|
+
color: #333;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.card-module__folding-specification-holder___OtcQQ {
|
|
390
|
+
margin-bottom: 1rem;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.card-module__folding-spares-holder___OhMpO {
|
|
394
|
+
margin-bottom: 1rem;
|
|
395
|
+
}
|
|
365
396
|
.accordion-section__header {
|
|
366
397
|
cursor: pointer;
|
|
367
398
|
-webkit-user-select: none;
|
package/dist/index.esm.css
CHANGED
|
@@ -334,6 +334,23 @@
|
|
|
334
334
|
.card-module__cmp-card--type-product_details__product-info___5L009 {
|
|
335
335
|
position: relative;
|
|
336
336
|
}
|
|
337
|
+
.card-module__cmp-card--type-product_details__header___Vb3-U {
|
|
338
|
+
margin-bottom: 1rem;
|
|
339
|
+
}
|
|
340
|
+
.card-module__cmp-card--type-product_details__header__title___4KSqX {
|
|
341
|
+
font-size: 1.5rem;
|
|
342
|
+
font-weight: 600;
|
|
343
|
+
margin-bottom: 0.5rem;
|
|
344
|
+
}
|
|
345
|
+
.card-module__cmp-card--type-product_details__header__product-code___zf7yq {
|
|
346
|
+
font-size: 0.875rem;
|
|
347
|
+
color: #666;
|
|
348
|
+
margin-bottom: 1rem;
|
|
349
|
+
}
|
|
350
|
+
.card-module__cmp-card--type-product_details__header__product-image___Kyy35 {
|
|
351
|
+
max-width: 100%;
|
|
352
|
+
height: auto;
|
|
353
|
+
}
|
|
337
354
|
.card-module__cmp-card--type-product_details__spares-list___VQ31R {
|
|
338
355
|
position: relative;
|
|
339
356
|
}
|
|
@@ -362,6 +379,20 @@
|
|
|
362
379
|
grid-template-columns: repeat(1, 1fr);
|
|
363
380
|
}
|
|
364
381
|
}
|
|
382
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-specification-list___tIfSl li {
|
|
383
|
+
margin-bottom: 0.75rem;
|
|
384
|
+
}
|
|
385
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-specification-list___tIfSl li strong {
|
|
386
|
+
color: #333;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.card-module__folding-specification-holder___OtcQQ {
|
|
390
|
+
margin-bottom: 1rem;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.card-module__folding-spares-holder___OhMpO {
|
|
394
|
+
margin-bottom: 1rem;
|
|
395
|
+
}
|
|
365
396
|
.accordion-section__header {
|
|
366
397
|
cursor: pointer;
|
|
367
398
|
-webkit-user-select: none;
|
package/dist/index.esm.js
CHANGED
|
@@ -162,7 +162,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
162
162
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
var styles$2 = {"cmp-card":"card-module__cmp-card___45x9k","cmp-card__link":"card-module__cmp-card__link___OdszC","cmp-card__content-wrapper":"card-module__cmp-card__content-wrapper___gh335","cmp-card__content-category-wrapper":"card-module__cmp-card__content-category-wrapper___2vOjQ","cmp-card__content-category-wrapper__colour-edwards-red":"card-module__cmp-card__content-category-wrapper__colour-edwards-red___DYmt8","cmp-card__city-country":"card-module__cmp-card__city-country___dI13-","cmp-card__image-wrapper":"card-module__cmp-card__image-wrapper___IhPHw","placeholderImage":"card-module__placeholderImage___AXOh5","cmp-card--type-card-overlay":"card-module__cmp-card--type-card-overlay___344ul","cmp-card__title-wrapper":"card-module__cmp-card__title-wrapper___XHfZg","cmp-card__date":"card-module__cmp-card__date___7w-Ka","cmp-card__title":"card-module__cmp-card__title___cFKG8","cmp-card__footer":"card-module__cmp-card__footer___xcNXM","cmp-card--type-card-no-image":"card-module__cmp-card--type-card-no-image___G75ye","cmp-card--type-card-product":"card-module__cmp-card--type-card-product___IfqTr","cmp-card--type-card-product__wrapper":"card-module__cmp-card--type-card-product__wrapper___kulaR","cmp-card--type-card-product__image":"card-module__cmp-card--type-card-product__image___Bkb0A","cmp-card--type-card-product__meta":"card-module__cmp-card--type-card-product__meta___a7Tzc","cmp-card--type-card-product__title":"card-module__cmp-card--type-card-product__title___0JMQp","cmp-card--type-card-product__cta":"card-module__cmp-card--type-card-product__cta___qDSNo","cmp-card--type-card-product__prices":"card-module__cmp-card--type-card-product__prices___KWPS7","cmp-card--type-card-product__prices--login":"card-module__cmp-card--type-card-product__prices--login___gMhTo","show_prices":"card-module__show_prices___gjVhn","cmp-card--type-card-panel":"card-module__cmp-card--type-card-panel___95jYv","cmp-card__footer--color-malachite":"card-module__cmp-card__footer--color-malachite___jEnvy","cmp-card__footer--color-amethyst":"card-module__cmp-card__footer--color-amethyst___N55PL","cmp-card__footer--color-smokey-quartz-bright":"card-module__cmp-card__footer--color-smokey-quartz-bright___1mqyn","cmp-card__footer--color-olivine-bright":"card-module__cmp-card__footer--color-olivine-bright___O2urI","cmp-card--type-careers":"card-module__cmp-card--type-careers___Wqzcf","cmp-card--type-product_details":"card-module__cmp-card--type-product_details___vsNOc","cmp-card--type-product_details__product-info":"card-module__cmp-card--type-product_details__product-info___5L009","cmp-card--type-product_details__spares-list":"card-module__cmp-card--type-product_details__spares-list___VQ31R","folding-spares-list":"card-module__folding-spares-list___ls5-n"};
|
|
165
|
+
var styles$2 = {"cmp-card":"card-module__cmp-card___45x9k","cmp-card__link":"card-module__cmp-card__link___OdszC","cmp-card__content-wrapper":"card-module__cmp-card__content-wrapper___gh335","cmp-card__content-category-wrapper":"card-module__cmp-card__content-category-wrapper___2vOjQ","cmp-card__content-category-wrapper__colour-edwards-red":"card-module__cmp-card__content-category-wrapper__colour-edwards-red___DYmt8","cmp-card__city-country":"card-module__cmp-card__city-country___dI13-","cmp-card__image-wrapper":"card-module__cmp-card__image-wrapper___IhPHw","placeholderImage":"card-module__placeholderImage___AXOh5","cmp-card--type-card-overlay":"card-module__cmp-card--type-card-overlay___344ul","cmp-card__title-wrapper":"card-module__cmp-card__title-wrapper___XHfZg","cmp-card__date":"card-module__cmp-card__date___7w-Ka","cmp-card__title":"card-module__cmp-card__title___cFKG8","cmp-card__footer":"card-module__cmp-card__footer___xcNXM","cmp-card--type-card-no-image":"card-module__cmp-card--type-card-no-image___G75ye","cmp-card--type-card-product":"card-module__cmp-card--type-card-product___IfqTr","cmp-card--type-card-product__wrapper":"card-module__cmp-card--type-card-product__wrapper___kulaR","cmp-card--type-card-product__image":"card-module__cmp-card--type-card-product__image___Bkb0A","cmp-card--type-card-product__meta":"card-module__cmp-card--type-card-product__meta___a7Tzc","cmp-card--type-card-product__title":"card-module__cmp-card--type-card-product__title___0JMQp","cmp-card--type-card-product__cta":"card-module__cmp-card--type-card-product__cta___qDSNo","cmp-card--type-card-product__prices":"card-module__cmp-card--type-card-product__prices___KWPS7","cmp-card--type-card-product__prices--login":"card-module__cmp-card--type-card-product__prices--login___gMhTo","show_prices":"card-module__show_prices___gjVhn","cmp-card--type-card-panel":"card-module__cmp-card--type-card-panel___95jYv","cmp-card__footer--color-malachite":"card-module__cmp-card__footer--color-malachite___jEnvy","cmp-card__footer--color-amethyst":"card-module__cmp-card__footer--color-amethyst___N55PL","cmp-card__footer--color-smokey-quartz-bright":"card-module__cmp-card__footer--color-smokey-quartz-bright___1mqyn","cmp-card__footer--color-olivine-bright":"card-module__cmp-card__footer--color-olivine-bright___O2urI","cmp-card--type-careers":"card-module__cmp-card--type-careers___Wqzcf","cmp-card--type-product_details":"card-module__cmp-card--type-product_details___vsNOc","cmp-card--type-product_details__product-info":"card-module__cmp-card--type-product_details__product-info___5L009","cmp-card--type-product_details__header":"card-module__cmp-card--type-product_details__header___Vb3-U","cmp-card--type-product_details__header__title":"card-module__cmp-card--type-product_details__header__title___4KSqX","cmp-card--type-product_details__header__product-code":"card-module__cmp-card--type-product_details__header__product-code___zf7yq","cmp-card--type-product_details__header__product-image":"card-module__cmp-card--type-product_details__header__product-image___Kyy35","cmp-card--type-product_details__spares-list":"card-module__cmp-card--type-product_details__spares-list___VQ31R","folding-spares-list":"card-module__folding-spares-list___ls5-n","folding-specification-list":"card-module__folding-specification-list___tIfSl","folding-specification-holder":"card-module__folding-specification-holder___OtcQQ","folding-spares-holder":"card-module__folding-spares-holder___OhMpO"};
|
|
166
166
|
|
|
167
167
|
function getDefaultExportFromCjs (x) {
|
|
168
168
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -454,8 +454,8 @@ var ProductCard = function (_a) {
|
|
|
454
454
|
// Maximum spares to render to prevent browser freeze
|
|
455
455
|
var MAX_SPARES_TO_RENDER = 20;
|
|
456
456
|
var ProductDetailsCard = function (_a) {
|
|
457
|
-
|
|
458
|
-
title = _a.title;
|
|
457
|
+
_a.className;
|
|
458
|
+
var title = _a.title;
|
|
459
459
|
_a.imageUrl;
|
|
460
460
|
var imageAlt = _a.imageAlt;
|
|
461
461
|
_a.placeholder;
|
|
@@ -468,7 +468,7 @@ var ProductDetailsCard = function (_a) {
|
|
|
468
468
|
// Limit the number of spares to prevent freeze
|
|
469
469
|
var sparesToRender = hit.spares.slice(0, MAX_SPARES_TO_RENDER);
|
|
470
470
|
return /*#__PURE__*/React.createElement("ul", {
|
|
471
|
-
className: "folding-spares-list"
|
|
471
|
+
className: getStyle$1("folding-spares-list")
|
|
472
472
|
}, sparesToRender.map(function (spare, index) {
|
|
473
473
|
// Safety check - skip if spare is not a valid object
|
|
474
474
|
if (!spare || typeof spare !== 'object') return null;
|
|
@@ -476,7 +476,7 @@ var ProductDetailsCard = function (_a) {
|
|
|
476
476
|
key: spare.objectID || spare.code || "spare-".concat(index)
|
|
477
477
|
}, /*#__PURE__*/React.createElement(ProductCard, {
|
|
478
478
|
cardStyle: "type-card-product",
|
|
479
|
-
className: "cmp-card",
|
|
479
|
+
className: getStyle$1("cmp-card"),
|
|
480
480
|
title: spare.name || 'Spare Part',
|
|
481
481
|
imageUrl: spare['img-product'] || spare.image || '',
|
|
482
482
|
imageAlt: spare.name || 'Spare Part',
|
|
@@ -486,28 +486,28 @@ var ProductDetailsCard = function (_a) {
|
|
|
486
486
|
cta: "Go to webshop"
|
|
487
487
|
}));
|
|
488
488
|
}), hit.spares.length > MAX_SPARES_TO_RENDER && /*#__PURE__*/React.createElement("li", {
|
|
489
|
-
className: "folding-spares-list__more"
|
|
489
|
+
className: getStyle$1("folding-spares-list__more")
|
|
490
490
|
}, "+", hit.spares.length - MAX_SPARES_TO_RENDER, " more items"));
|
|
491
491
|
};
|
|
492
492
|
return /*#__PURE__*/React.createElement("div", {
|
|
493
|
-
className:
|
|
493
|
+
className: getStyle$1("cmp-card--type-product_details")
|
|
494
494
|
}, /*#__PURE__*/React.createElement("div", {
|
|
495
|
-
className: "cmp-card--type-product_details__product-info"
|
|
495
|
+
className: getStyle$1("cmp-card--type-product_details__product-info")
|
|
496
496
|
}, /*#__PURE__*/React.createElement("div", {
|
|
497
|
-
className: "cmp-card--type-product_details__header"
|
|
497
|
+
className: getStyle$1("cmp-card--type-product_details__header")
|
|
498
498
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
499
|
-
className: "cmp-card--type-product_details__header__title"
|
|
499
|
+
className: getStyle$1("cmp-card--type-product_details__header__title")
|
|
500
500
|
}, title), /*#__PURE__*/React.createElement("p", {
|
|
501
|
-
className: "cmp-card--type-product_details__header__product-code"
|
|
501
|
+
className: getStyle$1("cmp-card--type-product_details__header__product-code")
|
|
502
502
|
}, "Product:", hit.code), /*#__PURE__*/React.createElement("img", {
|
|
503
503
|
src: hit.image,
|
|
504
504
|
alt: imageAlt,
|
|
505
|
-
className: "cmp-card--type-product_details__header__product-image"
|
|
505
|
+
className: getStyle$1("cmp-card--type-product_details__header__product-image")
|
|
506
506
|
})), facets && /*#__PURE__*/React.createElement(AccordionSection, {
|
|
507
507
|
title: "Specifications",
|
|
508
|
-
className: "folding-specification-holder"
|
|
508
|
+
className: getStyle$1("folding-specification-holder")
|
|
509
509
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
510
|
-
className: "folding-specification-list"
|
|
510
|
+
className: getStyle$1("folding-specification-list")
|
|
511
511
|
}, facets && facets.map(function (facet) {
|
|
512
512
|
return hit[facet.name] && /*#__PURE__*/React.createElement("li", {
|
|
513
513
|
key: facet.name
|
|
@@ -517,10 +517,10 @@ var ProductDetailsCard = function (_a) {
|
|
|
517
517
|
}
|
|
518
518
|
}) : hit[facet.name]);
|
|
519
519
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
520
|
-
className: "cmp-card--type-product_details__spares-list"
|
|
520
|
+
className: getStyle$1("cmp-card--type-product_details__spares-list")
|
|
521
521
|
}, hit.spares && hit.spares.length > 0 && /*#__PURE__*/React.createElement(AccordionSection, {
|
|
522
522
|
title: "Spares & Parts",
|
|
523
|
-
className: "folding-spares-holder",
|
|
523
|
+
className: getStyle$1("folding-spares-holder"),
|
|
524
524
|
lazyLoad: true
|
|
525
525
|
}, renderSpares())));
|
|
526
526
|
};
|
|
@@ -738,7 +738,6 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
|
|
|
738
738
|
case PRODUCT_DETAILS:
|
|
739
739
|
cardStyle = "type-card-panel";
|
|
740
740
|
Component = ProductDetailsCard;
|
|
741
|
-
cardClassName = "cmp-card--type-product_details";
|
|
742
741
|
break;
|
|
743
742
|
default:
|
|
744
743
|
return null;
|