@evlop/commons 1.0.167 → 1.0.169
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/helpers/themeHelpers.d.ts +3 -26
- package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
- package/dist/src/helpers/themeHelpers.js +12 -2
- package/dist/src/helpers/themeHelpers.js.map +1 -1
- package/dist/src/reducers/icons.d.ts +5 -0
- package/dist/src/reducers/icons.d.ts.map +1 -1
- package/dist/src/reducers/icons.js +14 -2
- package/dist/src/reducers/icons.js.map +1 -1
- package/package.json +1 -1
@@ -152,33 +152,10 @@ export declare type ColorShade = keyof ColorShades;
|
|
152
152
|
declare type ShadeableColor = Exclude<BaseColor, 'white' | 'black'>;
|
153
153
|
declare type ShadedColor = `${ShadeableColor}-shade-${ColorShade}`;
|
154
154
|
export declare type Color = BaseColor | ShadedColor;
|
155
|
-
export declare function generateColorLightDarkShades(color: any): {
|
156
|
-
|
157
|
-
50: string;
|
158
|
-
100: string;
|
159
|
-
200: string;
|
160
|
-
300: string;
|
161
|
-
400: string;
|
162
|
-
500: string;
|
163
|
-
600: string;
|
164
|
-
700: string;
|
165
|
-
800: string;
|
166
|
-
900: string;
|
167
|
-
};
|
168
|
-
export declare function generateColorAlphaShades(color: any): {
|
169
|
-
50: any;
|
170
|
-
100: any;
|
171
|
-
200: any;
|
172
|
-
300: any;
|
173
|
-
400: any;
|
174
|
-
500: any;
|
175
|
-
600: any;
|
176
|
-
700: any;
|
177
|
-
800: any;
|
178
|
-
900: any;
|
179
|
-
};
|
155
|
+
export declare function generateColorLightDarkShades(color: any): {};
|
156
|
+
export declare function generateColorAlphaShades(color: any): {};
|
180
157
|
export declare function generateColorShadesWithName(colorName: string, color: string): {
|
181
|
-
[x: string]:
|
158
|
+
[x: string]: never;
|
182
159
|
};
|
183
160
|
export declare function getColorVariants(colors: {
|
184
161
|
[colorName: string]: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.t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CAchB,CAAA;AAeD,aAAK,WAAW,GAAG,OAAO,WAAW,CAAC;AAEtC,oBAAY,UAAU,GAAG,MAAM,WAAW,CAAC;AAE3C,aAAK,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,OAAO,GAAC,OAAO,CAAC,CAAC;AAC1D,aAAK,WAAW,GAAG,GAAG,cAAc,UAAU,UAAU,EAAE,CAAA;AAE1D,oBAAY,KAAK,GAAG,SAAS,GAAG,WAAW,CAAC;AAU5C,wBAAgB,4BAA4B,CAAC,KAAK,KAAA,MAM/C;AAED,wBAAgB,wBAAwB,CAAC,KAAK,KAAA,MAM7C;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM;;EAMzE;AAGH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,MAKrE;AACD,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IAChC,SAAS,EAAE;SAAE,GAAG,IAAI,QAAQ,GAAG,MAAM;KAAC,CAAC;IACvC,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,MAAM,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
@@ -159,11 +159,21 @@ function getColorShade(color, shade) {
|
|
159
159
|
}
|
160
160
|
}
|
161
161
|
function generateColorLightDarkShades(color) {
|
162
|
-
|
162
|
+
try {
|
163
|
+
return lodash_1.mapValues(colorShades, (weight, shade) => getColorShade(color, shade));
|
164
|
+
}
|
165
|
+
catch (e) {
|
166
|
+
return {};
|
167
|
+
}
|
163
168
|
}
|
164
169
|
exports.generateColorLightDarkShades = generateColorLightDarkShades;
|
165
170
|
function generateColorAlphaShades(color) {
|
166
|
-
|
171
|
+
try {
|
172
|
+
return lodash_1.mapValues(colorAlphaShades, (weight) => polished_1.opacify(weight, color));
|
173
|
+
}
|
174
|
+
catch (e) {
|
175
|
+
return {};
|
176
|
+
}
|
167
177
|
}
|
168
178
|
exports.generateColorAlphaShades = generateColorAlphaShades;
|
169
179
|
function generateColorShadesWithName(colorName, color) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAA4D;AAC5D,uCAAoD;AAEpD,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,CAAC,CAAC;IAElE,OAAO,cAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,SAAS,CAAC,GAAG,EAAE,SAAS;IAC/B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,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BAAO,CAAC,4BAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,GAC3F,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;IAClE,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,CAAC,CAAC,CAAA;QACtF,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,EAAE,CAAC,CAAA;AACV,CAAC;AALD,4CAKC"}
|
@@ -1,8 +1,13 @@
|
|
1
1
|
export declare const REGISTER_ICON = "REGISTER_ICON";
|
2
|
+
export declare const REGISTER_ICONS = "REGISTER_ICON";
|
2
3
|
export declare function registerIcon(icon: any): {
|
3
4
|
type: string;
|
4
5
|
icon: any;
|
5
6
|
};
|
7
|
+
export declare function registerIcons(icons: any[]): {
|
8
|
+
type: string;
|
9
|
+
icons: any[];
|
10
|
+
};
|
6
11
|
declare const _default: (state: any, action: any) => any;
|
7
12
|
export default _default;
|
8
13
|
//# sourceMappingURL=icons.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG;;;EAKrC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE;;;EAKzC;;AAKD,wBAWC"}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.registerIcon = exports.REGISTER_ICON = void 0;
|
3
|
+
exports.registerIcons = exports.registerIcon = exports.REGISTER_ICONS = exports.REGISTER_ICON = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
4
5
|
exports.REGISTER_ICON = 'REGISTER_ICON';
|
6
|
+
exports.REGISTER_ICONS = 'REGISTER_ICON';
|
5
7
|
function registerIcon(icon) {
|
6
8
|
return {
|
7
9
|
type: exports.REGISTER_ICON,
|
@@ -9,11 +11,21 @@ function registerIcon(icon) {
|
|
9
11
|
};
|
10
12
|
}
|
11
13
|
exports.registerIcon = registerIcon;
|
14
|
+
function registerIcons(icons) {
|
15
|
+
return {
|
16
|
+
type: exports.REGISTER_ICON,
|
17
|
+
icons
|
18
|
+
};
|
19
|
+
}
|
20
|
+
exports.registerIcons = registerIcons;
|
12
21
|
let initialState = [];
|
13
22
|
exports.default = (state = initialState, action) => {
|
14
23
|
switch (action.type) {
|
15
24
|
case exports.REGISTER_ICON: {
|
16
|
-
return [...state, action.icon];
|
25
|
+
return lodash_1.uniqBy([...state, action.icon], 'id');
|
26
|
+
}
|
27
|
+
case exports.REGISTER_ICONS: {
|
28
|
+
return lodash_1.uniqBy([...state, ...action.icons], 'id');
|
17
29
|
}
|
18
30
|
default:
|
19
31
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEnB,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,cAAc,GAAG,eAAe,CAAC;AAE9C,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,IAAI;KACP,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,aAAa,CAAC,KAAY;IACtC,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,KAAK;KACR,CAAC;AACN,CAAC;AALD,sCAKC;AAED,IAAI,YAAY,GAAO,EACtB,CAAC;AAEF,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,qBAAa,CAAC,CAAA;YACf,OAAO,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;SAC/C;QACD,KAAK,sBAAc,CAAC,CAAA;YAChB,OAAO,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;SACnD;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
|