@campxdev/shared 1.4.4 → 1.4.6

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.4.4",
3
+ "version": "1.4.6",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -64,6 +64,19 @@ const StyledPopper = styled(Popper)(({ theme }) => ({
64
64
  padding: 0,
65
65
  },
66
66
  },
67
+ '&::-webkit-scrollbar': {
68
+ width: '0.5em',
69
+ height: '0.5em',
70
+ },
71
+
72
+ '&::-webkit-scrollbar-thumb': {
73
+ backgroundColor: 'rgba(0, 0, 0, 0.15)',
74
+ borderRadius: '3px',
75
+
76
+ '&:hover': {
77
+ background: 'rgba(0, 0, 0, 0.2)',
78
+ },
79
+ },
67
80
  },
68
81
  }))
69
82
 
@@ -15,9 +15,6 @@ const StyledTextField = styled(MuiTextField)(({ theme }) => ({
15
15
  display: 'none',
16
16
  },
17
17
  },
18
- '& .MuiInputAdornment-positionStart': {
19
- paddingLeft: '14px',
20
- },
21
18
  }))
22
19
 
23
20
  export default function TextField({
@@ -31,7 +31,7 @@ export function LoginForm({ loginUrl }: { loginUrl?: string }) {
31
31
  }
32
32
 
33
33
  return (
34
- <Box sx={{ maxWidth: '500px' }} margin="0 auto" padding={'0 1rem'}>
34
+ <>
35
35
  <form onSubmit={handleSubmit(onSubmit)}>
36
36
  <Stack gap={'30px'}>
37
37
  <Box>
@@ -73,7 +73,7 @@ export function LoginForm({ loginUrl }: { loginUrl?: string }) {
73
73
  {error}
74
74
  </Alert>
75
75
  )}
76
- </Box>
76
+ </>
77
77
  )
78
78
  }
79
79
 
@@ -162,7 +162,6 @@ const muiTheme = createTheme({
162
162
  textTransform: 'capitalize',
163
163
  fontWeight: 600,
164
164
  borderRadius: borderRadius.small,
165
- flexShrink: 0,
166
165
  '&.MuiButton-sizeSmall': {
167
166
  padding: '6px 8px',
168
167
  height: '40px',
@@ -187,6 +186,8 @@ const muiTheme = createTheme({
187
186
  MuiInputBase: {
188
187
  styleOverrides: {
189
188
  root: {
189
+ fontFamily: PRIMARY_FONT,
190
+ fontWeight: 'normal',
190
191
  minHeight: '50px',
191
192
  borderRadius: '10px',
192
193
  '& input': {
@@ -208,7 +209,10 @@ const muiTheme = createTheme({
208
209
  root: {
209
210
  borderRadius: borderRadius.large,
210
211
  '& .MuiInputAdornment-positionEnd.MuiInputAdornment-outlined': {
211
- paddingRight: 2,
212
+ paddingRight: '14px',
213
+ },
214
+ '& .MuiInputAdornment-positionStart.MuiInputAdornment-outlined': {
215
+ paddingLeft: '14px',
212
216
  },
213
217
  '& .MuiOutlinedInput-notchedOutline': {
214
218
  top: 1,
@@ -1,6 +1,6 @@
1
1
  import { Suspense } from 'react'
2
2
  import PageWithPermission from '../permissions/PageWithPermission'
3
- import { LinearProgress } from '../components/LinearProgress'
3
+ import { Spinner } from '../components'
4
4
 
5
5
  const withRouteWrapper = (routes) => {
6
6
  return routes?.map((item, index) => {
@@ -13,7 +13,7 @@ const withRouteWrapper = (routes) => {
13
13
  return {
14
14
  ...item,
15
15
  element: item?.element ? (
16
- <Suspense fallback={<LinearProgress />} key={index}>
16
+ <Suspense fallback={<Spinner />} key={index}>
17
17
  <PageWithPermission permissionKey={item?.permissionKey}>
18
18
  {item.element}
19
19
  </PageWithPermission>