@goodhood-web/ui 1.12.0-development.5 → 1.12.0-development.7

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
1
  import { NotificationListItemProps } from './NotificationListItem.types';
2
2
 
3
- declare const NotificationListItem: ({ defaultIcon, imgSrc, linkText, onNotificationClick, timeAgo, title, unread, }: NotificationListItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const NotificationListItem: ({ linkText, onNotificationClick, primaryImg, secondaryImg, timeAgo, title, unread, }: NotificationListItemProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default NotificationListItem;
@@ -1,11 +1,25 @@
1
1
  import { default as React } from 'react';
2
2
 
3
+ type Shape = 'circular' | 'square';
4
+ type ImageProps = {
5
+ icon: React.ReactNode;
6
+ imageURL: string | null | undefined;
7
+ shape: Shape;
8
+ };
3
9
  export interface NotificationListItemProps {
4
10
  defaultIcon?: React.ReactNode;
5
11
  imgSrc?: string;
6
12
  linkText: string;
7
13
  onNotificationClick?: () => void;
14
+ primaryImg: ImageProps;
15
+ secondaryImg: ImageProps;
8
16
  timeAgo: string;
9
17
  title: string;
10
18
  unread?: boolean;
11
19
  }
20
+ export type ThumbnailProps = {
21
+ className: string;
22
+ imgProps: ImageProps;
23
+ size: '32' | '56';
24
+ };
25
+ export {};
package/package.json CHANGED
@@ -1,21 +1,17 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.12.0-development.5",
3
+ "version": "1.12.0-development.7",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
+ "repository":"https://github.com/good-hood-gmbh/goodhood-web",
6
7
  "exports": {
7
8
  ".": {
8
9
  "import": "./index.mjs",
9
10
  "require": "./index.js"
10
11
  }
11
12
  },
12
- "publishConfig": {
13
- "registry": "https://registry.npmjs.org/",
14
- "access": "public"
15
- },
16
- "private": false,
17
13
  "peerDependencies": {
18
- "@mui/base": "~5.0.0-beta.47",
19
- "@goodhood/design-tokens": "1.0.0-develop.3"
14
+ "@mui/base": "~5.0.0-beta.56",
15
+ "@goodhood/design-tokens": "1.0.0-develop.5"
20
16
  }
21
17
  }