@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.7-0.alpha.49",
3
+ "version": "1.11.7-0.alpha.51",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -66,26 +66,28 @@ export default function AppHeader({
66
66
  imageSx = {},
67
67
  }: AppHeaderProps) {
68
68
  return (
69
- <StyledHeader sx={headerSx}>
70
- <Box sx={{ display: 'flex', alignItems: 'center', gap: '10px' }}>
71
- {showMenu && <AppsMenu />}
72
- <AppLogo clientLogo={clientLogo} imageSx={imageSx} />
73
- </Box>
74
- <Box className="actions">
75
- {customHeaderActions ? (
76
- customHeaderActions
77
- ) : (
78
- <HeaderActions
79
- cogWheelMenu={cogWheelMenu}
80
- fullName={fullName}
81
- userBoxActions={userBoxActions}
82
- profileUrl={profileUrl}
83
- actions={actions}
84
- profileSx={profileSx}
85
- />
86
- )}
87
- </Box>
88
- </StyledHeader>
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: '26px',
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}
@@ -57,7 +57,7 @@ const AppsMenu = () => {
57
57
  sx={{
58
58
  '& .MuiPaper-root': {
59
59
  left: '0 !important',
60
- top: '64px !important',
60
+ top: '96px !important',
61
61
  '&>:last-child': {
62
62
  paddingBottom: '0px',
63
63
  },
@@ -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
- Link,
10
- Avatar,
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: 24px;
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',
@@ -4,3 +4,11 @@ export const isNumber = (value: string) => {
4
4
 
5
5
  return isNum
6
6
  }
7
+
8
+ export const isInteger = (value: string) => {
9
+ const regEx = /^[-+]?\d*\.?\d+$/
10
+
11
+ let isInt = regEx.test(value)
12
+
13
+ return isInt
14
+ }
@@ -1,7 +1,7 @@
1
1
  import { styled as muiStyled } from '@mui/material'
2
2
  import styled from 'styled-components'
3
3
 
4
- export const headerHeight = '64px'
4
+ export const headerHeight = '96px'
5
5
  export const sideNavWidth = '220px'
6
6
 
7
7
  export const StyledLayoutContainer = styled.div`
@@ -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 = '64px'
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
  }