labsense-ui-kit 1.1.80 → 1.1.81
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/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6948,6 +6948,7 @@ var Sidebar = function Sidebar(_ref12) {
|
|
|
6948
6948
|
_ref12$isExpanded = _ref12.isExpanded,
|
|
6949
6949
|
isExpanded = _ref12$isExpanded === void 0 ? false : _ref12$isExpanded,
|
|
6950
6950
|
setIsExpanded = _ref12.setIsExpanded;
|
|
6951
|
+
var themeColors = useTheme();
|
|
6951
6952
|
var location = reactRouterDom.useLocation();
|
|
6952
6953
|
var _useState = React.useState({}),
|
|
6953
6954
|
openMenus = _useState[0],
|
|
@@ -6983,12 +6984,12 @@ var Sidebar = function Sidebar(_ref12) {
|
|
|
6983
6984
|
icon: child.icon,
|
|
6984
6985
|
size: 18,
|
|
6985
6986
|
weight: child.iconWeight,
|
|
6986
|
-
color: active ?
|
|
6987
|
+
color: active ? themeColors.text.white : themeColors.text.medium
|
|
6987
6988
|
})), React__default.createElement(TextContainer, {
|
|
6988
6989
|
"$isExpanded": isExpanded,
|
|
6989
6990
|
"$fontSize": '12px',
|
|
6990
6991
|
"$padding": '0px 10px 0px 0px',
|
|
6991
|
-
"$color":
|
|
6992
|
+
"$color": themeColors.text.medium
|
|
6992
6993
|
}, child.label));
|
|
6993
6994
|
}));
|
|
6994
6995
|
};
|
|
@@ -7025,7 +7026,7 @@ var Sidebar = function Sidebar(_ref12) {
|
|
|
7025
7026
|
"$width": '100%',
|
|
7026
7027
|
"$cursor": 'pointer',
|
|
7027
7028
|
"$borderRadius": '4px',
|
|
7028
|
-
"$hoverBackground":
|
|
7029
|
+
"$hoverBackground": themeColors["default"].primary,
|
|
7029
7030
|
onClick: function onClick() {
|
|
7030
7031
|
return hasChildren && toggleMenu(item.id);
|
|
7031
7032
|
}
|
|
@@ -7035,16 +7036,16 @@ var Sidebar = function Sidebar(_ref12) {
|
|
|
7035
7036
|
icon: item.icon,
|
|
7036
7037
|
size: 20,
|
|
7037
7038
|
weight: item.iconWeight,
|
|
7038
|
-
color: active ?
|
|
7039
|
+
color: active ? themeColors.text.white : themeColors.text.medium
|
|
7039
7040
|
})), React__default.createElement(TextContainer, {
|
|
7040
7041
|
"$isExpanded": isExpanded,
|
|
7041
7042
|
"$fontSize": '14px',
|
|
7042
7043
|
"$padding": '0px 10px 0px 0px',
|
|
7043
|
-
"$color":
|
|
7044
|
+
"$color": themeColors.text.medium
|
|
7044
7045
|
}, item.label), hasChildren && React__default.createElement(Icon, {
|
|
7045
7046
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
7046
7047
|
size: 10,
|
|
7047
|
-
color:
|
|
7048
|
+
color: themeColors.border.extraBold,
|
|
7048
7049
|
onClick: function onClick() {}
|
|
7049
7050
|
}));
|
|
7050
7051
|
return item.url ? React__default.createElement(SidebarLink, {
|