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

@material/mwc-formfield

Package Overview
Dependencies
Maintainers
21
Versions
720
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-formfield - npm Package Compare versions

Comparing version 0.23.0-canary.5cd4bcdb.0 to 0.23.0-canary.61fe5b17.0

12

mwc-formfield-base.js

@@ -87,12 +87,4 @@ /**

observer(async function (label) {
const input = this.input;
if (input) {
if (input.localName === 'input') {
input.setAttribute('aria-label', label);
}
else if (input instanceof FormElement) {
await input.updateComplete;
input.setAriaLabel(label);
}
}
var _a;
(_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-label', label);
})

@@ -99,0 +91,0 @@ ], FormfieldBase.prototype, "label", void 0);

20

package.json
{
"name": "@material/mwc-formfield",
"version": "0.23.0-canary.5cd4bcdb.0",
"version": "0.23.0-canary.61fe5b17.0",
"description": "Material Design formfield web component",

@@ -19,4 +19,4 @@ "keywords": [

"dependencies": {
"@material/form-field": "=12.0.0-canary.9f68a932e.0",
"@material/mwc-base": "0.23.0-canary.5cd4bcdb.0",
"@material/form-field": "=13.0.0-canary.15981e9d9.0",
"@material/mwc-base": "0.23.0-canary.61fe5b17.0",
"lit-element": "^2.5.1",

@@ -27,8 +27,8 @@ "lit-html": "^1.4.1",

"devDependencies": {
"@material/mwc-checkbox": "0.23.0-canary.5cd4bcdb.0",
"@material/mwc-radio": "0.23.0-canary.5cd4bcdb.0",
"@material/mwc-switch": "0.23.0-canary.5cd4bcdb.0",
"@material/rtl": "=12.0.0-canary.9f68a932e.0",
"@material/theme": "=12.0.0-canary.9f68a932e.0",
"@material/typography": "=12.0.0-canary.9f68a932e.0"
"@material/mwc-checkbox": "0.23.0-canary.61fe5b17.0",
"@material/mwc-radio": "0.23.0-canary.61fe5b17.0",
"@material/mwc-switch": "0.23.0-canary.61fe5b17.0",
"@material/rtl": "=13.0.0-canary.15981e9d9.0",
"@material/theme": "=13.0.0-canary.15981e9d9.0",
"@material/typography": "=13.0.0-canary.15981e9d9.0"
},

@@ -41,3 +41,3 @@ "scripts": {

},
"gitHead": "5c053f1de07d32aeb409f327470360f0b5c02ae4"
"gitHead": "8d712401a1af774c1e4dfbf07ceadfd36aaeb5ff"
}

@@ -6,6 +6,6 @@ # `<mwc-formfield>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-formfield.svg)](https://www.npmjs.com/package/@material/mwc-formfield)

A form field is a text caption for MWC input elements including
[`<mwc-checkbox>`](https://github.com/material-components/material-components-web-components/tree/master/packages/checkbox),
[`<mwc-radio>`](https://github.com/material-components/material-components-web-components/tree/master/packages/radio),
[`<mwc-checkbox>`](https://github.com/material-components/material-web/tree/master/packages/checkbox),
[`<mwc-radio>`](https://github.com/material-components/material-web/tree/master/packages/radio),
and
[`<mwc-switch>`](https://github.com/material-components/material-components-web-components/tree/master/packages/switch).
[`<mwc-switch>`](https://github.com/material-components/material-web/tree/master/packages/switch).

@@ -18,3 +18,3 @@ It is equivalent to the native

[Demo](https://material-components.github.io/material-components-web-components/demos/formfield/)
[Demo](https://material-components.github.io/material-web/demos/formfield/)

@@ -39,3 +39,3 @@ ## Installation

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5c053f1de07d32aeb409f327470360f0b5c02ae4/packages/formfield/images/with_checkbox.png" width="105px" height="40px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/8d712401a1af774c1e4dfbf07ceadfd36aaeb5ff/packages/formfield/images/with_checkbox.png" width="105px" height="40px">

@@ -55,3 +55,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5c053f1de07d32aeb409f327470360f0b5c02ae4/packages/formfield/images/nowrap.png" width="150px" height="40px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/8d712401a1af774c1e4dfbf07ceadfd36aaeb5ff/packages/formfield/images/nowrap.png" width="150px" height="40px">

@@ -76,3 +76,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5c053f1de07d32aeb409f327470360f0b5c02ae4/packages/formfield/images/with_radio.png" width="94px" height="80px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/8d712401a1af774c1e4dfbf07ceadfd36aaeb5ff/packages/formfield/images/with_radio.png" width="94px" height="80px">

@@ -102,3 +102,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5c053f1de07d32aeb409f327470360f0b5c02ae4/packages/formfield/images/with_switch.png" width="160px" height="48px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/8d712401a1af774c1e4dfbf07ceadfd36aaeb5ff/packages/formfield/images/with_switch.png" width="160px" height="48px">

@@ -105,0 +105,0 @@ ```html

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