@commercetools-uikit/password-field 19.22.5 → 19.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -51,8 +51,8 @@ export default Example;
|
|
|
51
51
|
| `horizontalConstraint` | `union`<br/>Possible values:<br/>`, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | `'scale'` | Horizontal size limit of the input fields. |
|
|
52
52
|
| `errors` | `Record` | | | A map of errors. Error messages for known errors are rendered automatically.
<br />
Unknown errors will be forwarded to `renderError` |
|
|
53
53
|
| `warnings` | `Record` | | | A map of warnings. Warning messages for known warnings are rendered automatically.
<br/>
Unknown warnings will be forwarded to renderWarning. |
|
|
54
|
-
| `renderError` | `Function`<br/>[See signature.](#signature-
|
|
55
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
54
|
+
| `renderError` | `Function`<br/>[See signature.](#signature-rendererror) | | | Called with custom errors. This function can return a message which will be wrapped in an ErrorMessage. It can also return null to show no error. |
|
|
55
|
+
| `renderWarning` | `Function`<br/>[See signature.](#signature-renderwarning) | | | Called with custom warnings, as renderWarning(key, warning). This function can return a message which will be wrapped in a WarningMessage.
<br />
It can also return null to show no warning. |
|
|
56
56
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
57
57
|
| `touched` | `boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
58
58
|
| `name` | `string` | | | Used as HTML name of the input component. property |
|
|
@@ -68,7 +68,7 @@ export default Example;
|
|
|
68
68
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
|
|
69
69
|
| `hint` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Hint for the label. Provides a supplementary but important information regarding the behaviour of the input (e.g warn about uniqueness of a field, when it can only be set once), whereas `description` can describe it in more depth. Can also receive a `hintIcon`. |
|
|
70
70
|
| `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
|
|
71
|
-
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-
|
|
71
|
+
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-oninfobuttonclick) | | | Function called when info button is pressed.
<br />
Info button will only be visible when this prop is passed. |
|
|
72
72
|
| `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text.
<br />
Will only get rendered when `hint` is passed as well. |
|
|
73
73
|
| `badge` | `ReactNode` | | | Badge to be displayed beside the label.
<br />
Might be used to display additional information about the content of the field (E.g verified email) |
|
|
74
74
|
| `renderShowHideButton` | `boolean` | | `true` | Determines whether to render the "Show/Hide" button for the password field. |
|
|
@@ -202,7 +202,7 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
202
202
|
var PasswordField$1 = PasswordField;
|
|
203
203
|
|
|
204
204
|
// NOTE: This string will be replaced on build time with the package version.
|
|
205
|
-
var version = "19.22.
|
|
205
|
+
var version = "19.22.6";
|
|
206
206
|
|
|
207
207
|
exports["default"] = PasswordField$1;
|
|
208
208
|
exports.version = version;
|
|
@@ -171,7 +171,7 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
171
171
|
var PasswordField$1 = PasswordField;
|
|
172
172
|
|
|
173
173
|
// NOTE: This string will be replaced on build time with the package version.
|
|
174
|
-
var version = "19.22.
|
|
174
|
+
var version = "19.22.6";
|
|
175
175
|
|
|
176
176
|
exports["default"] = PasswordField$1;
|
|
177
177
|
exports.version = version;
|
|
@@ -176,6 +176,6 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
176
176
|
var PasswordField$1 = PasswordField;
|
|
177
177
|
|
|
178
178
|
// NOTE: This string will be replaced on build time with the package version.
|
|
179
|
-
var version = "19.22.
|
|
179
|
+
var version = "19.22.6";
|
|
180
180
|
|
|
181
181
|
export { PasswordField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/password-field",
|
|
3
3
|
"description": "A controlled text input component for passwords with validation states.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "19.22.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
26
|
-
"@commercetools-uikit/field-errors": "19.22.
|
|
27
|
-
"@commercetools-uikit/field-label": "19.22.
|
|
28
|
-
"@commercetools-uikit/field-warnings": "19.22.
|
|
29
|
-
"@commercetools-uikit/flat-button": "19.22.
|
|
30
|
-
"@commercetools-uikit/hooks": "19.22.
|
|
31
|
-
"@commercetools-uikit/icons": "19.22.
|
|
32
|
-
"@commercetools-uikit/password-input": "19.22.
|
|
33
|
-
"@commercetools-uikit/spacings-inline": "19.22.
|
|
34
|
-
"@commercetools-uikit/spacings-stack": "19.22.
|
|
35
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.22.6",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.6",
|
|
26
|
+
"@commercetools-uikit/field-errors": "19.22.6",
|
|
27
|
+
"@commercetools-uikit/field-label": "19.22.6",
|
|
28
|
+
"@commercetools-uikit/field-warnings": "19.22.6",
|
|
29
|
+
"@commercetools-uikit/flat-button": "19.22.6",
|
|
30
|
+
"@commercetools-uikit/hooks": "19.22.6",
|
|
31
|
+
"@commercetools-uikit/icons": "19.22.6",
|
|
32
|
+
"@commercetools-uikit/password-input": "19.22.6",
|
|
33
|
+
"@commercetools-uikit/spacings-inline": "19.22.6",
|
|
34
|
+
"@commercetools-uikit/spacings-stack": "19.22.6",
|
|
35
|
+
"@commercetools-uikit/utils": "19.22.6",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
37
37
|
"@emotion/styled": "^11.10.5",
|
|
38
38
|
"prop-types": "15.8.1"
|