@shoper/phoenix_design_system 0.2.2-2 → 0.2.2-3

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.
@@ -119,6 +119,7 @@ exports.HModal = HModal_1 = class HModal extends phoenix_light_lit_element.Phoen
119
119
  var _a;
120
120
  if (!this[modal_constants.MODAL_OPENED_PROP]) {
121
121
  this[modal_constants.MODAL_OPENED_PROP] = true;
122
+ this._dispatchModalOpenedEvent();
122
123
  (_a = this._contentRef.value) === null || _a === void 0 ? void 0 : _a.classList.add(`modal_visible`, `modal_show-${this.transition}-start`);
123
124
  window.requestAnimationFrame(() => {
124
125
  setTimeout(() => {
@@ -129,7 +130,6 @@ exports.HModal = HModal_1 = class HModal extends phoenix_light_lit_element.Phoen
129
130
  setTimeout(() => {
130
131
  var _a;
131
132
  (_a = this._contentRef.value) === null || _a === void 0 ? void 0 : _a.classList.remove(`modal_show-${this.transition}-start`, `modal_show-${this.transition}-end`);
132
- this._dispatchModalOpenedEvent();
133
133
  }, transitionDuration);
134
134
  });
135
135
  }
@@ -115,6 +115,7 @@ let HModal = HModal_1 = class HModal extends PhoenixLightLitElement {
115
115
  var _a;
116
116
  if (!this[MODAL_OPENED_PROP]) {
117
117
  this[MODAL_OPENED_PROP] = true;
118
+ this._dispatchModalOpenedEvent();
118
119
  (_a = this._contentRef.value) === null || _a === void 0 ? void 0 : _a.classList.add(`modal_visible`, `modal_show-${this.transition}-start`);
119
120
  window.requestAnimationFrame(() => {
120
121
  setTimeout(() => {
@@ -125,7 +126,6 @@ let HModal = HModal_1 = class HModal extends PhoenixLightLitElement {
125
126
  setTimeout(() => {
126
127
  var _a;
127
128
  (_a = this._contentRef.value) === null || _a === void 0 ? void 0 : _a.classList.remove(`modal_show-${this.transition}-start`, `modal_show-${this.transition}-end`);
128
- this._dispatchModalOpenedEvent();
129
129
  }, transitionDuration);
130
130
  });
131
131
  }
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.2.2-2",
5
+ "version": "0.2.2-3",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",