@shoper/phoenix_design_system 1.11.0-7 → 1.11.0-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.
@@ -9,13 +9,14 @@ var keystrokes_controller = require('../keystrokes_controller/keystrokes_control
9
9
  class BtnController {
10
10
  constructor({ host, callback, target, options = { isNavigable: true } }) {
11
11
  (this.host = host).addController(this);
12
- options.isNavigable ? utilities.UiDomUtils.makeNavigable(this.host) : utilities.UiDomUtils.makeUnnavigable(this.host);
13
- this.host.setAttribute('role', 'button');
12
+ const recipient = target || host;
13
+ options.isNavigable ? utilities.UiDomUtils.makeNavigable(recipient) : utilities.UiDomUtils.makeUnnavigable(recipient);
14
+ recipient.setAttribute('role', 'button');
14
15
  this._keystrokesController = new keystrokes_controller.KeystrokesController({
15
16
  host,
16
17
  keys: ['enter', ' '],
17
18
  callback,
18
- target: target || host
19
+ target: recipient
19
20
  });
20
21
  }
21
22
  hostConnected() { }
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -5,13 +5,14 @@ import { KeystrokesController } from '../keystrokes_controller/keystrokes_contro
5
5
  class BtnController {
6
6
  constructor({ host, callback, target, options = { isNavigable: true } }) {
7
7
  (this.host = host).addController(this);
8
- options.isNavigable ? UiDomUtils.makeNavigable(this.host) : UiDomUtils.makeUnnavigable(this.host);
9
- this.host.setAttribute('role', 'button');
8
+ const recipient = target || host;
9
+ options.isNavigable ? UiDomUtils.makeNavigable(recipient) : UiDomUtils.makeUnnavigable(recipient);
10
+ recipient.setAttribute('role', 'button');
10
11
  this._keystrokesController = new KeystrokesController({
11
12
  host,
12
13
  keys: ['enter', ' '],
13
14
  callback,
14
- target: target || host
15
+ target: recipient
15
16
  });
16
17
  }
17
18
  hostConnected() { }
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
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-7",
5
+ "version": "1.11.0-8",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",