@material/mwc-button
Advanced tools
Comparing version 0.24.0-canary.32c830ee.0 to 0.24.0-canary.569d739f.0
@@ -12,2 +12,3 @@ /** | ||
import { LitElement, TemplateResult } from 'lit-element'; | ||
import { ClassInfo } from 'lit-html/directives/class-map.js'; | ||
/** @soyCompatible */ | ||
@@ -38,4 +39,4 @@ export declare class ButtonBase extends LitElement { | ||
blur(): void; | ||
/** @soyTemplate classMap */ | ||
protected getRenderClasses(): import("lit-html/directive").DirectiveResult<typeof import("lit-html/directives/class-map.js").ClassMapDirective>; | ||
/** @soyTemplate */ | ||
protected getRenderClasses(): ClassInfo; | ||
/** | ||
@@ -42,0 +43,0 @@ * @soyTemplate |
@@ -61,5 +61,5 @@ /** | ||
} | ||
/** @soyTemplate classMap */ | ||
/** @soyTemplate */ | ||
getRenderClasses() { | ||
return classMap({ | ||
return { | ||
'mdc-button--raised': this.raised, | ||
@@ -69,3 +69,3 @@ 'mdc-button--unelevated': this.unelevated, | ||
'mdc-button--dense': this.dense, | ||
}); | ||
}; | ||
} | ||
@@ -81,3 +81,3 @@ /** | ||
id="button" | ||
class="mdc-button ${this.getRenderClasses()}" | ||
class="mdc-button ${classMap(this.getRenderClasses())}" | ||
?disabled="${this.disabled}" | ||
@@ -84,0 +84,0 @@ aria-label="${this.label || this.icon}" |
{ | ||
"name": "@material/mwc-button", | ||
"version": "0.24.0-canary.32c830ee.0", | ||
"version": "0.24.0-canary.569d739f.0", | ||
"description": "Material Design button web component", | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/mwc-icon": "0.24.0-canary.32c830ee.0", | ||
"@material/mwc-ripple": "0.24.0-canary.32c830ee.0", | ||
"@material/mwc-icon": "0.24.0-canary.569d739f.0", | ||
"@material/mwc-ripple": "0.24.0-canary.569d739f.0", | ||
"lit-element": "3.0.0-rc.4", | ||
@@ -39,3 +39,3 @@ "lit-html": "2.0.0-rc.5", | ||
}, | ||
"gitHead": "72f380d7ef6cb00e8a03c42048cbf0cc09820ae9" | ||
"gitHead": "c2e841aead340c043b080dc4718873a82f109450" | ||
} |
@@ -30,4 +30,4 @@ # `<mwc-button>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-button.svg)](https://www.npmjs.com/package/@material/mwc-button) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/standard.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/standard_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/standard.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/standard_with_icon.png) | ||
@@ -41,4 +41,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/outlined.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/outlined_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/outlined.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/outlined_with_icon.png) | ||
@@ -58,4 +58,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/raised.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/raised_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/raised.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/raised_with_icon.png) | ||
@@ -69,4 +69,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/unelevated.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/unelevated_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/unelevated.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/unelevated_with_icon.png) | ||
@@ -80,4 +80,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/dense.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/dense_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/dense.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/dense_with_icon.png) | ||
@@ -91,3 +91,3 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/trailing_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/trailing_icon.png) | ||
@@ -100,4 +100,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/disabled.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/disabled_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/disabled.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/disabled_with_icon.png) | ||
@@ -111,3 +111,3 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/custom_color.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/custom_color.png) | ||
@@ -156,6 +156,6 @@ ```css | ||
| `--mdc-button-outline-width` | `1px` | `width` of the outline of an outlined button and attempts to keep the component size constant. | ||
| `--mdc-button-outline-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/color_0,0,0,12.png) | Color of the outline of an outlined element. | ||
| `--mdc-button-disabled-fill-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/color_0,0,0,12.png) `rgba(0,0,0,0.12)` | Background fill color of a disabled raised or unelevated button. | ||
| `--mdc-button-disabled-ink-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/color_0,0,0,37.png) `rgba(0,0,0,0.37)` | Text color of a disabled button as well as the outline color of a disabled outlined button. | ||
| `--mdc-button-disabled-outline-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/72f380d7ef6cb00e8a03c42048cbf0cc09820ae9/packages/button/images/color_0,0,0,12.png) | Sets the color of the outline of a disabled outlined button. | ||
| `--mdc-button-outline-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/color_0,0,0,12.png) | Color of the outline of an outlined element. | ||
| `--mdc-button-disabled-fill-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/color_0,0,0,12.png) `rgba(0,0,0,0.12)` | Background fill color of a disabled raised or unelevated button. | ||
| `--mdc-button-disabled-ink-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/color_0,0,0,37.png) `rgba(0,0,0,0.37)` | Text color of a disabled button as well as the outline color of a disabled outlined button. | ||
| `--mdc-button-disabled-outline-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c2e841aead340c043b080dc4718873a82f109450/packages/button/images/color_0,0,0,12.png) | Sets the color of the outline of a disabled outlined button. | ||
| `--mdc-button-raised-box-shadow` | mdc elevation 2 | Sets the box shadow of the raised button. | ||
@@ -162,0 +162,0 @@ | `--mdc-button-raised-box-shadow-hover` | mdc elevation 4 | Sets the box shadow of the raised button when focused or hovered. |
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
333
79992
+ Added@material/mwc-base@0.24.0-canary.569d739f.0(transitive)
+ Added@material/mwc-icon@0.24.0-canary.569d739f.0(transitive)
+ Added@material/mwc-ripple@0.24.0-canary.569d739f.0(transitive)
- Removed@material/mwc-base@0.24.0-canary.32c830ee.0(transitive)
- Removed@material/mwc-icon@0.24.0-canary.32c830ee.0(transitive)
- Removed@material/mwc-ripple@0.24.0-canary.32c830ee.0(transitive)