labsense-ui-kit 1.3.76 → 1.3.78
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/hooks/breakpoints.d.ts +13 -0
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useWindowSize.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +118 -65
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +118 -67
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useRef, useEffect, useCallback, useState, useId } from 'react';
|
|
1
|
+
import React, { useRef, useEffect, useCallback, useState, useLayoutEffect, useId } from 'react';
|
|
2
2
|
import styled, { css, useTheme as useTheme$1, keyframes, styled as styled$1 } from 'styled-components';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import { toast } from 'react-hot-toast';
|
|
@@ -6886,6 +6886,39 @@ var useNotification = function useNotification() {
|
|
|
6886
6886
|
};
|
|
6887
6887
|
};
|
|
6888
6888
|
|
|
6889
|
+
var useWindowSize = function useWindowSize() {
|
|
6890
|
+
var _useState = useState([window.innerWidth, window.innerHeight]),
|
|
6891
|
+
size = _useState[0],
|
|
6892
|
+
setSize = _useState[1];
|
|
6893
|
+
useLayoutEffect(function () {
|
|
6894
|
+
function updateSize() {
|
|
6895
|
+
setSize([window.innerWidth, window.innerHeight]);
|
|
6896
|
+
}
|
|
6897
|
+
window.addEventListener('resize', updateSize);
|
|
6898
|
+
updateSize();
|
|
6899
|
+
return function () {
|
|
6900
|
+
return window.removeEventListener('resize', updateSize);
|
|
6901
|
+
};
|
|
6902
|
+
}, []);
|
|
6903
|
+
return size;
|
|
6904
|
+
};
|
|
6905
|
+
|
|
6906
|
+
var breakpoints = {
|
|
6907
|
+
xs: 576,
|
|
6908
|
+
sm: 768,
|
|
6909
|
+
md: 992,
|
|
6910
|
+
lg: 1280
|
|
6911
|
+
};
|
|
6912
|
+
var getResponsiveFlags = function getResponsiveFlags(width) {
|
|
6913
|
+
return {
|
|
6914
|
+
isXS: width < breakpoints.xs,
|
|
6915
|
+
isSM: width < breakpoints.sm && width >= breakpoints.xs,
|
|
6916
|
+
isMD: width < breakpoints.md && width >= breakpoints.sm,
|
|
6917
|
+
isLG: width < breakpoints.lg && width >= breakpoints.md,
|
|
6918
|
+
isXL: width >= breakpoints.lg
|
|
6919
|
+
};
|
|
6920
|
+
};
|
|
6921
|
+
|
|
6889
6922
|
var _templateObject$3, _templateObject2$3;
|
|
6890
6923
|
var TooltipWrapper = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
6891
6924
|
var TooltipText = styled.span(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n visibility: ", ";\n opacity: ", ";\n transition: opacity 0.2s ease-in-out;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: 8px;\n padding: 8px 16px;\n font-size: ", ";\n font-weight: ", ";\n max-width: 300px;\n width: max-content;\n position: fixed;\n z-index: 999;\n pointer-events: none;\n"])), function (_ref) {
|
|
@@ -10773,59 +10806,58 @@ var Overlay = styled.div(_templateObject$n || (_templateObject$n = _taggedTempla
|
|
|
10773
10806
|
var $isOpen = _ref2.$isOpen;
|
|
10774
10807
|
return $isOpen ? 'visible' : 'hidden';
|
|
10775
10808
|
});
|
|
10776
|
-
var HamburgerButton = styled.button(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n display: none;\n \n @media (max-width: ", ") {\n display: flex;\n
|
|
10809
|
+
var HamburgerButton = styled.button(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n display: none;\n \n @media (max-width: ", ") {\n display: flex;\n width: max-content;\n border: none;\n padding: 8px;\n cursor: pointer;\n align-items: center;\n justify-content: center;\n // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transition: transform 0.2s ease;\n\n &:active {\n transform: scale(0.95);\n }\n }\n"])), MOBILE_BREAKPOINT);
|
|
10810
|
+
var SidebarContainer = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n width: 68px;\n max-width: 68px;\n height: 100vh;\n background: ", ";\n transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n display: flex;\n flex-direction: column;\n align-items: start;\n padding: 20px;\n position: fixed;\n left: 0;\n top: 0;\n overflow: hidden;\n z-index: 998;\n justify-content: space-between;\n gap: 24px;\n\n /* Expand on hover */\n &:hover {\n width: max-content;\n max-width: 400px;\n\n /* You can also add a class for children */\n span, .expandable {\n opacity: 1;\n visibility: visible;\n transform: translateX(0);\n }\n }\n\n /* Mobile styles */\n @media (max-width: ", ") {\n transform: translateX(", ");\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n width: 280px;\n max-width: 280px;\n box-shadow: ", ";\n\n /* Always show text on mobile when open */\n span, .expandable {\n opacity: ", ";\n visibility: ", ";\n transform: translateX(0);\n }\n\n /* Disable hover expansion on mobile */\n &:hover {\n width: 280px;\n max-width: 280px;\n }\n }\n"])), function (_ref3) {
|
|
10777
10811
|
var $background = _ref3.$background,
|
|
10778
10812
|
theme = _ref3.theme;
|
|
10779
10813
|
return $background || theme.vms.accent.softBlue;
|
|
10780
|
-
})
|
|
10781
|
-
var
|
|
10782
|
-
var $background = _ref4.$background,
|
|
10783
|
-
theme = _ref4.theme;
|
|
10784
|
-
return $background || theme.vms.accent.softBlue;
|
|
10785
|
-
}, MOBILE_BREAKPOINT, function (_ref5) {
|
|
10786
|
-
var $isMobileOpen = _ref5.$isMobileOpen;
|
|
10814
|
+
}, MOBILE_BREAKPOINT, function (_ref4) {
|
|
10815
|
+
var $isMobileOpen = _ref4.$isMobileOpen;
|
|
10787
10816
|
return $isMobileOpen ? '0' : '-100%';
|
|
10817
|
+
}, function (_ref5) {
|
|
10818
|
+
var $isMobileOpen = _ref5.$isMobileOpen;
|
|
10819
|
+
return $isMobileOpen ? '2px 0 8px rgba(0, 0, 0, 0.15)' : 'none';
|
|
10788
10820
|
}, function (_ref6) {
|
|
10789
10821
|
var $isMobileOpen = _ref6.$isMobileOpen;
|
|
10790
|
-
return $isMobileOpen ?
|
|
10822
|
+
return $isMobileOpen ? 1 : 0;
|
|
10791
10823
|
}, function (_ref7) {
|
|
10792
10824
|
var $isMobileOpen = _ref7.$isMobileOpen;
|
|
10793
|
-
return $isMobileOpen ? 1 : 0;
|
|
10794
|
-
}, function (_ref8) {
|
|
10795
|
-
var $isMobileOpen = _ref8.$isMobileOpen;
|
|
10796
10825
|
return $isMobileOpen ? 'visible' : 'hidden';
|
|
10797
10826
|
});
|
|
10798
|
-
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 transition: none;\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 transition: none;\n }\n }\n"])), function (
|
|
10799
|
-
var $padding =
|
|
10827
|
+
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 transition: none;\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 transition: none;\n }\n }\n"])), function (_ref8) {
|
|
10828
|
+
var $padding = _ref8.$padding;
|
|
10800
10829
|
return $padding;
|
|
10830
|
+
}, function (_ref9) {
|
|
10831
|
+
var theme = _ref9.theme;
|
|
10832
|
+
return theme.vms.text.medium;
|
|
10801
10833
|
}, function (_ref10) {
|
|
10802
10834
|
var theme = _ref10.theme;
|
|
10803
|
-
return theme.vms.text.
|
|
10835
|
+
return theme.vms.text.white;
|
|
10804
10836
|
}, function (_ref11) {
|
|
10805
10837
|
var theme = _ref11.theme;
|
|
10806
|
-
return theme.vms.
|
|
10838
|
+
return theme.vms["default"].primary;
|
|
10807
10839
|
}, function (_ref12) {
|
|
10808
10840
|
var theme = _ref12.theme;
|
|
10809
|
-
return theme.vms
|
|
10841
|
+
return theme.vms.text.white;
|
|
10810
10842
|
}, function (_ref13) {
|
|
10811
10843
|
var theme = _ref13.theme;
|
|
10812
10844
|
return theme.vms.text.white;
|
|
10813
10845
|
}, function (_ref14) {
|
|
10814
10846
|
var theme = _ref14.theme;
|
|
10815
|
-
return theme.vms.
|
|
10847
|
+
return theme.vms["default"].primary;
|
|
10816
10848
|
}, function (_ref15) {
|
|
10817
10849
|
var theme = _ref15.theme;
|
|
10818
|
-
return theme.vms["default"].primary;
|
|
10819
|
-
}, function (_ref16) {
|
|
10820
|
-
var theme = _ref16.theme;
|
|
10821
10850
|
return theme.vms.text.white;
|
|
10822
10851
|
});
|
|
10823
|
-
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 (
|
|
10824
|
-
var $selected =
|
|
10825
|
-
theme =
|
|
10852
|
+
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) {
|
|
10853
|
+
var $selected = _ref16.$selected,
|
|
10854
|
+
theme = _ref16.theme;
|
|
10826
10855
|
return $selected ? theme.vms["default"].primary : theme.vms["default"].tertiary;
|
|
10827
10856
|
});
|
|
10828
|
-
var StyledContainer = styled(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 (
|
|
10857
|
+
var StyledContainer = styled(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 (_ref17) {
|
|
10858
|
+
var theme = _ref17.theme;
|
|
10859
|
+
return theme.vms.text.white;
|
|
10860
|
+
}, function (_ref18) {
|
|
10829
10861
|
var theme = _ref18.theme;
|
|
10830
10862
|
return theme.vms.text.white;
|
|
10831
10863
|
}, function (_ref19) {
|
|
@@ -10836,34 +10868,31 @@ var StyledContainer = styled(Container)(_templateObject6$8 || (_templateObject6$
|
|
|
10836
10868
|
return theme.vms.text.white;
|
|
10837
10869
|
}, function (_ref21) {
|
|
10838
10870
|
var theme = _ref21.theme;
|
|
10839
|
-
return theme.vms.text.white;
|
|
10840
|
-
}, function (_ref22) {
|
|
10841
|
-
var theme = _ref22.theme;
|
|
10842
10871
|
return theme.vms.text.medium;
|
|
10843
10872
|
});
|
|
10844
|
-
var Logo = styled
|
|
10845
|
-
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: 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\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 (
|
|
10846
|
-
var $padding =
|
|
10873
|
+
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"])));
|
|
10874
|
+
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: 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\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) {
|
|
10875
|
+
var $padding = _ref22.$padding;
|
|
10847
10876
|
return $padding;
|
|
10848
|
-
}, function (
|
|
10849
|
-
var $fontSize =
|
|
10877
|
+
}, function (_ref23) {
|
|
10878
|
+
var $fontSize = _ref23.$fontSize;
|
|
10850
10879
|
return $fontSize || '20px';
|
|
10851
|
-
}, function (
|
|
10852
|
-
var $fontWeight =
|
|
10880
|
+
}, function (_ref24) {
|
|
10881
|
+
var $fontWeight = _ref24.$fontWeight;
|
|
10853
10882
|
return $fontWeight || '500';
|
|
10854
10883
|
}, SidebarContainer, MOBILE_BREAKPOINT);
|
|
10855
|
-
var NotificationBadge = styled.div(_templateObject9$5 || (_templateObject9$5 = _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 (
|
|
10856
|
-
var $position =
|
|
10884
|
+
var NotificationBadge = styled.div(_templateObject9$5 || (_templateObject9$5 = _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 (_ref25) {
|
|
10885
|
+
var $position = _ref25.$position;
|
|
10857
10886
|
return $position || 'absolute';
|
|
10858
10887
|
});
|
|
10859
|
-
var Sidebar = function Sidebar(
|
|
10860
|
-
var logo =
|
|
10861
|
-
content =
|
|
10862
|
-
background =
|
|
10863
|
-
ProfileContent =
|
|
10864
|
-
|
|
10865
|
-
isExpanded =
|
|
10866
|
-
setIsExpanded =
|
|
10888
|
+
var Sidebar = function Sidebar(_ref26) {
|
|
10889
|
+
var logo = _ref26.logo,
|
|
10890
|
+
content = _ref26.content,
|
|
10891
|
+
background = _ref26.background,
|
|
10892
|
+
ProfileContent = _ref26.ProfileContent,
|
|
10893
|
+
_ref26$isExpanded = _ref26.isExpanded,
|
|
10894
|
+
isExpanded = _ref26$isExpanded === void 0 ? false : _ref26$isExpanded,
|
|
10895
|
+
setIsExpanded = _ref26.setIsExpanded;
|
|
10867
10896
|
var location = useLocation();
|
|
10868
10897
|
var _useState = useState({}),
|
|
10869
10898
|
openMenus = _useState[0],
|
|
@@ -10918,9 +10947,9 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
10918
10947
|
}, []);
|
|
10919
10948
|
var toggleMenu = function toggleMenu(id) {
|
|
10920
10949
|
setOpenMenus(function (prev) {
|
|
10921
|
-
var
|
|
10950
|
+
var _ref27;
|
|
10922
10951
|
var isCurrentlyOpen = !!prev[id];
|
|
10923
|
-
return isCurrentlyOpen ? {} : (
|
|
10952
|
+
return isCurrentlyOpen ? {} : (_ref27 = {}, _ref27[id] = true, _ref27);
|
|
10924
10953
|
});
|
|
10925
10954
|
};
|
|
10926
10955
|
var getTotalNotifications = useCallback(function (item) {
|
|
@@ -10945,8 +10974,8 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
10945
10974
|
return currentBase === getBasePath(child.activeUrl) || currentBase === getBasePath(child.url);
|
|
10946
10975
|
}));
|
|
10947
10976
|
};
|
|
10948
|
-
var ChildLink = function ChildLink(
|
|
10949
|
-
var child =
|
|
10977
|
+
var ChildLink = function ChildLink(_ref28) {
|
|
10978
|
+
var child = _ref28.child;
|
|
10950
10979
|
var themeColors = useTheme$1();
|
|
10951
10980
|
var location = useLocation();
|
|
10952
10981
|
var active = getBasePath(location.pathname) === getBasePath(child.activeUrl) || getBasePath(location.pathname) === getBasePath(child.url);
|
|
@@ -10993,14 +11022,14 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
10993
11022
|
});
|
|
10994
11023
|
}));
|
|
10995
11024
|
};
|
|
10996
|
-
var SidebarItem = function SidebarItem(
|
|
10997
|
-
var item =
|
|
10998
|
-
isActive =
|
|
10999
|
-
isOpen =
|
|
11000
|
-
hasChildren =
|
|
11001
|
-
isExpanded =
|
|
11002
|
-
onToggle =
|
|
11003
|
-
renderChildLinks =
|
|
11025
|
+
var SidebarItem = function SidebarItem(_ref29) {
|
|
11026
|
+
var item = _ref29.item,
|
|
11027
|
+
isActive = _ref29.isActive,
|
|
11028
|
+
isOpen = _ref29.isOpen,
|
|
11029
|
+
hasChildren = _ref29.hasChildren,
|
|
11030
|
+
isExpanded = _ref29.isExpanded,
|
|
11031
|
+
onToggle = _ref29.onToggle,
|
|
11032
|
+
renderChildLinks = _ref29.renderChildLinks;
|
|
11004
11033
|
var themeColors = useTheme$1();
|
|
11005
11034
|
var activeClass = isActive ? 'active' : '';
|
|
11006
11035
|
var handleClick = useCallback(function () {
|
|
@@ -11136,15 +11165,33 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
11136
11165
|
};
|
|
11137
11166
|
}, [content, isExpanded, getTotalNotifications]);
|
|
11138
11167
|
var themeColors = useTheme$1();
|
|
11139
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
11140
|
-
"$
|
|
11168
|
+
return React.createElement(React.Fragment, null, React.createElement(Container, {
|
|
11169
|
+
"$width": '100%',
|
|
11170
|
+
"$background": background != null ? background : themeColors.vms.accent.softBlue,
|
|
11171
|
+
"$alignItems": 'center'
|
|
11172
|
+
}, logo && isMobile && (logo.icon ? React.createElement(Logo, {
|
|
11173
|
+
"$padding": '10px 10px 10px 46px',
|
|
11174
|
+
"$height": 'max-content'
|
|
11175
|
+
}, React.createElement(Icon, {
|
|
11176
|
+
icon: logo.icon,
|
|
11177
|
+
color: logo.iconColor
|
|
11178
|
+
}), React.createElement(TextContainer, null, logo.name)) : logo.imageDetails && React.createElement(Logo, {
|
|
11179
|
+
"$padding": '10px 10px 10px 46px',
|
|
11180
|
+
"$height": 'max-content'
|
|
11181
|
+
}, React.createElement("img", {
|
|
11182
|
+
src: logo.imageDetails.url,
|
|
11183
|
+
alt: logo.imageDetails.altText,
|
|
11184
|
+
width: logo.imageDetails.width,
|
|
11185
|
+
height: logo.imageDetails.height
|
|
11186
|
+
}))), React.createElement(HamburgerButton, {
|
|
11141
11187
|
onClick: toggleMobileMenu,
|
|
11142
|
-
"aria-label":
|
|
11188
|
+
"aria-label": 'Toggle menu'
|
|
11143
11189
|
}, React.createElement(Icon, {
|
|
11144
11190
|
icon: isMobileOpen ? 'X' : 'Hamburger',
|
|
11145
|
-
size:
|
|
11146
|
-
color: themeColors.vms.text.
|
|
11147
|
-
|
|
11191
|
+
size: 20,
|
|
11192
|
+
color: themeColors.vms.text.dark,
|
|
11193
|
+
weight: '1px'
|
|
11194
|
+
}))), React.createElement(Overlay, {
|
|
11148
11195
|
"$isOpen": isMobileOpen,
|
|
11149
11196
|
onClick: handleOverlayClick
|
|
11150
11197
|
}), React.createElement(SidebarContainer, {
|
|
@@ -11156,10 +11203,14 @@ var Sidebar = function Sidebar(_ref27) {
|
|
|
11156
11203
|
"$gap": '28px',
|
|
11157
11204
|
"$width": '100%',
|
|
11158
11205
|
"$overflow": 'hidden'
|
|
11159
|
-
}, logo && (logo.icon ? React.createElement(Logo,
|
|
11206
|
+
}, logo && (logo.icon ? React.createElement(Logo, {
|
|
11207
|
+
"$height": '32px'
|
|
11208
|
+
}, React.createElement(Icon, {
|
|
11160
11209
|
icon: logo.icon,
|
|
11161
11210
|
color: logo.iconColor
|
|
11162
|
-
}), React.createElement(TextContainer, null, logo.name)) : logo.imageDetails && React.createElement(Logo,
|
|
11211
|
+
}), React.createElement(TextContainer, null, logo.name)) : logo.imageDetails && React.createElement(Logo, {
|
|
11212
|
+
"$height": '32px'
|
|
11213
|
+
}, React.createElement("img", {
|
|
11163
11214
|
src: logo.imageDetails.url,
|
|
11164
11215
|
alt: logo.imageDetails.altText,
|
|
11165
11216
|
width: logo.imageDetails.width,
|
|
@@ -12373,5 +12424,5 @@ var themes = {
|
|
|
12373
12424
|
dark: dark
|
|
12374
12425
|
};
|
|
12375
12426
|
|
|
12376
|
-
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, ButtonDropdown, CheckBox, CircularLoader, CircularProgress, Container, DatePicker, DropdownMenu$1 as DropdownMenu, Icon, IconTooltip, InternalTabs, Loader$1 as Loader, MultiSelectDropdown, OptionComponent, Options, Pagination, ProgressBar, SearchBox, SelectOption, SelectedOption, Sidebar, Span, Table, TableCell, TableRow, Tabs, TextArea, TextField, TextFieldWithDropdown, convertEpochToDateString, convertEpochToOnlyDate, convertToEpoch, formatCalendarDateTime, formatDate, formatEpochToIST, formatTimestamp, getCurrentTheme, getSystemTimezoneAbbreviation, themes, timeAgo, timeStringToSeconds, useClickOutside, useCopyToClipboard, UseCustomModal as useCustomModal, useNotification, useTheme };
|
|
12427
|
+
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, ButtonDropdown, CheckBox, CircularLoader, CircularProgress, Container, DatePicker, DropdownMenu$1 as DropdownMenu, Icon, IconTooltip, InternalTabs, Loader$1 as Loader, MultiSelectDropdown, OptionComponent, Options, Pagination, ProgressBar, SearchBox, SelectOption, SelectedOption, Sidebar, Span, Table, TableCell, TableRow, Tabs, TextArea, TextField, TextFieldWithDropdown, convertEpochToDateString, convertEpochToOnlyDate, convertToEpoch, formatCalendarDateTime, formatDate, formatEpochToIST, formatTimestamp, getCurrentTheme, getResponsiveFlags, getSystemTimezoneAbbreviation, themes, timeAgo, timeStringToSeconds, useClickOutside, useCopyToClipboard, UseCustomModal as useCustomModal, useNotification, useTheme, useWindowSize };
|
|
12377
12428
|
//# sourceMappingURL=index.modern.js.map
|