datastake-daf 0.6.727 → 0.6.728

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.
@@ -45510,8 +45510,11 @@ function Sidenav(_ref) {
45510
45510
  },
45511
45511
  children: hoverContentSecond
45512
45512
  }), isDatastake && !isCollapsed ? /*#__PURE__*/jsxRuntime.jsxs("div", {
45513
- className: "sidenav-footer",
45513
+ className: "sidenav-footer text-col",
45514
45514
  children: [/*#__PURE__*/jsxRuntime.jsx("h6", {
45515
+ style: {
45516
+ color: logoVariant === "black" ? "#B5B5C3" : "white"
45517
+ },
45515
45518
  children: t("Powered By")
45516
45519
  }), /*#__PURE__*/jsxRuntime.jsx("img", {
45517
45520
  src: poweredByLogo || "/assets/favicons/datastake-".concat(logoVariant, ".svg"),
@@ -5010,8 +5010,11 @@ function Sidenav$1({
5010
5010
  },
5011
5011
  children: hoverContentSecond
5012
5012
  }), isDatastake && !isCollapsed ? /*#__PURE__*/jsxRuntime.jsxs("div", {
5013
- className: "sidenav-footer",
5013
+ className: "sidenav-footer text-col",
5014
5014
  children: [/*#__PURE__*/jsxRuntime.jsx("h6", {
5015
+ style: {
5016
+ color: logoVariant === "black" ? "#B5B5C3" : "white"
5017
+ },
5015
5018
  children: t("Powered By")
5016
5019
  }), /*#__PURE__*/jsxRuntime.jsx("img", {
5017
5020
  src: poweredByLogo || `/assets/favicons/datastake-${logoVariant}.svg`,
@@ -5284,7 +5287,8 @@ const Sidenav = ({
5284
5287
  appName = 'app',
5285
5288
  getRedirectLink = () => {},
5286
5289
  isDatastake,
5287
- selectedProject
5290
+ selectedProject,
5291
+ logoVariant = "white"
5288
5292
  }) => {
5289
5293
  const hoverDiv = o.useRef();
5290
5294
  const hoverDivSecond = o.useRef();
@@ -5429,6 +5433,7 @@ const Sidenav = ({
5429
5433
  hoverContentSecond: hoverContentSecond,
5430
5434
  t: t,
5431
5435
  isDatastake: isDatastake,
5436
+ logoVariant: logoVariant,
5432
5437
  children: showMenu ? /*#__PURE__*/jsxRuntime.jsx(SidenavMenu, {
5433
5438
  matchPath: matchPath,
5434
5439
  module: module,
@@ -8167,6 +8172,8 @@ function AppLayout({
8167
8172
  renderChildren,
8168
8173
  // Theme
8169
8174
  theme = {},
8175
+ // Logo variant
8176
+ logoVariant = "white",
8170
8177
  // Children
8171
8178
  children
8172
8179
  }) {
@@ -8303,7 +8310,8 @@ function AppLayout({
8303
8310
  isDatastake: isDatastake,
8304
8311
  selectedProject: selectedProject,
8305
8312
  userHelpers: userHelpers,
8306
- isDev: isDev
8313
+ isDev: isDev,
8314
+ logoVariant: logoVariant
8307
8315
  })]
8308
8316
  }) : null, /*#__PURE__*/jsxRuntime.jsxs("div", {
8309
8317
  style: {
@@ -1775,8 +1775,8 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
1775
1775
  padding: 30px var(--size-lg);
1776
1776
  }
1777
1777
 
1778
- .components-layout .sidenav-cont .sidenav-footer h6 {
1779
- color: white;
1778
+ .components-layout .sidenav-cont .sidenav-footer .text-col h6 {
1779
+ color: var(--custom-sidenav-text-color, white) !important;
1780
1780
  font-size: 10px;
1781
1781
  font-weight: 500;
1782
1782
  margin-bottom: 6px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.727",
3
+ "version": "0.6.728",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -70,8 +70,10 @@ export default function Sidenav({
70
70
  {hoverContentSecond}
71
71
  </div>
72
72
  {isDatastake && !isCollapsed ? (
73
- <div className="sidenav-footer">
74
- <h6>{t("Powered By")}</h6>
73
+ <div className="sidenav-footer text-col" >
74
+ <h6 style={{ color: logoVariant === "black" ? "#B5B5C3" : "white" }}>
75
+ {t("Powered By")}
76
+ </h6>
75
77
  <img
76
78
  src={
77
79
  poweredByLogo ||
@@ -88,6 +88,7 @@ const Sidenav = ({
88
88
  getRedirectLink = () => {},
89
89
  isDatastake,
90
90
  selectedProject,
91
+ logoVariant = "white",
91
92
  }) => {
92
93
  const hoverDiv = useRef();
93
94
  const hoverDivSecond = useRef();
@@ -248,6 +249,7 @@ const Sidenav = ({
248
249
  hoverContentSecond={hoverContentSecond}
249
250
  t={t}
250
251
  isDatastake={isDatastake}
252
+ logoVariant={logoVariant}
251
253
  >
252
254
  {showMenu ? (
253
255
  <SidenavMenu
@@ -126,6 +126,9 @@ function AppLayout({
126
126
  // Theme
127
127
  theme = {},
128
128
 
129
+ // Logo variant
130
+ logoVariant = "white",
131
+
129
132
  // Children
130
133
  children,
131
134
  }) {
@@ -165,6 +168,8 @@ function AppLayout({
165
168
  }
166
169
  };
167
170
 
171
+
172
+
168
173
  const logOut = () => {
169
174
  sessionStorage.removeItem('notifications');
170
175
  if (hasPrevious) {
@@ -278,7 +283,8 @@ function AppLayout({
278
283
  isDatastake={isDatastake}
279
284
  selectedProject={selectedProject}
280
285
  userHelpers={userHelpers}
281
- isDev={isDev}
286
+ isDev={isDev}
287
+ logoVariant={logoVariant}
282
288
  />
283
289
  </div>
284
290
  ) : null}
@@ -1775,8 +1775,8 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
1775
1775
  padding: 30px var(--size-lg);
1776
1776
  }
1777
1777
 
1778
- .components-layout .sidenav-cont .sidenav-footer h6 {
1779
- color: white;
1778
+ .components-layout .sidenav-cont .sidenav-footer .text-col h6 {
1779
+ color: var(--custom-sidenav-text-color, white) !important;
1780
1780
  font-size: 10px;
1781
1781
  font-weight: 500;
1782
1782
  margin-bottom: 6px;