@alfalab/core-components-typography 3.1.1 → 3.2.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/colors.css +34 -13
- package/colors.d.ts +1 -1
- package/colors.js +7 -0
- package/colors.module-15de3c41.js +6 -0
- package/common.module-f948e7d5.js +6 -0
- package/component.js +2 -2
- package/cssm/colors.d.ts +1 -1
- package/cssm/colors.js +7 -0
- package/cssm/colors.module.css +21 -0
- package/cssm/title/component.d.ts +1 -1
- package/esm/colors.css +34 -13
- package/esm/colors.d.ts +1 -1
- package/esm/colors.js +7 -0
- package/esm/colors.module-308e84a9.js +4 -0
- package/esm/common.module-a19344da.js +4 -0
- package/esm/component.js +2 -2
- package/esm/index.js +2 -2
- package/esm/text/component.js +2 -2
- package/esm/text/index.css +18 -18
- package/esm/text/index.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +1 -1
- package/esm/title/component.js +1 -1
- package/esm/title/index.css +19 -19
- package/esm/title/index.js +3 -3
- package/esm/title-mobile/component.js +3 -3
- package/esm/title-mobile/index.css +11 -11
- package/esm/title-mobile/index.js +2 -2
- package/esm/title-responsive/component.js +3 -3
- package/esm/title-responsive/index.css +41 -41
- package/esm/title-responsive/index.js +2 -2
- package/index.js +2 -2
- package/modern/colors.css +34 -13
- package/modern/colors.d.ts +1 -1
- package/modern/colors.js +7 -0
- package/modern/colors.module-c327b974.js +4 -0
- package/modern/common.module-41281fe7.js +4 -0
- package/modern/component.js +2 -2
- package/modern/index.js +2 -2
- package/modern/text/component.js +2 -2
- package/modern/text/index.css +18 -18
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +1 -1
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +19 -19
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +11 -11
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +3 -3
- package/modern/title-responsive/index.css +41 -41
- package/modern/title-responsive/index.js +2 -2
- package/package.json +1 -1
- package/text/component.js +2 -2
- package/text/index.css +18 -18
- package/text/index.js +1 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +1 -1
- package/title/component.js +1 -1
- package/title/index.css +19 -19
- package/title/index.js +3 -3
- package/title-mobile/component.js +3 -3
- package/title-mobile/index.css +11 -11
- package/title-mobile/index.js +2 -2
- package/title-responsive/component.js +3 -3
- package/title-responsive/index.css +41 -41
- package/title-responsive/index.js +2 -2
- package/colors.module-fcf8e5d3.js +0 -6
- package/common.module-cf8a6de7.js +0 -6
- package/esm/colors.module-6c8a001e.js +0 -4
- package/esm/common.module-e5f2dd08.js +0 -4
- package/modern/colors.module-cd27c99e.js +0 -4
- package/modern/common.module-83440d45.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1fx8l */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -16,53 +16,53 @@
|
|
|
16
16
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
17
17
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
18
18
|
} :root {
|
|
19
|
-
} .typography__styrene-
|
|
19
|
+
} .typography__styrene-xlarge_brqjo {
|
|
20
20
|
font-size: 34px;
|
|
21
21
|
line-height: 40px;
|
|
22
22
|
font-weight: 500;
|
|
23
23
|
font-feature-settings: 'ss01';
|
|
24
24
|
font-family: var(--font-family-styrene);
|
|
25
|
-
} .typography__styrene-
|
|
25
|
+
} .typography__styrene-large_brqjo {
|
|
26
26
|
font-size: 30px;
|
|
27
27
|
line-height: 36px;
|
|
28
28
|
font-weight: 500;
|
|
29
29
|
font-feature-settings: 'ss01';
|
|
30
30
|
font-family: var(--font-family-styrene);
|
|
31
|
-
} .typography__styrene-
|
|
31
|
+
} .typography__styrene-medium_brqjo {
|
|
32
32
|
font-size: 26px;
|
|
33
33
|
line-height: 32px;
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
font-feature-settings: 'ss01';
|
|
36
36
|
font-family: var(--font-family-styrene);
|
|
37
|
-
} .typography__styrene-
|
|
37
|
+
} .typography__styrene-small_brqjo {
|
|
38
38
|
font-size: 20px;
|
|
39
39
|
line-height: 28px;
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
font-feature-settings: 'ss01';
|
|
42
42
|
font-family: var(--font-family-styrene);
|
|
43
|
-
} .typography__styrene-
|
|
43
|
+
} .typography__styrene-xsmall_brqjo {
|
|
44
44
|
font-size: 16px;
|
|
45
45
|
line-height: 20px;
|
|
46
46
|
font-weight: 500;
|
|
47
47
|
font-feature-settings: 'ss01';
|
|
48
48
|
font-family: var(--font-family-styrene);
|
|
49
|
-
} .typography__system-
|
|
49
|
+
} .typography__system-xlarge_brqjo {
|
|
50
50
|
font-size: 34px;
|
|
51
51
|
line-height: 40px;
|
|
52
52
|
font-weight: 600;
|
|
53
|
-
} .typography__system-
|
|
53
|
+
} .typography__system-large_brqjo {
|
|
54
54
|
font-size: 30px;
|
|
55
55
|
line-height: 36px;
|
|
56
56
|
font-weight: 600;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-medium_brqjo {
|
|
58
58
|
font-size: 26px;
|
|
59
59
|
line-height: 32px;
|
|
60
60
|
font-weight: 600;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-small_brqjo {
|
|
62
62
|
font-size: 20px;
|
|
63
63
|
line-height: 28px;
|
|
64
64
|
font-weight: 600;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-xsmall_brqjo {
|
|
66
66
|
font-size: 16px;
|
|
67
67
|
line-height: 20px;
|
|
68
68
|
font-weight: 600;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Title } from '../title/component.js';
|
|
4
|
-
import { c as commonStyles } from '../common.module-
|
|
4
|
+
import { c as commonStyles } from '../common.module-a19344da.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
-
import '../colors.module-
|
|
6
|
+
import '../colors.module-308e84a9.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
8
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_1x9yf","styrene-large":"typography__styrene-large_1x9yf","styrene-medium":"typography__styrene-medium_1x9yf","styrene-small":"typography__styrene-small_1x9yf","styrene-xsmall":"typography__styrene-xsmall_1x9yf","system-xlarge":"typography__system-xlarge_1x9yf","system-large":"typography__system-large_1x9yf","system-medium":"typography__system-medium_1x9yf","system-small":"typography__system-small_1x9yf","system-xsmall":"typography__system-xsmall_1x9yf","margins-xlarge":"typography__margins-xlarge_1x9yf","margins-large":"typography__margins-large_1x9yf","margins-medium":"typography__margins-medium_1x9yf","margins-small":"typography__margins-small_1x9yf","margins-xsmall":"typography__margins-xsmall_1x9yf"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var TitleResponsive = function (props) { return (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1n2ge */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -20,118 +20,118 @@
|
|
|
20
20
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
21
21
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
22
22
|
} :root {
|
|
23
|
-
} /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-
|
|
23
|
+
} /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-xlarge_1x9yf {
|
|
24
24
|
font-size: 34px;
|
|
25
25
|
line-height: 40px;
|
|
26
26
|
font-weight: 500;
|
|
27
27
|
font-feature-settings: 'ss01';
|
|
28
28
|
font-family: var(--font-family-styrene);
|
|
29
|
-
} .typography__styrene-
|
|
29
|
+
} .typography__styrene-large_1x9yf {
|
|
30
30
|
font-size: 30px;
|
|
31
31
|
line-height: 36px;
|
|
32
32
|
font-weight: 500;
|
|
33
33
|
font-feature-settings: 'ss01';
|
|
34
34
|
font-family: var(--font-family-styrene);
|
|
35
|
-
} .typography__styrene-
|
|
35
|
+
} .typography__styrene-medium_1x9yf {
|
|
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
|
-
} .typography__styrene-
|
|
41
|
+
} .typography__styrene-small_1x9yf {
|
|
42
42
|
font-size: 20px;
|
|
43
43
|
line-height: 28px;
|
|
44
44
|
font-weight: 500;
|
|
45
45
|
font-feature-settings: 'ss01';
|
|
46
46
|
font-family: var(--font-family-styrene);
|
|
47
|
-
} .typography__styrene-
|
|
47
|
+
} .typography__styrene-xsmall_1x9yf {
|
|
48
48
|
font-size: 16px;
|
|
49
49
|
line-height: 20px;
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
font-feature-settings: 'ss01';
|
|
52
52
|
font-family: var(--font-family-styrene);
|
|
53
|
-
} .typography__system-
|
|
53
|
+
} .typography__system-xlarge_1x9yf {
|
|
54
54
|
font-size: 30px;
|
|
55
55
|
line-height: 36px;
|
|
56
56
|
font-weight: 700;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-large_1x9yf {
|
|
58
58
|
font-size: 22px;
|
|
59
59
|
line-height: 26px;
|
|
60
60
|
font-weight: 700;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-medium_1x9yf {
|
|
62
62
|
font-size: 18px;
|
|
63
63
|
line-height: 22px;
|
|
64
64
|
font-weight: 700;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-small_1x9yf {
|
|
66
66
|
font-size: 18px;
|
|
67
67
|
line-height: 22px;
|
|
68
68
|
font-weight: 700;
|
|
69
|
-
} .typography__system-
|
|
69
|
+
} .typography__system-xsmall_1x9yf {
|
|
70
70
|
font-size: 18px;
|
|
71
71
|
line-height: 22px;
|
|
72
72
|
font-weight: 700;
|
|
73
|
-
} .typography__margins-
|
|
73
|
+
} .typography__margins-xlarge_1x9yf {
|
|
74
74
|
margin: 0 0 var(--gap-xl);
|
|
75
|
-
} .typography__margins-
|
|
75
|
+
} .typography__margins-large_1x9yf {
|
|
76
76
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
77
|
-
} .typography__margins-
|
|
77
|
+
} .typography__margins-medium_1x9yf {
|
|
78
78
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
79
|
-
} .typography__margins-
|
|
79
|
+
} .typography__margins-small_1x9yf {
|
|
80
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
81
|
-
} .typography__margins-
|
|
81
|
+
} .typography__margins-xsmall_1x9yf {
|
|
82
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
83
83
|
} @media screen and (min-width: 600px) {
|
|
84
|
-
.typography__system-
|
|
84
|
+
.typography__system-xlarge_1x9yf {
|
|
85
85
|
font-size: 40px;
|
|
86
86
|
line-height: 48px;
|
|
87
87
|
font-weight: 700;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.typography__system-
|
|
90
|
+
.typography__system-large_1x9yf {
|
|
91
91
|
font-size: 30px;
|
|
92
92
|
line-height: 36px;
|
|
93
93
|
font-weight: 700;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.typography__system-
|
|
96
|
+
.typography__system-medium_1x9yf {
|
|
97
97
|
font-size: 22px;
|
|
98
98
|
line-height: 26px;
|
|
99
99
|
font-weight: 700;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.typography__system-
|
|
102
|
+
.typography__system-small_1x9yf {
|
|
103
103
|
font-size: 22px;
|
|
104
104
|
line-height: 26px;
|
|
105
105
|
font-weight: 700;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.typography__system-
|
|
108
|
+
.typography__system-xsmall_1x9yf {
|
|
109
109
|
font-size: 18px;
|
|
110
110
|
line-height: 22px;
|
|
111
111
|
font-weight: 700;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.typography__margins-
|
|
114
|
+
.typography__margins-xlarge_1x9yf {
|
|
115
115
|
margin: 0 0 var(--gap-xl);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.typography__margins-
|
|
118
|
+
.typography__margins-large_1x9yf {
|
|
119
119
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.typography__margins-
|
|
122
|
+
.typography__margins-medium_1x9yf {
|
|
123
123
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.typography__margins-
|
|
126
|
+
.typography__margins-small_1x9yf {
|
|
127
127
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.typography__margins-
|
|
130
|
+
.typography__margins-xsmall_1x9yf {
|
|
131
131
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
132
132
|
}
|
|
133
133
|
} @media screen and (min-width: 1024px) {
|
|
134
|
-
.typography__styrene-
|
|
134
|
+
.typography__styrene-xlarge_1x9yf {
|
|
135
135
|
font-size: 48px;
|
|
136
136
|
line-height: 64px;
|
|
137
137
|
font-weight: 500;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
font-family: var(--font-family-styrene);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.typography__styrene-
|
|
142
|
+
.typography__styrene-large_1x9yf {
|
|
143
143
|
font-size: 40px;
|
|
144
144
|
line-height: 48px;
|
|
145
145
|
font-weight: 500;
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
font-family: var(--font-family-styrene);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.typography__styrene-
|
|
150
|
+
.typography__styrene-medium_1x9yf {
|
|
151
151
|
font-size: 32px;
|
|
152
152
|
line-height: 40px;
|
|
153
153
|
font-weight: 500;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
font-family: var(--font-family-styrene);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.typography__styrene-
|
|
158
|
+
.typography__styrene-small_1x9yf {
|
|
159
159
|
font-size: 24px;
|
|
160
160
|
line-height: 32px;
|
|
161
161
|
font-weight: 500;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
font-family: var(--font-family-styrene);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.typography__styrene-
|
|
166
|
+
.typography__styrene-xsmall_1x9yf {
|
|
167
167
|
font-size: 20px;
|
|
168
168
|
line-height: 24px;
|
|
169
169
|
font-weight: 500;
|
|
@@ -171,53 +171,53 @@
|
|
|
171
171
|
font-family: var(--font-family-styrene);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.typography__system-
|
|
174
|
+
.typography__system-xlarge_1x9yf {
|
|
175
175
|
font-size: 48px;
|
|
176
176
|
line-height: 52px;
|
|
177
177
|
font-weight: 700;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
.typography__system-
|
|
180
|
+
.typography__system-large_1x9yf {
|
|
181
181
|
font-size: 40px;
|
|
182
182
|
line-height: 48px;
|
|
183
183
|
font-weight: 700;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.typography__system-
|
|
186
|
+
.typography__system-medium_1x9yf {
|
|
187
187
|
font-size: 30px;
|
|
188
188
|
line-height: 36px;
|
|
189
189
|
font-weight: 700;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
.typography__system-
|
|
192
|
+
.typography__system-small_1x9yf {
|
|
193
193
|
font-size: 22px;
|
|
194
194
|
line-height: 26px;
|
|
195
195
|
font-weight: 700;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
.typography__system-
|
|
198
|
+
.typography__system-xsmall_1x9yf {
|
|
199
199
|
font-size: 18px;
|
|
200
200
|
line-height: 22px;
|
|
201
201
|
font-weight: 700;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.typography__margins-
|
|
204
|
+
.typography__margins-xlarge_1x9yf {
|
|
205
205
|
margin: 0 0 var(--gap-xl);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.typography__margins-
|
|
208
|
+
.typography__margins-large_1x9yf {
|
|
209
209
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.typography__margins-
|
|
212
|
+
.typography__margins-medium_1x9yf {
|
|
213
213
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
.typography__margins-
|
|
216
|
+
.typography__margins-small_1x9yf {
|
|
217
217
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
.typography__margins-
|
|
220
|
+
.typography__margins-xsmall_1x9yf {
|
|
221
221
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
222
222
|
}
|
|
223
223
|
}
|
package/index.js
CHANGED
|
@@ -6,10 +6,10 @@ require('./text/component.js');
|
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
|
-
require('./colors.module-
|
|
9
|
+
require('./colors.module-15de3c41.js');
|
|
10
10
|
require('./title/index.js');
|
|
11
11
|
require('./title/component.js');
|
|
12
|
-
require('./common.module-
|
|
12
|
+
require('./common.module-f948e7d5.js');
|
|
13
13
|
require('./title-mobile/component.js');
|
|
14
14
|
require('./title-responsive/component.js');
|
|
15
15
|
|
package/modern/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1bc7p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-accent: #ef3124;
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
--color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
|
|
14
14
|
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
15
15
|
--color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
|
|
16
|
+
--color-static-text-accent: #ef3124;
|
|
17
|
+
--color-static-text-primary-dark: #0b1f35;
|
|
18
|
+
--color-static-text-primary-light: #fff;
|
|
19
|
+
--color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
|
|
20
|
+
--color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
|
|
21
|
+
--color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
|
|
22
|
+
--color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
|
|
16
23
|
} :root {
|
|
17
24
|
} :root {
|
|
18
25
|
} :root {
|
|
@@ -26,28 +33,42 @@
|
|
|
26
33
|
} :root {
|
|
27
34
|
} :root {
|
|
28
35
|
} :root {
|
|
29
|
-
} /* colors */ .
|
|
36
|
+
} /* colors */ .typography__tertiary_1m791 {
|
|
30
37
|
color: var(--color-light-text-tertiary);
|
|
31
|
-
} .
|
|
38
|
+
} .typography__disabled_1m791 {
|
|
32
39
|
color: var(--color-light-text-disabled);
|
|
33
|
-
} .
|
|
40
|
+
} .typography__accent_1m791 {
|
|
34
41
|
color: var(--color-light-text-accent);
|
|
35
|
-
} .
|
|
42
|
+
} .typography__primary_1m791 {
|
|
36
43
|
color: var(--color-light-text-primary);
|
|
37
|
-
} .
|
|
44
|
+
} .typography__attention_1m791 {
|
|
38
45
|
color: var(--color-light-text-attention);
|
|
39
|
-
} .
|
|
46
|
+
} .typography__positive_1m791 {
|
|
40
47
|
color: var(--color-light-text-positive);
|
|
41
|
-
} .
|
|
48
|
+
} .typography__secondary_1m791 {
|
|
42
49
|
color: var(--color-light-text-secondary);
|
|
43
|
-
} .typography__tertiary-
|
|
50
|
+
} .typography__tertiary-inverted_1m791 {
|
|
44
51
|
color: var(--color-light-text-tertiary-inverted);
|
|
45
|
-
} .typography__primary-
|
|
52
|
+
} .typography__primary-inverted_1m791 {
|
|
46
53
|
color: var(--color-light-text-primary-inverted);
|
|
47
|
-
} .typography__secondary-
|
|
54
|
+
} .typography__secondary-inverted_1m791 {
|
|
48
55
|
color: var(--color-light-text-secondary-inverted);
|
|
49
|
-
} .
|
|
56
|
+
} .typography__link_1m791 {
|
|
50
57
|
color: var(--color-light-text-link);
|
|
51
|
-
} .
|
|
58
|
+
} .typography__negative_1m791 {
|
|
52
59
|
color: var(--color-light-text-negative);
|
|
60
|
+
} .typography__static-primary-light_1m791 {
|
|
61
|
+
color: var(--color-static-text-primary-light);
|
|
62
|
+
} .typography__static-secondary-light_1m791 {
|
|
63
|
+
color: var(--color-static-text-secondary-light);
|
|
64
|
+
} .typography__static-tertiary-light_1m791 {
|
|
65
|
+
color: var(--color-static-text-tertiary-light);
|
|
66
|
+
} .typography__static-primary-dark_1m791 {
|
|
67
|
+
color: var(--color-static-text-primary-dark);
|
|
68
|
+
} .typography__static-secondary-dark_1m791 {
|
|
69
|
+
color: var(--color-static-text-secondary-dark);
|
|
70
|
+
} .typography__static-tertiary-dark_1m791 {
|
|
71
|
+
color: var(--color-static-text-tertiary-dark);
|
|
72
|
+
} .typography__static-accent_1m791 {
|
|
73
|
+
color: var(--color-static-text-accent);
|
|
53
74
|
}
|
package/modern/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative"];
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
2
|
type Color = typeof colors[number];
|
|
3
3
|
export { colors, Color };
|
package/modern/colors.js
CHANGED
|
@@ -11,6 +11,13 @@ const colors = [
|
|
|
11
11
|
'secondary-inverted',
|
|
12
12
|
'link',
|
|
13
13
|
'negative',
|
|
14
|
+
'static-primary-light',
|
|
15
|
+
'static-secondary-light',
|
|
16
|
+
'static-tertiary-light',
|
|
17
|
+
'static-primary-dark',
|
|
18
|
+
'static-secondary-dark',
|
|
19
|
+
'static-tertiary-dark',
|
|
20
|
+
'static-accent',
|
|
14
21
|
];
|
|
15
22
|
|
|
16
23
|
export { colors };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const colors = {"tertiary":"typography__tertiary_1m791","disabled":"typography__disabled_1m791","accent":"typography__accent_1m791","primary":"typography__primary_1m791","attention":"typography__attention_1m791","positive":"typography__positive_1m791","secondary":"typography__secondary_1m791","tertiary-inverted":"typography__tertiary-inverted_1m791","primary-inverted":"typography__primary-inverted_1m791","secondary-inverted":"typography__secondary-inverted_1m791","link":"typography__link_1m791","negative":"typography__negative_1m791","static-primary-light":"typography__static-primary-light_1m791","static-secondary-light":"typography__static-secondary-light_1m791","static-tertiary-light":"typography__static-tertiary-light_1m791","static-primary-dark":"typography__static-primary-dark_1m791","static-secondary-dark":"typography__static-secondary-dark_1m791","static-tertiary-dark":"typography__static-tertiary-dark_1m791","static-accent":"typography__static-accent_1m791"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|
package/modern/component.js
CHANGED
|
@@ -4,9 +4,9 @@ import { TitleMobile } from './title-mobile/component.js';
|
|
|
4
4
|
import { TitleResponsive } from './title-responsive/component.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import './colors.module-
|
|
7
|
+
import './colors.module-c327b974.js';
|
|
8
8
|
import './title/component.js';
|
|
9
|
-
import './common.module-
|
|
9
|
+
import './common.module-41281fe7.js';
|
|
10
10
|
|
|
11
11
|
const Typography = {
|
|
12
12
|
Title,
|
package/modern/index.js
CHANGED
|
@@ -3,9 +3,9 @@ export { typographyPresets } from './presets.js';
|
|
|
3
3
|
import './text/component.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'classnames';
|
|
6
|
-
import './colors.module-
|
|
6
|
+
import './colors.module-c327b974.js';
|
|
7
7
|
import './title/index.js';
|
|
8
8
|
import './title/component.js';
|
|
9
|
-
import './common.module-
|
|
9
|
+
import './common.module-41281fe7.js';
|
|
10
10
|
import './title-mobile/component.js';
|
|
11
11
|
import './title-responsive/component.js';
|
package/modern/text/component.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-c327b974.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"paragraph":"
|
|
5
|
+
const styles = {"paragraph":"typography__paragraph_vffdo","paragraphWithMargins":"typography__paragraphWithMargins_vffdo","primary-large":"typography__primary-large_vffdo","primary-medium":"typography__primary-medium_vffdo","primary-small":"typography__primary-small_vffdo","secondary-large":"typography__secondary-large_vffdo","secondary-medium":"typography__secondary-medium_vffdo","secondary-small":"typography__secondary-small_vffdo","component":"typography__component_vffdo","caps":"typography__caps_vffdo","bold":"typography__bold_vffdo","medium":"typography__medium_vffdo","regular":"typography__regular_vffdo","monospace":"typography__monospace_vffdo","rowLimit1":"typography__rowLimit1_vffdo","rowLimit2":"typography__rowLimit2_vffdo","rowLimit3":"typography__rowLimit3_vffdo"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, defaultMargins = true, color, className, dataTestId, children, rowLimit, ...restProps }, ref) => (React.createElement(Component, { className: cn({
|
package/modern/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1889g */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -17,67 +17,67 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
20
|
-
} .
|
|
20
|
+
} .typography__paragraph_vffdo {
|
|
21
21
|
margin: 0;
|
|
22
22
|
padding: 0;
|
|
23
|
-
} .
|
|
23
|
+
} .typography__paragraphWithMargins_vffdo {
|
|
24
24
|
padding: 0;
|
|
25
25
|
margin: var(--text-paragraph-margin-bottom);
|
|
26
|
-
} .typography__primary-
|
|
26
|
+
} .typography__primary-large_vffdo {
|
|
27
27
|
font-size: 18px;
|
|
28
28
|
line-height: 24px;
|
|
29
29
|
font-weight: 400;
|
|
30
|
-
} .typography__primary-
|
|
30
|
+
} .typography__primary-medium_vffdo {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 24px;
|
|
33
33
|
font-weight: 400;
|
|
34
|
-
} .typography__primary-
|
|
34
|
+
} .typography__primary-small_vffdo {
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
37
|
font-weight: 400;
|
|
38
|
-
} .typography__secondary-
|
|
38
|
+
} .typography__secondary-large_vffdo {
|
|
39
39
|
font-size: 13px;
|
|
40
40
|
line-height: 16px;
|
|
41
41
|
font-weight: 400;
|
|
42
|
-
} .typography__secondary-
|
|
42
|
+
} .typography__secondary-medium_vffdo {
|
|
43
43
|
font-size: 12px;
|
|
44
44
|
line-height: 16px;
|
|
45
45
|
font-weight: 400;
|
|
46
|
-
} .typography__secondary-
|
|
46
|
+
} .typography__secondary-small_vffdo {
|
|
47
47
|
font-size: 11px;
|
|
48
48
|
line-height: 16px;
|
|
49
49
|
font-weight: 400;
|
|
50
|
-
} .
|
|
50
|
+
} .typography__component_vffdo {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 400;
|
|
54
|
-
} .
|
|
54
|
+
} .typography__caps_vffdo {
|
|
55
55
|
font-size: 12px;
|
|
56
56
|
line-height: 16px;
|
|
57
57
|
font-weight: 500;
|
|
58
58
|
letter-spacing: 1.25px;
|
|
59
59
|
text-transform: uppercase;
|
|
60
|
-
} .
|
|
60
|
+
} .typography__bold_vffdo {
|
|
61
61
|
font-weight: bold;
|
|
62
|
-
} .
|
|
62
|
+
} .typography__medium_vffdo {
|
|
63
63
|
font-weight: 500;
|
|
64
|
-
} .
|
|
64
|
+
} .typography__regular_vffdo {
|
|
65
65
|
font-weight: normal;
|
|
66
|
-
} .
|
|
66
|
+
} .typography__monospace_vffdo {
|
|
67
67
|
font-feature-settings: "tnum";
|
|
68
68
|
font-variant-numeric: tabular-nums;
|
|
69
|
-
} .
|
|
69
|
+
} .typography__rowLimit1_vffdo {
|
|
70
70
|
-webkit-line-clamp: 1;
|
|
71
71
|
display: -webkit-box;
|
|
72
72
|
-webkit-box-orient: vertical;
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
word-break: break-all;
|
|
75
|
-
} .
|
|
75
|
+
} .typography__rowLimit2_vffdo {
|
|
76
76
|
-webkit-line-clamp: 2;
|
|
77
77
|
display: -webkit-box;
|
|
78
78
|
-webkit-box-orient: vertical;
|
|
79
79
|
overflow: hidden;
|
|
80
|
-
} .
|
|
80
|
+
} .typography__rowLimit3_vffdo {
|
|
81
81
|
-webkit-line-clamp: 3;
|
|
82
82
|
display: -webkit-box;
|
|
83
83
|
-webkit-box-orient: vertical;
|
package/modern/text/index.js
CHANGED
package/modern/title/common.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 15rx7 */
|
|
2
|
+
.typography__component_a3ydv {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
.typography__component_a3ydv.typography__bold_a3ydv {
|
|
7
7
|
font-weight: bold;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.typography__component_a3ydv.typography__medium_a3ydv {
|
|
10
10
|
font-weight: 500;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.typography__component_a3ydv.typography__regular_a3ydv {
|
|
13
13
|
font-weight: normal;
|
|
14
14
|
}
|
|
@@ -63,7 +63,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
|
|
|
63
63
|
/**
|
|
64
64
|
* Цвет текста
|
|
65
65
|
*/
|
|
66
|
-
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
66
|
+
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* Толщина шрифта
|
|
69
69
|
*/
|
|
@@ -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-c327b974.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, rowLimit, styles, ...restProps }, ref) => (React.createElement(Component, { className: cn(styles.component, className, styles[`${font}-${view}`], defaultMargins && styles[`margins-${view}`], styles[weight], color && colors[color], { [styles[`rowLimit${rowLimit}`]]: rowLimit }), "data-test-id": dataTestId, ref: ref, ...restProps }, children)));
|
|
6
6
|
|