@commercetools-uikit/selectable-search-input 19.4.0 → 19.6.0

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.
@@ -1,4 +1,5 @@
1
- import { type ReactNode } from 'react';
1
+ import { type ReactNode, ReactElement } from 'react';
2
+ import { type TIconButtonProps } from '@commercetools-uikit/icon-button';
2
3
  import { type Props as ReactSelectProps } from 'react-select';
3
4
  export type TCustomEvent = {
4
5
  target: {
@@ -55,12 +56,15 @@ export type TSelectableSearchInputProps = {
55
56
  showSubmitButton?: boolean;
56
57
  selectDataProps?: Record<string, string>;
57
58
  inputDataProps?: Record<string, string>;
59
+ selectCustomComponents?: ReactSelectProps['components'];
60
+ rightActionIcon?: ReactElement;
61
+ rightActionProps?: TIconButtonProps;
58
62
  };
59
63
  declare const SelectableSearchInput: {
60
64
  (props: TSelectableSearchInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
61
65
  displayName: string;
62
66
  defaultProps: Pick<TSelectableSearchInputProps, "isClearable" | "options" | "horizontalConstraint" | "menuPortalZIndex" | "menuHorizontalConstraint" | "showSubmitButton">;
63
- isEmpty(formValue: TSelectableSearchInputProps['value']): boolean;
67
+ isEmpty(formValue: TSelectableSearchInputProps["value"]): boolean;
64
68
  getTextInputId: (name?: string) => string | undefined;
65
69
  getDropdownId: (name?: string) => string | undefined;
66
70
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/selectable-search-input",
3
3
  "description": "A controlled selectable search input component for single-line strings with validation states.",
4
- "version": "19.4.0",
4
+ "version": "19.6.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,14 +21,15 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "19.4.0",
25
- "@commercetools-uikit/design-system": "19.4.0",
26
- "@commercetools-uikit/hooks": "19.4.0",
27
- "@commercetools-uikit/icons": "19.4.0",
28
- "@commercetools-uikit/input-utils": "19.4.0",
29
- "@commercetools-uikit/secondary-icon-button": "19.4.0",
30
- "@commercetools-uikit/select-utils": "19.4.0",
31
- "@commercetools-uikit/utils": "19.4.0",
24
+ "@commercetools-uikit/constraints": "19.6.0",
25
+ "@commercetools-uikit/design-system": "19.6.0",
26
+ "@commercetools-uikit/hooks": "19.6.0",
27
+ "@commercetools-uikit/icon-button": "19.6.0",
28
+ "@commercetools-uikit/icons": "19.6.0",
29
+ "@commercetools-uikit/input-utils": "19.6.0",
30
+ "@commercetools-uikit/secondary-icon-button": "19.6.0",
31
+ "@commercetools-uikit/select-utils": "19.6.0",
32
+ "@commercetools-uikit/utils": "19.6.0",
32
33
  "@emotion/react": "^11.10.5",
33
34
  "@emotion/styled": "^11.10.5",
34
35
  "lodash": "4.17.21",