@goodhood-web/ui 1.12.0-development.26 → 1.12.0-development.28

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.
@@ -4,8 +4,10 @@ export interface ThumbnailProps extends ImageProps {
4
4
  className?: string;
5
5
  isPlaceholder?: boolean;
6
6
  }
7
- export type TCircularSize = '28' | '32' | '40' | '48' | '56' | '64' | '80' | '120' | '280';
8
- export type TSquareSize = '24' | '32' | '40' | '48' | '56' | '64' | '80' | '120';
7
+ export declare const circularSizes: readonly ["28", "32", "40", "48", "56", "64", "80", "120", "280"];
8
+ export declare const squareSizes: readonly ["24", "32", "40", "48", "56", "64", "80", "120"];
9
+ export type TCircularSize = (typeof circularSizes)[number];
10
+ export type TSquareSize = (typeof squareSizes)[number];
9
11
  export interface ThumbnailCircularProps extends ThumbnailProps {
10
12
  shape: 'circular';
11
13
  size: TCircularSize;
@@ -0,0 +1,4 @@
1
+ import { UserAvatarProps } from './UserAvatar.types';
2
+
3
+ export declare const UserAvatar: ({ alt, size, userId, userImageSrc, }: UserAvatarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default UserAvatar;
@@ -0,0 +1,9 @@
1
+ import { TCircularSize } from '../Thumbnail/Thumbnail.type';
2
+
3
+ export declare const colors: readonly ["green", "lavender", "orange", "teal"];
4
+ export type UserAvatarProps = {
5
+ alt: string;
6
+ size: TCircularSize;
7
+ userId: number;
8
+ userImageSrc?: string;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.12.0-development.26",
3
+ "version": "1.12.0-development.28",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",