@vaadin/button 25.2.0-alpha9 → 25.2.0-beta1

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.
@@ -25,7 +25,22 @@
25
25
  "kind": "mixin",
26
26
  "description": "A mixin providing common button functionality.",
27
27
  "name": "ButtonMixin",
28
- "members": [],
28
+ "members": [
29
+ {
30
+ "kind": "field",
31
+ "name": "disabled",
32
+ "privacy": "public",
33
+ "type": {
34
+ "text": "boolean"
35
+ },
36
+ "description": "If true, the user cannot interact with this element.",
37
+ "attribute": "disabled",
38
+ "inheritedFrom": {
39
+ "name": "DisabledMixin",
40
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
41
+ }
42
+ }
43
+ ],
29
44
  "mixins": [
30
45
  {
31
46
  "name": "ActiveMixin",
@@ -45,7 +60,20 @@
45
60
  "name": "superClass"
46
61
  }
47
62
  ],
48
- "attributes": []
63
+ "attributes": [
64
+ {
65
+ "name": "disabled",
66
+ "type": {
67
+ "text": "boolean"
68
+ },
69
+ "description": "If true, the user cannot interact with this element.",
70
+ "fieldName": "disabled",
71
+ "inheritedFrom": {
72
+ "name": "DisabledMixin",
73
+ "package": "@vaadin/a11y-base/src/disabled-mixin.js"
74
+ }
75
+ }
76
+ ]
49
77
  }
50
78
  ],
51
79
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/button",
3
- "version": "25.2.0-alpha9",
3
+ "version": "25.2.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,19 +35,19 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-alpha9",
39
- "@vaadin/component-base": "25.2.0-alpha9",
40
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha9",
38
+ "@vaadin/a11y-base": "25.2.0-beta1",
39
+ "@vaadin/component-base": "25.2.0-beta1",
40
+ "@vaadin/vaadin-themable-mixin": "25.2.0-beta1",
41
41
  "lit": "^3.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@vaadin/aura": "25.2.0-alpha9",
45
- "@vaadin/chai-plugins": "25.2.0-alpha9",
46
- "@vaadin/icon": "25.2.0-alpha9",
47
- "@vaadin/icons": "25.2.0-alpha9",
48
- "@vaadin/test-runner-commands": "25.2.0-alpha9",
44
+ "@vaadin/aura": "25.2.0-beta1",
45
+ "@vaadin/chai-plugins": "25.2.0-beta1",
46
+ "@vaadin/icon": "25.2.0-beta1",
47
+ "@vaadin/icons": "25.2.0-beta1",
48
+ "@vaadin/test-runner-commands": "25.2.0-beta1",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha9",
50
+ "@vaadin/vaadin-lumo-styles": "25.2.0-beta1",
51
51
  "sinon": "^21.0.2"
52
52
  },
53
53
  "customElements": "custom-elements.json",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "a38a03e8a8be45821f39c14054c63634dafe08d0"
58
+ "gitHead": "471a23f60d1eb725f98a33f62cb9664d9c0a4163"
59
59
  }
@@ -11,11 +11,6 @@ const INTERACTION_EVENTS = ['mousedown', 'mouseup', 'click', 'dblclick', 'keypre
11
11
 
12
12
  /**
13
13
  * A mixin providing common button functionality.
14
- *
15
- * @polymerMixin
16
- * @mixes ActiveMixin
17
- * @mixes FocusMixin
18
- * @mixes TabindexMixin
19
14
  */
20
15
  export const ButtonMixin = (superClass) =>
21
16
  class ButtonMixinClass extends ActiveMixin(TabindexMixin(FocusMixin(superClass))) {
@@ -61,9 +61,6 @@ import { ButtonMixin } from './vaadin-button-mixin.js';
61
61
  *
62
62
  * @customElement vaadin-button
63
63
  * @extends HTMLElement
64
- * @mixes ButtonMixin
65
- * @mixes ElementMixin
66
- * @mixes ThemableMixin
67
64
  */
68
65
  class Button extends ButtonMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
69
66
  static get is() {
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": "25.2.0-alpha9",
4
+ "version": "25.2.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,9 +15,7 @@
15
15
  "description": "When disabled, the button is rendered as \"dimmed\".\n\nBy default, disabled buttons are not focusable and don't react to hover.\nAs a result, they are hidden from assistive technologies, and it's not\npossible to show a tooltip to explain why they are disabled. This can\nbe addressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being activated:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```",
16
16
  "value": {
17
17
  "type": [
18
- "boolean",
19
- "null",
20
- "undefined"
18
+ "boolean"
21
19
  ]
22
20
  }
23
21
  },
@@ -40,9 +38,7 @@
40
38
  "description": "When disabled, the button is rendered as \"dimmed\".\n\nBy default, disabled buttons are not focusable and don't react to hover.\nAs a result, they are hidden from assistive technologies, and it's not\npossible to show a tooltip to explain why they are disabled. This can\nbe addressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being activated:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```",
41
39
  "value": {
42
40
  "type": [
43
- "boolean",
44
- "null",
45
- "undefined"
41
+ "boolean"
46
42
  ]
47
43
  }
48
44
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/button",
4
- "version": "25.2.0-alpha9",
4
+ "version": "25.2.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {