labsense-ui-kit 1.3.61 → 1.3.62

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
@@ -10469,36 +10469,45 @@ var IconWrapper$2 = styled__default.div(_templateObject3$c || (_templateObject3$
10469
10469
  theme = _ref10.theme;
10470
10470
  return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
10471
10471
  });
10472
- var StyledContainer = styled__default(Container)(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n transition: none;\n \n &:hover {\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n \n &.active {\n svg {\n color: ", " !important;\n transition: none;\n }\n }\n"])), function (_ref11) {
10472
+ 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) {
10473
10473
  var theme = _ref11.theme;
10474
10474
  return theme.vms.text.white;
10475
10475
  }, function (_ref12) {
10476
10476
  var theme = _ref12.theme;
10477
10477
  return theme.vms.text.white;
10478
+ }, function (_ref13) {
10479
+ var theme = _ref13.theme;
10480
+ return theme.vms.text.white;
10481
+ }, function (_ref14) {
10482
+ var theme = _ref14.theme;
10483
+ return theme.vms.text.white;
10484
+ }, function (_ref15) {
10485
+ var theme = _ref15.theme;
10486
+ return theme.vms.text.medium;
10478
10487
  });
10479
10488
  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"])));
10480
- 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 (_ref13) {
10481
- var $padding = _ref13.$padding;
10489
+ 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) {
10490
+ var $padding = _ref16.$padding;
10482
10491
  return $padding;
10483
- }, function (_ref14) {
10484
- var $fontSize = _ref14.$fontSize;
10492
+ }, function (_ref17) {
10493
+ var $fontSize = _ref17.$fontSize;
10485
10494
  return $fontSize || '20px';
10486
- }, function (_ref15) {
10487
- var $fontWeight = _ref15.$fontWeight;
10495
+ }, function (_ref18) {
10496
+ var $fontWeight = _ref18.$fontWeight;
10488
10497
  return $fontWeight || '500';
10489
10498
  }, SidebarContainer);
10490
- 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 (_ref16) {
10491
- var $position = _ref16.$position;
10499
+ 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) {
10500
+ var $position = _ref19.$position;
10492
10501
  return $position || 'absolute';
10493
10502
  });
10494
- var Sidebar = function Sidebar(_ref17) {
10495
- var logo = _ref17.logo,
10496
- content = _ref17.content,
10497
- background = _ref17.background,
10498
- ProfileContent = _ref17.ProfileContent,
10499
- _ref17$isExpanded = _ref17.isExpanded,
10500
- isExpanded = _ref17$isExpanded === void 0 ? false : _ref17$isExpanded,
10501
- setIsExpanded = _ref17.setIsExpanded;
10503
+ var Sidebar = function Sidebar(_ref20) {
10504
+ var logo = _ref20.logo,
10505
+ content = _ref20.content,
10506
+ background = _ref20.background,
10507
+ ProfileContent = _ref20.ProfileContent,
10508
+ _ref20$isExpanded = _ref20.isExpanded,
10509
+ isExpanded = _ref20$isExpanded === void 0 ? false : _ref20$isExpanded,
10510
+ setIsExpanded = _ref20.setIsExpanded;
10502
10511
  var location = reactRouterDom.useLocation();
10503
10512
  var _useState = React.useState({}),
10504
10513
  openMenus = _useState[0],
@@ -10523,9 +10532,9 @@ var Sidebar = function Sidebar(_ref17) {
10523
10532
  }, [isExpanded]);
10524
10533
  var toggleMenu = function toggleMenu(id) {
10525
10534
  setOpenMenus(function (prev) {
10526
- var _ref18;
10535
+ var _ref21;
10527
10536
  var isCurrentlyOpen = !!prev[id];
10528
- return isCurrentlyOpen ? {} : (_ref18 = {}, _ref18[id] = true, _ref18);
10537
+ return isCurrentlyOpen ? {} : (_ref21 = {}, _ref21[id] = true, _ref21);
10529
10538
  });
10530
10539
  };
10531
10540
  var getTotalNotifications = React.useCallback(function (item) {
@@ -10550,8 +10559,8 @@ var Sidebar = function Sidebar(_ref17) {
10550
10559
  return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
10551
10560
  }));
10552
10561
  };
10553
- var ChildLink = React__default.memo(function (_ref19) {
10554
- var child = _ref19.child;
10562
+ var ChildLink = React__default.memo(function (_ref22) {
10563
+ var child = _ref22.child;
10555
10564
  var themeColors = styled.useTheme();
10556
10565
  var location = reactRouterDom.useLocation();
10557
10566
  var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
@@ -10597,14 +10606,14 @@ var Sidebar = function Sidebar(_ref17) {
10597
10606
  });
10598
10607
  }));
10599
10608
  };
10600
- var SidebarItem = React__default.memo(function (_ref20) {
10601
- var item = _ref20.item,
10602
- isActive = _ref20.isActive,
10603
- isOpen = _ref20.isOpen,
10604
- hasChildren = _ref20.hasChildren,
10605
- isExpanded = _ref20.isExpanded,
10606
- onToggle = _ref20.onToggle,
10607
- renderChildLinks = _ref20.renderChildLinks;
10609
+ var SidebarItem = React__default.memo(function (_ref23) {
10610
+ var item = _ref23.item,
10611
+ isActive = _ref23.isActive,
10612
+ isOpen = _ref23.isOpen,
10613
+ hasChildren = _ref23.hasChildren,
10614
+ isExpanded = _ref23.isExpanded,
10615
+ onToggle = _ref23.onToggle,
10616
+ renderChildLinks = _ref23.renderChildLinks;
10608
10617
  var themeColors = styled.useTheme();
10609
10618
  var activeClass = isActive ? 'active' : '';
10610
10619
  var handleClick = React.useCallback(function () {