@material/mwc-ripple
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -17,3 +17,4 @@ /** | ||
*/ | ||
import {LitElement, html, classString as c$} from '@polymer/lit-element/lit-element.js'; | ||
import {LitElement, html} from '@polymer/lit-element/lit-element.js'; | ||
import {classMap} from 'lit-html/directives/classMap.js'; | ||
import {MDCWebComponentMixin} from '@material/mwc-base/mdc-web-component.js'; | ||
@@ -70,5 +71,5 @@ import {style} from './mwc-ripple-css.js'; | ||
return { | ||
primary: Boolean, | ||
accent: Boolean, | ||
unbounded: Boolean, | ||
primary: { type: Boolean }, | ||
accent: { type: Boolean }, | ||
unbounded: { type: Boolean }, | ||
}; | ||
@@ -89,16 +90,15 @@ } | ||
// TODO(sorvell) #css: sizing. | ||
_render({primary, accent, unbounded}) { | ||
const classes = c$({ | ||
render() { | ||
const {primary, accent, unbounded} = this; | ||
const classInfo = { | ||
'mdc-ripple-surface--primary': primary, | ||
'mdc-ripple-surface--accent': accent, | ||
}); | ||
}; | ||
return html` | ||
${this._renderStyle()} | ||
<div class$="mdc-ripple-surface ${classes}" data-mdc-ripple-is-unbounded?="${unbounded}"></div>`; | ||
<div class="mdc-ripple-surface ${classMap(classInfo)}" data-mdc-ripple-is-unbounded="${unbounded}"></div>`; | ||
} | ||
async ready() { | ||
super.ready(); | ||
await afterNextRender(); | ||
const surface = this._root.querySelector('.mdc-ripple-surface'); | ||
firstUpdated() { | ||
const surface = this.shadowRoot.querySelector('.mdc-ripple-surface'); | ||
const container = this.parentNode || this; | ||
@@ -105,0 +105,0 @@ // TODO(sorvell) #css: this might be bad since the container might be positioned. |
{ | ||
"name": "@material/mwc-ripple", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -16,5 +16,5 @@ "main": "mwc-ripple.js", | ||
"dependencies": { | ||
"@material/mwc-base": "^0.1.2", | ||
"@material/mwc-base": "^0.2.0", | ||
"@material/ripple": "^0.35.0", | ||
"@polymer/lit-element": "^0.5.2" | ||
"@polymer/lit-element": "^0.6.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40637
13
274
1
80
+ Added@material/mwc-base@0.2.1(transitive)
+ Added@polymer/lit-element@0.6.5(transitive)
+ Addedlit-html@1.4.1(transitive)
- Removed@material/mwc-base@0.1.2(transitive)
- Removed@polymer/lit-element@0.5.2(transitive)
- Removed@polymer/polymer@3.5.2(transitive)
- Removed@webcomponents/shadycss@1.11.2(transitive)
- Removedlit-html@0.10.2(transitive)
Updated@material/mwc-base@^0.2.0
Updated@polymer/lit-element@^0.6.0