hds-web 1.20.7 → 1.20.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.20.7",
3
+ "version": "1.20.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -66,9 +66,9 @@ const IndexTypeFilter = ({ activeIndexTypes, setActiveIndexTypes }) => {
66
66
  };
67
67
 
68
68
  return (
69
- <div className="relative">
69
+ <div className="relative">
70
70
  <div className="tb-m:min-w-[182px] static tb-m:sticky top-[116px] self-start">
71
- <ul className="hidden tb-m:block bg-neutral-0 shadow-md p-4 rounded-2xl">
71
+ <ul className="hds-hidden tb-m:block bg-neutral-0 shadow-md p-4 rounded-2xl">
72
72
  {Object.values(INDEX_TYPES).map((index) => (
73
73
  <li key={index} className="flex items-center mb-2 last:mb-0 tb-m:mr-0">
74
74
  <button
@@ -81,21 +81,21 @@ const IndexTypeFilter = ({ activeIndexTypes, setActiveIndexTypes }) => {
81
81
  className={`${(activeIndexTypes[index] && index === 'All') ? "text-neutral-0 " : ""} ${(activeIndexTypes[index] && !showAll) ? 'text-neutral-0' : ''} `
82
82
  }
83
83
  >
84
- {index}
84
+ {index}
85
85
  </Typography>
86
86
  </button>
87
87
  </li>
88
88
  ))}
89
89
  </ul>
90
-
90
+
91
91
  </div>
92
- <div className="relative tb-m:hidden">
92
+ <div className="relative hds-hidden-tbm">
93
93
  <button
94
94
  onClick={() => setShowDropdown(!showDropdown)}
95
95
  className="capitalize cursor-pointer py-1 px-3 w-full border border-neutral-300 text-left rounded-full text-neutral-500 bg-transparent"
96
96
  >
97
97
  {Object.values(INDEX_TYPES).find((index) => activeIndexTypes[index]) || "All"}
98
-
98
+
99
99
  </button>
100
100
  {showDropdown && (
101
101
  <ul className="absolute top-full left-0 w-full bg-neutral-0 shadow-md z-[20] p-2 rounded-3xl mt-1">
@@ -112,7 +112,7 @@ const IndexTypeFilter = ({ activeIndexTypes, setActiveIndexTypes }) => {
112
112
  </ul>
113
113
  )}
114
114
  </div>
115
-
115
+
116
116
  </div>
117
117
  );
118
118
  };
@@ -125,7 +125,7 @@ export default function SearchWrapper({ indices, ...props }) {
125
125
  }
126
126
  const algoliaClient = algoliasearch(
127
127
  ALGOLIA_APP_ID,
128
- ALGOLIA_SEARCH_KEY
128
+ ALGOLIA_SEARCH_KEY
129
129
  );
130
130
 
131
131
  const searchClient = {
@@ -146,7 +146,7 @@ export default function SearchWrapper({ indices, ...props }) {
146
146
  },
147
147
  };
148
148
 
149
-
149
+
150
150
  const defaultIndexTypesState = Object.values(INDEX_TYPES).reduce((acc, index) => {
151
151
  acc[index] = true;
152
152
  return acc;
@@ -156,7 +156,7 @@ export default function SearchWrapper({ indices, ...props }) {
156
156
  useEffect(() => {
157
157
  setActiveIndexTypes(defaultIndexTypesState);
158
158
  }, []);
159
-
159
+
160
160
  return (
161
161
  <InstantSearch
162
162
  searchClient={searchClient}
@@ -166,7 +166,7 @@ export default function SearchWrapper({ indices, ...props }) {
166
166
  <SearchBox />
167
167
  <CustomAllResults indices={indices}>
168
168
  <div className="tb-m:flex gap-10">
169
- <div className="hidden tb-m:flex">
169
+ <div className="hds-hidden tb-m:flex">
170
170
  <IndexTypeFilter
171
171
  activeIndexTypes={activeIndexTypes}
172
172
  setActiveIndexTypes={setActiveIndexTypes}
@@ -178,7 +178,7 @@ export default function SearchWrapper({ indices, ...props }) {
178
178
  wrapperRef={wrapperRef}
179
179
  activeIndexTypes={activeIndexTypes}
180
180
  className="search-results">
181
- <div className="tb-m:hidden sticky top-[124px] tb:top-[114px] z-10 bg-neutral-0 pb-3">
181
+ <div className="hds-hidden-tbm sticky top-[124px] tb:top-[114px] z-10 bg-neutral-0 pb-3">
182
182
  <IndexTypeFilter
183
183
  activeIndexTypes={activeIndexTypes}
184
184
  setActiveIndexTypes={setActiveIndexTypes}
@@ -189,4 +189,4 @@ export default function SearchWrapper({ indices, ...props }) {
189
189
  </CustomAllResults>
190
190
  </InstantSearch>
191
191
  );
192
- }
192
+ }
package/src/index.css CHANGED
@@ -50,17 +50,17 @@
50
50
  }
51
51
 
52
52
  .marketoFormWrapper .mktoButtonRow .mktoButtonWrap .mktoButton {
53
-
53
+
54
54
  height: 48px;
55
55
  color: #35C4F0;
56
-
57
-
56
+
57
+
58
58
  }
59
59
 
60
60
 
61
61
  .hds-hidden{
62
62
  display: none;
63
-
63
+
64
64
  }
65
65
  @media (min-width: 905px) {
66
66
  .hds-hidden-tbl {
@@ -68,6 +68,12 @@
68
68
  }
69
69
  }
70
70
 
71
+ @media (min-width: 800px) {
72
+ .hds-hidden-tbm {
73
+ display: none;
74
+ }
75
+ }
76
+
71
77
  .search-results {
72
78
  width: calc(100% - 150px);
73
79
  }
@@ -7656,6 +7656,12 @@ select{
7656
7656
  }
7657
7657
  }
7658
7658
 
7659
+ @media (min-width: 800px) {
7660
+ .hds-hidden-tbm {
7661
+ display: none;
7662
+ }
7663
+ }
7664
+
7659
7665
  .search-results {
7660
7666
  width: calc(100% - 150px);
7661
7667
  }
@@ -11273,10 +11279,6 @@ select{
11273
11279
  display: flex;
11274
11280
  }
11275
11281
 
11276
- .tb-m\:hidden{
11277
- display: none;
11278
- }
11279
-
11280
11282
  .tb-m\:w-1\/2{
11281
11283
  width: 50%;
11282
11284
  }