@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/dist/AdminContext.d.ts +4 -1
- package/dist/AdminContext.d.ts.map +1 -1
- package/dist/components/MainCard.d.ts.map +1 -1
- package/dist/components/ra-inputs/TextInput.d.ts +0 -1
- package/dist/components/ra-inputs/TextInput.d.ts.map +1 -1
- package/dist/components/ra-lists/List.d.ts +0 -1
- package/dist/components/ra-lists/List.d.ts.map +1 -1
- package/dist/i18n/createI18nProvider.d.ts +1 -1
- package/dist/i18n/createI18nProvider.d.ts.map +1 -1
- package/dist/i18n/useI18nProvider.d.ts +1 -1
- package/dist/i18n/useI18nProvider.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +55 -55
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +4792 -4794
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +54 -54
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/AdminContext.tsx +4 -1
- package/src/components/MainCard.tsx +4 -1
- package/src/components/ra-inputs/TextInput.tsx +0 -5
- package/src/components/ra-lists/List.tsx +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applica-software-guru/react-admin",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
62
|
-
"ra-i18n-polyglot": "4.12.
|
|
63
|
-
"ra-ui-materialui": "4.12.
|
|
64
|
-
"react-admin": "4.
|
|
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.
|
|
105
|
+
"react-admin": "^4.14.4",
|
|
106
106
|
"react-dom": "^18.2.0"
|
|
107
107
|
}
|
|
108
108
|
}
|
package/src/AdminContext.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
|
|
@@ -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 {...
|
|
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
|