@etsoo/materialui 1.2.94 → 1.2.96
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
|
@@ -224,10 +224,10 @@ export class NotificationMU extends NotificationReact {
|
|
|
224
224
|
createPopup(_props, className) {
|
|
225
225
|
// Destruct
|
|
226
226
|
// dismiss will trigger onReturn callback
|
|
227
|
-
const { content,
|
|
227
|
+
const { content, id, open } = this;
|
|
228
228
|
// Setup callback
|
|
229
|
-
const options = renderSetup ? renderSetup({}) : undefined;
|
|
230
|
-
return (React.createElement(Popover, { key: id, open: open, className: className, onClose: () => dismiss(), ...options }, content));
|
|
229
|
+
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
230
|
+
return (React.createElement(Popover, { key: id, open: open, className: className, onClose: () => this.dismiss(), ...options }, content));
|
|
231
231
|
}
|
|
232
232
|
// Create loading
|
|
233
233
|
createLoading(_props, className) {
|
|
@@ -4,7 +4,7 @@ export function PercentLinearProgress(props) {
|
|
|
4
4
|
// Destruct
|
|
5
5
|
const { textProps, valueUnit = "%", ...rest } = props;
|
|
6
6
|
// Component
|
|
7
|
-
return (React.createElement(Box, { sx: { display: "flex", alignItems: "center" } },
|
|
7
|
+
return (React.createElement(Box, { sx: { display: "flex", alignItems: "center", flexGrow: 2 } },
|
|
8
8
|
React.createElement(Box, { sx: { width: "100%", mr: 1 } },
|
|
9
9
|
React.createElement(LinearProgress, { variant: "determinate", ...rest })),
|
|
10
10
|
React.createElement(Box, { sx: { minWidth: 35 } },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.96",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@etsoo/shared": "^1.2.10",
|
|
57
57
|
"@mui/icons-material": "^5.14.7",
|
|
58
58
|
"@mui/material": "^5.14.7",
|
|
59
|
-
"@mui/x-data-grid": "^6.12.
|
|
59
|
+
"@mui/x-data-grid": "^6.12.1",
|
|
60
60
|
"@types/pica": "^9.0.1",
|
|
61
61
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
62
62
|
"@types/react": "^18.2.21",
|
package/src/NotifierMU.tsx
CHANGED
|
@@ -481,17 +481,17 @@ export class NotificationMU extends NotificationReact {
|
|
|
481
481
|
private createPopup(_props: NotificationRenderProps, className?: string) {
|
|
482
482
|
// Destruct
|
|
483
483
|
// dismiss will trigger onReturn callback
|
|
484
|
-
const { content,
|
|
484
|
+
const { content, id, open } = this;
|
|
485
485
|
|
|
486
486
|
// Setup callback
|
|
487
|
-
const options = renderSetup ? renderSetup({}) : undefined;
|
|
487
|
+
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
488
488
|
|
|
489
489
|
return (
|
|
490
490
|
<Popover
|
|
491
491
|
key={id}
|
|
492
492
|
open={open}
|
|
493
493
|
className={className}
|
|
494
|
-
onClose={() => dismiss()}
|
|
494
|
+
onClose={() => this.dismiss()}
|
|
495
495
|
{...options}
|
|
496
496
|
>
|
|
497
497
|
{content}
|
|
@@ -19,7 +19,7 @@ export function PercentLinearProgress(props: PercentLinearProgressProps) {
|
|
|
19
19
|
|
|
20
20
|
// Component
|
|
21
21
|
return (
|
|
22
|
-
<Box sx={{ display: "flex", alignItems: "center" }}>
|
|
22
|
+
<Box sx={{ display: "flex", alignItems: "center", flexGrow: 2 }}>
|
|
23
23
|
<Box sx={{ width: "100%", mr: 1 }}>
|
|
24
24
|
<LinearProgress variant="determinate" {...rest} />
|
|
25
25
|
</Box>
|