labsense-ui-kit 1.3.75 → 1.3.76

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 CHANGED
@@ -10768,48 +10768,49 @@ var ProgressBar = function ProgressBar(_ref3) {
10768
10768
  }));
10769
10769
  };
10770
10770
 
10771
- var _templateObject$n, _templateObject2$j, _templateObject3$c, _templateObject4$9, _templateObject5$8, _templateObject6$8, _templateObject7$6;
10772
- var SidebarContainer = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 68px;\n max-width: 68px;\n height: 100vh;\n background: ", ";\n transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n flex-direction: column;\n align-items: start;\n padding: 20px;\n position: fixed;\n left: 0;\n top: 0;\n overflow: hidden;\n z-index: 998;\n justify-content: space-between;\n gap: 24px;\n\n /* Expand on hover */\n &:hover {\n width: max-content;\n max-width: 400px;\n\n /* You can also add a class for children */\n span, .expandable {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n }\n"])), function (_ref) {
10773
- var $background = _ref.$background,
10774
- theme = _ref.theme;
10771
+ var _templateObject$n, _templateObject2$j, _templateObject3$c, _templateObject4$9, _templateObject5$8, _templateObject6$8, _templateObject7$6, _templateObject8$5, _templateObject9$5;
10772
+ var MOBILE_BREAKPOINT = '768px';
10773
+ var Overlay = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n display: none;\n \n @media (max-width: ", ") {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 997;\n opacity: ", ";\n visibility: ", ";\n transition: opacity 0.3s ease, visibility 0.3s ease;\n }\n"])), MOBILE_BREAKPOINT, function (_ref) {
10774
+ var $isOpen = _ref.$isOpen;
10775
+ return $isOpen ? 1 : 0;
10776
+ }, function (_ref2) {
10777
+ var $isOpen = _ref2.$isOpen;
10778
+ return $isOpen ? 'visible' : 'hidden';
10779
+ });
10780
+ var HamburgerButton = styled__default.button(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n display: none;\n \n @media (max-width: ", ") {\n display: flex;\n position: fixed;\n top: 20px;\n left: 20px;\n z-index: 999;\n background: ", ";\n border: none;\n border-radius: 8px;\n padding: 12px;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transition: transform 0.2s ease;\n\n &:active {\n transform: scale(0.95);\n }\n }\n"])), MOBILE_BREAKPOINT, function (_ref3) {
10781
+ var $background = _ref3.$background,
10782
+ theme = _ref3.theme;
10775
10783
  return $background || theme.vms.accent.softBlue;
10776
10784
  });
10777
- var SidebarLink = styled__default(reactRouterDom.NavLink)(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 28px;\n width: 100%;\n gap: 10px;\n cursor: pointer;\n border-radius: 4px;\n text-decoration: none;\n transition: none;\n padding: ", ";\n color: ", ";\n\n /* Hover state */\n &:hover {\n color: ", ";\n background: ", ";\n \n /* Make icons white on hover */\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n\n /* Active link state */\n &.active {\n color: ", ";\n background: ", ";\n \n /* Make icons white when active */\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n"])), function (_ref2) {
10778
- var $padding = _ref2.$padding;
10779
- return $padding;
10780
- }, function (_ref3) {
10781
- var theme = _ref3.theme;
10782
- return theme.vms.text.medium;
10783
- }, function (_ref4) {
10784
- var theme = _ref4.theme;
10785
- return theme.vms.text.white;
10786
- }, function (_ref5) {
10787
- var theme = _ref5.theme;
10788
- return theme.vms["default"].primary;
10785
+ var SidebarContainer = styled__default.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n width: 68px;\n max-width: 68px;\n height: 100vh;\n background: ", ";\n transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n flex-direction: column;\n align-items: start;\n padding: 20px;\n position: fixed;\n left: 0;\n top: 0;\n overflow: hidden;\n z-index: 998;\n justify-content: space-between;\n gap: 24px;\n\n /* Expand on hover */\n &:hover {\n width: max-content;\n max-width: 400px;\n\n /* You can also add a class for children */\n span, .expandable {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n }\n\n /* Mobile styles */\n @media (max-width: ", ") {\n transform: translateX(", ");\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n width: 280px;\n max-width: 280px;\n box-shadow: ", ";\n\n /* Always show text on mobile when open */\n span, .expandable {\n opacity: ", ";\n visibility: ", ";\n transform: translateX(0);\n }\n\n /* Disable hover expansion on mobile */\n &:hover {\n width: 280px;\n max-width: 280px;\n }\n }\n"])), function (_ref4) {
10786
+ var $background = _ref4.$background,
10787
+ theme = _ref4.theme;
10788
+ return $background || theme.vms.accent.softBlue;
10789
+ }, MOBILE_BREAKPOINT, function (_ref5) {
10790
+ var $isMobileOpen = _ref5.$isMobileOpen;
10791
+ return $isMobileOpen ? '0' : '-100%';
10789
10792
  }, function (_ref6) {
10790
- var theme = _ref6.theme;
10791
- return theme.vms.text.white;
10793
+ var $isMobileOpen = _ref6.$isMobileOpen;
10794
+ return $isMobileOpen ? '2px 0 8px rgba(0, 0, 0, 0.15)' : 'none';
10792
10795
  }, function (_ref7) {
10793
- var theme = _ref7.theme;
10794
- return theme.vms.text.white;
10796
+ var $isMobileOpen = _ref7.$isMobileOpen;
10797
+ return $isMobileOpen ? 1 : 0;
10795
10798
  }, function (_ref8) {
10796
- var theme = _ref8.theme;
10797
- return theme.vms["default"].primary;
10798
- }, function (_ref9) {
10799
- var theme = _ref9.theme;
10800
- return theme.vms.text.white;
10799
+ var $isMobileOpen = _ref8.$isMobileOpen;
10800
+ return $isMobileOpen ? 'visible' : 'hidden';
10801
10801
  });
10802
- var IconWrapper$2 = styled__default.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n background: ", ";\n transition: none;\n padding: 4px;\n border-radius: 4px;\n width: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_ref10) {
10803
- var $selected = _ref10.$selected,
10804
- theme = _ref10.theme;
10805
- return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
10806
- });
10807
- var StyledContainer = styled__default(Container)(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n transition: none;\n\n svg {\n transition: none;\n }\n\n /* Parent hover / active */\n &:hover,\n &.active {\n svg {\n color: ", " !important;\n }\n }\n\n /* 2nd child reacts ONLY when parent is hovered */\n &:hover > div:nth-child(2) {\n svg {\n color: ", " !important;\n\n path {\n stroke: ", " !important;\n }\n }\n }\n\n /* Default state for 2nd child */\n > div:nth-child(2) {\n svg {\n color: ", " !important;\n\n path {\n stroke: ", " !important;\n }\n }\n }\n"])), function (_ref11) {
10802
+ var SidebarLink = styled__default(reactRouterDom.NavLink)(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 28px;\n width: 100%;\n gap: 10px;\n cursor: pointer;\n border-radius: 4px;\n text-decoration: none;\n transition: none;\n padding: ", ";\n color: ", ";\n\n /* Hover state */\n &:hover {\n color: ", ";\n background: ", ";\n \n /* Make icons white on hover */\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n\n /* Active link state */\n &.active {\n color: ", ";\n background: ", ";\n \n /* Make icons white when active */\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n"])), function (_ref9) {
10803
+ var $padding = _ref9.$padding;
10804
+ return $padding;
10805
+ }, function (_ref10) {
10806
+ var theme = _ref10.theme;
10807
+ return theme.vms.text.medium;
10808
+ }, function (_ref11) {
10808
10809
  var theme = _ref11.theme;
10809
10810
  return theme.vms.text.white;
10810
10811
  }, function (_ref12) {
10811
10812
  var theme = _ref12.theme;
10812
- return theme.vms.text.white;
10813
+ return theme.vms["default"].primary;
10813
10814
  }, function (_ref13) {
10814
10815
  var theme = _ref13.theme;
10815
10816
  return theme.vms.text.white;
@@ -10818,38 +10819,68 @@ var StyledContainer = styled__default(Container)(_templateObject4$9 || (_templat
10818
10819
  return theme.vms.text.white;
10819
10820
  }, function (_ref15) {
10820
10821
  var theme = _ref15.theme;
10822
+ return theme.vms["default"].primary;
10823
+ }, function (_ref16) {
10824
+ var theme = _ref16.theme;
10825
+ return theme.vms.text.white;
10826
+ });
10827
+ var IconWrapper$2 = styled__default.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n background: ", ";\n transition: none;\n padding: 4px;\n border-radius: 4px;\n width: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_ref17) {
10828
+ var $selected = _ref17.$selected,
10829
+ theme = _ref17.theme;
10830
+ return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
10831
+ });
10832
+ var StyledContainer = styled__default(Container)(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n transition: none;\n\n svg {\n transition: none;\n }\n\n /* Parent hover / active */\n &:hover,\n &.active {\n svg {\n color: ", " !important;\n }\n }\n\n /* 2nd child reacts ONLY when parent is hovered */\n &:hover > div:nth-child(2) {\n svg {\n color: ", " !important;\n\n path {\n stroke: ", " !important;\n }\n }\n }\n\n /* Default state for 2nd child */\n > div:nth-child(2) {\n svg {\n color: ", " !important;\n\n path {\n stroke: ", " !important;\n }\n }\n }\n"])), function (_ref18) {
10833
+ var theme = _ref18.theme;
10834
+ return theme.vms.text.white;
10835
+ }, function (_ref19) {
10836
+ var theme = _ref19.theme;
10837
+ return theme.vms.text.white;
10838
+ }, function (_ref20) {
10839
+ var theme = _ref20.theme;
10840
+ return theme.vms.text.white;
10841
+ }, function (_ref21) {
10842
+ var theme = _ref21.theme;
10843
+ return theme.vms.text.white;
10844
+ }, function (_ref22) {
10845
+ var theme = _ref22.theme;
10821
10846
  return theme.vms.text.medium;
10822
10847
  });
10823
- var Logo = styled__default.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n transition: none;\n display: flex;\n width: 100%;\n min-width: max-content;\n height: 32px;\n align-items: center;\n justify-content: center;\n gap: 10px;\n"])));
10824
- var TextContainer = styled__default.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n opacity: 0;\n visibility: hidden;\n transform: translateX(-10px);\n transition: all 0.3s ease;\n padding: ", ";\n font-size: ", ";\n font-weight: ", ";\n\n ", ":hover & {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n"])), function (_ref16) {
10825
- var $padding = _ref16.$padding;
10848
+ var Logo = styled__default.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n transition: none;\n display: flex;\n width: 100%;\n min-width: max-content;\n height: 32px;\n align-items: center;\n justify-content: center;\n gap: 10px;\n"])));
10849
+ var TextContainer = styled__default.span(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n opacity: 0;\n visibility: hidden;\n transform: translateX(-10px);\n transition: all 0.3s ease;\n padding: ", ";\n font-size: ", ";\n font-weight: ", ";\n\n ", ":hover & {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n\n /* Mobile: Always visible when sidebar is open */\n @media (max-width: ", ") {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n"])), function (_ref23) {
10850
+ var $padding = _ref23.$padding;
10826
10851
  return $padding;
10827
- }, function (_ref17) {
10828
- var $fontSize = _ref17.$fontSize;
10852
+ }, function (_ref24) {
10853
+ var $fontSize = _ref24.$fontSize;
10829
10854
  return $fontSize || '20px';
10830
- }, function (_ref18) {
10831
- var $fontWeight = _ref18.$fontWeight;
10855
+ }, function (_ref25) {
10856
+ var $fontWeight = _ref25.$fontWeight;
10832
10857
  return $fontWeight || '500';
10833
- }, SidebarContainer);
10834
- var NotificationBadge = styled__default.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n position: ", ";\n // top: -4px;\n // right: 4px;\n background: red;\n color: white;\n font-size: 10px;\n font-weight: bold;\n border-radius: 50%;\n padding: 2px 5px;\n min-width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n width: max-content;\n"])), function (_ref19) {
10835
- var $position = _ref19.$position;
10858
+ }, SidebarContainer, MOBILE_BREAKPOINT);
10859
+ var NotificationBadge = styled__default.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n position: ", ";\n // top: -4px;\n // right: 4px;\n background: red;\n color: white;\n font-size: 10px;\n font-weight: bold;\n border-radius: 50%;\n padding: 2px 5px;\n min-width: 16px;\n height: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n width: max-content;\n"])), function (_ref26) {
10860
+ var $position = _ref26.$position;
10836
10861
  return $position || 'absolute';
10837
10862
  });
10838
- var Sidebar = function Sidebar(_ref20) {
10839
- var logo = _ref20.logo,
10840
- content = _ref20.content,
10841
- background = _ref20.background,
10842
- ProfileContent = _ref20.ProfileContent,
10843
- _ref20$isExpanded = _ref20.isExpanded,
10844
- isExpanded = _ref20$isExpanded === void 0 ? false : _ref20$isExpanded,
10845
- setIsExpanded = _ref20.setIsExpanded;
10863
+ var Sidebar = function Sidebar(_ref27) {
10864
+ var logo = _ref27.logo,
10865
+ content = _ref27.content,
10866
+ background = _ref27.background,
10867
+ ProfileContent = _ref27.ProfileContent,
10868
+ _ref27$isExpanded = _ref27.isExpanded,
10869
+ isExpanded = _ref27$isExpanded === void 0 ? false : _ref27$isExpanded,
10870
+ setIsExpanded = _ref27.setIsExpanded;
10846
10871
  var location = reactRouterDom.useLocation();
10847
10872
  var _useState = React.useState({}),
10848
10873
  openMenus = _useState[0],
10849
10874
  setOpenMenus = _useState[1];
10875
+ var _useState2 = React.useState(false),
10876
+ isMobileOpen = _useState2[0],
10877
+ setIsMobileOpen = _useState2[1];
10878
+ var _useState3 = React.useState(false),
10879
+ isMobile = _useState3[0],
10880
+ setIsMobile = _useState3[1];
10850
10881
  var isExpandedRef = React.useRef(isExpanded);
10851
10882
  var sidebarRef = React.useRef(null);
10852
- var _useState2 = React.useState(function () {
10883
+ var _useState4 = React.useState(function () {
10853
10884
  var container = document.getElementById('badge-portal-container');
10854
10885
  if (!container) {
10855
10886
  container = document.createElement('div');
@@ -10861,16 +10892,39 @@ var Sidebar = function Sidebar(_ref20) {
10861
10892
  }
10862
10893
  return container;
10863
10894
  }),
10864
- badgePortalContainer = _useState2[0];
10895
+ badgePortalContainer = _useState4[0];
10896
+ React.useEffect(function () {
10897
+ var checkMobile = function checkMobile() {
10898
+ setIsMobile(window.innerWidth <= 768);
10899
+ };
10900
+ checkMobile();
10901
+ window.addEventListener('resize', checkMobile);
10902
+ return function () {
10903
+ window.removeEventListener('resize', checkMobile);
10904
+ };
10905
+ }, []);
10865
10906
  React.useEffect(function () {
10866
10907
  isExpandedRef.current = isExpanded;
10867
10908
  if (!isExpanded) setOpenMenus({});
10868
10909
  }, [isExpanded]);
10910
+ var toggleMobileMenu = React.useCallback(function () {
10911
+ setIsMobileOpen(function (prev) {
10912
+ return !prev;
10913
+ });
10914
+ }, []);
10915
+ var closeMobileMenu = React.useCallback(function () {
10916
+ if (isMobile) {
10917
+ setIsMobileOpen(false);
10918
+ }
10919
+ }, [isMobile]);
10920
+ var handleOverlayClick = React.useCallback(function () {
10921
+ setIsMobileOpen(false);
10922
+ }, []);
10869
10923
  var toggleMenu = function toggleMenu(id) {
10870
10924
  setOpenMenus(function (prev) {
10871
- var _ref21;
10925
+ var _ref28;
10872
10926
  var isCurrentlyOpen = !!prev[id];
10873
- return isCurrentlyOpen ? {} : (_ref21 = {}, _ref21[id] = true, _ref21);
10927
+ return isCurrentlyOpen ? {} : (_ref28 = {}, _ref28[id] = true, _ref28);
10874
10928
  });
10875
10929
  };
10876
10930
  var getTotalNotifications = React.useCallback(function (item) {
@@ -10895,8 +10949,8 @@ var Sidebar = function Sidebar(_ref20) {
10895
10949
  return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
10896
10950
  }));
10897
10951
  };
10898
- var ChildLink = function ChildLink(_ref22) {
10899
- var child = _ref22.child;
10952
+ var ChildLink = function ChildLink(_ref29) {
10953
+ var child = _ref29.child;
10900
10954
  var themeColors = styled.useTheme();
10901
10955
  var location = reactRouterDom.useLocation();
10902
10956
  var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
@@ -10904,6 +10958,7 @@ var Sidebar = function Sidebar(_ref20) {
10904
10958
  if (child.url && child.url === location.pathname) {
10905
10959
  e.preventDefault();
10906
10960
  }
10961
+ closeMobileMenu();
10907
10962
  }, [child.url, location.pathname]);
10908
10963
  return React__default.createElement(SidebarLink, {
10909
10964
  to: child.url || '#',
@@ -10942,14 +10997,14 @@ var Sidebar = function Sidebar(_ref20) {
10942
10997
  });
10943
10998
  }));
10944
10999
  };
10945
- var SidebarItem = function SidebarItem(_ref23) {
10946
- var item = _ref23.item,
10947
- isActive = _ref23.isActive,
10948
- isOpen = _ref23.isOpen,
10949
- hasChildren = _ref23.hasChildren,
10950
- isExpanded = _ref23.isExpanded,
10951
- onToggle = _ref23.onToggle,
10952
- renderChildLinks = _ref23.renderChildLinks;
11000
+ var SidebarItem = function SidebarItem(_ref30) {
11001
+ var item = _ref30.item,
11002
+ isActive = _ref30.isActive,
11003
+ isOpen = _ref30.isOpen,
11004
+ hasChildren = _ref30.hasChildren,
11005
+ isExpanded = _ref30.isExpanded,
11006
+ onToggle = _ref30.onToggle,
11007
+ renderChildLinks = _ref30.renderChildLinks;
10953
11008
  var themeColors = styled.useTheme();
10954
11009
  var activeClass = isActive ? 'active' : '';
10955
11010
  var handleClick = React.useCallback(function () {
@@ -11014,6 +11069,7 @@ var Sidebar = function Sidebar(_ref20) {
11014
11069
  if (item.url === location.pathname) {
11015
11070
  e.preventDefault();
11016
11071
  }
11072
+ closeMobileMenu();
11017
11073
  }, [item.url]);
11018
11074
  return item.url ? React__default.createElement(SidebarLink, {
11019
11075
  to: item.url,
@@ -11046,6 +11102,7 @@ var Sidebar = function Sidebar(_ref20) {
11046
11102
  var sidebar = sidebarRef.current;
11047
11103
  if (!sidebar) return;
11048
11104
  if (typeof ResizeObserver === 'undefined') return;
11105
+ if (isMobile) return;
11049
11106
  var resizeObserver = new ResizeObserver(function (entries) {
11050
11107
  for (var _iterator = _createForOfIteratorHelperLoose(entries), _step; !(_step = _iterator()).done;) {
11051
11108
  var entry = _step.value;
@@ -11061,7 +11118,7 @@ var Sidebar = function Sidebar(_ref20) {
11061
11118
  return function () {
11062
11119
  resizeObserver.disconnect();
11063
11120
  };
11064
- }, [handleSidebarExpansion]);
11121
+ }, [handleSidebarExpansion, isMobile]);
11065
11122
  React.useEffect(function () {
11066
11123
  var updateBadgePositions = function updateBadgePositions() {
11067
11124
  content.forEach(function (item) {
@@ -11082,9 +11139,22 @@ var Sidebar = function Sidebar(_ref20) {
11082
11139
  window.removeEventListener('resize', updateBadgePositions);
11083
11140
  };
11084
11141
  }, [content, isExpanded, getTotalNotifications]);
11085
- return React__default.createElement(SidebarContainer, {
11142
+ var themeColors = styled.useTheme();
11143
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(HamburgerButton, {
11144
+ "$background": background,
11145
+ onClick: toggleMobileMenu,
11146
+ "aria-label": "Toggle menu"
11147
+ }, React__default.createElement(Icon, {
11148
+ icon: isMobileOpen ? 'X' : 'Hamburger',
11149
+ size: 24,
11150
+ color: themeColors.vms.text.white
11151
+ })), React__default.createElement(Overlay, {
11152
+ "$isOpen": isMobileOpen,
11153
+ onClick: handleOverlayClick
11154
+ }), React__default.createElement(SidebarContainer, {
11086
11155
  ref: sidebarRef,
11087
- "$background": background
11156
+ "$background": background,
11157
+ "$isMobileOpen": isMobileOpen
11088
11158
  }, React__default.createElement(Container, {
11089
11159
  "$flexDirection": 'column',
11090
11160
  "$gap": '28px',
@@ -11115,13 +11185,13 @@ var Sidebar = function Sidebar(_ref20) {
11115
11185
  isActive: active,
11116
11186
  isOpen: isOpen,
11117
11187
  hasChildren: hasChildren,
11118
- isExpanded: isExpanded,
11188
+ isExpanded: isMobile ? isMobileOpen : isExpanded,
11119
11189
  onToggle: function onToggle() {
11120
11190
  return toggleMenu(item.id);
11121
11191
  },
11122
11192
  renderChildLinks: renderChildLinks
11123
11193
  });
11124
- }))), ProfileContent);
11194
+ }))), ProfileContent));
11125
11195
  };
11126
11196
 
11127
11197
  var _templateObject$o, _templateObject2$k, _templateObject3$d, _templateObject4$a;