labsense-ui-kit 1.3.60 → 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/Icons/SVGs/Unlock.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +1 -0
- package/dist/Icons/index.d.ts +1 -1
- package/dist/index.js +60 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +60 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5811,6 +5811,26 @@ var TruckSpeed = function TruckSpeed(_ref) {
|
|
|
5811
5811
|
}));
|
|
5812
5812
|
};
|
|
5813
5813
|
|
|
5814
|
+
var Unlock = function Unlock(_ref) {
|
|
5815
|
+
var size = _ref.size,
|
|
5816
|
+
color = _ref.color,
|
|
5817
|
+
weight = _ref.weight;
|
|
5818
|
+
return React.createElement("svg", {
|
|
5819
|
+
width: size,
|
|
5820
|
+
height: size,
|
|
5821
|
+
strokeWidth: weight,
|
|
5822
|
+
viewBox: '0 0 14 15',
|
|
5823
|
+
fill: 'none',
|
|
5824
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
5825
|
+
}, React.createElement("path", {
|
|
5826
|
+
d: "M7.25 8.75C7.25 9.159 7.0535 9.522 6.75 9.75V11.5C6.75 11.6989 6.67098 11.8897 6.53033 12.0303C6.38968 12.171 6.19891 12.25 6 12.25C5.80109 12.25 5.61032 12.171 5.46967 12.0303C5.32902 11.8897 5.25 11.6989 5.25 11.5V9.75C5.07954 9.62216 4.9446 9.45287 4.85797 9.2582C4.77134 9.06353 4.73592 8.84995 4.75505 8.63774C4.77419 8.42553 4.84725 8.22174 4.9673 8.04571C5.08735 7.86968 5.25041 7.72725 5.44098 7.63197C5.63156 7.53668 5.84333 7.49169 6.05619 7.50126C6.26904 7.51084 6.47592 7.57467 6.65716 7.68669C6.83841 7.7987 6.98802 7.95519 7.09178 8.14129C7.19554 8.3274 7.25 8.53693 7.25 8.75Z",
|
|
5827
|
+
fill: color
|
|
5828
|
+
}), React.createElement("path", {
|
|
5829
|
+
d: "M7.75 3C7.75 2.20435 8.06607 1.44129 8.62868 0.87868C9.19129 0.316071 9.95435 0 10.75 0C11.5456 0 12.3087 0.316071 12.8713 0.87868C13.4339 1.44129 13.75 2.20435 13.75 3V3.875C13.75 4.04076 13.6842 4.19973 13.5669 4.31694C13.4497 4.43415 13.2908 4.5 13.125 4.5C12.9592 4.5 12.8003 4.43415 12.6831 4.31694C12.5658 4.19973 12.5 4.04076 12.5 3.875V3C12.5 2.53587 12.3156 2.09075 11.9874 1.76256C11.6592 1.43437 11.2141 1.25 10.75 1.25C10.2859 1.25 9.84075 1.43437 9.51256 1.76256C9.18437 2.09075 9 2.53587 9 3V4.5H10C10.5304 4.5 11.0391 4.71071 11.4142 5.08579C11.7893 5.46086 12 5.96957 12 6.5V13C12 13.5304 11.7893 14.0391 11.4142 14.4142C11.0391 14.7893 10.5304 15 10 15H2C1.46957 15 0.960859 14.7893 0.585786 14.4142C0.210714 14.0391 0 13.5304 0 13V6.5C0 5.96957 0.210714 5.46086 0.585786 5.08579C0.960859 4.71071 1.46957 4.5 2 4.5H7.75V3ZM2 5.5C1.73478 5.5 1.48043 5.60536 1.29289 5.79289C1.10536 5.98043 1 6.23478 1 6.5V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H10C10.2652 14 10.5196 13.8946 10.7071 13.7071C10.8946 13.5196 11 13.2652 11 13V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5H2Z",
|
|
5830
|
+
fill: color
|
|
5831
|
+
}));
|
|
5832
|
+
};
|
|
5833
|
+
|
|
5814
5834
|
var UnPinned = function UnPinned(_ref) {
|
|
5815
5835
|
var size = _ref.size,
|
|
5816
5836
|
color = _ref.color,
|
|
@@ -6352,6 +6372,7 @@ var IconSVGs = {
|
|
|
6352
6372
|
Translate: Translate,
|
|
6353
6373
|
TriangularFilledWarning: TriangularFilledWarning,
|
|
6354
6374
|
TruckSpeed: TruckSpeed,
|
|
6375
|
+
Unlock: Unlock,
|
|
6355
6376
|
UnPinned: UnPinned,
|
|
6356
6377
|
UpArrow: UpArrow,
|
|
6357
6378
|
UploadFile: UploadFile,
|
|
@@ -10254,7 +10275,7 @@ var Pagination = function Pagination(_ref4) {
|
|
|
10254
10275
|
}, React.createElement(Span, {
|
|
10255
10276
|
"$fontWeight": '400',
|
|
10256
10277
|
"$fontSize": '14px'
|
|
10257
|
-
}, t('
|
|
10278
|
+
}, t('Items_Per_Page')), React.createElement(Container, null, React.createElement(SelectOption, {
|
|
10258
10279
|
width: '54px',
|
|
10259
10280
|
size: 'small',
|
|
10260
10281
|
value: itemsPerPage.toString(),
|
|
@@ -10444,36 +10465,45 @@ var IconWrapper$2 = styled.div(_templateObject3$c || (_templateObject3$c = _tagg
|
|
|
10444
10465
|
theme = _ref10.theme;
|
|
10445
10466
|
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
10446
10467
|
});
|
|
10447
|
-
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) {
|
|
10448
10469
|
var theme = _ref11.theme;
|
|
10449
10470
|
return theme.vms.text.white;
|
|
10450
10471
|
}, function (_ref12) {
|
|
10451
10472
|
var theme = _ref12.theme;
|
|
10452
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;
|
|
10453
10483
|
});
|
|
10454
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"])));
|
|
10455
|
-
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 (
|
|
10456
|
-
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;
|
|
10457
10487
|
return $padding;
|
|
10458
|
-
}, function (
|
|
10459
|
-
var $fontSize =
|
|
10488
|
+
}, function (_ref17) {
|
|
10489
|
+
var $fontSize = _ref17.$fontSize;
|
|
10460
10490
|
return $fontSize || '20px';
|
|
10461
|
-
}, function (
|
|
10462
|
-
var $fontWeight =
|
|
10491
|
+
}, function (_ref18) {
|
|
10492
|
+
var $fontWeight = _ref18.$fontWeight;
|
|
10463
10493
|
return $fontWeight || '500';
|
|
10464
10494
|
}, SidebarContainer);
|
|
10465
|
-
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 (
|
|
10466
|
-
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;
|
|
10467
10497
|
return $position || 'absolute';
|
|
10468
10498
|
});
|
|
10469
|
-
var Sidebar = function Sidebar(
|
|
10470
|
-
var logo =
|
|
10471
|
-
content =
|
|
10472
|
-
background =
|
|
10473
|
-
ProfileContent =
|
|
10474
|
-
|
|
10475
|
-
isExpanded =
|
|
10476
|
-
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;
|
|
10477
10507
|
var location = useLocation();
|
|
10478
10508
|
var _useState = useState({}),
|
|
10479
10509
|
openMenus = _useState[0],
|
|
@@ -10498,9 +10528,9 @@ var Sidebar = function Sidebar(_ref17) {
|
|
|
10498
10528
|
}, [isExpanded]);
|
|
10499
10529
|
var toggleMenu = function toggleMenu(id) {
|
|
10500
10530
|
setOpenMenus(function (prev) {
|
|
10501
|
-
var
|
|
10531
|
+
var _ref21;
|
|
10502
10532
|
var isCurrentlyOpen = !!prev[id];
|
|
10503
|
-
return isCurrentlyOpen ? {} : (
|
|
10533
|
+
return isCurrentlyOpen ? {} : (_ref21 = {}, _ref21[id] = true, _ref21);
|
|
10504
10534
|
});
|
|
10505
10535
|
};
|
|
10506
10536
|
var getTotalNotifications = useCallback(function (item) {
|
|
@@ -10525,8 +10555,8 @@ var Sidebar = function Sidebar(_ref17) {
|
|
|
10525
10555
|
return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
|
|
10526
10556
|
}));
|
|
10527
10557
|
};
|
|
10528
|
-
var ChildLink = React.memo(function (
|
|
10529
|
-
var child =
|
|
10558
|
+
var ChildLink = React.memo(function (_ref22) {
|
|
10559
|
+
var child = _ref22.child;
|
|
10530
10560
|
var themeColors = useTheme$1();
|
|
10531
10561
|
var location = useLocation();
|
|
10532
10562
|
var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
|
|
@@ -10572,14 +10602,14 @@ var Sidebar = function Sidebar(_ref17) {
|
|
|
10572
10602
|
});
|
|
10573
10603
|
}));
|
|
10574
10604
|
};
|
|
10575
|
-
var SidebarItem = React.memo(function (
|
|
10576
|
-
var item =
|
|
10577
|
-
isActive =
|
|
10578
|
-
isOpen =
|
|
10579
|
-
hasChildren =
|
|
10580
|
-
isExpanded =
|
|
10581
|
-
onToggle =
|
|
10582
|
-
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;
|
|
10583
10613
|
var themeColors = useTheme$1();
|
|
10584
10614
|
var activeClass = isActive ? 'active' : '';
|
|
10585
10615
|
var handleClick = useCallback(function () {
|