@tracktor/design-system 3.11.3 → 3.12.0

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.
@@ -0,0 +1,7 @@
1
+ interface SheetIconProps {
2
+ color?: string;
3
+ height?: string | number;
4
+ width?: string | number;
5
+ }
6
+ declare const SheetIcon: ({ height, width, color }: SheetIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export default SheetIcon;
@@ -1,5 +1,5 @@
1
- import { ChipProps, ListItemButtonProps, ListItemProps, SxProps } from '@mui/material';
2
- import { ReactNode } from 'react';
1
+ import { ChipProps, ListItemButtonProps, SxProps } from '@mui/material';
2
+ import { MouseEvent, ReactNode } from 'react';
3
3
  interface ListAvatarProps {
4
4
  /**
5
5
  * Empty message
@@ -26,7 +26,7 @@ interface ListAvatarProps {
26
26
  */
27
27
  numberLoadingItems?: number;
28
28
  /**
29
- * Disable lightbox, only if image list item is provided
29
+ * Disable lightbox only if the image list item is provided
30
30
  */
31
31
  disableLightbox?: boolean;
32
32
  /**
@@ -42,7 +42,16 @@ interface ListAvatarProps {
42
42
  chipLabel?: ReactNode;
43
43
  chipColor?: ChipProps["color"] | string;
44
44
  secondaryAction?: ReactNode;
45
- onClick?: ListItemProps["onClick"];
45
+ onClick?: (event: MouseEvent<HTMLLIElement>, item: {
46
+ id?: NonNullable<ListAvatarProps["items"]>[number]["id"];
47
+ image?: NonNullable<ListAvatarProps["items"]>[number]["image"];
48
+ thumbnail?: NonNullable<ListAvatarProps["items"]>[number]["thumbnail"];
49
+ subtitle?: NonNullable<ListAvatarProps["items"]>[number]["subtitle"];
50
+ title?: NonNullable<ListAvatarProps["items"]>[number]["title"];
51
+ icon?: NonNullable<ListAvatarProps["items"]>[number]["icon"];
52
+ isFile: boolean;
53
+ isPdf: boolean;
54
+ }) => void;
46
55
  Avatar?: ReactNode;
47
56
  }[];
48
57
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracktor/design-system",
3
3
  "description": "Tracktor Design System",
4
4
  "sideEffects": false,
5
- "version": "3.11.3",
5
+ "version": "3.12.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",