@alfalab/core-components-typography 3.0.5 → 3.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/colors.css +13 -13
- package/colors.js +0 -2
- package/{colors.module-0bde6fb8.d.ts → colors.module-bf5cdf66.d.ts} +0 -0
- package/{colors.module-0bde6fb8.js → colors.module-bf5cdf66.js} +1 -1
- package/common.module-8c6b627f.js +6 -0
- package/component.d.ts +3 -2
- package/component.js +5 -7
- package/cssm/colors.js +0 -2
- package/cssm/component.d.ts +3 -2
- package/cssm/component.js +5 -7
- package/cssm/index.js +7 -9
- package/cssm/presets.js +0 -2
- package/cssm/text/component.d.ts +2 -2
- package/cssm/text/component.js +11 -13
- package/cssm/text/index.js +2 -4
- package/cssm/title/component.d.ts +3 -3
- package/cssm/title/component.js +6 -8
- package/cssm/title/index.d.ts +2 -1
- package/cssm/title/index.js +8 -10
- package/cssm/title-mobile/component.js +8 -10
- package/cssm/title-mobile/index.js +3 -5
- package/cssm/title-responsive/component.js +8 -10
- package/cssm/title-responsive/index.js +3 -5
- package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
- package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
- package/cssm/types.d.ts +2 -0
- package/cssm/types.js +2 -0
- package/esm/colors.css +13 -13
- package/esm/{colors.module-ea6aa385.d.ts → colors.module-6165745a.d.ts} +0 -0
- package/esm/{colors.module-ea6aa385.js → colors.module-6165745a.js} +2 -2
- package/esm/common.module-4ce0321b.js +4 -0
- package/esm/component.d.ts +3 -2
- package/esm/component.js +5 -5
- package/esm/index.js +6 -6
- package/esm/text/component.d.ts +2 -2
- package/esm/text/component.js +2 -2
- package/esm/text/index.css +15 -15
- package/esm/text/index.js +2 -2
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +3 -3
- package/esm/title/component.js +2 -2
- package/esm/title/index.css +19 -19
- package/esm/title/index.d.ts +2 -1
- package/esm/title/index.js +4 -4
- package/esm/title-mobile/component.js +4 -4
- package/esm/title-mobile/index.css +14 -14
- package/esm/title-mobile/index.js +4 -4
- package/esm/title-responsive/component.js +4 -4
- package/esm/title-responsive/index.css +41 -41
- package/esm/title-responsive/index.js +4 -4
- package/esm/types.d.ts +2 -0
- package/esm/types.js +1 -0
- package/index.js +6 -8
- package/modern/colors.css +13 -13
- package/modern/colors.module-e62b3a57.js +4 -0
- package/modern/common.module-9d782690.js +4 -0
- package/modern/component.d.ts +3 -2
- package/modern/component.js +5 -5
- package/modern/index.js +6 -6
- package/modern/text/component.d.ts +2 -2
- package/modern/text/component.js +2 -2
- package/modern/text/index.css +15 -15
- package/modern/text/index.js +2 -2
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +3 -3
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +19 -19
- package/modern/title/index.d.ts +2 -1
- package/modern/title/index.js +4 -4
- package/modern/title-mobile/component.js +4 -4
- package/modern/title-mobile/index.css +14 -14
- package/modern/title-mobile/index.js +4 -4
- package/modern/title-responsive/component.js +4 -4
- package/modern/title-responsive/index.css +41 -41
- package/modern/title-responsive/index.js +4 -4
- package/modern/types.d.ts +2 -0
- package/modern/types.js +1 -0
- package/package.json +1 -1
- package/presets.js +0 -2
- package/text/component.d.ts +2 -2
- package/text/component.js +6 -8
- package/text/index.css +15 -15
- package/text/index.js +2 -4
- package/title/common.css +5 -5
- package/title/component.d.ts +3 -3
- package/title/component.js +5 -7
- package/title/index.css +19 -19
- package/title/index.d.ts +2 -1
- package/title/index.js +7 -9
- package/title-mobile/component.js +7 -9
- package/title-mobile/index.css +14 -14
- package/title-mobile/index.js +4 -6
- package/title-responsive/component.js +7 -9
- package/title-responsive/index.css +41 -41
- package/title-responsive/index.js +4 -6
- package/types.d.ts +2 -0
- package/types.js +2 -0
- package/common.module-38ff9d96.js +0 -6
- package/esm/common.module-3d6e256f.js +0 -4
- package/modern/colors.module-37ac527a.js +0 -4
- package/modern/common.module-3d6e256f.js +0 -4
package/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ss85 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -13,66 +13,66 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.typography__paragraph_rxtwz {
|
|
17
17
|
margin: 0;
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.typography__paragraphWithMargins_rxtwz {
|
|
21
21
|
padding: 0;
|
|
22
22
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
23
|
}
|
|
24
|
-
.typography__primary-
|
|
24
|
+
.typography__primary-large_rxtwz {
|
|
25
25
|
font-size: 18px;
|
|
26
26
|
line-height: 24px;
|
|
27
27
|
font-weight: 400;
|
|
28
28
|
}
|
|
29
|
-
.typography__primary-
|
|
29
|
+
.typography__primary-medium_rxtwz {
|
|
30
30
|
font-size: 16px;
|
|
31
31
|
line-height: 24px;
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
}
|
|
34
|
-
.typography__primary-
|
|
34
|
+
.typography__primary-small_rxtwz {
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
37
|
font-weight: 400;
|
|
38
38
|
}
|
|
39
|
-
.typography__secondary-
|
|
39
|
+
.typography__secondary-large_rxtwz {
|
|
40
40
|
font-size: 13px;
|
|
41
41
|
line-height: 16px;
|
|
42
42
|
font-weight: 400;
|
|
43
43
|
}
|
|
44
|
-
.typography__secondary-
|
|
44
|
+
.typography__secondary-medium_rxtwz {
|
|
45
45
|
font-size: 12px;
|
|
46
46
|
line-height: 16px;
|
|
47
47
|
font-weight: 400;
|
|
48
48
|
}
|
|
49
|
-
.typography__secondary-
|
|
49
|
+
.typography__secondary-small_rxtwz {
|
|
50
50
|
font-size: 11px;
|
|
51
51
|
line-height: 16px;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.typography__component_rxtwz {
|
|
55
55
|
font-size: 16px;
|
|
56
56
|
line-height: 20px;
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.typography__caps_rxtwz {
|
|
60
60
|
font-size: 12px;
|
|
61
61
|
line-height: 16px;
|
|
62
62
|
font-weight: 500;
|
|
63
63
|
letter-spacing: 1.25px;
|
|
64
64
|
text-transform: uppercase;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.typography__bold_rxtwz {
|
|
67
67
|
font-weight: bold;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.typography__medium_rxtwz {
|
|
70
70
|
font-weight: 500;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
.typography__regular_rxtwz {
|
|
73
73
|
font-weight: normal;
|
|
74
74
|
}
|
|
75
|
-
.
|
|
75
|
+
.typography__monospace_rxtwz {
|
|
76
76
|
font-feature-settings: "tnum";
|
|
77
77
|
font-variant-numeric: tabular-nums;
|
|
78
78
|
}
|
package/text/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var text_component = require('./component.js');
|
|
4
|
+
require('../colors.module-bf5cdf66.js');
|
|
6
5
|
require('react');
|
|
7
6
|
require('classnames');
|
|
8
|
-
var text_component = require('./component.js');
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
|
package/title/common.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 2mp4r */
|
|
2
|
+
.typography__component_dljuk {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.typography__bold_dljuk {
|
|
8
8
|
font-weight: bold;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.typography__medium_dljuk {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.typography__regular_dljuk {
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
}
|
package/title/component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
9
9
|
*/
|
|
10
10
|
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
11
11
|
/**
|
|
12
|
-
* [Вариант начертания](https://
|
|
12
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
|
|
13
13
|
*/
|
|
14
14
|
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
15
15
|
/**
|
|
@@ -53,9 +53,9 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
|
|
|
53
53
|
*/
|
|
54
54
|
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
55
55
|
/**
|
|
56
|
-
* [Вариант начертания](https://
|
|
56
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
|
|
57
57
|
*/
|
|
58
|
-
view?: "medium" | "
|
|
58
|
+
view?: "medium" | "xlarge" | "large" | "small" | "xsmall" | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Цвет текста
|
|
61
61
|
*/
|
package/title/component.js
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var colors_module = require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var colors_module = require('../colors.module-bf5cdf66.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var cn = require('classnames');
|
|
8
6
|
|
|
9
|
-
function
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
8
|
|
|
11
|
-
var React__default = /*#__PURE__*/
|
|
12
|
-
var cn__default = /*#__PURE__*/
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
11
|
|
|
14
12
|
var Title = React.forwardRef(function (_a, ref) {
|
|
15
13
|
var _b = _a.tag, Component = _b === void 0 ? 'div' : _b, _c = _a.view, view = _c === void 0 ? 'medium' : _c, _d = _a.font, font = _d === void 0 ? 'styrene' : _d, _e = _a.weight, weight = _e === void 0 ? font === 'styrene' ? 'medium' : 'bold' : _e, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? false : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, styles = _a.styles, restProps = colors_module.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "styles"]);
|
|
16
|
-
return (React__default
|
|
14
|
+
return (React__default.default.createElement(Component, colors_module.__assign({ className: cn__default.default(styles.component, className, styles["".concat(font, "-").concat(view)], defaultMargins && styles["margins-".concat(view)], styles[weight], color && colors_module.colors[color]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
17
15
|
});
|
|
18
16
|
|
|
19
17
|
exports.Title = Title;
|
package/title/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 10lbz */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -17,87 +17,87 @@
|
|
|
17
17
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
18
18
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
19
19
|
}
|
|
20
|
-
.typography__styrene-
|
|
20
|
+
.typography__styrene-xlarge_1rf90 {
|
|
21
21
|
font-size: 48px;
|
|
22
22
|
line-height: 64px;
|
|
23
23
|
font-weight: 500;
|
|
24
24
|
font-feature-settings: 'ss01';
|
|
25
25
|
font-family: var(--font-family-styrene);
|
|
26
26
|
}
|
|
27
|
-
.typography__styrene-
|
|
27
|
+
.typography__styrene-large_1rf90 {
|
|
28
28
|
font-size: 40px;
|
|
29
29
|
line-height: 48px;
|
|
30
30
|
font-weight: 500;
|
|
31
31
|
font-feature-settings: 'ss01';
|
|
32
32
|
font-family: var(--font-family-styrene);
|
|
33
33
|
}
|
|
34
|
-
.typography__styrene-
|
|
34
|
+
.typography__styrene-medium_1rf90 {
|
|
35
35
|
font-size: 32px;
|
|
36
36
|
line-height: 40px;
|
|
37
37
|
font-weight: 500;
|
|
38
38
|
font-feature-settings: 'ss01';
|
|
39
39
|
font-family: var(--font-family-styrene);
|
|
40
40
|
}
|
|
41
|
-
.typography__styrene-
|
|
41
|
+
.typography__styrene-small_1rf90 {
|
|
42
42
|
font-size: 24px;
|
|
43
43
|
line-height: 32px;
|
|
44
44
|
font-weight: 500;
|
|
45
45
|
font-feature-settings: 'ss01';
|
|
46
46
|
font-family: var(--font-family-styrene);
|
|
47
47
|
}
|
|
48
|
-
.typography__styrene-
|
|
48
|
+
.typography__styrene-xsmall_1rf90 {
|
|
49
49
|
font-size: 20px;
|
|
50
50
|
line-height: 24px;
|
|
51
51
|
font-weight: 500;
|
|
52
52
|
font-feature-settings: 'ss01';
|
|
53
53
|
font-family: var(--font-family-styrene);
|
|
54
54
|
}
|
|
55
|
-
.typography__system-
|
|
55
|
+
.typography__system-xlarge_1rf90 {
|
|
56
56
|
font-size: 48px;
|
|
57
57
|
line-height: 52px;
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
}
|
|
60
|
-
.typography__system-
|
|
60
|
+
.typography__system-large_1rf90 {
|
|
61
61
|
font-size: 40px;
|
|
62
62
|
line-height: 48px;
|
|
63
63
|
font-weight: 700;
|
|
64
64
|
}
|
|
65
|
-
.typography__system-
|
|
65
|
+
.typography__system-medium_1rf90 {
|
|
66
66
|
font-size: 30px;
|
|
67
67
|
line-height: 36px;
|
|
68
68
|
font-weight: 700;
|
|
69
69
|
}
|
|
70
|
-
.typography__system-
|
|
70
|
+
.typography__system-small_1rf90 {
|
|
71
71
|
font-size: 22px;
|
|
72
72
|
line-height: 26px;
|
|
73
73
|
font-weight: 700;
|
|
74
74
|
}
|
|
75
|
-
.typography__system-
|
|
75
|
+
.typography__system-xsmall_1rf90 {
|
|
76
76
|
font-size: 18px;
|
|
77
77
|
line-height: 22px;
|
|
78
78
|
font-weight: 700;
|
|
79
79
|
}
|
|
80
|
-
.typography__margins-
|
|
80
|
+
.typography__margins-xlarge_1rf90 {
|
|
81
81
|
margin: 0 0 var(--gap-xl);
|
|
82
82
|
}
|
|
83
|
-
.typography__margins-
|
|
83
|
+
.typography__margins-large_1rf90 {
|
|
84
84
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
85
85
|
}
|
|
86
|
-
.typography__margins-
|
|
86
|
+
.typography__margins-medium_1rf90 {
|
|
87
87
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
88
88
|
}
|
|
89
|
-
.typography__margins-
|
|
89
|
+
.typography__margins-small_1rf90 {
|
|
90
90
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
91
91
|
}
|
|
92
|
-
.typography__margins-
|
|
92
|
+
.typography__margins-xsmall_1rf90 {
|
|
93
93
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.typography__bold_1rf90 {
|
|
96
96
|
font-weight: bold;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.typography__medium_1rf90 {
|
|
99
99
|
font-weight: 500;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.typography__regular_1rf90 {
|
|
102
102
|
font-weight: normal;
|
|
103
103
|
}
|
package/title/index.d.ts
CHANGED
package/title/index.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var colors_module = require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var colors_module = require('../colors.module-bf5cdf66.js');
|
|
6
4
|
var React = require('react');
|
|
7
|
-
require('classnames');
|
|
8
5
|
var title_component = require('./component.js');
|
|
9
|
-
var common_module = require('../common.module-
|
|
6
|
+
var common_module = require('../common.module-8c6b627f.js');
|
|
7
|
+
require('classnames');
|
|
10
8
|
|
|
11
|
-
function
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
10
|
|
|
13
|
-
var React__default = /*#__PURE__*/
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
12
|
|
|
15
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
13
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_1rf90","styrene-large":"typography__styrene-large_1rf90","styrene-medium":"typography__styrene-medium_1rf90","styrene-small":"typography__styrene-small_1rf90","styrene-xsmall":"typography__styrene-xsmall_1rf90","system-xlarge":"typography__system-xlarge_1rf90","system-large":"typography__system-large_1rf90","system-medium":"typography__system-medium_1rf90","system-small":"typography__system-small_1rf90","system-xsmall":"typography__system-xsmall_1rf90","margins-xlarge":"typography__margins-xlarge_1rf90","margins-large":"typography__margins-large_1rf90","margins-medium":"typography__margins-medium_1rf90","margins-small":"typography__margins-small_1rf90","margins-xsmall":"typography__margins-xsmall_1rf90","bold":"typography__bold_1rf90","medium":"typography__medium_1rf90","regular":"typography__regular_1rf90"};
|
|
16
14
|
require('./index.css')
|
|
17
15
|
|
|
18
16
|
var Title = function (props) { return (
|
|
@@ -20,6 +18,6 @@ var Title = function (props) { return (
|
|
|
20
18
|
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
21
19
|
* Видимо, это особенность работы jest и css-modules.
|
|
22
20
|
*/
|
|
23
|
-
React__default
|
|
21
|
+
React__default.default.createElement(title_component.Title, colors_module.__assign({}, props, { styles: Object.assign(common_module.commonStyles, styles) }))); };
|
|
24
22
|
|
|
25
23
|
exports.Title = Title;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var colors_module = require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var colors_module = require('../colors.module-bf5cdf66.js');
|
|
6
4
|
var React = require('react');
|
|
7
|
-
require('classnames');
|
|
8
5
|
var title_component = require('../title/component.js');
|
|
9
|
-
var common_module = require('../common.module-
|
|
6
|
+
var common_module = require('../common.module-8c6b627f.js');
|
|
7
|
+
require('classnames');
|
|
10
8
|
|
|
11
|
-
function
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
10
|
|
|
13
|
-
var React__default = /*#__PURE__*/
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
12
|
|
|
15
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
13
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_8kbc6","styrene-large":"typography__styrene-large_8kbc6","styrene-medium":"typography__styrene-medium_8kbc6","styrene-small":"typography__styrene-small_8kbc6","styrene-xsmall":"typography__styrene-xsmall_8kbc6","system-xlarge":"typography__system-xlarge_8kbc6","system-large":"typography__system-large_8kbc6","system-medium":"typography__system-medium_8kbc6","system-small":"typography__system-small_8kbc6","system-xsmall":"typography__system-xsmall_8kbc6","bold":"typography__bold_8kbc6","medium":"typography__medium_8kbc6","regular":"typography__regular_8kbc6"};
|
|
16
14
|
require('./index.css')
|
|
17
15
|
|
|
18
16
|
var TitleMobile = function (props) { return (
|
|
@@ -20,6 +18,6 @@ var TitleMobile = function (props) { return (
|
|
|
20
18
|
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
21
19
|
* Видимо, это особенность работы jest и css-modules.
|
|
22
20
|
*/
|
|
23
|
-
React__default
|
|
21
|
+
React__default.default.createElement(title_component.Title, colors_module.__assign({}, props, { styles: Object.assign(common_module.commonStyles, styles) }))); };
|
|
24
22
|
|
|
25
23
|
exports.TitleMobile = TitleMobile;
|
package/title-mobile/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: cqvwv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -11,72 +11,72 @@
|
|
|
11
11
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
12
12
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
13
13
|
}
|
|
14
|
-
.typography__styrene-
|
|
14
|
+
.typography__styrene-xlarge_8kbc6 {
|
|
15
15
|
font-size: 34px;
|
|
16
16
|
line-height: 40px;
|
|
17
17
|
font-weight: 500;
|
|
18
18
|
font-feature-settings: 'ss01';
|
|
19
19
|
font-family: var(--font-family-styrene);
|
|
20
20
|
}
|
|
21
|
-
.typography__styrene-
|
|
21
|
+
.typography__styrene-large_8kbc6 {
|
|
22
22
|
font-size: 30px;
|
|
23
23
|
line-height: 36px;
|
|
24
24
|
font-weight: 500;
|
|
25
25
|
font-feature-settings: 'ss01';
|
|
26
26
|
font-family: var(--font-family-styrene);
|
|
27
27
|
}
|
|
28
|
-
.typography__styrene-
|
|
28
|
+
.typography__styrene-medium_8kbc6 {
|
|
29
29
|
font-size: 26px;
|
|
30
30
|
line-height: 32px;
|
|
31
31
|
font-weight: 500;
|
|
32
32
|
font-feature-settings: 'ss01';
|
|
33
33
|
font-family: var(--font-family-styrene);
|
|
34
34
|
}
|
|
35
|
-
.typography__styrene-
|
|
35
|
+
.typography__styrene-small_8kbc6 {
|
|
36
36
|
font-size: 20px;
|
|
37
37
|
line-height: 28px;
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
font-feature-settings: 'ss01';
|
|
40
40
|
font-family: var(--font-family-styrene);
|
|
41
41
|
}
|
|
42
|
-
.typography__styrene-
|
|
42
|
+
.typography__styrene-xsmall_8kbc6 {
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
line-height: 20px;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
font-feature-settings: 'ss01';
|
|
47
47
|
font-family: var(--font-family-styrene);
|
|
48
48
|
}
|
|
49
|
-
.typography__system-
|
|
49
|
+
.typography__system-xlarge_8kbc6 {
|
|
50
50
|
font-size: 34px;
|
|
51
51
|
line-height: 40px;
|
|
52
52
|
font-weight: 600;
|
|
53
53
|
}
|
|
54
|
-
.typography__system-
|
|
54
|
+
.typography__system-large_8kbc6 {
|
|
55
55
|
font-size: 30px;
|
|
56
56
|
line-height: 36px;
|
|
57
57
|
font-weight: 600;
|
|
58
58
|
}
|
|
59
|
-
.typography__system-
|
|
59
|
+
.typography__system-medium_8kbc6 {
|
|
60
60
|
font-size: 26px;
|
|
61
61
|
line-height: 32px;
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
}
|
|
64
|
-
.typography__system-
|
|
64
|
+
.typography__system-small_8kbc6 {
|
|
65
65
|
font-size: 20px;
|
|
66
66
|
line-height: 28px;
|
|
67
67
|
font-weight: 600;
|
|
68
68
|
}
|
|
69
|
-
.typography__system-
|
|
69
|
+
.typography__system-xsmall_8kbc6 {
|
|
70
70
|
font-size: 16px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 600;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.typography__bold_8kbc6 {
|
|
75
75
|
font-weight: bold;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.typography__medium_8kbc6 {
|
|
78
78
|
font-weight: 500;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.typography__regular_8kbc6 {
|
|
81
81
|
font-weight: normal;
|
|
82
82
|
}
|
package/title-mobile/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var titleMobile_component = require('./component.js');
|
|
4
|
+
require('../colors.module-bf5cdf66.js');
|
|
6
5
|
require('react');
|
|
7
|
-
require('classnames');
|
|
8
6
|
require('../title/component.js');
|
|
9
|
-
require('
|
|
10
|
-
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../common.module-8c6b627f.js');
|
|
11
9
|
|
|
12
10
|
|
|
13
11
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var colors_module = require('../colors.module-0bde6fb8.js');
|
|
3
|
+
var colors_module = require('../colors.module-bf5cdf66.js');
|
|
6
4
|
var React = require('react');
|
|
7
|
-
require('classnames');
|
|
8
5
|
var title_component = require('../title/component.js');
|
|
9
|
-
var common_module = require('../common.module-
|
|
6
|
+
var common_module = require('../common.module-8c6b627f.js');
|
|
7
|
+
require('classnames');
|
|
10
8
|
|
|
11
|
-
function
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
10
|
|
|
13
|
-
var React__default = /*#__PURE__*/
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
12
|
|
|
15
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
13
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_6qijl","styrene-large":"typography__styrene-large_6qijl","styrene-medium":"typography__styrene-medium_6qijl","styrene-small":"typography__styrene-small_6qijl","styrene-xsmall":"typography__styrene-xsmall_6qijl","system-xlarge":"typography__system-xlarge_6qijl","system-large":"typography__system-large_6qijl","system-medium":"typography__system-medium_6qijl","system-small":"typography__system-small_6qijl","system-xsmall":"typography__system-xsmall_6qijl","margins-xlarge":"typography__margins-xlarge_6qijl","margins-large":"typography__margins-large_6qijl","margins-medium":"typography__margins-medium_6qijl","margins-small":"typography__margins-small_6qijl","margins-xsmall":"typography__margins-xsmall_6qijl"};
|
|
16
14
|
require('./index.css')
|
|
17
15
|
|
|
18
16
|
var TitleResponsive = function (props) { return (
|
|
@@ -20,6 +18,6 @@ var TitleResponsive = function (props) { return (
|
|
|
20
18
|
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
21
19
|
* Видимо, это особенность работы jest и css-modules.
|
|
22
20
|
*/
|
|
23
|
-
React__default
|
|
21
|
+
React__default.default.createElement(title_component.Title, colors_module.__assign({}, props, { styles: Object.assign(common_module.commonStyles, styles) }))); };
|
|
24
22
|
|
|
25
23
|
exports.TitleResponsive = TitleResponsive;
|