labsense-ui-kit 1.4.25 → 1.4.26
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 +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -11598,7 +11598,7 @@ var SidebarContainer = styled.div(_templateObject3$c || (_templateObject3$c = _t
|
|
|
11598
11598
|
var $isMobileOpen = _ref7.$isMobileOpen;
|
|
11599
11599
|
return $isMobileOpen ? 'visible' : 'hidden';
|
|
11600
11600
|
});
|
|
11601
|
-
var SidebarLink = styled(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
|
|
11601
|
+
var SidebarLink = styled(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 /* Remove all transitions for instant color changes */\n * {\n transition: none !important;\n }\n\n /* Hover state */\n &:hover {\n color: ", ";\n background: ", ";\n \n /* Make icons white on hover */\n svg {\n color: ", " !important;\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 }\n }\n"])), function (_ref8) {
|
|
11602
11602
|
var $padding = _ref8.$padding;
|
|
11603
11603
|
return $padding;
|
|
11604
11604
|
}, function (_ref9) {
|
|
@@ -11623,7 +11623,7 @@ var SidebarLink = styled(NavLink)(_templateObject4$9 || (_templateObject4$9 = _t
|
|
|
11623
11623
|
var theme = _ref15.theme;
|
|
11624
11624
|
return theme.vms.text.white;
|
|
11625
11625
|
});
|
|
11626
|
-
var IconWrapper$2 = styled.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 (_ref16) {
|
|
11626
|
+
var IconWrapper$2 = styled.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\n /* Ensure icons inherit hover color from parent */\n svg {\n transition: none;\n }\n"])), function (_ref16) {
|
|
11627
11627
|
var $selected = _ref16.$selected,
|
|
11628
11628
|
theme = _ref16.theme;
|
|
11629
11629
|
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
@@ -11645,7 +11645,7 @@ var StyledContainer = styled(Container)(_templateObject6$8 || (_templateObject6$
|
|
|
11645
11645
|
return theme.vms.text.medium;
|
|
11646
11646
|
});
|
|
11647
11647
|
var Logo = styled(Container)(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n transition: none;\n display: flex;\n width: 100%;\n min-width: max-content;\n align-items: center;\n justify-content: center;\n gap: 10px;\n"])));
|
|
11648
|
-
var TextContainer = styled.span(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n opacity: 0;\n visibility: hidden;\n transform: translateX(-10px);\n transition:
|
|
11648
|
+
var TextContainer = styled.span(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n opacity: 0;\n visibility: hidden;\n transform: translateX(-10px);\n transition: opacity 0.3s ease, visibility 0.3s ease, transform 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 (_ref22) {
|
|
11649
11649
|
var $padding = _ref22.$padding;
|
|
11650
11650
|
return $padding;
|
|
11651
11651
|
}, function (_ref23) {
|
|
@@ -11760,7 +11760,6 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11760
11760
|
};
|
|
11761
11761
|
var ChildLink = function ChildLink(_ref28) {
|
|
11762
11762
|
var child = _ref28.child;
|
|
11763
|
-
var themeColors = useTheme$1();
|
|
11764
11763
|
var location = useLocation();
|
|
11765
11764
|
var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
|
|
11766
11765
|
var handleClick = useCallback(function (e) {
|
|
@@ -11782,7 +11781,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11782
11781
|
icon: child.icon,
|
|
11783
11782
|
size: 18,
|
|
11784
11783
|
weight: child.iconWeight,
|
|
11785
|
-
color:
|
|
11784
|
+
color: 'currentColor'
|
|
11786
11785
|
})), React.createElement(Container, {
|
|
11787
11786
|
"$width": '100%',
|
|
11788
11787
|
"$justifyContent": 'space-between',
|
|
@@ -11858,7 +11857,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11858
11857
|
icon: item.icon,
|
|
11859
11858
|
size: 20,
|
|
11860
11859
|
weight: item.iconWeight,
|
|
11861
|
-
color:
|
|
11860
|
+
color: 'currentColor'
|
|
11862
11861
|
})), getTotalNotifications(item) > 0 && createPortal(React.createElement(NotificationBadge, {
|
|
11863
11862
|
id: "badge-" + item.id,
|
|
11864
11863
|
style: {
|
|
@@ -11873,7 +11872,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11873
11872
|
cursor: 'pointer',
|
|
11874
11873
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
11875
11874
|
size: 10,
|
|
11876
|
-
color:
|
|
11875
|
+
color: 'currentColor'
|
|
11877
11876
|
})));
|
|
11878
11877
|
var handleNavClick = useCallback(function (e) {
|
|
11879
11878
|
if (item.url === location.pathname) {
|