@commercetools-uikit/async-select-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
|
@@ -55,9 +55,9 @@ export default Example;
|
|
|
55
55
|
| `id` | `AsyncProps['inputId']` | | | Used as HTML id property. An id is auto-generated when it is not specified.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
56
56
|
| `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. |
|
|
57
57
|
| `errors` | `Record` | | | A map of errors. Error messages for known errors are rendered automatically.
<br />
Unknown errors will be forwarded to `renderError` |
|
|
58
|
-
| `renderError` | `Function`<br/>[See signature.](#signature-
|
|
58
|
+
| `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. |
|
|
59
59
|
| `warnings` | `Record` | | | A map of warnings. Warning messages for known warnings are rendered automatically.
<br />
Unknown warnings will be forwarded to `renderWarning` |
|
|
60
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
60
|
+
| `renderWarning` | `Function`<br/>[See signature.](#signature-renderwarning) | | | Called with custom warnings. This function can return a message which will be wrapped in an WarningMessage. It can also return null to show no warning. |
|
|
61
61
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
62
62
|
| `touched` | `union`<br/>Possible values:<br/>`boolean[] , boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
63
63
|
| `aria-label` | `AsyncProps['aria-label']` | | | Aria label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -82,8 +82,8 @@ export default Example;
|
|
|
82
82
|
| `menuShouldBlockScroll` | `AsyncProps['menuShouldBlockScroll']` | | | whether the menu should block scroll while open
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
83
83
|
| `name` | `AsyncProps['name']` | | | Name of the HTML Input (optional - without this, no input will be rendered)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
84
84
|
| `noOptionsMessage` | `AsyncProps['noOptionsMessage']` | | | Can be used to render a custom value when there are no options (either because of no search results, or all options have been used, or there were none in the first place).
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
85
|
-
| `onBlur` | `Function`<br/>[See signature.](#signature-
|
|
86
|
-
| `onChange` | `Function`<br/>[See signature.](#signature-
|
|
85
|
+
| `onBlur` | `Function`<br/>[See signature.](#signature-onblur) | | | Handle blur events on the control |
|
|
86
|
+
| `onChange` | `Function`<br/>[See signature.](#signature-onchange) | | | Called with a fake event when value changes.
<br />
The event's `target.name` will be the name supplied in props. The event's `target.value` will hold the value. The value will be the selected option, or an array of options in case `isMulti` is `true`. |
|
|
87
87
|
| `onFocus` | `FocusEventHandler` | | | Handle focus events on the control |
|
|
88
88
|
| `onInputChange` | `AsyncProps['onInputChange']` | | | Handle change events on the input
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
89
89
|
| `placeholder` | `AsyncProps['placeholder']` | | | Placeholder text for the select value
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -98,7 +98,7 @@ export default Example;
|
|
|
98
98
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
|
|
99
99
|
| `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`. |
|
|
100
100
|
| `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
|
|
101
|
-
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-
|
|
101
|
+
| `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. |
|
|
102
102
|
| `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text.
<br />
Will only get rendered when `hint` is passed as well. |
|
|
103
103
|
| `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) |
|
|
104
104
|
| `iconLeft` | `ReactNode` | | | Icon to display on the left of the placeholder text and selected value. Has no effect when isMulti is enabled. |
|
|
@@ -221,7 +221,7 @@ AsyncSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
221
221
|
} : {};
|
|
222
222
|
|
|
223
223
|
// NOTE: This string will be replaced on build time with the package version.
|
|
224
|
-
var version = "19.22.
|
|
224
|
+
var version = "19.22.6";
|
|
225
225
|
|
|
226
226
|
exports["default"] = AsyncSelectField;
|
|
227
227
|
exports.version = version;
|
|
@@ -186,7 +186,7 @@ AsyncSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
186
186
|
AsyncSelectField.propTypes = {};
|
|
187
187
|
|
|
188
188
|
// NOTE: This string will be replaced on build time with the package version.
|
|
189
|
-
var version = "19.22.
|
|
189
|
+
var version = "19.22.6";
|
|
190
190
|
|
|
191
191
|
exports["default"] = AsyncSelectField;
|
|
192
192
|
exports.version = version;
|
|
@@ -195,6 +195,6 @@ AsyncSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
195
195
|
} : {};
|
|
196
196
|
|
|
197
197
|
// NOTE: This string will be replaced on build time with the package version.
|
|
198
|
-
var version = "19.22.
|
|
198
|
+
var version = "19.22.6";
|
|
199
199
|
|
|
200
200
|
export { AsyncSelectField as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-select-field",
|
|
3
3
|
"description": "A controlled input component with validation states and a label getting a selection from an asynchronously loaded list from the user.",
|
|
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/async-select-input": "19.22.
|
|
25
|
-
"@commercetools-uikit/constraints": "19.22.
|
|
26
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
27
|
-
"@commercetools-uikit/field-errors": "19.22.
|
|
28
|
-
"@commercetools-uikit/field-label": "19.22.
|
|
29
|
-
"@commercetools-uikit/field-warnings": "19.22.
|
|
30
|
-
"@commercetools-uikit/spacings": "19.22.
|
|
31
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/async-select-input": "19.22.6",
|
|
25
|
+
"@commercetools-uikit/constraints": "19.22.6",
|
|
26
|
+
"@commercetools-uikit/design-system": "19.22.6",
|
|
27
|
+
"@commercetools-uikit/field-errors": "19.22.6",
|
|
28
|
+
"@commercetools-uikit/field-label": "19.22.6",
|
|
29
|
+
"@commercetools-uikit/field-warnings": "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",
|