@vaadin/notification 24.5.0-alpha3 → 24.5.0-alpha5

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": "24.5.0-alpha3",
3
+ "version": "24.5.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,16 +38,16 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/component-base": "24.5.0-alpha3",
42
- "@vaadin/lit-renderer": "24.5.0-alpha3",
43
- "@vaadin/vaadin-lumo-styles": "24.5.0-alpha3",
44
- "@vaadin/vaadin-material-styles": "24.5.0-alpha3",
45
- "@vaadin/vaadin-themable-mixin": "24.5.0-alpha3",
41
+ "@vaadin/component-base": "24.5.0-alpha5",
42
+ "@vaadin/lit-renderer": "24.5.0-alpha5",
43
+ "@vaadin/vaadin-lumo-styles": "24.5.0-alpha5",
44
+ "@vaadin/vaadin-material-styles": "24.5.0-alpha5",
45
+ "@vaadin/vaadin-themable-mixin": "24.5.0-alpha5",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@esm-bundle/chai": "^4.3.4",
50
- "@vaadin/button": "24.5.0-alpha3",
50
+ "@vaadin/button": "24.5.0-alpha5",
51
51
  "@vaadin/testing-helpers": "^0.6.0",
52
52
  "sinon": "^13.0.2"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "9ccd96c77a1568e625fa44f6809e765c0ba91403"
58
+ "gitHead": "4e57d240ababf0c2db9d674891b90bdf3812e6ae"
59
59
  }
@@ -577,6 +577,12 @@ class Notification extends OverlayClassMixin(ThemePropertyMixin(ElementMixin(Pol
577
577
  }
578
578
  }
579
579
  }
580
+
581
+ /**
582
+ * Fired when the notification is closed.
583
+ *
584
+ * @event closed
585
+ */
580
586
  }
581
587
 
582
588
  defineCustomElement(NotificationContainer);
@@ -132,6 +132,26 @@ registerStyles(
132
132
  animation: lumo-notification-exit-slide-down 300ms;
133
133
  }
134
134
 
135
+ :host([theme='success']) {
136
+ --_focus-ring-gap-color: var(--lumo-success-color);
137
+ --vaadin-focus-ring-color: var(--lumo-success-contrast-color);
138
+ }
139
+
140
+ :host([theme='warning']) {
141
+ --_focus-ring-gap-color: var(--lumo-warning-color);
142
+ --vaadin-focus-ring-color: var(--lumo-warning-contrast-color);
143
+ }
144
+
145
+ :host([theme='error']) {
146
+ --_focus-ring-gap-color: var(--lumo-error-color);
147
+ --vaadin-focus-ring-color: var(--lumo-error-contrast-color);
148
+ }
149
+
150
+ :host([theme='primary']) {
151
+ --_focus-ring-gap-color: var(--lumo-primary-color);
152
+ --vaadin-focus-ring-color: var(--lumo-primary-contrast-color);
153
+ }
154
+
135
155
  :host([theme~='primary']) [part='overlay'] {
136
156
  background: var(--lumo-primary-color);
137
157
  color: var(--lumo-primary-contrast-color);
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": "24.5.0-alpha3",
4
+ "version": "24.5.0-alpha5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -112,6 +112,10 @@
112
112
  }
113
113
  ],
114
114
  "events": [
115
+ {
116
+ "name": "closed",
117
+ "description": "Fired when the notification is closed."
118
+ },
115
119
  {
116
120
  "name": "opened-changed",
117
121
  "description": "Fired when the `opened` property changes."
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/notification",
4
- "version": "24.5.0-alpha3",
4
+ "version": "24.5.0-alpha5",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -54,6 +54,13 @@
54
54
  "kind": "expression"
55
55
  }
56
56
  },
57
+ {
58
+ "name": "@closed",
59
+ "description": "Fired when the notification is closed.",
60
+ "value": {
61
+ "kind": "expression"
62
+ }
63
+ },
57
64
  {
58
65
  "name": "@opened-changed",
59
66
  "description": "Fired when the `opened` property changes.",