@vaadin/menu-bar 25.0.0-alpha7 → 25.0.0-alpha8

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/menu-bar",
3
- "version": "25.0.0-alpha7",
3
+ "version": "25.0.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,6 +21,8 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
+ "!src/styles/*-base-styles.d.ts",
25
+ "!src/styles/*-base-styles.js",
24
26
  "theme",
25
27
  "vaadin-*.d.ts",
26
28
  "vaadin-*.js",
@@ -35,21 +37,21 @@
35
37
  ],
36
38
  "dependencies": {
37
39
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.0.0-alpha7",
39
- "@vaadin/button": "25.0.0-alpha7",
40
- "@vaadin/component-base": "25.0.0-alpha7",
41
- "@vaadin/context-menu": "25.0.0-alpha7",
42
- "@vaadin/item": "25.0.0-alpha7",
43
- "@vaadin/list-box": "25.0.0-alpha7",
44
- "@vaadin/overlay": "25.0.0-alpha7",
45
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha7",
46
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha7",
40
+ "@vaadin/a11y-base": "25.0.0-alpha8",
41
+ "@vaadin/button": "25.0.0-alpha8",
42
+ "@vaadin/component-base": "25.0.0-alpha8",
43
+ "@vaadin/context-menu": "25.0.0-alpha8",
44
+ "@vaadin/item": "25.0.0-alpha8",
45
+ "@vaadin/list-box": "25.0.0-alpha8",
46
+ "@vaadin/overlay": "25.0.0-alpha8",
47
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha8",
48
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha8",
47
49
  "lit": "^3.0.0"
48
50
  },
49
51
  "devDependencies": {
50
- "@vaadin/chai-plugins": "25.0.0-alpha7",
51
- "@vaadin/icon": "25.0.0-alpha7",
52
- "@vaadin/test-runner-commands": "25.0.0-alpha7",
52
+ "@vaadin/chai-plugins": "25.0.0-alpha8",
53
+ "@vaadin/icon": "25.0.0-alpha8",
54
+ "@vaadin/test-runner-commands": "25.0.0-alpha8",
53
55
  "@vaadin/testing-helpers": "^2.0.0",
54
56
  "sinon": "^18.0.0"
55
57
  },
@@ -57,5 +59,5 @@
57
59
  "web-types.json",
58
60
  "web-types.lit.json"
59
61
  ],
60
- "gitHead": "87f72707ce6866892f8be5782fa0da008e87dcbc"
62
+ "gitHead": "ebf53673d5f639d2b1b6f2b31f640f530643ee2f"
61
63
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const menuBarStyles: CSSResult;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 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 menuBarStyles = css`
9
+ :host {
10
+ display: block;
11
+ }
12
+
13
+ :host([hidden]) {
14
+ display: none !important;
15
+ }
16
+
17
+ [part='container'] {
18
+ display: flex;
19
+ flex-wrap: nowrap;
20
+ margin: calc((var(--vaadin-focus-ring-width) + 1px) * -1);
21
+ overflow: hidden;
22
+ padding: calc(var(--vaadin-focus-ring-width) + 1px);
23
+ position: relative;
24
+ width: 100%;
25
+ /* stylelint-disable length-zero-no-unit */
26
+ --_gap: var(--vaadin-menu-bar-gap, 0px);
27
+ --_bw: var(--vaadin-button-border-width, 1px);
28
+ gap: var(--_gap);
29
+ --_rad-button: var(--vaadin-button-border-radius, var(--vaadin-radius-m));
30
+ --_rad: min(var(--_gap) * 1000, var(--_rad-button));
31
+ }
32
+
33
+ ::slotted(vaadin-menu-bar-button:not(:first-of-type)) {
34
+ margin-inline-start: min(var(--_bw) * -1 + var(--_gap) * 1000, 0px);
35
+ }
36
+
37
+ ::slotted(vaadin-menu-bar-button) {
38
+ border-radius: var(--_rad);
39
+ }
40
+
41
+ ::slotted([first-visible]),
42
+ :host([has-single-button]) ::slotted([slot='overflow']) {
43
+ border-start-start-radius: var(--_rad-button);
44
+ border-end-start-radius: var(--_rad-button);
45
+ }
46
+
47
+ ::slotted(:is([last-visible], [slot='overflow'])) {
48
+ border-start-end-radius: var(--_rad-button);
49
+ border-end-end-radius: var(--_rad-button);
50
+ }
51
+
52
+ :host([theme~='end-aligned']) ::slotted(vaadin-menu-bar-button[first-visible]),
53
+ :host([theme~='end-aligned'][has-single-button]) ::slotted(vaadin-menu-bar-button) {
54
+ margin-inline-start: auto;
55
+ }
56
+ `;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const menuBarButtonStyles: CSSResult;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 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 menuBarButtonStyles = css`
9
+ :host {
10
+ flex-shrink: 0;
11
+ }
12
+
13
+ :host([focus-ring]) {
14
+ z-index: 1;
15
+ }
16
+
17
+ :host([slot='overflow']) {
18
+ margin-inline-end: 0;
19
+ }
20
+
21
+ .vaadin-button-container {
22
+ gap: inherit;
23
+ }
24
+
25
+ :host(:not([slot='overflow']):not([theme~='icon'])[aria-haspopup]) [part='suffix'] {
26
+ display: flex;
27
+ align-items: center;
28
+ gap: inherit;
29
+ }
30
+
31
+ :host(:not([slot='overflow']):not([theme~='icon'])[aria-haspopup]) [part='suffix']::after {
32
+ background: currentColor;
33
+ content: '';
34
+ height: var(--vaadin-icon-size, 1lh);
35
+ mask-image: var(--_vaadin-icon-chevron-down);
36
+ width: var(--vaadin-icon-size, 1lh);
37
+ }
38
+
39
+ ::slotted(vaadin-menu-bar-item) {
40
+ padding: 0;
41
+ gap: 0;
42
+ }
43
+
44
+ ::slotted(vaadin-menu-bar-item)::after {
45
+ display: none;
46
+ }
47
+ `;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const menuBarItemStyles: CSSResult;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { contextMenuItemStyles } from '@vaadin/context-menu/src/styles/vaadin-context-menu-item-base-styles.js';
7
+
8
+ export const menuBarItemStyles = contextMenuItemStyles;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const menuBarItemStyles: CSSResult;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { itemStyles } from '@vaadin/item/src/styles/vaadin-item-core-styles.js';
7
+
8
+ export const menuBarItemStyles = [itemStyles];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2019 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const menuBarOverlayStyles: CSSResult;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2016 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { menuOverlayStyles } from '@vaadin/context-menu/src/styles/vaadin-menu-overlay-base-styles.js';
7
+ import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-base-styles.js';
8
+
9
+ export const menuBarOverlayStyles = [overlayStyles, menuOverlayStyles];
@@ -7,10 +7,10 @@ import { html, LitElement } from 'lit';
7
7
  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
- import { itemStyles } from '@vaadin/item/src/styles/vaadin-item-core-styles.js';
11
10
  import { ItemMixin } from '@vaadin/item/src/vaadin-item-mixin.js';
12
11
  import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
13
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
+ import { menuBarItemStyles } from './styles/vaadin-menu-bar-item-core-styles.js';
14
14
 
15
15
  /**
16
16
  * An element used internally by `<vaadin-menu-bar>`. Not intended to be used separately.
@@ -22,13 +22,13 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
22
22
  * @mixes ThemableMixin
23
23
  * @protected
24
24
  */
25
- class MenuBarItem extends ItemMixin(ThemableMixin(DirMixin(LumoInjectionMixin(PolylitMixin(LitElement))))) {
25
+ class MenuBarItem extends ItemMixin(ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
26
26
  static get is() {
27
27
  return 'vaadin-menu-bar-item';
28
28
  }
29
29
 
30
30
  static get styles() {
31
- return itemStyles;
31
+ return menuBarItemStyles;
32
32
  }
33
33
 
34
34
  /** @protected */
@@ -22,7 +22,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
22
22
  * @mixes ThemableMixin
23
23
  * @protected
24
24
  */
25
- class MenuBarListBox extends ListMixin(ThemableMixin(DirMixin(LumoInjectionMixin(PolylitMixin(LitElement))))) {
25
+ class MenuBarListBox extends ListMixin(ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
26
26
  static get is() {
27
27
  return 'vaadin-menu-bar-list-box';
28
28
  }
@@ -274,11 +274,6 @@ export const MenuBarMixin = (superClass) =>
274
274
  return Array.from(this.querySelectorAll('vaadin-menu-bar-button'));
275
275
  }
276
276
 
277
- /** @private */
278
- get _subMenu() {
279
- return this.shadowRoot.querySelector('vaadin-menu-bar-submenu');
280
- }
281
-
282
277
  /** @private */
283
278
  get _hasOverflow() {
284
279
  return this._overflow && !this._overflow.hasAttribute('hidden');
@@ -297,6 +292,20 @@ export const MenuBarMixin = (superClass) =>
297
292
 
298
293
  this.setAttribute('role', 'menubar');
299
294
 
295
+ this._subMenuController = new SlotController(this, 'submenu', 'vaadin-menu-bar-submenu', {
296
+ initializer: (menu) => {
297
+ menu.setAttribute('is-root', '');
298
+
299
+ menu.addEventListener('item-selected', this.__onItemSelected.bind(this));
300
+ menu.addEventListener('close-all-menus', this.__onEscapeClose.bind(this));
301
+
302
+ const overlay = menu._overlayElement;
303
+ overlay.addEventListener('keydown', this.__boundOnContextMenuKeydown);
304
+
305
+ this._subMenu = menu;
306
+ },
307
+ });
308
+
300
309
  this._overflowController = new SlotController(this, 'overflow', 'vaadin-menu-bar-button', {
301
310
  initializer: (btn) => {
302
311
  btn.setAttribute('hidden', '');
@@ -313,17 +322,13 @@ export const MenuBarMixin = (superClass) =>
313
322
  this._overflow = btn;
314
323
  },
315
324
  });
325
+
326
+ this.addController(this._subMenuController);
316
327
  this.addController(this._overflowController);
317
328
 
318
329
  this.addEventListener('mousedown', () => this._hideTooltip(true));
319
330
  this.addEventListener('mouseleave', () => this._hideTooltip());
320
331
 
321
- this._subMenu.addEventListener('item-selected', this.__onItemSelected.bind(this));
322
- this._subMenu.addEventListener('close-all-menus', this.__onEscapeClose.bind(this));
323
-
324
- const overlay = this._subMenu._overlayElement;
325
- overlay.addEventListener('keydown', this.__boundOnContextMenuKeydown);
326
-
327
332
  this._container = this.shadowRoot.querySelector('[part="container"]');
328
333
  }
329
334
 
@@ -343,6 +348,10 @@ export const MenuBarMixin = (superClass) =>
343
348
  this.__updateSubMenu();
344
349
  }
345
350
 
351
+ if (props.has('overlayClass')) {
352
+ this._subMenu.overlayClass = this.overlayClass;
353
+ }
354
+
346
355
  if (props.has('_theme')) {
347
356
  this._themeChanged(this._theme);
348
357
  }
@@ -669,6 +678,7 @@ export const MenuBarMixin = (superClass) =>
669
678
  _hideTooltip(immediate) {
670
679
  const tooltip = this._tooltipController && this._tooltipController.node;
671
680
  if (tooltip) {
681
+ this._tooltipController.setContext({ item: null });
672
682
  tooltip._stateController.close(immediate);
673
683
  }
674
684
  }
@@ -25,7 +25,7 @@ import { menuBarOverlayStyles } from './styles/vaadin-menu-bar-overlay-core-styl
25
25
  * @protected
26
26
  */
27
27
  export class MenuBarOverlay extends MenuOverlayMixin(
28
- OverlayMixin(DirMixin(ThemableMixin(LumoInjectionMixin(PolylitMixin(LitElement))))),
28
+ OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))),
29
29
  ) {
30
30
  static get is() {
31
31
  return 'vaadin-menu-bar-overlay';
@@ -43,7 +43,7 @@ export const SubMenuMixin = (superClass) =>
43
43
 
44
44
  // Only handle 1st level submenu
45
45
  if (this.hasAttribute('is-root')) {
46
- this.getRootNode().host._close();
46
+ this.parentElement._close();
47
47
  }
48
48
  }
49
49
 
@@ -30,13 +30,13 @@ export interface MenuBarEventMap<TItem extends MenuBarItem = MenuBarItem>
30
30
  *
31
31
  * To create the menu bar, first add the component to the page:
32
32
  *
33
- * ```
33
+ * ```html
34
34
  * <vaadin-menu-bar></vaadin-menu-bar>
35
35
  * ```
36
36
  *
37
37
  * And then use [`items`](#/elements/vaadin-menu-bar#property-items) property to initialize the structure:
38
38
  *
39
- * ```
39
+ * ```js
40
40
  * document.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];
41
41
  * ```
42
42
  *
@@ -22,13 +22,13 @@ import { MenuBarMixin } from './vaadin-menu-bar-mixin.js';
22
22
  *
23
23
  * To create the menu bar, first add the component to the page:
24
24
  *
25
- * ```
25
+ * ```html
26
26
  * <vaadin-menu-bar></vaadin-menu-bar>
27
27
  * ```
28
28
  *
29
29
  * And then use [`items`](#/elements/vaadin-menu-bar#property-items) property to initialize the structure:
30
30
  *
31
- * ```
31
+ * ```js
32
32
  * document.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];
33
33
  * ```
34
34
  *
@@ -77,7 +77,7 @@ import { MenuBarMixin } from './vaadin-menu-bar-mixin.js';
77
77
  * @mixes MenuBarMixin
78
78
  * @mixes ThemableMixin
79
79
  */
80
- class MenuBar extends MenuBarMixin(ElementMixin(ThemableMixin(LumoInjectionMixin(PolylitMixin(LitElement))))) {
80
+ class MenuBar extends MenuBarMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
81
81
  static get is() {
82
82
  return 'vaadin-menu-bar';
83
83
  }
@@ -93,7 +93,8 @@ class MenuBar extends MenuBarMixin(ElementMixin(ThemableMixin(LumoInjectionMixin
93
93
  <slot></slot>
94
94
  <slot name="overflow"></slot>
95
95
  </div>
96
- <vaadin-menu-bar-submenu is-root .overlayClass="${this.overlayClass}"></vaadin-menu-bar-submenu>
96
+
97
+ <slot name="submenu"></slot>
97
98
 
98
99
  <slot name="tooltip"></slot>
99
100
  `;
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/menu-bar",
4
- "version": "25.0.0-alpha7",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-menu-bar",
11
- "description": "`<vaadin-menu-bar>` is a Web Component providing a set of horizontally stacked buttons offering\nthe user quick access to a consistent set of commands. Each button can toggle a submenu with\nsupport for additional levels of nested menus.\n\nTo create the menu bar, first add the component to the page:\n\n```\n<vaadin-menu-bar></vaadin-menu-bar>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-menu-bar#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n------------------|----------------\n`container` | The container wrapping menu bar buttons.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|----------------------------------\n`disabled` | Set when the menu bar is disabled\n`has-single-button` | Set when there is only one button visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-menu-bar>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-button).\n- `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-item).\n- `<vaadin-menu-bar-list-box>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-list-box).\n- `<vaadin-menu-bar-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-overlay).\n\nThe `<vaadin-menu-bar-item>` sub-menu elements have the following additional state attributes\non top of the built-in `<vaadin-item>` state attributes:\n\nAttribute | Description\n---------- |-------------\n`expanded` | Expanded parent item.\n\nNote: the `theme` attribute value set on `<vaadin-menu-bar>` is\npropagated to the internal components listed above.",
11
+ "description": "`<vaadin-menu-bar>` is a Web Component providing a set of horizontally stacked buttons offering\nthe user quick access to a consistent set of commands. Each button can toggle a submenu with\nsupport for additional levels of nested menus.\n\nTo create the menu bar, first add the component to the page:\n\n```html\n<vaadin-menu-bar></vaadin-menu-bar>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-menu-bar#property-items) property to initialize the structure:\n\n```js\ndocument.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n------------------|----------------\n`container` | The container wrapping menu bar buttons.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|----------------------------------\n`disabled` | Set when the menu bar is disabled\n`has-single-button` | Set when there is only one button visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-menu-bar>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-button).\n- `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-item).\n- `<vaadin-menu-bar-list-box>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-list-box).\n- `<vaadin-menu-bar-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-overlay).\n\nThe `<vaadin-menu-bar-item>` sub-menu elements have the following additional state attributes\non top of the built-in `<vaadin-item>` state attributes:\n\nAttribute | Description\n---------- |-------------\n`expanded` | Expanded parent item.\n\nNote: the `theme` attribute value set on `<vaadin-menu-bar>` is\npropagated to the internal components listed above.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/menu-bar",
4
- "version": "25.0.0-alpha7",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-menu-bar",
19
- "description": "`<vaadin-menu-bar>` is a Web Component providing a set of horizontally stacked buttons offering\nthe user quick access to a consistent set of commands. Each button can toggle a submenu with\nsupport for additional levels of nested menus.\n\nTo create the menu bar, first add the component to the page:\n\n```\n<vaadin-menu-bar></vaadin-menu-bar>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-menu-bar#property-items) property to initialize the structure:\n\n```\ndocument.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n------------------|----------------\n`container` | The container wrapping menu bar buttons.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|----------------------------------\n`disabled` | Set when the menu bar is disabled\n`has-single-button` | Set when there is only one button visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-menu-bar>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-button).\n- `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-item).\n- `<vaadin-menu-bar-list-box>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-list-box).\n- `<vaadin-menu-bar-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-overlay).\n\nThe `<vaadin-menu-bar-item>` sub-menu elements have the following additional state attributes\non top of the built-in `<vaadin-item>` state attributes:\n\nAttribute | Description\n---------- |-------------\n`expanded` | Expanded parent item.\n\nNote: the `theme` attribute value set on `<vaadin-menu-bar>` is\npropagated to the internal components listed above.",
19
+ "description": "`<vaadin-menu-bar>` is a Web Component providing a set of horizontally stacked buttons offering\nthe user quick access to a consistent set of commands. Each button can toggle a submenu with\nsupport for additional levels of nested menus.\n\nTo create the menu bar, first add the component to the page:\n\n```html\n<vaadin-menu-bar></vaadin-menu-bar>\n```\n\nAnd then use [`items`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-menu-bar#property-items) property to initialize the structure:\n\n```js\ndocument.querySelector('vaadin-menu-bar').items = [{text: 'File'}, {text: 'Edit'}];\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n------------------|----------------\n`container` | The container wrapping menu bar buttons.\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n--------------------|----------------------------------\n`disabled` | Set when the menu bar is disabled\n`has-single-button` | Set when there is only one button visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Internal components\n\nIn addition to `<vaadin-menu-bar>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-menu-bar-button>` - has the same API as [`<vaadin-button>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-button).\n- `<vaadin-menu-bar-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-item).\n- `<vaadin-menu-bar-list-box>` - has the same API as [`<vaadin-list-box>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-list-box).\n- `<vaadin-menu-bar-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-overlay).\n\nThe `<vaadin-menu-bar-item>` sub-menu elements have the following additional state attributes\non top of the built-in `<vaadin-item>` state attributes:\n\nAttribute | Description\n---------- |-------------\n`expanded` | Expanded parent item.\n\nNote: the `theme` attribute value set on `<vaadin-menu-bar>` is\npropagated to the internal components listed above.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {