@commercetools-uikit/localized-multiline-text-field 19.22.4 → 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
|
@@ -54,9 +54,9 @@ export default Example;
|
|
|
54
54
|
| `id` | `string` | | | Used as HTML id property. An id is auto-generated when it is not specified. |
|
|
55
55
|
| `horizontalConstraint` | `union`<br/>Possible values:<br/>`, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | `'scale'` | Horizontal size limit of the input fields. |
|
|
56
56
|
| `errors` | `Record` | | | A map of errors. Error messages for known errors are rendered automatically.
<br />
Unknown errors will be forwarded to `renderError` |
|
|
57
|
-
| `renderError` | `Function`<br/>[See signature.](#signature-
|
|
57
|
+
| `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. |
|
|
58
58
|
| `warnings` | `Record` | | | A map of warnings. Warning messages for known warnings are rendered automatically.
<br/>
Unknown warnings will be forwarded to renderWarning. |
|
|
59
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
59
|
+
| `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. |
|
|
60
60
|
| `additionalInfo` | `Record` | | | An object mapping locales to additional messages to be rendered below each input element.
Example:
{
en: 'Some value',
es: 'Algún valor',
} |
|
|
61
61
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
62
62
|
| `touched` | `boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
@@ -66,7 +66,7 @@ export default Example;
|
|
|
66
66
|
| `onChange` | `ChangeEventHandler` | | | Gets called when any input is changed. Is called with the change event of the changed input. |
|
|
67
67
|
| `selectedLanguage` | `string` | ✅ | | Specifies which language will be shown in case the `LocalizedTextInput` is collapsed. |
|
|
68
68
|
| `onBlur` | `FocusEventHandler` | | | Called when input is blurred |
|
|
69
|
-
| `onFocus` | `Function`<br/>[See signature.](#signature-
|
|
69
|
+
| `onFocus` | `Function`<br/>[See signature.](#signature-onfocus) | | | Called when input is focused |
|
|
70
70
|
| `defaultExpandMultilineText` | `boolean` | | | Expands input components holding multiline values instead of collapsing them by default. |
|
|
71
71
|
| `cacheMeasurements` | `boolean` | | `true` | Use this property to turn off caching input measurements. |
|
|
72
72
|
| `hideLanguageExpansionControls` | `boolean` | | | Will hide the language expansion controls when set to `true`. All languages will be shown when set to `true`. |
|
|
@@ -76,11 +76,11 @@ export default Example;
|
|
|
76
76
|
| `isDisabled` | `boolean` | | | Disables all input fields. |
|
|
77
77
|
| `isReadOnly` | `boolean` | | | Disables all input fields and shows them in read-only mode. |
|
|
78
78
|
| `placeholder` | `Object`<br/>[See signature.](#signature-placeholder) | | | Placeholders for each language. Object of the same shape as `value`. |
|
|
79
|
-
| `errorsByLanguage` | `Object`<br/>[See signature.](#signature-
|
|
79
|
+
| `errorsByLanguage` | `Object`<br/>[See signature.](#signature-errorsbylanguage) | | | Errors for each translation. These are forwarded to the `errors` prop of `LocalizedTextInput`. |
|
|
80
80
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
|
|
81
81
|
| `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. |
|
|
82
82
|
| `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
|
|
83
|
-
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-
|
|
83
|
+
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-oninfobuttonclick) | | | Function called when info button is pressed. Info button will only be visible when this prop is passed. |
|
|
84
84
|
| `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text. Will only get rendered when hint is passed as well. |
|
|
85
85
|
| `badge` | `ReactNode` | | | Badge to be displayed beside the label. Might be used to display additional information about the content of the field (E.g verified email) |
|
|
86
86
|
|
|
@@ -200,7 +200,7 @@ LocalizedMultilineTextField.propTypes = process.env.NODE_ENV !== "production" ?
|
|
|
200
200
|
var LocalizedMultilineTextField$1 = LocalizedMultilineTextField;
|
|
201
201
|
|
|
202
202
|
// NOTE: This string will be replaced on build time with the package version.
|
|
203
|
-
var version = "19.22.
|
|
203
|
+
var version = "19.22.6";
|
|
204
204
|
|
|
205
205
|
exports["default"] = LocalizedMultilineTextField$1;
|
|
206
206
|
exports.version = version;
|
|
@@ -167,7 +167,7 @@ LocalizedMultilineTextField.propTypes = {};
|
|
|
167
167
|
var LocalizedMultilineTextField$1 = LocalizedMultilineTextField;
|
|
168
168
|
|
|
169
169
|
// NOTE: This string will be replaced on build time with the package version.
|
|
170
|
-
var version = "19.22.
|
|
170
|
+
var version = "19.22.6";
|
|
171
171
|
|
|
172
172
|
exports["default"] = LocalizedMultilineTextField$1;
|
|
173
173
|
exports.version = version;
|
|
@@ -175,6 +175,6 @@ LocalizedMultilineTextField.propTypes = process.env.NODE_ENV !== "production" ?
|
|
|
175
175
|
var LocalizedMultilineTextField$1 = LocalizedMultilineTextField;
|
|
176
176
|
|
|
177
177
|
// NOTE: This string will be replaced on build time with the package version.
|
|
178
|
-
var version = "19.22.
|
|
178
|
+
var version = "19.22.6";
|
|
179
179
|
|
|
180
180
|
export { LocalizedMultilineTextField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/localized-multiline-text-field",
|
|
3
3
|
"description": "A controlled text input component for localized multi-line strings 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,14 +21,14 @@
|
|
|
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/localized-multiline-text-input": "19.22.
|
|
30
|
-
"@commercetools-uikit/spacings": "19.22.
|
|
31
|
-
"@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/localized-multiline-text-input": "19.22.6",
|
|
30
|
+
"@commercetools-uikit/spacings": "19.22.6",
|
|
31
|
+
"@commercetools-uikit/utils": "19.22.6",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"prop-types": "15.8.1",
|