labsense-ui-kit 1.1.31 → 1.1.32
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 +0 -67
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -17,7 +17,7 @@ function _taggedTemplateLiteralLoose(e, t) {
|
|
|
17
17
|
return t || (t = e.slice(0)), e.raw = t, e;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var light = {
|
|
21
21
|
brand: {
|
|
22
22
|
primary: '#4C9EEB',
|
|
23
23
|
secondary: '#14171A',
|
|
@@ -84,7 +84,7 @@ var colorVariables = {
|
|
|
84
84
|
lightBlue: '#ADD8E6'
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
var
|
|
87
|
+
var dark = {
|
|
88
88
|
brand: {
|
|
89
89
|
primary: '#4C9EEB',
|
|
90
90
|
secondary: '#FFFFFF',
|
|
@@ -151,9 +151,21 @@ var darkColorVariables = {
|
|
|
151
151
|
lightBlue: '#ADD8E6'
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
+
var getCurrentTheme = function getCurrentTheme() {
|
|
155
|
+
if (typeof document !== 'undefined') {
|
|
156
|
+
return document.documentElement.classList.contains('dark') ? dark : light;
|
|
157
|
+
}
|
|
158
|
+
return light;
|
|
159
|
+
};
|
|
160
|
+
var colorVariables = new Proxy({}, {
|
|
161
|
+
get: function get(_, prop) {
|
|
162
|
+
var currentTheme = getCurrentTheme();
|
|
163
|
+
return currentTheme[prop];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
154
166
|
var themes = {
|
|
155
|
-
light:
|
|
156
|
-
dark:
|
|
167
|
+
light: light,
|
|
168
|
+
dark: dark
|
|
157
169
|
};
|
|
158
170
|
|
|
159
171
|
var Add = function Add(_ref) {
|
|
@@ -6502,5 +6514,5 @@ var InternalTabs = function InternalTabs(_ref) {
|
|
|
6502
6514
|
}));
|
|
6503
6515
|
};
|
|
6504
6516
|
|
|
6505
|
-
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, CheckBox, CircularLoader, Container, DatePicker, DropdownMenu$1 as DropdownMenu, Icon, InternalTabs, Loader, MultiSelectDropdown, OptionComponent, Options, Pagination, ProgressBar, SearchBox, SelectOption, SelectedOption, Sidebar, Span, Table, TableCell, TableRow, Tabs, TextArea, TextField, TextFieldWithDropdown, colorVariables, convertEpochToDateString, convertEpochToOnlyDate, convertToEpoch,
|
|
6517
|
+
export { Badge, Breadcrumbs, ButtonComponent as Button, ButtonCarousel, CheckBox, CircularLoader, Container, DatePicker, DropdownMenu$1 as DropdownMenu, Icon, InternalTabs, Loader, MultiSelectDropdown, OptionComponent, Options, Pagination, ProgressBar, SearchBox, SelectOption, SelectedOption, Sidebar, Span, Table, TableCell, TableRow, Tabs, TextArea, TextField, TextFieldWithDropdown, colorVariables, convertEpochToDateString, convertEpochToOnlyDate, convertToEpoch, formatCalendarDateTime, formatDate, formatEpochToIST, formatTimestamp, getSystemTimezoneAbbreviation, themes, timeAgo, timeStringToSeconds, useClickOutside, useCustomModal, useNotification };
|
|
6506
6518
|
//# sourceMappingURL=index.modern.js.map
|