Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material/mwc-ripple

Package Overview
Dependencies
Maintainers
13
Versions
723
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-ripple - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

mwc-ripple-css.d.ts

24

mwc-ripple.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc