@commercetools-uikit/creatable-select-input 19.22.1 → 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 -1
- package/dist/commercetools-uikit-creatable-select-input.cjs.prod.js +4 -1
- package/dist/commercetools-uikit-creatable-select-input.esm.js +4 -1
- package/dist/declarations/src/creatable-select-input.d.ts +19 -6
- 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;
|
|
@@ -227,6 +229,7 @@ CreatableSelectInput.LoadingIndicator = reactSelect.components.LoadingIndicator;
|
|
|
227
229
|
CreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
228
230
|
CreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
229
231
|
CreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
232
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
230
233
|
CreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
231
234
|
CreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
232
235
|
CreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -242,7 +245,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
242
245
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
243
246
|
|
|
244
247
|
// NOTE: This string will be replaced on build time with the package version.
|
|
245
|
-
var version = "19.22.
|
|
248
|
+
var version = "19.22.3";
|
|
246
249
|
|
|
247
250
|
exports["default"] = CreatableSelectInput$1;
|
|
248
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;
|
|
@@ -203,6 +205,7 @@ CreatableSelectInput.LoadingIndicator = reactSelect.components.LoadingIndicator;
|
|
|
203
205
|
CreatableSelectInput.LoadingMessage = reactSelect.components.LoadingMessage;
|
|
204
206
|
CreatableSelectInput.Menu = reactSelect.components.Menu;
|
|
205
207
|
CreatableSelectInput.MenuList = reactSelect.components.MenuList;
|
|
208
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
206
209
|
CreatableSelectInput.MenuPortal = reactSelect.components.MenuPortal;
|
|
207
210
|
CreatableSelectInput.MultiValue = reactSelect.components.MultiValue;
|
|
208
211
|
CreatableSelectInput.MultiValueContainer = reactSelect.components.MultiValueContainer;
|
|
@@ -218,7 +221,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
218
221
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
219
222
|
|
|
220
223
|
// NOTE: This string will be replaced on build time with the package version.
|
|
221
|
-
var version = "19.22.
|
|
224
|
+
var version = "19.22.3";
|
|
222
225
|
|
|
223
226
|
exports["default"] = CreatableSelectInput$1;
|
|
224
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;
|
|
@@ -208,6 +210,7 @@ CreatableSelectInput.LoadingIndicator = components.LoadingIndicator;
|
|
|
208
210
|
CreatableSelectInput.LoadingMessage = components.LoadingMessage;
|
|
209
211
|
CreatableSelectInput.Menu = components.Menu;
|
|
210
212
|
CreatableSelectInput.MenuList = components.MenuList;
|
|
213
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
211
214
|
CreatableSelectInput.MenuPortal = components.MenuPortal;
|
|
212
215
|
CreatableSelectInput.MultiValue = components.MultiValue;
|
|
213
216
|
CreatableSelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
@@ -223,6 +226,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
223
226
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
224
227
|
|
|
225
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
226
|
-
var version = "19.22.
|
|
229
|
+
var version = "19.22.3";
|
|
227
230
|
|
|
228
231
|
export { CreatableSelectInput$1 as default, version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { type GroupBase, type
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
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;
|
|
@@ -279,8 +279,12 @@ declare const CreatableSelectInput: {
|
|
|
279
279
|
displayName: string;
|
|
280
280
|
};
|
|
281
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;
|
|
282
|
-
CrossIcon:
|
|
283
|
-
|
|
282
|
+
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
283
|
+
size?: number;
|
|
284
|
+
}>;
|
|
285
|
+
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
286
|
+
size?: number;
|
|
287
|
+
}>;
|
|
284
288
|
DropdownIndicator: {
|
|
285
289
|
(props: import("react-select").DropdownIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
286
290
|
displayName: string;
|
|
@@ -294,7 +298,14 @@ declare const CreatableSelectInput: {
|
|
|
294
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;
|
|
295
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;
|
|
296
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;
|
|
297
|
-
MenuPortal: <
|
|
301
|
+
MenuPortal: ComponentType<CommonPropsAndClassName<unknown, false, GroupBase<unknown>> & {
|
|
302
|
+
appendTo: HTMLElement | undefined;
|
|
303
|
+
children: ReactNode;
|
|
304
|
+
controlElement: HTMLDivElement | null;
|
|
305
|
+
innerProps: JSX.IntrinsicElements["div"];
|
|
306
|
+
menuPlacement: MenuPlacement;
|
|
307
|
+
menuPosition: MenuPosition;
|
|
308
|
+
}>;
|
|
298
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;
|
|
299
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;
|
|
300
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;
|
|
@@ -307,6 +318,8 @@ declare const CreatableSelectInput: {
|
|
|
307
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;
|
|
308
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;
|
|
309
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;
|
|
310
|
-
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"
|
|
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;
|
|
311
324
|
};
|
|
312
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",
|