@transferwise/components 0.0.0-experimental-9a945da → 0.0.0-experimental-28800ab

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,22 +1,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
+ /// <reference types="react" />
2
+ type NumericAvatarSize = 24 | 40 | 48 | 56 | 72;
3
+ type LegacyAvatarSize = 'sm' | 'md' | 'lg';
4
+ export type AvatarSize = NumericAvatarSize | LegacyAvatarSize;
5
+ export type AvatarTheme = 'light' | 'dark';
6
+ export type AvatarType = 'thumbnail' | 'icon' | 'emoji' | 'initials';
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;
@@ -0,0 +1,3 @@
1
+ declare const avatarColours: readonly ["--color-bright-blue", "--color-bright-yellow", "--color-bright-pink", "--color-bright-orange"];
2
+ export declare const getAvatarColorFromSeed: (seed: string) => (typeof avatarColours)[number];
3
+ export {};
@@ -0,0 +1 @@
1
+ export * from './colors';
@@ -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,6 +13,7 @@ export interface AvatarWrapperBadgeProps {
13
13
  export interface AvatarWrapperProps {
14
14
  url?: string;
15
15
  profileType?: AvatarWrapperProfileType;
16
+ profileId?: number;
16
17
  badgeUrl?: string;
17
18
  badgeAltText?: string;
18
19
  badgeStatusIcon?: AvatarWrapperBadgeStatusIcon;