rafters 0.0.32 → 0.0.34
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.js +45 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46930,7 +46930,8 @@ function generateThemeBlock(groups) {
|
|
|
46930
46930
|
for (const token of groups.spacing) {
|
|
46931
46931
|
const value2 = tokenValueToCSS(token);
|
|
46932
46932
|
if (value2 === null) continue;
|
|
46933
|
-
|
|
46933
|
+
const key = token.name.replace(/^spacing-/, "");
|
|
46934
|
+
lines.push(` --spacing-${key}: ${value2};`);
|
|
46934
46935
|
}
|
|
46935
46936
|
lines.push("");
|
|
46936
46937
|
}
|
|
@@ -46949,7 +46950,8 @@ function generateThemeBlock(groups) {
|
|
|
46949
46950
|
for (const token of groups.radius) {
|
|
46950
46951
|
const value2 = tokenValueToCSS(token);
|
|
46951
46952
|
if (value2 === null) continue;
|
|
46952
|
-
|
|
46953
|
+
const key = token.name.replace(/^radius-/, "");
|
|
46954
|
+
lines.push(` --radius-${key}: ${value2};`);
|
|
46953
46955
|
}
|
|
46954
46956
|
lines.push("");
|
|
46955
46957
|
}
|
|
@@ -46957,7 +46959,8 @@ function generateThemeBlock(groups) {
|
|
|
46957
46959
|
for (const token of groups.shadow) {
|
|
46958
46960
|
const value2 = tokenValueToCSS(token);
|
|
46959
46961
|
if (value2 === null) continue;
|
|
46960
|
-
|
|
46962
|
+
const key = token.name.replace(/^shadow-/, "");
|
|
46963
|
+
lines.push(` --shadow-${key}: ${value2};`);
|
|
46961
46964
|
}
|
|
46962
46965
|
lines.push("");
|
|
46963
46966
|
}
|
|
@@ -46971,12 +46974,32 @@ function generateThemeBlock(groups) {
|
|
|
46971
46974
|
}
|
|
46972
46975
|
if (groups.motion.length > 0) {
|
|
46973
46976
|
for (const token of groups.motion) {
|
|
46977
|
+
if (token.name.startsWith("motion-duration-") && token.name !== "motion-duration-base")
|
|
46978
|
+
continue;
|
|
46979
|
+
if (token.name.startsWith("motion-easing-")) continue;
|
|
46974
46980
|
const value2 = tokenValueToCSS(token);
|
|
46975
46981
|
if (value2 === null) continue;
|
|
46976
46982
|
lines.push(` --${token.name}: ${value2};`);
|
|
46977
46983
|
}
|
|
46978
46984
|
lines.push("");
|
|
46979
46985
|
}
|
|
46986
|
+
if (groups.motion.length > 0) {
|
|
46987
|
+
for (const token of groups.motion) {
|
|
46988
|
+
if (token.name.startsWith("motion-duration-") && token.name !== "motion-duration-base") {
|
|
46989
|
+
const key = token.name.replace("motion-duration-", "");
|
|
46990
|
+
const value2 = tokenValueToCSS(token);
|
|
46991
|
+
if (value2 === null) continue;
|
|
46992
|
+
lines.push(` --duration-${key}: ${value2};`);
|
|
46993
|
+
}
|
|
46994
|
+
if (token.name.startsWith("motion-easing-")) {
|
|
46995
|
+
const key = token.name.replace("motion-easing-", "");
|
|
46996
|
+
const value2 = tokenValueToCSS(token);
|
|
46997
|
+
if (value2 === null) continue;
|
|
46998
|
+
lines.push(` --ease-${key}: ${value2};`);
|
|
46999
|
+
}
|
|
47000
|
+
}
|
|
47001
|
+
lines.push("");
|
|
47002
|
+
}
|
|
46980
47003
|
if (groups.breakpoint.length > 0) {
|
|
46981
47004
|
for (const token of groups.breakpoint) {
|
|
46982
47005
|
const value2 = tokenValueToCSS(token);
|
|
@@ -47203,12 +47226,30 @@ function generateVarsRootBlock(groups) {
|
|
|
47203
47226
|
}
|
|
47204
47227
|
if (groups.motion.length > 0) {
|
|
47205
47228
|
for (const token of groups.motion) {
|
|
47229
|
+
if (token.name.startsWith("motion-duration-") && token.name !== "motion-duration-base")
|
|
47230
|
+
continue;
|
|
47231
|
+
if (token.name.startsWith("motion-easing-")) continue;
|
|
47206
47232
|
const value2 = tokenValueToCSS(token);
|
|
47207
47233
|
if (value2 === null) continue;
|
|
47208
47234
|
lines.push(` --rafters-${token.name}: ${value2};`);
|
|
47209
47235
|
}
|
|
47210
47236
|
lines.push("");
|
|
47211
47237
|
}
|
|
47238
|
+
if (groups.motion.length > 0) {
|
|
47239
|
+
for (const token of groups.motion) {
|
|
47240
|
+
if (token.name.startsWith("motion-duration-") && token.name !== "motion-duration-base") {
|
|
47241
|
+
const value2 = tokenValueToCSS(token);
|
|
47242
|
+
if (value2 === null) continue;
|
|
47243
|
+
lines.push(` --rafters-${token.name}: ${value2};`);
|
|
47244
|
+
}
|
|
47245
|
+
if (token.name.startsWith("motion-easing-")) {
|
|
47246
|
+
const value2 = tokenValueToCSS(token);
|
|
47247
|
+
if (value2 === null) continue;
|
|
47248
|
+
lines.push(` --rafters-${token.name}: ${value2};`);
|
|
47249
|
+
}
|
|
47250
|
+
}
|
|
47251
|
+
lines.push("");
|
|
47252
|
+
}
|
|
47212
47253
|
if (groups.breakpoint.length > 0) {
|
|
47213
47254
|
for (const token of groups.breakpoint) {
|
|
47214
47255
|
const value2 = tokenValueToCSS(token);
|
|
@@ -47291,7 +47332,7 @@ async function registryToCompiled(registry2, options = {}) {
|
|
|
47291
47332
|
if (minify) {
|
|
47292
47333
|
args.push("--minify");
|
|
47293
47334
|
}
|
|
47294
|
-
execFileSync("node", args, { stdio: "pipe" });
|
|
47335
|
+
execFileSync("node", args, { stdio: "pipe", timeout: 3e4 });
|
|
47295
47336
|
return readFileSync(tempOutput, "utf-8");
|
|
47296
47337
|
} catch (error48) {
|
|
47297
47338
|
const message = error48 instanceof Error ? error48.message : String(error48);
|