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