figma-kit 1.0.0-beta.33 → 1.0.0-beta.34
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/components/color-picker/color-picker.d.ts +8 -7
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +526 -475
- package/dist/lib/color.d.ts +2 -8
- package/package.json +1 -1
package/dist/lib/color.d.ts
CHANGED
|
@@ -19,12 +19,8 @@ type HSL = {
|
|
|
19
19
|
type RGBA = WithAlpha<RGB>;
|
|
20
20
|
type HSVA = WithAlpha<HSV>;
|
|
21
21
|
type HSLA = WithAlpha<HSL>;
|
|
22
|
-
type HEX = string;
|
|
23
22
|
type P3String = `color(display-p3 ${number} ${number} ${number}${` / ${number}` | ''})`;
|
|
24
23
|
type RGBString = `rgb(${number} ${number} ${number}${` / ${number}` | ''})`;
|
|
25
|
-
declare function rgbaToHex({ r, g, b, a }: RGBA): HEX;
|
|
26
|
-
declare function hslaToHex(hsla: HSLA): HEX;
|
|
27
|
-
declare function hsvaToHex(hsla: HSVA): HEX;
|
|
28
24
|
declare function rgbaToHsva({ r, g, b, a }: RGBA): HSVA;
|
|
29
25
|
declare function hsvaToRgba({ h, s, v, a }: HSVA): RGBA;
|
|
30
26
|
declare function hslaToHsva({ h, s, l, a }: HSLA): HSVA;
|
|
@@ -34,7 +30,5 @@ declare function rgbaToHsla(rgba: RGBA): HSLA;
|
|
|
34
30
|
declare function rgbaToP3String(color: RGBA): P3String;
|
|
35
31
|
declare function rgbaToCssString(color: RGBA): RGBString;
|
|
36
32
|
declare function blendWithWhite(color: RGBA): RGBA;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export type { RGB, HSV, HSL, RGBA, HSVA, HSLA, HEX, P3String, RGBString };
|
|
40
|
-
export { rgbaToHex, rgbaToHsva, hsvaToRgba, hslaToHsva, hsvaToHsla, hslaToRgba, rgbaToHsla, rgbaToP3String, rgbaToCssString, blendWithWhite, roundHsva, roundHsla, hslaToHex, hsvaToHex, };
|
|
33
|
+
export type { RGB, HSV, HSL, RGBA, HSVA, HSLA, P3String, RGBString };
|
|
34
|
+
export { rgbaToHsva, hsvaToRgba, hslaToHsva, hsvaToHsla, hslaToRgba, rgbaToHsla, rgbaToP3String, rgbaToCssString, blendWithWhite, };
|
package/package.json
CHANGED