@goodhood-web/ui 3.0.0-development.20 → 3.0.0-development.22

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,4 +1,4 @@
1
- export type Color = 'teal' | 'lavender';
1
+ export type Color = 'teal' | 'lavender' | 'grey';
2
2
  interface CommonProps {
3
3
  className?: string;
4
4
  label: string;
@@ -1,3 +1,3 @@
1
- import { default as ThumbnailWrapperProps } from './ThumbnailWrapper.types';
2
- declare const ThumbnailWrapper: ({ ariaLabel, children, thumbnail }: ThumbnailWrapperProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { ThumbnailWrapperProps } from './ThumbnailWrapper.types';
2
+ declare const ThumbnailWrapper: (props: ThumbnailWrapperProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ThumbnailWrapper;
@@ -1,7 +1,15 @@
1
1
  import { BadgeOwnProps } from '@mui/base/Badge/Badge.types';
2
2
  import { ThumbnailCircularProps, ThumbnailSquareProps } from '../Thumbnail/Thumbnail.type';
3
- export default interface ThumbnailWrapperProps {
3
+ import { UserAvatarProps } from '../UserAvatar/UserAvatar.types';
4
+ interface CommonProps {
4
5
  ariaLabel?: string;
5
6
  children: BadgeOwnProps['children'];
7
+ }
8
+ interface HasThumbnail extends CommonProps {
6
9
  thumbnail: ThumbnailCircularProps | ThumbnailSquareProps;
7
10
  }
11
+ interface HasUserAvatar extends CommonProps {
12
+ userAvatar: UserAvatarProps;
13
+ }
14
+ export type ThumbnailWrapperProps = HasThumbnail | HasUserAvatar;
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.20",
3
+ "version": "3.0.0-development.22",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",