@applica-software-guru/react-admin 1.4.209 → 1.4.211

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.
@@ -10,6 +10,10 @@ export default function Dialog(theme: any): {
10
10
  paddingBottom: string;
11
11
  };
12
12
  };
13
+ '& .MuiPaper-root:has(.tabbed-form)': {
14
+ overflowY: string;
15
+ width: string;
16
+ };
13
17
  };
14
18
  };
15
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;EAiBC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;EAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.4.209",
3
+ "version": "1.4.211",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,8 +64,6 @@ export function ActionsMenu({ horizontal = false, children }: ActionsMenuProps):
64
64
  }
65
65
 
66
66
  const handleOnClick = useCallback((e: any) => {
67
- e.stopPropagation();
68
- e.preventDefault();
69
67
  setOpen(null);
70
68
 
71
69
  if (typeof e.currentTarget?.onClick === 'function') {
@@ -71,7 +71,7 @@ const StyledForm = styled(Form, { slot: 'root' })(({ theme, spacing }: StyledFor
71
71
  minHeight: 'unset'
72
72
  },
73
73
  '& .RaToolbar-mobileToolbar': {
74
- paddingTop: '20px !important',
74
+ paddingTop: `${theme.spacing(2.5)} !important`,
75
75
  paddingRight: '0 !important',
76
76
  paddingLeft: '0 !important',
77
77
  paddingBottom: '0 !important',
@@ -83,8 +83,8 @@ export const Create = styled(CreateWithDefaults, { slot: 'root' })(({ theme }) =
83
83
  },
84
84
  '& .RaToolbar-mobileToolbar': {
85
85
  position: 'initial !important',
86
- paddingLeft: '20px !important',
87
- paddingRight: '20px !important',
86
+ paddingLeft: `${theme.spacing(2.5)} !important`,
87
+ paddingRight: `${theme.spacing(2.5)} !important`,
88
88
  paddingTop: '0 !important',
89
89
  },
90
90
  // Ci ho messo 4 ore per scrivere questa riga di codice e risolvere un problema con react-sticky-box ed i Long Form.
@@ -16,8 +16,8 @@ const StyledEdit = styled(RaEdit, { slot: 'root' })(({ theme }) => ({
16
16
 
17
17
  '& .RaToolbar-mobileToolbar': {
18
18
  position: 'initial !important',
19
- paddingLeft: '20px !important',
20
- paddingRight: '20px !important',
19
+ paddingLeft: `${theme.spacing(2.5)} !important`,
20
+ paddingRight: `${theme.spacing(2.5)} !important`,
21
21
  paddingTop: '0 !important'
22
22
  },
23
23
  '& .RaEdit-main': {
@@ -31,7 +31,7 @@ const StyledGrid = styled(Grid, {
31
31
  },
32
32
  '& .RaToolbar-mobileToolbar': {
33
33
  position: 'initial !important',
34
- paddingTop: '20px !important',
34
+ paddingTop: `${theme.spacing(2.5)} !important`,
35
35
  paddingLeft: '0 !important',
36
36
  paddingRight: '0 !important',
37
37
  paddingBottom: '0 !important',
@@ -13,7 +13,7 @@ import Toolbar from './Toolbar';
13
13
 
14
14
  const StyledSimpleForm = styled(RaSimpleForm, { slot: 'Root' })(({ theme }: { theme: any }) => ({
15
15
  [theme.breakpoints.down('sm')]: {
16
- paddingBottom: '20px'
16
+ paddingBottom: `${theme.spacing(2.5)}`
17
17
  }
18
18
  }));
19
19
 
@@ -58,12 +58,11 @@ export function SimpleForm({
58
58
  ...sx,
59
59
  '& .MuiToolbar-root': {
60
60
  position: 'initial',
61
- paddingLeft: 2.5,
62
- paddingRight: 2.5,
63
- paddingBottom: 2.5,
64
-
65
- paddingTop: modal ? 2.5 : 0,
66
- borderTop: modal ? `1px solid ${theme.palette.divider}` : undefined
61
+ paddingLeft: theme.spacing(2.5),
62
+ paddingRight: theme.spacing(2.5),
63
+ paddingBottom: theme.spacing(2.5),
64
+ paddingTop: modal ? theme.spacing(2.5) : 0,
65
+ borderTop: modal ? `1px solid ${theme.palette.divider}` : undefined,
67
66
  }
68
67
  }}
69
68
  border={!modal}
@@ -1,4 +1,4 @@
1
- import { Box } from '@mui/material';
1
+ import { Box, useTheme } from '@mui/material';
2
2
  import { styled } from '@mui/system';
3
3
  import {
4
4
  TabbedForm as RaTabbedForm,
@@ -62,6 +62,7 @@ export function TabbedForm(props: TabbedFormProps): JSX.Element {
62
62
  ...rest
63
63
  } = props;
64
64
  const title = useResourceTitle(_title);
65
+ const theme = useTheme();
65
66
 
66
67
  return (
67
68
  <MainCard
@@ -82,10 +83,11 @@ export function TabbedForm(props: TabbedFormProps): JSX.Element {
82
83
  },
83
84
  '& .MuiToolbar-root.RaToolbar-desktopToolbar': {
84
85
  position: 'initial',
85
- paddingTop: 0
86
+ paddingTop: modal ? theme.spacing(2.5) : 0
86
87
  },
87
88
  '& .MuiToolbar-root': {
88
- padding: 2.5
89
+ padding: theme.spacing(2.5),
90
+ borderTop: modal ? `1px solid ${theme.palette.divider}` : undefined
89
91
  }
90
92
  }}
91
93
  border={!modal}
@@ -72,7 +72,7 @@ const ThemeCustomization = ({ themeOverrides, children }) => {
72
72
  return (
73
73
  <StyledEngineProvider injectFirst>
74
74
  <ThemeProvider theme={themes}>
75
- <CssBaseline />
75
+ <CssBaseline enableColorScheme />
76
76
  {children}
77
77
  </ThemeProvider>
78
78
  </StyledEngineProvider>
@@ -13,8 +13,12 @@ export default function Dialog(theme) {
13
13
  },
14
14
  '& .MuiCardContent-root': {
15
15
  [theme.breakpoints.down('sm')]: {
16
- paddingBottom: '20px'
16
+ paddingBottom: `${theme.spacing(2.5)}`
17
17
  }
18
+ },
19
+ '& .MuiPaper-root:has(.tabbed-form)': {
20
+ overflowY: 'unset',
21
+ width: '100%'
18
22
  }
19
23
  }
20
24
  }