@evlop/commons 1.0.193 → 1.0.195
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/helpers/themeHelpers.d.ts +4 -4
- package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
- package/dist/src/helpers/themeHelpers.js +33 -12
- package/dist/src/helpers/themeHelpers.js.map +1 -1
- package/dist/src/reducers/notifications.d.ts +1 -1
- package/dist/src/reducers/notifications.d.ts.map +1 -1
- package/package.json +1 -1
@@ -134,7 +134,7 @@ declare const colors: {
|
|
134
134
|
};
|
135
135
|
declare type BaseColors = typeof colors;
|
136
136
|
declare type BaseColor = keyof BaseColors;
|
137
|
-
declare const
|
137
|
+
declare const lightModeColorShades: {
|
138
138
|
50: number;
|
139
139
|
100: number;
|
140
140
|
200: number;
|
@@ -146,7 +146,7 @@ declare const colorShades: {
|
|
146
146
|
800: number;
|
147
147
|
900: number;
|
148
148
|
};
|
149
|
-
declare const
|
149
|
+
declare const lightModeGrayColorShades: {
|
150
150
|
950: number;
|
151
151
|
1000: number;
|
152
152
|
1050: number;
|
@@ -185,8 +185,8 @@ declare const colorAlphaShades: {
|
|
185
185
|
"900": number;
|
186
186
|
"950": number;
|
187
187
|
};
|
188
|
-
declare type ColorShades = typeof
|
189
|
-
declare type GrayColorShades = typeof
|
188
|
+
declare type ColorShades = typeof lightModeColorShades;
|
189
|
+
declare type GrayColorShades = typeof lightModeGrayColorShades;
|
190
190
|
declare type ColorAlphaShades = typeof colorAlphaShades;
|
191
191
|
export declare type ColorShade = keyof ColorShades;
|
192
192
|
export declare type GrayColorShade = keyof GrayColorShades;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,MAAM;;;;CAI/C,CAAC;AAGH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BrB,CAAA;AAED,aAAK,SAAS,GAAG,OAAO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+
const lightModeColorShades = {
|
127
127
|
// whiten
|
128
128
|
50: -0.95,
|
129
129
|
100: -0.9,
|
@@ -137,7 +137,22 @@ const colorShades = {
|
|
137
137
|
800: 0.4,
|
138
138
|
900: 0.51,
|
139
139
|
};
|
140
|
-
const
|
140
|
+
const lightModeGrayColorShades = Object.assign(Object.assign({ 0: -1, 25: -0.97 }, lightModeColorShades), { 950: 0.6, 1000: 0.7, 1050: 0.8, 1100: 0.9 });
|
141
|
+
const darkModeColorShades = {
|
142
|
+
// darken
|
143
|
+
50: 0.9,
|
144
|
+
100: 0.7630875,
|
145
|
+
200: 0.5985,
|
146
|
+
300: 0.3740625,
|
147
|
+
400: 0.149625,
|
148
|
+
// lighten
|
149
|
+
500: 0,
|
150
|
+
600: -0.3,
|
151
|
+
700: -0.6,
|
152
|
+
800: -0.75,
|
153
|
+
900: -0.9,
|
154
|
+
};
|
155
|
+
const darkModeGrayColorShades = Object.assign(Object.assign({ 0: 1, 25: 0.95 }, darkModeColorShades), { 950: -0.925, 1000: -0.95, 1050: -0.97, 1100: -1 });
|
141
156
|
const colorAlphaShades = {
|
142
157
|
"50": 0.05,
|
143
158
|
"100": 0.1,
|
@@ -159,24 +174,30 @@ const colorAlphaShades = {
|
|
159
174
|
"900": 0.9,
|
160
175
|
"950": 0.95
|
161
176
|
};
|
162
|
-
function getColorShade(color, colorName,
|
163
|
-
const
|
164
|
-
const
|
165
|
-
const
|
177
|
+
function getColorShade(color, colorName, weight, dark = false) {
|
178
|
+
const _colorShades = dark ? darkModeColorShades : lightModeColorShades;
|
179
|
+
const _grayColorShades = dark ? darkModeGrayColorShades : lightModeGrayColorShades;
|
180
|
+
const colorShades = colorName === 'gray' ? _grayColorShades : _colorShades;
|
181
|
+
// const weight = colorShades[shade];
|
182
|
+
const shouldLighten = weight < 0;
|
166
183
|
if (shouldLighten) {
|
167
|
-
return lightenRgb(color, Math.abs(
|
184
|
+
return lightenRgb(color, Math.abs(weight));
|
168
185
|
}
|
169
186
|
else {
|
170
|
-
return darkenRgb(color, Math.abs(
|
187
|
+
return darkenRgb(color, Math.abs(weight));
|
171
188
|
}
|
172
189
|
}
|
173
190
|
function generateColorLightDarkShades(color, colorName, dark = false) {
|
174
191
|
try {
|
175
192
|
switch (colorName) {
|
176
|
-
case 'gray':
|
177
|
-
|
178
|
-
|
179
|
-
|
193
|
+
case 'gray': {
|
194
|
+
const colorShades = dark ? darkModeGrayColorShades : lightModeGrayColorShades;
|
195
|
+
return lodash_1.mapValues(colorShades, (weight, shade) => getColorShade(color, colorName, weight, dark));
|
196
|
+
}
|
197
|
+
default: {
|
198
|
+
const colorShades = dark ? darkModeColorShades : lightModeColorShades;
|
199
|
+
return lodash_1.mapValues(colorShades, (weight, shade) => getColorShade(color, colorName, weight, dark));
|
200
|
+
}
|
180
201
|
}
|
181
202
|
}
|
182
203
|
catch (e) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAA4D;AAC5D,uCAAoE;AAEpE,SAAS,UAAU,CAAC,GAAG,EAAE,SAAS;IAC9B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CA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AK,EAAE,CAAC,GACtG,gBAAO,CAAC,4BAA4B,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,GAC5G,gBAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,EAC3F;AACH,CAAC;AAND,kEAMC;AAEH,SAAS;AACT,SAAgB,gBAAgB,CAAC,MAAqC,EAAE,OAAgB,KAAK;IACzF,OAAO,eAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAC,EAAE;QAC9C,eAAM,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,EAAE,2BAA2B,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAA;QAC5F,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,EAAE,CAAC,CAAA;AACV,CAAC;AALD,4CAKC"}
|
@@ -20,7 +20,7 @@ export interface Notification {
|
|
20
20
|
/**
|
21
21
|
* @description notification type
|
22
22
|
*/
|
23
|
-
type?: 'primary' | 'info' | 'success' | 'error' | 'warning';
|
23
|
+
type?: 'primary' | 'secondary' | 'info' | 'success' | 'error' | 'warning';
|
24
24
|
/**
|
25
25
|
* @description icon for notification
|
26
26
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/reducers/notifications.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,eAAO,M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