labsense-ui-kit 1.2.77 → 1.2.78

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.
@@ -9,6 +9,7 @@ export interface SidebarItems {
9
9
  activeUrl?: string;
10
10
  notificationCount?: number;
11
11
  children?: SidebarItems[];
12
+ onClick?: () => void;
12
13
  }
13
14
  export interface ImageDetails {
14
15
  url: string;
package/dist/index.js CHANGED
@@ -9467,7 +9467,14 @@ var Sidebar = function Sidebar(_ref22) {
9467
9467
  }, [item.url, location.pathname]);
9468
9468
  return item.url ? React__default.createElement(SidebarLink, {
9469
9469
  to: item.url,
9470
- onClick: handleNavClick
9470
+ onClick: function onClick(e) {
9471
+ if (item.onClick) {
9472
+ e.preventDefault();
9473
+ item.onClick();
9474
+ } else {
9475
+ handleNavClick(e);
9476
+ }
9477
+ }
9471
9478
  }, ContentLayout) : React__default.createElement(Container, {
9472
9479
  "$flexDirection": 'column',
9473
9480
  "$alignItems": 'start',