@applica-software-guru/react-admin 1.0.68 → 1.0.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,10 +58,10 @@
58
58
  "dayjs": "^1.11.8",
59
59
  "framer-motion": "^10.12.17",
60
60
  "history": "^5.1.0",
61
- "ra-core": "4.12.1",
62
- "ra-i18n-polyglot": "4.12.1",
63
- "ra-ui-materialui": "4.12.1",
64
- "react-admin": "4.12.1",
61
+ "ra-core": "^4.14.4",
62
+ "ra-i18n-polyglot": "^4.12.1",
63
+ "ra-ui-materialui": "^4.12.1",
64
+ "react-admin": "^4.14.4",
65
65
  "react-device-detect": "^2.2.3",
66
66
  "react-hook-form": "^7.43.9",
67
67
  "react-router": "^6.1.0",
@@ -102,7 +102,7 @@
102
102
  },
103
103
  "peerDependencies": {
104
104
  "react": "^18.2.0",
105
- "react-admin": "4.12.1",
105
+ "react-admin": "^4.14.4",
106
106
  "react-dom": "^18.2.0"
107
107
  }
108
108
  }
@@ -3,7 +3,10 @@ import { CoreAdminContext, CoreAdminContextProps } from 'react-admin';
3
3
  import { ScrollTop } from './components';
4
4
  import { ThemeCustomization } from './themes';
5
5
 
6
- const AdminContext = ({ children, theme, ...props }: CoreAdminContextProps) => (
6
+ export type AdminContextProps = CoreAdminContextProps & {
7
+ theme?: any;
8
+ };
9
+ const AdminContext = ({ children, theme, ...props }: AdminContextProps) => (
7
10
  <CoreAdminContext {...props}>
8
11
  <ThemeCustomization themeOverrides={theme}>
9
12
  <ScrollTop>
@@ -1,3 +1,4 @@
1
+ // @ts-ignore
1
2
  import { Card, CardContent, CardHeader, Divider, Typography } from '@mui/material';
2
3
  import { SxProps, lighten, useTheme } from '@mui/material/styles';
3
4
 
@@ -101,10 +102,11 @@ const MainCard = forwardRef(
101
102
  ) => {
102
103
  const theme = useTheme() as any;
103
104
  boxShadow = theme.palette.mode === 'dark' ? boxShadow || true : boxShadow;
105
+
104
106
  return (
107
+ /** @ts-ignore */
105
108
  <Card
106
109
  elevation={elevation || 0}
107
- // @ts-ignore
108
110
  ref={ref}
109
111
  {...others}
110
112
  sx={{
@@ -154,6 +156,8 @@ const MainCard = forwardRef(
154
156
  {!content && children}
155
157
  </Card>
156
158
  );
159
+
160
+ // @ts-ignore-end
157
161
  }
158
162
  );
159
163
 
@@ -9,8 +9,6 @@ const ApplicaStyledToolbar = styled(RaToolbar, {
9
9
  ...theme.mixins.toolbar,
10
10
  backgroundColor: theme.palette.background.paper,
11
11
  justifyContent: 'flex-end',
12
- // Fix: needed to avoid disalignment with the top content.
13
- paddingRight: `20px !important`,
14
12
  '& .RaToolbar-defaultToolbar': {
15
13
  justifyContent: 'right',
16
14
  paddingBottom: theme.spacing(2),
@@ -9,11 +9,6 @@ const TextInput = (props: TextInputProps) => (
9
9
  <RaTextInput />
10
10
  </LabeledInput>
11
11
  );
12
-
13
- TextInput.defaultProps = {
14
- ...RaTextInput.defaultProps
15
- };
16
-
17
12
  TextInput.propTypes = {
18
13
  ...RaTextInput.propTypes,
19
14
  ...LabeledInput.propTypes
@@ -43,6 +43,11 @@ const ApplicaStyledList = styled(RaList, {
43
43
  }
44
44
  }
45
45
  },
46
+ '& .RaList-actions': {
47
+ '& form': {
48
+ padding: theme.spacing(2)
49
+ }
50
+ },
46
51
  '& .RaList-content': {
47
52
  // Resolve an issue related to the visualization of the bulk actions toolbar.
48
53
  // Padding and margin create a non empty space that allows the toolbar to be displayed when
@@ -67,13 +72,10 @@ const ApplicaStyledList = styled(RaList, {
67
72
  const List = (props: ListProps): JSX.Element => {
68
73
  return (
69
74
  <MainCard content={false}>
70
- <ApplicaStyledList {...RaList.defaultProps} {...props} />
75
+ <ApplicaStyledList {...props} />
71
76
  </MainCard>
72
77
  );
73
78
  };
74
- List.defaultProps = {
75
- ...RaList.defaultProps
76
- };
77
79
 
78
80
  List.propTypes = {
79
81
  ...RaList.propTypes