@justeattakeaway/pie-toast 0.6.0 → 0.7.1

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 (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { LitElement as x, unsafeCSS as A, html as c, nothing as l } from "lit";
2
2
  import { property as p, query as f } from "lit/decorators.js";
3
3
  import { classMap as C } from "lit/directives/class-map.js";
4
- import { RtlMixin as w, dispatchCustomEvent as v, validPropertyValues as k, defineCustomElement as E } from "@justeattakeaway/pie-webc-core";
4
+ import { RtlMixin as w, dispatchCustomEvent as h, validPropertyValues as k, defineCustomElement as E } from "@justeattakeaway/pie-webc-core";
5
5
  import "@justeattakeaway/pie-icon-button";
6
6
  import "@justeattakeaway/pie-button";
7
7
  import "@justeattakeaway/pie-icons-webc/dist/IconClose.js";
@@ -23,7 +23,7 @@ var N = Object.defineProperty, r = (g, t, a, u) => {
23
23
  (m = g[n]) && (e = m(t, a, e) || e);
24
24
  return e && N(t, a, e), e;
25
25
  };
26
- const h = class h extends w(x) {
26
+ const v = class v extends w(x) {
27
27
  constructor() {
28
28
  super(...arguments), this.message = d.message, this.isOpen = d.isOpen, this.variant = d.variant, this.isStrong = d.isStrong, this.isDismissible = d.isDismissible, this.isMultiline = d.isMultiline, this.duration = d.duration, this._timeoutId = null, this._abortController = null;
29
29
  }
@@ -81,7 +81,7 @@ const h = class h extends w(x) {
81
81
  * It aborts all event listeners when toast is closed.
82
82
  */
83
83
  async updated(t) {
84
- t.has("isOpen") && this.isOpen && (v(this, L, { targetNotification: this }), this.duration !== null && this.createAutoDismissEventListeners()), t.has("isOpen") && !this.isOpen && this.abortAndCleanEventListeners();
84
+ t.has("isOpen") && this.isOpen && (h(this, L, { targetNotification: this }), this.duration !== null && this.createAutoDismissEventListeners()), t.has("isOpen") && !this.isOpen && this.abortAndCleanEventListeners();
85
85
  }
86
86
  /**
87
87
  * It handle the action button action.
@@ -89,7 +89,7 @@ const h = class h extends w(x) {
89
89
  * @private
90
90
  */
91
91
  handleActionClick() {
92
- v(this, B, { targetNotification: this });
92
+ h(this, B, { targetNotification: this });
93
93
  }
94
94
  /**
95
95
  * Render the action button depending on action type and its action.
@@ -166,7 +166,7 @@ const h = class h extends w(x) {
166
166
  * @private
167
167
  */
168
168
  closeToastComponent() {
169
- this.isOpen = !1, v(this, T, { targetNotification: this }), this.abortAndCleanEventListeners();
169
+ this.isOpen = !1, h(this, T, { targetNotification: this }), this.abortAndCleanEventListeners();
170
170
  }
171
171
  /**
172
172
  * Util method that returns an icon from a variant that has default icon.
@@ -243,8 +243,8 @@ const h = class h extends w(x) {
243
243
  </div>`;
244
244
  }
245
245
  };
246
- h.styles = A(_);
247
- let i = h;
246
+ v.styles = A(_);
247
+ let i = v;
248
248
  r([
249
249
  p({ type: String })
250
250
  ], i.prototype, "message");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-toast",
3
3
  "description": "PIE Design System Toast built using Web Components",
4
- "version": "0.6.0",
4
+ "version": "0.7.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "**/*.d.ts"
14
14
  ],
15
15
  "pieMetadata": {
16
- "componentStatus": "alpha"
16
+ "componentStatus": "beta"
17
17
  },
18
18
  "scripts": {
19
19
  "build": "run -T vite build",
@@ -37,13 +37,13 @@
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.9.0",
39
39
  "@justeattakeaway/pie-components-config": "0.18.0",
40
- "@justeattakeaway/pie-css": "0.13.1",
40
+ "@justeattakeaway/pie-css": "0.14.1",
41
41
  "cem-plugin-module-file-extensions": "0.0.5"
42
42
  },
43
43
  "dependencies": {
44
44
  "@justeattakeaway/pie-button": "1.1.0",
45
- "@justeattakeaway/pie-icon-button": "1.1.0",
46
- "@justeattakeaway/pie-icons-webc": "1.2.0",
45
+ "@justeattakeaway/pie-icon-button": "1.1.1",
46
+ "@justeattakeaway/pie-icons-webc": "1.3.0",
47
47
  "@justeattakeaway/pie-webc-core": "0.24.2"
48
48
  },
49
49
  "volta": {