@testgorilla/tgo-ui 2.5.3 → 2.6.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "2.5.3",
3
+ "version": "2.6.1",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -8,3 +8,21 @@
8
8
  * @param theme
9
9
  */
10
10
  export declare const adjustLightness: (hexColor: string, typeEvent: 'hover' | 'pressed' | 'disabled', theme?: 'new' | 'classic') => string;
11
+ /**
12
+ * Transforms hex color to HSL in object variation.
13
+ * @param hexColor string value with hex color
14
+ */
15
+ export declare const hexToHsl: (hexColor: string) => {
16
+ h: number;
17
+ s: number;
18
+ l: number;
19
+ };
20
+ /**
21
+ * Transforms HSL color, represented as an object and transforms it to hex string.
22
+ * @param hslColor accepts the HSL color like an object.
23
+ */
24
+ export declare const hslToHex: (hslColor: {
25
+ h: number;
26
+ s: number;
27
+ l: number;
28
+ }) => string;