@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.
- package/dist/components/ActionsMenu.d.ts.map +1 -1
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +3 -3
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +209 -204
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +30 -30
- package/dist/react-admin.umd.js.map +1 -1
- package/dist/themes/overrides/Dialog.d.ts +4 -0
- package/dist/themes/overrides/Dialog.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionsMenu.tsx +0 -2
- package/src/components/ra-forms/CardForm.tsx +1 -1
- package/src/components/ra-forms/Create.tsx +2 -2
- package/src/components/ra-forms/Edit.tsx +2 -2
- package/src/components/ra-forms/LongForm/BaseForm.tsx +1 -1
- package/src/components/ra-forms/SimpleForm.tsx +6 -7
- package/src/components/ra-forms/TabbedForm.tsx +5 -3
- package/src/themes/index.jsx +1 -1
- package/src/themes/overrides/Dialog.jsx +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;EAqBC"}
|
package/package.json
CHANGED
|
@@ -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:
|
|
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:
|
|
87
|
-
paddingRight:
|
|
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:
|
|
20
|
-
paddingRight:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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}
|
package/src/themes/index.jsx
CHANGED
|
@@ -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:
|
|
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
|
}
|