hds-web 1.20.6 → 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/dist/index.css +1 -1
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/HDS/helpers/AlgoliaSearch/searchbox.js +1 -1
- package/src/HDS/helpers/AlgoliaSearch/searchresults.js +2 -2
- package/src/HDS/helpers/AlgoliaSearch/searchwrapper.js +13 -13
- package/src/index.css +12 -5
- package/src/styles/tailwind.css +12 -9
package/package.json
CHANGED
@@ -57,7 +57,7 @@ const DebouncedSearchBox = ({
|
|
57
57
|
<input
|
58
58
|
id="search-input"
|
59
59
|
ref={searchInputRef}
|
60
|
-
className="shodow-none w-full font-bold indent-8 text-2xl tb-m:text-4xl text-neutral-800 placeholder:text-neutral-800 rounded-xl border-0 h-12 focus:border-0 focus:shadow-[none] focus:border-neutral-0 tb:text-2xl"
|
60
|
+
className="shodow-none w-full font-bold indent-8 tb-m:indent-11 text-2xl tb-m:text-4xl text-neutral-800 placeholder:text-neutral-800 rounded-xl border-0 h-12 focus:border-0 focus:shadow-[none] focus:border-neutral-0 tb:text-2xl"
|
61
61
|
type="text"
|
62
62
|
placeholder="Search for tutorials, articles or docs"
|
63
63
|
aria-label="Search"
|
@@ -35,7 +35,7 @@ const HitsHeader = ({ searchResults, indexTitle, showSeparator, allIndex }) => {
|
|
35
35
|
{/* <div className="HitCount">
|
36
36
|
{hitCount} result{hitCount !== 1 ? `s` : ``}
|
37
37
|
</div> */}
|
38
|
-
<Typography textStyle="sub1" className="pb-4 pl-2 flex items-center font-normal sticky tb-m:z-0 top-[170px] tb:top-[160px] tb-m:top-[120px] bg-neutral-0">
|
38
|
+
<Typography textStyle="sub1" className="pb-4 pl-2 flex items-center text-neutral-800 font-normal sticky tb-m:z-0 top-[170px] tb:top-[160px] tb-m:top-[120px] bg-neutral-0">
|
39
39
|
{
|
40
40
|
titleIcon()
|
41
41
|
}
|
@@ -122,7 +122,7 @@ const HitsInIndex = ({ index, show }) => (
|
|
122
122
|
);
|
123
123
|
|
124
124
|
const SearchResult = ({ children, indices, className, id, wrapperRef, activeIndexTypes }) => (
|
125
|
-
<div id={id} className={`${className} search-results
|
125
|
+
<div id={id} className={`${className} search-results clear-both`} ref={wrapperRef}>
|
126
126
|
{children && children}
|
127
127
|
{indices.map(index => (
|
128
128
|
<HitsInIndex index={index} key={index.name} show={activeIndexTypes[index.type]} />
|
@@ -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
|
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="
|
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
@@ -8,7 +8,7 @@
|
|
8
8
|
width: 100%;
|
9
9
|
}
|
10
10
|
.shodow-none:focus {
|
11
|
-
box-shadow: none;
|
11
|
+
box-shadow: none !important;
|
12
12
|
}
|
13
13
|
.marketoFormWrapper .mktoFormRow {
|
14
14
|
width: 100%;
|
@@ -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
|
}
|
@@ -80,6 +86,7 @@
|
|
80
86
|
display: grid;
|
81
87
|
grid-template-columns: repeat(2, 1fr);
|
82
88
|
grid-gap: 40px;
|
89
|
+
padding-top: 26px;
|
83
90
|
}
|
84
91
|
|
85
92
|
.search-results .ais-Hits .ais-Hits-list .ais-Hits-item,
|
package/src/styles/tailwind.css
CHANGED
@@ -1068,10 +1068,6 @@ select{
|
|
1068
1068
|
z-index: 50;
|
1069
1069
|
}
|
1070
1070
|
|
1071
|
-
.z-\[-1\]{
|
1072
|
-
z-index: -1;
|
1073
|
-
}
|
1074
|
-
|
1075
1071
|
.z-\[10000\]{
|
1076
1072
|
z-index: 10000;
|
1077
1073
|
}
|
@@ -7603,7 +7599,7 @@ select{
|
|
7603
7599
|
}
|
7604
7600
|
|
7605
7601
|
.shodow-none:focus {
|
7606
|
-
box-shadow: none;
|
7602
|
+
box-shadow: none !important;
|
7607
7603
|
}
|
7608
7604
|
|
7609
7605
|
.marketoFormWrapper .mktoFormRow {
|
@@ -7660,6 +7656,12 @@ select{
|
|
7660
7656
|
}
|
7661
7657
|
}
|
7662
7658
|
|
7659
|
+
@media (min-width: 800px) {
|
7660
|
+
.hds-hidden-tbm {
|
7661
|
+
display: none;
|
7662
|
+
}
|
7663
|
+
}
|
7664
|
+
|
7663
7665
|
.search-results {
|
7664
7666
|
width: calc(100% - 150px);
|
7665
7667
|
}
|
@@ -7673,6 +7675,7 @@ select{
|
|
7673
7675
|
display: grid;
|
7674
7676
|
grid-template-columns: repeat(2, 1fr);
|
7675
7677
|
grid-gap: 40px;
|
7678
|
+
padding-top: 26px;
|
7676
7679
|
}
|
7677
7680
|
|
7678
7681
|
.search-results .ais-Hits .ais-Hits-list .ais-Hits-item,
|
@@ -11276,10 +11279,6 @@ select{
|
|
11276
11279
|
display: flex;
|
11277
11280
|
}
|
11278
11281
|
|
11279
|
-
.tb-m\:hidden{
|
11280
|
-
display: none;
|
11281
|
-
}
|
11282
|
-
|
11283
11282
|
.tb-m\:w-1\/2{
|
11284
11283
|
width: 50%;
|
11285
11284
|
}
|
@@ -11333,6 +11332,10 @@ select{
|
|
11333
11332
|
padding-top: 4rem;
|
11334
11333
|
}
|
11335
11334
|
|
11335
|
+
.tb-m\:indent-11{
|
11336
|
+
text-indent: 2.75rem;
|
11337
|
+
}
|
11338
|
+
|
11336
11339
|
.tb-m\:text-4xl{
|
11337
11340
|
font-size: 2.25rem;
|
11338
11341
|
line-height: 2.5rem;
|