@justeattakeaway/pie-toast-provider 0.6.0 → 0.6.2
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.
- package/dist/index.js +5 -5
- package/package.json +3 -3
- package/src/toast-provider.scss +1 -5
package/dist/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import { LitElement as g, nothing as T, html as u, unsafeCSS as b } from "lit";
|
|
|
2
2
|
import { property as h, state as _ } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as y } from "lit/directives/if-defined.js";
|
|
4
4
|
import { classMap as m } from "lit/directives/class-map.js";
|
|
5
|
-
import { RtlMixin as P, dispatchCustomEvent as
|
|
5
|
+
import { RtlMixin as P, dispatchCustomEvent as x, validPropertyValues as $, safeCustomElement as A } from "@justeattakeaway/pie-webc-core";
|
|
6
6
|
import { defaultProps as f } from "@justeattakeaway/pie-toast";
|
|
7
7
|
const l = class l extends g {
|
|
8
8
|
willUpdate() {
|
|
9
9
|
this.getAttribute("v") || this.setAttribute("v", l.v);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
l.v = "0.6.
|
|
12
|
+
l.v = "0.6.2";
|
|
13
13
|
let d = l;
|
|
14
|
-
const O = "*,*:after,*:before{box-sizing:inherit}:root{--pie-animation-slide-translate-start: -100%}.pie-animation--slide-in{animation:pie-animation-slide-in var(--dt-motion-timing-200) var(--dt-motion-easing-out)}.pie-animation--slide-out{animation:pie-animation-slide-out var(--dt-motion-timing-100) var(--dt-motion-easing-in)}@keyframes pie-animation-slide-in{0%{transform:translate(var(--pie-animation-slide-translate-start))}to{transform:translate(0)}}@keyframes pie-animation-slide-out{0%{transform:translate(0)}to{transform:translate(var(--pie-animation-slide-translate-start))}}:host{--toast-provider-z-index: var(--dt-z-index-toast);--toast-provider-offset: var(--dt-spacing-d)
|
|
14
|
+
const O = "*,*:after,*:before{box-sizing:inherit}:root{--pie-animation-slide-translate-start: -100%}.pie-animation--slide-in{animation:pie-animation-slide-in var(--dt-motion-timing-200) var(--dt-motion-easing-out)}.pie-animation--slide-out{animation:pie-animation-slide-out var(--dt-motion-timing-100) var(--dt-motion-easing-in)}@keyframes pie-animation-slide-in{0%{transform:translate(var(--pie-animation-slide-translate-start))}to{transform:translate(0)}}@keyframes pie-animation-slide-out{0%{transform:translate(0)}to{transform:translate(var(--pie-animation-slide-translate-start))}}:host{--toast-provider-z-index: var(--dt-z-index-toast);--toast-provider-offset: var(--dt-spacing-d)}@media (min-width: 769px){:host{--toast-provider-offset: var(--dt-spacing-e)}}.c-toast-provider{position:fixed;z-index:var(--toast-provider-z-index)}.c-toast-provider.c-toast-provider--default{inset-inline-start:var(--toast-provider-offset);inset-block-end:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--default.c-toast-provider--rtl{--pie-animation-slide-translate-start: 100%}.c-toast-provider.c-toast-provider--bottom-left{--pie-animation-slide-translate-start: -100%;left:var(--toast-provider-offset);bottom:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--bottom-right{--pie-animation-slide-translate-start: 100%;right:var(--toast-provider-offset);bottom:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--bottom-center{--pie-animation-slide-translate-start: 0, 100%;left:50%;bottom:var(--toast-provider-offset);transform:translate(-50%)}", w = {
|
|
15
15
|
"error-actionable": 1,
|
|
16
16
|
error: 2,
|
|
17
17
|
"warning-actionable": 3,
|
|
@@ -53,7 +53,7 @@ let r = class extends P(d) {
|
|
|
53
53
|
t.has("_toasts") && this._dispatchQueueUpdateEvent();
|
|
54
54
|
}
|
|
55
55
|
_dispatchQueueUpdateEvent() {
|
|
56
|
-
|
|
56
|
+
x(
|
|
57
57
|
this,
|
|
58
58
|
E,
|
|
59
59
|
this._toasts
|
|
@@ -149,7 +149,7 @@ n([
|
|
|
149
149
|
], r.prototype, "options", 2);
|
|
150
150
|
n([
|
|
151
151
|
h({ type: String }),
|
|
152
|
-
|
|
152
|
+
$(C, D, c.position)
|
|
153
153
|
], r.prototype, "position", 2);
|
|
154
154
|
n([
|
|
155
155
|
_()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-toast-provider",
|
|
3
3
|
"description": "PIE Design System Toast Provider built using Web Components",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
42
42
|
"@justeattakeaway/pie-components-config": "0.20.1",
|
|
43
|
-
"@justeattakeaway/pie-css": "0.17.
|
|
43
|
+
"@justeattakeaway/pie-css": "0.17.2",
|
|
44
44
|
"@justeattakeaway/pie-monorepo-utils": "0.5.1",
|
|
45
45
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@justeattakeaway/pie-toast": "0.10.
|
|
48
|
+
"@justeattakeaway/pie-toast": "0.10.1",
|
|
49
49
|
"@justeattakeaway/pie-webc-core": "1.0.0"
|
|
50
50
|
},
|
|
51
51
|
"volta": {
|
package/src/toast-provider.scss
CHANGED
|
@@ -6,17 +6,13 @@
|
|
|
6
6
|
--toast-provider-z-index: var(--dt-z-index-toast);
|
|
7
7
|
--toast-provider-offset: var(--dt-spacing-d);
|
|
8
8
|
|
|
9
|
-
position: absolute;
|
|
10
|
-
inset: 0;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
|
|
13
9
|
@include media('>md') {
|
|
14
10
|
--toast-provider-offset: var(--dt-spacing-e);
|
|
15
11
|
}
|
|
16
12
|
}
|
|
17
13
|
|
|
18
14
|
.c-toast-provider {
|
|
19
|
-
position:
|
|
15
|
+
position: fixed;
|
|
20
16
|
z-index: var(--toast-provider-z-index);
|
|
21
17
|
|
|
22
18
|
&.c-toast-provider--default {
|