@campxdev/shared 1.11.7-0.alpha.49 → 1.11.7-0.alpha.51
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 +1 -1
- package/src/components/Layout/Header/AppHeader.tsx +24 -22
- package/src/components/Layout/Header/AppsMenu.tsx +1 -1
- package/src/components/Layout/Header/styles.tsx +6 -5
- package/src/constants/formValidations.ts +8 -0
- package/src/layouts/Components/styles.tsx +1 -1
- package/styled-components.tsx +3 -3
- package/yarn-error.log +0 -15782
package/package.json
CHANGED
|
@@ -66,26 +66,28 @@ export default function AppHeader({
|
|
|
66
66
|
imageSx = {},
|
|
67
67
|
}: AppHeaderProps) {
|
|
68
68
|
return (
|
|
69
|
-
|
|
70
|
-
<
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
customHeaderActions
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
69
|
+
<>
|
|
70
|
+
<StyledHeader sx={headerSx}>
|
|
71
|
+
<Box sx={{ display: 'flex', alignItems: 'center', gap: '10px' }}>
|
|
72
|
+
{showMenu && <AppsMenu />}
|
|
73
|
+
<AppLogo clientLogo={clientLogo} imageSx={imageSx} />
|
|
74
|
+
</Box>
|
|
75
|
+
<Box className="actions">
|
|
76
|
+
{customHeaderActions ? (
|
|
77
|
+
customHeaderActions
|
|
78
|
+
) : (
|
|
79
|
+
<HeaderActions
|
|
80
|
+
cogWheelMenu={cogWheelMenu}
|
|
81
|
+
fullName={fullName}
|
|
82
|
+
userBoxActions={userBoxActions}
|
|
83
|
+
profileUrl={profileUrl}
|
|
84
|
+
actions={actions}
|
|
85
|
+
profileSx={profileSx}
|
|
86
|
+
/>
|
|
87
|
+
)}
|
|
88
|
+
</Box>
|
|
89
|
+
</StyledHeader>
|
|
90
|
+
</>
|
|
89
91
|
)
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -103,14 +105,14 @@ const AppLogo = ({ clientLogo, imageSx }) => {
|
|
|
103
105
|
</StyledImageWrapper>
|
|
104
106
|
<Box
|
|
105
107
|
sx={{
|
|
106
|
-
height: '
|
|
108
|
+
height: '36px',
|
|
107
109
|
width: '2px',
|
|
108
110
|
background: 'gray',
|
|
109
111
|
}}
|
|
110
112
|
></Box>
|
|
111
113
|
<StyledImageWrapper>
|
|
112
114
|
{isDevelopment ? (
|
|
113
|
-
<Typography variant="h1">Developer</Typography>
|
|
115
|
+
<Typography variant="h1">Developer </Typography>
|
|
114
116
|
) : (
|
|
115
117
|
<img
|
|
116
118
|
src={clientLogo}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
alpha,
|
|
3
2
|
AppBar,
|
|
3
|
+
Avatar,
|
|
4
4
|
Box,
|
|
5
5
|
IconButton,
|
|
6
|
+
Link,
|
|
6
7
|
ListItemText,
|
|
7
|
-
styled,
|
|
8
8
|
Typography,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
alpha,
|
|
10
|
+
styled,
|
|
11
11
|
} from '@mui/material'
|
|
12
12
|
import { Link as RouterLink } from 'react-router-dom'
|
|
13
13
|
|
|
14
14
|
export const StyledImageWrapper = styled('div')`
|
|
15
15
|
width: auto;
|
|
16
|
-
height:
|
|
16
|
+
height: 34px;
|
|
17
17
|
& img {
|
|
18
18
|
width: 100%;
|
|
19
19
|
height: 100%;
|
|
@@ -36,6 +36,7 @@ export const StyledHeader = styled(Box)(({ theme }) => ({
|
|
|
36
36
|
backgroundColor: 'white',
|
|
37
37
|
display: 'flex',
|
|
38
38
|
alignItems: 'center',
|
|
39
|
+
height: '96px',
|
|
39
40
|
justifyContent: 'space-between',
|
|
40
41
|
'& .actions': {
|
|
41
42
|
marginRight: '20px',
|
package/styled-components.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
1
|
import { styled as muiStyled } from '@mui/material'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const headerHeight = '
|
|
4
|
+
export const headerHeight = '96px'
|
|
5
5
|
export const sideNavWidth = '220px'
|
|
6
6
|
|
|
7
7
|
export const StyledLayoutContainer = styled.div`
|
|
@@ -12,11 +12,11 @@ export const StyledLayoutContainer = styled.div`
|
|
|
12
12
|
export const StyledHeaderContainer = styled.header`
|
|
13
13
|
z-index: 300;
|
|
14
14
|
width: 100%;
|
|
15
|
-
position: fixed;
|
|
16
15
|
top: 0;
|
|
17
16
|
left: 0;
|
|
18
17
|
min-height: ${headerHeight};
|
|
19
18
|
background: #fff;
|
|
19
|
+
|
|
20
20
|
& > div {
|
|
21
21
|
height: ${headerHeight};
|
|
22
22
|
}
|