@goodhood-web/ui 1.12.0-development.34 → 1.12.0-development.35
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/index.js +27 -27
- package/index.mjs +1746 -1740
- package/lib/Atoms/Content/UserAvatar/UserAvatar.d.ts +1 -1
- package/lib/Atoms/Content/UserAvatar/UserAvatar.types.d.ts +12 -3
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UserAvatarProps } from './UserAvatar.types';
|
|
2
|
-
export declare const UserAvatar: ({ alt, size, userId, userImageSrc }: UserAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const UserAvatar: ({ alt, avatarColor, size, userId, userImageSrc, }: UserAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default UserAvatar;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { TCircularSize } from '../Thumbnail/Thumbnail.type';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type AvatarColor = 'green' | 'purple' | 'orange' | 'blue';
|
|
3
|
+
type BaseUserAvatarProps = {
|
|
4
4
|
alt: string;
|
|
5
5
|
size: TCircularSize;
|
|
6
|
-
userId: number;
|
|
7
6
|
userImageSrc?: string;
|
|
8
7
|
};
|
|
8
|
+
type UserIdMandatory = BaseUserAvatarProps & {
|
|
9
|
+
avatarColor?: AvatarColor;
|
|
10
|
+
userId: number;
|
|
11
|
+
};
|
|
12
|
+
type AvatarColorMandatory = BaseUserAvatarProps & {
|
|
13
|
+
avatarColor: AvatarColor;
|
|
14
|
+
userId?: number;
|
|
15
|
+
};
|
|
16
|
+
export type UserAvatarProps = UserIdMandatory | AvatarColorMandatory;
|
|
17
|
+
export {};
|