@evlop/commons 1.0.177 → 1.0.178

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,20 +146,22 @@ declare const colorShades: {
146
146
  700: number;
147
147
  800: number;
148
148
  900: number;
149
+ 950: number;
150
+ 1000: number;
149
151
  };
150
152
  declare type ColorShades = typeof colorShades;
151
153
  export declare type ColorShade = keyof ColorShades;
152
154
  declare type ShadeableColor = Exclude<BaseColor, 'white' | 'black'>;
153
155
  declare type ShadedColor = `${ShadeableColor}-shade-${ColorShade}`;
154
156
  export declare type Color = BaseColor | ShadedColor;
155
- export declare function generateColorLightDarkShades(color: any): {};
157
+ export declare function generateColorLightDarkShades(color: any, dark?: boolean): {};
156
158
  export declare function generateColorAlphaShades(color: any): {};
157
- export declare function generateColorShadesWithName(colorName: string, color: string): {
159
+ export declare function generateColorShadesWithName(colorName: string, color: string, dark?: boolean): {
158
160
  [x: string]: never;
159
161
  };
160
162
  export declare function getColorVariants(colors: {
161
163
  [colorName: string]: string;
162
- }): {};
164
+ }, dark?: boolean): {};
163
165
  export interface Theme {
164
166
  space: {
165
167
  [key in Space]: string;
@@ -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,SAAS,CAAC;AAClC,aAAK,QAAQ,GAAG,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,WAAW;;;;;;;;;;CAUhB,CAAC;AAEF,aAAK,WAAW,GAAG,OAAO,WAAW,CAAC;AACtC,aAAK,UAAU,GAAG,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,iBAAiB,iBAAkB,MAAM;;CAA+C,CAAC;AAGtG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Shades = {
127
127
  // whiten
128
- 0: 0,
128
+ 0: 1,
129
129
  50: 0.95,
130
130
  100: 0.9,
131
131
  200: 0.75,
@@ -136,7 +136,9 @@ const colorShades = {
136
136
  600: 0.1,
137
137
  700: 0.25,
138
138
  800: 0.4,
139
- 900: 0.51
139
+ 900: 0.51,
140
+ 950: 0.95,
141
+ 1000: 1,
140
142
  };
141
143
  const colorAlphaShades = {
142
144
  "50": 0.1,
@@ -150,17 +152,18 @@ const colorAlphaShades = {
150
152
  "800": 0.9,
151
153
  "900": 0.95
152
154
  };
153
- function getColorShade(color, shade) {
154
- if (+shade < 500) {
155
+ function getColorShade(color, shade, dark = false) {
156
+ const shouldLighten = dark ? +shade > 500 : +shade < 500;
157
+ if (shouldLighten) {
155
158
  return lightenRgb(color, colorShades[shade]);
156
159
  }
157
160
  else {
158
161
  return darkenRgb(color, colorShades[shade]);
159
162
  }
160
163
  }
161
- function generateColorLightDarkShades(color) {
164
+ function generateColorLightDarkShades(color, dark = false) {
162
165
  try {
163
- return lodash_1.mapValues(colorShades, (weight, shade) => getColorShade(color, shade));
166
+ return lodash_1.mapValues(colorShades, (weight, shade) => getColorShade(color, shade, dark));
164
167
  }
165
168
  catch (e) {
166
169
  return {};
@@ -176,14 +179,14 @@ function generateColorAlphaShades(color) {
176
179
  }
177
180
  }
178
181
  exports.generateColorAlphaShades = generateColorAlphaShades;
179
- function generateColorShadesWithName(colorName, color) {
180
- return Object.assign(Object.assign(Object.assign({}, lodash_1.mapKeys(generateColorLightDarkShades(color), (color, shade) => `${colorName}-${shade}`)), lodash_1.mapKeys(generateColorLightDarkShades(color), (color, shade) => `${colorName}-shade-${shade}`)), lodash_1.mapKeys(generateColorAlphaShades(color), (color, shade) => `${colorName}-alpha-${shade}`));
182
+ function generateColorShadesWithName(colorName, color, dark = false) {
183
+ return Object.assign(Object.assign(Object.assign({}, lodash_1.mapKeys(generateColorLightDarkShades(color, dark), (color, shade) => `${colorName}-${shade}`)), lodash_1.mapKeys(generateColorLightDarkShades(color, dark), (color, shade) => `${colorName}-shade-${shade}`)), lodash_1.mapKeys(generateColorAlphaShades(color), (color, shade) => `${colorName}-alpha-${shade}`));
181
184
  }
182
185
  exports.generateColorShadesWithName = generateColorShadesWithName;
183
186
  // colors
184
- function getColorVariants(colors) {
187
+ function getColorVariants(colors, dark = false) {
185
188
  return lodash_1.reduce(colors, (_theme, color, colorName) => {
186
- lodash_1.assign(_theme, { [colorName]: color, }, generateColorShadesWithName(colorName, color));
189
+ lodash_1.assign(_theme, { [colorName]: color, }, generateColorShadesWithName(colorName, color, dark));
187
190
  return _theme;
188
191
  }, {});
189
192
  }
@@ -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,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CAAC,MAAM,EAAC,EAAE,CAAA,kBAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;KACrE;IAAC,OAAM,CAAC,EAAC;QACR,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AAND,4DAMC;AAED,SAAgB,2BAA2B,CAAC,SAAgB,EAAE,KAAY,EAAE,OAAe,KAAK;IAC9F,qDACK,gBAAO,CAAC,4BAA4B,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,GAC3F,gBAAO,CAAC,4BAA4B,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,GACjG,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.177",
3
+ "version": "1.0.178",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {