@vaadin/button 24.8.4 → 24.9.0-alpha1

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/button",
3
- "version": "24.8.4",
3
+ "version": "24.9.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,17 +36,17 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "~24.8.4",
40
- "@vaadin/component-base": "~24.8.4",
41
- "@vaadin/vaadin-lumo-styles": "~24.8.4",
42
- "@vaadin/vaadin-material-styles": "~24.8.4",
43
- "@vaadin/vaadin-themable-mixin": "~24.8.4",
39
+ "@vaadin/a11y-base": "24.9.0-alpha1",
40
+ "@vaadin/component-base": "24.9.0-alpha1",
41
+ "@vaadin/vaadin-lumo-styles": "24.9.0-alpha1",
42
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha1",
43
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha1",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/chai-plugins": "~24.8.4",
48
- "@vaadin/icon": "~24.8.4",
49
- "@vaadin/test-runner-commands": "~24.8.4",
47
+ "@vaadin/chai-plugins": "24.9.0-alpha1",
48
+ "@vaadin/icon": "24.9.0-alpha1",
49
+ "@vaadin/test-runner-commands": "24.9.0-alpha1",
50
50
  "@vaadin/testing-helpers": "^1.1.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "849e54e967563080a685965e2dced02060b3ab23"
57
+ "gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
58
58
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/button",
4
- "version": "24.8.4",
4
+ "version": "24.9.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/button",
4
- "version": "24.8.4",
4
+ "version": "24.9.0-alpha1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,67 +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 { html, LitElement } from 'lit';
7
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
- import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
11
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
- import { buttonStyles } from './vaadin-button-core-styles.js';
13
- import { ButtonMixin } from './vaadin-button-mixin.js';
14
-
15
- /**
16
- * LitElement based version of `<vaadin-button>` web component.
17
- *
18
- * ## Disclaimer
19
- *
20
- * This component is an experiment and not yet a part of Vaadin platform.
21
- * There is no ETA regarding specific Vaadin version where it'll land.
22
- * Feel free to try this code in your apps as per Apache 2.0 license.
23
- */
24
- class Button extends ButtonMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))) {
25
- static get is() {
26
- return 'vaadin-button';
27
- }
28
-
29
- static get styles() {
30
- return buttonStyles;
31
- }
32
-
33
- /** @protected */
34
- render() {
35
- return html`
36
- <div class="vaadin-button-container">
37
- <span part="prefix" aria-hidden="true">
38
- <slot name="prefix"></slot>
39
- </span>
40
- <span part="label">
41
- <slot></slot>
42
- </span>
43
- <span part="suffix" aria-hidden="true">
44
- <slot name="suffix"></slot>
45
- </span>
46
- </div>
47
- <slot name="tooltip"></slot>
48
- `;
49
- }
50
-
51
- /** @protected */
52
- ready() {
53
- super.ready();
54
-
55
- this._tooltipController = new TooltipController(this);
56
- this.addController(this._tooltipController);
57
- }
58
-
59
- /** @override */
60
- __shouldAllowFocusWhenDisabled() {
61
- return window.Vaadin.featureFlags.accessibleDisabledButtons;
62
- }
63
- }
64
-
65
- defineCustomElement(Button);
66
-
67
- export { Button };
@@ -1,2 +0,0 @@
1
- import './vaadin-button-styles.js';
2
- import '../../src/vaadin-lit-button.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-button-styles.js';
2
- import '../../src/vaadin-lit-button.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-button-styles.js';
2
- import '../../src/vaadin-lit-button.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-button-styles.js';
2
- import '../../src/vaadin-lit-button.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-button.js';
@@ -1,3 +0,0 @@
1
- import './theme/lumo/vaadin-lit-button.js';
2
-
3
- export * from './src/vaadin-lit-button.js';