@vaadin/notification 25.0.0-alpha3 → 25.0.0-alpha4

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.0-alpha3",
3
+ "version": "25.0.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,17 +37,17 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/component-base": "25.0.0-alpha3",
41
- "@vaadin/lit-renderer": "25.0.0-alpha3",
42
- "@vaadin/overlay": "25.0.0-alpha3",
43
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha3",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha3",
40
+ "@vaadin/component-base": "25.0.0-alpha4",
41
+ "@vaadin/lit-renderer": "25.0.0-alpha4",
42
+ "@vaadin/overlay": "25.0.0-alpha4",
43
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
44
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/button": "25.0.0-alpha3",
49
- "@vaadin/chai-plugins": "25.0.0-alpha3",
50
- "@vaadin/test-runner-commands": "25.0.0-alpha3",
48
+ "@vaadin/button": "25.0.0-alpha4",
49
+ "@vaadin/chai-plugins": "25.0.0-alpha4",
50
+ "@vaadin/test-runner-commands": "25.0.0-alpha4",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
52
  "sinon": "^18.0.0"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "8367dd20a47f53ca5589ad349a8e286ec2673055"
58
+ "gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
59
59
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const notificationCardStyles: CSSResult;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { css } from 'lit';
7
+
8
+ export const notificationCardStyles = css`
9
+ :host {
10
+ display: block;
11
+ }
12
+
13
+ [part='overlay'] {
14
+ pointer-events: auto;
15
+ }
16
+
17
+ @media (forced-colors: active) {
18
+ [part='overlay'] {
19
+ outline: 3px solid;
20
+ }
21
+ }
22
+ `;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const notificationContainerStyles: CSSResult;
@@ -53,19 +53,3 @@ export const notificationContainerStyles = css`
53
53
  }
54
54
  }
55
55
  `;
56
-
57
- export const notificationCardStyles = css`
58
- :host {
59
- display: block;
60
- }
61
-
62
- [part='overlay'] {
63
- pointer-events: auto;
64
- }
65
-
66
- @media (forced-colors: active) {
67
- [part='overlay'] {
68
- outline: 3px solid;
69
- }
70
- }
71
- `;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
2
7
  import type { OverlayClassMixinClass } from '@vaadin/component-base/src/overlay-class-mixin.js';
3
8
  import type { OverlayStackMixinClass } from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js';
@@ -8,9 +8,11 @@ import { ifDefined } from 'lit/directives/if-defined.js';
8
8
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
10
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
+ import { CSSInjectionMixin } from '@vaadin/vaadin-themable-mixin/css-injection-mixin.js';
11
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
+ import { notificationCardStyles } from './styles/vaadin-notification-card-styles.js';
14
+ import { notificationContainerStyles } from './styles/vaadin-notification-container-styles.js';
12
15
  import { NotificationContainerMixin, NotificationMixin } from './vaadin-notification-mixin.js';
13
- import { notificationCardStyles, notificationContainerStyles } from './vaadin-notification-styles.js';
14
16
 
15
17
  /**
16
18
  * An element used internally by `<vaadin-notification>`. Not intended to be used separately.
@@ -22,7 +24,9 @@ import { notificationCardStyles, notificationContainerStyles } from './vaadin-no
22
24
  * @mixes ThemableMixin
23
25
  * @private
24
26
  */
25
- class NotificationContainer extends NotificationContainerMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
27
+ class NotificationContainer extends NotificationContainerMixin(
28
+ ThemableMixin(ElementMixin(CSSInjectionMixin(PolylitMixin(LitElement)))),
29
+ ) {
26
30
  static get is() {
27
31
  return 'vaadin-notification-container';
28
32
  }
@@ -59,7 +63,7 @@ class NotificationContainer extends NotificationContainerMixin(ThemableMixin(Ele
59
63
  * @mixes ThemableMixin
60
64
  * @private
61
65
  */
62
- class NotificationCard extends ThemableMixin(PolylitMixin(LitElement)) {
66
+ class NotificationCard extends ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))) {
63
67
  static get is() {
64
68
  return 'vaadin-notification-card';
65
69
  }
@@ -138,7 +142,7 @@ class NotificationCard extends ThemableMixin(PolylitMixin(LitElement)) {
138
142
  * @mixes NotificationMixin
139
143
  * @mixes ElementMixin
140
144
  */
141
- class Notification extends NotificationMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
145
+ class Notification extends NotificationMixin(ElementMixin(ThemableMixin(CSSInjectionMixin(PolylitMixin(LitElement))))) {
142
146
  static get is() {
143
147
  return 'vaadin-notification';
144
148
  }
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.0-alpha3",
4
+ "version": "25.0.0-alpha4",
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.0-alpha3",
4
+ "version": "25.0.0-alpha4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {