@rmwc/textfield
Advanced tools
Comparing version 14.2.6 to 14.2.7
{ | ||
"name": "@rmwc/textfield", | ||
"version": "14.2.6", | ||
"version": "14.2.7", | ||
"description": "RMWC TextField component", | ||
@@ -43,10 +43,10 @@ "main": "./index.js", | ||
"@material/textfield": "^14.0.0", | ||
"@rmwc/base": "workspace:*", | ||
"@rmwc/floating-label": "workspace:*", | ||
"@rmwc/icon": "workspace:*", | ||
"@rmwc/line-ripple": "workspace:*", | ||
"@rmwc/notched-outline": "workspace:*", | ||
"@rmwc/ripple": "workspace:*", | ||
"@rmwc/types": "workspace:*" | ||
"@rmwc/base": "14.2.7", | ||
"@rmwc/floating-label": "14.2.7", | ||
"@rmwc/icon": "14.2.7", | ||
"@rmwc/line-ripple": "14.2.7", | ||
"@rmwc/notched-outline": "14.2.7", | ||
"@rmwc/ripple": "14.2.7", | ||
"@rmwc/types": "14.2.7" | ||
} | ||
} |
@@ -85,8 +85,3 @@ # Text Fields | ||
```jsx | ||
<TextField | ||
invalid | ||
label="Invalid..." | ||
value="#@!$" | ||
onChange={() => {}} | ||
/> | ||
<TextField invalid label="Invalid..." value="#@!$" onChange={() => {}} /> | ||
``` | ||
@@ -116,2 +111,3 @@ | ||
## TextField | ||
A TextField component for accepting text input from a user. | ||
@@ -121,27 +117,25 @@ | ||
| Name | Type | Description | | ||
|------|------|-------------| | ||
| `align` | `"start" \| "end"` | How to align the text inside the TextField. Defaults to 'start'. | | ||
| `characterCount` | `boolean` | Shows the character count, must be used in conjunction with maxLength. | | ||
| `disabled` | `boolean` | Makes the Textfield disabled. | | ||
| `floatLabel` | `boolean` | The label floats automatically based on value, but you can use this prop for manual control. | | ||
| `foundationRef` | `Ref<null \| MDCTextFieldFoundation<>>` | Advanced: A reference to the MDCFoundation. | | ||
| `fullwidth` | `boolean` | Makes the TextField fullwidth. | | ||
| `helpText` | `ReactNode \| TextFieldHelperTextProps` | Adds help text to the field | | ||
| `icon` | `IconPropT` | Add a leading icon. | | ||
| `inputRef` | `Ref<null \| HTMLInputElement<> \| HTMLTextAreaElement<>>` | A reference to the native input or textarea. | | ||
| `invalid` | `boolean` | Makes the TextField visually invalid. This is sometimes automatically applied in cases where required or pattern is used. | | ||
| `label` | `ReactNode` | A label for the input. | | ||
| `outlined` | `boolean` | Outline the TextField. | | ||
| `prefix` | `string` | Add prefix. | | ||
| `required` | `boolean` | Makes the Textfield required. | | ||
| `resizeable` | `boolean` | Make textarea resizeable | | ||
| `ripple` | `RipplePropT` | Adds a ripple effect to the component | | ||
| `rootProps` | `Object` | By default, props spread to the input. These props are for the component's root container. | | ||
| `suffix` | `string` | Add suffix. | | ||
| `textarea` | `boolean` | Makes a multiline TextField. | | ||
| `trailingIcon` | `IconPropT` | Add a trailing icon. | | ||
| `type` | `string` | The type of input field to render, search, number, etc | | ||
| `value` | `string \| number` | Sets the value for controlled TextFields. | | ||
| Name | Type | Description | | ||
| ---------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | ||
| `align` | `"start" \| "end"` | How to align the text inside the TextField. Defaults to 'start'. | | ||
| `characterCount` | `boolean` | Shows the character count, must be used in conjunction with maxLength. | | ||
| `disabled` | `boolean` | Makes the Textfield disabled. | | ||
| `floatLabel` | `boolean` | The label floats automatically based on value, but you can use this prop for manual control. | | ||
| `foundationRef` | `Ref<null \| MDCTextFieldFoundation<>>` | Advanced: A reference to the MDCFoundation. | | ||
| `fullwidth` | `boolean` | Makes the TextField fullwidth. | | ||
| `helpText` | `ReactNode \| TextFieldHelperTextProps` | Adds help text to the field | | ||
| `icon` | `IconPropT` | Add a leading icon. | | ||
| `inputRef` | `Ref<null \| HTMLInputElement<> \| HTMLTextAreaElement<>>` | A reference to the native input or textarea. | | ||
| `invalid` | `boolean` | Makes the TextField visually invalid. This is sometimes automatically applied in cases where required or pattern is used. | | ||
| `label` | `ReactNode` | A label for the input. | | ||
| `outlined` | `boolean` | Outline the TextField. | | ||
| `prefix` | `string` | Add prefix. | | ||
| `required` | `boolean` | Makes the Textfield required. | | ||
| `resizeable` | `boolean` | Make textarea resizeable | | ||
| `ripple` | `RipplePropT` | Adds a ripple effect to the component | | ||
| `rootProps` | `Object` | By default, props spread to the input. These props are for the component's root container. | | ||
| `suffix` | `string` | Add suffix. | | ||
| `textarea` | `boolean` | Makes a multiline TextField. | | ||
| `trailingIcon` | `IconPropT` | Add a trailing icon. | | ||
| `type` | `string` | The type of input field to render, search, number, etc | | ||
| `value` | `string \| number` | Sets the value for controlled TextFields. | |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
14028
12
202
139
1
+ Added@rmwc/base@14.2.7(transitive)
+ Added@rmwc/floating-label@14.2.7(transitive)
+ Added@rmwc/icon@14.2.7(transitive)
+ Added@rmwc/line-ripple@14.2.7(transitive)
+ Added@rmwc/notched-outline@14.2.7(transitive)
+ Added@rmwc/provider@14.2.7(transitive)
+ Added@rmwc/ripple@14.2.7(transitive)
+ Added@rmwc/types@14.2.7(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addedhyperform@0.11.0(transitive)
+ Addedmutation-observer@1.0.3(transitive)
Updated@rmwc/base@14.2.7
Updated@rmwc/floating-label@14.2.7
Updated@rmwc/icon@14.2.7
Updated@rmwc/line-ripple@14.2.7
Updated@rmwc/notched-outline@14.2.7
Updated@rmwc/ripple@14.2.7
Updated@rmwc/types@14.2.7