datastake-daf 0.6.680 → 0.6.682
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/dist/layouts/index.js +10 -7
- package/dist/style/datastake/datastake.css +14 -0
- package/package.json +1 -1
- package/src/@daf/layouts/AppLayout/components/MobileDrawer/index.js +3 -1
- package/src/@daf/layouts/AppLayout/components/UserDropdown/index.js +3 -1
- package/src/@daf/layouts/AppLayout/index.jsx +1 -1
- package/src/styles/datastake/datastake.css +14 -0
package/dist/layouts/index.js
CHANGED
|
@@ -5890,7 +5890,8 @@ function MobileDrawer({
|
|
|
5890
5890
|
appName = 'app',
|
|
5891
5891
|
userHelpers = {},
|
|
5892
5892
|
isDev = false,
|
|
5893
|
-
selectedProject
|
|
5893
|
+
selectedProject,
|
|
5894
|
+
theme = {}
|
|
5894
5895
|
}) {
|
|
5895
5896
|
const items = o.useMemo(() => sidenavConfig[mod] || [], [sidenavConfig, mod]);
|
|
5896
5897
|
const canViewPartners = o.useMemo(() => mod === 'tazama', [mod]);
|
|
@@ -5988,7 +5989,7 @@ function MobileDrawer({
|
|
|
5988
5989
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5989
5990
|
className: "drawer",
|
|
5990
5991
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5991
|
-
className: formatClassname(['sidenav-sider sidenav-sider-opened flex-1', appName]),
|
|
5992
|
+
className: formatClassname(['sidenav-sider sidenav-sider-opened flex-1', appName, theme.customHeaderColor && 'custom']),
|
|
5992
5993
|
style: {
|
|
5993
5994
|
width: '250px',
|
|
5994
5995
|
minWidth: '250px'
|
|
@@ -6050,7 +6051,8 @@ const UserDropdownMenu = ({
|
|
|
6050
6051
|
checkPermission = () => false,
|
|
6051
6052
|
appName = 'app',
|
|
6052
6053
|
userHelpers = {},
|
|
6053
|
-
isDev = false
|
|
6054
|
+
isDev = false,
|
|
6055
|
+
theme = {}
|
|
6054
6056
|
}) => {
|
|
6055
6057
|
const resizeContext = useResizeContext();
|
|
6056
6058
|
const {
|
|
@@ -6115,13 +6117,14 @@ const UserDropdownMenu = ({
|
|
|
6115
6117
|
checkPermission: checkPermission,
|
|
6116
6118
|
logOut: logOut,
|
|
6117
6119
|
changeNotificationState: changeNotificationState,
|
|
6118
|
-
appName: appName
|
|
6120
|
+
appName: appName,
|
|
6121
|
+
theme: theme
|
|
6119
6122
|
})]
|
|
6120
6123
|
}) : /*#__PURE__*/jsxRuntime.jsx(antd.Dropdown, {
|
|
6121
6124
|
open: true,
|
|
6122
6125
|
trigger: "click",
|
|
6123
6126
|
placement: "bottomLeft",
|
|
6124
|
-
rootClassName: formatClassname(['user-dropdown-layout', appName]),
|
|
6127
|
+
rootClassName: formatClassname(['user-dropdown-layout', appName, theme.customHeaderColor && 'custom']),
|
|
6125
6128
|
menu: {
|
|
6126
6129
|
items: [{
|
|
6127
6130
|
label: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -8262,7 +8265,6 @@ function AppLayout({
|
|
|
8262
8265
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8263
8266
|
className: "flex flex-column",
|
|
8264
8267
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Select, {
|
|
8265
|
-
open: true,
|
|
8266
8268
|
className: "ln-22 dark-select language-select",
|
|
8267
8269
|
style: {
|
|
8268
8270
|
color: 'white',
|
|
@@ -8311,7 +8313,8 @@ function AppLayout({
|
|
|
8311
8313
|
checkPermission: checkPermission,
|
|
8312
8314
|
appName: appName,
|
|
8313
8315
|
userHelpers: userHelpers,
|
|
8314
|
-
isDev: isDev
|
|
8316
|
+
isDev: isDev,
|
|
8317
|
+
theme: theme
|
|
8315
8318
|
})
|
|
8316
8319
|
})]
|
|
8317
8320
|
})]
|
|
@@ -1927,6 +1927,20 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
|
|
|
1927
1927
|
background-color: var(--base-gray-30) !important;
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
|
+
.ant-dropdown.user-dropdown-layout.custom
|
|
1931
|
+
.ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
|
|
1932
|
+
.ant-dropdown-menu-item
|
|
1933
|
+
.ant-dropdown-menu-title-content
|
|
1934
|
+
.drop-header h4,
|
|
1935
|
+
.ant-dropdown.user-dropdown-layout.custom
|
|
1936
|
+
.ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
|
|
1937
|
+
.ant-dropdown-menu-item
|
|
1938
|
+
.ant-dropdown-menu-title-content
|
|
1939
|
+
.list .list-item
|
|
1940
|
+
{
|
|
1941
|
+
color: var(--header-text-color, white) !important;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1930
1944
|
.ant-menu.ant-menu-sub.ant-menu-inline {
|
|
1931
1945
|
background-color: var(--base-gray-110) !important;
|
|
1932
1946
|
}
|
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ export default function MobileDrawer({
|
|
|
27
27
|
userHelpers = {},
|
|
28
28
|
isDev = false,
|
|
29
29
|
selectedProject,
|
|
30
|
+
theme = {},
|
|
30
31
|
}) {
|
|
31
32
|
const items = useMemo(() => sidenavConfig[mod] || [], [sidenavConfig, mod]);
|
|
32
33
|
|
|
@@ -158,7 +159,8 @@ export default function MobileDrawer({
|
|
|
158
159
|
<div
|
|
159
160
|
className={formatClassname([
|
|
160
161
|
isCollapsed ? 'sidenav-sider-collapsed sidenav-sider flex-1' : 'sidenav-sider sidenav-sider-opened flex-1',
|
|
161
|
-
appName
|
|
162
|
+
appName,
|
|
163
|
+
theme.customHeaderColor && 'custom'
|
|
162
164
|
])}
|
|
163
165
|
style={{ width: isCollapsed ? '70px' : '250px', minWidth: isCollapsed ? 'auto' : '250px' }}
|
|
164
166
|
>
|
|
@@ -22,6 +22,7 @@ export const UserDropdownMenu = ({
|
|
|
22
22
|
appName = 'app',
|
|
23
23
|
userHelpers = {},
|
|
24
24
|
isDev = false,
|
|
25
|
+
theme = {},
|
|
25
26
|
}) => {
|
|
26
27
|
const resizeContext = useResizeContext();
|
|
27
28
|
const { windowWidth } = resizeContext || {};
|
|
@@ -83,6 +84,7 @@ export const UserDropdownMenu = ({
|
|
|
83
84
|
logOut={logOut}
|
|
84
85
|
changeNotificationState={changeNotificationState}
|
|
85
86
|
appName={appName}
|
|
87
|
+
theme={theme}
|
|
86
88
|
/>
|
|
87
89
|
</div>
|
|
88
90
|
) : (
|
|
@@ -90,7 +92,7 @@ export const UserDropdownMenu = ({
|
|
|
90
92
|
open={true}
|
|
91
93
|
trigger="click"
|
|
92
94
|
placement="bottomLeft"
|
|
93
|
-
rootClassName={formatClassname(['user-dropdown-layout', appName])}
|
|
95
|
+
rootClassName={formatClassname(['user-dropdown-layout', appName, theme.customHeaderColor && 'custom'])}
|
|
94
96
|
menu={{
|
|
95
97
|
items: [
|
|
96
98
|
{
|
|
@@ -362,7 +362,6 @@ function AppLayout({
|
|
|
362
362
|
|
|
363
363
|
<div className="flex flex-column">
|
|
364
364
|
<Select
|
|
365
|
-
open={true}
|
|
366
365
|
className="ln-22 dark-select language-select"
|
|
367
366
|
style={{ color: 'white', height: '30px' }}
|
|
368
367
|
defaultValue={StorageManager.get('datastakeLng') || 'en'}
|
|
@@ -407,6 +406,7 @@ function AppLayout({
|
|
|
407
406
|
appName={appName}
|
|
408
407
|
userHelpers={userHelpers}
|
|
409
408
|
isDev={isDev}
|
|
409
|
+
theme={theme}
|
|
410
410
|
/>
|
|
411
411
|
</div>
|
|
412
412
|
</div>
|
|
@@ -1927,6 +1927,20 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
|
|
|
1927
1927
|
background-color: var(--base-gray-30) !important;
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
|
+
.ant-dropdown.user-dropdown-layout.custom
|
|
1931
|
+
.ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
|
|
1932
|
+
.ant-dropdown-menu-item
|
|
1933
|
+
.ant-dropdown-menu-title-content
|
|
1934
|
+
.drop-header h4,
|
|
1935
|
+
.ant-dropdown.user-dropdown-layout.custom
|
|
1936
|
+
.ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
|
|
1937
|
+
.ant-dropdown-menu-item
|
|
1938
|
+
.ant-dropdown-menu-title-content
|
|
1939
|
+
.list .list-item
|
|
1940
|
+
{
|
|
1941
|
+
color: var(--header-text-color, white) !important;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1930
1944
|
.ant-menu.ant-menu-sub.ant-menu-inline {
|
|
1931
1945
|
background-color: var(--base-gray-110) !important;
|
|
1932
1946
|
}
|