@cssints/rybitten 0.6.0 → 0.7.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ColorCube } from "rybitten/cubes";
2
- //#region src/index.d.ts
3
2
  /** A hex colour: cheap in the types (createTokens checks it without the walk of every colour syntax). */
4
3
  export type Hex = `#${string}`;
5
4
  /** The step names of an N-step group: `"1"` to `"N"` (`t.wheel._1` in code, `--wheel-1` in CSS). */
@@ -50,5 +49,4 @@ export declare const shades: <const R extends readonly number[]>(hue: number, li
50
49
  * @param {Palette<K>} p a group of `wheel` or `shades`
51
50
  * @returns {PaletteOverrides<K>} its steps as `{ _1: hex, … }`
52
51
  */
53
- export declare const overrides: <K extends string>(p: Palette<K>) => PaletteOverrides<K>;
54
- //#endregion
52
+ export declare const overrides: <K extends string>(p: Palette<K>) => PaletteOverrides<K>;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { rybHsl2rgb } from "rybitten";
2
2
  import { cubes } from "rybitten/cubes";
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  const fail = (why) => {
5
5
  throw new Error(`@cssints/rybitten: ${why}`);
6
6
  };
@@ -51,5 +51,4 @@ const shades = (hue, lightness, options = {}) => group(lightness.map((l) => colo
51
51
  * @returns {PaletteOverrides<K>} its steps as `{ _1: hex, … }`
52
52
  */
53
53
  const overrides = (p) => Object.fromEntries(Object.entries(p).flatMap(([k, v]) => k === "$type" ? [] : [[`_${k}`, v.$value]]));
54
- //#endregion
55
54
  export { color, overrides, shades, wheel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssints/rybitten",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "RYB palettes for cssints as DTCG data: a hue wheel and ramps in RYBitten's historical colour cubes, at build time",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "rybitten": "1.3.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "cssints": "^0.6.0"
27
+ "cssints": "^0.7.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22"