@asantemedia-org/edwardsvacuum-design-system 1.6.37 → 1.6.39
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 +22 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +62 -69
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
-
import { faChevronRight, faArrowRight } from '@fortawesome/pro-solid-svg-icons';
|
|
3
|
+
import { faChevronDown, faChevronRight, faArrowRight } from '@fortawesome/pro-solid-svg-icons';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
|
|
6
6
|
/******************************************************************************
|
|
@@ -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;
|
|
@@ -239,25 +239,6 @@ function requireClassnames() {
|
|
|
239
239
|
var classnamesExports = requireClassnames();
|
|
240
240
|
var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
241
241
|
|
|
242
|
-
// Simple chevron SVG to avoid FontAwesome dependency issues
|
|
243
|
-
var ChevronIcon = function (_a) {
|
|
244
|
-
var isOpen = _a.isOpen;
|
|
245
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
246
|
-
width: "12",
|
|
247
|
-
height: "12",
|
|
248
|
-
viewBox: "0 0 12 12",
|
|
249
|
-
fill: "none",
|
|
250
|
-
style: {
|
|
251
|
-
transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
252
|
-
transition: 'transform 0.2s ease'
|
|
253
|
-
}
|
|
254
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
255
|
-
d: "M2 4L6 8L10 4",
|
|
256
|
-
stroke: "#C4262E",
|
|
257
|
-
strokeWidth: "2",
|
|
258
|
-
strokeLinecap: "round"
|
|
259
|
-
}));
|
|
260
|
-
};
|
|
261
242
|
var AccordionSection = function (_a) {
|
|
262
243
|
var title = _a.title,
|
|
263
244
|
children = _a.children,
|
|
@@ -315,9 +296,14 @@ var AccordionSection = function (_a) {
|
|
|
315
296
|
}, /*#__PURE__*/React.createElement("span", {
|
|
316
297
|
className: "accordion-section__title"
|
|
317
298
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
318
|
-
className: "accordion-section__icon"
|
|
319
|
-
|
|
320
|
-
|
|
299
|
+
className: "accordion-section__icon",
|
|
300
|
+
style: {
|
|
301
|
+
transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
302
|
+
transition: 'transform 0.2s ease'
|
|
303
|
+
}
|
|
304
|
+
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
305
|
+
icon: faChevronDown,
|
|
306
|
+
color: "#C4262E"
|
|
321
307
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
322
308
|
className: "accordion-section__content",
|
|
323
309
|
style: {
|
|
@@ -482,7 +468,7 @@ var ProductDetailsCard = function (_a) {
|
|
|
482
468
|
// Limit the number of spares to prevent freeze
|
|
483
469
|
var sparesToRender = hit.spares.slice(0, MAX_SPARES_TO_RENDER);
|
|
484
470
|
return /*#__PURE__*/React.createElement("ul", {
|
|
485
|
-
className: "folding-spares-list"
|
|
471
|
+
className: getStyle$1("folding-spares-list")
|
|
486
472
|
}, sparesToRender.map(function (spare, index) {
|
|
487
473
|
// Safety check - skip if spare is not a valid object
|
|
488
474
|
if (!spare || typeof spare !== 'object') return null;
|
|
@@ -490,7 +476,7 @@ var ProductDetailsCard = function (_a) {
|
|
|
490
476
|
key: spare.objectID || spare.code || "spare-".concat(index)
|
|
491
477
|
}, /*#__PURE__*/React.createElement(ProductCard, {
|
|
492
478
|
cardStyle: "type-card-product",
|
|
493
|
-
className: "cmp-card",
|
|
479
|
+
className: getStyle$1("cmp-card"),
|
|
494
480
|
title: spare.name || 'Spare Part',
|
|
495
481
|
imageUrl: spare['img-product'] || spare.image || '',
|
|
496
482
|
imageAlt: spare.name || 'Spare Part',
|
|
@@ -500,28 +486,28 @@ var ProductDetailsCard = function (_a) {
|
|
|
500
486
|
cta: "Go to webshop"
|
|
501
487
|
}));
|
|
502
488
|
}), hit.spares.length > MAX_SPARES_TO_RENDER && /*#__PURE__*/React.createElement("li", {
|
|
503
|
-
className: "folding-spares-list__more"
|
|
489
|
+
className: getStyle$1("folding-spares-list__more")
|
|
504
490
|
}, "+", hit.spares.length - MAX_SPARES_TO_RENDER, " more items"));
|
|
505
491
|
};
|
|
506
492
|
return /*#__PURE__*/React.createElement("div", {
|
|
507
493
|
className: className
|
|
508
494
|
}, /*#__PURE__*/React.createElement("div", {
|
|
509
|
-
className: "cmp-card--type-product_details__product-info"
|
|
495
|
+
className: getStyle$1("cmp-card--type-product_details__product-info")
|
|
510
496
|
}, /*#__PURE__*/React.createElement("div", {
|
|
511
|
-
className: "cmp-card--type-product_details__header"
|
|
497
|
+
className: getStyle$1("cmp-card--type-product_details__header")
|
|
512
498
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
513
|
-
className: "cmp-card--type-product_details__header__title"
|
|
499
|
+
className: getStyle$1("cmp-card--type-product_details__header__title")
|
|
514
500
|
}, title), /*#__PURE__*/React.createElement("p", {
|
|
515
|
-
className: "cmp-card--type-product_details__header__product-code"
|
|
501
|
+
className: getStyle$1("cmp-card--type-product_details__header__product-code")
|
|
516
502
|
}, "Product:", hit.code), /*#__PURE__*/React.createElement("img", {
|
|
517
503
|
src: hit.image,
|
|
518
504
|
alt: imageAlt,
|
|
519
|
-
className: "cmp-card--type-product_details__header__product-image"
|
|
505
|
+
className: getStyle$1("cmp-card--type-product_details__header__product-image")
|
|
520
506
|
})), facets && /*#__PURE__*/React.createElement(AccordionSection, {
|
|
521
507
|
title: "Specifications",
|
|
522
|
-
className: "folding-specification-holder"
|
|
508
|
+
className: getStyle$1("folding-specification-holder")
|
|
523
509
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
524
|
-
className: "folding-specification-list"
|
|
510
|
+
className: getStyle$1("folding-specification-list")
|
|
525
511
|
}, facets && facets.map(function (facet) {
|
|
526
512
|
return hit[facet.name] && /*#__PURE__*/React.createElement("li", {
|
|
527
513
|
key: facet.name
|
|
@@ -531,10 +517,10 @@ var ProductDetailsCard = function (_a) {
|
|
|
531
517
|
}
|
|
532
518
|
}) : hit[facet.name]);
|
|
533
519
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
534
|
-
className: "cmp-card--type-product_details__spares-list"
|
|
520
|
+
className: getStyle$1("cmp-card--type-product_details__spares-list")
|
|
535
521
|
}, hit.spares && hit.spares.length > 0 && /*#__PURE__*/React.createElement(AccordionSection, {
|
|
536
522
|
title: "Spares & Parts",
|
|
537
|
-
className: "folding-spares-holder",
|
|
523
|
+
className: getStyle$1("folding-spares-holder"),
|
|
538
524
|
lazyLoad: true
|
|
539
525
|
}, renderSpares())));
|
|
540
526
|
};
|