@tracktor/design-system 2.6.3 → 2.7.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,10 @@
1
+ import { SxProps } from '@mui/material';
2
+ interface FileViewerPros {
3
+ src: string;
4
+ fileName?: string;
5
+ sx?: SxProps;
6
+ sxLightbox?: SxProps;
7
+ disableLightbox?: boolean;
8
+ }
9
+ declare const FileViewer: ({ src, fileName, sx, sxLightbox, disableLightbox }: FileViewerPros) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export default FileViewer;
@@ -0,0 +1,3 @@
1
+ import { default as FileViewer } from './FileViewer';
2
+ export default FileViewer;
3
+ export * from './FileViewer';
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  export interface TimeLineCollapseItems {
4
4
  title?: string | null;
5
5
  subtitle?: string | null;
6
- image?: string | string[] | null;
6
+ file?: string | string[] | null;
7
7
  onClick?(): void;
8
8
  tag?: {
9
9
  label?: string | null;
@@ -2,7 +2,6 @@ import { TimeLineProps } from './TimeLine';
2
2
  type TimeLineEventItemProps = NonNullable<TimeLineProps["items"]>[number] & {
3
3
  isLastElement: boolean;
4
4
  variant?: TimeLineProps["variant"];
5
- onClickImage?(imageSrc: string): void;
6
5
  };
7
- declare const TimeLineEventItem: ({ title, subtitle, isLastElement, active, onClick, variant, tag, collapseItems, collapseDefaultOpen, onClickImage, Action, Icon, Footer, Collapse, }: TimeLineEventItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ declare const TimeLineEventItem: ({ title, subtitle, isLastElement, active, onClick, variant, tag, collapseItems, collapseDefaultOpen, Action, Icon, Footer, Collapse, }: TimeLineEventItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
7
  export default TimeLineEventItem;
@@ -1,4 +1,4 @@
1
- import { Theme as MuiTheme } from '@mui/material';
1
+ import { Theme as MuiTheme } from '@mui/material/styles';
2
2
  import { CSSProperties } from 'react';
3
3
  declare module "@mui/material/Autocomplete" {
4
4
  interface AutocompletePropsSizeOverrides {
@@ -50,6 +50,8 @@ export { default as ListAvatars } from './components/DataDisplay/ListAvatar';
50
50
  export * from './components/DataDisplay/ListAvatar';
51
51
  export { default as AutocompleteFilter } from './components/Inputs/AutocompleteFilter';
52
52
  export * from './components/Inputs/AutocompleteFilter';
53
+ export { default as FileViewer } from './components/DataDisplay/FileViewer';
54
+ export * from './components/DataDisplay/FileViewer';
53
55
  export { default as ThemeProvider } from './context/Theme/ThemeProvider';
54
56
  export * from './context/Theme/ThemeProvider';
55
57
  export { default as PermissionProvider } from './context/Permission/PermissionProvider';
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": "2.6.3",
5
+ "version": "2.7.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",