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.
@@ -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, darkColorVariables, themes } from './Themes/Colors';
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, darkColorVariables, themes };
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 colorVariables = {
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 darkColorVariables = {
91
+ var dark = {
92
92
  brand: {
93
93
  primary: '#4C9EEB',
94
- secondary: '#FFFFFF',
94
+ secondary: '#E1E8ED',
95
95
  light: '#1A1A1A'
96
96
  },
97
97
  accent: {
98
- light: '#2F2F2F',
99
- extraLight: '#1E1E1E',
100
- softBlue: '#7A7A7A',
101
- extraSoftBlue: '#2A3C50',
102
- boldTransparent: '#AFAF80',
103
- transparent: '#AFAF4D',
104
- lightTransparent: '#AFAF23'
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: '#3B82F6',
108
- secondary: '#B0B0B0',
107
+ primary: '#78B6F0',
108
+ secondary: '#4F4F4F',
109
109
  tertiary: 'transparent',
110
- error: '#F44336',
111
- success: '#4CAF50',
112
- warning: '#FF9800',
113
- info: '#2159F3'
110
+ error: '#EF5350',
111
+ success: '#66BB6A',
112
+ warning: '#FFB74D',
113
+ info: '#42A5F5'
114
114
  },
115
115
  disabled: {
116
- primary: '#B9DCF7',
117
- secondary: '#3B3B3B',
118
- error: '#FFEBEE',
119
- success: '#E8F5E9',
120
- warning: '#FFF3E0',
121
- info: '#E3F2FD'
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: '#4C9EEB',
125
- secondary: '#A3A3A3',
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: '#657786',
134
- bold: '#BFBFBF',
135
- medium: '#CBCED0',
136
- light: '#7A7A7A',
137
- extraLight: '#E6E3E3'
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: '#C7C7C7',
142
- light: '#A0A0A0',
141
+ medium: '#AAB8C2',
142
+ light: '#8899A6',
143
143
  white: '#FFFFFF',
144
- success: '#1B5E20',
145
- error: '#B71C1C',
146
- info: '#0D30A1',
147
- warning: '#E65100'
144
+ success: '#81C784',
145
+ error: '#E57373',
146
+ info: '#64B5F6',
147
+ warning: '#FFB74D'
148
148
  },
149
149
  badge: {
150
- lavender: '#E8DAFF',
151
- papayaWhip: '#FFEDD5',
152
- water: '#C7E3FF',
153
- paleBlue: '#B0F0E4',
154
- teaGreen: '#D5F7C2',
155
- lightBlue: '#ADD8E6'
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: colorVariables,
160
- dark: darkColorVariables
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;