@asantemedia-org/edwardsvacuum-design-system 1.6.22 → 1.6.23
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 +36 -51
- package/dist/index.esm.css +36 -51
- package/dist/index.esm.js +18 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +28 -26
- package/dist/index.js.map +1 -1
- package/dist/index.scss +36 -51
- package/dist/src/stories/experiences/Algolia-dynamic-search/algolia-dynamic-search-base.d.ts +30 -0
- package/dist/src/stories/experiences/Algolia-dynamic-search/algolia-dynamic-search.d.ts +3 -26
- package/dist/src/stories/experiences/Algolia-dynamic-search/algolia-dynamic-search.stories.d.ts +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
grid-template-columns: repeat(3, 1fr);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
.algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards__cardSingle___fcWfV {
|
|
85
|
+
grid-template-columns: 1fr;
|
|
86
|
+
}
|
|
84
87
|
.algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget___WY9hc.algolia-dynamic-search-module__isQueryContent___KXy6j .algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards___wOPVj {
|
|
85
88
|
grid-template-columns: repeat(2, 1fr);
|
|
86
89
|
}
|
|
@@ -124,7 +127,6 @@
|
|
|
124
127
|
left: 0;
|
|
125
128
|
animation: algolia-dynamic-search-module__loading___Hb3Uw 1s infinite;
|
|
126
129
|
}
|
|
127
|
-
@charset "UTF-8";
|
|
128
130
|
.card-module__cmp-card___45x9k img {
|
|
129
131
|
transition: all 0.3s ease-in-out;
|
|
130
132
|
}
|
|
@@ -315,12 +317,11 @@
|
|
|
315
317
|
}
|
|
316
318
|
.card-module__cmp-card--type-card-product___IfqTr {
|
|
317
319
|
background-color: white;
|
|
318
|
-
min-height: 100px;
|
|
319
320
|
}
|
|
320
321
|
.card-module__cmp-card--type-card-product__wrapper___kulaR {
|
|
321
322
|
display: grid;
|
|
322
323
|
grid-template-columns: repeat(4, 1fr);
|
|
323
|
-
height:
|
|
324
|
+
min-height: 75px;
|
|
324
325
|
background: linear-gradient(45deg, rgb(212, 214, 215), rgb(172, 174, 176));
|
|
325
326
|
}
|
|
326
327
|
.card-module__cmp-card--type-card-product__image___Bkb0A {
|
|
@@ -347,8 +348,7 @@
|
|
|
347
348
|
margin: 0;
|
|
348
349
|
}
|
|
349
350
|
.card-module__cmp-card--type-card-product__image___Bkb0A img {
|
|
350
|
-
|
|
351
|
-
height: 50px;
|
|
351
|
+
max-height: 90%;
|
|
352
352
|
mix-blend-mode: multiply;
|
|
353
353
|
box-sizing: border-box;
|
|
354
354
|
-o-object-fit: contain;
|
|
@@ -444,66 +444,51 @@
|
|
|
444
444
|
.card-module__cmp-card--type-careers___Wqzcf.card-module__cmp-card--type-card-panel___95jYv .card-module__cmp-card__title-wrapper___XHfZg .card-module__cmp-card__city-country___dI13- {
|
|
445
445
|
margin-top: auto;
|
|
446
446
|
}
|
|
447
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
448
|
+
display: grid;
|
|
449
|
+
grid-template-columns: repeat(2, 1fr);
|
|
450
|
+
grid-template-rows: auto;
|
|
451
|
+
gap: 10px;
|
|
450
452
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
+
@media only screen and (min-width: 1200px) {
|
|
454
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
455
|
+
grid-template-columns: repeat(2, 1fr);
|
|
456
|
+
}
|
|
453
457
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
458
|
+
@media only screen and (max-width: 1199px) {
|
|
459
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
460
|
+
grid-template-columns: repeat(1, 1fr);
|
|
461
|
+
}
|
|
457
462
|
}
|
|
458
|
-
.card-module__cmp-card--type-
|
|
459
|
-
cursor: pointer;
|
|
460
|
-
background-color: white;
|
|
461
|
-
padding: 1em 0;
|
|
462
|
-
z-index: 1;
|
|
463
|
+
.card-module__cmp-card--type-product_details__product-info___5L009 {
|
|
463
464
|
position: relative;
|
|
464
|
-
margin: 0;
|
|
465
465
|
}
|
|
466
|
-
.card-module__cmp-card--type-
|
|
467
|
-
|
|
468
|
-
color: rgb(196, 38, 46);
|
|
469
|
-
transition: 300ms;
|
|
470
|
-
transform-origin: 50% 50%;
|
|
471
|
-
content: "⌵";
|
|
472
|
-
position: absolute;
|
|
473
|
-
right: 0;
|
|
466
|
+
.card-module__cmp-card--type-product_details__spares-list___VQ31R {
|
|
467
|
+
position: relative;
|
|
474
468
|
}
|
|
475
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
469
|
+
.card-module__cmp-card--type-product_details___vsNOc ul {
|
|
476
470
|
position: relative;
|
|
477
471
|
margin-left: 0;
|
|
478
472
|
padding-left: 0;
|
|
479
|
-
top: -1000px;
|
|
480
|
-
height: 0;
|
|
481
|
-
transition: 300ms;
|
|
482
473
|
}
|
|
483
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
474
|
+
.card-module__cmp-card--type-product_details___vsNOc ul li {
|
|
484
475
|
list-style: none;
|
|
476
|
+
margin-bottom: 0px;
|
|
485
477
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
70% {
|
|
492
|
-
transform: rotateY(200deg);
|
|
493
|
-
}
|
|
494
|
-
100% {
|
|
495
|
-
transform: rotateY(180deg);
|
|
496
|
-
}
|
|
478
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
479
|
+
display: grid;
|
|
480
|
+
grid-template-columns: repeat(2, 1fr);
|
|
481
|
+
grid-template-rows: auto;
|
|
482
|
+
gap: 10px;
|
|
497
483
|
}
|
|
498
|
-
@
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
70% {
|
|
503
|
-
transform: rotateY(-20deg);
|
|
484
|
+
@media only screen and (min-width: 1200px) {
|
|
485
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
486
|
+
grid-template-columns: repeat(2, 1fr);
|
|
504
487
|
}
|
|
505
|
-
|
|
506
|
-
|
|
488
|
+
}
|
|
489
|
+
@media only screen and (max-width: 1199px) {
|
|
490
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
491
|
+
grid-template-columns: repeat(1, 1fr);
|
|
507
492
|
}
|
|
508
493
|
}
|
|
509
494
|
.accordion-section__header {
|
package/dist/index.esm.css
CHANGED
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
grid-template-columns: repeat(3, 1fr);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
.algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards__cardSingle___fcWfV {
|
|
85
|
+
grid-template-columns: 1fr;
|
|
86
|
+
}
|
|
84
87
|
.algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget___WY9hc.algolia-dynamic-search-module__isQueryContent___KXy6j .algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards___wOPVj {
|
|
85
88
|
grid-template-columns: repeat(2, 1fr);
|
|
86
89
|
}
|
|
@@ -124,7 +127,6 @@
|
|
|
124
127
|
left: 0;
|
|
125
128
|
animation: algolia-dynamic-search-module__loading___Hb3Uw 1s infinite;
|
|
126
129
|
}
|
|
127
|
-
@charset "UTF-8";
|
|
128
130
|
.card-module__cmp-card___45x9k img {
|
|
129
131
|
transition: all 0.3s ease-in-out;
|
|
130
132
|
}
|
|
@@ -315,12 +317,11 @@
|
|
|
315
317
|
}
|
|
316
318
|
.card-module__cmp-card--type-card-product___IfqTr {
|
|
317
319
|
background-color: white;
|
|
318
|
-
min-height: 100px;
|
|
319
320
|
}
|
|
320
321
|
.card-module__cmp-card--type-card-product__wrapper___kulaR {
|
|
321
322
|
display: grid;
|
|
322
323
|
grid-template-columns: repeat(4, 1fr);
|
|
323
|
-
height:
|
|
324
|
+
min-height: 75px;
|
|
324
325
|
background: linear-gradient(45deg, rgb(212, 214, 215), rgb(172, 174, 176));
|
|
325
326
|
}
|
|
326
327
|
.card-module__cmp-card--type-card-product__image___Bkb0A {
|
|
@@ -347,8 +348,7 @@
|
|
|
347
348
|
margin: 0;
|
|
348
349
|
}
|
|
349
350
|
.card-module__cmp-card--type-card-product__image___Bkb0A img {
|
|
350
|
-
|
|
351
|
-
height: 50px;
|
|
351
|
+
max-height: 90%;
|
|
352
352
|
mix-blend-mode: multiply;
|
|
353
353
|
box-sizing: border-box;
|
|
354
354
|
-o-object-fit: contain;
|
|
@@ -444,66 +444,51 @@
|
|
|
444
444
|
.card-module__cmp-card--type-careers___Wqzcf.card-module__cmp-card--type-card-panel___95jYv .card-module__cmp-card__title-wrapper___XHfZg .card-module__cmp-card__city-country___dI13- {
|
|
445
445
|
margin-top: auto;
|
|
446
446
|
}
|
|
447
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
448
|
+
display: grid;
|
|
449
|
+
grid-template-columns: repeat(2, 1fr);
|
|
450
|
+
grid-template-rows: auto;
|
|
451
|
+
gap: 10px;
|
|
450
452
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
+
@media only screen and (min-width: 1200px) {
|
|
454
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
455
|
+
grid-template-columns: repeat(2, 1fr);
|
|
456
|
+
}
|
|
453
457
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
458
|
+
@media only screen and (max-width: 1199px) {
|
|
459
|
+
.card-module__cmp-card--type-product_details___vsNOc {
|
|
460
|
+
grid-template-columns: repeat(1, 1fr);
|
|
461
|
+
}
|
|
457
462
|
}
|
|
458
|
-
.card-module__cmp-card--type-
|
|
459
|
-
cursor: pointer;
|
|
460
|
-
background-color: white;
|
|
461
|
-
padding: 1em 0;
|
|
462
|
-
z-index: 1;
|
|
463
|
+
.card-module__cmp-card--type-product_details__product-info___5L009 {
|
|
463
464
|
position: relative;
|
|
464
|
-
margin: 0;
|
|
465
465
|
}
|
|
466
|
-
.card-module__cmp-card--type-
|
|
467
|
-
|
|
468
|
-
color: rgb(196, 38, 46);
|
|
469
|
-
transition: 300ms;
|
|
470
|
-
transform-origin: 50% 50%;
|
|
471
|
-
content: "⌵";
|
|
472
|
-
position: absolute;
|
|
473
|
-
right: 0;
|
|
466
|
+
.card-module__cmp-card--type-product_details__spares-list___VQ31R {
|
|
467
|
+
position: relative;
|
|
474
468
|
}
|
|
475
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
469
|
+
.card-module__cmp-card--type-product_details___vsNOc ul {
|
|
476
470
|
position: relative;
|
|
477
471
|
margin-left: 0;
|
|
478
472
|
padding-left: 0;
|
|
479
|
-
top: -1000px;
|
|
480
|
-
height: 0;
|
|
481
|
-
transition: 300ms;
|
|
482
473
|
}
|
|
483
|
-
.card-module__cmp-card--type-product_details___vsNOc
|
|
474
|
+
.card-module__cmp-card--type-product_details___vsNOc ul li {
|
|
484
475
|
list-style: none;
|
|
476
|
+
margin-bottom: 0px;
|
|
485
477
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
70% {
|
|
492
|
-
transform: rotateY(200deg);
|
|
493
|
-
}
|
|
494
|
-
100% {
|
|
495
|
-
transform: rotateY(180deg);
|
|
496
|
-
}
|
|
478
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
479
|
+
display: grid;
|
|
480
|
+
grid-template-columns: repeat(2, 1fr);
|
|
481
|
+
grid-template-rows: auto;
|
|
482
|
+
gap: 10px;
|
|
497
483
|
}
|
|
498
|
-
@
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
70% {
|
|
503
|
-
transform: rotateY(-20deg);
|
|
484
|
+
@media only screen and (min-width: 1200px) {
|
|
485
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
486
|
+
grid-template-columns: repeat(2, 1fr);
|
|
504
487
|
}
|
|
505
|
-
|
|
506
|
-
|
|
488
|
+
}
|
|
489
|
+
@media only screen and (max-width: 1199px) {
|
|
490
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-spares-list___ls5-n {
|
|
491
|
+
grid-template-columns: repeat(1, 1fr);
|
|
507
492
|
}
|
|
508
493
|
}
|
|
509
494
|
.accordion-section__header {
|
package/dist/index.esm.js
CHANGED
|
@@ -162,9 +162,9 @@ 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 = {"cmpAlgoliaDynamicSearchWidget":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget___WY9hc","
|
|
165
|
+
var styles$2 = {"cmpAlgoliaDynamicSearchWidget":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget___WY9hc","cmpAlgoliaDynamicSearchWidget__header":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__header___vxNjS","hasStyleSilverGradientBackground":"algolia-dynamic-search-module__hasStyleSilverGradientBackground___D3SQQ","hasStyleGreyBackground":"algolia-dynamic-search-module__hasStyleGreyBackground___SuPIH","cmpAlgoliaDynamicSearchWidget__placeholder__loading":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__placeholder__loading___hbH4m"};
|
|
166
166
|
|
|
167
|
-
var styles$1 = {"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","
|
|
167
|
+
var styles$1 = {"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"};
|
|
168
168
|
|
|
169
169
|
function getDefaultExportFromCjs (x) {
|
|
170
170
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -533,15 +533,6 @@ var Button = function (_a) {
|
|
|
533
533
|
}, props), label);
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
/**
|
|
537
|
-
* Removes a specific prefix from SCSS module class names.
|
|
538
|
-
* @param className - The SCSS module class name.
|
|
539
|
-
* @param prefixToRemove - The prefix string to remove.
|
|
540
|
-
* @returns The cleaned class name without the prefix.
|
|
541
|
-
*/
|
|
542
|
-
var cleanClassNames = function (className, prefixToRemove) {
|
|
543
|
-
return (className === null || className === void 0 ? void 0 : className.startsWith(prefixToRemove)) ? className === null || className === void 0 ? void 0 : className.replace("".concat(prefixToRemove, "__"), "") : className;
|
|
544
|
-
};
|
|
545
536
|
var PRODUCT_DETAILS = 'productDetails';
|
|
546
537
|
var DynamicHeading = function (_a) {
|
|
547
538
|
var _b = _a.titleSize,
|
|
@@ -571,10 +562,9 @@ var getCallToActionProps = function (type, url) {
|
|
|
571
562
|
target: target
|
|
572
563
|
};
|
|
573
564
|
};
|
|
574
|
-
var AlgoliaDynamicSearch = function (_a) {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
heading = _a.heading,
|
|
565
|
+
var AlgoliaDynamicSearch = function (_a, useScopedStyles) {
|
|
566
|
+
_a.className;
|
|
567
|
+
var heading = _a.heading,
|
|
578
568
|
titleSize = _a.titleSize,
|
|
579
569
|
subtext = _a.subtext,
|
|
580
570
|
callToActionType = _a.callToActionType,
|
|
@@ -618,29 +608,27 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
618
608
|
}
|
|
619
609
|
};
|
|
620
610
|
var widgetStyleProps = backgroundStyles[backgroundColour.toLowerCase()] || {
|
|
621
|
-
buttonStyle: "primary"
|
|
622
|
-
containerBackground: ""};
|
|
623
|
-
// Combine class names properly for SCSS Modules
|
|
624
|
-
var componentClassNames = "\n ".concat(cleanClassNames(styles$2 === null || styles$2 === void 0 ? void 0 : styles$2.cmpAlgoliaDynamicSearchWidget, 'cmpAlgoliaDynamicSearchWidget'), "\n ").concat(widgetStyleProps === null || widgetStyleProps === void 0 ? void 0 : widgetStyleProps.containerBackground, "\n ").concat((styles$2 === null || styles$2 === void 0 ? void 0 : styles$2["isQuery".concat(queryType.charAt(0).toUpperCase() + queryType.slice(1))]) || '', "\n ").concat(isLoadingState ? styles$2 === null || styles$2 === void 0 ? void 0 : styles$2.isLoading : '', "\n ").concat(className, "\n ").trim();
|
|
611
|
+
buttonStyle: "primary"};
|
|
625
612
|
if (!hits || hits.length === 0) {
|
|
626
613
|
return null;
|
|
627
614
|
}
|
|
615
|
+
var baseClass = styles$2 === null || styles$2 === void 0 ? void 0 : styles$2.cmpAlgoliaDynamicSearchWidget ;
|
|
628
616
|
return /*#__PURE__*/React.createElement("div", {
|
|
629
|
-
className:
|
|
617
|
+
className: baseClass
|
|
630
618
|
}, isLoadingState && /*#__PURE__*/React.createElement("div", {
|
|
631
|
-
className:
|
|
619
|
+
className: baseClass + "__placeholder"
|
|
632
620
|
}, /*#__PURE__*/React.createElement("div", {
|
|
633
621
|
className: styles$2.cmpAlgoliaDynamicSearchWidget__placeholder__loading
|
|
634
622
|
})), /*#__PURE__*/React.createElement("div", {
|
|
635
|
-
className:
|
|
623
|
+
className: baseClass + "__container"
|
|
636
624
|
}, queryType != PRODUCT_DETAILS && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
637
625
|
className: styles$2.cmpAlgoliaDynamicSearchWidget__header
|
|
638
626
|
}, /*#__PURE__*/React.createElement("div", {
|
|
639
|
-
className:
|
|
627
|
+
className: baseClass + "__header__text"
|
|
640
628
|
}, /*#__PURE__*/React.createElement(DynamicHeading, {
|
|
641
629
|
titleSize: titleSize
|
|
642
630
|
}, heading), /*#__PURE__*/React.createElement("p", null, subtext)), callToActionUrl && /*#__PURE__*/React.createElement("div", {
|
|
643
|
-
className:
|
|
631
|
+
className: baseClass + "__header__cta"
|
|
644
632
|
}, function () {
|
|
645
633
|
var _a = getCallToActionProps(callToActionType, callToActionUrl),
|
|
646
634
|
finalUrl = _a.finalUrl,
|
|
@@ -661,7 +649,7 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
661
649
|
} : undefined
|
|
662
650
|
});
|
|
663
651
|
}()))), /*#__PURE__*/React.createElement("div", {
|
|
664
|
-
className:
|
|
652
|
+
className: queryType == PRODUCT_DETAILS ? baseClass + "__cards__cardSingle" : baseClass + "__cards"
|
|
665
653
|
}, hits.slice(0, maxResults).map(function (hit, index) {
|
|
666
654
|
var Component = Card;
|
|
667
655
|
var title = hit.title;
|
|
@@ -728,6 +716,10 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
728
716
|
}))));
|
|
729
717
|
};
|
|
730
718
|
|
|
719
|
+
var AlgoliaDynamicSearchEdwards = function (props) {
|
|
720
|
+
return AlgoliaDynamicSearch(props);
|
|
721
|
+
};
|
|
722
|
+
|
|
731
723
|
function RenderField(field) {
|
|
732
724
|
var _a;
|
|
733
725
|
switch (field.type) {
|
|
@@ -1262,5 +1254,5 @@ var QrForm = function (props) {
|
|
|
1262
1254
|
})));
|
|
1263
1255
|
};
|
|
1264
1256
|
|
|
1265
|
-
export { AccordionSection, AlgoliaDynamicSearch, FormFieldRenderer, QrForm };
|
|
1257
|
+
export { AccordionSection, AlgoliaDynamicSearchEdwards as AlgoliaDynamicSearch, FormFieldRenderer, QrForm };
|
|
1266
1258
|
//# sourceMappingURL=index.esm.js.map
|