@evoke-platform/ui-components 1.5.0-dev.7 → 1.5.0-dev.8

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.
@@ -66,46 +66,48 @@ export const DocumentViewerCell = (props) => {
66
66
  fontWeight: 400,
67
67
  fontSize: '14px',
68
68
  } }, isLoading ? 'Preparing document...' : 'View Document')),
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', slotProps: {
77
- paper: {
78
- style: {
79
- maxHeight: 200,
80
- maxWidth: 300,
81
- minWidth: 300,
69
+ React.createElement("section", { role: "region", "aria-label": "Document Menu" },
70
+ React.createElement(Menu, { id: `document-menu-${instance.id}-${propertyId}`, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: () => {
71
+ setAnchorEl(null);
72
+ }, sx: {
73
+ '& .MuiPaper-root': {
74
+ borderRadius: '12px',
75
+ boxShadow: 'rgba(145, 158, 171, 0.2)',
82
76
  },
83
- },
84
- } }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
85
- setAnchorEl(null);
86
- await downloadDocument(document, instance);
87
- }, "aria-label": document.name },
88
- React.createElement(Grid, { item: true, sx: {
89
- display: 'flex',
90
- justifyContent: 'center',
91
- padding: '7px',
92
- } },
93
- React.createElement(FileWithExtension, { fontFamily: "Arial", fileExtension: document.name?.split('.')?.pop() ?? '', sx: {
94
- height: '1rem',
95
- width: '1rem',
96
- } })),
97
- React.createElement(Grid, { item: true, xs: 12, sx: {
98
- width: '100%',
99
- overflow: 'hidden',
100
- textOverflow: 'ellipsis',
101
- } },
102
- React.createElement(Typography, { noWrap: true, sx: {
103
- fontSize: '14px',
104
- fontWeight: 700,
105
- color: '#212B36',
106
- lineHeight: '15px',
77
+ }, variant: 'menu', slotProps: {
78
+ paper: {
79
+ tabIndex: 0,
80
+ style: {
81
+ maxHeight: 200,
82
+ maxWidth: 300,
83
+ minWidth: 300,
84
+ },
85
+ },
86
+ } }, instance[propertyId].map((document) => (React.createElement(MenuItem, { key: document.id, onClick: async (e) => {
87
+ setAnchorEl(null);
88
+ await downloadDocument(document, instance);
89
+ }, "aria-label": document.name },
90
+ React.createElement(Grid, { item: true, sx: {
91
+ display: 'flex',
92
+ justifyContent: 'center',
93
+ padding: '7px',
94
+ } },
95
+ React.createElement(FileWithExtension, { fontFamily: "Arial", fileExtension: document.name?.split('.')?.pop() ?? '', sx: {
96
+ height: '1rem',
97
+ width: '1rem',
98
+ } })),
99
+ React.createElement(Grid, { item: true, xs: 12, sx: {
107
100
  width: '100%',
108
- } }, document.name)))))))) : (React.createElement(Typography, { sx: {
101
+ overflow: 'hidden',
102
+ textOverflow: 'ellipsis',
103
+ } },
104
+ React.createElement(Typography, { noWrap: true, sx: {
105
+ fontSize: '14px',
106
+ fontWeight: 700,
107
+ color: '#212B36',
108
+ lineHeight: '15px',
109
+ width: '100%',
110
+ } }, document.name))))))))) : (React.createElement(Typography, { sx: {
109
111
  fontStyle: 'italic',
110
112
  marginLeft: '12px',
111
113
  fontSize: '14px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.5.0-dev.7",
3
+ "version": "1.5.0-dev.8",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -18,9 +18,9 @@
18
18
  "test": "vitest",
19
19
  "test:ui": "vitest --ui",
20
20
  "copy-styles": "copyfiles -u 1 src/styles/*.css dist/published/",
21
- "build": "rm -rf ./dist && tsc && npm run copy-styles",
21
+ "build": "mkdirp -rf ./dist && tsc && npm run copy-styles",
22
22
  "build:cjs": "tsc --module CommonJS --outDir dist/cjs",
23
- "prepublish": "rm -rf ./dist && tsc && npm run copy-styles",
23
+ "prepublish": "mkdirp -rf ./dist && tsc && npm run copy-styles",
24
24
  "storybook": "start-storybook -p 6006",
25
25
  "build-storybook": "build-storybook",
26
26
  "lint": "npm run prettier:check && npm run eslint",