Socket
Socket
Sign inDemoInstall

@material/textfield

Package Overview
Dependencies
16
Maintainers
14
Versions
1703
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.0-canary.b9806f623.0 to 15.0.0-canary.b994146f6.0

_text-field.scss

10

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [15.0.0-canary.b9806f623.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.b9806f623.0) (2022-12-29)
# [15.0.0-canary.b994146f6.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.b994146f6.0) (2023-06-14)

@@ -14,3 +14,5 @@

* **text-field:** Update textfield icons to allow spacebar keypresses to trigger an interaction ([c0a11ef](https://github.com/material-components/material-components-web/commit/c0a11ef0d000a098fd0c372be8f12d6a99302855))
* **textfield:** Add coverage for suffix and prefix text within the font size mixin. ([19bb36a](https://github.com/material-components/material-components-web/commit/19bb36a46b51e79d8bf08948ab5b7d8e9358c2d8))
* **textfield:** Add support for `focus-active-indicator-height` token. ([8c56759](https://github.com/material-components/material-components-web/commit/8c56759428e34766e263008470390487417f00c4))
* **textfield:** add support for placeholder color in theme api ([b994146](https://github.com/material-components/material-components-web/commit/b994146f6d849bd80f280c147d64adae5b930a3c))
* **textfield:** Fix bugs and compilation errors due to custom properties in the theme map ([1dc797e](https://github.com/material-components/material-components-web/commit/1dc797e7f4efe9010be7097b040c0fcb1902ca8c))

@@ -21,2 +23,3 @@ * **textfield:** Fix several tokens in theming API ([d3344c1](https://github.com/material-components/material-components-web/commit/d3344c16fd9c006059174e1c3b6d90d2302e8134))

* **textfield:** Improve textfield character counter for screen reader ([2797ff8](https://github.com/material-components/material-components-web/commit/2797ff8b651ee34900cf38b115dc69193abdb7b8))
* **textfield:** initializes 'valid' property from the DOM. ([b836b98](https://github.com/material-components/material-components-web/commit/b836b989225a6259220a98dd23fd2a4b99014031))
* **textfield:** Make it possible to customise leading and trailing icon in disabled states separately ([00d8de0](https://github.com/material-components/material-components-web/commit/00d8de0aadef3f3caffc1ca2a13cf932057dcdbe))

@@ -27,5 +30,10 @@

* **textfield:** Add `static-styles` mixin ([82554d7](https://github.com/material-components/material-components-web/commit/82554d7709f8945af78415597d9b121afaddd1c0))
* **textfield:** Add character counter to theming api ([1d37bf6](https://github.com/material-components/material-components-web/commit/1d37bf601f471b43f5b313bbc8ea58def2cc5c9f))
* **textfield:** add support for several new tokens ([d71935c](https://github.com/material-components/material-components-web/commit/d71935c8bf8dd6e1a4a7a38e57d02d3de4f56f67))
* **textfield:** changed the visibility of the mixin `filled-no-label` to public ([8879557](https://github.com/material-components/material-components-web/commit/8879557e677d9b160a106e46279b1b6855926fb5))
* **textfield:** Changed visibility of $custom-property-prefix to public ([d96330c](https://github.com/material-components/material-components-web/commit/d96330c085b4fe8fc59c7eb835d41ebca3a08422))
* **textfield:** Changed visibility of $custom-property-prefix to public ([f323399](https://github.com/material-components/material-components-web/commit/f323399371aec4378186a05b5a839e53d9e464c0))
* **textfield:** Changed visibility of $custom-property-prefix to public. ([274610c](https://github.com/material-components/material-components-web/commit/274610c77e6a9c9f19780b688cc6686a97e453a1))
* **textfield:** Ensure Theming API feature consistency ([7134a77](https://github.com/material-components/material-components-web/commit/7134a7752e5d06837e1eb3da7f2b49d6ba9fb72c))
* Support '-5' density for text fields ([e457014](https://github.com/material-components/material-components-web/commit/e4570146f182059e919d089d26bc6b2813015f10))

2

component.d.ts

@@ -36,4 +36,2 @@ /**

static attachTo(root: HTMLElement): MDCTextField;
/** @deprecated use attachTo(root: HTMLElement) */
static attachTo(root: Element): MDCTextField;
ripple: MDCRipple | null;

@@ -40,0 +38,0 @@ private input;

@@ -430,3 +430,3 @@ /**

setInputAttr: function (attr, value) {
_this.input.setAttribute(attr, value);
_this.safeSetAttribute(_this.input, attr, value);
},

@@ -433,0 +433,0 @@ removeInputAttr: function (attr) {

@@ -68,5 +68,5 @@ /**

private receivedUserInput;
private valid;
private useNativeValidation;
private validateOnValueChange;
private valid;
private readonly inputFocusHandler;

@@ -73,0 +73,0 @@ private readonly inputBlurHandler;

@@ -40,3 +40,2 @@ /**

_this.receivedUserInput = false;
_this.valid = true;
_this.useNativeValidation = true;

@@ -48,2 +47,4 @@ _this.validateOnValueChange = true;

_this.trailingIcon = foundationMap.trailingIcon;
_this.valid =
!_this.adapter.hasClass(MDCTextFieldFoundation.cssClasses.INVALID);
_this.inputFocusHandler = function () {

@@ -50,0 +51,0 @@ _this.activateFocus();

@@ -59,3 +59,3 @@ /**

setAttr: function (attr, value) {
_this.root.setAttribute(attr, value);
_this.safeSetAttribute(_this.root, attr, value);
},

@@ -62,0 +62,0 @@ removeAttr: function (attr) {

@@ -52,3 +52,3 @@ /**

setAttr: function (attr, value) {
_this.root.setAttribute(attr, value);
_this.safeSetAttribute(_this.root, attr, value);
},

@@ -55,0 +55,0 @@ removeAttr: function (attr) {

{
"name": "@material/textfield",
"description": "The Material Components for the web text field component",
"version": "15.0.0-canary.b9806f623.0",
"version": "15.0.0-canary.b994146f6.0",
"license": "MIT",

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

"dependencies": {
"@material/animation": "15.0.0-canary.b9806f623.0",
"@material/base": "15.0.0-canary.b9806f623.0",
"@material/density": "15.0.0-canary.b9806f623.0",
"@material/dom": "15.0.0-canary.b9806f623.0",
"@material/feature-targeting": "15.0.0-canary.b9806f623.0",
"@material/floating-label": "15.0.0-canary.b9806f623.0",
"@material/line-ripple": "15.0.0-canary.b9806f623.0",
"@material/notched-outline": "15.0.0-canary.b9806f623.0",
"@material/ripple": "15.0.0-canary.b9806f623.0",
"@material/rtl": "15.0.0-canary.b9806f623.0",
"@material/shape": "15.0.0-canary.b9806f623.0",
"@material/theme": "15.0.0-canary.b9806f623.0",
"@material/tokens": "15.0.0-canary.b9806f623.0",
"@material/typography": "15.0.0-canary.b9806f623.0",
"@material/animation": "15.0.0-canary.b994146f6.0",
"@material/base": "15.0.0-canary.b994146f6.0",
"@material/density": "15.0.0-canary.b994146f6.0",
"@material/dom": "15.0.0-canary.b994146f6.0",
"@material/feature-targeting": "15.0.0-canary.b994146f6.0",
"@material/floating-label": "15.0.0-canary.b994146f6.0",
"@material/line-ripple": "15.0.0-canary.b994146f6.0",
"@material/notched-outline": "15.0.0-canary.b994146f6.0",
"@material/ripple": "15.0.0-canary.b994146f6.0",
"@material/rtl": "15.0.0-canary.b994146f6.0",
"@material/shape": "15.0.0-canary.b994146f6.0",
"@material/theme": "15.0.0-canary.b994146f6.0",
"@material/tokens": "15.0.0-canary.b994146f6.0",
"@material/typography": "15.0.0-canary.b994146f6.0",
"tslib": "^2.1.0"
},
"gitHead": "0eb4b8fcbfba4d68dffe3a2b5c7478e69e2e2eb9"
"gitHead": "e537228a5d88e4fb9c651aa15b1d56bd81bc63bd"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc