@umbraco-ui/uui-toast-notification 1.0.0-rc.0 → 1.0.0-rc.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # uui-toast-notification
2
2
 
3
- ![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-toast-notification?logoColor=%231B264F)
3
+ [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-toast-notification?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-toast-notification)
4
4
 
5
5
  Umbraco style toast-notification component.
6
6
 
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "color",
10
10
  "description": "Changes the look of the notification to one of the predefined, symbolic looks. Example set this to danger for errors.",
11
- "type": "\"\"|\"primary\"|\"positive\"|\"warning\"|\"danger\"",
11
+ "type": "\"\"|\"default\"|\"primary\"|\"positive\"|\"warning\"|\"danger\"",
12
12
  "default": "\"\\\"\\\"\""
13
13
  },
14
14
  {
@@ -34,7 +34,7 @@
34
34
  "name": "color",
35
35
  "attribute": "color",
36
36
  "description": "Changes the look of the notification to one of the predefined, symbolic looks. Example set this to danger for errors.",
37
- "type": "\"\"|\"primary\"|\"positive\"|\"warning\"|\"danger\"",
37
+ "type": "\"\"|\"default\"|\"primary\"|\"positive\"|\"warning\"|\"danger\"",
38
38
  "default": "\"\\\"\\\"\""
39
39
  },
40
40
  {
package/lib/index.js CHANGED
@@ -37,8 +37,8 @@ let UUIToastNotificationElement = class extends LitElement {
37
37
  this._timer = null;
38
38
  this._pauseTimer = false;
39
39
  this.isOpen = false;
40
- this._animate = false;
41
40
  this._open = false;
41
+ this._animate = false;
42
42
  this._requestAnimationUpdate = 0;
43
43
  this.addEventListener("keyup", (event) => {
44
44
  if (event.key === "Escape") {
@@ -169,7 +169,7 @@ let UUIToastNotificationElement = class extends LitElement {
169
169
  <div id="close">
170
170
  <uui-button
171
171
  .label=${"close"}
172
- ?color=${this.color}
172
+ .color=${this.color}
173
173
  .look=${this.color ? "primary" : "default"}
174
174
  @click=${() => this.open = false}>
175
175
  <uui-icon
@@ -12,11 +12,11 @@ export declare class UUIToastNotificationElement extends LitElement {
12
12
  static styles: import("lit").CSSResult[];
13
13
  /**
14
14
  * Changes the look of the notification to one of the predefined, symbolic looks. Example set this to danger for errors.
15
- * @type {""|"primary"|"positive"|"warning"|"danger"}
15
+ * @type {""|"default"|"primary"|"positive"|"warning"|"danger"}
16
16
  * @attr
17
17
  * @default ""
18
18
  */
19
- color: string;
19
+ color: '' | 'default' | 'positive' | 'warning' | 'danger';
20
20
  private _autoClose;
21
21
  /**
22
22
  * Set an auto-close timer.
@@ -35,13 +35,13 @@ export declare class UUIToastNotificationElement extends LitElement {
35
35
  */
36
36
  resumeAutoClose(): void;
37
37
  private _onOpenTimerComplete;
38
+ private _toastEl;
38
39
  private _timer;
39
40
  private _pauseTimer;
40
- private _toastEl;
41
- private _animationTimeout?;
42
41
  protected isOpen: boolean;
43
- private _animate;
44
42
  private _open;
43
+ private _animate;
44
+ private _animationTimeout?;
45
45
  /**
46
46
  * define if this toast should open or close.
47
47
  * @type boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-toast-notification",
3
- "version": "1.0.0-rc.0",
3
+ "version": "1.0.0-rc.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,11 +30,11 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.0.0-rc.0",
34
- "@umbraco-ui/uui-button": "1.0.0-rc.0",
35
- "@umbraco-ui/uui-css": "1.0.0-rc.0",
36
- "@umbraco-ui/uui-icon": "1.0.0-rc.0",
37
- "@umbraco-ui/uui-icon-registry-essential": "1.0.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.0.0-rc.1",
34
+ "@umbraco-ui/uui-button": "1.0.0-rc.1",
35
+ "@umbraco-ui/uui-css": "1.0.0-rc.1",
36
+ "@umbraco-ui/uui-icon": "1.0.0-rc.1",
37
+ "@umbraco-ui/uui-icon-registry-essential": "1.0.0-rc.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -45,5 +45,5 @@
45
45
  "access": "public"
46
46
  },
47
47
  "homepage": "https://uui.umbraco.com/?path=/story/uui-toast-notification",
48
- "gitHead": "b03d833ef438156f3e87d3ffa29a4dcca7d560cd"
48
+ "gitHead": "127e036dbafa18cc37027591d6548a4cb4700d33"
49
49
  }