@commercetools-uikit/async-creatable-select-input 19.1.0 → 19.2.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-creatable-select-input.cjs.dev.js +5 -2
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.prod.js +4 -2
- package/dist/commercetools-uikit-async-creatable-select-input.esm.js +5 -2
- package/dist/declarations/src/async-creatable-select-input.d.ts +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ export default Example;
|
|
|
70
70
|
| `inputValue` | `AsyncCreatableProps['inputValue']` | | | The value of the search input
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
71
71
|
| `containerId` | `AsyncCreatableProps['id']` | | | The id to set on the SelectContainer component
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
72
72
|
| `isClearable` | `AsyncCreatableProps['isClearable']` | | | Is the select value clearable
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
73
|
+
| `isCondensed` | `boolean` | | | Use this property to reduce the paddings of the component for a ui compact variant |
|
|
73
74
|
| `isDisabled` | `AsyncCreatableProps['isDisabled']` | | | Is the select disabled
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
74
75
|
| `isOptionDisabled` | `AsyncCreatableProps['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) |
|
|
75
76
|
| `isMulti` | `AsyncCreatableProps['isMulti']` | | | Support multiple selected options
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -94,6 +94,7 @@ const AsyncCreatableSelectInput = props => {
|
|
|
94
94
|
hasError: props.hasError,
|
|
95
95
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
96
96
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
97
|
+
isCondensed: props.isCondensed,
|
|
97
98
|
isDisabled: props.isDisabled,
|
|
98
99
|
isReadOnly: props.isReadOnly,
|
|
99
100
|
iconLeft: props.iconLeft,
|
|
@@ -183,7 +184,8 @@ const AsyncCreatableSelectInput = props => {
|
|
|
183
184
|
createOptionPosition: props.createOptionPosition
|
|
184
185
|
// @ts-ignore
|
|
185
186
|
,
|
|
186
|
-
iconLeft: props.iconLeft
|
|
187
|
+
iconLeft: props.iconLeft,
|
|
188
|
+
isCondensed: props.isCondensed
|
|
187
189
|
})
|
|
188
190
|
}))
|
|
189
191
|
});
|
|
@@ -195,6 +197,7 @@ AsyncCreatableSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
195
197
|
isReadOnly: _pt__default["default"].bool,
|
|
196
198
|
iconLeft: _pt__default["default"].node,
|
|
197
199
|
isAutofocussed: _pt__default["default"].bool,
|
|
200
|
+
isCondensed: _pt__default["default"].bool,
|
|
198
201
|
menuPortalZIndex: _pt__default["default"].number.isRequired,
|
|
199
202
|
onBlur: _pt__default["default"].func,
|
|
200
203
|
onChange: _pt__default["default"].func,
|
|
@@ -249,7 +252,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
249
252
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
250
253
|
|
|
251
254
|
// NOTE: This string will be replaced on build time with the package version.
|
|
252
|
-
var version = "19.
|
|
255
|
+
var version = "19.2.0";
|
|
253
256
|
|
|
254
257
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
255
258
|
exports.version = version;
|
|
@@ -88,6 +88,7 @@ const AsyncCreatableSelectInput = props => {
|
|
|
88
88
|
hasError: props.hasError,
|
|
89
89
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
90
90
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
91
|
+
isCondensed: props.isCondensed,
|
|
91
92
|
isDisabled: props.isDisabled,
|
|
92
93
|
isReadOnly: props.isReadOnly,
|
|
93
94
|
iconLeft: props.iconLeft,
|
|
@@ -177,7 +178,8 @@ const AsyncCreatableSelectInput = props => {
|
|
|
177
178
|
createOptionPosition: props.createOptionPosition
|
|
178
179
|
// @ts-ignore
|
|
179
180
|
,
|
|
180
|
-
iconLeft: props.iconLeft
|
|
181
|
+
iconLeft: props.iconLeft,
|
|
182
|
+
isCondensed: props.isCondensed
|
|
181
183
|
})
|
|
182
184
|
}))
|
|
183
185
|
});
|
|
@@ -232,7 +234,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
232
234
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
233
235
|
|
|
234
236
|
// NOTE: This string will be replaced on build time with the package version.
|
|
235
|
-
var version = "19.
|
|
237
|
+
var version = "19.2.0";
|
|
236
238
|
|
|
237
239
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
238
240
|
exports.version = version;
|
|
@@ -73,6 +73,7 @@ const AsyncCreatableSelectInput = props => {
|
|
|
73
73
|
hasError: props.hasError,
|
|
74
74
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
75
75
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
76
|
+
isCondensed: props.isCondensed,
|
|
76
77
|
isDisabled: props.isDisabled,
|
|
77
78
|
isReadOnly: props.isReadOnly,
|
|
78
79
|
iconLeft: props.iconLeft,
|
|
@@ -162,7 +163,8 @@ const AsyncCreatableSelectInput = props => {
|
|
|
162
163
|
createOptionPosition: props.createOptionPosition
|
|
163
164
|
// @ts-ignore
|
|
164
165
|
,
|
|
165
|
-
iconLeft: props.iconLeft
|
|
166
|
+
iconLeft: props.iconLeft,
|
|
167
|
+
isCondensed: props.isCondensed
|
|
166
168
|
})
|
|
167
169
|
}))
|
|
168
170
|
});
|
|
@@ -174,6 +176,7 @@ AsyncCreatableSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
174
176
|
isReadOnly: _pt.bool,
|
|
175
177
|
iconLeft: _pt.node,
|
|
176
178
|
isAutofocussed: _pt.bool,
|
|
179
|
+
isCondensed: _pt.bool,
|
|
177
180
|
menuPortalZIndex: _pt.number.isRequired,
|
|
178
181
|
onBlur: _pt.func,
|
|
179
182
|
onChange: _pt.func,
|
|
@@ -228,6 +231,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
228
231
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
229
232
|
|
|
230
233
|
// NOTE: This string will be replaced on build time with the package version.
|
|
231
|
-
var version = "19.
|
|
234
|
+
var version = "19.2.0";
|
|
232
235
|
|
|
233
236
|
export { AsyncCreatableSelectInput$1 as default, version };
|
|
@@ -28,6 +28,7 @@ export type TAsyncCreatableSelectInputProps = {
|
|
|
28
28
|
inputValue?: ReactSelectAsyncCreatableProps['inputValue'];
|
|
29
29
|
containerId?: ReactSelectAsyncCreatableProps['id'];
|
|
30
30
|
isClearable?: ReactSelectAsyncCreatableProps['isClearable'];
|
|
31
|
+
isCondensed?: boolean;
|
|
31
32
|
isDisabled?: ReactSelectAsyncCreatableProps['isDisabled'];
|
|
32
33
|
isOptionDisabled?: ReactSelectAsyncCreatableProps['isOptionDisabled'];
|
|
33
34
|
isMulti?: ReactSelectAsyncCreatableProps['isMulti'];
|
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": "19.
|
|
4
|
+
"version": "19.2.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": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/icons": "19.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "19.
|
|
28
|
-
"@commercetools-uikit/select-utils": "19.
|
|
29
|
-
"@commercetools-uikit/spacings": "19.
|
|
30
|
-
"@commercetools-uikit/text": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.2.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.2.0",
|
|
26
|
+
"@commercetools-uikit/icons": "19.2.0",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "19.2.0",
|
|
28
|
+
"@commercetools-uikit/select-utils": "19.2.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "19.2.0",
|
|
30
|
+
"@commercetools-uikit/text": "19.2.0",
|
|
31
|
+
"@commercetools-uikit/utils": "19.2.0",
|
|
32
32
|
"@emotion/is-prop-valid": "1.2.1",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|