@fluid-topics/ft-search-bar 0.2.3 → 0.2.4

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.
@@ -180,7 +180,7 @@ export class FtSearchBar extends FtLitElement {
180
180
  ${this.displayFacets ? this.renderMobileFacets() : this.renderSuggestions()}
181
181
  ${this.mobileMenuOpen || this.displayFacets ? html `
182
182
  <ft-button class="ft-search-bar--launch-search"
183
- part="search-bar-actions"
183
+ part="launch-search-in-panel"
184
184
  icon="search"
185
185
  @click=${this.launchSearch}>
186
186
  ${this.labelResolver.resolve("searchButton")}
@@ -191,27 +191,33 @@ export class FtSearchBar extends FtLitElement {
191
191
  renderMobileSearchBarButtons() {
192
192
  if (this.query || this.mobileMenuOpen) {
193
193
  return html `
194
- <ft-button class="ft-search-bar--clear-query"
195
- part="search-bar-actions"
196
- icon="close"
197
- round
198
- label="${this.labelResolver.resolve("clearInputButton")}"
199
- @click=${() => {
194
+ <div class="ft-search-bar--actions"
195
+ part="search-bar-actions">
196
+ <ft-button class="ft-search-bar--clear-query"
197
+ part="clear-query"
198
+ icon="close"
199
+ round
200
+ label="${this.labelResolver.resolve("clearInputButton")}"
201
+ @click=${() => {
200
202
  this.setQuery("");
201
203
  this.mobileMenuOpen = false;
202
204
  this.displayFacets = false;
203
205
  }}
204
- ></ft-button>
206
+ ></ft-button>
207
+ </div>
205
208
  `;
206
209
  }
207
210
  return html `
208
- <ft-button class="ft-search-bar--launch-search"
209
- part="search-bar-actions"
210
- icon="search"
211
- round
212
- label="${this.labelResolver.resolve("searchButton")}"
213
- @click=${() => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }}
214
- ></ft-button>
211
+ <div class="ft-search-bar--actions"
212
+ part="search-bar-actions">
213
+ <ft-button class="ft-search-bar--launch-search"
214
+ part="launch-search-in-bar"
215
+ icon="search"
216
+ round
217
+ label="${this.labelResolver.resolve("searchButton")}"
218
+ @click=${() => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }}
219
+ ></ft-button>
220
+ </div>
215
221
  `;
216
222
  }
217
223
  renderMobileFacets() {
@@ -295,7 +301,7 @@ export class FtSearchBar extends FtLitElement {
295
301
  ${this.renderDesktopFacets()}
296
302
  <div class="ft-search-bar--facets-actions">
297
303
  <ft-button class="ft-search-bar--launch-search"
298
- part="search-bar-actions"
304
+ part="launch-search-in-panel"
299
305
  icon="search"
300
306
  @click=${this.launchSearch}>
301
307
  ${this.labelResolver.resolve("searchButton")}
@@ -341,23 +347,26 @@ export class FtSearchBar extends FtLitElement {
341
347
  }
342
348
  renderDesktopSearchBarButtons() {
343
349
  return html `
344
- ${this.query ? html `
345
- <ft-button class="ft-search-bar--clear-query"
346
- part="search-bar-actions"
347
- icon="close"
350
+ <div class="ft-search-bar--actions"
351
+ part="search-bar-actions">
352
+ ${this.query ? html `
353
+ <ft-button class="ft-search-bar--clear-query"
354
+ part="clear-query"
355
+ icon="close"
356
+ round dense
357
+ label="${this.labelResolver.resolve("clearInputButton")}"
358
+ @click=${() => this.setQuery("")}
359
+ ></ft-button>
360
+ <div class="ft-search-bar--separator"></div>
361
+ ` : null}
362
+ <ft-button class="ft-search-bar--launch-search"
363
+ part="launch-search-in-bar"
364
+ icon="search"
348
365
  round dense
349
- label="${this.labelResolver.resolve("clearInputButton")}"
350
- @click=${() => this.setQuery("")}
366
+ label="${this.labelResolver.resolve("searchButton")}"
367
+ @click=${this.launchSearch}
351
368
  ></ft-button>
352
- <div class="ft-search-bar--separator"></div>
353
- ` : null}
354
- <ft-button class="ft-search-bar--launch-search"
355
- part="search-bar-actions"
356
- icon="search"
357
- round dense
358
- label="${this.labelResolver.resolve("searchButton")}"
359
- @click=${this.launchSearch}
360
- ></ft-button>
369
+ </div>
361
370
  `;
362
371
  }
363
372
  renderFacetsActions() {