@commercetools-uikit/async-creatable-select-input 19.22.2 → 19.22.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/dist/commercetools-uikit-async-creatable-select-input.cjs.dev.js +4 -1
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.prod.js +4 -1
- package/dist/commercetools-uikit-async-creatable-select-input.esm.js +4 -1
- package/dist/declarations/src/async-creatable-select-input.d.ts +40 -24
- package/package.json +9 -9
|
@@ -227,7 +227,9 @@ AsyncCreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
227
227
|
// custom
|
|
228
228
|
AsyncCreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
229
229
|
AsyncCreatableSelectInput.Control = reactSelect.components.Control;
|
|
230
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
230
231
|
AsyncCreatableSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
232
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
231
233
|
AsyncCreatableSelectInput.DownChevron = reactSelect.components.DownChevron;
|
|
232
234
|
// custom
|
|
233
235
|
AsyncCreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -241,6 +243,7 @@ AsyncCreatableSelectInput.LoadingIndicator = customizedComponents.LoadingIndicat
|
|
|
241
243
|
AsyncCreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
242
244
|
AsyncCreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
243
245
|
AsyncCreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
246
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
244
247
|
AsyncCreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
245
248
|
AsyncCreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
246
249
|
AsyncCreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -256,7 +259,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
256
259
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
257
260
|
|
|
258
261
|
// NOTE: This string will be replaced on build time with the package version.
|
|
259
|
-
var version = "19.22.
|
|
262
|
+
var version = "19.22.4";
|
|
260
263
|
|
|
261
264
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
262
265
|
exports.version = version;
|
|
@@ -209,7 +209,9 @@ AsyncCreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
209
209
|
// custom
|
|
210
210
|
AsyncCreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
211
211
|
AsyncCreatableSelectInput.Control = reactSelect.components.Control;
|
|
212
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
212
213
|
AsyncCreatableSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
214
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
213
215
|
AsyncCreatableSelectInput.DownChevron = reactSelect.components.DownChevron;
|
|
214
216
|
// custom
|
|
215
217
|
AsyncCreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -223,6 +225,7 @@ AsyncCreatableSelectInput.LoadingIndicator = customizedComponents.LoadingIndicat
|
|
|
223
225
|
AsyncCreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
224
226
|
AsyncCreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
225
227
|
AsyncCreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
228
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
226
229
|
AsyncCreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
227
230
|
AsyncCreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
228
231
|
AsyncCreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -238,7 +241,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
238
241
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
239
242
|
|
|
240
243
|
// NOTE: This string will be replaced on build time with the package version.
|
|
241
|
-
var version = "19.22.
|
|
244
|
+
var version = "19.22.4";
|
|
242
245
|
|
|
243
246
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
244
247
|
exports.version = version;
|
|
@@ -206,7 +206,9 @@ AsyncCreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
206
206
|
// custom
|
|
207
207
|
AsyncCreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
208
208
|
AsyncCreatableSelectInput.Control = components.Control;
|
|
209
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
209
210
|
AsyncCreatableSelectInput.CrossIcon = components.CrossIcon;
|
|
211
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
210
212
|
AsyncCreatableSelectInput.DownChevron = components.DownChevron;
|
|
211
213
|
// custom
|
|
212
214
|
AsyncCreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -220,6 +222,7 @@ AsyncCreatableSelectInput.LoadingIndicator = customizedComponents.LoadingIndicat
|
|
|
220
222
|
AsyncCreatableSelectInput.LoadingMessage = components.LoadingMessage;
|
|
221
223
|
AsyncCreatableSelectInput.Menu = components.Menu;
|
|
222
224
|
AsyncCreatableSelectInput.MenuList = components.MenuList;
|
|
225
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
223
226
|
AsyncCreatableSelectInput.MenuPortal = components.MenuPortal;
|
|
224
227
|
AsyncCreatableSelectInput.MultiValue = components.MultiValue;
|
|
225
228
|
AsyncCreatableSelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
@@ -235,6 +238,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
235
238
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
236
239
|
|
|
237
240
|
// NOTE: This string will be replaced on build time with the package version.
|
|
238
|
-
var version = "19.22.
|
|
241
|
+
var version = "19.22.4";
|
|
239
242
|
|
|
240
243
|
export { AsyncCreatableSelectInput$1 as default, version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type ActionMeta, type CommonPropsAndClassName, type GroupBase, type MenuPlacement, type MenuPosition } from 'react-select';
|
|
3
3
|
import { type AsyncCreatableProps } from 'react-select/async-creatable';
|
|
4
4
|
type TCustomEvent = {
|
|
5
5
|
target: {
|
|
@@ -281,25 +281,38 @@ declare const AsyncCreatableSelectInput: {
|
|
|
281
281
|
/**
|
|
282
282
|
* Expose react-select components for customization purposes.
|
|
283
283
|
*/
|
|
284
|
-
ClearIndicator:
|
|
285
|
-
|
|
284
|
+
ClearIndicator: {
|
|
285
|
+
(props: import("@commercetools-uikit/select-utils").TClearIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
286
|
+
displayName: string;
|
|
287
|
+
};
|
|
288
|
+
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" /**
|
|
289
|
+
* Remove the currently focused option when the user presses backspace
|
|
290
|
+
* <br>
|
|
291
|
+
* [Props from React select was used](https://react-select.com/props)
|
|
292
|
+
*/).jsx.JSX.Element;
|
|
286
293
|
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
287
294
|
size?: number;
|
|
288
295
|
}>;
|
|
289
296
|
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
290
297
|
size?: number;
|
|
291
298
|
}>;
|
|
292
|
-
DropdownIndicator:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
DropdownIndicator: {
|
|
300
|
+
(props: import("react-select").DropdownIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
301
|
+
displayName: string;
|
|
302
|
+
};
|
|
303
|
+
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;
|
|
304
|
+
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;
|
|
305
|
+
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;
|
|
306
|
+
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;
|
|
307
|
+
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;
|
|
308
|
+
LoadingIndicator: {
|
|
309
|
+
(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
310
|
+
displayName: string;
|
|
311
|
+
};
|
|
312
|
+
LoadingMessage: <Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>({ children, innerProps, ...restProps }: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>) => import("@emotion/react").jsx.JSX.Element;
|
|
313
|
+
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;
|
|
314
|
+
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;
|
|
315
|
+
MenuPortal: ComponentType<CommonPropsAndClassName<unknown, false, GroupBase<unknown>> & {
|
|
303
316
|
appendTo: HTMLElement | undefined;
|
|
304
317
|
children: ReactNode;
|
|
305
318
|
controlElement: HTMLDivElement | null;
|
|
@@ -307,15 +320,18 @@ declare const AsyncCreatableSelectInput: {
|
|
|
307
320
|
menuPlacement: MenuPlacement;
|
|
308
321
|
menuPosition: MenuPosition;
|
|
309
322
|
}>;
|
|
310
|
-
MultiValue:
|
|
311
|
-
MultiValueContainer:
|
|
312
|
-
MultiValueLabel:
|
|
313
|
-
MultiValueRemove:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
MultiValue: <Option_14, IsMulti_14 extends boolean, Group_14 extends GroupBase<Option_14>>(props: import("react-select").MultiValueProps<Option_14, IsMulti_14, Group_14>) => import("@emotion/react").jsx.JSX.Element;
|
|
324
|
+
MultiValueContainer: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupBase<Option_15>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
|
|
325
|
+
MultiValueLabel: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupBase<Option_15>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
|
|
326
|
+
MultiValueRemove: {
|
|
327
|
+
(props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
328
|
+
displayName: string;
|
|
329
|
+
};
|
|
330
|
+
NoOptionsMessage: <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>({ children, innerProps, ...restProps }: import("react-select").NoticeProps<Option_13, IsMulti_13, Group_13>) => import("@emotion/react").jsx.JSX.Element;
|
|
331
|
+
Option: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
|
|
332
|
+
Placeholder: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
|
|
333
|
+
SelectContainer: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupBase<Option_18>>(props: import("react-select").ContainerProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
|
|
334
|
+
SingleValue: <Option_19, IsMulti_19 extends boolean, Group_19 extends GroupBase<Option_19>>(props: import("react-select").SingleValueProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element;
|
|
335
|
+
ValueContainer: <Option_20, IsMulti_20 extends boolean, Group_20 extends GroupBase<Option_20>>(props: import("react-select").ValueContainerProps<Option_20, IsMulti_20, Group_20>) => import("@emotion/react").jsx.JSX.Element;
|
|
320
336
|
};
|
|
321
337
|
export default AsyncCreatableSelectInput;
|
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.22.
|
|
4
|
+
"version": "19.22.4",
|
|
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.22.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
26
|
-
"@commercetools-uikit/icons": "19.22.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "19.22.
|
|
28
|
-
"@commercetools-uikit/select-utils": "19.22.
|
|
29
|
-
"@commercetools-uikit/spacings": "19.22.
|
|
30
|
-
"@commercetools-uikit/text": "19.22.
|
|
31
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.22.4",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.4",
|
|
26
|
+
"@commercetools-uikit/icons": "19.22.4",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "19.22.4",
|
|
28
|
+
"@commercetools-uikit/select-utils": "19.22.4",
|
|
29
|
+
"@commercetools-uikit/spacings": "19.22.4",
|
|
30
|
+
"@commercetools-uikit/text": "19.22.4",
|
|
31
|
+
"@commercetools-uikit/utils": "19.22.4",
|
|
32
32
|
"@emotion/is-prop-valid": "1.3.1",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|