labsense-ui-kit 1.4.57 → 1.4.58
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 +28 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12554,7 +12554,7 @@ var SidebarContainer = styled__default.div(_templateObject3$c || (_templateObjec
|
|
|
12554
12554
|
var $isMobileOpen = _ref7.$isMobileOpen;
|
|
12555
12555
|
return $isMobileOpen ? 'visible' : 'hidden';
|
|
12556
12556
|
});
|
|
12557
|
-
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
|
|
12557
|
+
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 / active / keyboard-focus share the same highlight, so the icon\n switches color together with the fill instead of the ring appearing alone */\n &:hover,\n &.active,\n &:focus-visible {\n color: ", ";\n background: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n /* text.dark tracks the sidebar's own surface (near-black on the light\n theme, white on the dark theme) so the ring stays visible in both,\n unlike text.white which is calibrated for text sitting on the primary fill */\n &:focus-visible {\n box-shadow: inset 0 0 0 2px ", ";\n }\n"])), function (_ref8) {
|
|
12558
12558
|
var $padding = _ref8.$padding;
|
|
12559
12559
|
return $padding;
|
|
12560
12560
|
}, function (_ref9) {
|
|
@@ -12571,37 +12571,37 @@ var SidebarLink = styled__default(reactRouterDom.NavLink)(_templateObject4$9 ||
|
|
|
12571
12571
|
return theme.vms.text.white;
|
|
12572
12572
|
}, function (_ref13) {
|
|
12573
12573
|
var theme = _ref13.theme;
|
|
12574
|
-
return theme.vms.text.
|
|
12575
|
-
}
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12574
|
+
return theme.vms.text.dark;
|
|
12575
|
+
});
|
|
12576
|
+
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 (_ref14) {
|
|
12577
|
+
var $selected = _ref14.$selected,
|
|
12578
|
+
theme = _ref14.theme;
|
|
12579
|
+
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
12580
|
+
});
|
|
12581
|
+
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 / keyboard-focus (for rows with no url of their\n own - see the tabIndex added in SidebarItem) */\n &:hover,\n &.active,\n &:focus-visible {\n svg {\n color: ", " !important;\n }\n }\n\n /* 2nd child reacts ONLY when parent is hovered or keyboard-focused */\n &:hover > div:nth-child(2),\n &:focus-visible > 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\n &:focus {\n outline: none;\n }\n\n /* Same fill + ring treatment as SidebarLink, for rows made keyboard-focusable below */\n &:focus-visible {\n background: ", ";\n color: ", ";\n box-shadow: inset 0 0 0 2px ", ";\n }\n"])), function (_ref15) {
|
|
12579
12582
|
var theme = _ref15.theme;
|
|
12580
12583
|
return theme.vms.text.white;
|
|
12581
12584
|
}, function (_ref16) {
|
|
12582
12585
|
var theme = _ref16.theme;
|
|
12583
12586
|
return theme.vms.text.white;
|
|
12584
|
-
})
|
|
12585
|
-
var
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
12589
|
-
});
|
|
12590
|
-
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) {
|
|
12587
|
+
}, function (_ref17) {
|
|
12588
|
+
var theme = _ref17.theme;
|
|
12589
|
+
return theme.vms.text.white;
|
|
12590
|
+
}, function (_ref18) {
|
|
12591
12591
|
var theme = _ref18.theme;
|
|
12592
12592
|
return theme.vms.text.white;
|
|
12593
12593
|
}, function (_ref19) {
|
|
12594
12594
|
var theme = _ref19.theme;
|
|
12595
|
-
return theme.vms.text.
|
|
12595
|
+
return theme.vms.text.medium;
|
|
12596
12596
|
}, function (_ref20) {
|
|
12597
12597
|
var theme = _ref20.theme;
|
|
12598
|
-
return theme.vms.
|
|
12598
|
+
return theme.vms["default"].primary;
|
|
12599
12599
|
}, function (_ref21) {
|
|
12600
12600
|
var theme = _ref21.theme;
|
|
12601
12601
|
return theme.vms.text.white;
|
|
12602
12602
|
}, function (_ref22) {
|
|
12603
12603
|
var theme = _ref22.theme;
|
|
12604
|
-
return theme.vms.text.
|
|
12604
|
+
return theme.vms.text.dark;
|
|
12605
12605
|
});
|
|
12606
12606
|
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"])));
|
|
12607
12607
|
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 (_ref23) {
|
|
@@ -12780,6 +12780,7 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
12780
12780
|
onToggle();
|
|
12781
12781
|
}
|
|
12782
12782
|
}, [hasChildren, onToggle]);
|
|
12783
|
+
var isOwnFocusTarget = !item.url && hasChildren;
|
|
12783
12784
|
var ContentLayout = React__default.createElement(StyledContainer, {
|
|
12784
12785
|
className: activeClass,
|
|
12785
12786
|
"$alignItems": 'center',
|
|
@@ -12789,7 +12790,16 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
12789
12790
|
"$borderRadius": '4px',
|
|
12790
12791
|
"$justifyContent": 'space-between',
|
|
12791
12792
|
"$hoverBackground": themeColors.vms["default"].primary,
|
|
12792
|
-
onClick: handleClick
|
|
12793
|
+
onClick: handleClick,
|
|
12794
|
+
role: isOwnFocusTarget ? 'button' : undefined,
|
|
12795
|
+
tabIndex: isOwnFocusTarget ? 0 : undefined,
|
|
12796
|
+
"aria-expanded": isOwnFocusTarget ? isOpen : undefined,
|
|
12797
|
+
onKeyDown: isOwnFocusTarget ? function (e) {
|
|
12798
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
12799
|
+
e.preventDefault();
|
|
12800
|
+
handleClick();
|
|
12801
|
+
}
|
|
12802
|
+
} : undefined
|
|
12793
12803
|
}, React__default.createElement(Container, {
|
|
12794
12804
|
"$alignItems": 'center',
|
|
12795
12805
|
"$gap": '8px',
|
|
@@ -13415,7 +13425,7 @@ var FirstContainer = styled__default.div(_templateObject2$m || (_templateObject2
|
|
|
13415
13425
|
var $headerPadding = _ref6.$headerPadding;
|
|
13416
13426
|
return $headerPadding ? $headerPadding : '0px';
|
|
13417
13427
|
});
|
|
13418
|
-
var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n border-radius: 4px;\n box-shadow: 0 0 0 2px ", ";\n }\n"])), function (_ref7) {
|
|
13428
|
+
var TabContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n width: auto;\n display: flex;\n align-items: center;\n cursor: ", ";\n opacity: ", ";\n gap: 8px;\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n height: ", ";\n\n svg {\n cursor: ", ";\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n height: 35px;\n max-height: 35px;\n border-radius: 4px;\n box-shadow: 0 0 0 2px ", ";\n\n div {\n font-size: 12px;\n }\n }\n"])), function (_ref7) {
|
|
13419
13429
|
var $disabled = _ref7.$disabled;
|
|
13420
13430
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
13421
13431
|
}, function (_ref8) {
|