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.js
CHANGED
|
@@ -11603,7 +11603,7 @@ var SidebarContainer = styled__default.div(_templateObject3$c || (_templateObjec
|
|
|
11603
11603
|
var $isMobileOpen = _ref7.$isMobileOpen;
|
|
11604
11604
|
return $isMobileOpen ? 'visible' : 'hidden';
|
|
11605
11605
|
});
|
|
11606
|
-
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
|
|
11606
|
+
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 /* 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) {
|
|
11607
11607
|
var $padding = _ref8.$padding;
|
|
11608
11608
|
return $padding;
|
|
11609
11609
|
}, function (_ref9) {
|
|
@@ -11628,7 +11628,7 @@ var SidebarLink = styled__default(reactRouterDom.NavLink)(_templateObject4$9 ||
|
|
|
11628
11628
|
var theme = _ref15.theme;
|
|
11629
11629
|
return theme.vms.text.white;
|
|
11630
11630
|
});
|
|
11631
|
-
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 (_ref16) {
|
|
11631
|
+
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\n /* Ensure icons inherit hover color from parent */\n svg {\n transition: none;\n }\n"])), function (_ref16) {
|
|
11632
11632
|
var $selected = _ref16.$selected,
|
|
11633
11633
|
theme = _ref16.theme;
|
|
11634
11634
|
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
@@ -11650,7 +11650,7 @@ var StyledContainer = styled__default(Container)(_templateObject6$8 || (_templat
|
|
|
11650
11650
|
return theme.vms.text.medium;
|
|
11651
11651
|
});
|
|
11652
11652
|
var Logo = styled__default(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"])));
|
|
11653
|
-
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:
|
|
11653
|
+
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: 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) {
|
|
11654
11654
|
var $padding = _ref22.$padding;
|
|
11655
11655
|
return $padding;
|
|
11656
11656
|
}, function (_ref23) {
|
|
@@ -11765,7 +11765,6 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11765
11765
|
};
|
|
11766
11766
|
var ChildLink = function ChildLink(_ref28) {
|
|
11767
11767
|
var child = _ref28.child;
|
|
11768
|
-
var themeColors = styled.useTheme();
|
|
11769
11768
|
var location = reactRouterDom.useLocation();
|
|
11770
11769
|
var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
|
|
11771
11770
|
var handleClick = React.useCallback(function (e) {
|
|
@@ -11787,7 +11786,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11787
11786
|
icon: child.icon,
|
|
11788
11787
|
size: 18,
|
|
11789
11788
|
weight: child.iconWeight,
|
|
11790
|
-
color:
|
|
11789
|
+
color: 'currentColor'
|
|
11791
11790
|
})), React__default.createElement(Container, {
|
|
11792
11791
|
"$width": '100%',
|
|
11793
11792
|
"$justifyContent": 'space-between',
|
|
@@ -11863,7 +11862,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11863
11862
|
icon: item.icon,
|
|
11864
11863
|
size: 20,
|
|
11865
11864
|
weight: item.iconWeight,
|
|
11866
|
-
color:
|
|
11865
|
+
color: 'currentColor'
|
|
11867
11866
|
})), getTotalNotifications(item) > 0 && ReactDOM.createPortal(React__default.createElement(NotificationBadge, {
|
|
11868
11867
|
id: "badge-" + item.id,
|
|
11869
11868
|
style: {
|
|
@@ -11878,7 +11877,7 @@ var Sidebar = function Sidebar(_ref26) {
|
|
|
11878
11877
|
cursor: 'pointer',
|
|
11879
11878
|
icon: isOpen ? 'UpArrow' : 'DownArrow',
|
|
11880
11879
|
size: 10,
|
|
11881
|
-
color:
|
|
11880
|
+
color: 'currentColor'
|
|
11882
11881
|
})));
|
|
11883
11882
|
var handleNavClick = React.useCallback(function (e) {
|
|
11884
11883
|
if (item.url === location.pathname) {
|