@etsoo/react 1.4.83 → 1.4.84

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.
@@ -1,5 +1,5 @@
1
1
  import { Utils } from '@etsoo/shared';
2
- import { Button, Divider, Table, TableBody, TableCell, TableHead, TableRow, useTheme } from '@mui/material';
2
+ import { Button, Divider, Table, TableBody, TableCell, TableHead, TableRow, Typography, useTheme } from '@mui/material';
3
3
  import React from 'react';
4
4
  import { globalApp, NotificationMessageType } from '..';
5
5
  import { ListMoreDisplay } from './ListMoreDisplay';
@@ -57,11 +57,11 @@ export function AuditDisplay(props) {
57
57
  React.createElement(TableCell, null, getLabel(row.field)),
58
58
  React.createElement(TableCell, { align: "right" }, formatValue(row.oldValue)),
59
59
  React.createElement(TableCell, { align: "right" }, formatValue(row.newValue))))))));
60
- globalApp.notifier.alert(undefined, undefined, NotificationMessageType.Info, { fullScreen: globalApp.smDown, inputs, title: dataComparisonLabel });
60
+ globalApp.notifier.alert([undefined, dataComparisonLabel], undefined, NotificationMessageType.Info, { fullScreen: globalApp.smDown, inputs });
61
61
  };
62
62
  // Destruct
63
63
  const { getItemStyle = (index, theme) => ({
64
- padding: theme.spacing(1),
64
+ padding: [theme.spacing(1.5), theme.spacing(1)].join(' '),
65
65
  background: index % 2 === 0
66
66
  ? theme.palette.grey[100]
67
67
  : theme.palette.grey[50]
@@ -71,11 +71,11 @@ export function AuditDisplay(props) {
71
71
  marginLeft: theme.spacing(1),
72
72
  float: 'right'
73
73
  } }, dataComparisonLabel)),
74
- formatDate(data.creation) +
74
+ React.createElement(Typography, null, formatDate(data.creation) +
75
75
  ', [' +
76
76
  getLabel(data.action) +
77
77
  '], ' +
78
- data.user));
78
+ data.user)));
79
79
  }, headerTitle = (React.createElement(React.Fragment, null,
80
80
  getLabel('audits'),
81
81
  React.createElement(Divider, null))), ...rest } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.83",
3
+ "version": "1.4.84",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,8 +50,8 @@
50
50
  "@emotion/react": "^11.7.1",
51
51
  "@emotion/style": "^0.8.0",
52
52
  "@emotion/styled": "^11.6.0",
53
- "@etsoo/appscript": "^1.2.32",
54
- "@etsoo/notificationbase": "^1.1.0",
53
+ "@etsoo/appscript": "^1.2.33",
54
+ "@etsoo/notificationbase": "^1.1.1",
55
55
  "@etsoo/shared": "^1.1.9",
56
56
  "@mui/icons-material": "^5.3.1",
57
57
  "@mui/material": "^5.4.0",
@@ -8,6 +8,7 @@ import {
8
8
  TableHead,
9
9
  TableRow,
10
10
  Theme,
11
+ Typography,
11
12
  useTheme
12
13
  } from '@mui/material';
13
14
  import React, { CSSProperties } from 'react';
@@ -126,17 +127,17 @@ export function AuditDisplay(props: AuditDisplayProps) {
126
127
  );
127
128
 
128
129
  globalApp.notifier.alert(
129
- undefined,
130
+ [undefined, dataComparisonLabel],
130
131
  undefined,
131
132
  NotificationMessageType.Info,
132
- { fullScreen: globalApp.smDown, inputs, title: dataComparisonLabel }
133
+ { fullScreen: globalApp.smDown, inputs }
133
134
  );
134
135
  };
135
136
 
136
137
  // Destruct
137
138
  const {
138
139
  getItemStyle = (index, theme) => ({
139
- padding: theme.spacing(1),
140
+ padding: [theme.spacing(1.5), theme.spacing(1)].join(' '),
140
141
  background:
141
142
  index % 2 === 0
142
143
  ? theme.palette.grey[100]
@@ -158,11 +159,13 @@ export function AuditDisplay(props: AuditDisplayProps) {
158
159
  {dataComparisonLabel}
159
160
  </Button>
160
161
  )}
161
- {formatDate(data.creation) +
162
- ', [' +
163
- getLabel(data.action) +
164
- '], ' +
165
- data.user}
162
+ <Typography>
163
+ {formatDate(data.creation) +
164
+ ', [' +
165
+ getLabel(data.action) +
166
+ '], ' +
167
+ data.user}
168
+ </Typography>
166
169
  </React.Fragment>
167
170
  );
168
171
  },