@commercetools-uikit/creatable-select-input 19.22.2 → 19.22.3
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-creatable-select-input.cjs.dev.js +4 -2
- package/dist/commercetools-uikit-creatable-select-input.cjs.prod.js +4 -2
- package/dist/commercetools-uikit-creatable-select-input.esm.js +4 -2
- package/dist/declarations/src/creatable-select-input.d.ts +35 -24
- package/package.json +8 -8
|
@@ -214,7 +214,9 @@ CreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
214
214
|
// custom
|
|
215
215
|
CreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
216
216
|
CreatableSelectInput.Control = reactSelect.components.Control;
|
|
217
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
217
218
|
CreatableSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
219
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
218
220
|
CreatableSelectInput.DownChevron = reactSelect.components.DownChevron;
|
|
219
221
|
// custom
|
|
220
222
|
CreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -223,11 +225,11 @@ CreatableSelectInput.GroupHeading = reactSelect.components.GroupHeading;
|
|
|
223
225
|
CreatableSelectInput.IndicatorSeparator = reactSelect.components.IndicatorSeparator;
|
|
224
226
|
CreatableSelectInput.IndicatorsContainer = reactSelect.components.IndicatorsContainer;
|
|
225
227
|
CreatableSelectInput.Input = reactSelect.components.Input;
|
|
226
|
-
// custom
|
|
227
228
|
CreatableSelectInput.LoadingIndicator = reactSelect.components.LoadingIndicator;
|
|
228
229
|
CreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
229
230
|
CreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
230
231
|
CreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
232
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
231
233
|
CreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
232
234
|
CreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
233
235
|
CreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -243,7 +245,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
243
245
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
244
246
|
|
|
245
247
|
// NOTE: This string will be replaced on build time with the package version.
|
|
246
|
-
var version = "19.22.
|
|
248
|
+
var version = "19.22.3";
|
|
247
249
|
|
|
248
250
|
exports["default"] = CreatableSelectInput$1;
|
|
249
251
|
exports.version = version;
|
|
@@ -190,7 +190,9 @@ CreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
190
190
|
// custom
|
|
191
191
|
CreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
192
192
|
CreatableSelectInput.Control = reactSelect.components.Control;
|
|
193
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
193
194
|
CreatableSelectInput.CrossIcon = reactSelect.components.CrossIcon;
|
|
195
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
194
196
|
CreatableSelectInput.DownChevron = reactSelect.components.DownChevron;
|
|
195
197
|
// custom
|
|
196
198
|
CreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -199,11 +201,11 @@ CreatableSelectInput.GroupHeading = reactSelect.components.GroupHeading;
|
|
|
199
201
|
CreatableSelectInput.IndicatorSeparator = reactSelect.components.IndicatorSeparator;
|
|
200
202
|
CreatableSelectInput.IndicatorsContainer = reactSelect.components.IndicatorsContainer;
|
|
201
203
|
CreatableSelectInput.Input = reactSelect.components.Input;
|
|
202
|
-
// custom
|
|
203
204
|
CreatableSelectInput.LoadingIndicator = reactSelect.components.LoadingIndicator;
|
|
204
205
|
CreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
205
206
|
CreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
206
207
|
CreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
208
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
207
209
|
CreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
208
210
|
CreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
209
211
|
CreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -219,7 +221,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
219
221
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
220
222
|
|
|
221
223
|
// NOTE: This string will be replaced on build time with the package version.
|
|
222
|
-
var version = "19.22.
|
|
224
|
+
var version = "19.22.3";
|
|
223
225
|
|
|
224
226
|
exports["default"] = CreatableSelectInput$1;
|
|
225
227
|
exports.version = version;
|
|
@@ -195,7 +195,9 @@ CreatableSelectInput.isTouched = touched => Boolean(touched);
|
|
|
195
195
|
// custom
|
|
196
196
|
CreatableSelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
197
197
|
CreatableSelectInput.Control = components.Control;
|
|
198
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
198
199
|
CreatableSelectInput.CrossIcon = components.CrossIcon;
|
|
200
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
199
201
|
CreatableSelectInput.DownChevron = components.DownChevron;
|
|
200
202
|
// custom
|
|
201
203
|
CreatableSelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -204,11 +206,11 @@ CreatableSelectInput.GroupHeading = components.GroupHeading;
|
|
|
204
206
|
CreatableSelectInput.IndicatorSeparator = components.IndicatorSeparator;
|
|
205
207
|
CreatableSelectInput.IndicatorsContainer = components.IndicatorsContainer;
|
|
206
208
|
CreatableSelectInput.Input = components.Input;
|
|
207
|
-
// custom
|
|
208
209
|
CreatableSelectInput.LoadingIndicator = components.LoadingIndicator;
|
|
209
210
|
CreatableSelectInput.LoadingMessage = components.LoadingMessage;
|
|
210
211
|
CreatableSelectInput.Menu = components.Menu;
|
|
211
212
|
CreatableSelectInput.MenuList = components.MenuList;
|
|
213
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
212
214
|
CreatableSelectInput.MenuPortal = components.MenuPortal;
|
|
213
215
|
CreatableSelectInput.MultiValue = components.MultiValue;
|
|
214
216
|
CreatableSelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
@@ -224,6 +226,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
224
226
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
225
227
|
|
|
226
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
227
|
-
var version = "19.22.
|
|
229
|
+
var version = "19.22.3";
|
|
228
230
|
|
|
229
231
|
export { CreatableSelectInput$1 as default, version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type ActionMeta, type GroupBase, type CommonPropsAndClassName, type MenuPlacement, type MenuPosition } from 'react-select';
|
|
3
3
|
import { type CreatableProps } from 'react-select/creatable';
|
|
4
4
|
type TValue = {
|
|
5
5
|
value: string;
|
|
@@ -274,25 +274,31 @@ declare const CreatableSelectInput: {
|
|
|
274
274
|
/**
|
|
275
275
|
* Expose react-select components for customization purposes.
|
|
276
276
|
*/
|
|
277
|
-
ClearIndicator:
|
|
278
|
-
|
|
277
|
+
ClearIndicator: {
|
|
278
|
+
(props: import("@commercetools-uikit/select-utils").TClearIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
279
|
+
displayName: string;
|
|
280
|
+
};
|
|
281
|
+
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;
|
|
279
282
|
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
280
283
|
size?: number;
|
|
281
284
|
}>;
|
|
282
285
|
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
283
286
|
size?: number;
|
|
284
287
|
}>;
|
|
285
|
-
DropdownIndicator:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
DropdownIndicator: {
|
|
289
|
+
(props: import("react-select").DropdownIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
290
|
+
displayName: string;
|
|
291
|
+
};
|
|
292
|
+
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;
|
|
293
|
+
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;
|
|
294
|
+
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;
|
|
295
|
+
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;
|
|
296
|
+
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;
|
|
297
|
+
LoadingIndicator: <Option_8, IsMulti_8 extends boolean, Group_8 extends GroupBase<Option_8>>({ innerProps, isRtl, size, ...restProps }: import("react-select").LoadingIndicatorProps<Option_8, IsMulti_8, Group_8>) => import("@emotion/react").jsx.JSX.Element;
|
|
298
|
+
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;
|
|
299
|
+
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;
|
|
300
|
+
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;
|
|
301
|
+
MenuPortal: ComponentType<CommonPropsAndClassName<unknown, false, GroupBase<unknown>> & {
|
|
296
302
|
appendTo: HTMLElement | undefined;
|
|
297
303
|
children: ReactNode;
|
|
298
304
|
controlElement: HTMLDivElement | null;
|
|
@@ -300,15 +306,20 @@ declare const CreatableSelectInput: {
|
|
|
300
306
|
menuPlacement: MenuPlacement;
|
|
301
307
|
menuPosition: MenuPosition;
|
|
302
308
|
}>;
|
|
303
|
-
MultiValue:
|
|
304
|
-
MultiValueContainer:
|
|
305
|
-
MultiValueLabel:
|
|
306
|
-
MultiValueRemove:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
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;
|
|
310
|
+
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;
|
|
311
|
+
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;
|
|
312
|
+
MultiValueRemove: {
|
|
313
|
+
(props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
314
|
+
displayName: string;
|
|
315
|
+
};
|
|
316
|
+
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;
|
|
317
|
+
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;
|
|
318
|
+
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;
|
|
319
|
+
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;
|
|
320
|
+
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;
|
|
321
|
+
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" /**
|
|
322
|
+
* Called with a fake event when value changes. The event's `target.name` will be the `name` supplied in props. The event's `target.value` will hold the value. The value will be the selected option, or an array of options in case `isMulti` is `true`.
|
|
323
|
+
*/).jsx.JSX.Element;
|
|
313
324
|
};
|
|
314
325
|
export default CreatableSelectInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/creatable-select-input",
|
|
3
3
|
"description": "An input component getting a selection from the user, and where options can also be created by the user.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.3",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
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/select-utils": "19.22.
|
|
28
|
-
"@commercetools-uikit/spacings": "19.22.
|
|
29
|
-
"@commercetools-uikit/text": "19.22.
|
|
30
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.22.3",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.3",
|
|
26
|
+
"@commercetools-uikit/icons": "19.22.3",
|
|
27
|
+
"@commercetools-uikit/select-utils": "19.22.3",
|
|
28
|
+
"@commercetools-uikit/spacings": "19.22.3",
|
|
29
|
+
"@commercetools-uikit/text": "19.22.3",
|
|
30
|
+
"@commercetools-uikit/utils": "19.22.3",
|
|
31
31
|
"@emotion/react": "^11.10.5",
|
|
32
32
|
"@emotion/styled": "^11.10.5",
|
|
33
33
|
"lodash": "4.17.21",
|