@leanix/components 0.2.228 → 0.2.229

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Compute the most eligible text color for a given background color (black or white), depending on the luminance of the
3
+ * background color. In case the provided color is undefined or invalid, white (#FFFFFF) is returned.
4
+ *
5
+ * @param colorHex Color string in hexadecimal encoding.
6
+ * @returns Equivalent contrast color in hexadecimal encoding.
7
+ */
1
8
  export declare function getContrastColor(colorHex?: string): string;
2
9
  export declare function shorthandHexHandle(hex: string): string;
3
10
  export declare function isValidHexColor(color: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.2.228",
3
+ "version": "0.2.229",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {