@nethru/ui 2.1.9 → 2.1.10
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/base/frame/Brand.js +1 -0
- package/base/frame/sidebar/css/primary.module.css +12 -5
- package/base/index.js +1 -2
- package/base/styles/globalStyles.js +15 -0
- package/base/styles/mui/appBar.js +1 -2
- package/base/styles/mui/dialogActions.js +4 -1
- package/package.json +1 -1
- package/base/deprecated/ShadowedSection.js +0 -36
package/base/frame/Brand.js
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
height: 50px;
|
|
26
26
|
align-items: center;
|
|
27
|
-
color: #656565;
|
|
28
27
|
cursor: pointer;
|
|
29
28
|
}
|
|
30
29
|
.nav-item .icon {
|
|
@@ -36,13 +35,13 @@
|
|
|
36
35
|
border-radius: 6px;
|
|
37
36
|
}
|
|
38
37
|
.nav-item:hover .icon {
|
|
39
|
-
background-color:
|
|
38
|
+
background-color: var(--primary-menu-item-icon-hover-background-color);
|
|
40
39
|
}
|
|
41
40
|
.nav-item.active .icon {
|
|
42
|
-
color:
|
|
43
|
-
background-color: rgba(51,51,51,0.1);
|
|
41
|
+
background-color: var(--primary-menu-item-icon-active-background-color);
|
|
44
42
|
}
|
|
45
43
|
.nav-item.active .text {
|
|
44
|
+
color: var(--primary-menu-item-text-active-color);
|
|
46
45
|
font-weight: 600;
|
|
47
46
|
}
|
|
48
47
|
.container:hover .nav-item.active {
|
|
@@ -56,8 +55,16 @@
|
|
|
56
55
|
height: 24px;
|
|
57
56
|
}
|
|
58
57
|
|
|
58
|
+
.icon > svg > path {
|
|
59
|
+
fill: var(--primary-menu-item-icon-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nav-item.active .icon > svg > path {
|
|
63
|
+
fill: var(--primary-menu-item-icon-active-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
.text {
|
|
60
|
-
color:
|
|
67
|
+
color: var(--primary-menu-item-text-color);
|
|
61
68
|
font-size: 10px;
|
|
62
69
|
font-weight: 500;
|
|
63
70
|
line-height: 1.4;
|
package/base/index.js
CHANGED
|
@@ -41,5 +41,4 @@ export { default as Switch } from "./Switch";
|
|
|
41
41
|
export * from './frame/sidebar/SidebarContext';
|
|
42
42
|
export { default as Error } from "./error/Error";
|
|
43
43
|
export { default as HttpError } from "./error/HttpError";
|
|
44
|
-
export { default as CircularProgress } from "./deprecated/CircularProgress";
|
|
45
|
-
export { default as ShadowedSection } from "./deprecated/ShadowedSection";
|
|
44
|
+
export { default as CircularProgress } from "./deprecated/CircularProgress";
|
|
@@ -4,6 +4,21 @@ const globalStyles = {
|
|
|
4
4
|
':root': {
|
|
5
5
|
'--body-background-color': blueGrey.contentBg,
|
|
6
6
|
'--frame-background-color': blueGrey.frameBg,
|
|
7
|
+
'--brand-text-color': typography.logo.color,
|
|
8
|
+
'--primary-menu-item-text-color': '#333',
|
|
9
|
+
'--primary-menu-item-text-active-color': '#333',
|
|
10
|
+
'--primary-menu-item-icon-color': '#656565',
|
|
11
|
+
'--primary-menu-item-icon-active-color': '#333',
|
|
12
|
+
'--primary-menu-item-icon-active-background-color': 'rgba(51,51,51,0.1)',
|
|
13
|
+
'--primary-menu-item-icon-hover-background-color': 'rgba(51,51,51,0.05)',
|
|
14
|
+
// '--frame-background-color': 'darkslateblue',
|
|
15
|
+
// '--brand-text-color': 'white',
|
|
16
|
+
// '--primary-menu-item-text-color': 'white',
|
|
17
|
+
// '--primary-menu-item-text-active-color': 'yellow',
|
|
18
|
+
// '--primary-menu-item-icon-color': 'white',
|
|
19
|
+
// '--primary-menu-item-icon-active-color': 'yellow',
|
|
20
|
+
// '--primary-menu-item-icon-active-background-color': 'red',
|
|
21
|
+
// '--primary-menu-item-icon-hover-background-color': 'green',
|
|
7
22
|
'--gnb-background-color': blueGrey.gnbBg,
|
|
8
23
|
'--gnb-height': '64px',
|
|
9
24
|
'--gnb-zindex': 1103,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import typography from "../typography";
|
|
2
|
-
import { blueGrey } from "../../colors";
|
|
3
2
|
export const styles = {
|
|
4
3
|
styleOverrides: {
|
|
5
4
|
root: {
|
|
6
5
|
fontFamily: typography.fontFamily,
|
|
7
|
-
backgroundColor:
|
|
6
|
+
backgroundColor: 'var(--frame-background-color)',
|
|
8
7
|
boxShadow: 'none',
|
|
9
8
|
zIndex: `var(--gnb-zindex)`,
|
|
10
9
|
'&.MuiAppBar-preview': {
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Box, Divider, Stack, Typography } from "@mui/material";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
export default function ShadowedSection({
|
|
6
|
-
label,
|
|
7
|
-
children,
|
|
8
|
-
marginTop = '20px',
|
|
9
|
-
sx,
|
|
10
|
-
...props
|
|
11
|
-
}) {
|
|
12
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
13
|
-
children: [/*#__PURE__*/_jsx(Box, {
|
|
14
|
-
sx: {
|
|
15
|
-
mt: marginTop
|
|
16
|
-
},
|
|
17
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
18
|
-
variant: "subtitle1",
|
|
19
|
-
children: label
|
|
20
|
-
})
|
|
21
|
-
}), /*#__PURE__*/_jsxs(Stack, {
|
|
22
|
-
sx: {
|
|
23
|
-
backgroundColor: '#fff',
|
|
24
|
-
boxShadow: '0 0.3rem 0.3rem rgba(0, 0, 0, 0.03) !important'
|
|
25
|
-
},
|
|
26
|
-
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Stack, {
|
|
27
|
-
sx: {
|
|
28
|
-
padding: 3,
|
|
29
|
-
...sx
|
|
30
|
-
},
|
|
31
|
-
...props,
|
|
32
|
-
children: children
|
|
33
|
-
}), /*#__PURE__*/_jsx(Divider, {})]
|
|
34
|
-
})]
|
|
35
|
-
});
|
|
36
|
-
}
|