@vaadin/notification 25.0.3 → 25.1.0-alpha2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/notification",
3
- "version": "25.0.3",
3
+ "version": "25.1.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,23 +36,23 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/component-base": "~25.0.3",
40
- "@vaadin/lit-renderer": "~25.0.3",
41
- "@vaadin/vaadin-themable-mixin": "~25.0.3",
39
+ "@vaadin/component-base": "25.1.0-alpha2",
40
+ "@vaadin/lit-renderer": "25.1.0-alpha2",
41
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha2",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "~25.0.3",
46
- "@vaadin/button": "~25.0.3",
47
- "@vaadin/chai-plugins": "~25.0.3",
48
- "@vaadin/test-runner-commands": "~25.0.3",
45
+ "@vaadin/aura": "25.1.0-alpha2",
46
+ "@vaadin/button": "25.1.0-alpha2",
47
+ "@vaadin/chai-plugins": "25.1.0-alpha2",
48
+ "@vaadin/test-runner-commands": "25.1.0-alpha2",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "~25.0.3",
50
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha2",
51
51
  "sinon": "^21.0.0"
52
52
  },
53
53
  "web-types": [
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "a4b57a083b721045770f1f3700edd699872cd7fb"
57
+ "gitHead": "dfeb6e14643ec923e5505ca645f7354c6dc170ec"
58
58
  }
@@ -229,6 +229,9 @@ export const NotificationMixin = (superClass) =>
229
229
  if (options && options.theme) {
230
230
  notification.setAttribute('theme', options.theme);
231
231
  }
232
+ if (options && options.className) {
233
+ notification.overlayClass = options.className;
234
+ }
232
235
  notification.renderer = renderer;
233
236
  document.body.appendChild(notification);
234
237
  notification.opened = true;
@@ -16,6 +16,7 @@ export * from './vaadin-notification-mixin.js';
16
16
 
17
17
  export interface ShowOptions {
18
18
  assertive?: boolean;
19
+ className?: string;
19
20
  duration?: number;
20
21
  position?: NotificationPosition;
21
22
  theme?: string;
@@ -105,8 +106,9 @@ declare class Notification extends NotificationMixin(ElementMixin(HTMLElement))
105
106
  * ```ts
106
107
  * {
107
108
  * assertive?: boolean
108
- * position?: string
109
+ * className?: string
109
110
  * duration?: number
111
+ * position?: string
110
112
  * theme?: string
111
113
  * }
112
114
  * ```
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/notification",
4
- "version": "25.0.3",
4
+ "version": "25.1.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/notification",
4
- "version": "25.0.3",
4
+ "version": "25.1.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {