@vaadin/dialog 25.0.0-alpha12 → 25.0.0-alpha13

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/dialog",
3
- "version": "25.0.0-alpha12",
3
+ "version": "25.0.0-alpha13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,23 +36,23 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
- "@vaadin/component-base": "25.0.0-alpha12",
40
- "@vaadin/lit-renderer": "25.0.0-alpha12",
41
- "@vaadin/overlay": "25.0.0-alpha12",
42
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha12",
39
+ "@vaadin/component-base": "25.0.0-alpha13",
40
+ "@vaadin/lit-renderer": "25.0.0-alpha13",
41
+ "@vaadin/overlay": "25.0.0-alpha13",
42
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha13",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/a11y-base": "25.0.0-alpha12",
47
- "@vaadin/chai-plugins": "25.0.0-alpha12",
48
- "@vaadin/test-runner-commands": "25.0.0-alpha12",
46
+ "@vaadin/a11y-base": "25.0.0-alpha13",
47
+ "@vaadin/chai-plugins": "25.0.0-alpha13",
48
+ "@vaadin/test-runner-commands": "25.0.0-alpha13",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha12",
50
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha13",
51
51
  "sinon": "^18.0.0"
52
52
  },
53
53
  "web-types": [
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "e75527348f9ba7c363d068c868b9f030c15b84a1"
57
+ "gitHead": "182de596226343392135468f021bbce9e6402011"
58
58
  }
@@ -31,10 +31,9 @@ export const dialogOverlayBase = css`
31
31
  [part='overlay'] {
32
32
  background: var(--vaadin-dialog-background, var(--vaadin-background-color));
33
33
  background-origin: border-box;
34
- border: 0;
35
- box-shadow:
36
- 0 0 0 var(--vaadin-dialog-border-width, 1px) var(--vaadin-dialog-border-color, rgba(0, 0, 0, 0.1)),
37
- var(--vaadin-dialog-box-shadow, 0 8px 24px -4px rgba(0, 0, 0, 0.3));
34
+ border: var(--vaadin-dialog-border-width, 1px) solid
35
+ var(--vaadin-dialog-border-color, var(--vaadin-border-color-subtle));
36
+ box-shadow: var(--vaadin-dialog-box-shadow, 0 8px 24px -4px rgba(0, 0, 0, 0.3));
38
37
  border-radius: var(--vaadin-dialog-border-radius, var(--vaadin-radius-l));
39
38
  width: max-content;
40
39
  min-width: min(var(--vaadin-dialog-min-width, 4em), 100%);
@@ -51,7 +50,7 @@ export const dialogOverlayBase = css`
51
50
  flex: none;
52
51
  pointer-events: none;
53
52
  z-index: 1;
54
- gap: var(--vaadin-dialog-toolbar-gap, var(--vaadin-gap-container-inline));
53
+ gap: var(--vaadin-dialog-toolbar-gap, var(--vaadin-gap-s));
55
54
  }
56
55
 
57
56
  ::slotted(*) {
@@ -61,7 +60,7 @@ export const dialogOverlayBase = css`
61
60
  [part='header'],
62
61
  [part='content'],
63
62
  [part='footer'] {
64
- padding: var(--vaadin-dialog-padding, var(--vaadin-padding));
63
+ padding: var(--vaadin-dialog-padding, var(--vaadin-padding-l));
65
64
  }
66
65
 
67
66
  :host([theme~='no-padding']) [part='content'] {
@@ -4,7 +4,6 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
7
- import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
8
7
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
9
8
  import { DialogBaseMixin } from './vaadin-dialog-base-mixin.js';
10
9
  import { DialogDraggableMixin } from './vaadin-dialog-draggable-mixin.js';
@@ -121,9 +120,7 @@ export type DialogEventMap = DialogCustomEventMap & HTMLElementEventMap;
121
120
  */
122
121
  declare class Dialog extends DialogSizeMixin(
123
122
  DialogDraggableMixin(
124
- DialogResizableMixin(
125
- DialogRendererMixin(DialogBaseMixin(OverlayClassMixin(ThemePropertyMixin(ElementMixin(HTMLElement))))),
126
- ),
123
+ DialogResizableMixin(DialogRendererMixin(DialogBaseMixin(ThemePropertyMixin(ElementMixin(HTMLElement))))),
127
124
  ),
128
125
  ) {
129
126
  addEventListener<K extends keyof DialogEventMap>(
@@ -8,7 +8,6 @@ import { css, html, LitElement } from 'lit';
8
8
  import { ifDefined } from 'lit/directives/if-defined.js';
9
9
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
10
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { OverlayClassMixin } from '@vaadin/component-base/src/overlay-class-mixin.js';
12
11
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
13
12
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
14
13
  import { DialogBaseMixin } from './vaadin-dialog-base-mixin.js';
@@ -85,14 +84,11 @@ export { DialogOverlay } from './vaadin-dialog-overlay.js';
85
84
  * @mixes DialogRendererMixin
86
85
  * @mixes DialogResizableMixin
87
86
  * @mixes DialogSizeMixin
88
- * @mixes OverlayClassMixin
89
87
  */
90
88
  class Dialog extends DialogSizeMixin(
91
89
  DialogDraggableMixin(
92
90
  DialogResizableMixin(
93
- DialogRendererMixin(
94
- DialogBaseMixin(OverlayClassMixin(ThemePropertyMixin(ElementMixin(PolylitMixin(LitElement))))),
95
- ),
91
+ DialogRendererMixin(DialogBaseMixin(ThemePropertyMixin(ElementMixin(PolylitMixin(LitElement))))),
96
92
  ),
97
93
  ),
98
94
  ) {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/dialog",
4
- "version": "25.0.0-alpha12",
4
+ "version": "25.0.0-alpha13",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -130,17 +130,6 @@
130
130
  ]
131
131
  }
132
132
  },
133
- {
134
- "name": "overlay-class",
135
- "description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
136
- "value": {
137
- "type": [
138
- "string",
139
- "null",
140
- "undefined"
141
- ]
142
- }
143
- },
144
133
  {
145
134
  "name": "theme",
146
135
  "description": "The theme variants to apply to the component.",
@@ -304,17 +293,6 @@
304
293
  "undefined"
305
294
  ]
306
295
  }
307
- },
308
- {
309
- "name": "overlayClass",
310
- "description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
311
- "value": {
312
- "type": [
313
- "string",
314
- "null",
315
- "undefined"
316
- ]
317
- }
318
296
  }
319
297
  ],
320
298
  "events": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/dialog",
4
- "version": "25.0.0-alpha12",
4
+ "version": "25.0.0-alpha13",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -124,13 +124,6 @@
124
124
  "kind": "expression"
125
125
  }
126
126
  },
127
- {
128
- "name": ".overlayClass",
129
- "description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
130
- "value": {
131
- "kind": "expression"
132
- }
133
- },
134
127
  {
135
128
  "name": "@closed",
136
129
  "description": "Fired when the dialog is closed.",