@vaadin/button 24.8.0-alpha18 → 24.8.0-alpha19
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 +12 -10
- package/src/{vaadin-lit-button.d.ts → vaadin-button-core-styles.d.ts} +3 -1
- package/src/{vaadin-button-base.js → vaadin-button-core-styles.js} +0 -15
- package/src/vaadin-button.js +15 -2
- package/src/vaadin-lit-button.js +15 -2
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-button-base.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/button",
|
|
3
|
-
"version": "24.8.0-
|
|
3
|
+
"version": "24.8.0-alpha19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
+
"!src/vaadin-button-base-styles.d.ts",
|
|
25
|
+
"!src/vaadin-button-base-styles.js",
|
|
24
26
|
"theme",
|
|
25
27
|
"vaadin-*.d.ts",
|
|
26
28
|
"vaadin-*.js",
|
|
@@ -36,17 +38,17 @@
|
|
|
36
38
|
"dependencies": {
|
|
37
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
40
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "24.8.0-
|
|
40
|
-
"@vaadin/component-base": "24.8.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.8.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.8.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0-
|
|
41
|
+
"@vaadin/a11y-base": "24.8.0-alpha19",
|
|
42
|
+
"@vaadin/component-base": "24.8.0-alpha19",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.8.0-alpha19",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.8.0-alpha19",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.8.0-alpha19",
|
|
44
46
|
"lit": "^3.0.0"
|
|
45
47
|
},
|
|
46
48
|
"devDependencies": {
|
|
47
|
-
"@vaadin/chai-plugins": "24.8.0-
|
|
48
|
-
"@vaadin/icon": "24.8.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "24.8.0-
|
|
49
|
+
"@vaadin/chai-plugins": "24.8.0-alpha19",
|
|
50
|
+
"@vaadin/icon": "24.8.0-alpha19",
|
|
51
|
+
"@vaadin/test-runner-commands": "24.8.0-alpha19",
|
|
50
52
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
51
53
|
"sinon": "^18.0.0"
|
|
52
54
|
},
|
|
@@ -54,5 +56,5 @@
|
|
|
54
56
|
"web-types.json",
|
|
55
57
|
"web-types.lit.json"
|
|
56
58
|
],
|
|
57
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "b66da924889a1316f7881742a13b80e1c95a4cc4"
|
|
58
60
|
}
|
|
@@ -3,4 +3,6 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
import type { CSSResult } from 'lit';
|
|
7
|
+
|
|
8
|
+
export const buttonStyles: CSSResult;
|
|
@@ -70,18 +70,3 @@ export const buttonStyles = css`
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
73
|
-
|
|
74
|
-
export const buttonTemplate = (html) => html`
|
|
75
|
-
<div class="vaadin-button-container">
|
|
76
|
-
<span part="prefix" aria-hidden="true">
|
|
77
|
-
<slot name="prefix"></slot>
|
|
78
|
-
</span>
|
|
79
|
-
<span part="label">
|
|
80
|
-
<slot></slot>
|
|
81
|
-
</span>
|
|
82
|
-
<span part="suffix" aria-hidden="true">
|
|
83
|
-
<slot name="suffix"></slot>
|
|
84
|
-
</span>
|
|
85
|
-
</div>
|
|
86
|
-
<slot name="tooltip"></slot>
|
|
87
|
-
`;
|
package/src/vaadin-button.js
CHANGED
|
@@ -9,7 +9,7 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
|
9
9
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
10
10
|
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
11
11
|
import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { buttonStyles
|
|
12
|
+
import { buttonStyles } from './vaadin-button-core-styles.js';
|
|
13
13
|
import { ButtonMixin } from './vaadin-button-mixin.js';
|
|
14
14
|
|
|
15
15
|
registerStyles('vaadin-button', buttonStyles, { moduleId: 'vaadin-button-styles' });
|
|
@@ -81,7 +81,20 @@ class Button extends ButtonMixin(ElementMixin(ThemableMixin(ControllerMixin(Poly
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
static get template() {
|
|
84
|
-
return
|
|
84
|
+
return html`
|
|
85
|
+
<div class="vaadin-button-container">
|
|
86
|
+
<span part="prefix" aria-hidden="true">
|
|
87
|
+
<slot name="prefix"></slot>
|
|
88
|
+
</span>
|
|
89
|
+
<span part="label">
|
|
90
|
+
<slot></slot>
|
|
91
|
+
</span>
|
|
92
|
+
<span part="suffix" aria-hidden="true">
|
|
93
|
+
<slot name="suffix"></slot>
|
|
94
|
+
</span>
|
|
95
|
+
</div>
|
|
96
|
+
<slot name="tooltip"></slot>
|
|
97
|
+
`;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
/** @protected */
|
package/src/vaadin-lit-button.js
CHANGED
|
@@ -9,7 +9,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { buttonStyles
|
|
12
|
+
import { buttonStyles } from './vaadin-button-core-styles.js';
|
|
13
13
|
import { ButtonMixin } from './vaadin-button-mixin.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -32,7 +32,20 @@ class Button extends ButtonMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
32
32
|
|
|
33
33
|
/** @protected */
|
|
34
34
|
render() {
|
|
35
|
-
return
|
|
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
|
+
`;
|
|
36
49
|
}
|
|
37
50
|
|
|
38
51
|
/** @protected */
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,13 +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 type { CSSResult, TemplateResult } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const buttonStyles: CSSResult;
|
|
9
|
-
|
|
10
|
-
export function buttonTemplate<
|
|
11
|
-
T extends HTMLTemplateElement | TemplateResult,
|
|
12
|
-
F extends (strings: TemplateStringsArray, ...values: any[]) => T,
|
|
13
|
-
>(tag: F): T;
|