@transferwise/components 0.0.0-experimental-a72f8ee → 0.0.0-experimental-9a945da
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/avatar/Avatar.js +1 -1
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/es/polyfill/avatar/Avatar.js +1 -1
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/main.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/avatar/Avatar.d.ts +22 -18
- package/build/types/avatar/index.d.ts +2 -2
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +0 -1
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +3 -3
- package/scripts/generate-type-declarations.js +1 -0
- package/build/es/no-polyfill/avatar/colors/avatarColorTestCases.json +0 -402
- package/build/es/no-polyfill/avatar/colors/colors.js +0 -14
- package/build/es/no-polyfill/avatar/colors/index.js +0 -1
- package/build/es/polyfill/avatar/colors/avatarColorTestCases.json +0 -402
- package/build/es/polyfill/avatar/colors/colors.js +0 -14
- package/build/es/polyfill/avatar/colors/index.js +0 -1
- package/build/types/avatar/colors/colors.d.ts +0 -3
- package/build/types/avatar/colors/index.d.ts +0 -1
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type AvatarSize = "sm" | "md" | "lg" | 40 | 56;
|
|
4
|
+
|
|
5
|
+
export type AvatarTheme = "light" | "dark";
|
|
6
|
+
|
|
7
|
+
export type AvatarType = "thumbnail" | "icon" | "emoji" | "initials";
|
|
8
|
+
|
|
9
|
+
export interface AvatarProps {
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
outlined?: boolean;
|
|
14
|
+
size?: AvatarSize;
|
|
15
|
+
theme?: AvatarTheme;
|
|
16
|
+
type?: AvatarType;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
20
|
+
|
|
21
|
+
export default Avatar;
|
|
22
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AvatarType } from
|
|
2
|
-
export { default } from
|
|
1
|
+
export { AvatarType } from "./avatarTypes";
|
|
2
|
+
export { default } from "./Avatar";
|
|
@@ -13,7 +13,6 @@ export interface AvatarWrapperBadgeProps {
|
|
|
13
13
|
export interface AvatarWrapperProps {
|
|
14
14
|
url?: string;
|
|
15
15
|
profileType?: AvatarWrapperProfileType;
|
|
16
|
-
profileId?: number;
|
|
17
16
|
badgeUrl?: string;
|
|
18
17
|
badgeAltText?: string;
|
|
19
18
|
badgeStatusIcon?: AvatarWrapperBadgeStatusIcon;
|