@transferwise/components 43.13.48 → 44.0.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,12 +1,14 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge, SizeExtraLarge } from '../common';
3
- type SizeType = SizeExtraSmall | SizeSmall | SizeMedium | SizeLarge | SizeExtraLarge;
3
+ type DeprecatedSize = SizeExtraSmall | SizeLarge | SizeExtraLarge;
4
+ type SizeType = SizeSmall | SizeMedium;
4
5
  type Props = {
5
6
  /**
6
7
  * @deprecated use `size` instead
7
8
  */
8
9
  small?: boolean;
9
- size?: SizeType;
10
+ size?: SizeType | DeprecatedSize;
11
+ displayInstantly?: boolean;
10
12
  classNames?: Record<string, string>;
11
13
  'data-testid'?: string;
12
14
  };
@@ -20,5 +22,5 @@ type Props = {
20
22
  * @param root0.size
21
23
  * @param root0.classNames
22
24
  */
23
- declare const Loader: ({ small, size, classNames, ...restProps }: Props) => ReactElement;
25
+ declare const Loader: ({ small, size, displayInstantly, classNames, ...restProps }: Props) => ReactElement;
24
26
  export default Loader;
@@ -2,6 +2,6 @@ import { InputHTMLAttributes } from 'react';
2
2
  declare const SearchBox: import("react").ForwardRefExoticComponent<{
3
3
  id?: string | undefined;
4
4
  classNames?: Record<string, string> | undefined;
5
- keyboardFocusedOptionIndex?: number | null | undefined;
5
+ focusedOptionId?: string | undefined;
6
6
  } & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange" | "onClick"> & import("react").RefAttributes<HTMLInputElement>>;
7
7
  export default SearchBox;