@primitiv-ui/primitiv-emit-wasm 0.1.35 → 0.1.37
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/package.json
CHANGED
package/primitiv_emit_wasm.d.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Emit a whole palette as `css`, `scss`, `tailwind` or `dtcg`.
|
|
6
6
|
*
|
|
7
|
-
* `request` is an `ExportInput`: `{
|
|
8
|
-
* roles? }
|
|
7
|
+
* `request` is an `ExportInput`: `{ ramps: [{ family, light: [{ step, value }],
|
|
8
|
+
* dark: [...] }], roles?, identity? }` — the palette as **values** the caller has
|
|
9
|
+
* already rendered (RFC 0032 D1), every colour a CSS string. Returns the file's
|
|
10
|
+
* contents.
|
|
9
11
|
*
|
|
10
12
|
* An unknown format name is an error rather than a fallback — writing a stylesheet
|
|
11
13
|
* when the caller asked for a token file would be worse than refusing.
|
package/primitiv_emit_wasm.js
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Emit a whole palette as `css`, `scss`, `tailwind` or `dtcg`.
|
|
5
5
|
*
|
|
6
|
-
* `request` is an `ExportInput`: `{
|
|
7
|
-
* roles? }
|
|
6
|
+
* `request` is an `ExportInput`: `{ ramps: [{ family, light: [{ step, value }],
|
|
7
|
+
* dark: [...] }], roles?, identity? }` — the palette as **values** the caller has
|
|
8
|
+
* already rendered (RFC 0032 D1), every colour a CSS string. Returns the file's
|
|
9
|
+
* contents.
|
|
8
10
|
*
|
|
9
11
|
* An unknown format name is an error rather than a fallback — writing a stylesheet
|
|
10
12
|
* when the caller asked for a token file would be worse than refusing.
|
|
@@ -40,10 +42,6 @@ function __wbg_get_imports() {
|
|
|
40
42
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
41
43
|
return ret;
|
|
42
44
|
},
|
|
43
|
-
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
44
|
-
const ret = Number(arg0);
|
|
45
|
-
return ret;
|
|
46
|
-
},
|
|
47
45
|
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
48
46
|
const v = arg1;
|
|
49
47
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
Binary file
|