@material/mwc-button
Advanced tools
Comparing version 0.23.0-canary.d234ec3f.0 to 0.23.0-canary.dd7b75d1.0
@@ -8,2 +8,3 @@ /** | ||
import '@material/mwc-ripple/mwc-ripple'; | ||
import { AriaHasPopup } from '@material/mwc-base/aria-property'; | ||
import { Ripple } from '@material/mwc-ripple/mwc-ripple'; | ||
@@ -15,2 +16,4 @@ import { RippleHandlers } from '@material/mwc-ripple/ripple-handlers'; | ||
static shadowRootOptions: ShadowRootInit; | ||
/** @soyPrefixAttribute */ | ||
ariaHasPopup?: AriaHasPopup; | ||
raised: boolean; | ||
@@ -17,0 +20,0 @@ unelevated: boolean; |
@@ -11,5 +11,7 @@ /** | ||
import '@material/mwc-ripple/mwc-ripple'; | ||
import { ariaProperty } from '@material/mwc-base/aria-property'; | ||
import { RippleHandlers } from '@material/mwc-ripple/ripple-handlers'; | ||
import { eventOptions, html, LitElement, property, query, queryAsync, state } from 'lit-element'; | ||
import { classMap } from 'lit-html/directives/class-map'; | ||
import { ifDefined } from 'lit-html/directives/if-defined'; | ||
/** @soyCompatible */ | ||
@@ -81,2 +83,3 @@ export class ButtonBase extends LitElement { | ||
aria-label="${this.label || this.icon}" | ||
aria-haspopup="${ifDefined(this.ariaHasPopup)}" | ||
@focus="${this.handleRippleFocus}" | ||
@@ -143,2 +146,6 @@ @blur="${this.handleRippleBlur}" | ||
__decorate([ | ||
ariaProperty, | ||
property({ type: String, attribute: 'aria-haspopup' }) | ||
], ButtonBase.prototype, "ariaHasPopup", void 0); | ||
__decorate([ | ||
property({ type: Boolean, reflect: true }) | ||
@@ -145,0 +152,0 @@ ], ButtonBase.prototype, "raised", void 0); |
{ | ||
"name": "@material/mwc-button", | ||
"version": "0.23.0-canary.d234ec3f.0", | ||
"version": "0.23.0-canary.dd7b75d1.0", | ||
"description": "Material Design button web component", | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/mwc-icon": "0.23.0-canary.d234ec3f.0", | ||
"@material/mwc-ripple": "0.23.0-canary.d234ec3f.0", | ||
"@material/mwc-icon": "0.23.0-canary.dd7b75d1.0", | ||
"@material/mwc-ripple": "0.23.0-canary.dd7b75d1.0", | ||
"lit-element": "^2.5.1", | ||
@@ -30,7 +30,7 @@ "lit-html": "^1.4.1", | ||
"devDependencies": { | ||
"@material/button": "=12.0.0-canary.9f68a932e.0", | ||
"@material/elevation": "=12.0.0-canary.9f68a932e.0", | ||
"@material/ripple": "=12.0.0-canary.9f68a932e.0", | ||
"@material/shape": "=12.0.0-canary.9f68a932e.0", | ||
"@material/theme": "=12.0.0-canary.9f68a932e.0" | ||
"@material/button": "=12.0.0-canary.4d95812f9.0", | ||
"@material/elevation": "=12.0.0-canary.4d95812f9.0", | ||
"@material/ripple": "=12.0.0-canary.4d95812f9.0", | ||
"@material/shape": "=12.0.0-canary.4d95812f9.0", | ||
"@material/theme": "=12.0.0-canary.4d95812f9.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "950f54539b9a71153ac09a57ec5710112c307c8f" | ||
"gitHead": "b0752e4552aba84ad89d4eafc1a2a995bbfa0607" | ||
} |
@@ -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/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/standard.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/standard_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/standard.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/standard_with_icon.png) | ||
@@ -41,4 +41,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/outlined.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/outlined_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/outlined.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/outlined_with_icon.png) | ||
@@ -58,4 +58,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/raised.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/raised_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/raised.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/raised_with_icon.png) | ||
@@ -69,4 +69,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/unelevated.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/unelevated_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/unelevated.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/unelevated_with_icon.png) | ||
@@ -80,4 +80,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/dense.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/dense_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/dense.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/dense_with_icon.png) | ||
@@ -91,3 +91,3 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/trailing_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/trailing_icon.png) | ||
@@ -100,4 +100,4 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/disabled.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/disabled_with_icon.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/disabled.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/disabled_with_icon.png) | ||
@@ -111,3 +111,3 @@ ```html | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/950f54539b9a71153ac09a57ec5710112c307c8f/packages/button/images/custom_color.png) | ||
![](https://raw.githubusercontent.com/material-components/material-components-web-components/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/packages/button/images/custom_color.png) | ||
@@ -133,2 +133,3 @@ ```css | ||
| ---- | ---- | ------- | ----------- | ||
| `aria-haspopup` | `string` | `undefined` | Indicates the availability and type of an interactive popup element, such as menu or dialog, that can be triggered by the button. | ||
| `icon` | `string` | `''` | Icon to display, and `aria-label` value when `label` is not defined. | ||
@@ -156,6 +157,6 @@ | `label` | `string` | `''` | Label to display for the button, and `aria-label`. | ||
| `--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/950f54539b9a71153ac09a57ec5710112c307c8f/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/950f54539b9a71153ac09a57ec5710112c307c8f/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/950f54539b9a71153ac09a57ec5710112c307c8f/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/950f54539b9a71153ac09a57ec5710112c307c8f/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/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/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/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/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/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/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/b0752e4552aba84ad89d4eafc1a2a995bbfa0607/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 +163,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
80318
333
182
+ Added@material/mwc-base@0.23.0-canary.dd7b75d1.0(transitive)
+ Added@material/mwc-icon@0.23.0-canary.dd7b75d1.0(transitive)
+ Added@material/mwc-ripple@0.23.0-canary.dd7b75d1.0(transitive)
- Removed@material/mwc-base@0.23.0-canary.d234ec3f.0(transitive)
- Removed@material/mwc-icon@0.23.0-canary.d234ec3f.0(transitive)
- Removed@material/mwc-ripple@0.23.0-canary.d234ec3f.0(transitive)