@swell/apps-sdk 1.0.73 → 1.0.74
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/dist/index.cjs +12 -12
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +10 -10
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +3 -3
- package/dist/src/liquid/color.d.ts +3 -6
- package/dist/src/liquid/filters/color_extract.d.ts +1 -1
- package/dist/src/liquid/filters/color_to_hsl.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class ThemeColor {
|
|
|
6
6
|
red: number;
|
|
7
7
|
green: number;
|
|
8
8
|
blue: number;
|
|
9
|
-
constructor(value: string);
|
|
9
|
+
constructor(value: ThemeColor | string);
|
|
10
10
|
static get(colorVal: string | ThemeColor): ThemeColor;
|
|
11
11
|
toString(): string;
|
|
12
12
|
lighten(percent: number): string;
|
|
@@ -17,8 +17,8 @@ export declare class ThemeColor {
|
|
|
17
17
|
hex(): string;
|
|
18
18
|
saturate(value: number): string;
|
|
19
19
|
desaturate(value: number): string;
|
|
20
|
-
modify(field: string, value: number):
|
|
21
|
-
extract(field: string):
|
|
20
|
+
modify(field: string, value: number): string;
|
|
21
|
+
extract(field: string): string;
|
|
22
22
|
mix(color2: ThemeColor, ratio: number): string;
|
|
23
23
|
contrast(color2: ThemeColor): string;
|
|
24
24
|
/**
|
|
@@ -28,6 +28,3 @@ export declare class ThemeColor {
|
|
|
28
28
|
brightness(): number;
|
|
29
29
|
brightnessDifference(color2: ThemeColor): number;
|
|
30
30
|
}
|
|
31
|
-
export declare function mix(a: number, b: number, r: number): number;
|
|
32
|
-
export declare function diff(v1: number, v2: number): number;
|
|
33
|
-
export declare function brightness(colorStr: string): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LiquidSwell, ThemeColor } from
|
|
1
|
+
import { LiquidSwell, ThemeColor } from '..';
|
|
2
2
|
type ColorField = 'red' | 'green' | 'blue' | 'alpha' | 'hue' | 'saturation' | 'lightness';
|
|
3
3
|
export default function bind(_liquidSwell: LiquidSwell): (color: string | ThemeColor, field: ColorField) => string;
|
|
4
4
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LiquidSwell, ThemeColor } from
|
|
1
|
+
import { LiquidSwell, ThemeColor } from '..';
|
|
2
2
|
export default function bind(_liquidSwell: LiquidSwell): (color: string | ThemeColor) => string;
|