@evoke-platform/ui-components 1.0.0-dev.118 → 1.0.0-dev.120

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.
@@ -18,7 +18,7 @@ export default function (props) {
18
18
  const [anchorEl, setAnchorEl] = useState();
19
19
  const toolbar = useMemo(() => () => React.createElement(Toolbar, { onRefresh: onRefresh, setAnchorEl: setAnchorEl, loading: loading, theme: theme }), [onRefresh, loading]);
20
20
  return (React.createElement(UIThemeProvider, { args: { theme: theme } },
21
- React.createElement(MuiDataGrid, Object.assign({ loading: loading }, rest, { sx: {
21
+ React.createElement(MuiDataGrid, Object.assign({ onMenuOpen: (env) => setAnchorEl(env.target), loading: loading }, rest, { sx: {
22
22
  borderRadius: '8px',
23
23
  border: 'none',
24
24
  '& .MuiDataGrid-columnHeaders': {
@@ -51,16 +51,6 @@ export default function (props) {
51
51
  backgroundColor: '#f2f3f5',
52
52
  }
53
53
  },
54
- '.css-1pe4mpk-MuiButtonBase-root-MuiIconButton-root': {
55
- marginRight: '3px',
56
- marginLeft: '3px'
57
- },
58
- '.css-aqict8-MuiButtonBase-root-MuiButton-root': {
59
- color: '#378043',
60
- '&:hover': {
61
- backgroundColor: '#D3E3D5',
62
- },
63
- },
64
54
  height: 'calc(100vh - 240px)'
65
55
  }, localeText: {
66
56
  toolbarColumns: '',
@@ -5,7 +5,7 @@ import { Grid } from '../../layout';
5
5
  import { IconButton } from '../../core';
6
6
  import UIThemeProvider from '../../../theme';
7
7
  function Toolbar(props) {
8
- var _a, _b, _c;
8
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
9
9
  const { onRefresh, setAnchorEl, loading, theme } = props;
10
10
  const styles = {
11
11
  container: { display: 'flex', justifyContent: 'space-between', margin: '0 0 15px 0' },
@@ -13,6 +13,12 @@ function Toolbar(props) {
13
13
  minWidth: '36px',
14
14
  height: '36px',
15
15
  backgroundColor: 'rgba(145, 158, 171, 0.12)',
16
+ color: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.main) !== null && _c !== void 0 ? _c : 'primary',
17
+ '&:hover': {
18
+ backgroundColor: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _d === void 0 ? void 0 : _d.primary) === null || _e === void 0 ? void 0 : _e.light) !== null && _f !== void 0 ? _f : '#99C8DC',
19
+ },
20
+ marginLeft: '3px',
21
+ marginRight: '3px',
16
22
  },
17
23
  icon: {
18
24
  marginLeft: '8px',
@@ -20,7 +26,7 @@ function Toolbar(props) {
20
26
  quickFilter: {
21
27
  '& .MuiOutlinedInput-root': {
22
28
  '&.Mui-focused fieldset': {
23
- borderColor: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.main) !== null && _c !== void 0 ? _c : 'primary',
29
+ borderColor: (_j = (_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.primary) === null || _h === void 0 ? void 0 : _h.main) !== null && _j !== void 0 ? _j : 'primary',
24
30
  },
25
31
  },
26
32
  '& fieldset': {
@@ -44,7 +50,7 @@ function Toolbar(props) {
44
50
  React.createElement(Grid, { item: true },
45
51
  React.createElement(Grid, { container: true, spacing: 1, sx: styles.icon },
46
52
  React.createElement(Grid, { item: true, sx: { paddingRight: '15px' } },
47
- React.createElement(GridToolbarExport, { sx: { color: '#212B36' }, startIcon: React.createElement(FileDownloadRounded, null) })),
53
+ React.createElement(GridToolbarExport, { sx: { color: '#212B36' }, printOptions: { disableToolbarButton: true }, startIcon: React.createElement(FileDownloadRounded, null) })),
48
54
  React.createElement(Grid, { item: true },
49
55
  React.createElement(GridToolbarFilterButton, { componentsProps: {
50
56
  button: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.118",
3
+ "version": "1.0.0-dev.120",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",