@zelgadis87/utils-core 4.13.9 → 4.13.10
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/tsconfig.tsbuildinfo +1 -1
- package/esbuild/index.cjs +5 -1
- package/esbuild/index.cjs.map +2 -2
- package/esbuild/index.mjs +5 -1
- package/esbuild/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/utils/css.ts +5 -1
package/esbuild/index.mjs
CHANGED
|
@@ -672,7 +672,11 @@ function cssDeclarationRulesDictionaryToCss(syleDeclarationRulesForSelectorsProd
|
|
|
672
672
|
function cssSelectorDeclarationRulesDictionaryToCss(styleDeclarationRules, indent = 0) {
|
|
673
673
|
return Object.entries(styleDeclarationRules).map(([key, value]) => {
|
|
674
674
|
if (typeof value === "string") {
|
|
675
|
-
|
|
675
|
+
if (key.startsWith("--")) {
|
|
676
|
+
return repeat(tabulation, indent) + key + colon + space + value + semiColon;
|
|
677
|
+
} else {
|
|
678
|
+
return repeat(tabulation, indent) + pascalCaseToKebabCase(key) + colon + space + value + semiColon;
|
|
679
|
+
}
|
|
676
680
|
} else {
|
|
677
681
|
return repeat(tabulation, indent) + key + space + openBracket + newLine + cssSelectorDeclarationRulesDictionaryToCss(value, indent + 1).join(newLine) + newLine + repeat(tabulation, indent) + closeBracket;
|
|
678
682
|
}
|