@dile/ui 2.8.3 → 2.8.4
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.
|
@@ -12,11 +12,11 @@ export class DileButton extends LitElement {
|
|
|
12
12
|
super();
|
|
13
13
|
this.disabled = false;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
static get styles() {
|
|
17
16
|
return css`
|
|
18
17
|
:host {
|
|
19
18
|
display: inline-block;
|
|
19
|
+
border-radius: var(--dile-button-border-radius, 2rem);
|
|
20
20
|
}
|
|
21
21
|
button {
|
|
22
22
|
cursor: pointer;
|
|
@@ -68,19 +68,15 @@ export class DileButton extends LitElement {
|
|
|
68
68
|
button {
|
|
69
69
|
user-select: none;
|
|
70
70
|
}
|
|
71
|
+
:host([disabled]) {
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
71
74
|
`;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
render() {
|
|
75
78
|
return html`
|
|
76
|
-
<button
|
|
79
|
+
<button ?disabled=${this.disabled}><slot></slot></button>
|
|
77
80
|
`;
|
|
78
81
|
}
|
|
79
|
-
|
|
80
|
-
doClick(e) {
|
|
81
|
-
if (this.disabled) {
|
|
82
|
-
e.preventDefault();
|
|
83
|
-
e.stopPropagation();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.4",
|
|
4
4
|
"description": "UI Core components from dile-components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "105233f5f9e645c1205f08c95b5115113c38eea5"
|
|
30
30
|
}
|