@pantoken/rust 0.1.14 → 0.1.16

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 +5 -5
  2. package/package.json +9 -9
package/dist/index.d.mts CHANGED
@@ -2,9 +2,9 @@ import { Mode } from "@pantoken/core";
2
2
  import { Theme, Token } from "@pantoken/model";
3
3
  //#region src/index.d.ts
4
4
  /** The Rust GUI framework to target. */
5
- type RustFormat = "egui" | "iced";
5
+ export type RustFormat = "egui" | "iced";
6
6
  /** Options for {@link toRust} / {@link generateRust}. */
7
- interface RustOptions {
7
+ export interface RustOptions {
8
8
  /** The Rust GUI to target (default `"egui"`). */
9
9
  format?: RustFormat;
10
10
  /** Which `light-dark()` mode to resolve (default `"light"`). */
@@ -35,7 +35,7 @@ interface RustOptions {
35
35
  * // "use iced::Color;\npub const COLOR_BACKGROUND_BRAND: Color = Color { r: …, g: …, b: …, a: … };"
36
36
  * ```
37
37
  */
38
- declare function toRust(tokens: readonly Token[], options?: RustOptions): string;
38
+ export declare function toRust(tokens: readonly Token[], options?: RustOptions): string;
39
39
  /**
40
40
  * Emit Rust constants for a named theme (using the vendored `@pantoken/tokens` IR).
41
41
  *
@@ -47,8 +47,8 @@ declare function toRust(tokens: readonly Token[], options?: RustOptions): string
47
47
  * writeFileSync("tokens.rs", generateRust({ format: "egui", theme: "rebrand" }));
48
48
  * ```
49
49
  */
50
- declare function generateRust(options?: RustOptions & {
50
+ export declare function generateRust(options?: RustOptions & {
51
51
  theme?: Theme;
52
52
  }): string;
53
53
  //#endregion
54
- export { RustFormat, RustOptions, generateRust as default, generateRust, toRust };
54
+ export { generateRust as default };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@pantoken/rust",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Emit Instructure design tokens as Rust constants for egui (Color32) or iced (Color).",
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,16 +24,16 @@
24
24
  "provenance": true
25
25
  },
26
26
  "dependencies": {
27
- "@pantoken/core": "0.2.7",
28
- "@pantoken/tokens": "0.2.4",
29
- "@pantoken/model": "0.3.0",
30
- "@pantoken/utils": "1.0.0"
27
+ "@pantoken/core": "0.2.9",
28
+ "@pantoken/model": "0.3.2",
29
+ "@pantoken/tokens": "0.3.1",
30
+ "@pantoken/utils": "1.0.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^24.13.3",
33
+ "@types/node": "^26.5.0",
34
34
  "typescript": "^7.0.2",
35
- "vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
36
- "vite-plus": "0.2.9"
35
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
36
+ "vite-plus": "0.3.1"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=22.18.0"