@shoper/phoenix_design_system 0.11.0-1 → 0.11.0

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.
Files changed (34) hide show
  1. package/build/cjs/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_controller_constants.js +2 -2
  2. package/build/cjs/packages/phoenix/src/components/form/input/input.js +8 -0
  3. package/build/cjs/packages/phoenix/src/components/form/input/input.js.map +1 -1
  4. package/build/cjs/packages/phoenix/src/components/form/input/input_control.js +5 -5
  5. package/build/cjs/packages/phoenix/src/components/form/radio/radio.js +2 -2
  6. package/build/cjs/packages/phoenix/src/components/form/radio/radio_content.js +6 -1
  7. package/build/cjs/packages/phoenix/src/components/form/radio/radio_content.js.map +1 -1
  8. package/build/cjs/packages/phoenix/src/components/form/radio/radio_control.js +5 -5
  9. package/build/cjs/packages/phoenix/src/components/form/switch/switch.js +2 -2
  10. package/build/cjs/packages/phoenix/src/components/form/switch/switch_content.js +6 -1
  11. package/build/cjs/packages/phoenix/src/components/form/switch/switch_content.js.map +1 -1
  12. package/build/cjs/packages/phoenix/src/components/form/switch/switch_control.js +5 -5
  13. package/build/esm/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_controller_constants.d.ts +2 -2
  14. package/build/esm/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_controller_constants.js +2 -2
  15. package/build/esm/packages/phoenix/src/components/form/input/input.d.ts +2 -0
  16. package/build/esm/packages/phoenix/src/components/form/input/input.js +8 -0
  17. package/build/esm/packages/phoenix/src/components/form/input/input.js.map +1 -1
  18. package/build/esm/packages/phoenix/src/components/form/input/input_control.d.ts +2 -2
  19. package/build/esm/packages/phoenix/src/components/form/input/input_control.js +5 -5
  20. package/build/esm/packages/phoenix/src/components/form/radio/radio.d.ts +2 -2
  21. package/build/esm/packages/phoenix/src/components/form/radio/radio.js +2 -2
  22. package/build/esm/packages/phoenix/src/components/form/radio/radio_content.d.ts +1 -0
  23. package/build/esm/packages/phoenix/src/components/form/radio/radio_content.js +6 -1
  24. package/build/esm/packages/phoenix/src/components/form/radio/radio_content.js.map +1 -1
  25. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.d.ts +2 -2
  26. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.js +5 -5
  27. package/build/esm/packages/phoenix/src/components/form/switch/switch.d.ts +2 -2
  28. package/build/esm/packages/phoenix/src/components/form/switch/switch.js +2 -2
  29. package/build/esm/packages/phoenix/src/components/form/switch/switch_content.d.ts +1 -0
  30. package/build/esm/packages/phoenix/src/components/form/switch/switch_content.js +6 -1
  31. package/build/esm/packages/phoenix/src/components/form/switch/switch_content.js.map +1 -1
  32. package/build/esm/packages/phoenix/src/components/form/switch/switch_control.d.ts +2 -2
  33. package/build/esm/packages/phoenix/src/components/form/switch/switch_control.js +5 -5
  34. package/package.json +1 -1
@@ -10,8 +10,8 @@ const BASE_FORM_CONTROL_PROPS = {
10
10
  required: 'required',
11
11
  hidden: 'hidden',
12
12
  readonly: 'readonly',
13
- id: 'id',
14
- name: 'name',
13
+ controlId: 'controlId',
14
+ controlName: 'controlName',
15
15
  value: 'value'
16
16
  };
17
17
 
@@ -35,6 +35,14 @@ exports.HInput = class HInput extends phoenix_light_lit_element.PhoenixLightLitE
35
35
  this.classList.add(cssClasses);
36
36
  }
37
37
  };
38
+ tslib_es6.__decorate([
39
+ decorators.property({ type: String }),
40
+ tslib_es6.__metadata("design:type", String)
41
+ ], exports.HInput.prototype, "controlId", void 0);
42
+ tslib_es6.__decorate([
43
+ decorators.property({ type: String }),
44
+ tslib_es6.__metadata("design:type", String)
45
+ ], exports.HInput.prototype, "controlName", void 0);
38
46
  tslib_es6.__decorate([
39
47
  decorators.property({ type: String }),
40
48
  tslib_es6.__metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA,oBAAoB,0CAA8C;AAClE;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA,oBAAoB,0CAA8C;AAClE;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -38,8 +38,8 @@ exports.HInputControl = class HInputControl extends phoenix_light_lit_element.Ph
38
38
  super.render();
39
39
  return lit.html `
40
40
  <input
41
- id="${this.id}"
42
- name="${this.name}"
41
+ id="${this.controlId}"
42
+ name="${this.controlName}"
43
43
  type="${this.type}"
44
44
  value="${this.value}"
45
45
  class="${input_constants.INPUT_CONTROL_CSS_CLASSES.inputControl}"
@@ -56,15 +56,15 @@ exports.HInputControl = class HInputControl extends phoenix_light_lit_element.Ph
56
56
  tslib_es6.__decorate([
57
57
  decorators.property({ type: String }),
58
58
  tslib_es6.__metadata("design:type", String)
59
- ], exports.HInputControl.prototype, "type", void 0);
59
+ ], exports.HInputControl.prototype, "controlId", void 0);
60
60
  tslib_es6.__decorate([
61
61
  decorators.property({ type: String }),
62
62
  tslib_es6.__metadata("design:type", String)
63
- ], exports.HInputControl.prototype, "id", void 0);
63
+ ], exports.HInputControl.prototype, "controlName", void 0);
64
64
  tslib_es6.__decorate([
65
65
  decorators.property({ type: String }),
66
66
  tslib_es6.__metadata("design:type", String)
67
- ], exports.HInputControl.prototype, "name", void 0);
67
+ ], exports.HInputControl.prototype, "type", void 0);
68
68
  tslib_es6.__decorate([
69
69
  decorators.property({ type: Boolean }),
70
70
  tslib_es6.__metadata("design:type", Object)
@@ -41,11 +41,11 @@ exports.HRadio = class HRadio extends phoenix_light_lit_element.PhoenixLightLitE
41
41
  tslib_es6.__decorate([
42
42
  decorators.property({ type: String }),
43
43
  tslib_es6.__metadata("design:type", String)
44
- ], exports.HRadio.prototype, "id", void 0);
44
+ ], exports.HRadio.prototype, "controlId", void 0);
45
45
  tslib_es6.__decorate([
46
46
  decorators.property({ type: String }),
47
47
  tslib_es6.__metadata("design:type", String)
48
- ], exports.HRadio.prototype, "name", void 0);
48
+ ], exports.HRadio.prototype, "controlName", void 0);
49
49
  tslib_es6.__decorate([
50
50
  decorators.property({ type: Boolean }),
51
51
  tslib_es6.__metadata("design:type", Object)
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
6
6
  var lit = require('lit');
7
+ var decorators = require('lit/decorators');
7
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element.js');
8
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
9
10
  var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
@@ -24,7 +25,7 @@ exports.HRadioContent = class HRadioContent extends phoenix_light_lit_element.Ph
24
25
  render() {
25
26
  super.render();
26
27
  return lit.html `
27
- <label class="${label_constants.LABEL_CSS_CLASSES.label}" for="${this.id}">${this.getSlot(radio_constants.RADIO_SLOTS.label)}</label>
28
+ <label class="${label_constants.LABEL_CSS_CLASSES.label}" for="${this.controlId}">${this.getSlot(radio_constants.RADIO_SLOTS.label)}</label>
28
29
 
29
30
  ${this.hasSlot(radio_constants.RADIO_SLOTS.description)
30
31
  ? lit.html ` <div class="${radio_constants.RADIO_CONTROL_CSS_CLASSES.radioDescription}">${this.getSlot(radio_constants.RADIO_SLOTS.description)}</div> `
@@ -32,6 +33,10 @@ exports.HRadioContent = class HRadioContent extends phoenix_light_lit_element.Ph
32
33
  `;
33
34
  }
34
35
  };
36
+ tslib_es6.__decorate([
37
+ decorators.property({ type: String }),
38
+ tslib_es6.__metadata("design:type", String)
39
+ ], exports.HRadioContent.prototype, "controlId", void 0);
35
40
  exports.HRadioContent = tslib_es6.__decorate([
36
41
  phoenix_custom_element.phoenixCustomElement('h-radio-content'),
37
42
  tslib_es6.__metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -38,8 +38,8 @@ exports.HRadioControl = class HRadioControl extends phoenix_light_lit_element.Ph
38
38
  <input
39
39
  type="radio"
40
40
  class="${radio_constants.RADIO_CONTROL_CSS_CLASSES.radioInput}"
41
- id="${this.id}"
42
- name="${this.name}"
41
+ id="${this.controlId}"
42
+ name="${this.controlName}"
43
43
  value="${this.value}"
44
44
  ?disabled="${this.disabled}"
45
45
  ?required="${this.required}"
@@ -49,18 +49,18 @@ exports.HRadioControl = class HRadioControl extends phoenix_light_lit_element.Ph
49
49
  @change="${this._handleChangeEvent}"
50
50
  />
51
51
 
52
- <label class="${radio_constants.RADIO_CONTROL_CSS_CLASSES.radioLabel}" for="${this.id}"></label>
52
+ <label class="${radio_constants.RADIO_CONTROL_CSS_CLASSES.radioLabel}" for="${this.controlId}"></label>
53
53
  `;
54
54
  }
55
55
  };
56
56
  tslib_es6.__decorate([
57
57
  decorators.property({ type: String }),
58
58
  tslib_es6.__metadata("design:type", String)
59
- ], exports.HRadioControl.prototype, "id", void 0);
59
+ ], exports.HRadioControl.prototype, "controlId", void 0);
60
60
  tslib_es6.__decorate([
61
61
  decorators.property({ type: String }),
62
62
  tslib_es6.__metadata("design:type", String)
63
- ], exports.HRadioControl.prototype, "name", void 0);
63
+ ], exports.HRadioControl.prototype, "controlName", void 0);
64
64
  tslib_es6.__decorate([
65
65
  decorators.property({ type: Boolean }),
66
66
  tslib_es6.__metadata("design:type", Object)
@@ -41,11 +41,11 @@ exports.HSwitch = class HSwitch extends phoenix_light_lit_element.PhoenixLightLi
41
41
  tslib_es6.__decorate([
42
42
  decorators.property({ type: String }),
43
43
  tslib_es6.__metadata("design:type", String)
44
- ], exports.HSwitch.prototype, "id", void 0);
44
+ ], exports.HSwitch.prototype, "controlId", void 0);
45
45
  tslib_es6.__decorate([
46
46
  decorators.property({ type: String }),
47
47
  tslib_es6.__metadata("design:type", String)
48
- ], exports.HSwitch.prototype, "name", void 0);
48
+ ], exports.HSwitch.prototype, "controlName", void 0);
49
49
  tslib_es6.__decorate([
50
50
  decorators.property({ type: Boolean }),
51
51
  tslib_es6.__metadata("design:type", Object)
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
6
6
  var lit = require('lit');
7
+ var decorators = require('lit/decorators');
7
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element.js');
8
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
9
10
  var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
@@ -24,7 +25,7 @@ exports.HSwitchContent = class HSwitchContent extends phoenix_light_lit_element.
24
25
  render() {
25
26
  super.render();
26
27
  return lit.html `
27
- <label class="${label_constants.LABEL_CSS_CLASSES.label}" for="${this.id}">${this.getSlot(switch_constants.SWITCH_SLOTS.label)}</label>
28
+ <label class="${label_constants.LABEL_CSS_CLASSES.label}" for="${this.controlId}">${this.getSlot(switch_constants.SWITCH_SLOTS.label)}</label>
28
29
 
29
30
  ${this.hasSlot(switch_constants.SWITCH_SLOTS.description)
30
31
  ? lit.html ` <div class="${switch_constants.SWITCH_CONTROL_CSS_CLASSES.switchDescription}">${this.getSlot(switch_constants.SWITCH_SLOTS.description)}</div> `
@@ -32,6 +33,10 @@ exports.HSwitchContent = class HSwitchContent extends phoenix_light_lit_element.
32
33
  `;
33
34
  }
34
35
  };
36
+ tslib_es6.__decorate([
37
+ decorators.property({ type: String }),
38
+ tslib_es6.__metadata("design:type", String)
39
+ ], exports.HSwitchContent.prototype, "controlId", void 0);
35
40
  exports.HSwitchContent = tslib_es6.__decorate([
36
41
  phoenix_custom_element.phoenixCustomElement('h-switch-content'),
37
42
  tslib_es6.__metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -38,8 +38,8 @@ exports.HSwitchControl = class HSwitchControl extends phoenix_light_lit_element.
38
38
  <input
39
39
  type="checkbox"
40
40
  class="${switch_constants.SWITCH_CONTROL_CSS_CLASSES.switchInput}"
41
- id="${this.id}"
42
- name="${this.name}"
41
+ id="${this.controlId}"
42
+ name="${this.controlName}"
43
43
  value="${this.value}"
44
44
  ?disabled="${this.disabled}"
45
45
  ?required="${this.required}"
@@ -49,18 +49,18 @@ exports.HSwitchControl = class HSwitchControl extends phoenix_light_lit_element.
49
49
  @change="${this._handleChangeEvent}"
50
50
  />
51
51
 
52
- <label class="${switch_constants.SWITCH_CONTROL_CSS_CLASSES.switchLabel}" for="${this.id}"></label>
52
+ <label class="${switch_constants.SWITCH_CONTROL_CSS_CLASSES.switchLabel}" for="${this.controlId}"></label>
53
53
  `;
54
54
  }
55
55
  };
56
56
  tslib_es6.__decorate([
57
57
  decorators.property({ type: String }),
58
58
  tslib_es6.__metadata("design:type", String)
59
- ], exports.HSwitchControl.prototype, "id", void 0);
59
+ ], exports.HSwitchControl.prototype, "controlId", void 0);
60
60
  tslib_es6.__decorate([
61
61
  decorators.property({ type: String }),
62
62
  tslib_es6.__metadata("design:type", String)
63
- ], exports.HSwitchControl.prototype, "name", void 0);
63
+ ], exports.HSwitchControl.prototype, "controlName", void 0);
64
64
  tslib_es6.__decorate([
65
65
  decorators.property({ type: Boolean }),
66
66
  tslib_es6.__metadata("design:type", Object)
@@ -6,7 +6,7 @@ export declare const BASE_FORM_CONTROL_PROPS: {
6
6
  readonly required: "required";
7
7
  readonly hidden: "hidden";
8
8
  readonly readonly: "readonly";
9
- readonly id: "id";
10
- readonly name: "name";
9
+ readonly controlId: "controlId";
10
+ readonly controlName: "controlName";
11
11
  readonly value: "value";
12
12
  };
@@ -6,8 +6,8 @@ const BASE_FORM_CONTROL_PROPS = {
6
6
  required: 'required',
7
7
  hidden: 'hidden',
8
8
  readonly: 'readonly',
9
- id: 'id',
10
- name: 'name',
9
+ controlId: 'controlId',
10
+ controlName: 'controlName',
11
11
  value: 'value'
12
12
  };
13
13
 
@@ -1,6 +1,8 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  import type { TInputSizesType } from "./input_types";
3
3
  export declare class HInput extends PhoenixLightLitElement {
4
+ controlId: string;
5
+ controlName: string;
4
6
  size?: TInputSizesType;
5
7
  withButton: boolean;
6
8
  disabled: boolean;
@@ -31,6 +31,14 @@ let HInput = class HInput extends PhoenixLightLitElement {
31
31
  this.classList.add(cssClasses);
32
32
  }
33
33
  };
34
+ __decorate([
35
+ property({ type: String }),
36
+ __metadata("design:type", String)
37
+ ], HInput.prototype, "controlId", void 0);
38
+ __decorate([
39
+ property({ type: String }),
40
+ __metadata("design:type", String)
41
+ ], HInput.prototype, "controlName", void 0);
34
42
  __decorate([
35
43
  property({ type: String }),
36
44
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,9 +2,9 @@ import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element"
2
2
  import { TemplateResult } from 'lit';
3
3
  import type { TInputControlType } from "./input_types";
4
4
  export declare class HInputControl extends PhoenixLightLitElement {
5
+ controlId: string;
6
+ controlName: string;
5
7
  type: TInputControlType;
6
- id: string;
7
- name: string;
8
8
  disabled: boolean;
9
9
  required: boolean;
10
10
  hidden: boolean;
@@ -34,8 +34,8 @@ let HInputControl = class HInputControl extends PhoenixLightLitElement {
34
34
  super.render();
35
35
  return html `
36
36
  <input
37
- id="${this.id}"
38
- name="${this.name}"
37
+ id="${this.controlId}"
38
+ name="${this.controlName}"
39
39
  type="${this.type}"
40
40
  value="${this.value}"
41
41
  class="${INPUT_CONTROL_CSS_CLASSES.inputControl}"
@@ -52,15 +52,15 @@ let HInputControl = class HInputControl extends PhoenixLightLitElement {
52
52
  __decorate([
53
53
  property({ type: String }),
54
54
  __metadata("design:type", String)
55
- ], HInputControl.prototype, "type", void 0);
55
+ ], HInputControl.prototype, "controlId", void 0);
56
56
  __decorate([
57
57
  property({ type: String }),
58
58
  __metadata("design:type", String)
59
- ], HInputControl.prototype, "id", void 0);
59
+ ], HInputControl.prototype, "controlName", void 0);
60
60
  __decorate([
61
61
  property({ type: String }),
62
62
  __metadata("design:type", String)
63
- ], HInputControl.prototype, "name", void 0);
63
+ ], HInputControl.prototype, "type", void 0);
64
64
  __decorate([
65
65
  property({ type: Boolean }),
66
66
  __metadata("design:type", Object)
@@ -1,7 +1,7 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  export declare class HRadio extends PhoenixLightLitElement {
3
- id: string;
4
- name: string;
3
+ controlId: string;
4
+ controlName: string;
5
5
  disabled: boolean;
6
6
  required: boolean;
7
7
  hidden: boolean;
@@ -37,11 +37,11 @@ let HRadio = class HRadio extends PhoenixLightLitElement {
37
37
  __decorate([
38
38
  property({ type: String }),
39
39
  __metadata("design:type", String)
40
- ], HRadio.prototype, "id", void 0);
40
+ ], HRadio.prototype, "controlId", void 0);
41
41
  __decorate([
42
42
  property({ type: String }),
43
43
  __metadata("design:type", String)
44
- ], HRadio.prototype, "name", void 0);
44
+ ], HRadio.prototype, "controlName", void 0);
45
45
  __decorate([
46
46
  property({ type: Boolean }),
47
47
  __metadata("design:type", Object)
@@ -1,6 +1,7 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  import { TemplateResult } from 'lit';
3
3
  export declare class HRadioContent extends PhoenixLightLitElement {
4
+ controlId: string;
4
5
  constructor();
5
6
  connectedCallback(): void;
6
7
  protected render(): TemplateResult;
@@ -1,5 +1,6 @@
1
1
  import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
2
2
  import { html, nothing } from 'lit';
3
+ import { property } from 'lit/decorators';
3
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
4
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
5
6
  import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
@@ -20,7 +21,7 @@ let HRadioContent = class HRadioContent extends PhoenixLightLitElement {
20
21
  render() {
21
22
  super.render();
22
23
  return html `
23
- <label class="${LABEL_CSS_CLASSES.label}" for="${this.id}">${this.getSlot(RADIO_SLOTS.label)}</label>
24
+ <label class="${LABEL_CSS_CLASSES.label}" for="${this.controlId}">${this.getSlot(RADIO_SLOTS.label)}</label>
24
25
 
25
26
  ${this.hasSlot(RADIO_SLOTS.description)
26
27
  ? html ` <div class="${RADIO_CONTROL_CSS_CLASSES.radioDescription}">${this.getSlot(RADIO_SLOTS.description)}</div> `
@@ -28,6 +29,10 @@ let HRadioContent = class HRadioContent extends PhoenixLightLitElement {
28
29
  `;
29
30
  }
30
31
  };
32
+ __decorate([
33
+ property({ type: String }),
34
+ __metadata("design:type", String)
35
+ ], HRadioContent.prototype, "controlId", void 0);
31
36
  HRadioContent = __decorate([
32
37
  phoenixCustomElement('h-radio-content'),
33
38
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,8 +1,8 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  import { TemplateResult } from 'lit';
3
3
  export declare class HRadioControl extends PhoenixLightLitElement {
4
- id: string;
5
- name: string;
4
+ controlId: string;
5
+ controlName: string;
6
6
  disabled: boolean;
7
7
  required: boolean;
8
8
  hidden: boolean;
@@ -34,8 +34,8 @@ let HRadioControl = class HRadioControl extends PhoenixLightLitElement {
34
34
  <input
35
35
  type="radio"
36
36
  class="${RADIO_CONTROL_CSS_CLASSES.radioInput}"
37
- id="${this.id}"
38
- name="${this.name}"
37
+ id="${this.controlId}"
38
+ name="${this.controlName}"
39
39
  value="${this.value}"
40
40
  ?disabled="${this.disabled}"
41
41
  ?required="${this.required}"
@@ -45,18 +45,18 @@ let HRadioControl = class HRadioControl extends PhoenixLightLitElement {
45
45
  @change="${this._handleChangeEvent}"
46
46
  />
47
47
 
48
- <label class="${RADIO_CONTROL_CSS_CLASSES.radioLabel}" for="${this.id}"></label>
48
+ <label class="${RADIO_CONTROL_CSS_CLASSES.radioLabel}" for="${this.controlId}"></label>
49
49
  `;
50
50
  }
51
51
  };
52
52
  __decorate([
53
53
  property({ type: String }),
54
54
  __metadata("design:type", String)
55
- ], HRadioControl.prototype, "id", void 0);
55
+ ], HRadioControl.prototype, "controlId", void 0);
56
56
  __decorate([
57
57
  property({ type: String }),
58
58
  __metadata("design:type", String)
59
- ], HRadioControl.prototype, "name", void 0);
59
+ ], HRadioControl.prototype, "controlName", void 0);
60
60
  __decorate([
61
61
  property({ type: Boolean }),
62
62
  __metadata("design:type", Object)
@@ -1,7 +1,7 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  export declare class HSwitch extends PhoenixLightLitElement {
3
- id: string;
4
- name: string;
3
+ controlId: string;
4
+ controlName: string;
5
5
  disabled: boolean;
6
6
  required: boolean;
7
7
  hidden: boolean;
@@ -37,11 +37,11 @@ let HSwitch = class HSwitch extends PhoenixLightLitElement {
37
37
  __decorate([
38
38
  property({ type: String }),
39
39
  __metadata("design:type", String)
40
- ], HSwitch.prototype, "id", void 0);
40
+ ], HSwitch.prototype, "controlId", void 0);
41
41
  __decorate([
42
42
  property({ type: String }),
43
43
  __metadata("design:type", String)
44
- ], HSwitch.prototype, "name", void 0);
44
+ ], HSwitch.prototype, "controlName", void 0);
45
45
  __decorate([
46
46
  property({ type: Boolean }),
47
47
  __metadata("design:type", Object)
@@ -1,6 +1,7 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  import { TemplateResult } from 'lit';
3
3
  export declare class HSwitchContent extends PhoenixLightLitElement {
4
+ controlId: string;
4
5
  constructor();
5
6
  connectedCallback(): void;
6
7
  protected render(): TemplateResult;
@@ -1,5 +1,6 @@
1
1
  import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
2
2
  import { html, nothing } from 'lit';
3
+ import { property } from 'lit/decorators';
3
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
4
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
5
6
  import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
@@ -20,7 +21,7 @@ let HSwitchContent = class HSwitchContent extends PhoenixLightLitElement {
20
21
  render() {
21
22
  super.render();
22
23
  return html `
23
- <label class="${LABEL_CSS_CLASSES.label}" for="${this.id}">${this.getSlot(SWITCH_SLOTS.label)}</label>
24
+ <label class="${LABEL_CSS_CLASSES.label}" for="${this.controlId}">${this.getSlot(SWITCH_SLOTS.label)}</label>
24
25
 
25
26
  ${this.hasSlot(SWITCH_SLOTS.description)
26
27
  ? html ` <div class="${SWITCH_CONTROL_CSS_CLASSES.switchDescription}">${this.getSlot(SWITCH_SLOTS.description)}</div> `
@@ -28,6 +29,10 @@ let HSwitchContent = class HSwitchContent extends PhoenixLightLitElement {
28
29
  `;
29
30
  }
30
31
  };
32
+ __decorate([
33
+ property({ type: String }),
34
+ __metadata("design:type", String)
35
+ ], HSwitchContent.prototype, "controlId", void 0);
31
36
  HSwitchContent = __decorate([
32
37
  phoenixCustomElement('h-switch-content'),
33
38
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,8 +1,8 @@
1
1
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
2
2
  import { TemplateResult } from 'lit';
3
3
  export declare class HSwitchControl extends PhoenixLightLitElement {
4
- id: string;
5
- name: string;
4
+ controlId: string;
5
+ controlName: string;
6
6
  disabled: boolean;
7
7
  required: boolean;
8
8
  hidden: boolean;
@@ -34,8 +34,8 @@ let HSwitchControl = class HSwitchControl extends PhoenixLightLitElement {
34
34
  <input
35
35
  type="checkbox"
36
36
  class="${SWITCH_CONTROL_CSS_CLASSES.switchInput}"
37
- id="${this.id}"
38
- name="${this.name}"
37
+ id="${this.controlId}"
38
+ name="${this.controlName}"
39
39
  value="${this.value}"
40
40
  ?disabled="${this.disabled}"
41
41
  ?required="${this.required}"
@@ -45,18 +45,18 @@ let HSwitchControl = class HSwitchControl extends PhoenixLightLitElement {
45
45
  @change="${this._handleChangeEvent}"
46
46
  />
47
47
 
48
- <label class="${SWITCH_CONTROL_CSS_CLASSES.switchLabel}" for="${this.id}"></label>
48
+ <label class="${SWITCH_CONTROL_CSS_CLASSES.switchLabel}" for="${this.controlId}"></label>
49
49
  `;
50
50
  }
51
51
  };
52
52
  __decorate([
53
53
  property({ type: String }),
54
54
  __metadata("design:type", String)
55
- ], HSwitchControl.prototype, "id", void 0);
55
+ ], HSwitchControl.prototype, "controlId", void 0);
56
56
  __decorate([
57
57
  property({ type: String }),
58
58
  __metadata("design:type", String)
59
- ], HSwitchControl.prototype, "name", void 0);
59
+ ], HSwitchControl.prototype, "controlName", void 0);
60
60
  __decorate([
61
61
  property({ type: Boolean }),
62
62
  __metadata("design:type", Object)
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": "0.11.0-1",
5
+ "version": "0.11.0",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",