@vaadin/notification 25.0.1 → 25.1.0-alpha1

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.1",
3
+ "version": "25.1.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,22 +36,22 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/component-base": "~25.0.1",
40
- "@vaadin/lit-renderer": "~25.0.1",
41
- "@vaadin/vaadin-themable-mixin": "~25.0.1",
39
+ "@vaadin/component-base": "25.1.0-alpha1",
40
+ "@vaadin/lit-renderer": "25.1.0-alpha1",
41
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha1",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/button": "~25.0.1",
46
- "@vaadin/chai-plugins": "~25.0.1",
47
- "@vaadin/test-runner-commands": "~25.0.1",
45
+ "@vaadin/button": "25.1.0-alpha1",
46
+ "@vaadin/chai-plugins": "25.1.0-alpha1",
47
+ "@vaadin/test-runner-commands": "25.1.0-alpha1",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "~25.0.1",
49
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha1",
50
50
  "sinon": "^21.0.0"
51
51
  },
52
52
  "web-types": [
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "ced28c07a8abee586510349b312452c8a555fd10"
56
+ "gitHead": "c789cdd350bcd74b280268a83f5475ad7f2f65e1"
57
57
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { DirectiveResult } from 'lit/directive.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { directive } from 'lit/directive.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { CSSResult } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/component-base/src/styles/style-props.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { CSSResult } from 'lit';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/component-base/src/styles/style-props.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { render } from 'lit';
@@ -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;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { TemplateResult } from 'lit';
@@ -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
  * ```
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { css, html, LitElement } from 'lit';
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.1",
4
+ "version": "25.1.0-alpha1",
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.1",
4
+ "version": "25.1.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {