@vaadin/button 25.1.0-alpha6 → 25.1.0-alpha7

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.
@@ -0,0 +1,160 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "vaadin-button.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "src/vaadin-button.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/vaadin-button-mixin.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "mixin",
26
+ "description": "A mixin providing common button functionality.",
27
+ "name": "ButtonMixin",
28
+ "members": [],
29
+ "mixins": [
30
+ {
31
+ "name": "ActiveMixin",
32
+ "package": "@vaadin/a11y-base/src/active-mixin.js"
33
+ },
34
+ {
35
+ "name": "TabindexMixin",
36
+ "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
37
+ },
38
+ {
39
+ "name": "FocusMixin",
40
+ "package": "@vaadin/a11y-base/src/focus-mixin.js"
41
+ }
42
+ ],
43
+ "parameters": [
44
+ {
45
+ "name": "superClass"
46
+ }
47
+ ],
48
+ "attributes": [
49
+ {
50
+ "name": "tabindex",
51
+ "type": {
52
+ "text": "number"
53
+ },
54
+ "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
55
+ "fieldName": "tabindex",
56
+ "inheritedFrom": {
57
+ "name": "TabindexMixin",
58
+ "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ ],
64
+ "exports": [
65
+ {
66
+ "kind": "js",
67
+ "name": "ButtonMixin",
68
+ "declaration": {
69
+ "name": "ButtonMixin",
70
+ "module": "src/vaadin-button-mixin.js"
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "kind": "javascript-module",
77
+ "path": "src/vaadin-button.js",
78
+ "declarations": [
79
+ {
80
+ "kind": "class",
81
+ "description": "`<vaadin-button>` is an accessible and customizable button that allows users to perform actions.\n\n```html\n<vaadin-button>Press me</vaadin-button>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------|-------------\n`label` | The label (text) inside the button.\n`prefix` | A slot for content before the label (e.g. an icon).\n`suffix` | A slot for content after the label (e.g. an icon).\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------|-------------\n`active` | Set when the button is pressed down, either with mouse, touch or the keyboard\n`disabled` | Set when the button is disabled\n`focus-ring` | Set when the button is focused using the keyboard\n`focused` | Set when the button is focused\n`has-tooltip` | Set when the button has a slotted tooltip\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property |\n:----------------------------------|\n| `--vaadin-button-background` |\n| `--vaadin-button-border-color` |\n| `--vaadin-button-border-radius` |\n| `--vaadin-button-border-width` |\n| `--vaadin-button-font-size` |\n| `--vaadin-button-font-weight` |\n| `--vaadin-button-gap` |\n| `--vaadin-button-height` |\n| `--vaadin-button-line-height` |\n| `--vaadin-button-margin` |\n| `--vaadin-button-padding` |\n| `--vaadin-button-text-color` |\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
82
+ "name": "Button",
83
+ "members": [
84
+ {
85
+ "kind": "field",
86
+ "name": "disabled",
87
+ "privacy": "public",
88
+ "type": {
89
+ "text": "boolean"
90
+ },
91
+ "description": "When disabled, the button is rendered as \"dimmed\" and prevents all\nuser interactions (mouse and keyboard).\n\nSince disabled buttons are not focusable and cannot react to hover\nevents by default, it can cause accessibility issues by making them\nentirely invisible to assistive technologies, and prevents the use\nof Tooltips to explain why the action is not available. This can be\naddressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being triggered:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```",
92
+ "attribute": "disabled"
93
+ }
94
+ ],
95
+ "attributes": [
96
+ {
97
+ "name": "disabled",
98
+ "type": {
99
+ "text": "boolean"
100
+ },
101
+ "description": "When disabled, the button is rendered as \"dimmed\" and prevents all\nuser interactions (mouse and keyboard).\n\nSince disabled buttons are not focusable and cannot react to hover\nevents by default, it can cause accessibility issues by making them\nentirely invisible to assistive technologies, and prevents the use\nof Tooltips to explain why the action is not available. This can be\naddressed by enabling the feature flag `accessibleDisabledButtons`,\nwhich makes disabled buttons focusable and hoverable, while still\npreventing them from being triggered:\n\n```js\n// Set before any button is attached to the DOM.\nwindow.Vaadin.featureFlags.accessibleDisabledButtons = true\n```",
102
+ "fieldName": "disabled"
103
+ },
104
+ {
105
+ "name": "tabindex",
106
+ "type": {
107
+ "text": "number"
108
+ },
109
+ "description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
110
+ "fieldName": "tabindex",
111
+ "inheritedFrom": {
112
+ "name": "TabindexMixin",
113
+ "package": "@vaadin/a11y-base/src/tabindex-mixin.js"
114
+ }
115
+ }
116
+ ],
117
+ "mixins": [
118
+ {
119
+ "name": "ButtonMixin",
120
+ "module": "src/vaadin-button-mixin.js"
121
+ },
122
+ {
123
+ "name": "ElementMixin",
124
+ "package": "@vaadin/component-base/src/element-mixin.js"
125
+ },
126
+ {
127
+ "name": "ThemableMixin",
128
+ "package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
129
+ },
130
+ {
131
+ "name": "PolylitMixin",
132
+ "package": "@vaadin/component-base/src/polylit-mixin.js"
133
+ },
134
+ {
135
+ "name": "LumoInjectionMixin",
136
+ "package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
137
+ }
138
+ ],
139
+ "superclass": {
140
+ "name": "LitElement",
141
+ "package": "lit"
142
+ },
143
+ "tagName": "vaadin-button",
144
+ "customElement": true,
145
+ "events": []
146
+ }
147
+ ],
148
+ "exports": [
149
+ {
150
+ "kind": "js",
151
+ "name": "Button",
152
+ "declaration": {
153
+ "name": "Button",
154
+ "module": "src/vaadin-button.js"
155
+ }
156
+ }
157
+ ]
158
+ }
159
+ ]
160
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/button",
3
- "version": "25.1.0-alpha6",
3
+ "version": "25.1.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,6 +23,7 @@
23
23
  "src",
24
24
  "vaadin-*.d.ts",
25
25
  "vaadin-*.js",
26
+ "custom-elements.json",
26
27
  "web-types.json",
27
28
  "web-types.lit.json"
28
29
  ],
@@ -34,24 +35,25 @@
34
35
  ],
35
36
  "dependencies": {
36
37
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "25.1.0-alpha6",
38
- "@vaadin/component-base": "25.1.0-alpha6",
39
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha6",
38
+ "@vaadin/a11y-base": "25.1.0-alpha7",
39
+ "@vaadin/component-base": "25.1.0-alpha7",
40
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha7",
40
41
  "lit": "^3.0.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@vaadin/aura": "25.1.0-alpha6",
44
- "@vaadin/chai-plugins": "25.1.0-alpha6",
45
- "@vaadin/icon": "25.1.0-alpha6",
46
- "@vaadin/icons": "25.1.0-alpha6",
47
- "@vaadin/test-runner-commands": "25.1.0-alpha6",
44
+ "@vaadin/aura": "25.1.0-alpha7",
45
+ "@vaadin/chai-plugins": "25.1.0-alpha7",
46
+ "@vaadin/icon": "25.1.0-alpha7",
47
+ "@vaadin/icons": "25.1.0-alpha7",
48
+ "@vaadin/test-runner-commands": "25.1.0-alpha7",
48
49
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha6",
50
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha7",
50
51
  "sinon": "^21.0.0"
51
52
  },
53
+ "customElements": "custom-elements.json",
52
54
  "web-types": [
53
55
  "web-types.json",
54
56
  "web-types.lit.json"
55
57
  ],
56
- "gitHead": "da6f4194492cbd77d18c6c1cd8d4d9f072e9ce8d"
58
+ "gitHead": "98c586125f769c8fefd307536965293668fda81d"
57
59
  }
@@ -59,7 +59,7 @@ import { ButtonMixin } from './vaadin-button-mixin.js';
59
59
  *
60
60
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
61
61
  *
62
- * @customElement
62
+ * @customElement vaadin-button
63
63
  * @extends HTMLElement
64
64
  * @mixes ButtonMixin
65
65
  * @mixes ElementMixin
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.1.0-alpha6",
4
+ "version": "25.1.0-alpha7",
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": "25.1.0-alpha6",
4
+ "version": "25.1.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {