@applica-software-guru/react-admin 1.4.204 → 1.4.205

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.
@@ -1,10 +1,15 @@
1
- export default function Dialog(): {
1
+ export default function Dialog(theme: any): {
2
2
  MuiDialog: {
3
3
  styleOverrides: {
4
4
  root: {
5
5
  '& .MuiBackdrop-root': {
6
6
  backgroundColor: string;
7
7
  };
8
+ '& .MuiCardContent-root': {
9
+ [x: number]: {
10
+ paddingBottom: string;
11
+ };
12
+ };
8
13
  };
9
14
  };
10
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;EAYC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/themes/overrides/Dialog.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;EAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.4.204",
3
+ "version": "1.4.205",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,6 @@ const StyledMenuPopover = styled(MenuPopover, {
17
17
  '& .MuiMenuItem-root': {
18
18
  padding: 0,
19
19
  margin: 0,
20
- // backgroundColor: theme.palette.background.paper,
21
20
  '& .MuiButton-startIcon': {
22
21
  marginRight: theme.spacing(0)
23
22
  }
@@ -74,7 +74,7 @@ const StyledForm = styled(Form, { slot: 'root' })(({ theme, spacing }: StyledFor
74
74
  paddingTop: '20px !important',
75
75
  paddingRight: '0 !important',
76
76
  paddingLeft: '0 !important',
77
- paddingBottom: 0,
77
+ paddingBottom: '0 !important',
78
78
  }
79
79
  }));
80
80
 
@@ -11,13 +11,10 @@ import ActionsMenu from '../ActionsMenu';
11
11
  import MainCard from '../MainCard';
12
12
  import Toolbar from './Toolbar';
13
13
 
14
- const StyledSimpleForm = styled(RaSimpleForm, { slot: 'Root' })(({ theme, modal }: { theme: any; modal: boolean }) => ({
15
- '& .MuiGrid-root.MuiGrid-container': {
16
- paddingBottom: theme.spacing(modal ? 0 : 2.5)
17
- } as any,
18
- // [theme.breakpoints.down('sm')]: {
19
- paddingBottom: '0 !important',
20
- // }
14
+ const StyledSimpleForm = styled(RaSimpleForm, { slot: 'Root' })(({ theme }: { theme: any }) => ({
15
+ [theme.breakpoints.down('sm')]: {
16
+ paddingBottom: '20px',
17
+ }
21
18
  }));
22
19
 
23
20
  export type SimpleFormProps = RaSimpleFormProps & {
@@ -61,7 +58,8 @@ export function SimpleForm({
61
58
  '& .MuiToolbar-root': {
62
59
  paddingLeft: 2.5,
63
60
  paddingRight: 2.5,
64
- paddingBottom: 2.5
61
+ paddingBottom: 2.5,
62
+ paddingTop: 0
65
63
  }
66
64
  }}
67
65
  border={!modal}
@@ -25,9 +25,9 @@ export type TabbedFormProps = RaTabbedFormProps & {
25
25
  noPadding?: boolean;
26
26
  };
27
27
 
28
- const StyledTabbedForm = styled(RaTabbedForm, { slot: 'Root' })(({ theme, modal }: { theme: any; modal: boolean }) => ({
28
+ const StyledTabbedForm = styled(RaTabbedForm, { slot: 'Root' })(({ theme }: { theme: any }) => ({
29
29
  '& .MuiGrid-root.MuiGrid-container': {
30
- paddingBottom: theme.spacing(modal ? 0 : 1)
30
+ paddingBottom: 0
31
31
  } as any,
32
32
  [theme.breakpoints.down('sm')]: {
33
33
  paddingBottom: 0,
@@ -3,13 +3,18 @@ import { alpha } from '@mui/material/styles';
3
3
 
4
4
  // ==============================|| OVERRIDES - DIALOG ||============================== //
5
5
 
6
- export default function Dialog() {
6
+ export default function Dialog(theme) {
7
7
  return {
8
8
  MuiDialog: {
9
9
  styleOverrides: {
10
10
  root: {
11
11
  '& .MuiBackdrop-root': {
12
12
  backgroundColor: alpha('#000', 0.7)
13
+ },
14
+ '& .MuiCardContent-root': {
15
+ [theme.breakpoints.down('sm')]: {
16
+ paddingBottom: '20px'
17
+ }
13
18
  }
14
19
  }
15
20
  }
@@ -64,7 +64,7 @@ export default function ComponentsOverrides(theme) {
64
64
  CardContent(),
65
65
  Checkbox(theme),
66
66
  Chip(theme),
67
- Dialog(),
67
+ Dialog(theme),
68
68
  DialogContentText(theme),
69
69
  DialogTitle(),
70
70
  Fab(theme),