umwd-components 0.1.684 → 0.1.686

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": "umwd-components",
3
- "version": "0.1.684",
3
+ "version": "0.1.686",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -31,9 +31,15 @@ export function AmountIndicator({
31
31
  }}
32
32
  >
33
33
  {value !== maxValue ? (
34
- <Typography variant="body2">{`${value} / ${maxValue}`}</Typography>
34
+ <Typography
35
+ variant="body2"
36
+ color={theme.palette[color].contrastText}
37
+ >{`${value} / ${maxValue}`}</Typography>
35
38
  ) : (
36
- <Typography variant="body2">{`${value}`}</Typography>
39
+ <Typography
40
+ variant="body2"
41
+ color={theme.palette[color].contrastText}
42
+ >{`${value}`}</Typography>
37
43
  )}
38
44
  </Box>
39
45
  );
@@ -85,7 +85,9 @@ export function EditStockForm({
85
85
  </Grid>
86
86
  <Grid item xs={12}>
87
87
  <TableContainer component={Paper}>
88
- <Typography variant="h6">Incoming orders</Typography>
88
+ <Typography variant="h6" sx={{ pl: 2 }}>
89
+ Incoming orders
90
+ </Typography>
89
91
  <Table size="small">
90
92
  <TableHead>
91
93
  <TableRow>
@@ -159,7 +161,9 @@ export function EditStockForm({
159
161
  </TableRow>
160
162
  </TableFooter>
161
163
  </Table>
162
- <Typography variant="h6">Outgoing orders</Typography>
164
+ <Typography variant="h6" sx={{ pl: 2 }}>
165
+ Outgoing orders
166
+ </Typography>
163
167
  <Table size="small">
164
168
  <TableHead>
165
169
  <TableRow>
@@ -18,7 +18,8 @@ import { createReportAction } from "../../../data/actions/logistics/report/creat
18
18
  import { ReportMakingComponentProps } from "../../../types/logistics/Report";
19
19
  import MarkdownEditor from "../../../components/common/markdown/MarkdownEditor";
20
20
  import AnnouncementIcon from "@mui/icons-material/Announcement";
21
- import { Tooltip } from "@mui/material";
21
+ import { Box, Tooltip } from "@mui/material";
22
+ import { Block } from "@mui/icons-material";
22
23
 
23
24
  const INITIAL_STATE = {
24
25
  zodErrors: null,
@@ -57,11 +58,13 @@ export default function ReportMakingComponent({
57
58
 
58
59
  return (
59
60
  <>
60
- <Tooltip title="Create a report">
61
- <IconButton onClick={() => setOpen(true)}>
62
- <AnnouncementIcon fontSize="large" />
63
- </IconButton>
64
- </Tooltip>
61
+ <Box sx={{ display: "block", position: "relative" }}>
62
+ <Tooltip title="Create a report">
63
+ <IconButton onClick={() => setOpen(true)}>
64
+ <AnnouncementIcon fontSize="large" />
65
+ </IconButton>
66
+ </Tooltip>
67
+ </Box>
65
68
 
66
69
  <Dialog open={open} fullWidth={true} maxWidth={"lg"}>
67
70
  <form action={formAction}>
@@ -30,12 +30,12 @@ const ReportsDisplay = ({ reports }: { reports: Report[] }) => {
30
30
  </Grid>
31
31
  <Grid item xs={2}>
32
32
  <Typography variant="body2" align="right">
33
- {report.author?.username}
33
+ {report.author?.username ? report.author.username : "Unknown"}
34
34
  </Typography>
35
35
  </Grid>
36
36
 
37
37
  <Grid item xs={12}>
38
- <Divider sx={{ mb: 1 }} />
38
+ <Divider sx={{ my: 1 }} />
39
39
  </Grid>
40
40
  </Grid>
41
41
  );