@dreamworld/dw-checkbox 3.1.1-update-indeterminate-styling.1 → 3.1.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.
@@ -1,7 +1,7 @@
1
1
  import { css } from '@dreamworld/pwa-helpers/lit.js';
2
- import { Checkbox } from "@material/mwc-checkbox";
2
+ import { Checkbox as mwcCheckbox } from "@material/mwc-checkbox";
3
3
 
4
- export class CheckboxButton extends Checkbox {
4
+ export class BaseCheckbox extends mwcCheckbox {
5
5
  static get styles() {
6
6
  return [
7
7
  super.styles,
@@ -14,4 +14,4 @@ export class CheckboxButton extends Checkbox {
14
14
  }
15
15
  }
16
16
 
17
- customElements.define("checkbox-button", CheckboxButton);
17
+ customElements.define("base-checkbox", BaseCheckbox);
package/dw-checkbox.js CHANGED
@@ -11,7 +11,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11
11
  import { LitElement, html, css } from '@dreamworld/pwa-helpers/lit.js';
12
12
  import '@dreamworld/dw-form/dw-form-field';
13
13
  import { DwFormElement } from '@dreamworld/dw-form/dw-form-element';
14
- import './checkbox-button.js';
14
+ import './base-checkbox.js';
15
15
 
16
16
  export class DwCheckbox extends DwFormElement(LitElement) {
17
17
  static get styles() {
@@ -94,14 +94,14 @@ export class DwCheckbox extends DwFormElement(LitElement) {
94
94
  return html`
95
95
  <dw-form-field .label="${this.label}" ?alignEnd="${this.alignEnd}" ?disabled="${this.disabled}">
96
96
 
97
- <checkbox-button
97
+ <base-checkbox
98
98
  ?disabled="${this.disabled}"
99
99
  ?checked="${this.checked}"
100
100
  ?indeterminate="${this.indeterminate}"
101
101
  ?reducedTouchTarget="${this.reducedTouchTarget}"
102
102
  @change="${this._onChange}"
103
103
  @click="${(e) => { setTimeout(() => { e.target.blur(); }, 1)}}">
104
- </checkbox-button>
104
+ </base-checkbox>
105
105
 
106
106
  <div slot="label">
107
107
  <slot name="label"></slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamworld/dw-checkbox",
3
- "version": "3.1.1-update-indeterminate-styling.1",
3
+ "version": "3.1.1",
4
4
  "description": "",
5
5
  "main": "dw-checkbox.js",
6
6
  "type": "module",