@alfalab/core-components-typography 2.5.2 → 2.6.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.
- package/CHANGELOG.md +20 -0
- package/{dist/colors.css → colors.css} +13 -13
- package/{dist/colors.d.ts → colors.d.ts} +0 -0
- package/{dist/colors.js → colors.js} +0 -0
- package/{dist/colors.module-5e5e1b11.d.ts → colors.module-c383b476.d.ts} +0 -0
- package/{dist/colors.module-5e5e1b11.js → colors.module-c383b476.js} +1 -1
- package/common.module-568d24cc.js +6 -0
- package/{dist/component.d.ts → component.d.ts} +0 -0
- package/{dist/component.js → component.js} +2 -2
- package/{dist/cssm → cssm}/colors.d.ts +0 -0
- package/{dist/cssm → cssm}/colors.js +0 -0
- package/{dist/cssm → cssm}/colors.module.css +0 -0
- package/{dist/cssm → cssm}/component.d.ts +0 -0
- package/{dist/cssm → cssm}/component.js +0 -0
- package/{dist/cssm → cssm}/index.d.ts +1 -0
- package/{dist/cssm → cssm}/index.js +0 -0
- package/{dist/cssm → cssm}/margins.module.css +0 -0
- package/{dist/cssm → cssm}/presets.d.ts +0 -0
- package/{dist/cssm → cssm}/presets.js +0 -0
- package/{dist/cssm → cssm}/text/component.d.ts +0 -0
- package/{dist/cssm → cssm}/text/component.js +2 -2
- package/{dist/cssm → cssm}/text/index.d.ts +0 -0
- package/{dist/cssm → cssm}/text/index.js +0 -0
- package/{dist/cssm → cssm}/text/index.module.css +0 -0
- package/{dist/cssm → cssm}/title/common.module.css +0 -0
- package/{dist/cssm → cssm}/title/component.d.ts +0 -0
- package/{dist/cssm → cssm}/title/component.js +0 -0
- package/{dist/cssm → cssm}/title/index.d.ts +0 -0
- package/{dist/cssm → cssm}/title/index.js +0 -0
- package/{dist/cssm → cssm}/title/index.module.css +0 -0
- package/{dist/cssm → cssm}/title-mobile/component.d.ts +0 -0
- package/{dist/cssm → cssm}/title-mobile/component.js +0 -0
- package/{dist/cssm → cssm}/title-mobile/index.d.ts +0 -0
- package/{dist/cssm → cssm}/title-mobile/index.js +0 -0
- package/{dist/cssm → cssm}/title-mobile/index.module.css +0 -0
- package/{dist/cssm → cssm}/title-responsive/component.d.ts +0 -0
- package/{dist/cssm → cssm}/title-responsive/component.js +0 -0
- package/{dist/cssm → cssm}/title-responsive/index.d.ts +0 -0
- package/{dist/cssm → cssm}/title-responsive/index.js +0 -0
- package/{dist/cssm → cssm}/title-responsive/index.module.css +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist/esm → esm}/colors.css +13 -13
- package/{dist/esm → esm}/colors.d.ts +0 -0
- package/{dist/esm → esm}/colors.js +0 -0
- package/{dist/esm/colors.module-9d998e27.d.ts → esm/colors.module-10a22074.d.ts} +0 -0
- package/{dist/esm/colors.module-9d998e27.js → esm/colors.module-10a22074.js} +1 -1
- package/esm/common.module-4a655e1e.js +4 -0
- package/{dist/esm → esm}/component.d.ts +0 -0
- package/{dist/esm → esm}/component.js +2 -2
- package/{dist/esm → esm}/index.d.ts +1 -0
- package/{dist/esm → esm}/index.js +2 -2
- package/{dist/esm → esm}/presets.d.ts +0 -0
- package/{dist/esm → esm}/presets.js +0 -0
- package/{dist/esm → esm}/text/component.d.ts +0 -0
- package/esm/text/component.js +14 -0
- package/{dist/modern → esm}/text/index.css +14 -14
- package/{dist/esm → esm}/text/index.d.ts +0 -0
- package/{dist/esm → esm}/text/index.js +1 -1
- package/esm/title/common.css +17 -0
- package/{dist/esm → esm}/title/component.d.ts +0 -0
- package/{dist/esm → esm}/title/component.js +1 -1
- package/{dist/modern → esm}/title/index.css +19 -19
- package/{dist/esm → esm}/title/index.d.ts +0 -0
- package/esm/title/index.js +18 -0
- package/{dist/esm → esm}/title-mobile/component.d.ts +0 -0
- package/esm/title-mobile/component.js +18 -0
- package/{dist → esm}/title-mobile/index.css +14 -14
- package/{dist/esm → esm}/title-mobile/index.d.ts +0 -0
- package/{dist/modern → esm}/title-mobile/index.js +2 -2
- package/{dist/esm → esm}/title-responsive/component.d.ts +0 -0
- package/esm/title-responsive/component.js +18 -0
- package/{dist/modern → esm}/title-responsive/index.css +41 -41
- package/{dist/esm → esm}/title-responsive/index.d.ts +0 -0
- package/{dist/modern → esm}/title-responsive/index.js +2 -2
- package/{dist/index.d.ts → index.d.ts} +1 -0
- package/{dist/index.js → index.js} +2 -2
- package/{dist/modern → modern}/colors.css +13 -13
- package/{dist/modern → modern}/colors.d.ts +0 -0
- package/{dist/modern → modern}/colors.js +0 -0
- package/modern/colors.module-3c753209.js +4 -0
- package/modern/common.module-4a655e1e.js +4 -0
- package/{dist/modern → modern}/component.d.ts +0 -0
- package/{dist/modern → modern}/component.js +2 -2
- package/{dist/modern → modern}/index.d.ts +1 -0
- package/{dist/modern → modern}/index.js +2 -2
- package/{dist/modern → modern}/presets.d.ts +0 -0
- package/{dist/modern → modern}/presets.js +0 -0
- package/{dist/modern → modern}/text/component.d.ts +0 -0
- package/modern/text/component.js +10 -0
- package/{dist → modern}/text/index.css +14 -14
- package/{dist/modern → modern}/text/index.d.ts +0 -0
- package/{dist/modern → modern}/text/index.js +1 -1
- package/modern/title/common.css +17 -0
- package/{dist/modern → modern}/title/component.d.ts +0 -0
- package/{dist/modern → modern}/title/component.js +1 -1
- package/{dist/esm → modern}/title/index.css +19 -19
- package/{dist/modern → modern}/title/index.d.ts +0 -0
- package/modern/title/index.js +18 -0
- package/{dist/modern → modern}/title-mobile/component.d.ts +0 -0
- package/modern/title-mobile/component.js +18 -0
- package/{dist/modern → modern}/title-mobile/index.css +14 -14
- package/{dist/modern → modern}/title-mobile/index.d.ts +0 -0
- package/{dist/esm → modern}/title-mobile/index.js +2 -2
- package/{dist/modern → modern}/title-responsive/component.d.ts +0 -0
- package/modern/title-responsive/component.js +18 -0
- package/{dist/esm → modern}/title-responsive/index.css +41 -41
- package/{dist/modern → modern}/title-responsive/index.d.ts +0 -0
- package/{dist/esm → modern}/title-responsive/index.js +2 -2
- package/package.json +8 -11
- package/{dist/presets.d.ts → presets.d.ts} +0 -0
- package/{dist/presets.js → presets.js} +0 -0
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/text → text}/component.d.ts +0 -0
- package/text/component.js +23 -0
- package/{dist/esm/text → text}/index.css +14 -14
- package/{dist/text → text}/index.d.ts +0 -0
- package/{dist/text → text}/index.js +1 -1
- package/title/common.css +17 -0
- package/{dist/title → title}/component.d.ts +0 -0
- package/{dist/title → title}/component.js +1 -1
- package/{dist/title → title}/index.css +19 -19
- package/{dist/title → title}/index.d.ts +0 -0
- package/title/index.js +26 -0
- package/{dist/title-mobile → title-mobile}/component.d.ts +0 -0
- package/{dist/title-mobile → title-mobile}/component.js +3 -3
- package/{dist/esm/title-mobile → title-mobile}/index.css +14 -14
- package/{dist/title-mobile → title-mobile}/index.d.ts +0 -0
- package/{dist/title-mobile → title-mobile}/index.js +2 -2
- package/{dist/title-responsive → title-responsive}/component.d.ts +0 -0
- package/title-responsive/component.js +26 -0
- package/{dist/title-responsive → title-responsive}/index.css +41 -41
- package/{dist/title-responsive → title-responsive}/index.d.ts +0 -0
- package/{dist/title-responsive → title-responsive}/index.js +2 -2
- package/dist/common.module-609d3ad6.js +0 -6
- package/dist/esm/common.module-bfd18bf8.js +0 -4
- package/dist/esm/text/component.js +0 -14
- package/dist/esm/title/common.css +0 -17
- package/dist/esm/title/index.js +0 -18
- package/dist/esm/title-mobile/component.js +0 -18
- package/dist/esm/title-responsive/component.js +0 -18
- package/dist/modern/colors.module-df20eed9.js +0 -4
- package/dist/modern/common.module-bfd18bf8.js +0 -4
- package/dist/modern/text/component.js +0 -10
- package/dist/modern/title/common.css +0 -17
- package/dist/modern/title/index.js +0 -18
- package/dist/modern/title-mobile/component.js +0 -18
- package/dist/modern/title-responsive/component.js +0 -18
- package/dist/text/component.js +0 -23
- package/dist/title/common.css +0 -17
- package/dist/title/index.js +0 -26
- package/dist/title-responsive/component.js +0 -26
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* hash: s003n */
|
|
2
|
+
.typography__component_1lnjg {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.typography__bold_1lnjg {
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.typography__medium_1lnjg {
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.typography__regular_1lnjg {
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { c as colors } from '../colors.module-
|
|
3
|
+
import { c as colors } from '../colors.module-3c753209.js';
|
|
4
4
|
|
|
5
5
|
const Title = forwardRef(({ tag: Component = 'div', view = 'medium', font = 'styrene', weight = font === 'styrene' ? 'medium' : 'bold', defaultMargins = false, color, className, dataTestId, children, styles, ...restProps }, ref) => (React.createElement(Component, Object.assign({ className: cn(styles.component, className, styles[`${font}-${view}`], defaultMargins && styles[`margins-${view}`], styles[weight], color && colors[color]), "data-test-id": dataTestId, ref: ref }, restProps), children)));
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 11u05 */
|
|
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_gnllo {
|
|
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_gnllo {
|
|
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_gnllo {
|
|
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_gnllo {
|
|
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_gnllo {
|
|
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_gnllo {
|
|
56
56
|
font-size: 48px;
|
|
57
57
|
line-height: 52px;
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
}
|
|
60
|
-
.typography__system-
|
|
60
|
+
.typography__system-large_gnllo {
|
|
61
61
|
font-size: 40px;
|
|
62
62
|
line-height: 48px;
|
|
63
63
|
font-weight: 700;
|
|
64
64
|
}
|
|
65
|
-
.typography__system-
|
|
65
|
+
.typography__system-medium_gnllo {
|
|
66
66
|
font-size: 30px;
|
|
67
67
|
line-height: 36px;
|
|
68
68
|
font-weight: 700;
|
|
69
69
|
}
|
|
70
|
-
.typography__system-
|
|
70
|
+
.typography__system-small_gnllo {
|
|
71
71
|
font-size: 22px;
|
|
72
72
|
line-height: 26px;
|
|
73
73
|
font-weight: 700;
|
|
74
74
|
}
|
|
75
|
-
.typography__system-
|
|
75
|
+
.typography__system-xsmall_gnllo {
|
|
76
76
|
font-size: 18px;
|
|
77
77
|
line-height: 22px;
|
|
78
78
|
font-weight: 700;
|
|
79
79
|
}
|
|
80
|
-
.typography__margins-
|
|
80
|
+
.typography__margins-xlarge_gnllo {
|
|
81
81
|
margin: 0 0 var(--gap-xl);
|
|
82
82
|
}
|
|
83
|
-
.typography__margins-
|
|
83
|
+
.typography__margins-large_gnllo {
|
|
84
84
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
85
85
|
}
|
|
86
|
-
.typography__margins-
|
|
86
|
+
.typography__margins-medium_gnllo {
|
|
87
87
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
88
88
|
}
|
|
89
|
-
.typography__margins-
|
|
89
|
+
.typography__margins-small_gnllo {
|
|
90
90
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
91
91
|
}
|
|
92
|
-
.typography__margins-
|
|
92
|
+
.typography__margins-xsmall_gnllo {
|
|
93
93
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.typography__bold_gnllo {
|
|
96
96
|
font-weight: bold;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.typography__medium_gnllo {
|
|
99
99
|
font-weight: 500;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.typography__regular_gnllo {
|
|
102
102
|
font-weight: normal;
|
|
103
103
|
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '../colors.module-3c753209.js';
|
|
4
|
+
import { Title as Title$1 } from './component.js';
|
|
5
|
+
import { c as commonStyles } from '../common.module-4a655e1e.js';
|
|
6
|
+
|
|
7
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_gnllo","styrene-large":"typography__styrene-large_gnllo","styrene-medium":"typography__styrene-medium_gnllo","styrene-small":"typography__styrene-small_gnllo","styrene-xsmall":"typography__styrene-xsmall_gnllo","system-xlarge":"typography__system-xlarge_gnllo","system-large":"typography__system-large_gnllo","system-medium":"typography__system-medium_gnllo","system-small":"typography__system-small_gnllo","system-xsmall":"typography__system-xsmall_gnllo","margins-xlarge":"typography__margins-xlarge_gnllo","margins-large":"typography__margins-large_gnllo","margins-medium":"typography__margins-medium_gnllo","margins-small":"typography__margins-small_gnllo","margins-xsmall":"typography__margins-xsmall_gnllo","bold":"typography__bold_gnllo","medium":"typography__medium_gnllo","regular":"typography__regular_gnllo"};
|
|
8
|
+
require('./index.css')
|
|
9
|
+
|
|
10
|
+
const Title = props => {
|
|
11
|
+
/**
|
|
12
|
+
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
13
|
+
* Видимо, это особенность работы jest и css-modules.
|
|
14
|
+
*/
|
|
15
|
+
return React.createElement(Title$1, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Title };
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '../colors.module-3c753209.js';
|
|
4
|
+
import { Title } from '../title/component.js';
|
|
5
|
+
import { c as commonStyles } from '../common.module-4a655e1e.js';
|
|
6
|
+
|
|
7
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_1leve","styrene-large":"typography__styrene-large_1leve","styrene-medium":"typography__styrene-medium_1leve","styrene-small":"typography__styrene-small_1leve","styrene-xsmall":"typography__styrene-xsmall_1leve","system-xlarge":"typography__system-xlarge_1leve","system-large":"typography__system-large_1leve","system-medium":"typography__system-medium_1leve","system-small":"typography__system-small_1leve","system-xsmall":"typography__system-xsmall_1leve","bold":"typography__bold_1leve","medium":"typography__medium_1leve","regular":"typography__regular_1leve"};
|
|
8
|
+
require('./index.css')
|
|
9
|
+
|
|
10
|
+
const TitleMobile = props => {
|
|
11
|
+
/**
|
|
12
|
+
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
13
|
+
* Видимо, это особенность работы jest и css-modules.
|
|
14
|
+
*/
|
|
15
|
+
return React.createElement(Title, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { TitleMobile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1obrc */
|
|
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_1leve {
|
|
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_1leve {
|
|
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_1leve {
|
|
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_1leve {
|
|
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_1leve {
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
line-height: 24px;
|
|
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_1leve {
|
|
50
50
|
font-size: 34px;
|
|
51
51
|
line-height: 40px;
|
|
52
52
|
font-weight: 600;
|
|
53
53
|
}
|
|
54
|
-
.typography__system-
|
|
54
|
+
.typography__system-large_1leve {
|
|
55
55
|
font-size: 30px;
|
|
56
56
|
line-height: 36px;
|
|
57
57
|
font-weight: 600;
|
|
58
58
|
}
|
|
59
|
-
.typography__system-
|
|
59
|
+
.typography__system-medium_1leve {
|
|
60
60
|
font-size: 26px;
|
|
61
61
|
line-height: 32px;
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
}
|
|
64
|
-
.typography__system-
|
|
64
|
+
.typography__system-small_1leve {
|
|
65
65
|
font-size: 20px;
|
|
66
66
|
line-height: 28px;
|
|
67
67
|
font-weight: 600;
|
|
68
68
|
}
|
|
69
|
-
.typography__system-
|
|
69
|
+
.typography__system-xsmall_1leve {
|
|
70
70
|
font-size: 16px;
|
|
71
71
|
line-height: 24px;
|
|
72
72
|
font-weight: 600;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.typography__bold_1leve {
|
|
75
75
|
font-weight: bold;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.typography__medium_1leve {
|
|
78
78
|
font-weight: 500;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.typography__regular_1leve {
|
|
81
81
|
font-weight: normal;
|
|
82
82
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../colors.module-9d998e27.js';
|
|
2
1
|
import 'react';
|
|
3
2
|
import 'classnames';
|
|
3
|
+
import '../colors.module-3c753209.js';
|
|
4
4
|
import '../title/component.js';
|
|
5
|
-
import '../common.module-
|
|
5
|
+
import '../common.module-4a655e1e.js';
|
|
6
6
|
export { TitleMobile } from './component.js';
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '../colors.module-3c753209.js';
|
|
4
|
+
import { Title } from '../title/component.js';
|
|
5
|
+
import { c as commonStyles } from '../common.module-4a655e1e.js';
|
|
6
|
+
|
|
7
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_1qce0","styrene-large":"typography__styrene-large_1qce0","styrene-medium":"typography__styrene-medium_1qce0","styrene-small":"typography__styrene-small_1qce0","styrene-xsmall":"typography__styrene-xsmall_1qce0","system-xlarge":"typography__system-xlarge_1qce0","system-large":"typography__system-large_1qce0","system-medium":"typography__system-medium_1qce0","system-small":"typography__system-small_1qce0","system-xsmall":"typography__system-xsmall_1qce0","margins-xlarge":"typography__margins-xlarge_1qce0","margins-large":"typography__margins-large_1qce0","margins-medium":"typography__margins-medium_1qce0","margins-small":"typography__margins-small_1qce0","margins-xsmall":"typography__margins-xsmall_1qce0"};
|
|
8
|
+
require('./index.css')
|
|
9
|
+
|
|
10
|
+
const TitleResponsive = props => {
|
|
11
|
+
/**
|
|
12
|
+
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
13
|
+
* Видимо, это особенность работы jest и css-modules.
|
|
14
|
+
*/
|
|
15
|
+
return React.createElement(Title, Object.assign({}, props, { styles: Object.assign(commonStyles, styles) }));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { TitleResponsive };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19qdv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -18,134 +18,134 @@
|
|
|
18
18
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
19
19
|
}
|
|
20
20
|
/* TODO: поменять медиа-запросы на миксины */
|
|
21
|
-
.typography__styrene-
|
|
21
|
+
.typography__styrene-xlarge_1qce0 {
|
|
22
22
|
font-size: 34px;
|
|
23
23
|
line-height: 40px;
|
|
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-large_1qce0 {
|
|
29
29
|
font-size: 30px;
|
|
30
30
|
line-height: 36px;
|
|
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-medium_1qce0 {
|
|
36
36
|
font-size: 26px;
|
|
37
37
|
line-height: 32px;
|
|
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-small_1qce0 {
|
|
43
43
|
font-size: 20px;
|
|
44
44
|
line-height: 28px;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
font-feature-settings: 'ss01';
|
|
47
47
|
font-family: var(--font-family-styrene);
|
|
48
48
|
}
|
|
49
|
-
.typography__styrene-
|
|
49
|
+
.typography__styrene-xsmall_1qce0 {
|
|
50
50
|
font-size: 16px;
|
|
51
51
|
line-height: 24px;
|
|
52
52
|
font-weight: 500;
|
|
53
53
|
font-feature-settings: 'ss01';
|
|
54
54
|
font-family: var(--font-family-styrene);
|
|
55
55
|
}
|
|
56
|
-
.typography__system-
|
|
56
|
+
.typography__system-xlarge_1qce0 {
|
|
57
57
|
font-size: 30px;
|
|
58
58
|
line-height: 36px;
|
|
59
59
|
font-weight: 700;
|
|
60
60
|
}
|
|
61
|
-
.typography__system-
|
|
61
|
+
.typography__system-large_1qce0 {
|
|
62
62
|
font-size: 22px;
|
|
63
63
|
line-height: 26px;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
}
|
|
66
|
-
.typography__system-
|
|
66
|
+
.typography__system-medium_1qce0 {
|
|
67
67
|
font-size: 18px;
|
|
68
68
|
line-height: 22px;
|
|
69
69
|
font-weight: 700;
|
|
70
70
|
}
|
|
71
|
-
.typography__system-
|
|
71
|
+
.typography__system-small_1qce0 {
|
|
72
72
|
font-size: 18px;
|
|
73
73
|
line-height: 22px;
|
|
74
74
|
font-weight: 700;
|
|
75
75
|
}
|
|
76
|
-
.typography__system-
|
|
76
|
+
.typography__system-xsmall_1qce0 {
|
|
77
77
|
font-size: 18px;
|
|
78
78
|
line-height: 22px;
|
|
79
79
|
font-weight: 700;
|
|
80
80
|
}
|
|
81
|
-
.typography__margins-
|
|
81
|
+
.typography__margins-xlarge_1qce0 {
|
|
82
82
|
margin: 0 0 var(--gap-xl);
|
|
83
83
|
}
|
|
84
|
-
.typography__margins-
|
|
84
|
+
.typography__margins-large_1qce0 {
|
|
85
85
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
86
86
|
}
|
|
87
|
-
.typography__margins-
|
|
87
|
+
.typography__margins-medium_1qce0 {
|
|
88
88
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
89
89
|
}
|
|
90
|
-
.typography__margins-
|
|
90
|
+
.typography__margins-small_1qce0 {
|
|
91
91
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
92
92
|
}
|
|
93
|
-
.typography__margins-
|
|
93
|
+
.typography__margins-xsmall_1qce0 {
|
|
94
94
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
95
95
|
}
|
|
96
96
|
@media screen and (min-width: 600px) {
|
|
97
|
-
.typography__system-
|
|
97
|
+
.typography__system-xlarge_1qce0 {
|
|
98
98
|
font-size: 40px;
|
|
99
99
|
line-height: 48px;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.typography__system-
|
|
103
|
+
.typography__system-large_1qce0 {
|
|
104
104
|
font-size: 30px;
|
|
105
105
|
line-height: 36px;
|
|
106
106
|
font-weight: 700;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.typography__system-
|
|
109
|
+
.typography__system-medium_1qce0 {
|
|
110
110
|
font-size: 22px;
|
|
111
111
|
line-height: 26px;
|
|
112
112
|
font-weight: 700;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.typography__system-
|
|
115
|
+
.typography__system-small_1qce0 {
|
|
116
116
|
font-size: 22px;
|
|
117
117
|
line-height: 26px;
|
|
118
118
|
font-weight: 700;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.typography__system-
|
|
121
|
+
.typography__system-xsmall_1qce0 {
|
|
122
122
|
font-size: 18px;
|
|
123
123
|
line-height: 22px;
|
|
124
124
|
font-weight: 700;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.typography__margins-
|
|
127
|
+
.typography__margins-xlarge_1qce0 {
|
|
128
128
|
margin: 0 0 var(--gap-xl);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.typography__margins-
|
|
131
|
+
.typography__margins-large_1qce0 {
|
|
132
132
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.typography__margins-
|
|
135
|
+
.typography__margins-medium_1qce0 {
|
|
136
136
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.typography__margins-
|
|
139
|
+
.typography__margins-small_1qce0 {
|
|
140
140
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.typography__margins-
|
|
143
|
+
.typography__margins-xsmall_1qce0 {
|
|
144
144
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
@media screen and (min-width: 1024px) {
|
|
148
|
-
.typography__styrene-
|
|
148
|
+
.typography__styrene-xlarge_1qce0 {
|
|
149
149
|
font-size: 48px;
|
|
150
150
|
line-height: 64px;
|
|
151
151
|
font-weight: 500;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
font-family: var(--font-family-styrene);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.typography__styrene-
|
|
156
|
+
.typography__styrene-large_1qce0 {
|
|
157
157
|
font-size: 40px;
|
|
158
158
|
line-height: 48px;
|
|
159
159
|
font-weight: 500;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
font-family: var(--font-family-styrene);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
.typography__styrene-
|
|
164
|
+
.typography__styrene-medium_1qce0 {
|
|
165
165
|
font-size: 32px;
|
|
166
166
|
line-height: 40px;
|
|
167
167
|
font-weight: 500;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
font-family: var(--font-family-styrene);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.typography__styrene-
|
|
172
|
+
.typography__styrene-small_1qce0 {
|
|
173
173
|
font-size: 24px;
|
|
174
174
|
line-height: 32px;
|
|
175
175
|
font-weight: 500;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
font-family: var(--font-family-styrene);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
.typography__styrene-
|
|
180
|
+
.typography__styrene-xsmall_1qce0 {
|
|
181
181
|
font-size: 20px;
|
|
182
182
|
line-height: 24px;
|
|
183
183
|
font-weight: 500;
|
|
@@ -185,53 +185,53 @@
|
|
|
185
185
|
font-family: var(--font-family-styrene);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
.typography__system-
|
|
188
|
+
.typography__system-xlarge_1qce0 {
|
|
189
189
|
font-size: 48px;
|
|
190
190
|
line-height: 52px;
|
|
191
191
|
font-weight: 700;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.typography__system-
|
|
194
|
+
.typography__system-large_1qce0 {
|
|
195
195
|
font-size: 40px;
|
|
196
196
|
line-height: 48px;
|
|
197
197
|
font-weight: 700;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
.typography__system-
|
|
200
|
+
.typography__system-medium_1qce0 {
|
|
201
201
|
font-size: 30px;
|
|
202
202
|
line-height: 36px;
|
|
203
203
|
font-weight: 700;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
.typography__system-
|
|
206
|
+
.typography__system-small_1qce0 {
|
|
207
207
|
font-size: 22px;
|
|
208
208
|
line-height: 26px;
|
|
209
209
|
font-weight: 700;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.typography__system-
|
|
212
|
+
.typography__system-xsmall_1qce0 {
|
|
213
213
|
font-size: 18px;
|
|
214
214
|
line-height: 22px;
|
|
215
215
|
font-weight: 700;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.typography__margins-
|
|
218
|
+
.typography__margins-xlarge_1qce0 {
|
|
219
219
|
margin: 0 0 var(--gap-xl);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
.typography__margins-
|
|
222
|
+
.typography__margins-large_1qce0 {
|
|
223
223
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.typography__margins-
|
|
226
|
+
.typography__margins-medium_1qce0 {
|
|
227
227
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.typography__margins-
|
|
230
|
+
.typography__margins-small_1qce0 {
|
|
231
231
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.typography__margins-
|
|
234
|
+
.typography__margins-xsmall_1qce0 {
|
|
235
235
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../colors.module-9d998e27.js';
|
|
2
1
|
import 'react';
|
|
3
2
|
import 'classnames';
|
|
3
|
+
import '../colors.module-3c753209.js';
|
|
4
4
|
import '../title/component.js';
|
|
5
|
-
import '../common.module-
|
|
5
|
+
import '../common.module-4a655e1e.js';
|
|
6
6
|
export { TitleResponsive } from './component.js';
|
package/package.json
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-typography",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "./
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
12
9
|
"scripts": {
|
|
13
|
-
"postinstall": "node ./
|
|
10
|
+
"postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
|
|
14
11
|
},
|
|
15
12
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
13
|
+
"access": "public",
|
|
14
|
+
"directory": "dist"
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
19
17
|
"react": "^16.9.0 || ^17.0.1"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
|
-
"classnames": "2.2.6"
|
|
23
|
-
}
|
|
24
|
-
"gitHead": "8d998af881e79e8b524179aa50cdb117c1380c74"
|
|
20
|
+
"classnames": "^2.2.6"
|
|
21
|
+
}
|
|
25
22
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var colors_module = require('../colors.module-c383b476.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var cn = require('classnames');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
|
+
|
|
14
|
+
var styles = {"paragraph":"typography__paragraph_1e9pp","primary-large":"typography__primary-large_1e9pp","primary-medium":"typography__primary-medium_1e9pp","primary-small":"typography__primary-small_1e9pp","secondary-large":"typography__secondary-large_1e9pp","secondary-medium":"typography__secondary-medium_1e9pp","secondary-small":"typography__secondary-small_1e9pp","component":"typography__component_1e9pp","caps":"typography__caps_1e9pp","bold":"typography__bold_1e9pp","medium":"typography__medium_1e9pp","regular":"typography__regular_1e9pp","monospace":"typography__monospace_1e9pp"};
|
|
15
|
+
require('./index.css')
|
|
16
|
+
|
|
17
|
+
var Text = React.forwardRef(function (_a, ref) {
|
|
18
|
+
var _b;
|
|
19
|
+
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d, weight = _a.weight, _e = _a.monospaceNumbers, monospaceNumbers = _e === void 0 ? false : _e, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, restProps = colors_module.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "color", "className", "dataTestId", "children"]);
|
|
20
|
+
return (React__default['default'].createElement(Component, colors_module.__assign({ className: cn__default['default']((_b = {}, _b[styles.paragraph] = Component === 'p', _b[styles.monospace] = monospaceNumbers, _b), className, color && colors_module.colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.Text = Text;
|