@commercetools-uikit/select-input 19.22.1 → 19.22.2
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,16 +264,19 @@ 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;
|
|
269
270
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
270
271
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
272
|
+
// custom
|
|
271
273
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
272
274
|
SelectInput.Group = Select.components.Group;
|
|
273
275
|
SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
274
276
|
SelectInput.IndicatorSeparator = Select.components.IndicatorSeparator;
|
|
275
277
|
SelectInput.IndicatorsContainer = Select.components.IndicatorsContainer;
|
|
276
278
|
SelectInput.Input = Select.components.Input;
|
|
279
|
+
// custom
|
|
277
280
|
SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
278
281
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
279
282
|
SelectInput.Menu = Select.components.Menu;
|
|
@@ -282,6 +285,7 @@ SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
|
282
285
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
283
286
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
284
287
|
SelectInput.MultiValueLabel = Select.components.MultiValueLabel;
|
|
288
|
+
// custom
|
|
285
289
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
286
290
|
SelectInput.NoOptionsMessage = Select.components.NoOptionsMessage;
|
|
287
291
|
SelectInput.Option = Select.components.Option;
|
|
@@ -292,7 +296,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
292
296
|
var SelectInput$1 = SelectInput;
|
|
293
297
|
|
|
294
298
|
// NOTE: This string will be replaced on build time with the package version.
|
|
295
|
-
var version = "19.22.
|
|
299
|
+
var version = "19.22.2";
|
|
296
300
|
|
|
297
301
|
exports["default"] = SelectInput$1;
|
|
298
302
|
exports.version = version;
|
|
@@ -235,16 +235,19 @@ 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;
|
|
240
241
|
SelectInput.CrossIcon = Select.components.CrossIcon;
|
|
241
242
|
SelectInput.DownChevron = Select.components.DownChevron;
|
|
243
|
+
// custom
|
|
242
244
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
243
245
|
SelectInput.Group = Select.components.Group;
|
|
244
246
|
SelectInput.GroupHeading = Select.components.GroupHeading;
|
|
245
247
|
SelectInput.IndicatorSeparator = Select.components.IndicatorSeparator;
|
|
246
248
|
SelectInput.IndicatorsContainer = Select.components.IndicatorsContainer;
|
|
247
249
|
SelectInput.Input = Select.components.Input;
|
|
250
|
+
// custom
|
|
248
251
|
SelectInput.LoadingIndicator = Select.components.LoadingIndicator;
|
|
249
252
|
SelectInput.LoadingMessage = Select.components.LoadingMessage;
|
|
250
253
|
SelectInput.Menu = Select.components.Menu;
|
|
@@ -253,6 +256,7 @@ SelectInput.MenuPortal = Select.components.MenuPortal;
|
|
|
253
256
|
SelectInput.MultiValue = Select.components.MultiValue;
|
|
254
257
|
SelectInput.MultiValueContainer = Select.components.MultiValueContainer;
|
|
255
258
|
SelectInput.MultiValueLabel = Select.components.MultiValueLabel;
|
|
259
|
+
// custom
|
|
256
260
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
257
261
|
SelectInput.NoOptionsMessage = Select.components.NoOptionsMessage;
|
|
258
262
|
SelectInput.Option = Select.components.Option;
|
|
@@ -263,7 +267,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
263
267
|
var SelectInput$1 = SelectInput;
|
|
264
268
|
|
|
265
269
|
// NOTE: This string will be replaced on build time with the package version.
|
|
266
|
-
var version = "19.22.
|
|
270
|
+
var version = "19.22.2";
|
|
267
271
|
|
|
268
272
|
exports["default"] = SelectInput$1;
|
|
269
273
|
exports.version = version;
|
|
@@ -241,16 +241,19 @@ 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;
|
|
246
247
|
SelectInput.CrossIcon = components.CrossIcon;
|
|
247
248
|
SelectInput.DownChevron = components.DownChevron;
|
|
249
|
+
// custom
|
|
248
250
|
SelectInput.DropdownIndicator = customizedComponents.DropdownIndicator;
|
|
249
251
|
SelectInput.Group = components.Group;
|
|
250
252
|
SelectInput.GroupHeading = components.GroupHeading;
|
|
251
253
|
SelectInput.IndicatorSeparator = components.IndicatorSeparator;
|
|
252
254
|
SelectInput.IndicatorsContainer = components.IndicatorsContainer;
|
|
253
255
|
SelectInput.Input = components.Input;
|
|
256
|
+
// custom
|
|
254
257
|
SelectInput.LoadingIndicator = components.LoadingIndicator;
|
|
255
258
|
SelectInput.LoadingMessage = components.LoadingMessage;
|
|
256
259
|
SelectInput.Menu = components.Menu;
|
|
@@ -259,6 +262,7 @@ SelectInput.MenuPortal = components.MenuPortal;
|
|
|
259
262
|
SelectInput.MultiValue = components.MultiValue;
|
|
260
263
|
SelectInput.MultiValueContainer = components.MultiValueContainer;
|
|
261
264
|
SelectInput.MultiValueLabel = components.MultiValueLabel;
|
|
265
|
+
// custom
|
|
262
266
|
SelectInput.MultiValueRemove = customizedComponents.MultiValueRemove;
|
|
263
267
|
SelectInput.NoOptionsMessage = components.NoOptionsMessage;
|
|
264
268
|
SelectInput.Option = components.Option;
|
|
@@ -269,6 +273,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
269
273
|
var SelectInput$1 = SelectInput;
|
|
270
274
|
|
|
271
275
|
// NOTE: This string will be replaced on build time with the package version.
|
|
272
|
-
var version = "19.22.
|
|
276
|
+
var version = "19.22.2";
|
|
273
277
|
|
|
274
278
|
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 ClearIndicatorProps, type ContainerProps, type ControlProps, type DropdownIndicatorProps, type GroupHeadingProps, type GroupProps, type IndicatorsContainerProps, type InputProps, type MenuListProps, type MultiValueGenericProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type OptionProps, type PlaceholderProps, type SingleValueProps, type ValueContainerProps, type GroupBase, type LoadingIndicatorProps, type MenuProps, type CommonPropsAndClassName, type MenuPlacement, type MenuPosition } from 'react-select';
|
|
3
3
|
export type TOption = {
|
|
4
4
|
value: string;
|
|
5
5
|
label?: ReactNode;
|
|
@@ -278,45 +278,41 @@ declare const SelectInput: {
|
|
|
278
278
|
/**
|
|
279
279
|
* Expose react-select components for customization purposes.
|
|
280
280
|
*/
|
|
281
|
-
ClearIndicator: {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
Placeholder: <Option_17, IsMulti_17 extends boolean, Group_17 extends import("react-select").GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
|
|
318
|
-
SelectContainer: <Option_18, IsMulti_18 extends boolean, Group_18 extends import("react-select").GroupBase<Option_18>>(props: import("react-select").ContainerProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
|
|
319
|
-
SingleValue: <Option_19, IsMulti_19 extends boolean, Group_19 extends import("react-select").GroupBase<Option_19>>(props: import("react-select").SingleValueProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element;
|
|
320
|
-
ValueContainer: <Option_20, IsMulti_20 extends boolean, Group_20 extends import("react-select").GroupBase<Option_20>>(props: import("react-select").ValueContainerProps<Option_20, IsMulti_20, Group_20>) => import("@emotion/react").jsx.JSX.Element;
|
|
281
|
+
ClearIndicator: ComponentType<ClearIndicatorProps<{}, false, GroupBase<{}>>>;
|
|
282
|
+
Control: ComponentType<ControlProps<{}, false, GroupBase<{}>>>;
|
|
283
|
+
CrossIcon: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
284
|
+
size?: number;
|
|
285
|
+
}>;
|
|
286
|
+
DownChevron: ComponentType<import("react").SVGProps<SVGSVGElement> & {
|
|
287
|
+
size?: number;
|
|
288
|
+
}>;
|
|
289
|
+
DropdownIndicator: ComponentType<DropdownIndicatorProps<{}, false, GroupBase<{}>>>;
|
|
290
|
+
Group: ComponentType<GroupProps<{}, false, GroupBase<{}>>>;
|
|
291
|
+
GroupHeading: ComponentType<GroupHeadingProps<{}, false, GroupBase<{}>>>;
|
|
292
|
+
IndicatorSeparator: ComponentType<LoadingIndicatorProps<{}, false, GroupBase<{}>>>;
|
|
293
|
+
IndicatorsContainer: ComponentType<IndicatorsContainerProps<{}, false, GroupBase<{}>>>;
|
|
294
|
+
Input: ComponentType<InputProps<{}, false, GroupBase<{}>>>;
|
|
295
|
+
LoadingIndicator: ComponentType<LoadingIndicatorProps<{}, false, GroupBase<{}>>>;
|
|
296
|
+
LoadingMessage: ComponentType<NoticeProps<{}, false, GroupBase<{}>>>;
|
|
297
|
+
Menu: ComponentType<MenuProps<{}, false, GroupBase<{}>>>;
|
|
298
|
+
MenuList: ComponentType<MenuListProps<{}, false, GroupBase<{}>>>;
|
|
299
|
+
MenuPortal: ComponentType<CommonPropsAndClassName<{}, false, GroupBase<{}>> & {
|
|
300
|
+
appendTo: HTMLElement | undefined;
|
|
301
|
+
children: ReactNode;
|
|
302
|
+
controlElement: HTMLDivElement | null;
|
|
303
|
+
innerProps: JSX.IntrinsicElements["div"];
|
|
304
|
+
menuPlacement: MenuPlacement;
|
|
305
|
+
menuPosition: MenuPosition;
|
|
306
|
+
}>;
|
|
307
|
+
MultiValue: ComponentType<MultiValueProps<{}, false, GroupBase<{}>>>;
|
|
308
|
+
MultiValueContainer: ComponentType<MultiValueGenericProps<{}, false, GroupBase<{}>>>;
|
|
309
|
+
MultiValueLabel: ComponentType<MultiValueGenericProps<{}, false, GroupBase<{}>>>;
|
|
310
|
+
MultiValueRemove: ComponentType<MultiValueRemoveProps<{}, false, GroupBase<{}>>>;
|
|
311
|
+
NoOptionsMessage: ComponentType<NoticeProps<{}, false, GroupBase<{}>>>;
|
|
312
|
+
Option: ComponentType<OptionProps<{}, false, GroupBase<{}>>>;
|
|
313
|
+
Placeholder: ComponentType<PlaceholderProps<{}, false, GroupBase<{}>>>;
|
|
314
|
+
SelectContainer: ComponentType<ContainerProps<{}, false, GroupBase<{}>>>;
|
|
315
|
+
SingleValue: ComponentType<SingleValueProps<{}, false, GroupBase<{}>>>;
|
|
316
|
+
ValueContainer: ComponentType<ValueContainerProps<{}, false, GroupBase<{}>>>;
|
|
321
317
|
};
|
|
322
318
|
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.2",
|
|
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.2",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.2",
|
|
26
|
+
"@commercetools-uikit/icons": "19.22.2",
|
|
27
|
+
"@commercetools-uikit/select-utils": "19.22.2",
|
|
28
|
+
"@commercetools-uikit/utils": "19.22.2",
|
|
29
29
|
"@emotion/is-prop-valid": "1.3.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|