labsense-ui-kit 1.1.77 → 1.1.79
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/Themes/Colors.d.ts +1 -0
- package/dist/Themes/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +41 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +41 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -159,13 +159,15 @@ var dark = {
|
|
|
159
159
|
};
|
|
160
160
|
var getCurrentTheme = function getCurrentTheme() {
|
|
161
161
|
if (typeof document !== 'undefined') {
|
|
162
|
-
|
|
162
|
+
var isDarkClass = document.documentElement.classList.contains('dark');
|
|
163
|
+
return isDarkClass ? 'dark' : 'light';
|
|
163
164
|
}
|
|
164
|
-
return light;
|
|
165
|
+
return 'light';
|
|
165
166
|
};
|
|
166
167
|
var colorVariables = new Proxy({}, {
|
|
167
168
|
get: function get(_, prop) {
|
|
168
|
-
var
|
|
169
|
+
var currentThemeName = getCurrentTheme();
|
|
170
|
+
var currentTheme = themes[currentThemeName];
|
|
169
171
|
return currentTheme[prop];
|
|
170
172
|
}
|
|
171
173
|
});
|
|
@@ -6771,42 +6773,51 @@ var SidebarContainer = styled.div(_templateObject$m || (_templateObject$m = _tag
|
|
|
6771
6773
|
var $isExpanded = _ref.$isExpanded;
|
|
6772
6774
|
return $isExpanded ? '225px' : '68px';
|
|
6773
6775
|
}, function (_ref2) {
|
|
6774
|
-
var $background = _ref2.$background
|
|
6775
|
-
|
|
6776
|
+
var $background = _ref2.$background,
|
|
6777
|
+
theme = _ref2.theme;
|
|
6778
|
+
return $background || theme.accent.softBlue;
|
|
6776
6779
|
});
|
|
6777
|
-
var SidebarLink = styled(NavLink)(_templateObject2$i || (_templateObject2$i = _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 color: ", ";\n text-decoration: none;\n transition: background 0.3s;\n\n &:hover {\n
|
|
6778
|
-
var
|
|
6779
|
-
|
|
6780
|
-
|
|
6780
|
+
var SidebarLink = styled(NavLink)(_templateObject2$i || (_templateObject2$i = _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 color: ", ";\n text-decoration: none;\n transition: background 0.3s;\n\n &:hover {\n background: ", ";\n }\n"])), function (_ref3) {
|
|
6781
|
+
var theme = _ref3.theme;
|
|
6782
|
+
return theme.text.medium;
|
|
6783
|
+
}, function (_ref4) {
|
|
6784
|
+
var theme = _ref4.theme;
|
|
6785
|
+
return theme["default"].primary;
|
|
6786
|
+
});
|
|
6787
|
+
var IconWrapper$2 = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n background: ", ";\n padding: 4px;\n border-radius: 4px;\n width: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_ref5) {
|
|
6788
|
+
var $selected = _ref5.$selected,
|
|
6789
|
+
theme = _ref5.theme;
|
|
6790
|
+
return $selected ? theme["default"].primary : theme["default"].tertiary;
|
|
6781
6791
|
});
|
|
6782
6792
|
var Logo = styled.div(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n min-width: max-content;\n height: 32px;\n align-items: center;\n justify-content: start;\n gap: 10px;\n"])));
|
|
6783
|
-
var TextContainer = styled.span(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n padding: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n opacity: ", ";\n visibility: ", ";\n transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;\n"])), function (
|
|
6784
|
-
var $padding =
|
|
6793
|
+
var TextContainer = styled.span(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n padding: ", ";\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n opacity: ", ";\n visibility: ", ";\n transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;\n"])), function (_ref6) {
|
|
6794
|
+
var $padding = _ref6.$padding;
|
|
6785
6795
|
return $padding;
|
|
6786
|
-
}, function (_ref5) {
|
|
6787
|
-
var $fontSize = _ref5.$fontSize;
|
|
6788
|
-
return $fontSize || '20px';
|
|
6789
|
-
}, function (_ref6) {
|
|
6790
|
-
var $fontWeight = _ref6.$fontWeight;
|
|
6791
|
-
return $fontWeight || '500';
|
|
6792
6796
|
}, function (_ref7) {
|
|
6793
|
-
var $
|
|
6794
|
-
return $
|
|
6797
|
+
var $fontSize = _ref7.$fontSize;
|
|
6798
|
+
return $fontSize || '20px';
|
|
6795
6799
|
}, function (_ref8) {
|
|
6796
|
-
var $
|
|
6797
|
-
return $
|
|
6800
|
+
var $fontWeight = _ref8.$fontWeight;
|
|
6801
|
+
return $fontWeight || '500';
|
|
6798
6802
|
}, function (_ref9) {
|
|
6799
|
-
var $
|
|
6803
|
+
var $color = _ref9.$color,
|
|
6804
|
+
theme = _ref9.theme;
|
|
6805
|
+
return $color || theme["default"].primary;
|
|
6806
|
+
}, function (_ref10) {
|
|
6807
|
+
var $isExpanded = _ref10.$isExpanded;
|
|
6808
|
+
return $isExpanded ? 1 : 0;
|
|
6809
|
+
}, function (_ref11) {
|
|
6810
|
+
var $isExpanded = _ref11.$isExpanded;
|
|
6800
6811
|
return $isExpanded ? 'visible' : 'hidden';
|
|
6801
6812
|
});
|
|
6802
|
-
var Sidebar = function Sidebar(
|
|
6803
|
-
var logo =
|
|
6804
|
-
content =
|
|
6805
|
-
background =
|
|
6806
|
-
ProfileContent =
|
|
6807
|
-
|
|
6808
|
-
isExpanded =
|
|
6809
|
-
setIsExpanded =
|
|
6813
|
+
var Sidebar = function Sidebar(_ref12) {
|
|
6814
|
+
var logo = _ref12.logo,
|
|
6815
|
+
content = _ref12.content,
|
|
6816
|
+
background = _ref12.background,
|
|
6817
|
+
ProfileContent = _ref12.ProfileContent,
|
|
6818
|
+
_ref12$isExpanded = _ref12.isExpanded,
|
|
6819
|
+
isExpanded = _ref12$isExpanded === void 0 ? false : _ref12$isExpanded,
|
|
6820
|
+
setIsExpanded = _ref12.setIsExpanded;
|
|
6810
6821
|
var location = useLocation();
|
|
6811
6822
|
var _useState = useState({}),
|
|
6812
6823
|
openMenus = _useState[0],
|