@tracktor/design-system 3.3.2 → 3.3.4

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,8 +1,10 @@
1
1
  import { AvatarProps as MuiAvatarProps } from '@mui/material';
2
- export interface AvatarProps extends MuiAvatarProps {
2
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
3
+ import { ElementType } from 'react';
4
+ export type AvatarProps<C extends ElementType = "div"> = {
3
5
  secondarySrc?: string;
4
6
  secondaryAvatarProps?: Omit<MuiAvatarProps, "src">;
5
7
  size?: "small" | "medium" | "large";
6
- }
7
- declare const Avatar: ({ secondarySrc, secondaryAvatarProps, size, ...props }: AvatarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ } & Omit<MuiAvatarProps<C>, keyof OverridableComponent<any>>;
9
+ declare const Avatar: import('react').ForwardRefExoticComponent<Omit<AvatarProps<ElementType>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
10
  export default Avatar;
@@ -1,5 +1,5 @@
1
1
  export interface DialogCloseProps {
2
- onClick: () => void;
2
+ onClick?: () => void;
3
3
  }
4
4
  declare const DialogCloseIcon: ({ onClick }: DialogCloseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  export default DialogCloseIcon;
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.3.2",
5
+ "version": "3.3.4",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",