@acorex/core 5.3.4 → 5.6.0

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.
@@ -1,15 +1,14 @@
1
+ export declare type AXColorMode = 'rgba' | 'hex' | 'hsla' | 'hsva';
1
2
  export declare class AXColorUtil {
2
- static rgba2Hex(rgba: string | {
3
- r: number;
4
- g: number;
5
- b: number;
6
- a?: number;
7
- }): string;
8
- static hex2Rgb(hexColor: string): {
9
- r: number;
10
- g: number;
11
- b: number;
12
- };
3
+ static testa(color: string): void;
4
+ static to(color: string, mode: AXColorMode): string | any;
5
+ static toString(color: string, mode: AXColorMode): string | any;
6
+ static mix(baseColor: string, hex: string, percentage: number): any;
7
+ static multiply(rgb1: any, rgb2: any): any;
8
+ static toHexSting(color: string): any;
9
+ static toRGBString(color: string): any;
13
10
  static illuminance(hexColor: string): number;
14
- static contrastToWhite(hexColor: string): number;
11
+ static contrastToWhite(color: string): any;
12
+ static lighten(hex: string, percentage?: number): any;
13
+ static darken(hex: string, percentage?: number): any;
15
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/core",
3
- "version": "5.3.4",
3
+ "version": "5.6.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.7",
6
6
  "@angular/core": "^13.3.7",
@@ -10,7 +10,8 @@
10
10
  "postcss-nesting": "^10.0.3",
11
11
  "tailwind-rtl-utilities": "^3.0.5",
12
12
  "animated-tailwindcss": "^3.2.5",
13
- "tailwindcss": "^3.0.24"
13
+ "tailwindcss": "^3.0.24",
14
+ "tinycolor2": "^1.4.2"
14
15
  },
15
16
  "dependencies": {
16
17
  "tslib": "^2.3.1"