@commercetools-uikit/multiline-text-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
|
@@ -49,8 +49,8 @@ export default Example;
|
|
|
49
49
|
| ---------------------------- | -------------------------------------------------------------------------------------------- | :------: | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
50
|
| `id` | `string` | | | Used as HTML id property. An id is auto-generated when it is not specified. |
|
|
51
51
|
| `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. |
|
|
52
|
-
| `renderError` | `Function`<br/>[See signature.](#signature-
|
|
53
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
52
|
+
| `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. |
|
|
53
|
+
| `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. |
|
|
54
54
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
55
55
|
| `touched` | `boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
56
56
|
| `autoComplete` | `string` | | | Used as HTML `autocomplete` property |
|
|
@@ -69,7 +69,7 @@ export default Example;
|
|
|
69
69
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Title of the label |
|
|
70
70
|
| `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`. |
|
|
71
71
|
| `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
|
|
72
|
-
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-
|
|
72
|
+
| `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. |
|
|
73
73
|
| `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text.
<br />
Will only get rendered when `hint` is passed as well. |
|
|
74
74
|
| `badge` | `string` | | | 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) |
|
|
75
75
|
|
|
@@ -189,7 +189,7 @@ MultilineTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
189
189
|
var MultilineTextField$1 = MultilineTextField;
|
|
190
190
|
|
|
191
191
|
// NOTE: This string will be replaced on build time with the package version.
|
|
192
|
-
var version = "19.22.
|
|
192
|
+
var version = "19.22.6";
|
|
193
193
|
|
|
194
194
|
exports["default"] = MultilineTextField$1;
|
|
195
195
|
exports.version = version;
|
|
@@ -158,7 +158,7 @@ MultilineTextField.propTypes = {};
|
|
|
158
158
|
var MultilineTextField$1 = MultilineTextField;
|
|
159
159
|
|
|
160
160
|
// NOTE: This string will be replaced on build time with the package version.
|
|
161
|
-
var version = "19.22.
|
|
161
|
+
var version = "19.22.6";
|
|
162
162
|
|
|
163
163
|
exports["default"] = MultilineTextField$1;
|
|
164
164
|
exports.version = version;
|
|
@@ -164,6 +164,6 @@ MultilineTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
164
164
|
var MultilineTextField$1 = MultilineTextField;
|
|
165
165
|
|
|
166
166
|
// NOTE: This string will be replaced on build time with the package version.
|
|
167
|
-
var version = "19.22.
|
|
167
|
+
var version = "19.22.6";
|
|
168
168
|
|
|
169
169
|
export { MultilineTextField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/multiline-text-field",
|
|
3
3
|
"description": "A controlled text input component for multi-line strings with validation states and a label.",
|
|
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/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/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",
|