@vaadin/overlay 25.0.0-alpha3 → 25.0.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/overlay",
3
- "version": "25.0.0-alpha3",
3
+ "version": "25.0.0-alpha5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,8 +21,8 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
- "!src/*-base-styles.d.ts",
25
- "!src/*-base-styles.js",
24
+ "!src/styles/*-base-styles.d.ts",
25
+ "!src/styles/*-base-styles.js",
26
26
  "theme",
27
27
  "vaadin-*.d.ts",
28
28
  "vaadin-*.js"
@@ -36,17 +36,17 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/a11y-base": "25.0.0-alpha3",
40
- "@vaadin/component-base": "25.0.0-alpha3",
41
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha3",
42
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha3",
39
+ "@vaadin/a11y-base": "25.0.0-alpha5",
40
+ "@vaadin/component-base": "25.0.0-alpha5",
41
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha5",
42
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha5",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "25.0.0-alpha3",
47
- "@vaadin/test-runner-commands": "25.0.0-alpha3",
46
+ "@vaadin/chai-plugins": "25.0.0-alpha5",
47
+ "@vaadin/test-runner-commands": "25.0.0-alpha5",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
49
  "sinon": "^18.0.0"
50
50
  },
51
- "gitHead": "8367dd20a47f53ca5589ad349a8e286ec2673055"
51
+ "gitHead": "7dc87bb2a3cae81ed53259fa10b58f990d50c6fd"
52
52
  }
@@ -50,7 +50,7 @@ export const overlayStyles = css`
50
50
  background: var(--vaadin-overlay-background, var(--_vaadin-background));
51
51
  border: var(--vaadin-overlay-border, 1px solid var(--_vaadin-border-color));
52
52
  border-radius: var(--vaadin-overlay-border-radius, var(--_vaadin-radius-m));
53
- box-shadow: var(--vaadin-overlay-box-shadow, 0 8px 24px -4px hsl(0 0 0 / 0.3));
53
+ box-shadow: var(--vaadin-overlay-box-shadow, 0 8px 24px -4px rgba(0, 0, 0, 0.3));
54
54
  box-sizing: border-box;
55
55
  max-width: 100%;
56
56
  overflow: auto;
@@ -23,10 +23,14 @@ const getOverlayInstances = () => getAttachedInstances().filter((el) => el.$.ove
23
23
  /**
24
24
  * Returns true if the overlay is the last one in the opened overlays stack.
25
25
  * @param {HTMLElement} overlay
26
+ * @param {function(HTMLElement): boolean} filter
26
27
  * @return {boolean}
27
28
  * @protected
28
29
  */
29
- export const isLastOverlay = (overlay) => overlay === getOverlayInstances().pop();
30
+ export const isLastOverlay = (overlay, filter = (_overlay) => true) => {
31
+ const filteredOverlays = getOverlayInstances().filter(filter);
32
+ return overlay === filteredOverlays.pop();
33
+ };
30
34
 
31
35
  const overlayMap = new WeakMap();
32
36
 
@@ -8,8 +8,8 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
8
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
9
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
10
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
+ import { overlayStyles } from './styles/vaadin-overlay-core-styles.js';
11
12
  import { OverlayMixin } from './vaadin-overlay-mixin.js';
12
- import { overlayStyles } from './vaadin-overlay-styles.js';
13
13
 
14
14
  /**
15
15
  * `<vaadin-overlay>` is a Web Component for creating overlays. The content of the overlay
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- export { overlayStyles } from './vaadin-overlay-core-styles.js';