@rescui/typography 0.16.2-RUI-201-Support-css-modules-in-typography.23 → 0.16.3-test-canary-release.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/any.d.ts +1 -0
- package/lib/create-text-cn.d.ts +2 -0
- package/lib/create-text-cn.js +4 -5
- package/lib/index.css +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/mixins.p.css +2 -2
- package/lib/mixins.pcss +2 -2
- package/lib/public-api.p.css +4 -4
- package/lib/public-api.pcss +4 -4
- package/package.json +5 -5
- package/lib/index-moduled.css +0 -1303
- package/lib/index-moduled.p.module.css.js +0 -118
package/lib/any.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bem-cn-fast';
|
package/lib/create-text-cn.d.ts
CHANGED
package/lib/create-text-cn.js
CHANGED
|
@@ -2,7 +2,6 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/ins
|
|
|
2
2
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
3
3
|
import { useThemeWithUndefined } from '@rescui/ui-contexts';
|
|
4
4
|
import cn from 'classnames';
|
|
5
|
-
import styles from './index-moduled.p.module.css.js';
|
|
6
5
|
var TEXT_BASES = ['rs-digits-1', 'rs-digits-2', 'rs-super-hero', 'rs-middle-hero', 'rs-hero', 'rs-subtitle-1', 'rs-subtitle-2', 'rs-h1', 'rs-h2', 'rs-h3', 'rs-h4', 'rs-h5', 'rs-overline', 'rs-text-1', 'rs-text-2', 'rs-text-3'];
|
|
7
6
|
var TEXTS = ['rs-text-1', 'rs-text-2', 'rs-text-3'];
|
|
8
7
|
|
|
@@ -32,20 +31,20 @@ function createTextCn(theme) {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
if (_includesInstanceProperty(TEXT_BASES).call(TEXT_BASES, type)) {
|
|
35
|
-
return cn(
|
|
34
|
+
return cn(type, theme && "rs-typography_theme_".concat(theme), hardness ? "rs-text_hardness_".concat(hardness) : _includesInstanceProperty(TEXTS).call(TEXTS, type) && "rs-text_hardness_average", paragraphOffsetAuto && 'rs-text_paragraph-offset-auto');
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
if (type === 'rs-link') {
|
|
39
|
-
return cn(
|
|
38
|
+
return cn(type, "rs-link_mode_".concat(mode), hardness && "rs-link_hardness_".concat(hardness), external && "rs-link_external", theme && "rs-typography_theme_".concat(theme));
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
if (type === 'rs-ul' || type === 'rs-ol') {
|
|
43
42
|
var _context;
|
|
44
43
|
|
|
45
|
-
return cn(
|
|
44
|
+
return cn(type, alpha && "rs-ol_alpha_".concat(alpha), offsetItems && _concatInstanceProperty(_context = "".concat(type, "_offset-items_")).call(_context, offsetItems));
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
return cn(
|
|
47
|
+
return cn(type, theme && "rs-typography_theme_".concat(theme));
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
return textCn;
|
package/lib/index.css
CHANGED
|
@@ -964,14 +964,14 @@
|
|
|
964
964
|
line-height:24px;
|
|
965
965
|
}
|
|
966
966
|
.rs-pre > code,
|
|
967
|
-
.rs-pre >
|
|
967
|
+
.rs-pre > .rs-code{
|
|
968
968
|
border:0;
|
|
969
969
|
|
|
970
970
|
white-space:pre;
|
|
971
971
|
word-break:normal;
|
|
972
972
|
}
|
|
973
973
|
.rs-pre code,
|
|
974
|
-
.rs-pre
|
|
974
|
+
.rs-pre .rs-code{
|
|
975
975
|
display:inline;
|
|
976
976
|
overflow:visible;
|
|
977
977
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './styles';
|
|
1
2
|
export { createTextCn, useTextStyles, textCn } from './create-text-cn';
|
|
2
3
|
export type { TextsParams, LinkParams, OrderedListParams, UnorderedListParams, Texts, Link, OrderedList, UnorderedList, Others, Hardness, Mode, Alpha, OffsetItems } from './create-text-cn';
|
|
3
4
|
export * from './text-color-utils';
|
package/lib/index.js
CHANGED
package/lib/mixins.p.css
CHANGED
|
@@ -2546,14 +2546,14 @@
|
|
|
2546
2546
|
font-size:16px;
|
|
2547
2547
|
line-height:24px;
|
|
2548
2548
|
> code,
|
|
2549
|
-
>
|
|
2549
|
+
> .rs-code{
|
|
2550
2550
|
border:0;
|
|
2551
2551
|
|
|
2552
2552
|
white-space:pre;
|
|
2553
2553
|
word-break:normal;
|
|
2554
2554
|
}
|
|
2555
2555
|
code,
|
|
2556
|
-
|
|
2556
|
+
.rs-code{
|
|
2557
2557
|
display:inline;
|
|
2558
2558
|
overflow:visible;
|
|
2559
2559
|
|
package/lib/mixins.pcss
CHANGED
|
@@ -2546,14 +2546,14 @@
|
|
|
2546
2546
|
font-size:16px;
|
|
2547
2547
|
line-height:24px;
|
|
2548
2548
|
> code,
|
|
2549
|
-
>
|
|
2549
|
+
> .rs-code{
|
|
2550
2550
|
border:0;
|
|
2551
2551
|
|
|
2552
2552
|
white-space:pre;
|
|
2553
2553
|
word-break:normal;
|
|
2554
2554
|
}
|
|
2555
2555
|
code,
|
|
2556
|
-
|
|
2556
|
+
.rs-code{
|
|
2557
2557
|
display:inline;
|
|
2558
2558
|
overflow:visible;
|
|
2559
2559
|
|
package/lib/public-api.p.css
CHANGED
|
@@ -1033,14 +1033,14 @@
|
|
|
1033
1033
|
font-size:16px;
|
|
1034
1034
|
line-height:24px;
|
|
1035
1035
|
> code,
|
|
1036
|
-
>
|
|
1036
|
+
> .rs-code{
|
|
1037
1037
|
border:0;
|
|
1038
1038
|
|
|
1039
1039
|
white-space:pre;
|
|
1040
1040
|
word-break:normal;
|
|
1041
1041
|
}
|
|
1042
1042
|
code,
|
|
1043
|
-
|
|
1043
|
+
.rs-code{
|
|
1044
1044
|
display:inline;
|
|
1045
1045
|
overflow:visible;
|
|
1046
1046
|
|
|
@@ -2406,14 +2406,14 @@
|
|
|
2406
2406
|
font-size:16px;
|
|
2407
2407
|
line-height:24px;
|
|
2408
2408
|
> code,
|
|
2409
|
-
>
|
|
2409
|
+
> .rs-code{
|
|
2410
2410
|
border:0;
|
|
2411
2411
|
|
|
2412
2412
|
white-space:pre;
|
|
2413
2413
|
word-break:normal;
|
|
2414
2414
|
}
|
|
2415
2415
|
code,
|
|
2416
|
-
|
|
2416
|
+
.rs-code{
|
|
2417
2417
|
display:inline;
|
|
2418
2418
|
overflow:visible;
|
|
2419
2419
|
|
package/lib/public-api.pcss
CHANGED
|
@@ -1033,14 +1033,14 @@
|
|
|
1033
1033
|
font-size:16px;
|
|
1034
1034
|
line-height:24px;
|
|
1035
1035
|
> code,
|
|
1036
|
-
>
|
|
1036
|
+
> .rs-code{
|
|
1037
1037
|
border:0;
|
|
1038
1038
|
|
|
1039
1039
|
white-space:pre;
|
|
1040
1040
|
word-break:normal;
|
|
1041
1041
|
}
|
|
1042
1042
|
code,
|
|
1043
|
-
|
|
1043
|
+
.rs-code{
|
|
1044
1044
|
display:inline;
|
|
1045
1045
|
overflow:visible;
|
|
1046
1046
|
|
|
@@ -2406,14 +2406,14 @@
|
|
|
2406
2406
|
font-size:16px;
|
|
2407
2407
|
line-height:24px;
|
|
2408
2408
|
> code,
|
|
2409
|
-
>
|
|
2409
|
+
> .rs-code{
|
|
2410
2410
|
border:0;
|
|
2411
2411
|
|
|
2412
2412
|
white-space:pre;
|
|
2413
2413
|
word-break:normal;
|
|
2414
2414
|
}
|
|
2415
2415
|
code,
|
|
2416
|
-
|
|
2416
|
+
.rs-code{
|
|
2417
2417
|
display:inline;
|
|
2418
2418
|
overflow:visible;
|
|
2419
2419
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/typography",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3-test-canary-release.0+a2e1fabd",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
22
|
-
"@rescui/colors": "0.2.1-
|
|
22
|
+
"@rescui/colors": "0.2.1-test-canary-release.22+a2e1fabd",
|
|
23
|
+
"bem-cn-fast": "^1.0.2",
|
|
23
24
|
"classnames": "^2.2.6",
|
|
24
25
|
"inter-ui": "^3.15.1"
|
|
25
26
|
},
|
|
@@ -37,10 +38,9 @@
|
|
|
37
38
|
"shx": "^0.3.3"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
|
-
"build": "rescui-scripts build --css-
|
|
41
|
-
"build-global": "rescui-scripts postcss --glob ./index.p.css --no-clean-out --no-source-maps",
|
|
41
|
+
"build": "rescui-scripts build --no-css-modules && yarn run build-api && yarn run build-mixins && shx cp src/font-*.css lib",
|
|
42
42
|
"build-api": "rescui-scripts build-pcss-api --file public-api.p.css",
|
|
43
43
|
"build-mixins": "rescui-scripts build-pcss-api --file mixins.p.css"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "a2e1fabd391841605a1f7d06800f60fb82a50feb"
|
|
46
46
|
}
|