@pantoken/swatches 0.1.13 → 0.1.15

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/dist/index.d.mts +8 -8
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -22,7 +22,7 @@ interface Rgb {
22
22
  * hexToRgb("nope"); // undefined
23
23
  * ```
24
24
  */
25
- declare function hexToRgb(hex: string): Rgb | undefined;
25
+ export declare function hexToRgb(hex: string): Rgb | undefined;
26
26
  /** The colour mode to resolve when flattening `light-dark()` values. */
27
27
  type Mode = "light" | "dark";
28
28
  /**
@@ -49,7 +49,7 @@ type Mode = "light" | "dark";
49
49
  * const swatches = toSwatches(byTheme("canvas"), "dark");
50
50
  * ```
51
51
  */
52
- declare function toSwatches(tokens: readonly Token[], mode?: Mode): Swatch[];
52
+ export declare function toSwatches(tokens: readonly Token[], mode?: Mode): Swatch[];
53
53
  //#endregion
54
54
  //#region src/ase.d.ts
55
55
  /**
@@ -66,7 +66,7 @@ declare function toSwatches(tokens: readonly Token[], mode?: Mode): Swatch[];
66
66
  * writeFileSync("instructure.ase", toAse(swatches));
67
67
  * ```
68
68
  */
69
- declare function toAse(swatches: readonly Swatch[]): Uint8Array;
69
+ export declare function toAse(swatches: readonly Swatch[]): Uint8Array;
70
70
  //#endregion
71
71
  //#region src/gpl.d.ts
72
72
  /** Options for {@link toGpl}. */
@@ -95,7 +95,7 @@ interface ToGplOptions {
95
95
  * const gpl = toGpl(swatches, { name: "Instructure Rebrand" });
96
96
  * ```
97
97
  */
98
- declare function toGpl(swatches: readonly Swatch[], options?: ToGplOptions): string;
98
+ export declare function toGpl(swatches: readonly Swatch[], options?: ToGplOptions): string;
99
99
  //#endregion
100
100
  //#region src/sketch.d.ts
101
101
  /** A `.sketchpalette` document. */
@@ -123,7 +123,7 @@ interface SketchPalette {
123
123
  * writeFileSync("instructure.sketchpalette", JSON.stringify(toSketchPalette(swatches)));
124
124
  * ```
125
125
  */
126
- declare function toSketchPalette(swatches: readonly Swatch[]): SketchPalette;
126
+ export declare function toSketchPalette(swatches: readonly Swatch[]): SketchPalette;
127
127
  //#endregion
128
128
  //#region src/svg.d.ts
129
129
  /** Options for {@link toSvg}. */
@@ -156,7 +156,7 @@ interface ToSvgOptions {
156
156
  * const svg = toSvg(core, { title: "Instructure core colors", columns: 8 });
157
157
  * ```
158
158
  */
159
- declare function toSvg(swatches: readonly Swatch[], options?: ToSvgOptions): string;
159
+ export declare function toSvg(swatches: readonly Swatch[], options?: ToSvgOptions): string;
160
160
  //#endregion
161
161
  //#region src/index.d.ts
162
162
  /**
@@ -171,6 +171,6 @@ declare function toSvg(swatches: readonly Swatch[], options?: ToSvgOptions): str
171
171
  * writeFileSync("instructure.gpl", toGpl(swatches));
172
172
  * ```
173
173
  */
174
- declare const swatches: Swatch[];
174
+ export declare const swatches: Swatch[];
175
175
  //#endregion
176
- export { type Mode, type Rgb, type SketchPalette, type Swatch, type ToGplOptions, type ToSvgOptions, hexToRgb, swatches, toAse, toGpl, toSketchPalette, toSvg, toSwatches };
176
+ export type { Mode, Rgb, SketchPalette, Swatch, ToGplOptions, ToSvgOptions };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@pantoken/swatches",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Export Instructure colours as designer swatch palettes: Adobe ASE, GIMP .gpl, and Sketch .sketchpalette.",
5
- "homepage": "https://pantoken.iywahl.com",
5
+ "homepage": "https://pantoken.app",
6
6
  "bugs": "https://github.com/thedannywahl/pantoken/issues",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -24,15 +24,15 @@
24
24
  "provenance": true
25
25
  },
26
26
  "dependencies": {
27
- "@pantoken/model": "0.3.1",
28
- "@pantoken/tokens": "0.3.0",
29
- "@pantoken/utils": "1.0.1"
27
+ "@pantoken/model": "0.3.2",
28
+ "@pantoken/tokens": "0.3.2",
29
+ "@pantoken/utils": "1.0.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^26.3.0",
32
+ "@types/node": "^26.5.0",
33
33
  "typescript": "^7.0.2",
34
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
35
- "vite-plus": "0.3.0"
34
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
35
+ "vite-plus": "0.3.1"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.18.0"