@rescui/typography 0.15.0 → 0.16.1

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.
@@ -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;
@@ -1,30 +1,23 @@
1
- import { RS_COLOR_BLACK, RS_COLOR_BLACK_T70, RS_COLOR_BLACK_T50, RS_COLOR_GREY_10, RS_COLOR_WHITE, RS_COLOR_WHITE_T70, RS_COLOR_WHITE_T50, RS_COLOR_GREY_90 } from '@rescui/colors';
1
+ /* eslint-disable @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars */
2
2
 
3
- function typographyLight(el) {
4
- el.style.setProperty('--rs-typography-color-hard', RS_COLOR_BLACK);
5
- el.style.setProperty('--rs-typography-color-average', RS_COLOR_BLACK_T70);
6
- el.style.setProperty('--rs-typography-color-pale', RS_COLOR_BLACK_T50);
7
- el.style.setProperty('--rs-typography-pre-color', RS_COLOR_BLACK);
8
- el.style.setProperty('--rs-typography-pre-bg-color', RS_COLOR_GREY_10);
9
- el.style.setProperty('--rs-typography-text-link-hover-color', RS_COLOR_WHITE);
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 resetTypographyColorVariables(el) {
22
- el.style.setProperty('--rs-typography-color-hard', null);
23
- el.style.setProperty('--rs-typography-color-average', null);
24
- el.style.setProperty('--rs-typography-color-pale', null);
25
- el.style.setProperty('--rs-typography-pre-color', null);
26
- el.style.setProperty('--rs-typography-pre-bg-color', null);
27
- el.style.setProperty('--rs-typography-text-link-hover-color', null);
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.15.0",
3
+ "version": "0.16.1",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -19,17 +19,18 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@babel/runtime-corejs3": "^7.14.0",
22
- "@rescui/colors": "^0.1.11",
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": {
27
- "@rescui/ui-contexts": "^0.4.0",
28
+ "@rescui/ui-contexts": "^0.5.0",
28
29
  "react": ">=16.8.0 <19"
29
30
  },
30
31
  "devDependencies": {
31
- "@rescui/postcss-preset-library": "^0.1.1",
32
- "@rescui/scripts": "^0.2.3",
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-mixins": "rescui-scripts postcss --glob mixins.p.css --config ./.postcssrc-mixins.js --no-clean-out && shx mv lib/mixins.css lib/mixins.p.css && shx cp lib/mixins.p.css lib/mixins.pcss && shx rm lib/mixins.css.map"
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": "e21b6f80037993b094ceaff022db6d4cd176a88d"
45
+ "gitHead": "6457f4265a1a30050b9f4cc1f0dd808c005d1ca0"
44
46
  }