@material/mwc-ripple
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -17,12 +17,12 @@ /** | ||
*/ | ||
import {LitElement} from '@material/mwc-base/base-element'; | ||
import { LitElement } from '@material/mwc-base/base-element'; | ||
export declare class RippleBase extends LitElement { | ||
primary: boolean; | ||
active: boolean|undefined; | ||
accent: boolean; | ||
unbounded: boolean; | ||
disabled: boolean; | ||
protected interactionNode: HTMLElement; | ||
connectedCallback(): void; | ||
protected render(): import('lit-html/lib/template-result').TemplateResult; | ||
primary: boolean; | ||
active: boolean | undefined; | ||
accent: boolean; | ||
unbounded: boolean; | ||
disabled: boolean; | ||
protected interactionNode: HTMLElement; | ||
connectedCallback(): void; | ||
protected render(): import("lit-html/lib/template-result").TemplateResult; | ||
} |
@@ -1,7 +0,2 @@ | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
import { __decorate } from "tslib"; | ||
/** | ||
@@ -8,0 +3,0 @@ @license |
@@ -1,9 +0,9 @@ | ||
import {RippleBase} from './mwc-ripple-base.js'; | ||
import { RippleBase } from './mwc-ripple-base.js'; | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'mwc-ripple': Ripple; | ||
} | ||
interface HTMLElementTagNameMap { | ||
'mwc-ripple': Ripple; | ||
} | ||
} | ||
export declare class Ripple extends RippleBase { | ||
static styles: import('lit-element/lib/css-tag').CSSResult; | ||
static styles: import("lit-element/lib/css-tag").CSSResult; | ||
} |
@@ -1,7 +0,2 @@ | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
import { __decorate } from "tslib"; | ||
/** | ||
@@ -8,0 +3,0 @@ @license |
{ | ||
"name": "@material/mwc-ripple", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "", | ||
@@ -19,5 +19,6 @@ "main": "mwc-ripple.js", | ||
"@material/dom": "^3.1.0", | ||
"@material/mwc-base": "^0.7.0", | ||
"@material/mwc-base": "^0.8.0", | ||
"@material/ripple": "^3.0.0", | ||
"lit-html": "^1.0.0" | ||
"lit-html": "^1.0.0", | ||
"tslib": "^1.10.0" | ||
}, | ||
@@ -27,3 +28,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "f8389e38b66e6261a8578f4a748efcb7367da176" | ||
"gitHead": "e47de0d9d6e556ce8c4b0b92f87be25a3e18da79" | ||
} |
import MDCRippleFoundation from '@material/ripple/foundation.js'; | ||
import {PropertyPart} from 'lit-html'; | ||
import { PropertyPart } from 'lit-html'; | ||
export interface RippleOptions { | ||
interactionNode?: HTMLElement; | ||
unbounded?: boolean; | ||
disabled?: boolean; | ||
active?: boolean; | ||
interactionNode?: HTMLElement; | ||
unbounded?: boolean; | ||
disabled?: boolean; | ||
active?: boolean; | ||
} | ||
export interface RippleNodeOptions extends RippleOptions { | ||
surfaceNode: HTMLElement; | ||
surfaceNode: HTMLElement; | ||
} | ||
declare global { | ||
interface Element { | ||
ripple?: unknown; | ||
} | ||
interface Element { | ||
ripple?: unknown; | ||
} | ||
} | ||
@@ -21,4 +21,3 @@ /** | ||
*/ | ||
export declare const rippleNode: (options: RippleNodeOptions) => | ||
MDCRippleFoundation; | ||
export declare const rippleNode: (options: RippleNodeOptions) => MDCRippleFoundation; | ||
/** | ||
@@ -29,3 +28,2 @@ * A directive that applies a Material ripple to a part node. The directive | ||
*/ | ||
export declare const ripple: (options?: RippleOptions) => | ||
(part: PropertyPart) => void; | ||
export declare const ripple: (options?: RippleOptions) => (part: PropertyPart) => void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
75778
5
602
+ Addedtslib@^1.10.0
+ Added@material/mwc-base@0.8.0(transitive)
- Removed@material/mwc-base@0.7.0(transitive)
Updated@material/mwc-base@^0.8.0