@evoke-platform/ui-components 1.5.0-testing.13 → 1.5.0-testing.14
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.
@@ -46,7 +46,7 @@ export { ToggleButtonGroup } from './ToggleButtonGroup';
|
|
46
46
|
export { Tooltip } from './Tooltip';
|
47
47
|
export { Typography } from './Typography';
|
48
48
|
export { TabContext, TabList, TabPanel, TreeItem, TreeView } from '@mui/lab';
|
49
|
-
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
49
|
+
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, MenuList, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
50
50
|
export { useGridApiRef } from '@mui/x-data-grid';
|
51
51
|
export { TreeItem as RichTreeItem, RichTreeView } from '@mui/x-tree-view';
|
52
52
|
export type { GridSize } from '@mui/material';
|
@@ -47,6 +47,6 @@ export { Tooltip } from './Tooltip';
|
|
47
47
|
export { Typography } from './Typography';
|
48
48
|
//TODO: Review following components. They also need theme control:
|
49
49
|
export { TabContext, TabList, TabPanel, TreeItem, TreeView } from '@mui/lab';
|
50
|
-
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
50
|
+
export { CardActionArea, CardActions, CardContent, CardHeader, CardMedia, Input, InputAdornment, InputLabel, ListItemButton, ListItemText, MenuList, SvgIcon, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, } from '@mui/material';
|
51
51
|
export { useGridApiRef } from '@mui/x-data-grid';
|
52
52
|
export { TreeItem as RichTreeItem, RichTreeView } from '@mui/x-tree-view';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from 'react';
|
2
2
|
import { AutorenewRounded, FileWithExtension, LaunchRounded } from '../../../../../icons';
|
3
|
-
import { Button, Menu, MenuItem, Typography } from '../../../../core';
|
3
|
+
import { Button, Menu, MenuItem, MenuList, Typography } from '../../../../core';
|
4
4
|
import { Grid } from '../../../../layout';
|
5
5
|
import { getPrefixedUrl } from '../../utils';
|
6
6
|
export const DocumentViewerCell = (props) => {
|
@@ -66,24 +66,23 @@ export const DocumentViewerCell = (props) => {
|
|
66
66
|
fontWeight: 400,
|
67
67
|
fontSize: '14px',
|
68
68
|
} }, isLoading ? 'Preparing document...' : 'View Document')),
|
69
|
-
React.createElement(
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
} }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
|
69
|
+
React.createElement(Menu, { id: `document-menu-${instance.id}-${propertyId}`, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: () => {
|
70
|
+
setAnchorEl(null);
|
71
|
+
}, sx: {
|
72
|
+
'& .MuiPaper-root': {
|
73
|
+
borderRadius: '12px',
|
74
|
+
boxShadow: 'rgba(145, 158, 171, 0.2)',
|
75
|
+
},
|
76
|
+
}, variant: 'menu', PaperProps: {
|
77
|
+
tabIndex: 0,
|
78
|
+
sx: {
|
79
|
+
maxHeight: 200,
|
80
|
+
maxWidth: 300,
|
81
|
+
minWidth: 300,
|
82
|
+
},
|
83
|
+
component: 'nav',
|
84
|
+
} },
|
85
|
+
React.createElement(MenuList, { autoFocusItem: Boolean(anchorEl) }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
|
87
86
|
setAnchorEl(null);
|
88
87
|
await downloadDocument(document, instance);
|
89
88
|
}, "aria-label": document.name },
|