@commercetools-uikit/async-select-input 13.0.2 → 14.0.1
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 +10 -9
- package/dist/commercetools-uikit-async-select-input.cjs.dev.js +47 -12
- package/dist/commercetools-uikit-async-select-input.cjs.prod.js +46 -11
- package/dist/commercetools-uikit-async-select-input.esm.js +48 -13
- package/dist/declarations/src/async-select-input.d.ts +58 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -66,6 +66,8 @@ export default Example;
|
|
|
66
66
|
| `isReadOnly` | `boolean` | | | Indicates that the field is displaying read-only content |
|
|
67
67
|
| `aria-label` | `AsyncProps['aria-label']` | | | Aria label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
68
68
|
| `aria-labelledby` | `AsyncProps['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) |
|
|
69
|
+
| `aria-invalid` | `AsyncProps['aria-invalid']` | | | Indicate if the value entered in the input is invalid.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
|
+
| `aria-errormessage` | `AsyncProps['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) |
|
|
69
71
|
| `isAutofocussed` | `boolean` | | | Focus the control when it is mounted |
|
|
70
72
|
| `backspaceRemovesValue` | `AsyncProps['backspaceRemovesValue']` | | | Remove the currently focused option when the user presses backspace
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
71
73
|
| `components` | `AsyncProps['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) |
|
|
@@ -123,36 +125,35 @@ In case you need one of the currently excluded props, feel free to open a PR add
|
|
|
123
125
|
|
|
124
126
|
#### `isTouched(touched)`
|
|
125
127
|
|
|
126
|
-
|
|
127
|
-
Returns `true` when truthy.
|
|
128
|
+
Returns truthy value for the Formik `touched` value of this input field.
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
## Components
|
|
130
131
|
|
|
131
|
-
It is possible to customize `
|
|
132
|
-
`
|
|
132
|
+
It is possible to customize `AsyncSelectInput` by passing the `components` property.
|
|
133
|
+
`AsyncSelectInput` exports the default underlying components as static exports.
|
|
133
134
|
|
|
134
135
|
Components available as static exports are:
|
|
135
136
|
|
|
136
137
|
- `ClearIndicator`
|
|
137
138
|
- `Control`
|
|
138
|
-
- `DropdownIndicator`
|
|
139
|
-
- `DownChevron`
|
|
140
139
|
- `CrossIcon`
|
|
140
|
+
- `DownChevron`
|
|
141
|
+
- `DropdownIndicator`
|
|
141
142
|
- `Group`
|
|
142
143
|
- `GroupHeading`
|
|
143
144
|
- `IndicatorsContainer`
|
|
144
145
|
- `IndicatorSeparator`
|
|
145
146
|
- `Input`
|
|
146
147
|
- `LoadingIndicator`
|
|
148
|
+
- `LoadingMessage`
|
|
147
149
|
- `Menu`
|
|
148
150
|
- `MenuList`
|
|
149
151
|
- `MenuPortal`
|
|
150
|
-
- `LoadingMessage`
|
|
151
|
-
- `NoOptionsMessage`
|
|
152
152
|
- `MultiValue`
|
|
153
153
|
- `MultiValueContainer`
|
|
154
154
|
- `MultiValueLabel`
|
|
155
155
|
- `MultiValueRemove`
|
|
156
|
+
- `NoOptionsMessage`
|
|
156
157
|
- `Option`
|
|
157
158
|
- `Placeholder`
|
|
158
159
|
- `SelectContainer`
|
|
@@ -83,6 +83,8 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
83
83
|
children: jsxRuntime.jsx(AsyncSelect__default["default"], {
|
|
84
84
|
"aria-label": props['aria-label'],
|
|
85
85
|
"aria-labelledby": props['aria-labelledby'],
|
|
86
|
+
"aria-invalid": props['aria-invalid'],
|
|
87
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
86
88
|
autoFocus: props.isAutofocussed,
|
|
87
89
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
88
90
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -176,11 +178,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
176
178
|
})
|
|
177
179
|
}))
|
|
178
180
|
});
|
|
179
|
-
};
|
|
180
|
-
// deal with an array. The touched state ends up being an empty array in case
|
|
181
|
-
// values were removed only. So we have to treat any array we receive as
|
|
182
|
-
// a signal of the field having been touched.
|
|
183
|
-
|
|
181
|
+
};
|
|
184
182
|
|
|
185
183
|
AsyncSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
186
184
|
horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
@@ -196,20 +194,57 @@ AsyncSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
196
194
|
showOptionGroupDivider: _pt__default["default"].bool,
|
|
197
195
|
iconLeft: _pt__default["default"].node
|
|
198
196
|
} : {};
|
|
197
|
+
AsyncSelectInput.displayName = 'AsyncSelectInput';
|
|
198
|
+
AsyncSelectInput.defaultProps = defaultProps;
|
|
199
|
+
/**
|
|
200
|
+
* Expose static helper methods.
|
|
201
|
+
*/
|
|
202
|
+
// Formik will set the field to an array on submission, so we always have to
|
|
203
|
+
// deal with an array. The touched state ends up being an empty array in case
|
|
204
|
+
// values were removed only. So we have to treat any array we receive as
|
|
205
|
+
// a signal of the field having been touched.
|
|
199
206
|
|
|
200
207
|
AsyncSelectInput.isTouched = function (touched) {
|
|
201
208
|
return Boolean(touched);
|
|
202
209
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Expose react-select components for customization purposes.
|
|
212
|
+
*/
|
|
213
|
+
// custom
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
AsyncSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
217
|
+
AsyncSelectInput.Control = reactSelect.components.Control;
|
|
218
|
+
AsyncSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
219
|
+
AsyncSelectInput.DownChevron = reactSelect.components.DownChevron; // custom
|
|
220
|
+
|
|
221
|
+
AsyncSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
222
|
+
AsyncSelectInput.Group = reactSelect.components.Group;
|
|
223
|
+
AsyncSelectInput.GroupHeading = reactSelect.components.GroupHeading;
|
|
224
|
+
AsyncSelectInput.IndicatorSeparator = reactSelect.components.IndicatorSeparator;
|
|
225
|
+
AsyncSelectInput.IndicatorsContainer = reactSelect.components.IndicatorsContainer;
|
|
226
|
+
AsyncSelectInput.Input = reactSelect.components.Input; // custom
|
|
227
|
+
|
|
228
|
+
AsyncSelectInput.LoadingIndicator = customizedComponents.LoadingIndicator;
|
|
229
|
+
AsyncSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
230
|
+
AsyncSelectInput.Menu = reactSelect.components.Menu;
|
|
231
|
+
AsyncSelectInput.MenuList = reactSelect.components.MenuList;
|
|
232
|
+
AsyncSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
233
|
+
AsyncSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
234
|
+
AsyncSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
235
|
+
AsyncSelectInput.MultiValueLabel = reactSelect.components.MultiValueLabel; // custom
|
|
236
|
+
|
|
237
|
+
AsyncSelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
238
|
+
AsyncSelectInput.NoOptionsMessage = reactSelect.components.NoOptionsMessage;
|
|
239
|
+
AsyncSelectInput.Option = reactSelect.components.Option;
|
|
240
|
+
AsyncSelectInput.Placeholder = reactSelect.components.Placeholder;
|
|
241
|
+
AsyncSelectInput.SelectContainer = reactSelect.components.SelectContainer;
|
|
242
|
+
AsyncSelectInput.SingleValue = reactSelect.components.SingleValue;
|
|
243
|
+
AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
209
244
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
210
245
|
|
|
211
246
|
// NOTE: This string will be replaced on build time with the package version.
|
|
212
|
-
var version = "
|
|
247
|
+
var version = "14.0.1";
|
|
213
248
|
|
|
214
249
|
exports["default"] = AsyncSelectInput$1;
|
|
215
250
|
exports.version = version;
|
|
@@ -82,6 +82,8 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
82
82
|
children: jsxRuntime.jsx(AsyncSelect__default["default"], {
|
|
83
83
|
"aria-label": props['aria-label'],
|
|
84
84
|
"aria-labelledby": props['aria-labelledby'],
|
|
85
|
+
"aria-invalid": props['aria-invalid'],
|
|
86
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
85
87
|
autoFocus: props.isAutofocussed,
|
|
86
88
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
87
89
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -175,27 +177,60 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
175
177
|
})
|
|
176
178
|
}))
|
|
177
179
|
});
|
|
178
|
-
};
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
AsyncSelectInput.propTypes = {};
|
|
183
|
+
AsyncSelectInput.displayName = 'AsyncSelectInput';
|
|
184
|
+
AsyncSelectInput.defaultProps = defaultProps;
|
|
185
|
+
/**
|
|
186
|
+
* Expose static helper methods.
|
|
187
|
+
*/
|
|
188
|
+
// Formik will set the field to an array on submission, so we always have to
|
|
179
189
|
// deal with an array. The touched state ends up being an empty array in case
|
|
180
190
|
// values were removed only. So we have to treat any array we receive as
|
|
181
191
|
// a signal of the field having been touched.
|
|
182
192
|
|
|
183
|
-
|
|
184
|
-
AsyncSelectInput.propTypes = {};
|
|
185
|
-
|
|
186
193
|
AsyncSelectInput.isTouched = function (touched) {
|
|
187
194
|
return Boolean(touched);
|
|
188
195
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
/**
|
|
197
|
+
* Expose react-select components for customization purposes.
|
|
198
|
+
*/
|
|
199
|
+
// custom
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
AsyncSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
203
|
+
AsyncSelectInput.Control = reactSelect.components.Control;
|
|
204
|
+
AsyncSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
205
|
+
AsyncSelectInput.DownChevron = reactSelect.components.DownChevron; // custom
|
|
206
|
+
|
|
207
|
+
AsyncSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
208
|
+
AsyncSelectInput.Group = reactSelect.components.Group;
|
|
209
|
+
AsyncSelectInput.GroupHeading = reactSelect.components.GroupHeading;
|
|
210
|
+
AsyncSelectInput.IndicatorSeparator = reactSelect.components.IndicatorSeparator;
|
|
211
|
+
AsyncSelectInput.IndicatorsContainer = reactSelect.components.IndicatorsContainer;
|
|
212
|
+
AsyncSelectInput.Input = reactSelect.components.Input; // custom
|
|
213
|
+
|
|
214
|
+
AsyncSelectInput.LoadingIndicator = customizedComponents.LoadingIndicator;
|
|
215
|
+
AsyncSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
216
|
+
AsyncSelectInput.Menu = reactSelect.components.Menu;
|
|
217
|
+
AsyncSelectInput.MenuList = reactSelect.components.MenuList;
|
|
218
|
+
AsyncSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
219
|
+
AsyncSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
220
|
+
AsyncSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
221
|
+
AsyncSelectInput.MultiValueLabel = reactSelect.components.MultiValueLabel; // custom
|
|
222
|
+
|
|
223
|
+
AsyncSelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
224
|
+
AsyncSelectInput.NoOptionsMessage = reactSelect.components.NoOptionsMessage;
|
|
225
|
+
AsyncSelectInput.Option = reactSelect.components.Option;
|
|
226
|
+
AsyncSelectInput.Placeholder = reactSelect.components.Placeholder;
|
|
227
|
+
AsyncSelectInput.SelectContainer = reactSelect.components.SelectContainer;
|
|
228
|
+
AsyncSelectInput.SingleValue = reactSelect.components.SingleValue;
|
|
229
|
+
AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
195
230
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
196
231
|
|
|
197
232
|
// NOTE: This string will be replaced on build time with the package version.
|
|
198
|
-
var version = "
|
|
233
|
+
var version = "14.0.1";
|
|
199
234
|
|
|
200
235
|
exports["default"] = AsyncSelectInput$1;
|
|
201
236
|
exports.version = version;
|
|
@@ -13,7 +13,7 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
13
13
|
import { useTheme } from '@emotion/react';
|
|
14
14
|
import { components } from 'react-select';
|
|
15
15
|
import AsyncSelect from 'react-select/async';
|
|
16
|
-
import { filterDataAttributes
|
|
16
|
+
import { filterDataAttributes } from '@commercetools-uikit/utils';
|
|
17
17
|
import Constraints from '@commercetools-uikit/constraints';
|
|
18
18
|
import LoadingSpinner from '@commercetools-uikit/loading-spinner';
|
|
19
19
|
import { messages, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
|
|
@@ -63,6 +63,8 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
63
63
|
children: jsx(AsyncSelect, {
|
|
64
64
|
"aria-label": props['aria-label'],
|
|
65
65
|
"aria-labelledby": props['aria-labelledby'],
|
|
66
|
+
"aria-invalid": props['aria-invalid'],
|
|
67
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
66
68
|
autoFocus: props.isAutofocussed,
|
|
67
69
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
68
70
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -156,11 +158,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
156
158
|
})
|
|
157
159
|
}))
|
|
158
160
|
});
|
|
159
|
-
};
|
|
160
|
-
// deal with an array. The touched state ends up being an empty array in case
|
|
161
|
-
// values were removed only. So we have to treat any array we receive as
|
|
162
|
-
// a signal of the field having been touched.
|
|
163
|
-
|
|
161
|
+
};
|
|
164
162
|
|
|
165
163
|
AsyncSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
166
164
|
horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
@@ -176,19 +174,56 @@ AsyncSelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
176
174
|
showOptionGroupDivider: _pt.bool,
|
|
177
175
|
iconLeft: _pt.node
|
|
178
176
|
} : {};
|
|
177
|
+
AsyncSelectInput.displayName = 'AsyncSelectInput';
|
|
178
|
+
AsyncSelectInput.defaultProps = defaultProps;
|
|
179
|
+
/**
|
|
180
|
+
* Expose static helper methods.
|
|
181
|
+
*/
|
|
182
|
+
// Formik will set the field to an array on submission, so we always have to
|
|
183
|
+
// deal with an array. The touched state ends up being an empty array in case
|
|
184
|
+
// values were removed only. So we have to treat any array we receive as
|
|
185
|
+
// a signal of the field having been touched.
|
|
179
186
|
|
|
180
187
|
AsyncSelectInput.isTouched = function (touched) {
|
|
181
188
|
return Boolean(touched);
|
|
182
189
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
/**
|
|
191
|
+
* Expose react-select components for customization purposes.
|
|
192
|
+
*/
|
|
193
|
+
// custom
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
AsyncSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
197
|
+
AsyncSelectInput.Control = components.Control;
|
|
198
|
+
AsyncSelectInput.CrossIcon = components.CrossIcon;
|
|
199
|
+
AsyncSelectInput.DownChevron = components.DownChevron; // custom
|
|
200
|
+
|
|
201
|
+
AsyncSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
202
|
+
AsyncSelectInput.Group = components.Group;
|
|
203
|
+
AsyncSelectInput.GroupHeading = components.GroupHeading;
|
|
204
|
+
AsyncSelectInput.IndicatorSeparator = components.IndicatorSeparator;
|
|
205
|
+
AsyncSelectInput.IndicatorsContainer = components.IndicatorsContainer;
|
|
206
|
+
AsyncSelectInput.Input = components.Input; // custom
|
|
207
|
+
|
|
208
|
+
AsyncSelectInput.LoadingIndicator = customizedComponents.LoadingIndicator;
|
|
209
|
+
AsyncSelectInput.LoadingMessage = components.LoadingMessage;
|
|
210
|
+
AsyncSelectInput.Menu = components.Menu;
|
|
211
|
+
AsyncSelectInput.MenuList = components.MenuList;
|
|
212
|
+
AsyncSelectInput.MenuPortal = components.MenuPortal;
|
|
213
|
+
AsyncSelectInput.MultiValue = components.MultiValue;
|
|
214
|
+
AsyncSelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
215
|
+
AsyncSelectInput.MultiValueLabel = components.MultiValueLabel; // custom
|
|
216
|
+
|
|
217
|
+
AsyncSelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
218
|
+
AsyncSelectInput.NoOptionsMessage = components.NoOptionsMessage;
|
|
219
|
+
AsyncSelectInput.Option = components.Option;
|
|
220
|
+
AsyncSelectInput.Placeholder = components.Placeholder;
|
|
221
|
+
AsyncSelectInput.SelectContainer = components.SelectContainer;
|
|
222
|
+
AsyncSelectInput.SingleValue = components.SingleValue;
|
|
223
|
+
AsyncSelectInput.ValueContainer = components.ValueContainer;
|
|
189
224
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
190
225
|
|
|
191
226
|
// NOTE: This string will be replaced on build time with the package version.
|
|
192
|
-
var version = "
|
|
227
|
+
var version = "14.0.1";
|
|
193
228
|
|
|
194
229
|
export { AsyncSelectInput$1 as default, version };
|
|
@@ -16,6 +16,8 @@ declare type TAsyncSelectInputProps = {
|
|
|
16
16
|
isReadOnly?: boolean;
|
|
17
17
|
'aria-label'?: ReactSelectAsyncProps['aria-label'];
|
|
18
18
|
'aria-labelledby'?: ReactSelectAsyncProps['aria-labelledby'];
|
|
19
|
+
'aria-invalid'?: ReactSelectAsyncProps['aria-invalid'];
|
|
20
|
+
'aria-errormessage'?: ReactSelectAsyncProps['aria-errormessage'];
|
|
19
21
|
isAutofocussed?: boolean;
|
|
20
22
|
backspaceRemovesValue?: ReactSelectAsyncProps['backspaceRemovesValue'];
|
|
21
23
|
components?: ReactSelectAsyncProps['components'];
|
|
@@ -52,8 +54,63 @@ declare type TAsyncSelectInputProps = {
|
|
|
52
54
|
};
|
|
53
55
|
declare const AsyncSelectInput: {
|
|
54
56
|
(props: TAsyncSelectInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
55
|
-
isTouched(touched: unknown): boolean;
|
|
56
57
|
displayName: string;
|
|
57
58
|
defaultProps: Pick<TAsyncSelectInputProps, "value" | "isSearchable" | "menuPortalZIndex">;
|
|
59
|
+
isTouched(touched: unknown): boolean;
|
|
60
|
+
ClearIndicator: {
|
|
61
|
+
(props: {
|
|
62
|
+
innerProps: {
|
|
63
|
+
ref: import("react").LegacyRef<HTMLButtonElement>;
|
|
64
|
+
} & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>;
|
|
65
|
+
} & import("react-select").ClearIndicatorProps<unknown, boolean, GroupBase<unknown>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element;
|
|
69
|
+
CrossIcon: (props: import("react-select/dist/declarations/src/components/indicators").CrossIconProps) => import("@emotion/react").jsx.JSX.Element;
|
|
70
|
+
DownChevron: (props: import("react-select/dist/declarations/src/components/indicators").DownChevronProps) => import("@emotion/react").jsx.JSX.Element;
|
|
71
|
+
DropdownIndicator: {
|
|
72
|
+
(props: import("react-select").DropdownIndicatorProps<unknown, boolean, GroupBase<unknown>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
73
|
+
displayName: string;
|
|
74
|
+
};
|
|
75
|
+
Group: <Option_3, IsMulti_3 extends boolean, Group_3 extends GroupBase<Option_3>>(props: import("react-select").GroupProps<Option_3, IsMulti_3, Group_3>) => import("@emotion/react").jsx.JSX.Element;
|
|
76
|
+
GroupHeading: <Option_4, IsMulti_4 extends boolean, Group_4 extends GroupBase<Option_4>>(props: import("react-select").GroupHeadingProps<Option_4, IsMulti_4, Group_4>) => import("@emotion/react").jsx.JSX.Element;
|
|
77
|
+
IndicatorSeparator: <Option_6, IsMulti_6 extends boolean, Group_6 extends GroupBase<Option_6>>(props: import("react-select").IndicatorSeparatorProps<Option_6, IsMulti_6, Group_6>) => import("@emotion/react").jsx.JSX.Element;
|
|
78
|
+
IndicatorsContainer: <Option_5, IsMulti_5 extends boolean, Group_5 extends GroupBase<Option_5>>(props: import("react-select").IndicatorsContainerProps<Option_5, IsMulti_5, Group_5>) => import("@emotion/react").jsx.JSX.Element;
|
|
79
|
+
Input: <Option_7, IsMulti_7 extends boolean, Group_7 extends GroupBase<Option_7>>(props: import("react-select").InputProps<Option_7, IsMulti_7, Group_7>) => import("@emotion/react").jsx.JSX.Element;
|
|
80
|
+
LoadingIndicator: {
|
|
81
|
+
(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
82
|
+
displayName: string;
|
|
83
|
+
};
|
|
84
|
+
LoadingMessage: {
|
|
85
|
+
<Option_11, IsMulti_11 extends boolean, Group_11 extends GroupBase<Option_11>>(props: import("react-select").NoticeProps<Option_11, IsMulti_11, Group_11>): import("@emotion/react").jsx.JSX.Element;
|
|
86
|
+
defaultProps: {
|
|
87
|
+
children: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
Menu: <Option_9, IsMulti_9 extends boolean, Group_9 extends GroupBase<Option_9>>(props: import("react-select").MenuProps<Option_9, IsMulti_9, Group_9>) => import("@emotion/react").jsx.JSX.Element;
|
|
91
|
+
MenuList: <Option_10, IsMulti_10 extends boolean, Group_10 extends GroupBase<Option_10>>(props: import("react-select").MenuListProps<Option_10, IsMulti_10, Group_10>) => import("@emotion/react").jsx.JSX.Element;
|
|
92
|
+
MenuPortal: typeof import("react-select/dist/declarations/src/components/Menu").MenuPortal;
|
|
93
|
+
MultiValue: <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>(props: import("react-select").MultiValueProps<Option_13, IsMulti_13, Group_13>) => import("@emotion/react").jsx.JSX.Element;
|
|
94
|
+
MultiValueContainer: <Option_14, IsMulti_14 extends boolean, Group_14 extends GroupBase<Option_14>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_14, IsMulti_14, Group_14>) => import("@emotion/react").jsx.JSX.Element;
|
|
95
|
+
MultiValueLabel: <Option_14_1, IsMulti_14_1 extends boolean, Group_14_1 extends GroupBase<Option_14_1>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_14_1, IsMulti_14_1, Group_14_1>) => import("@emotion/react").jsx.JSX.Element;
|
|
96
|
+
MultiValueRemove: {
|
|
97
|
+
(props: {
|
|
98
|
+
selectProps: {
|
|
99
|
+
isReadOnly: boolean;
|
|
100
|
+
} & import("react-select/dist/declarations/src/Select").Props<unknown, boolean, GroupBase<unknown>>;
|
|
101
|
+
} & import("react-select").MultiValueGenericProps<unknown, boolean, GroupBase<unknown>>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
102
|
+
displayName: string;
|
|
103
|
+
};
|
|
104
|
+
NoOptionsMessage: {
|
|
105
|
+
<Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>(props: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>): import("@emotion/react").jsx.JSX.Element;
|
|
106
|
+
defaultProps: {
|
|
107
|
+
children: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
Option: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupBase<Option_15>>(props: import("react-select").OptionProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
|
|
111
|
+
Placeholder: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupBase<Option_16>>(props: import("react-select").PlaceholderProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
|
|
112
|
+
SelectContainer: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupBase<Option_17>>(props: import("react-select").ContainerProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
|
|
113
|
+
SingleValue: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupBase<Option_18>>(props: import("react-select").SingleValueProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
|
|
114
|
+
ValueContainer: <Option_19, IsMulti_19 extends boolean, Group_19 extends GroupBase<Option_19>>(props: import("react-select").ValueContainerProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element;
|
|
58
115
|
};
|
|
59
116
|
export default AsyncSelectInput;
|
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": "
|
|
4
|
+
"version": "14.0.1",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"directory": "packages/components/inputs/async-select-input"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
|
-
"keywords": ["javascript", "design
|
|
12
|
+
"keywords": ["javascript", "typescript", "design-system", "react", "uikit"],
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"module": "dist/commercetools-uikit-async-select-input.esm.js",
|
|
20
20
|
"files": ["dist"],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/runtime": "7.17.2",
|
|
23
|
-
"@babel/runtime-corejs3": "7.17.2",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/icons": "
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "
|
|
28
|
-
"@commercetools-uikit/select-utils": "
|
|
29
|
-
"@commercetools-uikit/spacings": "
|
|
30
|
-
"@commercetools-uikit/text": "
|
|
31
|
-
"@commercetools-uikit/utils": "
|
|
22
|
+
"@babel/runtime": "^7.17.2",
|
|
23
|
+
"@babel/runtime-corejs3": "^7.17.2",
|
|
24
|
+
"@commercetools-uikit/constraints": "14.0.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "14.0.0",
|
|
26
|
+
"@commercetools-uikit/icons": "14.0.1",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "14.0.1",
|
|
28
|
+
"@commercetools-uikit/select-utils": "14.0.1",
|
|
29
|
+
"@commercetools-uikit/spacings": "14.0.1",
|
|
30
|
+
"@commercetools-uikit/text": "14.0.1",
|
|
31
|
+
"@commercetools-uikit/utils": "14.0.1",
|
|
32
32
|
"@emotion/react": "^11.4.0",
|
|
33
33
|
"@emotion/styled": "^11.3.0",
|
|
34
34
|
"lodash": "4.17.21",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"react": "17.0.2",
|
|
40
40
|
"react-dom": "17.0.2",
|
|
41
|
-
"react-intl": "5.24.6"
|
|
41
|
+
"react-intl": "^5.24.6"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "17.x",
|