labsense-ui-kit 1.1.36 → 1.1.38
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 +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +55 -44
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +56 -44
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Themes/Colors.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemeColorsInterface } from '.';
|
|
2
|
+
export declare const light: ThemeColorsInterface;
|
|
3
|
+
export declare const dark: ThemeColorsInterface;
|
|
2
4
|
export declare const colorVariables: ThemeColorsInterface;
|
|
3
|
-
export declare const darkColorVariables: ThemeColorsInterface;
|
|
4
5
|
export declare const themes: {
|
|
5
6
|
light: ThemeColorsInterface;
|
|
6
7
|
dark: ThemeColorsInterface;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { Sidebar, logoDetails, SidebarItems } from './Sidebar';
|
|
|
15
15
|
import { Table, TableCell, TableRow, TableProps } from './Table';
|
|
16
16
|
import { InternalTabs, Tabs, TabContentProps } from './Tabs';
|
|
17
17
|
import { ThemeColorsInterface } from './Themes';
|
|
18
|
-
import { colorVariables,
|
|
18
|
+
import { colorVariables, themes } from './Themes/Colors';
|
|
19
19
|
import { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds } from './Utils/Date&Time';
|
|
20
20
|
export { Badge };
|
|
21
21
|
export { Breadcrumbs, BreadcrumbDetail };
|
|
@@ -33,5 +33,5 @@ export { ProgressBar };
|
|
|
33
33
|
export { Sidebar, logoDetails, SidebarItems };
|
|
34
34
|
export { TableCell, Table, TableRow, TableProps };
|
|
35
35
|
export { InternalTabs, Tabs, TabContentProps };
|
|
36
|
-
export { ThemeColorsInterface, colorVariables,
|
|
36
|
+
export { ThemeColorsInterface, colorVariables, themes };
|
|
37
37
|
export { convertToEpoch, formatDate, formatTimestamp, formatCalendarDateTime, timeAgo, formatEpochToIST, convertEpochToDateString, convertEpochToOnlyDate, getSystemTimezoneAbbreviation, timeStringToSeconds };
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ function _taggedTemplateLiteralLoose(e, t) {
|
|
|
21
21
|
return t || (t = e.slice(0)), e.raw = t, e;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var light = {
|
|
25
25
|
brand: {
|
|
26
26
|
primary: '#4C9EEB',
|
|
27
27
|
secondary: '#14171A',
|
|
@@ -88,41 +88,41 @@ var colorVariables = {
|
|
|
88
88
|
lightBlue: '#ADD8E6'
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
var
|
|
91
|
+
var dark = {
|
|
92
92
|
brand: {
|
|
93
93
|
primary: '#4C9EEB',
|
|
94
|
-
secondary: '#
|
|
94
|
+
secondary: '#E1E8ED',
|
|
95
95
|
light: '#1A1A1A'
|
|
96
96
|
},
|
|
97
97
|
accent: {
|
|
98
|
-
light: '#
|
|
99
|
-
extraLight: '#
|
|
100
|
-
softBlue: '#
|
|
101
|
-
extraSoftBlue: '#
|
|
102
|
-
boldTransparent: '#
|
|
103
|
-
transparent: '#
|
|
104
|
-
lightTransparent: '#
|
|
98
|
+
light: '#2A2E33',
|
|
99
|
+
extraLight: '#1F2327',
|
|
100
|
+
softBlue: '#2C3E50',
|
|
101
|
+
extraSoftBlue: '#34495E',
|
|
102
|
+
boldTransparent: '#D3D3D380',
|
|
103
|
+
transparent: '#D3D3D34D',
|
|
104
|
+
lightTransparent: '#D3D3D323'
|
|
105
105
|
},
|
|
106
106
|
"default": {
|
|
107
|
-
primary: '#
|
|
108
|
-
secondary: '#
|
|
107
|
+
primary: '#78B6F0',
|
|
108
|
+
secondary: '#4F4F4F',
|
|
109
109
|
tertiary: 'transparent',
|
|
110
|
-
error: '#
|
|
111
|
-
success: '#
|
|
112
|
-
warning: '#
|
|
113
|
-
info: '#
|
|
110
|
+
error: '#EF5350',
|
|
111
|
+
success: '#66BB6A',
|
|
112
|
+
warning: '#FFB74D',
|
|
113
|
+
info: '#42A5F5'
|
|
114
114
|
},
|
|
115
115
|
disabled: {
|
|
116
|
-
primary: '#
|
|
117
|
-
secondary: '#
|
|
118
|
-
error: '#
|
|
119
|
-
success: '#
|
|
120
|
-
warning: '#
|
|
121
|
-
info: '#
|
|
116
|
+
primary: '#3B4A58',
|
|
117
|
+
secondary: '#3E3E3E',
|
|
118
|
+
error: '#5B1B1B',
|
|
119
|
+
success: '#1B3C1B',
|
|
120
|
+
warning: '#5A3C1B',
|
|
121
|
+
info: '#1A3C5A'
|
|
122
122
|
},
|
|
123
123
|
hover: {
|
|
124
|
-
primary: '#
|
|
125
|
-
secondary: '#
|
|
124
|
+
primary: '#5CA6F0',
|
|
125
|
+
secondary: '#7A7A7A',
|
|
126
126
|
tertiary: 'transparent',
|
|
127
127
|
error: '#D32F2F',
|
|
128
128
|
success: '#388E3C',
|
|
@@ -130,34 +130,46 @@ var darkColorVariables = {
|
|
|
130
130
|
info: '#1976D2'
|
|
131
131
|
},
|
|
132
132
|
border: {
|
|
133
|
-
extraBold: '#
|
|
134
|
-
bold: '#
|
|
135
|
-
medium: '#
|
|
136
|
-
light: '#
|
|
137
|
-
extraLight: '#
|
|
133
|
+
extraBold: '#8899A6',
|
|
134
|
+
bold: '#5E5E5E',
|
|
135
|
+
medium: '#4A4A4A',
|
|
136
|
+
light: '#3A3A3A',
|
|
137
|
+
extraLight: '#2B2B2B'
|
|
138
138
|
},
|
|
139
139
|
text: {
|
|
140
140
|
dark: '#FFFFFF',
|
|
141
|
-
medium: '#
|
|
142
|
-
light: '#
|
|
141
|
+
medium: '#AAB8C2',
|
|
142
|
+
light: '#8899A6',
|
|
143
143
|
white: '#FFFFFF',
|
|
144
|
-
success: '#
|
|
145
|
-
error: '#
|
|
146
|
-
info: '#
|
|
147
|
-
warning: '#
|
|
144
|
+
success: '#81C784',
|
|
145
|
+
error: '#E57373',
|
|
146
|
+
info: '#64B5F6',
|
|
147
|
+
warning: '#FFB74D'
|
|
148
148
|
},
|
|
149
149
|
badge: {
|
|
150
|
-
lavender: '#
|
|
151
|
-
papayaWhip: '#
|
|
152
|
-
water: '#
|
|
153
|
-
paleBlue: '#
|
|
154
|
-
teaGreen: '#
|
|
155
|
-
lightBlue: '#
|
|
150
|
+
lavender: '#7B5FA1',
|
|
151
|
+
papayaWhip: '#A46A3E',
|
|
152
|
+
water: '#5CA6F0',
|
|
153
|
+
paleBlue: '#4BC9BC',
|
|
154
|
+
teaGreen: '#7FBF7F',
|
|
155
|
+
lightBlue: '#5DADE2'
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
var getCurrentTheme = function getCurrentTheme() {
|
|
159
|
+
if (typeof document !== 'undefined') {
|
|
160
|
+
return document.documentElement.classList.contains('dark') ? dark : light;
|
|
161
|
+
}
|
|
162
|
+
return light;
|
|
163
|
+
};
|
|
164
|
+
var colorVariables = new Proxy({}, {
|
|
165
|
+
get: function get(_, prop) {
|
|
166
|
+
var currentTheme = getCurrentTheme();
|
|
167
|
+
return currentTheme[prop];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
158
170
|
var themes = {
|
|
159
|
-
light:
|
|
160
|
-
dark:
|
|
171
|
+
light: light,
|
|
172
|
+
dark: dark
|
|
161
173
|
};
|
|
162
174
|
|
|
163
175
|
var Add = function Add(_ref) {
|
|
@@ -6539,7 +6551,6 @@ exports.colorVariables = colorVariables;
|
|
|
6539
6551
|
exports.convertEpochToDateString = convertEpochToDateString;
|
|
6540
6552
|
exports.convertEpochToOnlyDate = convertEpochToOnlyDate;
|
|
6541
6553
|
exports.convertToEpoch = convertToEpoch;
|
|
6542
|
-
exports.darkColorVariables = darkColorVariables;
|
|
6543
6554
|
exports.formatCalendarDateTime = formatCalendarDateTime;
|
|
6544
6555
|
exports.formatDate = formatDate;
|
|
6545
6556
|
exports.formatEpochToIST = formatEpochToIST;
|