@thi.ng/color-palettes 1.5.7 → 1.5.8
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/CHANGELOG.md +1 -1
- package/package.json +10 -10
- package/theme.d.ts +5 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color-palettes",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"description": "Collection of 200+ image based color themes & composable theme query filters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/api": "^8.11.
|
|
45
|
-
"@thi.ng/base-n": "^2.7.
|
|
46
|
-
"@thi.ng/checks": "^3.7.
|
|
47
|
-
"@thi.ng/color": "^5.7.
|
|
48
|
-
"@thi.ng/errors": "^2.5.
|
|
49
|
-
"@thi.ng/hex": "^2.3.
|
|
44
|
+
"@thi.ng/api": "^8.11.30",
|
|
45
|
+
"@thi.ng/base-n": "^2.7.42",
|
|
46
|
+
"@thi.ng/checks": "^3.7.10",
|
|
47
|
+
"@thi.ng/color": "^5.7.44",
|
|
48
|
+
"@thi.ng/errors": "^2.5.36",
|
|
49
|
+
"@thi.ng/hex": "^2.3.74"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"esbuild": "^0.25.
|
|
53
|
-
"typedoc": "^0.28.
|
|
52
|
+
"esbuild": "^0.25.6",
|
|
53
|
+
"typedoc": "^0.28.7",
|
|
54
54
|
"typescript": "^5.8.3"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"parent": "@thi.ng/color",
|
|
93
93
|
"year": 2021
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "56d8f088389b22192a06e9a395b5eecebf47697a\n"
|
|
96
96
|
}
|
package/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
1
|
+
import type { CSSTheme, IntTheme, LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
2
2
|
/**
|
|
3
3
|
* Returns given `theme` (array of colors or theme preset ID) as CSS color
|
|
4
4
|
* strings. If `reverse` is true (default: false), the theme colors will be
|
|
@@ -14,7 +14,7 @@ import type { LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
|
14
14
|
* @param theme
|
|
15
15
|
* @param reverse
|
|
16
16
|
*/
|
|
17
|
-
export declare const asCSS: (theme: number | Theme, reverse?: boolean) =>
|
|
17
|
+
export declare const asCSS: (theme: number | Theme, reverse?: boolean) => CSSTheme;
|
|
18
18
|
/**
|
|
19
19
|
* Returns given `theme` (array of colors or theme preset ID) as packed ARGB
|
|
20
20
|
* integers. If `reverse` is true (default: false), the theme colors will be
|
|
@@ -27,7 +27,7 @@ export declare const asCSS: (theme: number | Theme, reverse?: boolean) => string
|
|
|
27
27
|
* @param theme
|
|
28
28
|
* @param reverse
|
|
29
29
|
*/
|
|
30
|
-
export declare const asInt: (theme: number | Theme, reverse?: boolean) =>
|
|
30
|
+
export declare const asInt: (theme: number | Theme, reverse?: boolean) => IntTheme;
|
|
31
31
|
/**
|
|
32
32
|
* Returns given `theme` (array of colors or theme preset ID) as thi.ng/color
|
|
33
33
|
* LCH color vectors. If `reverse` is true (default: false), the theme colors
|
|
@@ -52,14 +52,14 @@ export declare const asRGB: (theme: number | Theme, reverse?: boolean) => RGBThe
|
|
|
52
52
|
*
|
|
53
53
|
* @param preds
|
|
54
54
|
*/
|
|
55
|
-
export declare const cssThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<
|
|
55
|
+
export declare const cssThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<CSSTheme>;
|
|
56
56
|
/**
|
|
57
57
|
* Yields iterator of packed ARGB integer themes (via {@link asInt}). Yields all
|
|
58
58
|
* themes unless specific theme IDs or filter predicates are provided.
|
|
59
59
|
*
|
|
60
60
|
* @param preds
|
|
61
61
|
*/
|
|
62
|
-
export declare const intThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<
|
|
62
|
+
export declare const intThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<IntTheme>;
|
|
63
63
|
/**
|
|
64
64
|
* Yields iterator of LCH themes (via {@link asLCH}). Yields all
|
|
65
65
|
* themes unless specific theme IDs or filter predicates are provided.
|