xatriumcss 1.0.2 → 1.0.3
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 +1 -1
- package/src/parser.js +9 -4
package/package.json
CHANGED
package/src/parser.js
CHANGED
|
@@ -17408,7 +17408,7 @@ function _parseClassInternal(cls, isFromGrouped = false, needed, isGlobal) {
|
|
|
17408
17408
|
|
|
17409
17409
|
const shadowVal = parseColor(afterShadow).color;
|
|
17410
17410
|
|
|
17411
|
-
return buildParsed(isInset ? "--xt-shadow-inset-color" : "--xt-shadow-color",
|
|
17411
|
+
return buildParsed(isInset ? "--xt-shadow-inset-color" : "--xt-shadow-color", shadowVal)
|
|
17412
17412
|
}
|
|
17413
17413
|
|
|
17414
17414
|
if (textShadowRegex.test(cls)) {
|
|
@@ -25938,8 +25938,10 @@ function runParser(config) {
|
|
|
25938
25938
|
}
|
|
25939
25939
|
|
|
25940
25940
|
if (result.type === 'first') {
|
|
25941
|
-
|
|
25941
|
+
const finalCSS = removeNewlines(result.css);
|
|
25942
|
+
fs.writeFileSync(outputPath, finalCSS, 'utf8');
|
|
25942
25943
|
isFirstRun = false;
|
|
25944
|
+
return finalCSS;
|
|
25943
25945
|
} else {
|
|
25944
25946
|
// Incremental: append to existing layers
|
|
25945
25947
|
let currentCSS = fs.readFileSync(outputPath, 'utf8');
|
|
@@ -25951,8 +25953,10 @@ function runParser(config) {
|
|
|
25951
25953
|
previouslyParsedClasses = [];
|
|
25952
25954
|
previouslyGeneratedProps.clear();
|
|
25953
25955
|
const fullResult = generateCSSString(collectClasses(), false, isFirstRun);
|
|
25954
|
-
|
|
25955
|
-
|
|
25956
|
+
const finalCSS = removeNewlines(fullResult.css); // ← Use fullResult, not result
|
|
25957
|
+
fs.writeFileSync(outputPath, finalCSS, 'utf8');
|
|
25958
|
+
isFirstRun = false; // ← Reset the flag after rebuild
|
|
25959
|
+
return finalCSS; // ← Return the CSS instead of undefined
|
|
25956
25960
|
}
|
|
25957
25961
|
|
|
25958
25962
|
result.layers.forEach(layer => {
|
|
@@ -26104,6 +26108,7 @@ function runParser(config) {
|
|
|
26104
26108
|
});
|
|
26105
26109
|
|
|
26106
26110
|
fs.writeFileSync(outputPath, removeNewlines(currentCSS), 'utf8');
|
|
26111
|
+
return removeNewlines(currentCSS); // ← ADD THIS
|
|
26107
26112
|
}
|
|
26108
26113
|
}
|
|
26109
26114
|
|