@lucca-front/ng 10.0.6 → 10.0.7
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/ng",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.7",
|
|
4
4
|
"description": "A library of icons made by the team @Lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@angular/common": "^14.0.0",
|
|
30
30
|
"@angular/core": "^14.0.0",
|
|
31
31
|
"@angular/cdk": "^14.0.0",
|
|
32
|
-
"@lucca-front/icons": "v10.0.
|
|
33
|
-
"@lucca-front/scss": "v10.0.
|
|
32
|
+
"@lucca-front/icons": "v10.0.7",
|
|
33
|
+
"@lucca-front/scss": "v10.0.7",
|
|
34
34
|
"@types/dompurify": "^2.3.0",
|
|
35
35
|
"dompurify": "^2.3.0",
|
|
36
36
|
"rxjs": "^6.0.0 || ^7.0.0"
|
|
@@ -13,6 +13,12 @@ const legacyLevelToLevel = {
|
|
|
13
13
|
lightest: '100',
|
|
14
14
|
default: '700',
|
|
15
15
|
};
|
|
16
|
+
const textLevelToLevel = {
|
|
17
|
+
dark: '900',
|
|
18
|
+
default: '800',
|
|
19
|
+
light: '600',
|
|
20
|
+
placeholder: '400',
|
|
21
|
+
};
|
|
16
22
|
function updateColorMixin(root, postcssValueParser) {
|
|
17
23
|
root.walkDecls((decl) => {
|
|
18
24
|
const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
|
|
@@ -22,6 +28,10 @@ function updateColorMixin(root, postcssValueParser) {
|
|
|
22
28
|
if (color === 'white') {
|
|
23
29
|
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--colors-${color}-color`, postcssValueParser).nodes;
|
|
24
30
|
}
|
|
31
|
+
else if (color === 'text') {
|
|
32
|
+
const level = textLevelToLevel[legacyLevel] ?? textLevelToLevel['default'];
|
|
33
|
+
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--palettes-grey-${level}`, postcssValueParser).nodes;
|
|
34
|
+
}
|
|
25
35
|
else {
|
|
26
36
|
let level = legacyLevel ?? funcNode.nodes[2]?.value ?? '700';
|
|
27
37
|
level = legacyLevelToLevel[level] ?? level;
|