@applica-software-guru/react-admin 1.0.67 → 1.0.69

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.67",
3
+ "version": "1.0.69",
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.0",
62
- "ra-i18n-polyglot": "4.12.0",
63
- "ra-ui-materialui": "4.12.0",
64
- "react-admin": "4.9.0",
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.9.0",
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,10 @@ 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 (
105
107
  <Card
106
108
  elevation={elevation || 0}
107
- // @ts-ignore
108
109
  ref={ref}
109
110
  {...others}
110
111
  sx={{
@@ -154,6 +155,8 @@ const MainCard = forwardRef(
154
155
  {!content && children}
155
156
  </Card>
156
157
  );
158
+
159
+ // @ts-ignore-end
157
160
  }
158
161
  );
159
162
 
@@ -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