@applica-software-guru/react-admin 1.4.196 → 1.4.198
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/Layout/Provider.d.ts.map +1 -1
- package/dist/components/MenuPopover/styles.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +6 -3
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +34 -34
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Provider.tsx +2 -1
- package/src/components/MenuPopover/styles.jsx +7 -3
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { useMenuConfig, useThemeConfig } from '../../hooks';
|
|
|
5
5
|
|
|
6
6
|
import { ChangePasswordForm } from '../ra-forms';
|
|
7
7
|
import _ from 'lodash';
|
|
8
|
+
import { ApplicaAuthProvider } from '@applica-software-guru/iam-client';
|
|
8
9
|
|
|
9
10
|
enum LayoutActionType {
|
|
10
11
|
UPDATE_MEDIA = 'updateMedia',
|
|
@@ -130,7 +131,7 @@ const DefaultState: ILayoutState = {
|
|
|
130
131
|
LayoutContext = createContext<ILayoutContext | undefined>(undefined);
|
|
131
132
|
|
|
132
133
|
function LayoutProvider(props: ILayoutProviderProps) {
|
|
133
|
-
const authProvider = useAuthProvider();
|
|
134
|
+
const authProvider = useAuthProvider() as ApplicaAuthProvider;
|
|
134
135
|
const identity = useGetIdentity() as UseGetIdentityResult,
|
|
135
136
|
theme = useTheme(),
|
|
136
137
|
downMd = useMediaQuery(theme.breakpoints.down('md')),
|
|
@@ -5,7 +5,8 @@ export const StyledArrow = styled('span')(({ arrow, theme }) => {
|
|
|
5
5
|
|
|
6
6
|
const POSITION = -(SIZE / 2);
|
|
7
7
|
|
|
8
|
-
const borderStyle =
|
|
8
|
+
const borderStyle =
|
|
9
|
+
theme.palette.mode === 'dark' ? `solid 1px ${theme.palette.grey[100]}` : `solid 1px ${alpha(theme.palette.grey[500], 0.12)}`;
|
|
9
10
|
|
|
10
11
|
const topStyle = {
|
|
11
12
|
borderRadius: '0 0 3px 0',
|
|
@@ -30,7 +31,7 @@ export const StyledArrow = styled('span')(({ arrow, theme }) => {
|
|
|
30
31
|
|
|
31
32
|
const rightStyle = {
|
|
32
33
|
borderRadius: '0 0 0 3px',
|
|
33
|
-
right: POSITION,
|
|
34
|
+
right: POSITION - 1,
|
|
34
35
|
borderBottom: borderStyle,
|
|
35
36
|
borderLeft: borderStyle
|
|
36
37
|
};
|
|
@@ -45,7 +46,10 @@ export const StyledArrow = styled('span')(({ arrow, theme }) => {
|
|
|
45
46
|
display: 'block',
|
|
46
47
|
position: 'absolute',
|
|
47
48
|
transform: 'rotate(-135deg)',
|
|
48
|
-
background: theme.palette.background.paper
|
|
49
|
+
background: theme.palette.background.paper,
|
|
50
|
+
backgroundImage: 'inherit',
|
|
51
|
+
borderLeft: borderStyle,
|
|
52
|
+
borderBottom: borderStyle
|
|
49
53
|
},
|
|
50
54
|
// Top
|
|
51
55
|
...(arrow === 'top-left' && { ...topStyle, left: 20 }),
|