@commercetools-uikit/async-creatable-select-input 13.0.0 → 13.0.4
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 +2 -0
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.dev.js +3 -1
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.prod.js +3 -1
- package/dist/commercetools-uikit-async-creatable-select-input.esm.js +3 -1
- package/dist/declarations/src/async-creatable-select-input.d.ts +2 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -67,6 +67,8 @@ export default Example;
|
|
|
67
67
|
| `iconLeft` | `ReactNode` | | | Icon to display on the left of the placeholder text and selected value. Has no effect when isMulti is enabled. |
|
|
68
68
|
| `aria-label` | `AsyncCreatableProps['aria-label']` | | | Aria label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
69
69
|
| `aria-labelledby` | `AsyncCreatableProps['aria-labelledby']` | | | HTML ID of an element that should be used as the label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
|
+
| `aria-invalid` | `AsyncCreatableProps['aria-invalid']` | | | Indicate if the value entered in the input is invalid.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
71
|
+
| `aria-errormessage` | `AsyncCreatableProps['aria-errormessage']` | | | HTML ID of an element containing an error message related to the input.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
72
|
| `isAutofocussed` | `boolean` | | | Focus the control when it is mounted |
|
|
71
73
|
| `backspaceRemovesValue` | `AsyncCreatableProps['backspaceRemovesValue']` | | | Remove the currently focused option when the user presses backspace
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
72
74
|
| `components` | `AsyncCreatableProps['components']` | | | Map of components to overwrite the default ones, see [what components you can override](https://react-select.com/components)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -81,6 +81,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
81
81
|
children: jsxRuntime.jsx(AsyncCreatableSelect__default["default"], {
|
|
82
82
|
"aria-label": props['aria-label'],
|
|
83
83
|
"aria-labelledby": props['aria-labelledby'],
|
|
84
|
+
"aria-invalid": props['aria-invalid'],
|
|
85
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
84
86
|
autoFocus: props.isAutofocussed,
|
|
85
87
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
86
88
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -216,7 +218,7 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
|
|
|
216
218
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
217
219
|
|
|
218
220
|
// NOTE: This string will be replaced on build time with the package version.
|
|
219
|
-
var version = "13.0.
|
|
221
|
+
var version = "13.0.4";
|
|
220
222
|
|
|
221
223
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
222
224
|
exports.version = version;
|
|
@@ -77,6 +77,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
77
77
|
children: jsxRuntime.jsx(AsyncCreatableSelect__default["default"], {
|
|
78
78
|
"aria-label": props['aria-label'],
|
|
79
79
|
"aria-labelledby": props['aria-labelledby'],
|
|
80
|
+
"aria-invalid": props['aria-invalid'],
|
|
81
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
80
82
|
autoFocus: props.isAutofocussed,
|
|
81
83
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
82
84
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -201,7 +203,7 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
|
|
|
201
203
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
202
204
|
|
|
203
205
|
// NOTE: This string will be replaced on build time with the package version.
|
|
204
|
-
var version = "13.0.
|
|
206
|
+
var version = "13.0.4";
|
|
205
207
|
|
|
206
208
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
207
209
|
exports.version = version;
|
|
@@ -60,6 +60,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
60
60
|
children: jsx(AsyncCreatableSelect, {
|
|
61
61
|
"aria-label": props['aria-label'],
|
|
62
62
|
"aria-labelledby": props['aria-labelledby'],
|
|
63
|
+
"aria-invalid": props['aria-invalid'],
|
|
64
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
63
65
|
autoFocus: props.isAutofocussed,
|
|
64
66
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
65
67
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -195,6 +197,6 @@ addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_objectSp
|
|
|
195
197
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
196
198
|
|
|
197
199
|
// NOTE: This string will be replaced on build time with the package version.
|
|
198
|
-
var version = "13.0.
|
|
200
|
+
var version = "13.0.4";
|
|
199
201
|
|
|
200
202
|
export { AsyncCreatableSelectInput$1 as default, version };
|
|
@@ -17,6 +17,8 @@ declare type TAsyncCreatableSelectInputProps = {
|
|
|
17
17
|
iconLeft?: ReactNode;
|
|
18
18
|
'aria-label'?: ReactSelectAsyncCreatableProps['aria-label'];
|
|
19
19
|
'aria-labelledby'?: ReactSelectAsyncCreatableProps['aria-labelledby'];
|
|
20
|
+
'aria-invalid'?: ReactSelectAsyncCreatableProps['aria-invalid'];
|
|
21
|
+
'aria-errormessage'?: ReactSelectAsyncCreatableProps['aria-errormessage'];
|
|
20
22
|
isAutofocussed?: boolean;
|
|
21
23
|
backspaceRemovesValue?: ReactSelectAsyncCreatableProps['backspaceRemovesValue'];
|
|
22
24
|
components?: ReactSelectAsyncCreatableProps['components'];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-creatable-select-input",
|
|
3
3
|
"description": "An input component getting a selection from an asynchronously loaded list from the user, and where options can be created by the user.",
|
|
4
|
-
"version": "13.0.
|
|
4
|
+
"version": "13.0.4",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "7.17.2",
|
|
23
23
|
"@babel/runtime-corejs3": "7.17.2",
|
|
24
|
-
"@commercetools-uikit/constraints": "13.0.
|
|
24
|
+
"@commercetools-uikit/constraints": "13.0.2",
|
|
25
25
|
"@commercetools-uikit/design-system": "13.0.0",
|
|
26
|
-
"@commercetools-uikit/icons": "13.0.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "13.0.
|
|
28
|
-
"@commercetools-uikit/select-utils": "13.0.
|
|
29
|
-
"@commercetools-uikit/spacings": "13.0.
|
|
30
|
-
"@commercetools-uikit/text": "13.0.
|
|
31
|
-
"@commercetools-uikit/utils": "
|
|
32
|
-
"@emotion/is-prop-valid": "1.1.
|
|
26
|
+
"@commercetools-uikit/icons": "13.0.2",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "13.0.4",
|
|
28
|
+
"@commercetools-uikit/select-utils": "13.0.4",
|
|
29
|
+
"@commercetools-uikit/spacings": "13.0.2",
|
|
30
|
+
"@commercetools-uikit/text": "13.0.4",
|
|
31
|
+
"@commercetools-uikit/utils": "13.0.2",
|
|
32
|
+
"@emotion/is-prop-valid": "1.1.2",
|
|
33
33
|
"@emotion/react": "^11.4.0",
|
|
34
34
|
"@emotion/styled": "^11.3.0",
|
|
35
35
|
"lodash": "4.17.21",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"react": "17.0.2",
|
|
41
41
|
"react-dom": "17.0.2",
|
|
42
|
-
"react-intl": "5.24.6"
|
|
42
|
+
"react-intl": "^5.24.6"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "17.x",
|