@zac-apps/commons 1.3.4 → 1.3.5-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -7
  2. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -169,6 +169,8 @@ function AppTable(_ref) {
169
169
 
170
170
  function AppMenu(_ref) {
171
171
  var title = _ref.title,
172
+ iconUrl = _ref.iconUrl,
173
+ iconAlt = _ref.iconAlt,
172
174
  children = _ref.children;
173
175
  if (!title) {
174
176
  title = "JGU-ZAC Apps";
@@ -183,11 +185,11 @@ function AppMenu(_ref) {
183
185
  flexGrow: 1
184
186
  },
185
187
  children: title
186
- }), /*#__PURE__*/jsx("img", {
187
- src: "/zac_logo.png",
188
+ }), iconUrl ? /*#__PURE__*/jsx("img", {
189
+ src: iconUrl,
188
190
  width: "48px",
189
- alt: "zac-logo"
190
- })]
191
+ alt: iconAlt
192
+ }) : null]
191
193
  })
192
194
  });
193
195
  }
@@ -297,7 +299,9 @@ function AppWrapper(_ref) {
297
299
  footerContent = _ref.footerContent,
298
300
  children = _ref.children,
299
301
  basePath = _ref.basePath,
300
- menu = _ref.menu;
302
+ menu = _ref.menu,
303
+ iconUrl = _ref.iconUrl,
304
+ iconAlt = _ref.iconAlt;
301
305
  if (!basePath || basePath === null) {
302
306
  basePath = "/";
303
307
  }
@@ -307,13 +311,15 @@ function AppWrapper(_ref) {
307
311
  return /*#__PURE__*/jsxs(React__default.Fragment, {
308
312
  children: [/*#__PURE__*/jsx(AppMenu, {
309
313
  title: /*#__PURE__*/jsx(Link$1, {
314
+ component: Link$2,
315
+ href: basePath,
310
316
  sx: {
311
317
  color: AppTheme.palette.primary.contrastText
312
318
  },
313
- component: Link$2,
314
- href: basePath,
315
319
  children: title
316
320
  }),
321
+ iconUrl: iconUrl,
322
+ iconAlt: iconAlt,
317
323
  children: menu ? /*#__PURE__*/jsx(NextListMenu, {
318
324
  availApps: availApps,
319
325
  basePath: basePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zac-apps/commons",
3
- "version": "1.3.4",
3
+ "version": "1.3.5-beta.1",
4
4
  "scripts": {
5
5
  "rollup": "node_modules/rollup/dist/rollup.js",
6
6
  "dev": "next dev",
@@ -28,6 +28,8 @@
28
28
  "author": "ZAC",
29
29
  "license": "CC-BY-SA-4.0",
30
30
  "dependencies": {
31
+ "@emotion/react": "^11.11.4",
32
+ "@emotion/styled": "^11.11.0",
31
33
  "@mui/icons-material": "^5.15.14",
32
34
  "@mui/material": "^5.15.14"
33
35
  },