@transferwise/components 43.13.49 → 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.
- package/build/es/no-polyfill/loader/Loader.js +3 -3
- package/build/es/polyfill/loader/Loader.js +3 -3
- package/build/main.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/loader/Loader.d.ts +5 -3
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +5 -6
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge, SizeExtraLarge } from '../common';
|
|
3
|
-
type
|
|
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;
|