@commercetools-uikit/async-creatable-select-field 19.0.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-field.cjs.dev.js +4 -2
- package/dist/commercetools-uikit-async-creatable-select-field.cjs.prod.js +3 -2
- package/dist/commercetools-uikit-async-creatable-select-field.esm.js +4 -2
- package/dist/declarations/src/async-creatable-select-field.d.ts +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ export default Example;
|
|
|
70
70
|
| `filterOption` | `AsyncCreatableProps['filterOption']` | | | Custom method to filter whether an option should be displayed in the menu
<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
|
| `isReadOnly` | `boolean` | | | Is the select read-only |
|
|
75
76
|
| `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) |
|
|
@@ -160,7 +160,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
160
160
|
onCreateOption: this.props.onCreateOption,
|
|
161
161
|
createOptionPosition: this.props.createOptionPosition,
|
|
162
162
|
showOptionGroupDivider: this.props.showOptionGroupDivider,
|
|
163
|
-
iconLeft: this.props.iconLeft
|
|
163
|
+
iconLeft: this.props.iconLeft,
|
|
164
|
+
isCondensed: this.props.isCondensed
|
|
164
165
|
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
165
166
|
id: sequentialErrorsId,
|
|
166
167
|
errors: this.props.errors,
|
|
@@ -205,6 +206,7 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
205
206
|
isRequired: _pt__default["default"].bool,
|
|
206
207
|
touched: _pt__default["default"].oneOfType([_pt__default["default"].arrayOf(_pt__default["default"].bool), _pt__default["default"].bool]),
|
|
207
208
|
isAutofocussed: _pt__default["default"].bool,
|
|
209
|
+
isCondensed: _pt__default["default"].bool,
|
|
208
210
|
isReadOnly: _pt__default["default"].bool,
|
|
209
211
|
hasWarning: _pt__default["default"].bool,
|
|
210
212
|
menuPortalZIndex: _pt__default["default"].number,
|
|
@@ -221,7 +223,7 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
221
223
|
} : {};
|
|
222
224
|
|
|
223
225
|
// NOTE: This string will be replaced on build time with the package version.
|
|
224
|
-
var version = "19.
|
|
226
|
+
var version = "19.2.0";
|
|
225
227
|
|
|
226
228
|
exports["default"] = AsyncCreatableSelectField;
|
|
227
229
|
exports.version = version;
|
|
@@ -151,7 +151,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
151
151
|
onCreateOption: this.props.onCreateOption,
|
|
152
152
|
createOptionPosition: this.props.createOptionPosition,
|
|
153
153
|
showOptionGroupDivider: this.props.showOptionGroupDivider,
|
|
154
|
-
iconLeft: this.props.iconLeft
|
|
154
|
+
iconLeft: this.props.iconLeft,
|
|
155
|
+
isCondensed: this.props.isCondensed
|
|
155
156
|
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
156
157
|
id: sequentialErrorsId,
|
|
157
158
|
errors: this.props.errors,
|
|
@@ -190,7 +191,7 @@ AsyncCreatableSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
190
191
|
AsyncCreatableSelectField.propTypes = {};
|
|
191
192
|
|
|
192
193
|
// NOTE: This string will be replaced on build time with the package version.
|
|
193
|
-
var version = "19.
|
|
194
|
+
var version = "19.2.0";
|
|
194
195
|
|
|
195
196
|
exports["default"] = AsyncCreatableSelectField;
|
|
196
197
|
exports.version = version;
|
|
@@ -134,7 +134,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
134
134
|
onCreateOption: this.props.onCreateOption,
|
|
135
135
|
createOptionPosition: this.props.createOptionPosition,
|
|
136
136
|
showOptionGroupDivider: this.props.showOptionGroupDivider,
|
|
137
|
-
iconLeft: this.props.iconLeft
|
|
137
|
+
iconLeft: this.props.iconLeft,
|
|
138
|
+
isCondensed: this.props.isCondensed
|
|
138
139
|
}, filterDataAttributes(this.props))), jsx(FieldErrors, {
|
|
139
140
|
id: sequentialErrorsId,
|
|
140
141
|
errors: this.props.errors,
|
|
@@ -179,6 +180,7 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
179
180
|
isRequired: _pt.bool,
|
|
180
181
|
touched: _pt.oneOfType([_pt.arrayOf(_pt.bool), _pt.bool]),
|
|
181
182
|
isAutofocussed: _pt.bool,
|
|
183
|
+
isCondensed: _pt.bool,
|
|
182
184
|
isReadOnly: _pt.bool,
|
|
183
185
|
hasWarning: _pt.bool,
|
|
184
186
|
menuPortalZIndex: _pt.number,
|
|
@@ -195,6 +197,6 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
195
197
|
} : {};
|
|
196
198
|
|
|
197
199
|
// NOTE: This string will be replaced on build time with the package version.
|
|
198
|
-
var version = "19.
|
|
200
|
+
var version = "19.2.0";
|
|
199
201
|
|
|
200
202
|
export { AsyncCreatableSelectField as default, version };
|
|
@@ -33,6 +33,7 @@ export type TAsyncCreatableSelectFieldProps = {
|
|
|
33
33
|
filterOption?: ReactSelectAsyncCreatableProps['filterOption'];
|
|
34
34
|
containerId?: ReactSelectAsyncCreatableProps['id'];
|
|
35
35
|
isClearable?: ReactSelectAsyncCreatableProps['isClearable'];
|
|
36
|
+
isCondensed?: boolean;
|
|
36
37
|
isDisabled?: ReactSelectAsyncCreatableProps['isDisabled'];
|
|
37
38
|
isReadOnly?: boolean;
|
|
38
39
|
isOptionDisabled?: ReactSelectAsyncCreatableProps['isOptionDisabled'];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-creatable-select-field",
|
|
3
3
|
"description": "An input component with validation states and a label 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/async-creatable-select-input": "19.
|
|
25
|
-
"@commercetools-uikit/constraints": "19.
|
|
26
|
-
"@commercetools-uikit/design-system": "19.
|
|
27
|
-
"@commercetools-uikit/field-errors": "19.
|
|
28
|
-
"@commercetools-uikit/field-label": "19.
|
|
29
|
-
"@commercetools-uikit/field-warnings": "19.
|
|
30
|
-
"@commercetools-uikit/spacings": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/async-creatable-select-input": "19.2.0",
|
|
25
|
+
"@commercetools-uikit/constraints": "19.2.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "19.2.0",
|
|
27
|
+
"@commercetools-uikit/field-errors": "19.2.0",
|
|
28
|
+
"@commercetools-uikit/field-label": "19.2.0",
|
|
29
|
+
"@commercetools-uikit/field-warnings": "19.2.0",
|
|
30
|
+
"@commercetools-uikit/spacings": "19.2.0",
|
|
31
|
+
"@commercetools-uikit/utils": "19.2.0",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"prop-types": "15.8.1",
|