@etsoo/materialui 1.3.47 → 1.3.49

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.
@@ -19,6 +19,10 @@ export type LeftDrawerProps = React.PropsWithRef<{
19
19
  * Application name
20
20
  */
21
21
  appName?: string;
22
+ /**
23
+ * Logo URL
24
+ */
25
+ logoUrl?: string;
22
26
  /**
23
27
  * Is open or not
24
28
  */
@@ -5,7 +5,7 @@ import { DrawerHeader } from "./DrawerHeader";
5
5
  import { globalApp } from "../app/ReactApp";
6
6
  export function LeftDrawer(props) {
7
7
  // Destruct
8
- const { mdUp, width, appName = globalApp?.get("appName"), onMinimize, open = mdUp, children } = props;
8
+ const { mdUp, width, appName = globalApp?.get("appName"), logoUrl = "/logo192.png", onMinimize, open = mdUp, children } = props;
9
9
  // Menu open/close state
10
10
  const [openLocal, setOpen] = React.useState();
11
11
  const handleDrawerClose = () => {
@@ -29,7 +29,7 @@ export function LeftDrawer(props) {
29
29
  } },
30
30
  React.createElement(DrawerHeader, null,
31
31
  React.createElement("a", { href: "https://www.etsoo.com", title: globalApp?.get("etsoo") ?? "ETSOO", target: "_blank", rel: "noreferrer" },
32
- React.createElement(Avatar, { src: process.env.PUBLIC_URL + "/logo192.png", variant: "square", sx: { marginLeft: -0.5, marginRight: 1.5, marginBottom: 1 } })),
32
+ React.createElement(Avatar, { src: logoUrl, variant: "square", sx: { marginLeft: -0.5, marginRight: 1.5, marginBottom: 1 } })),
33
33
  React.createElement(Typography, { noWrap: true, component: "div", title: appName, sx: { flexGrow: 2 } }, appName),
34
34
  React.createElement(IconButton, { size: "small", onClick: handleDrawerClose },
35
35
  React.createElement(ChevronLeftIcon, null))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.47",
3
+ "version": "1.3.49",
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.11.2",
51
51
  "@emotion/react": "^11.11.4",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@etsoo/appscript": "^1.4.82",
53
+ "@etsoo/appscript": "^1.4.83",
54
54
  "@etsoo/notificationbase": "^1.1.41",
55
- "@etsoo/react": "^1.7.32",
56
- "@etsoo/shared": "^1.2.33",
55
+ "@etsoo/react": "^1.7.33",
56
+ "@etsoo/shared": "^1.2.34",
57
57
  "@mui/icons-material": "^5.15.11",
58
58
  "@mui/material": "^5.15.11",
59
59
  "@mui/x-data-grid": "^6.19.6",
@@ -35,6 +35,11 @@ export type LeftDrawerProps = React.PropsWithRef<{
35
35
  */
36
36
  appName?: string;
37
37
 
38
+ /**
39
+ * Logo URL
40
+ */
41
+ logoUrl?: string;
42
+
38
43
  /**
39
44
  * Is open or not
40
45
  */
@@ -52,6 +57,7 @@ export function LeftDrawer(props: React.PropsWithChildren<LeftDrawerProps>) {
52
57
  mdUp,
53
58
  width,
54
59
  appName = globalApp?.get("appName"),
60
+ logoUrl = "/logo192.png",
55
61
  onMinimize,
56
62
  open = mdUp,
57
63
  children
@@ -98,7 +104,7 @@ export function LeftDrawer(props: React.PropsWithChildren<LeftDrawerProps>) {
98
104
  rel="noreferrer"
99
105
  >
100
106
  <Avatar
101
- src={process.env.PUBLIC_URL + "/logo192.png"}
107
+ src={logoUrl}
102
108
  variant="square"
103
109
  sx={{ marginLeft: -0.5, marginRight: 1.5, marginBottom: 1 }}
104
110
  />