@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.
Files changed (43) hide show
  1. package/exports.ts +6 -7
  2. package/package.json +2 -1
  3. package/src/assets/images/avatar.png +0 -0
  4. package/src/assets/images/index.ts +1 -19
  5. package/src/components/ErrorBoundary/ErrorBoundary.tsx +15 -0
  6. package/src/components/ErrorBoundary/ErrorFallback.tsx +39 -0
  7. package/src/components/ErrorBoundary/GlobalNetworkLoadingIndicator.tsx +13 -0
  8. package/src/components/ErrorBoundary/index.tsx +1 -0
  9. package/src/components/Layout/Header/AppHeader.tsx +8 -8
  10. package/src/components/Layout/Header/AppsMenu.tsx +1 -1
  11. package/src/components/Layout/Header/CogWheelMenu.tsx +7 -0
  12. package/src/components/Layout/Header/UserBox.tsx +14 -47
  13. package/src/components/Layout/Header/styles.tsx +2 -3
  14. package/src/components/LinearProgress.tsx +19 -0
  15. package/src/components/MenuButton.tsx +88 -90
  16. package/src/components/index.ts +45 -43
  17. package/src/config/axios.ts +13 -80
  18. package/src/constants/index.ts +1 -0
  19. package/src/contexts/QueryClientProvider.tsx +15 -15
  20. package/src/permissions/PageWithPermission.tsx +0 -39
  21. package/src/permissions/PermissionDeniedPage.tsx +14 -21
  22. package/src/shared-state/index.ts +1 -2
  23. package/src/theme/MuiThemeProvider.tsx +10 -8
  24. package/src/theme/theme.d.ts +72 -72
  25. package/src/utils/withRouteWrapper.tsx +21 -20
  26. package/src/utils/withSuspense.tsx +3 -3
  27. package/src/assets/images/File bundle-bro.svg +0 -122
  28. package/src/assets/images/Filebundle.png +0 -0
  29. package/src/assets/images/NoPart.png +0 -0
  30. package/src/assets/images/ResultProcess.png +0 -0
  31. package/src/assets/images/ResultProcess.svg +0 -99
  32. package/src/assets/images/attachment.svg +0 -1
  33. package/src/assets/images/pdf.png +0 -0
  34. package/src/assets/images/taskAttachment.png +0 -0
  35. package/src/assets/images/welcomeimage.jpg +0 -0
  36. package/src/components/ErrorBoundary.js +0 -45
  37. package/src/components/LinearProgress/LinearProgress.tsx +0 -28
  38. package/src/components/LinearProgress/index.tsx +0 -1
  39. package/src/pages/LoginPage/LoginPage.tsx +0 -168
  40. package/src/pages/LoginPage/index.ts +0 -1
  41. package/src/pages/LoginPage/styles.tsx +0 -121
  42. package/src/pages/index.ts +0 -4
  43. 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
- // `
@@ -1,4 +0,0 @@
1
- import { lazy } from 'react'
2
- import { LoginForm } from './LoginPage/LoginPage'
3
-
4
- export { LoginForm }
@@ -1,10 +0,0 @@
1
- import { Store } from 'pullstate'
2
-
3
- export const globalStore = new Store({
4
- loading: false,
5
- error: {
6
- message: '',
7
- statusCode: null,
8
- description: '',
9
- },
10
- })