@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.1";
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.1";
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.1";
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
- (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 import("react-select").GroupBase<Option_1>>(props: import("react-select").ControlProps<Option_1, IsMulti_1, Group_1>) => import("@emotion/react").jsx.JSX.Element;
286
- CrossIcon: (props: import("react-select/dist/declarations/src/components/indicators").CrossIconProps) => import("@emotion/react").jsx.JSX.Element;
287
- DownChevron: (props: import("react-select/dist/declarations/src/components/indicators").DownChevronProps) => import("@emotion/react").jsx.JSX.Element;
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 import("react-select").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 import("react-select").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 import("react-select").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 import("react-select").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 import("react-select").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 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(
303
- /**
304
- * Is the select disabled
305
- * <br>
306
- * [Props from React select was used](https://react-select.com/props)
307
- */
308
- "@emotion/react").jsx.JSX.Element;
309
- MultiValueContainer: <Option_15, IsMulti_15 extends boolean, Group_15 extends import("react-select").GroupBase<Option_15>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
310
- MultiValueLabel: <Option_15, IsMulti_15 extends boolean, Group_15 extends import("react-select").GroupBase<Option_15>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
311
- MultiValueRemove: {
312
- (props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
313
- displayName: string;
314
- };
315
- NoOptionsMessage: <Option_13, IsMulti_13 extends boolean, Group_13 extends import("react-select").GroupBase<Option_13>>({ children, innerProps, ...restProps }: import("react-select").NoticeProps<Option_13, IsMulti_13, Group_13>) => import("@emotion/react").jsx.JSX.Element;
316
- Option: <Option_16, IsMulti_16 extends boolean, Group_16 extends import("react-select").GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
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.1",
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.1",
25
- "@commercetools-uikit/design-system": "19.22.1",
26
- "@commercetools-uikit/icons": "19.22.1",
27
- "@commercetools-uikit/select-utils": "19.22.1",
28
- "@commercetools-uikit/utils": "19.22.1",
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",