@vaadin/button 25.0.0-alpha16 → 25.0.0-alpha18

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-alpha16",
3
+ "version": "25.0.0-alpha18",
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-alpha16",
38
- "@vaadin/component-base": "25.0.0-alpha16",
39
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha16",
37
+ "@vaadin/a11y-base": "25.0.0-alpha18",
38
+ "@vaadin/component-base": "25.0.0-alpha18",
39
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha18",
40
40
  "lit": "^3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@vaadin/chai-plugins": "25.0.0-alpha16",
44
- "@vaadin/icon": "25.0.0-alpha16",
45
- "@vaadin/icons": "25.0.0-alpha16",
46
- "@vaadin/test-runner-commands": "25.0.0-alpha16",
43
+ "@vaadin/chai-plugins": "25.0.0-alpha18",
44
+ "@vaadin/icon": "25.0.0-alpha18",
45
+ "@vaadin/icons": "25.0.0-alpha18",
46
+ "@vaadin/test-runner-commands": "25.0.0-alpha18",
47
47
  "@vaadin/testing-helpers": "^2.0.0",
48
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha16",
49
- "sinon": "^18.0.0"
48
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha18",
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": "4b316158a4a4f702f032bc9940fc82f0faa840f4"
55
+ "gitHead": "cb5cafb5687a117ebead1b81e2116991cec13abe"
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
- --vaadin-button-text-color: var(--_vaadin-button-text-color);
66
- --vaadin-button-background: transparent;
67
- --vaadin-button-border-color: transparent;
63
+ background: transparent;
64
+ border-color: transparent;
68
65
  }
69
66
 
70
67
  :host([disabled]) {
@@ -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 | 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.
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
  */
@@ -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 | 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.
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-alpha16",
4
+ "version": "25.0.0-alpha18",
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 | 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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
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",
@@ -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-alpha16",
4
+ "version": "25.0.0-alpha18",
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 | 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\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
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
  {