@deix/rossini-core 3.1.1 → 4.0.0
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/components/layout/components/AppLogo/AppLogo.d.ts.map +1 -1
- package/lib/components/layout/components/AppLogo/AppLogo.js +4 -3
- package/lib/components/layout/components/Sidebar/Sidebar.d.ts +2 -2
- package/lib/components/layout/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLogo.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/AppLogo/AppLogo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAK/C,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAChC;AACD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"AppLogo.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/AppLogo/AppLogo.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAK/C,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAChC;AACD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyCnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { Typography } from '@mui/material';
|
|
5
5
|
import { useTheme } from '@mui/material';
|
|
6
|
-
const AppLogo = ({ name
|
|
6
|
+
const AppLogo = ({ name, open, logoSource }) => {
|
|
7
7
|
const muiTheme = useTheme();
|
|
8
8
|
return (React.createElement("div", { style: {
|
|
9
9
|
display: 'flex',
|
|
@@ -12,8 +12,9 @@ const AppLogo = ({ name = '', open, logoSource }) => {
|
|
|
12
12
|
justifyContent: 'center',
|
|
13
13
|
marginBottom: 4,
|
|
14
14
|
} },
|
|
15
|
-
logoSource && (React.createElement(Image, { src: logoSource, alt: 'logo', width: 36, height: 36 })),
|
|
16
|
-
|
|
15
|
+
logoSource && name && (React.createElement(Image, { src: logoSource, alt: 'logo', width: 36, height: 36 })),
|
|
16
|
+
logoSource && !name && (React.createElement(Image, { src: logoSource, alt: 'logo', style: { width: '80%', height: 'auto' } })),
|
|
17
|
+
open && name && (React.createElement(React.Fragment, null,
|
|
17
18
|
React.createElement(Typography, { variant: 'h4', sx: {
|
|
18
19
|
background: muiTheme.palette.primary.main,
|
|
19
20
|
backgroundClip: 'text',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TypographyVariant } from '@mui/material/styles';
|
|
3
3
|
import { Locale, StringTranslation } from '../../../../types/languages';
|
|
4
4
|
export interface SidebarLink {
|
|
5
5
|
/**
|
|
@@ -19,7 +19,7 @@ export interface SidebarLink {
|
|
|
19
19
|
/**
|
|
20
20
|
* The MUI Typography variant for the link label.
|
|
21
21
|
*/
|
|
22
|
-
labelVariant?:
|
|
22
|
+
labelVariant?: TypographyVariant;
|
|
23
23
|
/**
|
|
24
24
|
* An integer used for sorting the sidebar links.
|
|
25
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAsBtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAsBtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,MAAM,EACN,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AAIrC,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmanC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|