@commercetools-uikit/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.
|
@@ -264,10 +264,14 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
264
264
|
* Expose react-select components for customization purposes.
|
|
265
265
|
*/
|
|
266
266
|
|
|
267
|
+
// custom
|
|
267
268
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
268
269
|
SelectInput.Control = Select.components.Control;
|
|
270
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
269
271
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
272
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
270
273
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
274
|
+
// custom
|
|
271
275
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
272
276
|
SelectInput.Group = Select.components.Group;
|
|
273
277
|
SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
@@ -278,10 +282,12 @@ SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
|
278
282
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
279
283
|
SelectInput.Menu = Select.components.Menu;
|
|
280
284
|
SelectInput.MenuList = Select.components.MenuList;
|
|
285
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
281
286
|
SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
282
287
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
283
288
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
284
289
|
SelectInput.MultiValueLabel = Select.components.MultiValueLabel;
|
|
290
|
+
// custom
|
|
285
291
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
286
292
|
SelectInput.NoOptionsMessage = Select.components.NoOptionsMessage;
|
|
287
293
|
SelectInput.Option = Select.components.Option;
|
|
@@ -292,7 +298,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
292
298
|
var SelectInput$1 = SelectInput;
|
|
293
299
|
|
|
294
300
|
// NOTE: This string will be replaced on build time with the package version.
|
|
295
|
-
var version = "19.22.
|
|
301
|
+
var version = "19.22.3";
|
|
296
302
|
|
|
297
303
|
exports["default"] = SelectInput$1;
|
|
298
304
|
exports.version = version;
|
|
@@ -235,10 +235,14 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
235
235
|
* Expose react-select components for customization purposes.
|
|
236
236
|
*/
|
|
237
237
|
|
|
238
|
+
// custom
|
|
238
239
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
239
240
|
SelectInput.Control = Select.components.Control;
|
|
241
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
240
242
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
243
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
241
244
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
245
|
+
// custom
|
|
242
246
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
243
247
|
SelectInput.Group = Select.components.Group;
|
|
244
248
|
SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
@@ -249,10 +253,12 @@ SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
|
249
253
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
250
254
|
SelectInput.Menu = Select.components.Menu;
|
|
251
255
|
SelectInput.MenuList = Select.components.MenuList;
|
|
256
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
252
257
|
SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
253
258
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
254
259
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
255
260
|
SelectInput.MultiValueLabel = Select.components.MultiValueLabel;
|
|
261
|
+
// custom
|
|
256
262
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
257
263
|
SelectInput.NoOptionsMessage = Select.components.NoOptionsMessage;
|
|
258
264
|
SelectInput.Option = Select.components.Option;
|
|
@@ -263,7 +269,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
263
269
|
var SelectInput$1 = SelectInput;
|
|
264
270
|
|
|
265
271
|
// NOTE: This string will be replaced on build time with the package version.
|
|
266
|
-
var version = "19.22.
|
|
272
|
+
var version = "19.22.3";
|
|
267
273
|
|
|
268
274
|
exports["default"] = SelectInput$1;
|
|
269
275
|
exports.version = version;
|
|
@@ -241,10 +241,14 @@ SelectInput.isTouched = touched => Boolean(touched);
|
|
|
241
241
|
* Expose react-select components for customization purposes.
|
|
242
242
|
*/
|
|
243
243
|
|
|
244
|
+
// custom
|
|
244
245
|
SelectInput.ClearIndicator = customizedComponents.ClearIndicator;
|
|
245
246
|
SelectInput.Control = components.Control;
|
|
247
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
246
248
|
SelectInput.CrossIcon = components.CrossIcon;
|
|
249
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
247
250
|
SelectInput.DownChevron = components.DownChevron;
|
|
251
|
+
// custom
|
|
248
252
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
249
253
|
SelectInput.Group = components.Group;
|
|
250
254
|
SelectInput.GroupHeading = components.GroupHeading;
|
|
@@ -255,10 +259,12 @@ SelectInput.LoadingIndicator = components.LoadingIndicator;
|
|
|
255
259
|
SelectInput.LoadingMessage = components.LoadingMessage;
|
|
256
260
|
SelectInput.Menu = components.Menu;
|
|
257
261
|
SelectInput.MenuList = components.MenuList;
|
|
262
|
+
//https://github.com/commercetools/ui-kit/pull/3054/files#r1943026570
|
|
258
263
|
SelectInput.MenuPortal = components.MenuPortal;
|
|
259
264
|
SelectInput.MultiValue = components.MultiValue;
|
|
260
265
|
SelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
261
266
|
SelectInput.MultiValueLabel = components.MultiValueLabel;
|
|
267
|
+
// custom
|
|
262
268
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
263
269
|
SelectInput.NoOptionsMessage = components.NoOptionsMessage;
|
|
264
270
|
SelectInput.Option = components.Option;
|
|
@@ -269,6 +275,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
269
275
|
var SelectInput$1 = SelectInput;
|
|
270
276
|
|
|
271
277
|
// NOTE: This string will be replaced on build time with the package version.
|
|
272
|
-
var version = "19.22.
|
|
278
|
+
var version = "19.22.3";
|
|
273
279
|
|
|
274
280
|
export { SelectInput$1 as default, version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { type Props as ReactSelectProps } from 'react-select';
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
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;
|
|
@@ -282,41 +282,64 @@ declare const SelectInput: {
|
|
|
282
282
|
(props: import("@commercetools-uikit/select-utils").TClearIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
283
283
|
displayName: string;
|
|
284
284
|
};
|
|
285
|
-
Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends
|
|
286
|
-
CrossIcon:
|
|
287
|
-
|
|
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;
|
|
286
|
+
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
287
|
+
size?: number;
|
|
288
|
+
}>;
|
|
289
|
+
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
290
|
+
size?: number;
|
|
291
|
+
}>;
|
|
288
292
|
DropdownIndicator: {
|
|
289
293
|
(props: import("react-select").DropdownIndicatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
290
294
|
displayName: string;
|
|
291
295
|
};
|
|
292
|
-
Group: <Option_3, IsMulti_3 extends boolean, Group_3 extends
|
|
293
|
-
GroupHeading: <Option_4, IsMulti_4 extends boolean, Group_4 extends
|
|
294
|
-
IndicatorSeparator: <Option_6, IsMulti_6 extends boolean, Group_6 extends
|
|
295
|
-
IndicatorsContainer: <Option_5, IsMulti_5 extends boolean, Group_5 extends
|
|
296
|
-
Input: <Option_7, IsMulti_7 extends boolean, Group_7 extends
|
|
297
|
-
LoadingIndicator: <Option_8, IsMulti_8 extends boolean, Group_8 extends import("react-select").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 import("react-select").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 import("react-select").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 import("react-select").GroupBase<Option_10>>(props: import("react-select").MenuListProps<Option_10, IsMulti_10, Group_10>) => import("@emotion/react").jsx.JSX.Element;
|
|
301
|
-
MenuPortal: <Option_11, IsMulti_11 extends boolean, Group_11 extends import("react-select").GroupBase<Option_11>>(props: import("react-select/dist/declarations/src/components/Menu").MenuPortalProps<Option_11, IsMulti_11, Group_11>) => import("@emotion/react").jsx.JSX.Element | null;
|
|
302
|
-
MultiValue: <Option_14, IsMulti_14 extends boolean, Group_14 extends import("react-select").GroupBase<Option_14>>(props: import("react-select").MultiValueProps<Option_14, IsMulti_14, Group_14>) => import(
|
|
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(
|
|
303
301
|
/**
|
|
304
|
-
*
|
|
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
|
|
305
312
|
* <br>
|
|
306
313
|
* [Props from React select was used](https://react-select.com/props)
|
|
307
314
|
*/
|
|
308
315
|
"@emotion/react").jsx.JSX.Element;
|
|
309
|
-
|
|
310
|
-
|
|
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>> & {
|
|
318
|
+
appendTo: HTMLElement | undefined;
|
|
319
|
+
children: ReactNode;
|
|
320
|
+
controlElement: HTMLDivElement | null;
|
|
321
|
+
innerProps: JSX.IntrinsicElements["div"];
|
|
322
|
+
menuPlacement: MenuPlacement;
|
|
323
|
+
menuPosition: MenuPosition;
|
|
324
|
+
}>;
|
|
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;
|
|
311
328
|
MultiValueRemove: {
|
|
312
329
|
(props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
313
330
|
displayName: string;
|
|
314
331
|
};
|
|
315
|
-
NoOptionsMessage: <Option_13, IsMulti_13 extends boolean, Group_13 extends
|
|
316
|
-
Option: <Option_16, IsMulti_16 extends boolean, Group_16 extends
|
|
317
|
-
Placeholder: <Option_17, IsMulti_17 extends boolean, Group_17 extends
|
|
318
|
-
SelectContainer: <Option_18, IsMulti_18 extends boolean, Group_18 extends
|
|
319
|
-
SingleValue: <Option_19, IsMulti_19 extends boolean, Group_19 extends
|
|
320
|
-
ValueContainer: <Option_20, IsMulti_20 extends boolean, Group_20 extends
|
|
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;
|
|
321
344
|
};
|
|
322
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.3",
|
|
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.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/utils": "19.22.3",
|
|
29
29
|
"@emotion/is-prop-valid": "1.3.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|