@vaadin/button 25.0.0-alpha16 → 25.0.0-alpha17
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": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha17",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
38
|
-
"@vaadin/component-base": "25.0.0-
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/a11y-base": "25.0.0-alpha17",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-alpha17",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha17",
|
|
40
40
|
"lit": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
44
|
-
"@vaadin/icon": "25.0.0-
|
|
45
|
-
"@vaadin/icons": "25.0.0-
|
|
46
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
43
|
+
"@vaadin/chai-plugins": "25.0.0-alpha17",
|
|
44
|
+
"@vaadin/icon": "25.0.0-alpha17",
|
|
45
|
+
"@vaadin/icons": "25.0.0-alpha17",
|
|
46
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha17",
|
|
47
47
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
49
|
-
"sinon": "^
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha17",
|
|
49
|
+
"sinon": "^21.0.0"
|
|
50
50
|
},
|
|
51
51
|
"web-types": [
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
|
|
56
56
|
}
|
|
@@ -31,10 +31,8 @@ export const buttonStyles = css`
|
|
|
31
31
|
color: var(--vaadin-button-text-color, var(--vaadin-color));
|
|
32
32
|
background: var(--vaadin-button-background, var(--vaadin-background-container));
|
|
33
33
|
background-origin: border-box;
|
|
34
|
-
border: var(
|
|
35
|
-
--vaadin-button-border,
|
|
36
|
-
var(--vaadin-button-border-width, 1px) solid var(--vaadin-button-border-color, var(--vaadin-border-color-subtle))
|
|
37
|
-
);
|
|
34
|
+
border: var(--vaadin-button-border-width, 1px) solid
|
|
35
|
+
var(--vaadin-button-border-color, var(--vaadin-border-color-subtle));
|
|
38
36
|
border-radius: var(--vaadin-button-border-radius, var(--vaadin-radius-m));
|
|
39
37
|
touch-action: manipulation;
|
|
40
38
|
}
|
|
@@ -62,9 +60,8 @@ export const buttonStyles = css`
|
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
:host([theme~='tertiary']) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
--vaadin-button-border-color: transparent;
|
|
63
|
+
background: transparent;
|
|
64
|
+
border-color: transparent;
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
:host([disabled]) {
|
package/src/vaadin-button.d.ts
CHANGED
|
@@ -24,14 +24,15 @@ import { ButtonMixin } from './vaadin-button-mixin.js';
|
|
|
24
24
|
* `prefix` | A slot for content before the label (e.g. an icon).
|
|
25
25
|
* `suffix` | A slot for content after the label (e.g. an icon).
|
|
26
26
|
*
|
|
27
|
-
* The following attributes are available for styling:
|
|
27
|
+
* The following state attributes are available for styling:
|
|
28
28
|
*
|
|
29
|
-
* Attribute
|
|
30
|
-
*
|
|
31
|
-
* `active`
|
|
32
|
-
* `disabled`
|
|
33
|
-
* `focus-ring`
|
|
34
|
-
* `focused`
|
|
29
|
+
* Attribute | Description
|
|
30
|
+
* ---------------|-------------
|
|
31
|
+
* `active` | Set when the button is pressed down, either with mouse, touch or the keyboard
|
|
32
|
+
* `disabled` | Set when the button is disabled
|
|
33
|
+
* `focus-ring` | Set when the button is focused using the keyboard
|
|
34
|
+
* `focused` | Set when the button is focused
|
|
35
|
+
* `has-tooltip` | Set when the button has a slotted tooltip
|
|
35
36
|
*
|
|
36
37
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
37
38
|
*/
|
package/src/vaadin-button.js
CHANGED
|
@@ -30,14 +30,15 @@ import { ButtonMixin } from './vaadin-button-mixin.js';
|
|
|
30
30
|
* `prefix` | A slot for content before the label (e.g. an icon).
|
|
31
31
|
* `suffix` | A slot for content after the label (e.g. an icon).
|
|
32
32
|
*
|
|
33
|
-
* The following attributes are available for styling:
|
|
33
|
+
* The following state attributes are available for styling:
|
|
34
34
|
*
|
|
35
|
-
* Attribute
|
|
36
|
-
*
|
|
37
|
-
* `active`
|
|
38
|
-
* `disabled`
|
|
39
|
-
* `focus-ring`
|
|
40
|
-
* `focused`
|
|
35
|
+
* Attribute | Description
|
|
36
|
+
* ---------------|-------------
|
|
37
|
+
* `active` | Set when the button is pressed down, either with mouse, touch or the keyboard
|
|
38
|
+
* `disabled` | Set when the button is disabled
|
|
39
|
+
* `focus-ring` | Set when the button is focused using the keyboard
|
|
40
|
+
* `focused` | Set when the button is focused
|
|
41
|
+
* `has-tooltip` | Set when the button has a slotted tooltip
|
|
41
42
|
*
|
|
42
43
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
43
44
|
*
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/button",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha17",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-button",
|
|
11
|
-
"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 attributes are available for styling:\n\nAttribute
|
|
11
|
+
"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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
package/web-types.lit.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.0.0-
|
|
4
|
+
"version": "25.0.0-alpha17",
|
|
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-button",
|
|
19
|
-
"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 attributes are available for styling:\n\nAttribute
|
|
19
|
+
"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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|