zss-engine 0.2.58 → 0.2.59
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.
|
@@ -34,13 +34,13 @@ function processAtomicProps(flatProps, atomicHashes, allStyleSheets, parentAtRul
|
|
|
34
34
|
const CSSProp = (0, index_js_1.camelToKebabCase)(property);
|
|
35
35
|
const normalizedValue = (0, index_js_1.applyCssValue)(value, CSSProp);
|
|
36
36
|
const singlePropObj = { [property]: normalizedValue };
|
|
37
|
-
const atomicHash = (0, index_js_1.genBase36Hash)(singlePropObj, 1,
|
|
37
|
+
const atomicHash = (0, index_js_1.genBase36Hash)(singlePropObj, 1, 8);
|
|
38
38
|
atomicHashes.add(atomicHash);
|
|
39
39
|
let styleSheet = (0, index_js_1.transpileAtomic)(property, value, atomicHash);
|
|
40
40
|
if (parentAtRule) {
|
|
41
41
|
styleSheet = `${parentAtRule} { ${styleSheet} }`;
|
|
42
42
|
}
|
|
43
|
-
allStyleSheets.add(styleSheet);
|
|
43
|
+
allStyleSheets.add(styleSheet + '\n');
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -8,9 +8,9 @@ function transpileAtomic(property, value, hash) {
|
|
|
8
8
|
const applyValue = (0, helper_js_1.applyCssValue)(value, CSSProp);
|
|
9
9
|
const atomicRule = `.${hash} { ${CSSProp}: ${applyValue}; }`;
|
|
10
10
|
if (property.startsWith('@media') || property.startsWith('@container')) {
|
|
11
|
-
return `${property} {\n ${atomicRule}\n}
|
|
11
|
+
return `${property} {\n ${atomicRule}\n}`;
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return atomicRule;
|
|
14
14
|
}
|
|
15
15
|
return '';
|
|
16
16
|
}
|
|
@@ -30,13 +30,13 @@ function processAtomicProps(flatProps, atomicHashes, allStyleSheets, parentAtRul
|
|
|
30
30
|
const CSSProp = camelToKebabCase(property);
|
|
31
31
|
const normalizedValue = applyCssValue(value, CSSProp);
|
|
32
32
|
const singlePropObj = { [property]: normalizedValue };
|
|
33
|
-
const atomicHash = genBase36Hash(singlePropObj, 1,
|
|
33
|
+
const atomicHash = genBase36Hash(singlePropObj, 1, 8);
|
|
34
34
|
atomicHashes.add(atomicHash);
|
|
35
35
|
let styleSheet = transpileAtomic(property, value, atomicHash);
|
|
36
36
|
if (parentAtRule) {
|
|
37
37
|
styleSheet = `${parentAtRule} { ${styleSheet} }`;
|
|
38
38
|
}
|
|
39
|
-
allStyleSheets.add(styleSheet);
|
|
39
|
+
allStyleSheets.add(styleSheet + '\n');
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -5,9 +5,9 @@ function transpileAtomic(property, value, hash) {
|
|
|
5
5
|
const applyValue = applyCssValue(value, CSSProp);
|
|
6
6
|
const atomicRule = `.${hash} { ${CSSProp}: ${applyValue}; }`;
|
|
7
7
|
if (property.startsWith('@media') || property.startsWith('@container')) {
|
|
8
|
-
return `${property} {\n ${atomicRule}\n}
|
|
8
|
+
return `${property} {\n ${atomicRule}\n}`;
|
|
9
9
|
}
|
|
10
|
-
return
|
|
10
|
+
return atomicRule;
|
|
11
11
|
}
|
|
12
12
|
return '';
|
|
13
13
|
}
|