@utilix-tech/sdk 0.1.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.
Files changed (106) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +199 -0
  3. package/dist/api-8aZtWhSj.d.cts +308 -0
  4. package/dist/api-8aZtWhSj.d.ts +308 -0
  5. package/dist/chunk-2CJSLYWI.js +520 -0
  6. package/dist/chunk-3BAHSW4C.js +1385 -0
  7. package/dist/chunk-6YPV2AB5.js +1246 -0
  8. package/dist/chunk-BPVAB4P2.js +1126 -0
  9. package/dist/chunk-FL53T24A.js +257 -0
  10. package/dist/chunk-L6KCTHUW.js +1086 -0
  11. package/dist/chunk-MLKGABMK.js +7 -0
  12. package/dist/chunk-ROTPLW7T.js +265 -0
  13. package/dist/chunk-TSAGO3XP.js +1253 -0
  14. package/dist/chunk-UC656APA.js +1080 -0
  15. package/dist/chunk-W4UBLYFU.js +1219 -0
  16. package/dist/chunk-XST6X3HT.js +896 -0
  17. package/dist/chunk-XXYZLLHI.js +2227 -0
  18. package/dist/chunk-ZKL2VX2G.js +2215 -0
  19. package/dist/chunk-ZPQZEIXP.js +685 -0
  20. package/dist/code-QNrdLIR3.d.cts +327 -0
  21. package/dist/code-QNrdLIR3.d.ts +327 -0
  22. package/dist/color-tPwZCr9H.d.cts +229 -0
  23. package/dist/color-tPwZCr9H.d.ts +229 -0
  24. package/dist/css-Cf7AMGM-.d.cts +318 -0
  25. package/dist/css-Cf7AMGM-.d.ts +318 -0
  26. package/dist/data-rMjWNiOJ.d.cts +215 -0
  27. package/dist/data-rMjWNiOJ.d.ts +215 -0
  28. package/dist/encoding-7gmq-vkV.d.cts +108 -0
  29. package/dist/encoding-7gmq-vkV.d.ts +108 -0
  30. package/dist/generators-BGtRGpJZ.d.cts +118 -0
  31. package/dist/generators-BGtRGpJZ.d.ts +118 -0
  32. package/dist/hashing-CnetQFD_.d.cts +76 -0
  33. package/dist/hashing-CnetQFD_.d.ts +76 -0
  34. package/dist/index.cjs +15466 -0
  35. package/dist/index.d.cts +18 -0
  36. package/dist/index.d.ts +18 -0
  37. package/dist/index.js +20 -0
  38. package/dist/json-BjSoIS1h.d.cts +198 -0
  39. package/dist/json-BjSoIS1h.d.ts +198 -0
  40. package/dist/misc-DcVBManm.d.cts +201 -0
  41. package/dist/misc-DcVBManm.d.ts +201 -0
  42. package/dist/network-CNtmrDeN.d.cts +170 -0
  43. package/dist/network-CNtmrDeN.d.ts +170 -0
  44. package/dist/text-DqAjPtQ0.d.cts +319 -0
  45. package/dist/text-DqAjPtQ0.d.ts +319 -0
  46. package/dist/time-DbT8fjaF.d.cts +145 -0
  47. package/dist/time-DbT8fjaF.d.ts +145 -0
  48. package/dist/tools/api.cjs +1216 -0
  49. package/dist/tools/api.d.cts +1 -0
  50. package/dist/tools/api.d.ts +1 -0
  51. package/dist/tools/api.js +2 -0
  52. package/dist/tools/code.cjs +2212 -0
  53. package/dist/tools/code.d.cts +1 -0
  54. package/dist/tools/code.d.ts +1 -0
  55. package/dist/tools/code.js +2 -0
  56. package/dist/tools/color.cjs +1122 -0
  57. package/dist/tools/color.d.cts +1 -0
  58. package/dist/tools/color.d.ts +1 -0
  59. package/dist/tools/color.js +2 -0
  60. package/dist/tools/css.cjs +1242 -0
  61. package/dist/tools/css.d.cts +1 -0
  62. package/dist/tools/css.d.ts +1 -0
  63. package/dist/tools/css.js +2 -0
  64. package/dist/tools/data.cjs +1097 -0
  65. package/dist/tools/data.d.cts +1 -0
  66. package/dist/tools/data.d.ts +1 -0
  67. package/dist/tools/data.js +2 -0
  68. package/dist/tools/encoding.cjs +261 -0
  69. package/dist/tools/encoding.d.cts +1 -0
  70. package/dist/tools/encoding.d.ts +1 -0
  71. package/dist/tools/encoding.js +2 -0
  72. package/dist/tools/generators.cjs +521 -0
  73. package/dist/tools/generators.d.cts +1 -0
  74. package/dist/tools/generators.d.ts +1 -0
  75. package/dist/tools/generators.js +2 -0
  76. package/dist/tools/hashing.cjs +259 -0
  77. package/dist/tools/hashing.d.cts +1 -0
  78. package/dist/tools/hashing.d.ts +1 -0
  79. package/dist/tools/hashing.js +2 -0
  80. package/dist/tools/json.cjs +1270 -0
  81. package/dist/tools/json.d.cts +1 -0
  82. package/dist/tools/json.d.ts +1 -0
  83. package/dist/tools/json.js +2 -0
  84. package/dist/tools/misc.cjs +1082 -0
  85. package/dist/tools/misc.d.cts +1 -0
  86. package/dist/tools/misc.d.ts +1 -0
  87. package/dist/tools/misc.js +2 -0
  88. package/dist/tools/network.cjs +1381 -0
  89. package/dist/tools/network.d.cts +1 -0
  90. package/dist/tools/network.d.ts +1 -0
  91. package/dist/tools/network.js +2 -0
  92. package/dist/tools/text.cjs +2224 -0
  93. package/dist/tools/text.d.cts +1 -0
  94. package/dist/tools/text.d.ts +1 -0
  95. package/dist/tools/text.js +2 -0
  96. package/dist/tools/time.cjs +681 -0
  97. package/dist/tools/time.d.cts +1 -0
  98. package/dist/tools/time.d.ts +1 -0
  99. package/dist/tools/time.js +2 -0
  100. package/dist/tools/units.cjs +892 -0
  101. package/dist/tools/units.d.cts +1 -0
  102. package/dist/tools/units.d.ts +1 -0
  103. package/dist/tools/units.js +2 -0
  104. package/dist/units-6lwDYBvX.d.cts +302 -0
  105. package/dist/units-6lwDYBvX.d.ts +302 -0
  106. package/package.json +148 -0
@@ -0,0 +1,229 @@
1
+ /**
2
+ * @module color
3
+ *
4
+ * Color utilities for the @utilix/sdk Node.js SDK.
5
+ *
6
+ * Tools covered:
7
+ * - color-converter : parseColor, hexToRgb, rgbToHex, rgbToHsl, hslToRgb, rgbToHsv, hsvToRgb
8
+ * - color-palette : generatePalette, hexToHsl (palette variant), hslToHex (palette variant)
9
+ * - contrast-ratio : checkContrast, hexToLinearRgb, relativeLuminance
10
+ * - color-picker : parseColor (picker variant), rgbToCmyk
11
+ * - color-shades : generateShades, generateTints, generateScale, getContrastColor, colorName
12
+ * - color-blend : blendColors, mixColors, complementaryColor, analogousColors, triadicColors
13
+ */
14
+ interface RGB {
15
+ r: number;
16
+ g: number;
17
+ b: number;
18
+ }
19
+ interface HSL {
20
+ h: number;
21
+ s: number;
22
+ l: number;
23
+ }
24
+ interface HSV {
25
+ h: number;
26
+ s: number;
27
+ v: number;
28
+ }
29
+ interface ColorResult {
30
+ hex: string;
31
+ rgb: RGB;
32
+ hsl: HSL;
33
+ hsv: HSV;
34
+ css: {
35
+ hex: string;
36
+ rgb: string;
37
+ hsl: string;
38
+ };
39
+ valid: boolean;
40
+ error?: string;
41
+ }
42
+ declare function hexToRgb(hex: string): RGB;
43
+ declare function rgbToHex(rgb: RGB): string;
44
+ declare function rgbToHsl(rgb: RGB): HSL;
45
+ declare function hslToRgb(hsl: HSL): RGB;
46
+ declare function rgbToHsv(rgb: RGB): HSV;
47
+ declare function hsvToRgb(hsv: HSV): RGB;
48
+ declare function parseColor(input: string): ColorResult;
49
+ type PaletteType = 'complementary' | 'analogous' | 'triadic' | 'tetradic' | 'split-complementary' | 'monochromatic' | 'shades';
50
+ declare const PALETTE_TYPES: PaletteType[];
51
+ interface PaletteColor {
52
+ hex: string;
53
+ hsl: HSL;
54
+ label: string;
55
+ }
56
+ interface Palette {
57
+ type: PaletteType;
58
+ baseHex: string;
59
+ colors: PaletteColor[];
60
+ }
61
+ declare function hexToHsl(hex: string): HSL;
62
+ declare function hslToHex(h: number, s: number, l: number): string;
63
+ declare function generatePalette(hex: string, type: PaletteType): Palette | {
64
+ error: string;
65
+ };
66
+ interface ContrastResult {
67
+ ratio: number;
68
+ ratioString: string;
69
+ aa: {
70
+ normal: boolean;
71
+ large: boolean;
72
+ ui: boolean;
73
+ };
74
+ aaa: {
75
+ normal: boolean;
76
+ large: boolean;
77
+ };
78
+ level: 'AAA' | 'AA' | 'AA Large' | 'Fail';
79
+ }
80
+ declare function hexToLinearRgb(hex: string): {
81
+ r: number;
82
+ g: number;
83
+ b: number;
84
+ };
85
+ declare function relativeLuminance(r: number, g: number, b: number): number;
86
+ declare function checkContrast(color1: string, color2: string): ContrastResult | {
87
+ error: string;
88
+ };
89
+ interface RgbColor {
90
+ r: number;
91
+ g: number;
92
+ b: number;
93
+ }
94
+ interface HslColor {
95
+ h: number;
96
+ s: number;
97
+ l: number;
98
+ }
99
+ interface HsvColor {
100
+ h: number;
101
+ s: number;
102
+ v: number;
103
+ }
104
+ interface PickerColorResult {
105
+ hex: string;
106
+ rgb: RgbColor;
107
+ hsl: HslColor;
108
+ hsv: HsvColor;
109
+ cmyk: {
110
+ c: number;
111
+ m: number;
112
+ y: number;
113
+ k: number;
114
+ };
115
+ name?: string;
116
+ }
117
+ declare const NAMED_COLORS: Record<string, string>;
118
+ declare function hexToRgbPicker(hex: string): RgbColor | null;
119
+ declare function rgbToHexPicker(rgb: RgbColor): string;
120
+ declare function rgbToHslPicker(rgb: RgbColor): HslColor;
121
+ declare function hslToRgbPicker(hsl: HslColor): RgbColor;
122
+ declare function rgbToHsvPicker(rgb: RgbColor): HsvColor;
123
+ declare function hsvToRgbPicker(hsv: HsvColor): RgbColor;
124
+ declare function rgbToCmyk(rgb: RgbColor): {
125
+ c: number;
126
+ m: number;
127
+ y: number;
128
+ k: number;
129
+ };
130
+ declare function parseColorPicker(input: string): PickerColorResult | {
131
+ error: string;
132
+ };
133
+ declare function hexToRgbShades(hex: string): RgbColor;
134
+ declare function rgbToHexShades(r: number, g: number, b: number): string;
135
+ declare function hexToHslShades(hex: string): HslColor;
136
+ declare function hslToHexShades(h: number, s: number, l: number): string;
137
+ declare function generateShades(hex: string, steps?: number): string[];
138
+ declare function generateTints(hex: string, steps?: number): string[];
139
+ declare function generateScale(hex: string, steps?: number): {
140
+ shades: string[];
141
+ tints: string[];
142
+ base: string;
143
+ };
144
+ declare function getContrastColor(hex: string): '#000000' | '#ffffff';
145
+ declare function colorName(hex: string): string;
146
+ type BlendMode = 'rgb' | 'hsl' | 'oklch';
147
+ declare function hexToRgbBlend(hex: string): RgbColor | {
148
+ error: string;
149
+ };
150
+ declare function rgbToHexBlend(r: number, g: number, b: number): string;
151
+ declare function hexToHslBlend(hex: string): HslColor | {
152
+ error: string;
153
+ };
154
+ declare function hslToHexBlend(h: number, s: number, l: number): string;
155
+ declare function blendColors(color1: string, color2: string, steps?: number, mode?: BlendMode): string[] | {
156
+ error: string;
157
+ };
158
+ declare function mixColors(color1: string, color2: string, ratio?: number): string | {
159
+ error: string;
160
+ };
161
+ declare function complementaryColor(hex: string): string | {
162
+ error: string;
163
+ };
164
+ declare function analogousColors(hex: string, angle?: number): [string, string] | {
165
+ error: string;
166
+ };
167
+ declare function triadicColors(hex: string): [string, string] | {
168
+ error: string;
169
+ };
170
+
171
+ type color_BlendMode = BlendMode;
172
+ type color_ColorResult = ColorResult;
173
+ type color_ContrastResult = ContrastResult;
174
+ type color_HSL = HSL;
175
+ type color_HSV = HSV;
176
+ type color_HslColor = HslColor;
177
+ type color_HsvColor = HsvColor;
178
+ declare const color_NAMED_COLORS: typeof NAMED_COLORS;
179
+ declare const color_PALETTE_TYPES: typeof PALETTE_TYPES;
180
+ type color_Palette = Palette;
181
+ type color_PaletteColor = PaletteColor;
182
+ type color_PaletteType = PaletteType;
183
+ type color_PickerColorResult = PickerColorResult;
184
+ type color_RGB = RGB;
185
+ type color_RgbColor = RgbColor;
186
+ declare const color_analogousColors: typeof analogousColors;
187
+ declare const color_blendColors: typeof blendColors;
188
+ declare const color_checkContrast: typeof checkContrast;
189
+ declare const color_colorName: typeof colorName;
190
+ declare const color_complementaryColor: typeof complementaryColor;
191
+ declare const color_generatePalette: typeof generatePalette;
192
+ declare const color_generateScale: typeof generateScale;
193
+ declare const color_generateShades: typeof generateShades;
194
+ declare const color_generateTints: typeof generateTints;
195
+ declare const color_getContrastColor: typeof getContrastColor;
196
+ declare const color_hexToHsl: typeof hexToHsl;
197
+ declare const color_hexToHslBlend: typeof hexToHslBlend;
198
+ declare const color_hexToHslShades: typeof hexToHslShades;
199
+ declare const color_hexToLinearRgb: typeof hexToLinearRgb;
200
+ declare const color_hexToRgb: typeof hexToRgb;
201
+ declare const color_hexToRgbBlend: typeof hexToRgbBlend;
202
+ declare const color_hexToRgbPicker: typeof hexToRgbPicker;
203
+ declare const color_hexToRgbShades: typeof hexToRgbShades;
204
+ declare const color_hslToHex: typeof hslToHex;
205
+ declare const color_hslToHexBlend: typeof hslToHexBlend;
206
+ declare const color_hslToHexShades: typeof hslToHexShades;
207
+ declare const color_hslToRgb: typeof hslToRgb;
208
+ declare const color_hslToRgbPicker: typeof hslToRgbPicker;
209
+ declare const color_hsvToRgb: typeof hsvToRgb;
210
+ declare const color_hsvToRgbPicker: typeof hsvToRgbPicker;
211
+ declare const color_mixColors: typeof mixColors;
212
+ declare const color_parseColor: typeof parseColor;
213
+ declare const color_parseColorPicker: typeof parseColorPicker;
214
+ declare const color_relativeLuminance: typeof relativeLuminance;
215
+ declare const color_rgbToCmyk: typeof rgbToCmyk;
216
+ declare const color_rgbToHex: typeof rgbToHex;
217
+ declare const color_rgbToHexBlend: typeof rgbToHexBlend;
218
+ declare const color_rgbToHexPicker: typeof rgbToHexPicker;
219
+ declare const color_rgbToHexShades: typeof rgbToHexShades;
220
+ declare const color_rgbToHsl: typeof rgbToHsl;
221
+ declare const color_rgbToHslPicker: typeof rgbToHslPicker;
222
+ declare const color_rgbToHsv: typeof rgbToHsv;
223
+ declare const color_rgbToHsvPicker: typeof rgbToHsvPicker;
224
+ declare const color_triadicColors: typeof triadicColors;
225
+ declare namespace color {
226
+ export { type color_BlendMode as BlendMode, type color_ColorResult as ColorResult, type color_ContrastResult as ContrastResult, type color_HSL as HSL, type color_HSV as HSV, type color_HslColor as HslColor, type color_HsvColor as HsvColor, color_NAMED_COLORS as NAMED_COLORS, color_PALETTE_TYPES as PALETTE_TYPES, type color_Palette as Palette, type color_PaletteColor as PaletteColor, type color_PaletteType as PaletteType, type color_PickerColorResult as PickerColorResult, type color_RGB as RGB, type color_RgbColor as RgbColor, color_analogousColors as analogousColors, color_blendColors as blendColors, color_checkContrast as checkContrast, color_colorName as colorName, color_complementaryColor as complementaryColor, color_generatePalette as generatePalette, color_generateScale as generateScale, color_generateShades as generateShades, color_generateTints as generateTints, color_getContrastColor as getContrastColor, color_hexToHsl as hexToHsl, color_hexToHslBlend as hexToHslBlend, color_hexToHslShades as hexToHslShades, color_hexToLinearRgb as hexToLinearRgb, color_hexToRgb as hexToRgb, color_hexToRgbBlend as hexToRgbBlend, color_hexToRgbPicker as hexToRgbPicker, color_hexToRgbShades as hexToRgbShades, color_hslToHex as hslToHex, color_hslToHexBlend as hslToHexBlend, color_hslToHexShades as hslToHexShades, color_hslToRgb as hslToRgb, color_hslToRgbPicker as hslToRgbPicker, color_hsvToRgb as hsvToRgb, color_hsvToRgbPicker as hsvToRgbPicker, color_mixColors as mixColors, color_parseColor as parseColor, color_parseColorPicker as parseColorPicker, color_relativeLuminance as relativeLuminance, color_rgbToCmyk as rgbToCmyk, color_rgbToHex as rgbToHex, color_rgbToHexBlend as rgbToHexBlend, color_rgbToHexPicker as rgbToHexPicker, color_rgbToHexShades as rgbToHexShades, color_rgbToHsl as rgbToHsl, color_rgbToHslPicker as rgbToHslPicker, color_rgbToHsv as rgbToHsv, color_rgbToHsvPicker as rgbToHsvPicker, color_triadicColors as triadicColors };
227
+ }
228
+
229
+ export { rgbToHsvPicker as $, hexToRgbPicker as A, type BlendMode as B, type ColorResult as C, hexToRgbShades as D, hslToHex as E, hslToHexBlend as F, hslToHexShades as G, type HSL as H, hslToRgb as I, hslToRgbPicker as J, hsvToRgb as K, hsvToRgbPicker as L, mixColors as M, NAMED_COLORS as N, parseColor as O, PALETTE_TYPES as P, parseColorPicker as Q, type RGB as R, relativeLuminance as S, rgbToCmyk as T, rgbToHex as U, rgbToHexBlend as V, rgbToHexPicker as W, rgbToHexShades as X, rgbToHsl as Y, rgbToHslPicker as Z, rgbToHsv as _, type ContrastResult as a, triadicColors as a0, type HSV as b, color as c, type HslColor as d, type HsvColor as e, type Palette as f, type PaletteColor as g, type PaletteType as h, type PickerColorResult as i, type RgbColor as j, analogousColors as k, blendColors as l, checkContrast as m, colorName as n, complementaryColor as o, generatePalette as p, generateScale as q, generateShades as r, generateTints as s, getContrastColor as t, hexToHsl as u, hexToHslBlend as v, hexToHslShades as w, hexToLinearRgb as x, hexToRgb as y, hexToRgbBlend as z };
@@ -0,0 +1,229 @@
1
+ /**
2
+ * @module color
3
+ *
4
+ * Color utilities for the @utilix/sdk Node.js SDK.
5
+ *
6
+ * Tools covered:
7
+ * - color-converter : parseColor, hexToRgb, rgbToHex, rgbToHsl, hslToRgb, rgbToHsv, hsvToRgb
8
+ * - color-palette : generatePalette, hexToHsl (palette variant), hslToHex (palette variant)
9
+ * - contrast-ratio : checkContrast, hexToLinearRgb, relativeLuminance
10
+ * - color-picker : parseColor (picker variant), rgbToCmyk
11
+ * - color-shades : generateShades, generateTints, generateScale, getContrastColor, colorName
12
+ * - color-blend : blendColors, mixColors, complementaryColor, analogousColors, triadicColors
13
+ */
14
+ interface RGB {
15
+ r: number;
16
+ g: number;
17
+ b: number;
18
+ }
19
+ interface HSL {
20
+ h: number;
21
+ s: number;
22
+ l: number;
23
+ }
24
+ interface HSV {
25
+ h: number;
26
+ s: number;
27
+ v: number;
28
+ }
29
+ interface ColorResult {
30
+ hex: string;
31
+ rgb: RGB;
32
+ hsl: HSL;
33
+ hsv: HSV;
34
+ css: {
35
+ hex: string;
36
+ rgb: string;
37
+ hsl: string;
38
+ };
39
+ valid: boolean;
40
+ error?: string;
41
+ }
42
+ declare function hexToRgb(hex: string): RGB;
43
+ declare function rgbToHex(rgb: RGB): string;
44
+ declare function rgbToHsl(rgb: RGB): HSL;
45
+ declare function hslToRgb(hsl: HSL): RGB;
46
+ declare function rgbToHsv(rgb: RGB): HSV;
47
+ declare function hsvToRgb(hsv: HSV): RGB;
48
+ declare function parseColor(input: string): ColorResult;
49
+ type PaletteType = 'complementary' | 'analogous' | 'triadic' | 'tetradic' | 'split-complementary' | 'monochromatic' | 'shades';
50
+ declare const PALETTE_TYPES: PaletteType[];
51
+ interface PaletteColor {
52
+ hex: string;
53
+ hsl: HSL;
54
+ label: string;
55
+ }
56
+ interface Palette {
57
+ type: PaletteType;
58
+ baseHex: string;
59
+ colors: PaletteColor[];
60
+ }
61
+ declare function hexToHsl(hex: string): HSL;
62
+ declare function hslToHex(h: number, s: number, l: number): string;
63
+ declare function generatePalette(hex: string, type: PaletteType): Palette | {
64
+ error: string;
65
+ };
66
+ interface ContrastResult {
67
+ ratio: number;
68
+ ratioString: string;
69
+ aa: {
70
+ normal: boolean;
71
+ large: boolean;
72
+ ui: boolean;
73
+ };
74
+ aaa: {
75
+ normal: boolean;
76
+ large: boolean;
77
+ };
78
+ level: 'AAA' | 'AA' | 'AA Large' | 'Fail';
79
+ }
80
+ declare function hexToLinearRgb(hex: string): {
81
+ r: number;
82
+ g: number;
83
+ b: number;
84
+ };
85
+ declare function relativeLuminance(r: number, g: number, b: number): number;
86
+ declare function checkContrast(color1: string, color2: string): ContrastResult | {
87
+ error: string;
88
+ };
89
+ interface RgbColor {
90
+ r: number;
91
+ g: number;
92
+ b: number;
93
+ }
94
+ interface HslColor {
95
+ h: number;
96
+ s: number;
97
+ l: number;
98
+ }
99
+ interface HsvColor {
100
+ h: number;
101
+ s: number;
102
+ v: number;
103
+ }
104
+ interface PickerColorResult {
105
+ hex: string;
106
+ rgb: RgbColor;
107
+ hsl: HslColor;
108
+ hsv: HsvColor;
109
+ cmyk: {
110
+ c: number;
111
+ m: number;
112
+ y: number;
113
+ k: number;
114
+ };
115
+ name?: string;
116
+ }
117
+ declare const NAMED_COLORS: Record<string, string>;
118
+ declare function hexToRgbPicker(hex: string): RgbColor | null;
119
+ declare function rgbToHexPicker(rgb: RgbColor): string;
120
+ declare function rgbToHslPicker(rgb: RgbColor): HslColor;
121
+ declare function hslToRgbPicker(hsl: HslColor): RgbColor;
122
+ declare function rgbToHsvPicker(rgb: RgbColor): HsvColor;
123
+ declare function hsvToRgbPicker(hsv: HsvColor): RgbColor;
124
+ declare function rgbToCmyk(rgb: RgbColor): {
125
+ c: number;
126
+ m: number;
127
+ y: number;
128
+ k: number;
129
+ };
130
+ declare function parseColorPicker(input: string): PickerColorResult | {
131
+ error: string;
132
+ };
133
+ declare function hexToRgbShades(hex: string): RgbColor;
134
+ declare function rgbToHexShades(r: number, g: number, b: number): string;
135
+ declare function hexToHslShades(hex: string): HslColor;
136
+ declare function hslToHexShades(h: number, s: number, l: number): string;
137
+ declare function generateShades(hex: string, steps?: number): string[];
138
+ declare function generateTints(hex: string, steps?: number): string[];
139
+ declare function generateScale(hex: string, steps?: number): {
140
+ shades: string[];
141
+ tints: string[];
142
+ base: string;
143
+ };
144
+ declare function getContrastColor(hex: string): '#000000' | '#ffffff';
145
+ declare function colorName(hex: string): string;
146
+ type BlendMode = 'rgb' | 'hsl' | 'oklch';
147
+ declare function hexToRgbBlend(hex: string): RgbColor | {
148
+ error: string;
149
+ };
150
+ declare function rgbToHexBlend(r: number, g: number, b: number): string;
151
+ declare function hexToHslBlend(hex: string): HslColor | {
152
+ error: string;
153
+ };
154
+ declare function hslToHexBlend(h: number, s: number, l: number): string;
155
+ declare function blendColors(color1: string, color2: string, steps?: number, mode?: BlendMode): string[] | {
156
+ error: string;
157
+ };
158
+ declare function mixColors(color1: string, color2: string, ratio?: number): string | {
159
+ error: string;
160
+ };
161
+ declare function complementaryColor(hex: string): string | {
162
+ error: string;
163
+ };
164
+ declare function analogousColors(hex: string, angle?: number): [string, string] | {
165
+ error: string;
166
+ };
167
+ declare function triadicColors(hex: string): [string, string] | {
168
+ error: string;
169
+ };
170
+
171
+ type color_BlendMode = BlendMode;
172
+ type color_ColorResult = ColorResult;
173
+ type color_ContrastResult = ContrastResult;
174
+ type color_HSL = HSL;
175
+ type color_HSV = HSV;
176
+ type color_HslColor = HslColor;
177
+ type color_HsvColor = HsvColor;
178
+ declare const color_NAMED_COLORS: typeof NAMED_COLORS;
179
+ declare const color_PALETTE_TYPES: typeof PALETTE_TYPES;
180
+ type color_Palette = Palette;
181
+ type color_PaletteColor = PaletteColor;
182
+ type color_PaletteType = PaletteType;
183
+ type color_PickerColorResult = PickerColorResult;
184
+ type color_RGB = RGB;
185
+ type color_RgbColor = RgbColor;
186
+ declare const color_analogousColors: typeof analogousColors;
187
+ declare const color_blendColors: typeof blendColors;
188
+ declare const color_checkContrast: typeof checkContrast;
189
+ declare const color_colorName: typeof colorName;
190
+ declare const color_complementaryColor: typeof complementaryColor;
191
+ declare const color_generatePalette: typeof generatePalette;
192
+ declare const color_generateScale: typeof generateScale;
193
+ declare const color_generateShades: typeof generateShades;
194
+ declare const color_generateTints: typeof generateTints;
195
+ declare const color_getContrastColor: typeof getContrastColor;
196
+ declare const color_hexToHsl: typeof hexToHsl;
197
+ declare const color_hexToHslBlend: typeof hexToHslBlend;
198
+ declare const color_hexToHslShades: typeof hexToHslShades;
199
+ declare const color_hexToLinearRgb: typeof hexToLinearRgb;
200
+ declare const color_hexToRgb: typeof hexToRgb;
201
+ declare const color_hexToRgbBlend: typeof hexToRgbBlend;
202
+ declare const color_hexToRgbPicker: typeof hexToRgbPicker;
203
+ declare const color_hexToRgbShades: typeof hexToRgbShades;
204
+ declare const color_hslToHex: typeof hslToHex;
205
+ declare const color_hslToHexBlend: typeof hslToHexBlend;
206
+ declare const color_hslToHexShades: typeof hslToHexShades;
207
+ declare const color_hslToRgb: typeof hslToRgb;
208
+ declare const color_hslToRgbPicker: typeof hslToRgbPicker;
209
+ declare const color_hsvToRgb: typeof hsvToRgb;
210
+ declare const color_hsvToRgbPicker: typeof hsvToRgbPicker;
211
+ declare const color_mixColors: typeof mixColors;
212
+ declare const color_parseColor: typeof parseColor;
213
+ declare const color_parseColorPicker: typeof parseColorPicker;
214
+ declare const color_relativeLuminance: typeof relativeLuminance;
215
+ declare const color_rgbToCmyk: typeof rgbToCmyk;
216
+ declare const color_rgbToHex: typeof rgbToHex;
217
+ declare const color_rgbToHexBlend: typeof rgbToHexBlend;
218
+ declare const color_rgbToHexPicker: typeof rgbToHexPicker;
219
+ declare const color_rgbToHexShades: typeof rgbToHexShades;
220
+ declare const color_rgbToHsl: typeof rgbToHsl;
221
+ declare const color_rgbToHslPicker: typeof rgbToHslPicker;
222
+ declare const color_rgbToHsv: typeof rgbToHsv;
223
+ declare const color_rgbToHsvPicker: typeof rgbToHsvPicker;
224
+ declare const color_triadicColors: typeof triadicColors;
225
+ declare namespace color {
226
+ export { type color_BlendMode as BlendMode, type color_ColorResult as ColorResult, type color_ContrastResult as ContrastResult, type color_HSL as HSL, type color_HSV as HSV, type color_HslColor as HslColor, type color_HsvColor as HsvColor, color_NAMED_COLORS as NAMED_COLORS, color_PALETTE_TYPES as PALETTE_TYPES, type color_Palette as Palette, type color_PaletteColor as PaletteColor, type color_PaletteType as PaletteType, type color_PickerColorResult as PickerColorResult, type color_RGB as RGB, type color_RgbColor as RgbColor, color_analogousColors as analogousColors, color_blendColors as blendColors, color_checkContrast as checkContrast, color_colorName as colorName, color_complementaryColor as complementaryColor, color_generatePalette as generatePalette, color_generateScale as generateScale, color_generateShades as generateShades, color_generateTints as generateTints, color_getContrastColor as getContrastColor, color_hexToHsl as hexToHsl, color_hexToHslBlend as hexToHslBlend, color_hexToHslShades as hexToHslShades, color_hexToLinearRgb as hexToLinearRgb, color_hexToRgb as hexToRgb, color_hexToRgbBlend as hexToRgbBlend, color_hexToRgbPicker as hexToRgbPicker, color_hexToRgbShades as hexToRgbShades, color_hslToHex as hslToHex, color_hslToHexBlend as hslToHexBlend, color_hslToHexShades as hslToHexShades, color_hslToRgb as hslToRgb, color_hslToRgbPicker as hslToRgbPicker, color_hsvToRgb as hsvToRgb, color_hsvToRgbPicker as hsvToRgbPicker, color_mixColors as mixColors, color_parseColor as parseColor, color_parseColorPicker as parseColorPicker, color_relativeLuminance as relativeLuminance, color_rgbToCmyk as rgbToCmyk, color_rgbToHex as rgbToHex, color_rgbToHexBlend as rgbToHexBlend, color_rgbToHexPicker as rgbToHexPicker, color_rgbToHexShades as rgbToHexShades, color_rgbToHsl as rgbToHsl, color_rgbToHslPicker as rgbToHslPicker, color_rgbToHsv as rgbToHsv, color_rgbToHsvPicker as rgbToHsvPicker, color_triadicColors as triadicColors };
227
+ }
228
+
229
+ export { rgbToHsvPicker as $, hexToRgbPicker as A, type BlendMode as B, type ColorResult as C, hexToRgbShades as D, hslToHex as E, hslToHexBlend as F, hslToHexShades as G, type HSL as H, hslToRgb as I, hslToRgbPicker as J, hsvToRgb as K, hsvToRgbPicker as L, mixColors as M, NAMED_COLORS as N, parseColor as O, PALETTE_TYPES as P, parseColorPicker as Q, type RGB as R, relativeLuminance as S, rgbToCmyk as T, rgbToHex as U, rgbToHexBlend as V, rgbToHexPicker as W, rgbToHexShades as X, rgbToHsl as Y, rgbToHslPicker as Z, rgbToHsv as _, type ContrastResult as a, triadicColors as a0, type HSV as b, color as c, type HslColor as d, type HsvColor as e, type Palette as f, type PaletteColor as g, type PaletteType as h, type PickerColorResult as i, type RgbColor as j, analogousColors as k, blendColors as l, checkContrast as m, colorName as n, complementaryColor as o, generatePalette as p, generateScale as q, generateShades as r, generateTints as s, getContrastColor as t, hexToHsl as u, hexToHslBlend as v, hexToHslShades as w, hexToLinearRgb as x, hexToRgb as y, hexToRgbBlend as z };