@goodhood-web/ui 3.0.0-development.25 → 3.0.0-development.27

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,3 +1,3 @@
1
1
  import { default as BadgeIconProps } from './BadgeIcon.types';
2
- declare const BadgeIcon: ({ ariaLabel, className, role, size, type }: BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BadgeIcon: ({ ariaLabel, className, role, size, type }: BadgeIconProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default BadgeIcon;
@@ -1,6 +1,6 @@
1
1
  import { Icon32 } from '../../../Base/Icon/Icon.types';
2
2
  export interface StickerProps {
3
- color: 'green' | 'pink' | 'lavender' | 'teal' | 'orange' | 'grey';
3
+ color: 'green' | 'pink' | 'lavender' | 'teal' | 'orange' | 'grey' | 'lightGrey';
4
4
  icon: Icon32;
5
5
  size: 'small' | 'medium' | 'large';
6
6
  }
@@ -0,0 +1,3 @@
1
+ import { AvatarWithPlaceholderProps } from './AvatarWithPlaceholder.types';
2
+ declare const AvatarWithPlaceholder: (props: AvatarWithPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AvatarWithPlaceholder;
@@ -0,0 +1,16 @@
1
+ import { TSquareSize } from '../Thumbnail/Thumbnail.type';
2
+ type BaseAvatarProps = {
3
+ alt: string;
4
+ imageSrc?: string;
5
+ };
6
+ type SquareAvatarProps = BaseAvatarProps & {
7
+ id?: number;
8
+ size: TSquareSize;
9
+ type: 'square';
10
+ };
11
+ type ResponsiveAvatarProps = BaseAvatarProps & {
12
+ id?: number;
13
+ type: 'mobile' | 'desktop';
14
+ };
15
+ export type AvatarWithPlaceholderProps = SquareAvatarProps | ResponsiveAvatarProps;
16
+ export {};
@@ -1,3 +1,3 @@
1
1
  import { PlaceholderThumbnailProps } from './PlaceholderThumbnail.type';
2
- declare const PlaceholderThumbnail: ({ className, icon, size }: PlaceholderThumbnailProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PlaceholderThumbnail: ({ className, icon, size, style, type, }: PlaceholderThumbnailProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PlaceholderThumbnail;
@@ -4,4 +4,6 @@ export type PlaceholderThumbnailProps = {
4
4
  className?: string;
5
5
  icon: ReactElement<IconProps>;
6
6
  size: 'small' | 'large';
7
+ style?: 'rounded' | 'square';
8
+ type?: 'default' | 'post';
7
9
  };
@@ -7,13 +7,13 @@ import { TextButtonProps } from '../../../Atoms/Buttons/TextButton/TextButton.ty
7
7
  type TextButton = Omit<TextButtonProps, 'size'> & {
8
8
  buttonType: 'text';
9
9
  };
10
- type ButtonPrimary = Omit<ButtonPrimaryProps, 'size'> & {
10
+ type ButtonPrimary = ButtonPrimaryProps & {
11
11
  buttonType: 'primary';
12
12
  };
13
- type ButtonSecondary = Omit<ButtonSecondaryProps, 'size'> & {
13
+ type ButtonSecondary = ButtonSecondaryProps & {
14
14
  buttonType: 'secondary';
15
15
  };
16
- type ButtonTertiary = Omit<ButtonTertiaryProps, 'size'> & {
16
+ type ButtonTertiary = ButtonTertiaryProps & {
17
17
  buttonType: 'tertiary';
18
18
  };
19
19
  export type ButtonProps = TextButton | ButtonPrimary | ButtonSecondary | ButtonTertiary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.0.0-development.25",
3
+ "version": "3.0.0-development.27",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",