@tracktor/design-system 4.21.7 → 4.22.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,4 +1,5 @@
|
|
|
1
|
-
import { ChipProps, ListItemButtonProps, SxProps } from '@mui/material';
|
|
1
|
+
import { ChipProps, ListItemButtonProps, SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { ListProps } from '@mui/material/List/List';
|
|
2
3
|
import { MouseEvent, ReactNode } from 'react';
|
|
3
4
|
interface ListAvatarItemBase {
|
|
4
5
|
Avatar?: ReactNode;
|
|
@@ -13,6 +14,7 @@ interface ListAvatarItemBase {
|
|
|
13
14
|
chipColor?: ChipProps["color"] | string;
|
|
14
15
|
secondaryAction?: ReactNode;
|
|
15
16
|
divider?: boolean;
|
|
17
|
+
sx?: SxProps<Theme>;
|
|
16
18
|
}
|
|
17
19
|
export interface ListAvatarClickPayload {
|
|
18
20
|
id?: string | number | null;
|
|
@@ -34,15 +36,11 @@ export interface ListAvatarAction {
|
|
|
34
36
|
export interface ListAvatarItem extends ListAvatarItemBase {
|
|
35
37
|
onClick?: (event: MouseEvent<HTMLLIElement>, item: ListAvatarClickPayload) => void;
|
|
36
38
|
}
|
|
37
|
-
export interface ListAvatarProps {
|
|
39
|
+
export interface ListAvatarProps extends ListProps {
|
|
38
40
|
/**
|
|
39
41
|
* Empty message
|
|
40
42
|
*/
|
|
41
43
|
Empty?: ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* Custom style
|
|
44
|
-
*/
|
|
45
|
-
sx?: SxProps;
|
|
46
44
|
/**
|
|
47
45
|
* Full width
|
|
48
46
|
*/
|
|
@@ -71,6 +69,10 @@ export interface ListAvatarProps {
|
|
|
71
69
|
* Action
|
|
72
70
|
*/
|
|
73
71
|
action?: ListAvatarAction;
|
|
72
|
+
/**
|
|
73
|
+
* Density of the list
|
|
74
|
+
*/
|
|
75
|
+
density?: "standard" | "comfortable";
|
|
74
76
|
}
|
|
75
|
-
export declare const ListAvatar: ({ Empty, action, items, fullWidth, sx, alwaysDisplaySecondaryAction, isLoading, disableLightbox, numberLoadingItems, }: ListAvatarProps) => string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
77
|
+
export declare const ListAvatar: ({ Empty, action, items, fullWidth, sx, alwaysDisplaySecondaryAction, isLoading, disableLightbox, numberLoadingItems, density, ...props }: ListAvatarProps) => string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
76
78
|
export default ListAvatar;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ButtonTypeMap, ButtonProps as MuiButtonProps } from '@mui/material';
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
|
-
import * as React from "react";
|
|
4
3
|
export type ButtonProps<RootComponent extends ElementType = ButtonTypeMap["defaultComponent"], AdditionalProps = {}> = MuiButtonProps<RootComponent, AdditionalProps & {
|
|
5
4
|
component?: RootComponent;
|
|
6
5
|
isLoading?: boolean;
|
|
7
6
|
loadingIndicator?: ReactNode;
|
|
8
7
|
loadingPosition?: "start" | "end";
|
|
9
8
|
}>;
|
|
10
|
-
declare const _default:
|
|
9
|
+
declare const _default: import('react').ForwardRefExoticComponent<Omit<ButtonProps<ElementType, {}>, "ref"> & import('react').RefAttributes<any>>;
|
|
11
10
|
export default _default;
|