@shoper/phoenix_design_system 1.11.0-3 → 1.11.0-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.
@@ -271,7 +271,7 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
271
271
  class="${search_constants.SEARCH_CLASS_NAMES.icon} labeled-icon"
272
272
  tabindex="0"
273
273
  @click=${this._handleOpenSearch}
274
- @keydown=${this._handleOpenSearchWithKeyboard}>
274
+ @keydown=${this._handleOpenSearchWithKeyboard}
275
275
  >
276
276
  <h-icon icon-name="icon-search" size=${icon_constants.ICONS_SIZES.l}></h-icon>
277
277
  <div class="labeled-icon__signature">${this._translations.search}</div>
@@ -11,15 +11,15 @@ var search_constants = require('../../search_constants.js');
11
11
  exports.HSearchClose = class HSearchClose extends phoenix_light_lit_element.PhoenixLightLitElement {
12
12
  constructor() {
13
13
  super();
14
+ this._dispatchCloseEvent = () => {
15
+ this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.close);
16
+ };
14
17
  this._btnController = new btn_controller.BtnController(this, this._dispatchCloseEvent);
15
18
  }
16
19
  connectedCallback() {
17
20
  super.connectedCallback();
18
21
  this.addEventListener('click', this._dispatchCloseEvent);
19
22
  }
20
- _dispatchCloseEvent() {
21
- this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.close);
22
- }
23
23
  };
24
24
  exports.HSearchClose = tslib_es6.__decorate([
25
25
  phoenix_custom_element.phoenixCustomElement(search_constants.SEARCH_COMPONENT_NAMES.closeButton),
@@ -267,7 +267,7 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
267
267
  class="${SEARCH_CLASS_NAMES.icon} labeled-icon"
268
268
  tabindex="0"
269
269
  @click=${this._handleOpenSearch}
270
- @keydown=${this._handleOpenSearchWithKeyboard}>
270
+ @keydown=${this._handleOpenSearchWithKeyboard}
271
271
  >
272
272
  <h-icon icon-name="icon-search" size=${ICONS_SIZES.l}></h-icon>
273
273
  <div class="labeled-icon__signature">${this._translations.search}</div>
@@ -7,15 +7,15 @@ import { SEARCH_CUSTOM_EVENT_NAMES, SEARCH_COMPONENT_NAMES } from '../../search_
7
7
  let HSearchClose = class HSearchClose extends PhoenixLightLitElement {
8
8
  constructor() {
9
9
  super();
10
+ this._dispatchCloseEvent = () => {
11
+ this.emitCustomEvent(SEARCH_CUSTOM_EVENT_NAMES.close);
12
+ };
10
13
  this._btnController = new BtnController(this, this._dispatchCloseEvent);
11
14
  }
12
15
  connectedCallback() {
13
16
  super.connectedCallback();
14
17
  this.addEventListener('click', this._dispatchCloseEvent);
15
18
  }
16
- _dispatchCloseEvent() {
17
- this.emitCustomEvent(SEARCH_CUSTOM_EVENT_NAMES.close);
18
- }
19
19
  };
20
20
  HSearchClose = __decorate([
21
21
  phoenixCustomElement(SEARCH_COMPONENT_NAMES.closeButton),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.11.0-3",
5
+ "version": "1.11.0-5",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",