labsense-ui-kit 1.1.77 → 1.1.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/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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -3
- 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
|
});
|