blue-react 8.9.1 → 8.9.3

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.
@@ -76,7 +76,7 @@ var Layout = /*#__PURE__*/function (_Component) {
76
76
  _this.defaultMatch = ["home"];
77
77
  _this.state = {
78
78
  sidebarIn: props.sidebarIn || false,
79
- expandSidebar: props.expandSidebar || localStorage.getItem("blueLayoutExpandSidebar") !== null,
79
+ expandSidebar: props.expandSidebar || localStorage.getItem("blueLayoutShrinkSidebar") === null,
80
80
  match: null,
81
81
  history: [],
82
82
  hash: window.location.hash,
@@ -259,9 +259,9 @@ var Layout = /*#__PURE__*/function (_Component) {
259
259
  var expandSidebar = this.state.expandSidebar;
260
260
 
261
261
  if (expandSidebar) {
262
- localStorage.removeItem("blueLayoutExpandSidebar");
262
+ localStorage.setItem("blueLayoutShrinkSidebar", "true");
263
263
  } else {
264
- localStorage.setItem("blueLayoutExpandSidebar", "true");
264
+ localStorage.removeItem("blueLayoutShrinkSidebar");
265
265
  }
266
266
 
267
267
  this.setState({
@@ -94,7 +94,7 @@ function MenuItem(props) {
94
94
  (0, _react.useEffect)(function () {
95
95
  if (props.showDropdown !== undefined) setShowDropdown(props.showDropdown);
96
96
  }, [props.showDropdown]);
97
- var className = "blue-menu-item btn" + (props.isActive ? " active" : "") + (props.className ? " " + props.className : "") + (props.children ? " blue-menu-item-dropdown-toggle" : "");
97
+ var className = "blue-menu-item btn" + (props.isActive ? " active" : "") + (props.className ? " " + props.className : "") + (props.children ? " blue-menu-item-dropdown-toggle" : "") + (props.highlighted ? " highlighted" : "");
98
98
  var icon, iconForActive;
99
99
 
100
100
  if (typeof props.icon === "string") {
@@ -100,7 +100,7 @@ function SidebarMenuItem(_ref) {
100
100
  setOpen(false);
101
101
  }
102
102
  }, /*#__PURE__*/_react.default.createElement(SidebarMenuItem, _extends({}, props, {
103
- isActive: open,
103
+ highlighted: open,
104
104
  onClick: toggle
105
105
  })), open && /*#__PURE__*/_react.default.createElement("div", {
106
106
  ref: menuRef,