@asantemedia-org/leybold-design-system 1.0.5 → 1.0.7

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.
@@ -36,18 +36,26 @@
36
36
  border-color: #000000;
37
37
  }
38
38
  .Button-module__button--secondary___lD5E3 {
39
- color: white;
40
- background-color: #546672;
41
- border-color: #546672;
39
+ color: #e2001a;
40
+ background-color: white;
41
+ border-color: #e2001a;
42
42
  }
43
43
  .Button-module__button--secondary___lD5E3:hover:not(.Button-module__button--disabled___IuOY8) {
44
- background-color: rgb(62.3636363636, 75.7272727273, 84.6363636364);
45
- border-color: rgb(62.3636363636, 75.7272727273, 84.6363636364);
44
+ background-color: #4a4e54;
45
+ border-color: #4a4e54;
46
+ color: white;
46
47
  }
47
48
  .Button-module__button--secondary___lD5E3:active:not(.Button-module__button--disabled___IuOY8) {
48
49
  background-color: rgb(51.5454545455, 62.5909090909, 69.9545454545);
49
50
  border-color: rgb(51.5454545455, 62.5909090909, 69.9545454545);
50
51
  }
52
+ .Button-module__button--secondary___lD5E3:focus-visible:not(.Button-module__button--disabled___IuOY8) {
53
+ background-color: #4a4e54;
54
+ border-color: #4a4e54;
55
+ color: white;
56
+ outline: 1px solid #000000;
57
+ outline-offset: 2px;
58
+ }
51
59
  .Button-module__button--outline___wB6-g {
52
60
  color: #e2001a;
53
61
  background-color: transparent;
@@ -72,6 +80,11 @@
72
80
  .Button-module__button--text___iZIMo:active:not(.Button-module__button--disabled___IuOY8) {
73
81
  background-color: rgba(226, 0, 26, 0.2);
74
82
  }
83
+ .Button-module__button--extra-small___R0QTM {
84
+ padding: 0.5rem 0.675rem;
85
+ font-size: 0.5rem;
86
+ line-height: 0.5;
87
+ }
75
88
  .Button-module__button--small___ADJQe {
76
89
  padding: 1rem 1.35rem;
77
90
  font-size: 12px;
@@ -438,7 +451,6 @@
438
451
  display: grid;
439
452
  grid-template-columns: repeat(1, 1fr);
440
453
  grid-template-rows: auto;
441
- gap: 10px;
442
454
  }
443
455
  @media (min-width: 992px) {
444
456
  .ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details {
@@ -447,6 +459,7 @@
447
459
  }
448
460
  .ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details__product-info {
449
461
  position: relative;
462
+ max-width: 480px;
450
463
  }
451
464
  .ProductCardDetails-module__productDetails___-sx2l .cmp-card--type-product_details__header {
452
465
  margin-bottom: 1rem;
@@ -496,6 +509,16 @@
496
509
  .ProductCardDetails-module__productDetails___-sx2l .folding-specification-list {
497
510
  margin-left: 0;
498
511
  padding-left: 0;
512
+ display: grid;
513
+ grid-template-columns: repeat(1, 1fr);
514
+ grid-template-rows: auto;
515
+ gap: 10px;
516
+ }
517
+ @media (min-width: 992px) {
518
+ .ProductCardDetails-module__productDetails___-sx2l .folding-specification-list {
519
+ grid-template-columns: repeat(2, 1fr);
520
+ grid-template-areas: "list-item-1 list-item-2";
521
+ }
499
522
  }
500
523
  .ProductCardDetails-module__productDetails___-sx2l .folding-specification-list li {
501
524
  list-style: none;
@@ -505,6 +528,9 @@
505
528
  .ProductCardDetails-module__productDetails___-sx2l .folding-specification-list li strong {
506
529
  color: #383e42;
507
530
  }
531
+ .ProductCardDetails-module__productDetails___-sx2l .folding-specification-list li > *:first-child {
532
+ line-height: 2;
533
+ }
508
534
  .ProductCardDetails-module__productDetails___-sx2l .folding-specification-holder {
509
535
  margin-bottom: 1rem;
510
536
  }
@@ -576,7 +602,6 @@
576
602
  }
577
603
  @media (min-width: 961px) {
578
604
  .cmpAlgoliaDynamicSearchWidget__container {
579
- width: 80vw;
580
605
  max-width: 1280px;
581
606
  }
582
607
  }
@@ -716,13 +741,37 @@
716
741
  font-size: 21px;
717
742
  font-weight: 700;
718
743
  line-height: 1.6em;
719
- color: #4a4e54;
744
+ color: #e2001a;
720
745
  margin: 1rem 0 0 0;
721
746
  }
722
747
  .qr-journey-form-wrapper .qr-form-page {
723
748
  display: none;
724
749
  position: relative;
725
750
  }
751
+ @media (min-width: 768px) {
752
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields {
753
+ display: grid;
754
+ grid-template-columns: repeat(2, 1fr);
755
+ grid-template-rows: repeat(3, 1fr);
756
+ grid-template-areas: "select select" "email tel" "city zip";
757
+ gap: 1rem;
758
+ }
759
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.select {
760
+ grid-area: select;
761
+ }
762
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.email {
763
+ grid-area: email;
764
+ }
765
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrapper.tel {
766
+ grid-area: tel;
767
+ }
768
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrappertext:first-child {
769
+ grid-area: city;
770
+ }
771
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="3"] .qr-form-fields .qr-form-filed-wrappertext:last-child {
772
+ grid-area: zip;
773
+ }
774
+ }
726
775
  .qr-journey-form-wrapper .qr-form-page.active {
727
776
  display: block;
728
777
  }
@@ -812,10 +861,10 @@
812
861
  }
813
862
  .qr-journey-form-wrapper .qr-form-filed-wrapper.checkbox label input, .qr-journey-form-wrapper .qr-form-filed-wrapper.info label input {
814
863
  position: absolute;
815
- top: 0;
864
+ top: 5px;
816
865
  left: 0;
817
- width: 1.5em;
818
- height: 1.5em;
866
+ width: 1.25rem;
867
+ height: 1.25rem;
819
868
  margin: 0;
820
869
  }
821
870
  .qr-journey-form-wrapper .qr-form-filed-wrapper.checkbox .formfield-error, .qr-journey-form-wrapper .qr-form-filed-wrapper.info .formfield-error {
@@ -833,7 +882,7 @@
833
882
  height: 2.3em;
834
883
  line-height: 2em;
835
884
  border: none;
836
- border-bottom: 1px solid #c5c7c4;
885
+ border-bottom: 1px solid #4a4e54;
837
886
  border-radius: 0;
838
887
  background-color: transparent;
839
888
  }
@@ -864,6 +913,11 @@
864
913
  .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea[type=tel]:focus-visible {
865
914
  padding: 9px 18px;
866
915
  }
916
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label input[type=checkbox],
917
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label select[type=checkbox],
918
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea[type=checkbox] {
919
+ color: #99a1ab;
920
+ }
867
921
  .qr-journey-form-wrapper .qr-form-filed-wrapper label input:active, .qr-journey-form-wrapper .qr-form-filed-wrapper label input:focus, .qr-journey-form-wrapper .qr-form-filed-wrapper label input:focus-visible,
868
922
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select:active,
869
923
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select:focus,
@@ -875,15 +929,34 @@
875
929
  border-bottom: 3px solid #6ea67b;
876
930
  outline: none;
877
931
  }
932
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label input::-moz-placeholder {
933
+ color: #383e42;
934
+ }
935
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label input::placeholder {
936
+ color: #383e42;
937
+ }
878
938
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select,
879
939
  .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea {
880
- line-height: 1em;
881
- padding: 10px 18px;
940
+ line-height: 1;
941
+ padding: 1.5rem 1rem 0.5rem 1rem;
882
942
  box-sizing: content-box;
883
943
  }
944
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea {
945
+ display: table-cell;
946
+ vertical-align: middle;
947
+ }
948
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea::-moz-placeholder {
949
+ color: #99a1ab;
950
+ }
951
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea::placeholder {
952
+ color: #99a1ab;
953
+ }
884
954
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select {
885
955
  padding: 10px 18px;
886
956
  position: relative;
957
+ -webkit-appearance: none;
958
+ -moz-appearance: none;
959
+ appearance: none;
887
960
  }
888
961
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow {
889
962
  position: absolute;
@@ -891,7 +964,6 @@
891
964
  right: 2px;
892
965
  height: calc(100% - 1em - 6px);
893
966
  width: 17px;
894
- background-color: #ffffff;
895
967
  }
896
968
  .qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow::after, .qr-journey-form-wrapper .qr-form-filed-wrapper label select + .select-custom-arrow::before {
897
969
  content: "";
@@ -914,6 +986,9 @@
914
986
  top: -11px;
915
987
  border-bottom-color: #383e42;
916
988
  }
989
+ .qr-journey-form-wrapper .qr-form-filed-wrapper label select option {
990
+ color: #383e42;
991
+ }
917
992
  .qr-journey-form-wrapper .qr-form-filed-wrapper label > .label {
918
993
  display: none;
919
994
  position: relative;
@@ -923,13 +998,13 @@
923
998
  line-height: 0;
924
999
  }
925
1000
  .qr-journey-form-wrapper .qr-form-filed-wrapper.error label input {
926
- border: 1px solid #e2001a;
927
- border-bottom: 3px solid #e2001a;
1001
+ border: 1px solid #732d5d;
1002
+ border-bottom: 3px solid #732d5d;
928
1003
  }
929
1004
  .qr-journey-form-wrapper .qr-form-filed-wrapper.error .formfield-error {
930
1005
  position: relative;
931
1006
  top: -10px;
932
- color: #e2001a;
1007
+ color: #732d5d;
933
1008
  font-size: 12px;
934
1009
  line-height: 18px;
935
1010
  }
@@ -947,10 +1022,11 @@
947
1022
  height: calc(2.3em + 20px);
948
1023
  padding: 0 10px;
949
1024
  margin: 0;
950
- border: 1px solid #c5c7c4;
1025
+ border: 0px;
1026
+ border-bottom: 1px solid #4a4e54;
951
1027
  border-right: none;
952
1028
  border-radius: 0;
953
- background: #ffffff;
1029
+ background: transparent;
954
1030
  box-sizing: border-box;
955
1031
  cursor: pointer;
956
1032
  -webkit-user-select: none;
@@ -987,7 +1063,7 @@
987
1063
  height: calc(2.3em + 20px);
988
1064
  padding: 10px 18px;
989
1065
  margin: 0;
990
- border: 1px solid #c5c7c4;
1066
+ border-bottom: 1px solid #4a4e54;
991
1067
  border-radius: 0;
992
1068
  font-size: 18px;
993
1069
  font-family: inherit;
@@ -1053,8 +1129,8 @@
1053
1129
  padding-left: 2rem;
1054
1130
  margin: 0;
1055
1131
  color: #4a4e54;
1056
- font-weight: 400;
1057
- font-size: 1rem;
1132
+ font-weight: 700;
1133
+ font-size: 0.85rem;
1058
1134
  }
1059
1135
  .qr-journey-form-wrapper .disabled-product-fields-section .qr-form-fields {
1060
1136
  display: flex;
@@ -1077,6 +1153,7 @@
1077
1153
  }
1078
1154
  }
1079
1155
  .qr-journey-form-wrapper .disabled-product-fields-section .qr-form-fields .qr-form-filed-wrapper label .label {
1156
+ display: block;
1080
1157
  height: 1em;
1081
1158
  opacity: 1;
1082
1159
  font-weight: 700;
@@ -1089,10 +1166,19 @@
1089
1166
  font-weight: 400;
1090
1167
  background-color: transparent;
1091
1168
  }
1169
+ .qr-journey-form-wrapper .qr-form-page-section[data-page="1"] .qr-form-navigation > div {
1170
+ display: none;
1171
+ }
1092
1172
  .qr-journey-form-wrapper .qr-form-navigation {
1093
1173
  display: grid;
1094
1174
  grid-template-columns: repeat(2, 1fr);
1095
1175
  gap: 1rem;
1176
+ margin: 1rem auto 0 0;
1177
+ }
1178
+ @media (min-width: 768px) {
1179
+ .qr-journey-form-wrapper .qr-form-navigation {
1180
+ width: 65%;
1181
+ }
1096
1182
  }
1097
1183
  .qr-journey-form-wrapper .qr-form-navigation input[type=submit] {
1098
1184
  padding: 18px;
@@ -1211,7 +1297,7 @@
1211
1297
  }
1212
1298
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop.first-page {
1213
1299
  padding: 2rem 0 0 0;
1214
- border-top: 1px solid #c5c7c4;
1300
+ border-top: 1px solid #4a4e54;
1215
1301
  }
1216
1302
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li {
1217
1303
  display: flex;
@@ -1227,7 +1313,7 @@
1227
1313
  margin-bottom: 50px;
1228
1314
  border: 1px solid #e2001a;
1229
1315
  border-radius: 50%;
1230
- color: #546672;
1316
+ color: #4a4e54;
1231
1317
  font-weight: 700;
1232
1318
  }
1233
1319
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li .bullet-point::after {
@@ -1239,18 +1325,19 @@
1239
1325
  width: 1.25px;
1240
1326
  height: 25px;
1241
1327
  margin: auto;
1242
- background-color: #546672;
1328
+ background-color: #4a4e54;
1243
1329
  }
1244
1330
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li .bullet-point span {
1245
1331
  position: absolute;
1246
1332
  inset: 0;
1247
- top: 2px;
1333
+ top: 0.5px;
1248
1334
  width: 1em;
1249
1335
  height: 1em;
1250
1336
  margin: auto;
1251
1337
  text-align: center;
1338
+ font-size: 14px;
1252
1339
  line-height: 1em;
1253
- font-weight: 400;
1340
+ font-weight: 700;
1254
1341
  }
1255
1342
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li:last-child .bullet-point::after {
1256
1343
  display: none;
@@ -1258,16 +1345,27 @@
1258
1345
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li h3 {
1259
1346
  flex: 2;
1260
1347
  margin: 0 10px;
1261
- color: #546672;
1348
+ color: #4a4e54;
1262
1349
  font-size: 1.25rem;
1263
1350
  font-weight: 400;
1264
1351
  line-height: 30px;
1265
1352
  text-align: left;
1266
1353
  }
1354
+ .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li.checked {
1355
+ opacity: 0.5;
1356
+ }
1267
1357
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li.checked .bullet-point {
1268
- background-color: #e2001a;
1358
+ background-color: #4a4e54;
1359
+ border: 1px solid transparent;
1269
1360
  color: #ffffff;
1270
1361
  }
1362
+ .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li.checked.current-page {
1363
+ opacity: 1;
1364
+ }
1365
+ .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li.checked.current-page .bullet-point {
1366
+ background-color: #e2001a;
1367
+ border: 1px solid #e2001a;
1368
+ }
1271
1369
  .qr-journey-form-wrapper.desktop-true .progress-indicator-desktop li.checked.current-page h3 {
1272
1370
  color: #e2001a;
1273
1371
  font-weight: 700;
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
- import React, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
2
- import { ProductDetailsCard, AlgoliaDynamicSearchRaw, QrForm } from '@asantemedia-org/edwardsvacuum-design-system';
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var edwardsvacuumDesignSystem = require('@asantemedia-org/edwardsvacuum-design-system');
3
5
 
4
6
  function _extends() {
5
7
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -11,7 +13,7 @@ function _extends() {
11
13
  }, _extends.apply(null, arguments);
12
14
  }
13
15
 
14
- var styles$f = {"button":"Button-module__button___18Bed","button--primary":"Button-module__button--primary___VuF-P","button--disabled":"Button-module__button--disabled___IuOY8","button--secondary":"Button-module__button--secondary___lD5E3","button--outline":"Button-module__button--outline___wB6-g","button--text":"Button-module__button--text___iZIMo","button--small":"Button-module__button--small___ADJQe","button--medium":"Button-module__button--medium___ZuR4Z","button--large":"Button-module__button--large___-FaV5"};
16
+ var styles$f = {"button":"Button-module__button___18Bed","button--primary":"Button-module__button--primary___VuF-P","button--disabled":"Button-module__button--disabled___IuOY8","button--secondary":"Button-module__button--secondary___lD5E3","button--outline":"Button-module__button--outline___wB6-g","button--text":"Button-module__button--text___iZIMo","button--extra-small":"Button-module__button--extra-small___R0QTM","button--small":"Button-module__button--small___ADJQe","button--medium":"Button-module__button--medium___ZuR4Z","button--large":"Button-module__button--large___-FaV5"};
15
17
 
16
18
  function getDefaultExportFromCjs (x) {
17
19
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -93,16 +95,16 @@ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
93
95
  */
94
96
  const Button = ({
95
97
  children,
96
- variant = 'primary',
97
- size = 'medium',
98
+ variant = "primary",
99
+ size = "medium",
98
100
  disabled = false,
99
101
  onClick,
100
- type = 'button',
102
+ type = "button",
101
103
  className,
102
104
  ...props
103
105
  }) => {
104
106
  const buttonClasses = classNames(styles$f.button, styles$f[`button--${variant}`], styles$f[`button--${size}`], {
105
- [styles$f['button--disabled']]: disabled
107
+ [styles$f["button--disabled"]]: disabled
106
108
  }, className);
107
109
  return /*#__PURE__*/React.createElement("button", _extends({
108
110
  type: type,
@@ -275,7 +277,7 @@ const Pagination = ({
275
277
  className,
276
278
  ariaLabel = "Pagination"
277
279
  }) => {
278
- const pageNumbers = useMemo(() => generatePageNumbers(currentPage, totalPages, maxVisiblePages), [currentPage, totalPages, maxVisiblePages]);
280
+ const pageNumbers = React.useMemo(() => generatePageNumbers(currentPage, totalPages, maxVisiblePages), [currentPage, totalPages, maxVisiblePages]);
279
281
  const handlePageChange = page => {
280
282
  if (page >= 1 && page <= totalPages && page !== currentPage) {
281
283
  onPageChange(page);
@@ -347,15 +349,15 @@ const Image = ({
347
349
  srcSet,
348
350
  sizes
349
351
  }) => {
350
- const [isLoading, setIsLoading] = useState(true);
351
- const [hasError, setHasError] = useState(false);
352
- const [currentSrc, setCurrentSrc] = useState(src);
353
- const handleLoad = useCallback(() => {
352
+ const [isLoading, setIsLoading] = React.useState(true);
353
+ const [hasError, setHasError] = React.useState(false);
354
+ const [currentSrc, setCurrentSrc] = React.useState(src);
355
+ const handleLoad = React.useCallback(() => {
354
356
  setIsLoading(false);
355
357
  setHasError(false);
356
358
  onLoad?.();
357
359
  }, [onLoad]);
358
- const handleError = useCallback(() => {
360
+ const handleError = React.useCallback(() => {
359
361
  setIsLoading(false);
360
362
  setHasError(true);
361
363
 
@@ -482,7 +484,7 @@ const ProductCardHorizontal = ({
482
484
  }, price || " "), button && /*#__PURE__*/React.createElement(Button, {
483
485
  className: styles$d.productButton,
484
486
  onClick: button.onClick,
485
- size: "small"
487
+ size: "extra-small"
486
488
  }, button.label))));
487
489
  };
488
490
 
@@ -534,7 +536,7 @@ const ProductCardDetails = ({
534
536
  };
535
537
  return /*#__PURE__*/React.createElement("div", {
536
538
  className: styles$b.productDetails
537
- }, /*#__PURE__*/React.createElement(ProductDetailsCard, {
539
+ }, /*#__PURE__*/React.createElement(edwardsvacuumDesignSystem.ProductDetailsCard, {
538
540
  className: `${className}`,
539
541
  title: title,
540
542
  imageUrl: imageUrl,
@@ -613,7 +615,7 @@ const AlgoliaDynamicSearchLeybold = props => {
613
615
  ProductCard: ProductCardAdapter,
614
616
  ProductDetailsCard: ProductCardDetailsAdapter
615
617
  };
616
- return /*#__PURE__*/React.createElement(AlgoliaDynamicSearchRaw, _extends({}, props, {
618
+ return /*#__PURE__*/React.createElement(edwardsvacuumDesignSystem.AlgoliaDynamicSearchRaw, _extends({}, props, {
617
619
  innerComponents: innerComponents
618
620
  }));
619
621
  };
@@ -648,7 +650,8 @@ const QrFormButtonAdapter = ({
648
650
  }
649
651
  }, /*#__PURE__*/React.createElement(Button, {
650
652
  variant: variant,
651
- type: type
653
+ type: type,
654
+ size: "small"
652
655
  }, label));
653
656
  }
654
657
 
@@ -658,13 +661,14 @@ const QrFormButtonAdapter = ({
658
661
  type: type,
659
662
  onClick: onClick ? e => onClick(e) : undefined,
660
663
  className: className,
661
- "data-page_target": pageTarget
664
+ "data-page_target": pageTarget,
665
+ size: "small"
662
666
  }, label);
663
667
  };
664
668
  const QrFormLeybold = props => {
665
669
  return /*#__PURE__*/React.createElement("div", {
666
670
  className: "qr-journey-form-wrapper"
667
- }, /*#__PURE__*/React.createElement(QrForm, _extends({}, props, {
671
+ }, /*#__PURE__*/React.createElement(edwardsvacuumDesignSystem.QrForm, _extends({}, props, {
668
672
  ButtonComponent: QrFormButtonAdapter
669
673
  })));
670
674
  };
@@ -710,9 +714,9 @@ const SearchModal = ({
710
714
  children,
711
715
  className = ''
712
716
  }) => {
713
- const modalRef = useRef(null);
714
- const previouslyFocusedElement = useRef(null);
715
- useEffect(() => {
717
+ const modalRef = React.useRef(null);
718
+ const previouslyFocusedElement = React.useRef(null);
719
+ React.useEffect(() => {
716
720
  if (isOpen) {
717
721
  // Store the previously focused element
718
722
  previouslyFocusedElement.current = document.activeElement;
@@ -737,7 +741,7 @@ const SearchModal = ({
737
741
  document.body.style.overflow = '';
738
742
  };
739
743
  }, [isOpen]);
740
- useEffect(() => {
744
+ React.useEffect(() => {
741
745
  const handleEscape = event => {
742
746
  if (event.key === 'Escape' && isOpen) {
743
747
  onClose();
@@ -748,7 +752,7 @@ const SearchModal = ({
748
752
  }, [isOpen, onClose]);
749
753
 
750
754
  // Focus trap implementation
751
- useEffect(() => {
755
+ React.useEffect(() => {
752
756
  if (!isOpen || !modalRef.current) return;
753
757
  const modal = modalRef.current;
754
758
  const focusableElements = modal.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
@@ -1165,10 +1169,10 @@ const FilterAccordion = ({
1165
1169
  onValueToggle,
1166
1170
  className
1167
1171
  }) => {
1168
- const [searchQuery, setSearchQuery] = useState("");
1172
+ const [searchQuery, setSearchQuery] = React.useState("");
1169
1173
 
1170
1174
  // Filter facet values based on search query
1171
- const filteredValues = useMemo(() => {
1175
+ const filteredValues = React.useMemo(() => {
1172
1176
  if (!searchQuery.trim()) {
1173
1177
  return facet.values;
1174
1178
  }
@@ -1291,7 +1295,7 @@ const AppliedFilters = ({
1291
1295
  className
1292
1296
  }) => {
1293
1297
  // Extract all refined (selected) filters
1294
- const appliedFilters = useMemo(() => {
1298
+ const appliedFilters = React.useMemo(() => {
1295
1299
  const filters = [];
1296
1300
  facets.forEach(facet => {
1297
1301
  facet.values.forEach(value => {
@@ -1356,7 +1360,7 @@ const FiltersPanel = ({
1356
1360
  className
1357
1361
  }) => {
1358
1362
  // Track which accordions are expanded
1359
- const [expandedAccordions, setExpandedAccordions] = useState(() => {
1363
+ const [expandedAccordions, setExpandedAccordions] = React.useState(() => {
1360
1364
  // Initialize with default expanded facets
1361
1365
  const expanded = new Set();
1362
1366
  facets.forEach(facet => {
@@ -1366,7 +1370,7 @@ const FiltersPanel = ({
1366
1370
  });
1367
1371
  return expanded;
1368
1372
  });
1369
- const handleAccordionToggle = useCallback(facetId => {
1373
+ const handleAccordionToggle = React.useCallback(facetId => {
1370
1374
  setExpandedAccordions(prev => {
1371
1375
  const next = new Set(prev);
1372
1376
  if (next.has(facetId)) {
@@ -1377,13 +1381,13 @@ const FiltersPanel = ({
1377
1381
  return next;
1378
1382
  });
1379
1383
  }, []);
1380
- const handleValueToggle = useCallback((attribute, value) => {
1384
+ const handleValueToggle = React.useCallback((attribute, value) => {
1381
1385
  onFacetToggle(attribute, value);
1382
1386
  }, [onFacetToggle]);
1383
- const handleRemoveFilter = useCallback((attribute, value) => {
1387
+ const handleRemoveFilter = React.useCallback((attribute, value) => {
1384
1388
  onFacetToggle(attribute, value);
1385
1389
  }, [onFacetToggle]);
1386
- const handleClearAll = useCallback(() => {
1390
+ const handleClearAll = React.useCallback(() => {
1387
1391
  // Remove all refined facets
1388
1392
  facets.forEach(facet => {
1389
1393
  facet.values.forEach(value => {
@@ -1771,8 +1775,15 @@ const SearchTriggerButton = ({
1771
1775
  }, label));
1772
1776
  };
1773
1777
 
1774
- export { AlgoliaDynamicSearchLeybold as AlgoliaDynamicSearch, AlgoliaDynamicSearchLeybold, AppliedFilterTag, AppliedFilters, Button, ContentCardHorizontal, FederatedInstantResultsLayout, FederatedResultsView, FederatedSearchExperience, FilterAccordion, FilterItem, FilterSearch, FiltersPanel, ModalCloseButton, Pagination, PaginationButton, PaginationEllipsis, PaginationItem, ProductCardHorizontal, QrFormLeybold as QrForm, QrFormLeybold, ResultsColumn, ResultsCount, ResultsList, SearchBar, SearchIcon, SearchInput, SearchModal, SearchSubmitButton, SearchTriggerButton, SeeAllLinkButton };
1775
- archExperience;
1778
+ exports.AlgoliaDynamicSearch = AlgoliaDynamicSearchLeybold;
1779
+ exports.AlgoliaDynamicSearchLeybold = AlgoliaDynamicSearchLeybold;
1780
+ exports.AppliedFilterTag = AppliedFilterTag;
1781
+ exports.AppliedFilters = AppliedFilters;
1782
+ exports.Button = Button;
1783
+ exports.ContentCardHorizontal = ContentCardHorizontal;
1784
+ exports.FederatedInstantResultsLayout = FederatedInstantResultsLayout;
1785
+ exports.FederatedResultsView = FederatedResultsView;
1786
+ exports.FederatedSearchExperience = FederatedSearchExperience;
1776
1787
  exports.FilterAccordion = FilterAccordion;
1777
1788
  exports.FilterItem = FilterItem;
1778
1789
  exports.FilterSearch = FilterSearch;