@dreamworld/dw-checkbox 2.2.0 → 2.2.1-development.1
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/dw-checkbox.js +7 -0
- package/package.json +2 -2
package/dw-checkbox.js
CHANGED
|
@@ -21,6 +21,9 @@ export class DwCheckbox extends DwFormElement(LitElement) {
|
|
|
21
21
|
:host {
|
|
22
22
|
display: block;
|
|
23
23
|
outline:none;
|
|
24
|
+
|
|
25
|
+
--mdc-checkbox-unchecked-color: var(--mdc-theme-text-secondary-on-background);
|
|
26
|
+
--mdc-checkbox-disabled-color: var(--mdc-theme-text-disabled-on-background);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
:host[hidden] {
|
|
@@ -101,6 +104,10 @@ export class DwCheckbox extends DwFormElement(LitElement) {
|
|
|
101
104
|
@click="${(e) => { setTimeout(() => { e.target.blur(); }, 1)}}">
|
|
102
105
|
</mwc-checkbox>
|
|
103
106
|
|
|
107
|
+
<div slot="label">
|
|
108
|
+
<slot name="label"></slot>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
104
111
|
</dw-form-field>
|
|
105
112
|
`;
|
|
106
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamworld/dw-checkbox",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-development.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dw-checkbox.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/DreamworldSolutions/dw-checkbox#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dreamworld/dw-form": "
|
|
24
|
+
"@dreamworld/dw-form": "^3.0.1-development.2",
|
|
25
25
|
"@dreamworld/pwa-helpers": "^1.10.0",
|
|
26
26
|
"@material/mwc-checkbox": "^0.20.0",
|
|
27
27
|
"lit-element": "^2.2.1"
|