@@ -105,6 +105,60 @@ exports[`renders correctly 1`] = `
105
105
exports[`renders correctly when it's searchable 1`] = `
106
106
107
107
<div class = " ais-RefinementList ais-RefinementList--noRefinement" >
108
+ <div class = " ais-RefinementList-searchBox" >
109
+ <form action
110
+ role = " search"
111
+ novalidate = " novalidate"
112
+ class = " ais-SearchBox-form"
113
+ >
114
+ <input type = " search"
115
+ autocorrect = " off"
116
+ autocapitalize = " off"
117
+ autocomplete = " off"
118
+ spellcheck = " false"
119
+ required = " required"
120
+ maxlength = " 512"
121
+ aria-label = " Search"
122
+ placeholder = " Search here…"
123
+ class = " ais-SearchBox-input"
124
+ >
125
+ <button type = " submit"
126
+ title = " Search"
127
+ class = " ais-SearchBox-submit"
128
+ >
129
+ <svg role = " img"
130
+ xmlns = " http://www.w3.org/2000/svg"
131
+ width = " 10"
132
+ height = " 10"
133
+ viewbox = " 0 0 40 40"
134
+ class = " ais-SearchBox-submitIcon"
135
+ >
136
+ <path d = " M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"
137
+ fillrule = " evenodd"
138
+ >
139
+ </path >
140
+ </svg >
141
+ </button >
142
+ <button type = " reset"
143
+ title = " Clear"
144
+ hidden = " hidden"
145
+ class = " ais-SearchBox-reset"
146
+ >
147
+ <svg role = " img"
148
+ xmlns = " http://www.w3.org/2000/svg"
149
+ width = " 1em"
150
+ height = " 1em"
151
+ viewbox = " 0 0 20 20"
152
+ class = " ais-SearchBox-resetIcon"
153
+ >
154
+ <path d = " M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"
155
+ fillrule = " evenodd"
156
+ >
157
+ </path >
158
+ </svg >
159
+ </button >
160
+ </form >
161
+ </div >
108
162
<ul class = " ais-RefinementList-list" >
109
163
<li class = " ais-RefinementList-item" >
110
164
<label class = " ais-RefinementList-label" >
@@ -113,7 +167,12 @@ exports[`renders correctly when it's searchable 1`] = `
113
167
value = " yo"
114
168
>
115
169
<span class = " ais-RefinementList-labelText" >
116
- yo
170
+ <span class = " ais-Highlight" >
171
+ y
172
+ <mark class = " ais-Highlight-highlighted" >
173
+ o
174
+ </mark >
175
+ </span >
117
176
</span >
118
177
<span class = " ais-RefinementList-count" >
119
178
20
@@ -127,7 +186,9 @@ exports[`renders correctly when it's searchable 1`] = `
127
186
value = " how"
128
187
>
129
188
<span class = " ais-RefinementList-labelText" >
130
- how
189
+ <span class = " ais-Highlight" >
190
+ how
191
+ </span >
131
192
</span >
132
193
<span class = " ais-RefinementList-count" >
133
194
10
@@ -141,7 +202,9 @@ exports[`renders correctly when it's searchable 1`] = `
141
202
value = " are"
142
203
>
143
204
<span class = " ais-RefinementList-labelText" >
144
- are
205
+ <span class = " ais-Highlight" >
206
+ are
207
+ </span >
145
208
</span >
146
209
<span class = " ais-RefinementList-count" >
147
210
8
@@ -155,7 +218,9 @@ exports[`renders correctly when it's searchable 1`] = `
155
218
value = " you"
156
219
>
157
220
<span class = " ais-RefinementList-labelText" >
158
- you
221
+ <span class = " ais-Highlight" >
222
+ you
223
+ </span >
159
224
</span >
160
225
<span class = " ais-RefinementList-count" >
161
226
9
@@ -169,7 +234,9 @@ exports[`renders correctly when it's searchable 1`] = `
169
234
value = " doing"
170
235
>
171
236
<span class = " ais-RefinementList-labelText" >
172
- doing
237
+ <span class = " ais-Highlight" >
238
+ doing
239
+ </span >
173
240
</span >
174
241
<span class = " ais-RefinementList-count" >
175
242
100
@@ -183,7 +250,9 @@ exports[`renders correctly when it's searchable 1`] = `
183
250
value = " ?"
184
251
>
185
252
<span class = " ais-RefinementList-labelText" >
186
- ?
253
+ <span class = " ais-Highlight" >
254
+ ?
255
+ </span >
187
256
</span >
188
257
<span class = " ais-RefinementList-count" >
189
258
0
0 commit comments