@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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChipProps, ListItemButtonProps,
|
|
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
|
|
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?:
|
|
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
|
/**
|