hds-web 1.16.3 → 1.16.5

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.
@@ -3,6 +3,7 @@ import { useEffect, useState } from "react";
3
3
  import SearchOverlay from "./searchoverlay";
4
4
  import { Icon } from "../../components/common-components";
5
5
  export default function Search(props) {
6
+
6
7
  const [showSearch, setShowSearch] = useState(false);
7
8
 
8
9
  const handleSearchWithKeyboard = e => {
@@ -34,7 +35,7 @@ export default function Search(props) {
34
35
  </div>
35
36
  </div>
36
37
  </div>
37
- <SearchOverlay showSearch={showSearch} onCloseSearch={onCloseSearch} />
38
+ <SearchOverlay showSearch={showSearch} onCloseSearch={onCloseSearch} {...props}/>
38
39
  </>
39
40
  );
40
41
  }
@@ -3,7 +3,7 @@ import { Icon } from '../../components/common-components/Icon'
3
3
  import SearchWrapper from "./searchwrapper";
4
4
  import { SEARCH_INDICES } from "./constants";
5
5
 
6
- export default function SearchOverlay({showSearch, onCloseSearch}) {
6
+ export default function SearchOverlay({showSearch, onCloseSearch, ...props}) {
7
7
 
8
8
  useEffect(() => {
9
9
  if (showSearch) {
@@ -26,7 +26,7 @@ export default function SearchOverlay({showSearch, onCloseSearch}) {
26
26
  <div className="px-4">
27
27
  <div className="max-w-7xl mx-auto">
28
28
  <div className="w-full">
29
- <SearchWrapper indices={SEARCH_INDICES} />
29
+ <SearchWrapper indices={SEARCH_INDICES} {...props} />
30
30
  </div>
31
31
  </div>
32
32
  </div>
@@ -8,28 +8,6 @@ import SearchFooter from "./searchfooter";
8
8
  import { Typography } from '../../foundation/Typography'
9
9
 
10
10
 
11
- const algoliaClient = algoliasearch(
12
- process.env.ALGOLIA_APP_ID,
13
- process.env.ALGOLIA_SEARCH_KEY
14
- );
15
-
16
- const searchClient = {
17
- ...algoliaClient,
18
- search(requests) {
19
- if (requests.every(({ params }) => !params.query)) {
20
- return Promise.resolve({
21
- results: requests.map(() => ({
22
- hits: [],
23
- nbHits: 0,
24
- nbPages: 0,
25
- processingTimeMS: 0,
26
- })),
27
- });
28
- }
29
-
30
- return algoliaClient.search(requests);
31
- },
32
- };
33
11
 
34
12
  const AllResults = ({ allSearchResults, children, indices, searchState, searching }) => {
35
13
  if (!searchState?.query) return null;
@@ -92,7 +70,36 @@ const IndexTypeFilter = ({ activeIndexTypes, setActiveIndexTypes }) => {
92
70
  );
93
71
  };
94
72
 
95
- export default function SearchWrapper({ indices }) {
73
+ export default function SearchWrapper({ indices, ...props }) {
74
+ let ALGOLIA_APP_ID, ALGOLIA_SEARCH_KEY ;
75
+ if (props.ALGOLIA_APP_ID && props.ALGOLIA_SEARCH_KEY){
76
+ ALGOLIA_APP_ID = props.ALGOLIA_APP_ID;
77
+ ALGOLIA_SEARCH_KEY = props.ALGOLIA_SEARCH_KEY;
78
+ }
79
+ const algoliaClient = algoliasearch(
80
+ ALGOLIA_APP_ID,
81
+ ALGOLIA_SEARCH_KEY
82
+ );
83
+
84
+ const searchClient = {
85
+ ...algoliaClient,
86
+ search(requests) {
87
+ if (requests.every(({ params }) => !params.query)) {
88
+ return Promise.resolve({
89
+ results: requests.map(() => ({
90
+ hits: [],
91
+ nbHits: 0,
92
+ nbPages: 0,
93
+ processingTimeMS: 0,
94
+ })),
95
+ });
96
+ }
97
+
98
+ return algoliaClient.search(requests);
99
+ },
100
+ };
101
+
102
+ console.log(props);
96
103
  const defaultIndexTypesState = Object.values(INDEX_TYPES).reduce((a, c) => {
97
104
  a[c] = true;
98
105
  return a;
@@ -782,6 +782,12 @@ select{
782
782
  }
783
783
  }
784
784
 
785
+ @media (min-width: 970px){
786
+ .container{
787
+ max-width: 970px;
788
+ }
789
+ }
790
+
785
791
  @media (min-width: 1024px){
786
792
  .container{
787
793
  max-width: 1024px;
@@ -883,14 +889,6 @@ select{
883
889
  left: -137px;
884
890
  }
885
891
 
886
- .-left-\[218px\]{
887
- left: -218px;
888
- }
889
-
890
- .-left-\[50px\]{
891
- left: -50px;
892
- }
893
-
894
892
  .-left-\[60\%\]{
895
893
  left: -60%;
896
894
  }
@@ -943,18 +941,10 @@ select{
943
941
  left: 1rem;
944
942
  }
945
943
 
946
- .left-6{
947
- left: 1.5rem;
948
- }
949
-
950
944
  .left-\[0px\]{
951
945
  left: 0px;
952
946
  }
953
947
 
954
- .left-\[108px\]{
955
- left: 108px;
956
- }
957
-
958
948
  .left-\[160\%\]{
959
949
  left: 160%;
960
950
  }
@@ -963,10 +953,6 @@ select{
963
953
  left: 17.6%;
964
954
  }
965
955
 
966
- .left-\[200px\]{
967
- left: 200px;
968
- }
969
-
970
956
  .left-\[45\%\]{
971
957
  left: 45%;
972
958
  }
@@ -1023,10 +1009,6 @@ select{
1023
1009
  top: 1.25rem;
1024
1010
  }
1025
1011
 
1026
- .top-8{
1027
- top: 2rem;
1028
- }
1029
-
1030
1012
  .top-\[112px\]{
1031
1013
  top: 112px;
1032
1014
  }
@@ -1099,6 +1081,14 @@ select{
1099
1081
  z-index: 2;
1100
1082
  }
1101
1083
 
1084
+ .z-\[5\]{
1085
+ z-index: 5;
1086
+ }
1087
+
1088
+ .z-\[6\]{
1089
+ z-index: 6;
1090
+ }
1091
+
1102
1092
  .col-span-1{
1103
1093
  grid-column: span 1 / span 1;
1104
1094
  }
@@ -1246,10 +1236,6 @@ select{
1246
1236
  margin-bottom: 1.5rem;
1247
1237
  }
1248
1238
 
1249
- .-mb-2{
1250
- margin-bottom: -0.5rem;
1251
- }
1252
-
1253
1239
  .-mb-\[112\%\]{
1254
1240
  margin-bottom: -112%;
1255
1241
  }
@@ -1418,6 +1404,10 @@ select{
1418
1404
  margin-right: 30px;
1419
1405
  }
1420
1406
 
1407
+ .mr-\[50px\]{
1408
+ margin-right: 50px;
1409
+ }
1410
+
1421
1411
  .mt-0{
1422
1412
  margin-top: 0px;
1423
1413
  }
@@ -1446,10 +1436,6 @@ select{
1446
1436
  margin-top: 0.5rem;
1447
1437
  }
1448
1438
 
1449
- .mt-20{
1450
- margin-top: 5rem;
1451
- }
1452
-
1453
1439
  .mt-3{
1454
1440
  margin-top: 0.75rem;
1455
1441
  }
@@ -1482,6 +1468,10 @@ select{
1482
1468
  margin-top: 70px;
1483
1469
  }
1484
1470
 
1471
+ .mr-\[16px\]{
1472
+ margin-right: 16px;
1473
+ }
1474
+
1485
1475
  .line-clamp-3{
1486
1476
  overflow: hidden;
1487
1477
  display: -webkit-box;
@@ -1661,10 +1651,6 @@ select{
1661
1651
  height: 90px;
1662
1652
  }
1663
1653
 
1664
- .h-\[calc\(100\%-112px\)\]{
1665
- height: calc(100% - 112px);
1666
- }
1667
-
1668
1654
  .h-\[calc\(100\%-1px\)\]{
1669
1655
  height: calc(100% - 1px);
1670
1656
  }
@@ -1891,6 +1877,10 @@ select{
1891
1877
  width: 100vw;
1892
1878
  }
1893
1879
 
1880
+ .\!w-full{
1881
+ width: 100% !important;
1882
+ }
1883
+
1894
1884
  .min-w-\[11\.5rem\]{
1895
1885
  min-width: 11.5rem;
1896
1886
  }
@@ -1993,6 +1983,10 @@ select{
1993
1983
  max-width: 22rem;
1994
1984
  }
1995
1985
 
1986
+ .max-w-\[242px\]{
1987
+ max-width: 242px;
1988
+ }
1989
+
1996
1990
  .max-w-\[29\.18rem\]{
1997
1991
  max-width: 29.18rem;
1998
1992
  }
@@ -2095,11 +2089,6 @@ select{
2095
2089
  table-layout: fixed;
2096
2090
  }
2097
2091
 
2098
- .origin-top-right{
2099
- -webkit-transform-origin: top right;
2100
- transform-origin: top right;
2101
- }
2102
-
2103
2092
  .-translate-x-1\/2{
2104
2093
  --tw-translate-x: -50%;
2105
2094
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -2570,6 +2559,10 @@ select{
2570
2559
  overflow-x: scroll;
2571
2560
  }
2572
2561
 
2562
+ .overflow-y-scroll{
2563
+ overflow-y: scroll;
2564
+ }
2565
+
2573
2566
  .whitespace-nowrap{
2574
2567
  white-space: nowrap;
2575
2568
  }
@@ -5217,10 +5210,6 @@ select{
5217
5210
  --tw-gradient-to: #854D18 var(--tw-gradient-to-position);
5218
5211
  }
5219
5212
 
5220
- .fill-neutral-150{
5221
- fill: #ECEDF0;
5222
- }
5223
-
5224
5213
  .stroke-amber-100{
5225
5214
  stroke: #FFF3D4;
5226
5215
  }
@@ -5956,10 +5945,6 @@ select{
5956
5945
  padding-right: 12rem;
5957
5946
  }
5958
5947
 
5959
- .pr-6{
5960
- padding-right: 1.5rem;
5961
- }
5962
-
5963
5948
  .pr-7{
5964
5949
  padding-right: 1.75rem;
5965
5950
  }
@@ -5972,10 +5957,6 @@ select{
5972
5957
  padding-right: 10px;
5973
5958
  }
5974
5959
 
5975
- .pr-\[34px\]{
5976
- padding-right: 34px;
5977
- }
5978
-
5979
5960
  .pt-0{
5980
5961
  padding-top: 0px;
5981
5962
  }
@@ -6883,12 +6864,6 @@ select{
6883
6864
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
6884
6865
  }
6885
6866
 
6886
- .shadow-home-drop{
6887
- --tw-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.16);
6888
- --tw-shadow-colored: 0px 10px 30px 0px var(--tw-shadow-color);
6889
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
6890
- }
6891
-
6892
6867
  .shadow-inner{
6893
6868
  --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
6894
6869
  --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
@@ -9547,6 +9522,11 @@ select{
9547
9522
  color: rgb(30 86 227 / var(--tw-text-opacity));
9548
9523
  }
9549
9524
 
9525
+ .group\/split:hover .group-hover\/split\:text-neutral-1000{
9526
+ --tw-text-opacity: 1;
9527
+ color: rgb(0 6 21 / var(--tw-text-opacity));
9528
+ }
9529
+
9550
9530
  .group:hover .group-hover\:text-neutral-1000{
9551
9531
  --tw-text-opacity: 1;
9552
9532
  color: rgb(0 6 21 / var(--tw-text-opacity));
@@ -9718,6 +9698,10 @@ select{
9718
9698
  margin-left: 0px;
9719
9699
  }
9720
9700
 
9701
+ .tb\:mr-4{
9702
+ margin-right: 1rem;
9703
+ }
9704
+
9721
9705
  .tb\:mt-0{
9722
9706
  margin-top: 0px;
9723
9707
  }
@@ -9754,20 +9738,12 @@ select{
9754
9738
  display: inline-flex;
9755
9739
  }
9756
9740
 
9757
- .tb\:grid{
9758
- display: grid;
9759
- }
9760
-
9761
9741
  @media (min-width: 600px){
9762
9742
  .tb\:tb\:grid{
9763
9743
  display: grid;
9764
9744
  }
9765
9745
  }
9766
9746
 
9767
- .tb\:inline-grid{
9768
- display: inline-grid;
9769
- }
9770
-
9771
9747
  .tb\:hidden{
9772
9748
  display: none;
9773
9749
  }
@@ -10003,11 +9979,6 @@ select{
10003
9979
  background-color: rgb(14 165 120 / var(--tw-bg-opacity));
10004
9980
  }
10005
9981
 
10006
- .tb\:bg-neutral-150{
10007
- --tw-bg-opacity: 1;
10008
- background-color: rgb(236 237 240 / var(--tw-bg-opacity));
10009
- }
10010
-
10011
9982
  .tb\:bg-pink-500{
10012
9983
  --tw-bg-opacity: 1;
10013
9984
  background-color: rgb(225 58 124 / var(--tw-bg-opacity));
@@ -10084,6 +10055,10 @@ select{
10084
10055
  padding-right: 0px;
10085
10056
  }
10086
10057
 
10058
+ .tb\:pr-4{
10059
+ padding-right: 1rem;
10060
+ }
10061
+
10087
10062
  .tb\:pt-0{
10088
10063
  padding-top: 0px;
10089
10064
  }
@@ -10621,10 +10596,6 @@ select{
10621
10596
  min-width: 15rem;
10622
10597
  }
10623
10598
 
10624
- .tb-l\:min-w-\[169px\]{
10625
- min-width: 169px;
10626
- }
10627
-
10628
10599
  .tb-l\:min-w-\[400px\]{
10629
10600
  min-width: 400px;
10630
10601
  }
@@ -10633,6 +10604,10 @@ select{
10633
10604
  max-width: 1240px;
10634
10605
  }
10635
10606
 
10607
+ .tb-l\:max-w-\[210px\]{
10608
+ max-width: 210px;
10609
+ }
10610
+
10636
10611
  .tb-l\:max-w-\[658px\]{
10637
10612
  max-width: 658px;
10638
10613
  }
@@ -10721,6 +10696,11 @@ select{
10721
10696
  border-right-color: rgb(229 231 235 / var(--tw-border-opacity));
10722
10697
  }
10723
10698
 
10699
+ .tb-l\:bg-neutral-150{
10700
+ --tw-bg-opacity: 1;
10701
+ background-color: rgb(236 237 240 / var(--tw-bg-opacity));
10702
+ }
10703
+
10724
10704
  .tb-l\:bg-gradient-to-r{
10725
10705
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
10726
10706
  }
@@ -10768,6 +10748,12 @@ select{
10768
10748
  }
10769
10749
  }
10770
10750
 
10751
+ @media (min-width: 970px){
10752
+ .tb-xl\:max-w-\[250px\]{
10753
+ max-width: 250px;
10754
+ }
10755
+ }
10756
+
10771
10757
  @media (min-width: 1024px){
10772
10758
  .lg\:flex{
10773
10759
  display: flex;
@@ -10947,6 +10933,10 @@ select{
10947
10933
  width: 100%;
10948
10934
  }
10949
10935
 
10936
+ .db\:min-w-\[169px\]{
10937
+ min-width: 169px;
10938
+ }
10939
+
10950
10940
  .db\:min-w-\[28\.063rem\]{
10951
10941
  min-width: 28.063rem;
10952
10942
  }
@@ -177,6 +177,7 @@ module.exports = {
177
177
  'tb': '600px',
178
178
  'tb-m': '800px',
179
179
  'tb-l': '905px',
180
+ 'tb-xl':'970px',
180
181
  'db-s':'1024px',
181
182
  'db': '1240px',
182
183
  'db-l': '2560px'