@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/modern/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/modern/title/index.d.ts
CHANGED
package/modern/title/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import '../colors.module-37ac527a.js';
|
|
4
2
|
import { Title as Title$1 } from './component.js';
|
|
5
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-9d782690.js';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '../colors.module-e62b3a57.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const 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"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Title = (props) => (
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import '../colors.module-37ac527a.js';
|
|
4
2
|
import { Title } from '../title/component.js';
|
|
5
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-9d782690.js';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '../colors.module-e62b3a57.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const 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"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const TitleMobile = (props) => (
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { TitleMobile } from './component.js';
|
|
1
2
|
import 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import '../colors.module-37ac527a.js';
|
|
4
3
|
import '../title/component.js';
|
|
5
|
-
import '
|
|
6
|
-
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '../colors.module-e62b3a57.js';
|
|
6
|
+
import '../common.module-9d782690.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import '../colors.module-37ac527a.js';
|
|
4
2
|
import { Title } from '../title/component.js';
|
|
5
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-9d782690.js';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '../colors.module-e62b3a57.js';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const 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"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const TitleResponsive = (props) => (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16knd */
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
50
50
|
font-size: 16px;
|
|
51
51
|
line-height: 20px;
|
|
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_6qijl {
|
|
57
57
|
font-size: 30px;
|
|
58
58
|
line-height: 36px;
|
|
59
59
|
font-weight: 700;
|
|
60
60
|
}
|
|
61
|
-
.typography__system-
|
|
61
|
+
.typography__system-large_6qijl {
|
|
62
62
|
font-size: 22px;
|
|
63
63
|
line-height: 26px;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
}
|
|
66
|
-
.typography__system-
|
|
66
|
+
.typography__system-medium_6qijl {
|
|
67
67
|
font-size: 18px;
|
|
68
68
|
line-height: 22px;
|
|
69
69
|
font-weight: 700;
|
|
70
70
|
}
|
|
71
|
-
.typography__system-
|
|
71
|
+
.typography__system-small_6qijl {
|
|
72
72
|
font-size: 18px;
|
|
73
73
|
line-height: 22px;
|
|
74
74
|
font-weight: 700;
|
|
75
75
|
}
|
|
76
|
-
.typography__system-
|
|
76
|
+
.typography__system-xsmall_6qijl {
|
|
77
77
|
font-size: 18px;
|
|
78
78
|
line-height: 22px;
|
|
79
79
|
font-weight: 700;
|
|
80
80
|
}
|
|
81
|
-
.typography__margins-
|
|
81
|
+
.typography__margins-xlarge_6qijl {
|
|
82
82
|
margin: 0 0 var(--gap-xl);
|
|
83
83
|
}
|
|
84
|
-
.typography__margins-
|
|
84
|
+
.typography__margins-large_6qijl {
|
|
85
85
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
86
86
|
}
|
|
87
|
-
.typography__margins-
|
|
87
|
+
.typography__margins-medium_6qijl {
|
|
88
88
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
89
89
|
}
|
|
90
|
-
.typography__margins-
|
|
90
|
+
.typography__margins-small_6qijl {
|
|
91
91
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
92
92
|
}
|
|
93
|
-
.typography__margins-
|
|
93
|
+
.typography__margins-xsmall_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
128
128
|
margin: 0 0 var(--gap-xl);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.typography__margins-
|
|
131
|
+
.typography__margins-large_6qijl {
|
|
132
132
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.typography__margins-
|
|
135
|
+
.typography__margins-medium_6qijl {
|
|
136
136
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.typography__margins-
|
|
139
|
+
.typography__margins-small_6qijl {
|
|
140
140
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.typography__margins-
|
|
143
|
+
.typography__margins-xsmall_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
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_6qijl {
|
|
219
219
|
margin: 0 0 var(--gap-xl);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
.typography__margins-
|
|
222
|
+
.typography__margins-large_6qijl {
|
|
223
223
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.typography__margins-
|
|
226
|
+
.typography__margins-medium_6qijl {
|
|
227
227
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.typography__margins-
|
|
230
|
+
.typography__margins-small_6qijl {
|
|
231
231
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.typography__margins-
|
|
234
|
+
.typography__margins-xsmall_6qijl {
|
|
235
235
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { TitleResponsive } from './component.js';
|
|
1
2
|
import 'react';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import '../colors.module-37ac527a.js';
|
|
4
3
|
import '../title/component.js';
|
|
5
|
-
import '
|
|
6
|
-
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '../colors.module-e62b3a57.js';
|
|
6
|
+
import '../common.module-9d782690.js';
|
package/modern/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
package/presets.js
CHANGED
package/text/component.d.ts
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
import { Color } from "../colors";
|
|
5
|
+
import { TextElementType } from "../types";
|
|
5
6
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
6
7
|
type TextBaseProps = {
|
|
7
8
|
/**
|
|
8
|
-
* [Вариант начертания](https://
|
|
9
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
|
|
9
10
|
*/
|
|
10
11
|
view?: 'primary-large' | 'primary-medium' | 'primary-small' | 'secondary-large' | 'secondary-medium' | 'secondary-small' | 'component' | 'caps';
|
|
11
12
|
/**
|
|
@@ -46,6 +47,5 @@ type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
|
|
|
46
47
|
defaultMargins?: boolean;
|
|
47
48
|
};
|
|
48
49
|
type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);
|
|
49
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
50
50
|
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<TextElementType>>;
|
|
51
51
|
export { TextProps, Text };
|
package/text/component.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
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
|
-
var styles = {"paragraph":"
|
|
12
|
+
var styles = {"paragraph":"typography__paragraph_rxtwz","paragraphWithMargins":"typography__paragraphWithMargins_rxtwz","primary-large":"typography__primary-large_rxtwz","primary-medium":"typography__primary-medium_rxtwz","primary-small":"typography__primary-small_rxtwz","secondary-large":"typography__secondary-large_rxtwz","secondary-medium":"typography__secondary-medium_rxtwz","secondary-small":"typography__secondary-small_rxtwz","component":"typography__component_rxtwz","caps":"typography__caps_rxtwz","bold":"typography__bold_rxtwz","medium":"typography__medium_rxtwz","regular":"typography__regular_rxtwz","monospace":"typography__monospace_rxtwz"};
|
|
15
13
|
require('./index.css')
|
|
16
14
|
|
|
17
15
|
var Text = React.forwardRef(function (_a, ref) {
|
|
18
16
|
var _b;
|
|
19
17
|
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, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? true : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, restProps = colors_module.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children"]);
|
|
20
|
-
return (React__default
|
|
18
|
+
return (React__default.default.createElement(Component, colors_module.__assign({ className: cn__default.default((_b = {},
|
|
21
19
|
_b[styles.paragraph] = Component === 'p' && !defaultMargins,
|
|
22
20
|
_b[styles.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
23
21
|
_b[styles.monospace] = monospaceNumbers,
|