@vaadin/overlay 25.0.0-alpha10 → 25.0.0-alpha12
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 +8 -11
- package/src/styles/vaadin-overlay-base-styles.js +1 -1
- package/src/vaadin-overlay.js +1 -1
- package/vaadin-overlay.js +1 -1
- package/src/styles/vaadin-overlay-core-styles.js +0 -74
- package/theme/lumo/vaadin-overlay-styles.d.ts +0 -1
- package/theme/lumo/vaadin-overlay-styles.js +0 -4
- package/theme/lumo/vaadin-overlay.d.ts +0 -2
- package/theme/lumo/vaadin-overlay.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/styles/*-base-styles.d.ts",
|
|
25
|
-
"!src/styles/*-base-styles.js",
|
|
26
|
-
"theme",
|
|
27
24
|
"vaadin-*.d.ts",
|
|
28
25
|
"vaadin-*.js"
|
|
29
26
|
],
|
|
@@ -36,17 +33,17 @@
|
|
|
36
33
|
],
|
|
37
34
|
"dependencies": {
|
|
38
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha10",
|
|
36
|
+
"@vaadin/a11y-base": "25.0.0-alpha12",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-alpha12",
|
|
38
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha12",
|
|
43
39
|
"lit": "^3.0.0"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
42
|
+
"@vaadin/chai-plugins": "25.0.0-alpha12",
|
|
43
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha12",
|
|
48
44
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha12",
|
|
49
46
|
"sinon": "^18.0.0"
|
|
50
47
|
},
|
|
51
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e75527348f9ba7c363d068c868b9f030c15b84a1"
|
|
52
49
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
8
|
|
|
9
9
|
export const overlayStyles = css`
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -9,7 +9,7 @@ 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 { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { overlayStyles } from './styles/vaadin-overlay-
|
|
12
|
+
import { overlayStyles } from './styles/vaadin-overlay-base-styles.js';
|
|
13
13
|
import { OverlayMixin } from './vaadin-overlay-mixin.js';
|
|
14
14
|
|
|
15
15
|
/**
|
package/vaadin-overlay.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-overlay.js';
|
|
2
2
|
export * from './src/vaadin-overlay.js';
|
|
@@ -1,74 +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
|
-
import { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const overlayStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
z-index: 200;
|
|
11
|
-
position: fixed;
|
|
12
|
-
|
|
13
|
-
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
14
|
-
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
15
|
-
|
|
16
|
-
/* Default position constraints: the entire viewport. Note: themes can
|
|
17
|
-
override this to introduce gaps between the overlay and the viewport. */
|
|
18
|
-
inset: 0;
|
|
19
|
-
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
20
|
-
|
|
21
|
-
/* Override native [popover] user agent styles */
|
|
22
|
-
width: auto;
|
|
23
|
-
height: auto;
|
|
24
|
-
border: none;
|
|
25
|
-
padding: 0;
|
|
26
|
-
background-color: transparent;
|
|
27
|
-
overflow: visible;
|
|
28
|
-
|
|
29
|
-
/* Use flexbox alignment for the overlay part. */
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column; /* makes dropdowns sizing easier */
|
|
32
|
-
/* Align to center by default. */
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
|
|
36
|
-
/* Allow centering when max-width/max-height applies. */
|
|
37
|
-
margin: auto;
|
|
38
|
-
|
|
39
|
-
/* The host is not clickable, only the overlay part is. */
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
|
|
42
|
-
/* Remove tap highlight on touch devices. */
|
|
43
|
-
-webkit-tap-highlight-color: transparent;
|
|
44
|
-
|
|
45
|
-
/* CSS API for host */
|
|
46
|
-
--vaadin-overlay-viewport-bottom: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([hidden]),
|
|
50
|
-
:host(:not([opened]):not([closing])),
|
|
51
|
-
:host(:not([opened]):not([closing])) [part='overlay'] {
|
|
52
|
-
display: none !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
[part='overlay'] {
|
|
56
|
-
overflow: auto;
|
|
57
|
-
pointer-events: auto;
|
|
58
|
-
|
|
59
|
-
/* Prevent overflowing the host */
|
|
60
|
-
max-width: 100%;
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
|
|
63
|
-
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
[part='backdrop'] {
|
|
67
|
-
z-index: -1;
|
|
68
|
-
content: '';
|
|
69
|
-
background: rgba(0, 0, 0, 0.5);
|
|
70
|
-
position: fixed;
|
|
71
|
-
inset: 0;
|
|
72
|
-
pointer-events: auto;
|
|
73
|
-
}
|
|
74
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|