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

material

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

2

package.json
{
"name": "material",
"version": "0.3.4",
"version": "0.3.5",
"description": "A lightweight implementation of Material Design Components - ES6",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -87,2 +87,7 @@ 'use strict'

if (this.options.container) {
if (this.options.container.root) {
this.container = this.options.container.root
} else {
this.container = this.options.container
}
insert(this.root, this.options.container)

@@ -177,11 +182,6 @@ }

hide () {
console.log('hide')
this.root.style.display = 'none'
destroy () {
this.container.removeChild(this.root)
}
show () {
this.root.style.display = 'inherit'
}
/**

@@ -188,0 +188,0 @@ * method handleClick

@@ -1,2 +0,1 @@

import create from '../element/create'
import insert from '../element/insert'

@@ -42,3 +41,4 @@ import offset from '../element/offset'

let ripple = create('div', 'material-ripple')
let ripple = document.createElement('div')
ripple.classList.add('material-ripple')
let end = coordinate(offs)

@@ -52,3 +52,3 @@ let initial = {

ripple.style.top = initial.top
//ripple.style.opacity = defaults.opacity[1]
// ripple.style.opacity = defaults.opacity[1]
ripple.style.transition = defaults.transition

@@ -64,3 +64,3 @@

ripple.style.height = end.size
//ripple.style.opacity = defaults.opacity[1]
// ripple.style.opacity = defaults.opacity[1]
}, 1)

@@ -92,3 +92,3 @@

function coordinate (o) {
var size = o.width
var size = o.height
var top = -o.height / 2

@@ -98,2 +98,3 @@

top = -(o.width - o.height / 2)
size = o.width
}

@@ -108,2 +109,2 @@

export default init
export default init

@@ -67,3 +67,3 @@ 'use strict'

select: (item) => {
console.log('click')
// console.log('click')
this.selected = item

@@ -70,0 +70,0 @@ this.click(item)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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