@material/mwc-icon
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -17,3 +18,2 @@ @license | ||
*/ | ||
// load material icons font | ||
@@ -24,1 +24,2 @@ const fontEl = document.createElement('link'); | ||
document.head.appendChild(fontEl); | ||
//# sourceMappingURL=mwc-icon-font.js.map |
@@ -17,5 +17,4 @@ /** | ||
*/ | ||
import {html} from '@polymer/lit-element/lit-element.js'; | ||
export const style = html`<style>:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased} | ||
</style>`; | ||
import { html } from '@polymer/lit-element'; | ||
export const style = html `<style>:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}</style>`; | ||
//# sourceMappingURL=mwc-icon-host-css.js.map |
@@ -0,1 +1,7 @@ | ||
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; | ||
}; | ||
/** | ||
@@ -17,15 +23,17 @@ @license | ||
*/ | ||
import {LitElement, html} from '@polymer/lit-element/lit-element.js'; | ||
import {style} from './mwc-icon-host-css.js'; | ||
import './mwc-icon-font.js'; | ||
export class Icon extends LitElement { | ||
renderStyle() { | ||
return style; | ||
} | ||
render() { | ||
return html`${this.renderStyle()}<slot></slot>`; | ||
} | ||
} | ||
customElements.define('mwc-icon', Icon); | ||
import { LitElement, html, customElement } from '@polymer/lit-element'; | ||
import { style } from './mwc-icon-host-css'; | ||
import './mwc-icon-font'; | ||
let Icon = class Icon extends LitElement { | ||
renderStyle() { | ||
return style; | ||
} | ||
render() { | ||
return html `${this.renderStyle()}<slot></slot>`; | ||
} | ||
}; | ||
Icon = __decorate([ | ||
customElement('mwc-icon') | ||
], Icon); | ||
export { Icon }; | ||
//# sourceMappingURL=mwc-icon.js.map |
{ | ||
"name": "@material/mwc-icon", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -16,8 +16,5 @@ "main": "mwc-icon.js", | ||
"dependencies": { | ||
"@material/mwc-base": "^0.2.1", | ||
"@polymer/lit-element": "^0.6.0" | ||
"@material/mwc-base": "^0.3.0", | ||
"@polymer/lit-element": "^0.6.1" | ||
}, | ||
"devDependencies": { | ||
"@material/mwc-sass-render": "^0.2.1" | ||
}, | ||
"publishConfig": { | ||
@@ -24,0 +21,0 @@ "access": "public" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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 4 instances 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
19782
0
21
211
4
80
1
+ Added@material/mwc-base@0.3.6(transitive)
+ Addedlit-element@2.5.1(transitive)
- Removed@material/mwc-base@0.2.1(transitive)
Updated@material/mwc-base@^0.3.0
Updated@polymer/lit-element@^0.6.1