@campxdev/shared 0.2.14 → 0.3.0
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/exports.ts +6 -7
- package/package.json +2 -1
- package/src/assets/images/avatar.png +0 -0
- package/src/assets/images/index.ts +1 -19
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +15 -0
- package/src/components/ErrorBoundary/ErrorFallback.tsx +39 -0
- package/src/components/ErrorBoundary/GlobalNetworkLoadingIndicator.tsx +13 -0
- package/src/components/ErrorBoundary/index.tsx +1 -0
- package/src/components/Layout/Header/AppHeader.tsx +8 -8
- package/src/components/Layout/Header/AppsMenu.tsx +1 -1
- package/src/components/Layout/Header/CogWheelMenu.tsx +7 -0
- package/src/components/Layout/Header/UserBox.tsx +14 -47
- package/src/components/Layout/Header/styles.tsx +2 -3
- package/src/components/LinearProgress.tsx +19 -0
- package/src/components/MenuButton.tsx +88 -90
- package/src/components/index.ts +45 -43
- package/src/config/axios.ts +13 -80
- package/src/constants/index.ts +1 -0
- package/src/contexts/QueryClientProvider.tsx +15 -15
- package/src/permissions/PageWithPermission.tsx +0 -39
- package/src/permissions/PermissionDeniedPage.tsx +14 -21
- package/src/shared-state/index.ts +1 -2
- package/src/theme/MuiThemeProvider.tsx +10 -8
- package/src/theme/theme.d.ts +72 -72
- package/src/utils/withRouteWrapper.tsx +21 -20
- package/src/utils/withSuspense.tsx +3 -3
- package/src/assets/images/File bundle-bro.svg +0 -122
- package/src/assets/images/Filebundle.png +0 -0
- package/src/assets/images/NoPart.png +0 -0
- package/src/assets/images/ResultProcess.png +0 -0
- package/src/assets/images/ResultProcess.svg +0 -99
- package/src/assets/images/attachment.svg +0 -1
- package/src/assets/images/pdf.png +0 -0
- package/src/assets/images/taskAttachment.png +0 -0
- package/src/assets/images/welcomeimage.jpg +0 -0
- package/src/components/ErrorBoundary.js +0 -45
- package/src/components/LinearProgress/LinearProgress.tsx +0 -28
- package/src/components/LinearProgress/index.tsx +0 -1
- package/src/pages/LoginPage/LoginPage.tsx +0 -168
- package/src/pages/LoginPage/index.ts +0 -1
- package/src/pages/LoginPage/styles.tsx +0 -121
- package/src/pages/index.ts +0 -4
- package/src/shared-state/GlobalStore.ts +0 -10
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import FormTextField from '../../components/HookForm/TextField'
|
|
2
|
-
import { Box, Button, Link, styled } from '@mui/material'
|
|
3
|
-
|
|
4
|
-
export const StyledMain = styled(Box)(({ theme }) => ({
|
|
5
|
-
minHeight: '100vh',
|
|
6
|
-
display: 'grid',
|
|
7
|
-
gridTemplateColumns: '1fr 1fr',
|
|
8
|
-
'@media(max-width: 1024px)': {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
width: '100%',
|
|
11
|
-
},
|
|
12
|
-
}))
|
|
13
|
-
|
|
14
|
-
export const StyledBanner = styled(Box)(({ theme }) => ({
|
|
15
|
-
position: 'relative',
|
|
16
|
-
backgroundColor: '#eef8fe',
|
|
17
|
-
'@media(max-width: 1024px)': {
|
|
18
|
-
display: 'none',
|
|
19
|
-
},
|
|
20
|
-
}))
|
|
21
|
-
export const StyledFormSection = styled(Box)(({ theme }) => ({
|
|
22
|
-
width: '100%',
|
|
23
|
-
display: 'flex',
|
|
24
|
-
flexDirection: 'column',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
}))
|
|
28
|
-
|
|
29
|
-
export const StyledBannerImage = styled(Box)(() => ({
|
|
30
|
-
height: 'calc(100vh - 90px - 56px)',
|
|
31
|
-
display: 'flex',
|
|
32
|
-
justifyContent: 'center',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
'& img': {
|
|
35
|
-
width: '100%',
|
|
36
|
-
height: 'auto',
|
|
37
|
-
objectfit: 'contain',
|
|
38
|
-
},
|
|
39
|
-
}))
|
|
40
|
-
export const StyledBannerFooter = styled(Box)(() => ({
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
bottom: 0,
|
|
43
|
-
left: 0,
|
|
44
|
-
width: '100%',
|
|
45
|
-
'& .logo': {
|
|
46
|
-
backgroundColor: '#e5f4fd',
|
|
47
|
-
height: '90px',
|
|
48
|
-
display: 'flex',
|
|
49
|
-
justifyContent: 'center',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
flexDirection: 'column',
|
|
52
|
-
gap: '6px',
|
|
53
|
-
'& img': {
|
|
54
|
-
display: 'block',
|
|
55
|
-
width: '100px',
|
|
56
|
-
height: 'auto',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
'& .copyright': {
|
|
60
|
-
height: '56px',
|
|
61
|
-
display: 'flex',
|
|
62
|
-
justifyContent: 'center',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
},
|
|
65
|
-
}))
|
|
66
|
-
|
|
67
|
-
export const StyledLink = styled(Link)(({ theme }) => ({
|
|
68
|
-
display: 'inline',
|
|
69
|
-
textDecoration: 'none',
|
|
70
|
-
fontWeight: 600,
|
|
71
|
-
color: theme.palette.text.primary,
|
|
72
|
-
'&:hover': {
|
|
73
|
-
textDecoration: 'underline',
|
|
74
|
-
color: theme.palette.text.primary,
|
|
75
|
-
},
|
|
76
|
-
}))
|
|
77
|
-
|
|
78
|
-
export const StyledButton = styled(Button)(({ theme }) => ({
|
|
79
|
-
borderRadius: '10px',
|
|
80
|
-
height: '60px',
|
|
81
|
-
fontSize: '18px',
|
|
82
|
-
}))
|
|
83
|
-
|
|
84
|
-
export const StyledTextField = styled(FormTextField)(({ theme }) => ({
|
|
85
|
-
'& .MuiInputBase-root': {
|
|
86
|
-
minHeight: '60px',
|
|
87
|
-
},
|
|
88
|
-
'& .MuiOutlinedInput-input': {
|
|
89
|
-
padding: '18.5px 14px',
|
|
90
|
-
},
|
|
91
|
-
}))
|
|
92
|
-
|
|
93
|
-
// export const StyledBannerFooter = styled.div`
|
|
94
|
-
// position: absolute;
|
|
95
|
-
// bottom: 0;
|
|
96
|
-
// left: 0;
|
|
97
|
-
// width: 100%;
|
|
98
|
-
// & .logo {
|
|
99
|
-
// height: 90px;
|
|
100
|
-
// background-color: #e5f4fd;
|
|
101
|
-
// display: flex;
|
|
102
|
-
// justify-content: center;
|
|
103
|
-
// align-items: center;
|
|
104
|
-
// flex-direction: column;
|
|
105
|
-
// gap: 10px;
|
|
106
|
-
// & img {
|
|
107
|
-
// display: block;
|
|
108
|
-
// width: 100px;
|
|
109
|
-
// height: auto;
|
|
110
|
-
// }
|
|
111
|
-
// }
|
|
112
|
-
// & .copyright {
|
|
113
|
-
// height: 56px;
|
|
114
|
-
// display: flex;
|
|
115
|
-
// justify-content: center;
|
|
116
|
-
// align-items: center;
|
|
117
|
-
// & .ant-typography {
|
|
118
|
-
// font-size: 12px;
|
|
119
|
-
// }
|
|
120
|
-
// }
|
|
121
|
-
// `
|
package/src/pages/index.ts
DELETED