@etsoo/materialui 1.1.79 → 1.1.80

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/lib/NotifierMU.js CHANGED
@@ -68,7 +68,7 @@ export class NotificationMU extends NotificationReact {
68
68
  React.createElement(IconDialogTitle, { className: "draggable-dialog-title" },
69
69
  icon,
70
70
  React.createElement("span", { className: "dialogTitle" }, title),
71
- closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.dismiss() },
71
+ closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.returnValue("CLOSE") },
72
72
  React.createElement(CloseIcon, null)))),
73
73
  React.createElement(DialogContent, null,
74
74
  React.createElement(DialogContentText, null, this.content),
@@ -89,7 +89,7 @@ export class NotificationMU extends NotificationReact {
89
89
  React.createElement(IconDialogTitle, { className: "draggable-dialog-title" },
90
90
  React.createElement(Help, { color: "action" }),
91
91
  React.createElement("span", { className: "dialogTitle" }, title),
92
- closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.dismiss() },
92
+ closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.returnValue("CLOSE") },
93
93
  React.createElement(CloseIcon, null)))),
94
94
  React.createElement(DialogContent, null,
95
95
  React.createElement(DialogContentText, null, this.content),
@@ -120,7 +120,7 @@ export class NotificationMU extends NotificationReact {
120
120
  if (this.renderSetup)
121
121
  this.renderSetup(setupProps);
122
122
  return (React.createElement(Fade, { in: true, key: this.id },
123
- React.createElement(Alert, { ...setupProps, action: closable ? (React.createElement(IconButton, { size: "small", onClick: () => this.dismiss() },
123
+ React.createElement(Alert, { ...setupProps, action: closable ? (React.createElement(IconButton, { size: "small", onClick: () => this.returnValue("CLOSE") },
124
124
  React.createElement(CloseIcon, null))) : undefined, onClose: () => this.dismiss(), className: className },
125
125
  this.title && React.createElement(AlertTitle, null, this.title),
126
126
  this.content)));
@@ -205,7 +205,7 @@ export class NotificationMU extends NotificationReact {
205
205
  React.createElement(IconDialogTitle, { className: "draggable-dialog-title" },
206
206
  React.createElement(Info, { color: "primary" }),
207
207
  React.createElement("span", { className: "dialogTitle" }, title),
208
- closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.dismiss() },
208
+ closable && (React.createElement(IconButton, { className: "closeButton", size: "small", onClick: () => this.returnValue("CLOSE") },
209
209
  React.createElement(CloseIcon, null)))),
210
210
  React.createElement(DialogContent, null,
211
211
  React.createElement(DialogContentText, null, this.content),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,10 +50,10 @@
50
50
  "@emotion/css": "^11.10.6",
51
51
  "@emotion/react": "^11.10.6",
52
52
  "@emotion/styled": "^11.10.6",
53
- "@etsoo/appscript": "^1.3.83",
53
+ "@etsoo/appscript": "^1.3.85",
54
54
  "@etsoo/notificationbase": "^1.1.24",
55
55
  "@etsoo/react": "^1.6.56",
56
- "@etsoo/shared": "^1.1.93",
56
+ "@etsoo/shared": "^1.1.94",
57
57
  "@mui/icons-material": "^5.11.11",
58
58
  "@mui/material": "^5.11.15",
59
59
  "@mui/x-data-grid": "^6.0.3",
@@ -71,7 +71,7 @@
71
71
  "react-dom": "^18.2.0",
72
72
  "react-draggable": "^4.4.5",
73
73
  "react-imask": "^6.4.3",
74
- "react-router-dom": "^6.9.0",
74
+ "react-router-dom": "^6.10.0",
75
75
  "react-window": "^1.8.8"
76
76
  },
77
77
  "devDependencies": {
@@ -126,7 +126,7 @@ export class NotificationMU extends NotificationReact {
126
126
  <IconButton
127
127
  className="closeButton"
128
128
  size="small"
129
- onClick={() => this.dismiss()}
129
+ onClick={() => this.returnValue("CLOSE")}
130
130
  >
131
131
  <CloseIcon />
132
132
  </IconButton>
@@ -197,7 +197,7 @@ export class NotificationMU extends NotificationReact {
197
197
  <IconButton
198
198
  className="closeButton"
199
199
  size="small"
200
- onClick={() => this.dismiss()}
200
+ onClick={() => this.returnValue("CLOSE")}
201
201
  >
202
202
  <CloseIcon />
203
203
  </IconButton>
@@ -262,7 +262,10 @@ export class NotificationMU extends NotificationReact {
262
262
  {...setupProps}
263
263
  action={
264
264
  closable ? (
265
- <IconButton size="small" onClick={() => this.dismiss()}>
265
+ <IconButton
266
+ size="small"
267
+ onClick={() => this.returnValue("CLOSE")}
268
+ >
266
269
  <CloseIcon />
267
270
  </IconButton>
268
271
  ) : undefined
@@ -415,7 +418,7 @@ export class NotificationMU extends NotificationReact {
415
418
  <IconButton
416
419
  className="closeButton"
417
420
  size="small"
418
- onClick={() => this.dismiss()}
421
+ onClick={() => this.returnValue("CLOSE")}
419
422
  >
420
423
  <CloseIcon />
421
424
  </IconButton>