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

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': {
@@ -44,23 +44,6 @@ export default function (props) {
44
44
  border: '1px solid #eee',
45
45
  borderRadius: '0 0 8px 8px'
46
46
  },
47
- '.css-17hki28-MuiButtonBase-root-MuiButton-root': {
48
- padding: '7px',
49
- color: '#757575',
50
- '&:hover': {
51
- backgroundColor: '#f2f3f5',
52
- }
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
47
  height: 'calc(100vh - 240px)'
65
48
  }, localeText: {
66
49
  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': {
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.119",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",