@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.
@@ -1,18 +1,22 @@
1
- /// <reference types="react" />
2
- import { AvatarType } from './avatarTypes';
3
- type NumericAvatarSize = 24 | 40 | 48 | 56 | 72;
4
- type LegacyAvatarSize = 'sm' | 'md' | 'lg';
5
- export type AvatarSize = NumericAvatarSize | LegacyAvatarSize;
6
- export type AvatarTheme = 'light' | 'dark';
7
- export interface AvatarProps {
8
- backgroundColor?: string;
9
- seed?: string;
10
- children?: React.ReactNode;
11
- className?: string;
12
- outlined?: boolean;
13
- size?: AvatarSize;
14
- theme?: AvatarTheme;
15
- type?: AvatarType;
16
- }
17
- declare const Avatar: React.FC<AvatarProps>;
18
- export default Avatar;
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 './avatarTypes';
2
- export { default } from './Avatar';
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;