@commercetools-uikit/async-select-input 16.10.0 → 16.11.0
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 +1 -0
- package/dist/commercetools-uikit-async-select-input.cjs.dev.js +2 -2
- package/dist/commercetools-uikit-async-select-input.cjs.prod.js +2 -2
- package/dist/commercetools-uikit-async-select-input.esm.js +2 -2
- package/dist/declarations/src/async-select-input.d.ts +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -81,6 +81,7 @@ export default Example;
|
|
|
81
81
|
| `isOptionDisabled` | `AsyncProps['isOptionDisabled']` | | | Override the built-in logic to detect whether an option is disabled
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
82
82
|
| `isMulti` | `AsyncProps['isMulti']` | | | Support multiple selected options
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
83
83
|
| `isSearchable` | `AsyncProps['isSearchable']` | | `true` | Whether to enable search functionality
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
84
|
+
| `menuIsOpen` | `AsyncProps['menuIsOpen']` | | | Can be used to enforce the select input to be opened
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
84
85
|
| `maxMenuHeight` | `AsyncProps['maxMenuHeight']` | | | Maximum height of the menu before scrolling
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
85
86
|
| `menuPortalTarget` | `AsyncProps['menuPortalTarget']` | | | Dom element to portal the select menu to
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
86
87
|
| `menuPortalZIndex` | `number` | | `1` | z-index value for the menu portal
<br>
Use in conjunction with `menuPortalTarget` |
|
|
@@ -90,7 +90,7 @@ const AsyncSelectInput = props => {
|
|
|
90
90
|
readOnly: true
|
|
91
91
|
}))
|
|
92
92
|
} : {}), props.components),
|
|
93
|
-
menuIsOpen: props.isReadOnly ? false :
|
|
93
|
+
menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
|
|
94
94
|
styles: selectUtils.createSelectStyles({
|
|
95
95
|
hasWarning: props.hasWarning,
|
|
96
96
|
hasError: props.hasError,
|
|
@@ -246,7 +246,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
246
246
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
247
247
|
|
|
248
248
|
// NOTE: This string will be replaced on build time with the package version.
|
|
249
|
-
var version = "16.
|
|
249
|
+
var version = "16.11.0";
|
|
250
250
|
|
|
251
251
|
exports["default"] = AsyncSelectInput$1;
|
|
252
252
|
exports.version = version;
|
|
@@ -87,7 +87,7 @@ const AsyncSelectInput = props => {
|
|
|
87
87
|
readOnly: true
|
|
88
88
|
}))
|
|
89
89
|
} : {}), props.components),
|
|
90
|
-
menuIsOpen: props.isReadOnly ? false :
|
|
90
|
+
menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
|
|
91
91
|
styles: selectUtils.createSelectStyles({
|
|
92
92
|
hasWarning: props.hasWarning,
|
|
93
93
|
hasError: props.hasError,
|
|
@@ -230,7 +230,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
230
230
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
231
231
|
|
|
232
232
|
// NOTE: This string will be replaced on build time with the package version.
|
|
233
|
-
var version = "16.
|
|
233
|
+
var version = "16.11.0";
|
|
234
234
|
|
|
235
235
|
exports["default"] = AsyncSelectInput$1;
|
|
236
236
|
exports.version = version;
|
|
@@ -70,7 +70,7 @@ const AsyncSelectInput = props => {
|
|
|
70
70
|
readOnly: true
|
|
71
71
|
}))
|
|
72
72
|
} : {}), props.components),
|
|
73
|
-
menuIsOpen: props.isReadOnly ? false :
|
|
73
|
+
menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
|
|
74
74
|
styles: createSelectStyles({
|
|
75
75
|
hasWarning: props.hasWarning,
|
|
76
76
|
hasError: props.hasError,
|
|
@@ -226,6 +226,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
|
|
|
226
226
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
227
227
|
|
|
228
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
229
|
-
var version = "16.
|
|
229
|
+
var version = "16.11.0";
|
|
230
230
|
|
|
231
231
|
export { AsyncSelectInput$1 as default, version };
|
|
@@ -32,6 +32,7 @@ export type TAsyncSelectInputProps = {
|
|
|
32
32
|
isOptionDisabled?: ReactSelectAsyncProps['isOptionDisabled'];
|
|
33
33
|
isMulti?: ReactSelectAsyncProps['isMulti'];
|
|
34
34
|
isSearchable?: ReactSelectAsyncProps['isSearchable'];
|
|
35
|
+
menuIsOpen?: ReactSelectAsyncProps['menuIsOpen'];
|
|
35
36
|
maxMenuHeight?: ReactSelectAsyncProps['maxMenuHeight'];
|
|
36
37
|
menuPortalTarget?: ReactSelectAsyncProps['menuPortalTarget'];
|
|
37
38
|
menuPortalZIndex: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-select-input",
|
|
3
3
|
"description": "An input component getting a selection from an asynchronously loaded list from the user.",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.11.0",
|
|
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": "16.
|
|
25
|
-
"@commercetools-uikit/design-system": "16.
|
|
26
|
-
"@commercetools-uikit/icons": "16.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "16.
|
|
28
|
-
"@commercetools-uikit/select-utils": "16.
|
|
29
|
-
"@commercetools-uikit/spacings": "16.
|
|
30
|
-
"@commercetools-uikit/text": "16.
|
|
31
|
-
"@commercetools-uikit/utils": "16.
|
|
24
|
+
"@commercetools-uikit/constraints": "16.11.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.11.0",
|
|
26
|
+
"@commercetools-uikit/icons": "16.11.0",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "16.11.0",
|
|
28
|
+
"@commercetools-uikit/select-utils": "16.11.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "16.11.0",
|
|
30
|
+
"@commercetools-uikit/text": "16.11.0",
|
|
31
|
+
"@commercetools-uikit/utils": "16.11.0",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"lodash": "4.17.21",
|