@thi.ng/color-palettes 1.5.44 → 1.5.46

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 (2) hide show
  1. package/package.json +3 -3
  2. package/theme.d.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color-palettes",
3
- "version": "1.5.44",
3
+ "version": "1.5.46",
4
4
  "description": "Collection of 200+ image based color themes & composable theme query filters",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -45,7 +45,7 @@
45
45
  "@thi.ng/api": "^8.12.16",
46
46
  "@thi.ng/base-n": "^2.7.62",
47
47
  "@thi.ng/checks": "^3.8.6",
48
- "@thi.ng/color": "^5.8.13",
48
+ "@thi.ng/color": "^5.8.15",
49
49
  "@thi.ng/errors": "^2.6.5",
50
50
  "@thi.ng/hex": "^2.4.9"
51
51
  },
@@ -93,5 +93,5 @@
93
93
  "parent": "@thi.ng/color",
94
94
  "year": 2021
95
95
  },
96
- "gitHead": "411adbeeb5c03da1cf0c86e567c80942a6b875e7\n"
96
+ "gitHead": "7a21075f27ba00b28a6eb77e70918a4c7f4e6e68\n"
97
97
  }
package/theme.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
1
+ import type { CSSTheme, 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) => string[];
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
@@ -52,7 +52,7 @@ 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<string[]>;
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.