rafters 0.0.33 → 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 +39 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46974,12 +46974,32 @@ function generateThemeBlock(groups) {
|
|
|
46974
46974
|
}
|
|
46975
46975
|
if (groups.motion.length > 0) {
|
|
46976
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;
|
|
46977
46980
|
const value2 = tokenValueToCSS(token);
|
|
46978
46981
|
if (value2 === null) continue;
|
|
46979
46982
|
lines.push(` --${token.name}: ${value2};`);
|
|
46980
46983
|
}
|
|
46981
46984
|
lines.push("");
|
|
46982
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
|
+
}
|
|
46983
47003
|
if (groups.breakpoint.length > 0) {
|
|
46984
47004
|
for (const token of groups.breakpoint) {
|
|
46985
47005
|
const value2 = tokenValueToCSS(token);
|
|
@@ -47206,12 +47226,30 @@ function generateVarsRootBlock(groups) {
|
|
|
47206
47226
|
}
|
|
47207
47227
|
if (groups.motion.length > 0) {
|
|
47208
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;
|
|
47209
47232
|
const value2 = tokenValueToCSS(token);
|
|
47210
47233
|
if (value2 === null) continue;
|
|
47211
47234
|
lines.push(` --rafters-${token.name}: ${value2};`);
|
|
47212
47235
|
}
|
|
47213
47236
|
lines.push("");
|
|
47214
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
|
+
}
|
|
47215
47253
|
if (groups.breakpoint.length > 0) {
|
|
47216
47254
|
for (const token of groups.breakpoint) {
|
|
47217
47255
|
const value2 = tokenValueToCSS(token);
|
|
@@ -47294,7 +47332,7 @@ async function registryToCompiled(registry2, options = {}) {
|
|
|
47294
47332
|
if (minify) {
|
|
47295
47333
|
args.push("--minify");
|
|
47296
47334
|
}
|
|
47297
|
-
execFileSync("node", args, { stdio: "pipe" });
|
|
47335
|
+
execFileSync("node", args, { stdio: "pipe", timeout: 3e4 });
|
|
47298
47336
|
return readFileSync(tempOutput, "utf-8");
|
|
47299
47337
|
} catch (error48) {
|
|
47300
47338
|
const message = error48 instanceof Error ? error48.message : String(error48);
|