@vaadin/overlay 24.3.0-alpha1 → 24.3.0-alpha11

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": "24.3.0-alpha1",
3
+ "version": "24.3.0-alpha11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,8 +21,6 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
- "!src/vaadin-lit-overlay.d.ts",
25
- "!src/vaadin-lit-overlay.js",
26
24
  "theme",
27
25
  "vaadin-*.d.ts",
28
26
  "vaadin-*.js"
@@ -38,17 +36,17 @@
38
36
  "dependencies": {
39
37
  "@open-wc/dedupe-mixin": "^1.3.0",
40
38
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.3.0-alpha1",
42
- "@vaadin/component-base": "24.3.0-alpha1",
43
- "@vaadin/vaadin-lumo-styles": "24.3.0-alpha1",
44
- "@vaadin/vaadin-material-styles": "24.3.0-alpha1",
45
- "@vaadin/vaadin-themable-mixin": "24.3.0-alpha1"
39
+ "@vaadin/a11y-base": "24.3.0-alpha11",
40
+ "@vaadin/component-base": "24.3.0-alpha11",
41
+ "@vaadin/vaadin-lumo-styles": "24.3.0-alpha11",
42
+ "@vaadin/vaadin-material-styles": "24.3.0-alpha11",
43
+ "@vaadin/vaadin-themable-mixin": "24.3.0-alpha11"
46
44
  },
47
45
  "devDependencies": {
48
46
  "@esm-bundle/chai": "^4.3.4",
49
- "@vaadin/testing-helpers": "^0.5.0",
50
- "lit": "^2.0.0",
47
+ "@vaadin/testing-helpers": "^0.6.0",
48
+ "lit": "^3.0.0",
51
49
  "sinon": "^13.0.2"
52
50
  },
53
- "gitHead": "9ca6f3ca220a777e8eea181a1f5717e39a732240"
51
+ "gitHead": "123cf569a1b6ef6f4ef5fe8e60cb8d988699b98c"
54
52
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { LitElement } from 'lit';
7
+ import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
8
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
9
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
10
+ import { OverlayMixin } from './vaadin-overlay-mixin.js';
11
+
12
+ /**
13
+ * LitElement based version of `<vaadin-overlay>` web component.
14
+ *
15
+ * ## Disclaimer
16
+ *
17
+ * This component is an experiment not intended for publishing to npm.
18
+ * There is no ETA regarding specific Vaadin version where it'll land.
19
+ * Feel free to try this code in your apps as per Apache 2.0 license.
20
+ */
21
+ declare class Overlay extends OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement)))) {}
22
+
23
+ export { Overlay };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { html, LitElement } from 'lit';
7
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
+ import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
+ import { OverlayMixin } from './vaadin-overlay-mixin.js';
12
+ import { overlayStyles } from './vaadin-overlay-styles.js';
13
+
14
+ /**
15
+ * LitElement based version of `<vaadin-overlay>` web component.
16
+ *
17
+ * ## Disclaimer
18
+ *
19
+ * This component is an experiment not intended for publishing to npm.
20
+ * There is no ETA regarding specific Vaadin version where it'll land.
21
+ * Feel free to try this code in your apps as per Apache 2.0 license.
22
+ */
23
+ class Overlay extends OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LitElement)))) {
24
+ static get is() {
25
+ return 'vaadin-overlay';
26
+ }
27
+
28
+ static get styles() {
29
+ return overlayStyles;
30
+ }
31
+
32
+ /** @protected */
33
+ render() {
34
+ return html`
35
+ <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
36
+ <div part="overlay" id="overlay" tabindex="0">
37
+ <div part="content" id="content">
38
+ <slot></slot>
39
+ </div>
40
+ </div>
41
+ `;
42
+ }
43
+ }
44
+
45
+ defineCustomElement(Overlay);
46
+
47
+ export { Overlay };