@commercetools-uikit/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.
|
@@ -267,7 +267,9 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
267
267
|
// custom
|
|
268
268
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
269
269
|
SelectInput.Control = Select.components.Control;
|
|
270
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
270
271
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
272
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
271
273
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
272
274
|
// custom
|
|
273
275
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -276,11 +278,11 @@ SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
|
276
278
|
SelectInput.IndicatorSeparator = Select.components.IndicatorSeparator;
|
|
277
279
|
SelectInput.IndicatorsContainer = Select.components.IndicatorsContainer;
|
|
278
280
|
SelectInput.Input = Select.components.Input;
|
|
279
|
-
// custom
|
|
280
281
|
SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
281
282
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
282
283
|
SelectInput.Menu = Select.components.Menu;
|
|
283
284
|
SelectInput.MenuList = Select.components.MenuList;
|
|
285
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
284
286
|
SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
285
287
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
286
288
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
@@ -296,7 +298,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
296
298
|
var SelectInput$1 = SelectInput;
|
|
297
299
|
|
|
298
300
|
// NOTE: This string will be replaced on build time with the package version.
|
|
299
|
-
var version = "19.22.
|
|
301
|
+
var version = "19.22.4";
|
|
300
302
|
|
|
301
303
|
exports["default"] = SelectInput$1;
|
|
302
304
|
exports.version = version;
|
|
@@ -238,7 +238,9 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
238
238
|
// custom
|
|
239
239
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
240
240
|
SelectInput.Control = Select.components.Control;
|
|
241
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
241
242
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
243
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
242
244
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
243
245
|
// custom
|
|
244
246
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -247,11 +249,11 @@ SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
|
247
249
|
SelectInput.IndicatorSeparator = Select.components.IndicatorSeparator;
|
|
248
250
|
SelectInput.IndicatorsContainer = Select.components.IndicatorsContainer;
|
|
249
251
|
SelectInput.Input = Select.components.Input;
|
|
250
|
-
// custom
|
|
251
252
|
SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
252
253
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
253
254
|
SelectInput.Menu = Select.components.Menu;
|
|
254
255
|
SelectInput.MenuList = Select.components.MenuList;
|
|
256
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
255
257
|
SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
256
258
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
257
259
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
@@ -267,7 +269,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
267
269
|
var SelectInput$1 = SelectInput;
|
|
268
270
|
|
|
269
271
|
// NOTE: This string will be replaced on build time with the package version.
|
|
270
|
-
var version = "19.22.
|
|
272
|
+
var version = "19.22.4";
|
|
271
273
|
|
|
272
274
|
exports["default"] = SelectInput$1;
|
|
273
275
|
exports.version = version;
|
|
@@ -244,7 +244,9 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
244
244
|
// custom
|
|
245
245
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
246
246
|
SelectInput.Control = components.Control;
|
|
247
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
247
248
|
SelectInput.CrossIcon = components.CrossIcon;
|
|
249
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
248
250
|
SelectInput.DownChevron = components.DownChevron;
|
|
249
251
|
// custom
|
|
250
252
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
@@ -253,11 +255,11 @@ SelectInput.GroupHeading = components.GroupHeading;
|
|
|
253
255
|
SelectInput.IndicatorSeparator = components.IndicatorSeparator;
|
|
254
256
|
SelectInput.IndicatorsContainer = components.IndicatorsContainer;
|
|
255
257
|
SelectInput.Input = components.Input;
|
|
256
|
-
// custom
|
|
257
258
|
SelectInput.LoadingIndicator = components.LoadingIndicator;
|
|
258
259
|
SelectInput.LoadingMessage = components.LoadingMessage;
|
|
259
260
|
SelectInput.Menu = components.Menu;
|
|
260
261
|
SelectInput.MenuList = components.MenuList;
|
|
262
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
261
263
|
SelectInput.MenuPortal = components.MenuPortal;
|
|
262
264
|
SelectInput.MultiValue = components.MultiValue;
|
|
263
265
|
SelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
@@ -273,6 +275,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
273
275
|
var SelectInput$1 = SelectInput;
|
|
274
276
|
|
|
275
277
|
// NOTE: This string will be replaced on build time with the package version.
|
|
276
|
-
var version = "19.22.
|
|
278
|
+
var version = "19.22.4";
|
|
277
279
|
|
|
278
280
|
export { SelectInput$1 as default, version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { type Props as ReactSelectProps, type
|
|
2
|
+
import { type Props as ReactSelectProps, type GroupBase, type CommonPropsAndClassName, type MenuPlacement, type MenuPosition } from 'react-select';
|
|
3
3
|
export type TOption = {
|
|
4
4
|
value: string;
|
|
5
5
|
label?: ReactNode;
|
|
@@ -278,25 +278,43 @@ declare const SelectInput: {
|
|
|
278
278
|
/**
|
|
279
279
|
* Expose react-select components for customization purposes.
|
|
280
280
|
*/
|
|
281
|
-
ClearIndicator:
|
|
282
|
-
|
|
281
|
+
ClearIndicator: {
|
|
282
|
+
(props: import("@commercetools-uikit/select-utils").TClearIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
283
|
+
displayName: string;
|
|
284
|
+
};
|
|
285
|
+
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;
|
|
283
286
|
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
284
287
|
size?: number;
|
|
285
288
|
}>;
|
|
286
289
|
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
287
290
|
size?: number;
|
|
288
291
|
}>;
|
|
289
|
-
DropdownIndicator:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
292
|
+
DropdownIndicator: {
|
|
293
|
+
(props: import("react-select").DropdownIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
294
|
+
displayName: string;
|
|
295
|
+
};
|
|
296
|
+
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;
|
|
297
|
+
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;
|
|
298
|
+
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;
|
|
299
|
+
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;
|
|
300
|
+
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(
|
|
301
|
+
/**
|
|
302
|
+
* Custom method to filter whether an option should be displayed in the menu
|
|
303
|
+
* <br>
|
|
304
|
+
* [Props from React select was used](https://react-select.com/props)
|
|
305
|
+
*/
|
|
306
|
+
"@emotion/react").jsx.JSX.Element;
|
|
307
|
+
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;
|
|
308
|
+
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;
|
|
309
|
+
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(
|
|
310
|
+
/**
|
|
311
|
+
* Custom method to determine whether selected options should be displayed in the menu
|
|
312
|
+
* <br>
|
|
313
|
+
* [Props from React select was used](https://react-select.com/props)
|
|
314
|
+
*/
|
|
315
|
+
"@emotion/react").jsx.JSX.Element;
|
|
316
|
+
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;
|
|
317
|
+
MenuPortal: ComponentType<CommonPropsAndClassName<unknown, false, GroupBase<unknown>> & {
|
|
300
318
|
appendTo: HTMLElement | undefined;
|
|
301
319
|
children: ReactNode;
|
|
302
320
|
controlElement: HTMLDivElement | null;
|
|
@@ -304,15 +322,24 @@ declare const SelectInput: {
|
|
|
304
322
|
menuPlacement: MenuPlacement;
|
|
305
323
|
menuPosition: MenuPosition;
|
|
306
324
|
}>;
|
|
307
|
-
MultiValue:
|
|
308
|
-
MultiValueContainer:
|
|
309
|
-
MultiValueLabel:
|
|
310
|
-
MultiValueRemove:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
325
|
+
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;
|
|
326
|
+
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;
|
|
327
|
+
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;
|
|
328
|
+
MultiValueRemove: {
|
|
329
|
+
(props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
330
|
+
displayName: string;
|
|
331
|
+
};
|
|
332
|
+
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;
|
|
333
|
+
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;
|
|
334
|
+
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;
|
|
335
|
+
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;
|
|
336
|
+
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;
|
|
337
|
+
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(
|
|
338
|
+
/**
|
|
339
|
+
* Dom element to portal the select menu to
|
|
340
|
+
* <br>
|
|
341
|
+
* [Props from React select was used](https://react-select.com/props)
|
|
342
|
+
*/
|
|
343
|
+
"@emotion/react").jsx.JSX.Element;
|
|
317
344
|
};
|
|
318
345
|
export default SelectInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-input",
|
|
3
3
|
"description": "An input component getting a selection from 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,11 +21,11 @@
|
|
|
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/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/select-utils": "19.22.4",
|
|
28
|
+
"@commercetools-uikit/utils": "19.22.4",
|
|
29
29
|
"@emotion/is-prop-valid": "1.3.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|