@rescui/typography 0.14.0 → 0.16.0
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/lib/create-text-cn.d.ts +9 -2
- package/lib/create-text-cn.js +25 -18
- package/lib/index.css +1168 -1090
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/mixins.p.css +2658 -927
- package/lib/mixins.pcss +2658 -927
- package/lib/public-api.p.css +3527 -0
- package/lib/public-api.pcss +3527 -0
- package/lib/text-color-utils.d.ts +12 -0
- package/lib/text-color-utils.js +18 -25
- package/package.json +9 -7
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
3
|
+
* @param el
|
|
4
|
+
*/
|
|
1
5
|
export declare function typographyLight(el: HTMLElement): void;
|
|
6
|
+
/**
|
|
7
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
8
|
+
* @param el
|
|
9
|
+
*/
|
|
2
10
|
export declare function typographyDark(el: HTMLElement): void;
|
|
11
|
+
/**
|
|
12
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
13
|
+
* @param el
|
|
14
|
+
*/
|
|
3
15
|
export declare function resetTypographyColorVariables(el: HTMLElement): void;
|
package/lib/text-color-utils.js
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
/**
|
|
4
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
5
|
+
* @param el
|
|
6
|
+
*/
|
|
7
|
+
function typographyLight(el) {}
|
|
8
|
+
/**
|
|
9
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
10
|
+
* @param el
|
|
11
|
+
*/
|
|
11
12
|
|
|
12
|
-
function typographyDark(el) {
|
|
13
|
-
el.style.setProperty('--rs-typography-color-hard', RS_COLOR_WHITE);
|
|
14
|
-
el.style.setProperty('--rs-typography-color-average', RS_COLOR_WHITE_T70);
|
|
15
|
-
el.style.setProperty('--rs-typography-color-pale', RS_COLOR_WHITE_T50);
|
|
16
|
-
el.style.setProperty('--rs-typography-pre-color', RS_COLOR_WHITE_T70);
|
|
17
|
-
el.style.setProperty('--rs-typography-pre-bg-color', RS_COLOR_GREY_90);
|
|
18
|
-
el.style.setProperty('--rs-typography-text-link-hover-color', RS_COLOR_BLACK);
|
|
19
|
-
}
|
|
20
13
|
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
14
|
+
function typographyDark(el) {}
|
|
15
|
+
/**
|
|
16
|
+
* noop. Exists for the previous versions. If you used it, please consult RescUI team to migrate
|
|
17
|
+
* @param el
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
function resetTypographyColorVariables(el) {}
|
|
29
22
|
|
|
30
23
|
export { resetTypographyColorVariables, typographyDark, typographyLight };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/typography",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
22
|
-
"@rescui/colors": "^0.
|
|
22
|
+
"@rescui/colors": "^0.2.0",
|
|
23
23
|
"bem-cn-fast": "^1.0.2",
|
|
24
|
+
"classnames": "^2.2.6",
|
|
24
25
|
"inter-ui": "^3.15.1"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
"react": ">=16.8.0 <19"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@rescui/postcss-preset-library": "^0.
|
|
32
|
-
"@rescui/scripts": "^0.
|
|
32
|
+
"@rescui/postcss-preset-library": "^0.2.0",
|
|
33
|
+
"@rescui/scripts": "^0.3.0",
|
|
33
34
|
"@rescui/visual-regression": "^0.1.1",
|
|
34
35
|
"case": "^1.6.3",
|
|
35
36
|
"fs-extra": "^7.0.1",
|
|
@@ -37,8 +38,9 @@
|
|
|
37
38
|
"shx": "^0.3.3"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
|
-
"build": "rescui-scripts build --no-css-modules && yarn run build-mixins && shx cp src/font-*.css lib",
|
|
41
|
-
"build-
|
|
41
|
+
"build": "rescui-scripts build --no-css-modules && yarn run build-api && yarn run build-mixins && shx cp src/font-*.css lib",
|
|
42
|
+
"build-api": "rescui-scripts build-pcss-api --file public-api.p.css",
|
|
43
|
+
"build-mixins": "rescui-scripts build-pcss-api --file mixins.p.css"
|
|
42
44
|
},
|
|
43
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "51da8a7188f4c558c563065a4ff4ef5c8e74994c"
|
|
44
46
|
}
|