@alfalab/core-components-typography 3.1.0 → 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 +42 -28
- 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 +3 -2
- package/cssm/colors.d.ts +1 -1
- package/cssm/colors.js +7 -0
- package/cssm/colors.module.css +41 -27
- package/cssm/component.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/text/component.js +3 -3
- package/cssm/text/index.js +1 -1
- package/cssm/text/index.module.css +26 -38
- package/cssm/title/component.d.ts +1 -1
- package/cssm/title/component.js +3 -3
- package/cssm/title/index.js +2 -2
- package/cssm/title/index.module.css +26 -40
- package/cssm/title-mobile/component.js +2 -2
- package/cssm/title-mobile/index.js +1 -1
- package/cssm/title-mobile/index.module.css +18 -22
- package/cssm/title-responsive/component.js +2 -2
- package/cssm/title-responsive/index.js +1 -1
- package/cssm/title-responsive/index.module.css +25 -39
- package/esm/colors.css +42 -28
- 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 +3 -2
- package/esm/index.js +3 -2
- package/esm/text/component.js +3 -2
- package/esm/text/index.css +27 -39
- package/esm/text/index.js +2 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +1 -1
- package/esm/title/component.js +2 -1
- package/esm/title/index.css +27 -41
- package/esm/title/index.js +4 -3
- package/esm/title-mobile/component.js +4 -3
- package/esm/title-mobile/index.css +19 -23
- package/esm/title-mobile/index.js +3 -2
- package/esm/title-responsive/component.js +4 -3
- package/esm/title-responsive/index.css +51 -65
- package/esm/title-responsive/index.js +3 -2
- package/index.js +3 -2
- package/modern/colors.css +42 -28
- 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 +27 -39
- 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 +27 -41
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +19 -23
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +3 -3
- package/modern/title-responsive/index.css +51 -65
- package/modern/title-responsive/index.js +2 -2
- package/package.json +3 -2
- package/text/component.js +5 -4
- package/text/index.css +27 -39
- package/text/index.js +2 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +1 -1
- package/title/component.js +4 -3
- package/title/index.css +27 -41
- package/title/index.js +5 -4
- package/title-mobile/component.js +5 -4
- package/title-mobile/index.css +19 -23
- package/title-mobile/index.js +3 -2
- package/title-responsive/component.js +5 -4
- package/title-responsive/index.css +51 -65
- package/title-responsive/index.js +3 -2
- package/colors.module-bc993287.d.ts +0 -36
- package/colors.module-bc993287.js +0 -46
- package/common.module-0a9ad0fb.js +0 -6
- package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
- package/cssm/tslib.es6-bbd6cd2a.js +0 -42
- package/esm/colors.module-42065957.d.ts +0 -36
- package/esm/colors.module-42065957.js +0 -43
- package/esm/common.module-cc423fc9.js +0 -4
- package/modern/colors.module-cbb33ea7.js +0 -4
- package/modern/common.module-13ae7781.js +0 -4
|
@@ -1,151 +1,137 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1n2ge */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-m: 16px;
|
|
12
16
|
--gap-xl: 24px;
|
|
13
17
|
--gap-3xl: 40px;
|
|
14
18
|
--gap-4xl: 48px;
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
19
|
+
} :root {
|
|
17
20
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
18
21
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
19
|
-
}
|
|
20
|
-
/* TODO: поменять медиа-запросы на миксины */
|
|
21
|
-
.typography__styrene-xlarge_39k3n {
|
|
22
|
+
} :root {
|
|
23
|
+
} /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-xlarge_1x9yf {
|
|
22
24
|
font-size: 34px;
|
|
23
25
|
line-height: 40px;
|
|
24
26
|
font-weight: 500;
|
|
25
27
|
font-feature-settings: 'ss01';
|
|
26
28
|
font-family: var(--font-family-styrene);
|
|
27
|
-
}
|
|
28
|
-
.typography__styrene-large_39k3n {
|
|
29
|
+
} .typography__styrene-large_1x9yf {
|
|
29
30
|
font-size: 30px;
|
|
30
31
|
line-height: 36px;
|
|
31
32
|
font-weight: 500;
|
|
32
33
|
font-feature-settings: 'ss01';
|
|
33
34
|
font-family: var(--font-family-styrene);
|
|
34
|
-
}
|
|
35
|
-
.typography__styrene-medium_39k3n {
|
|
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
|
-
}
|
|
42
|
-
.typography__styrene-small_39k3n {
|
|
41
|
+
} .typography__styrene-small_1x9yf {
|
|
43
42
|
font-size: 20px;
|
|
44
43
|
line-height: 28px;
|
|
45
44
|
font-weight: 500;
|
|
46
45
|
font-feature-settings: 'ss01';
|
|
47
46
|
font-family: var(--font-family-styrene);
|
|
48
|
-
}
|
|
49
|
-
.typography__styrene-xsmall_39k3n {
|
|
47
|
+
} .typography__styrene-xsmall_1x9yf {
|
|
50
48
|
font-size: 16px;
|
|
51
49
|
line-height: 20px;
|
|
52
50
|
font-weight: 500;
|
|
53
51
|
font-feature-settings: 'ss01';
|
|
54
52
|
font-family: var(--font-family-styrene);
|
|
55
|
-
}
|
|
56
|
-
.typography__system-xlarge_39k3n {
|
|
53
|
+
} .typography__system-xlarge_1x9yf {
|
|
57
54
|
font-size: 30px;
|
|
58
55
|
line-height: 36px;
|
|
59
56
|
font-weight: 700;
|
|
60
|
-
}
|
|
61
|
-
.typography__system-large_39k3n {
|
|
57
|
+
} .typography__system-large_1x9yf {
|
|
62
58
|
font-size: 22px;
|
|
63
59
|
line-height: 26px;
|
|
64
60
|
font-weight: 700;
|
|
65
|
-
}
|
|
66
|
-
.typography__system-medium_39k3n {
|
|
61
|
+
} .typography__system-medium_1x9yf {
|
|
67
62
|
font-size: 18px;
|
|
68
63
|
line-height: 22px;
|
|
69
64
|
font-weight: 700;
|
|
70
|
-
}
|
|
71
|
-
.typography__system-small_39k3n {
|
|
65
|
+
} .typography__system-small_1x9yf {
|
|
72
66
|
font-size: 18px;
|
|
73
67
|
line-height: 22px;
|
|
74
68
|
font-weight: 700;
|
|
75
|
-
}
|
|
76
|
-
.typography__system-xsmall_39k3n {
|
|
69
|
+
} .typography__system-xsmall_1x9yf {
|
|
77
70
|
font-size: 18px;
|
|
78
71
|
line-height: 22px;
|
|
79
72
|
font-weight: 700;
|
|
80
|
-
}
|
|
81
|
-
.typography__margins-xlarge_39k3n {
|
|
73
|
+
} .typography__margins-xlarge_1x9yf {
|
|
82
74
|
margin: 0 0 var(--gap-xl);
|
|
83
|
-
}
|
|
84
|
-
.typography__margins-large_39k3n {
|
|
75
|
+
} .typography__margins-large_1x9yf {
|
|
85
76
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
86
|
-
}
|
|
87
|
-
.typography__margins-medium_39k3n {
|
|
77
|
+
} .typography__margins-medium_1x9yf {
|
|
88
78
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
89
|
-
}
|
|
90
|
-
.typography__margins-small_39k3n {
|
|
79
|
+
} .typography__margins-small_1x9yf {
|
|
91
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
92
|
-
}
|
|
93
|
-
.typography__margins-xsmall_39k3n {
|
|
81
|
+
} .typography__margins-xsmall_1x9yf {
|
|
94
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.typography__system-xlarge_39k3n {
|
|
83
|
+
} @media screen and (min-width: 600px) {
|
|
84
|
+
.typography__system-xlarge_1x9yf {
|
|
98
85
|
font-size: 40px;
|
|
99
86
|
line-height: 48px;
|
|
100
87
|
font-weight: 700;
|
|
101
88
|
}
|
|
102
89
|
|
|
103
|
-
.typography__system-
|
|
90
|
+
.typography__system-large_1x9yf {
|
|
104
91
|
font-size: 30px;
|
|
105
92
|
line-height: 36px;
|
|
106
93
|
font-weight: 700;
|
|
107
94
|
}
|
|
108
95
|
|
|
109
|
-
.typography__system-
|
|
96
|
+
.typography__system-medium_1x9yf {
|
|
110
97
|
font-size: 22px;
|
|
111
98
|
line-height: 26px;
|
|
112
99
|
font-weight: 700;
|
|
113
100
|
}
|
|
114
101
|
|
|
115
|
-
.typography__system-
|
|
102
|
+
.typography__system-small_1x9yf {
|
|
116
103
|
font-size: 22px;
|
|
117
104
|
line-height: 26px;
|
|
118
105
|
font-weight: 700;
|
|
119
106
|
}
|
|
120
107
|
|
|
121
|
-
.typography__system-
|
|
108
|
+
.typography__system-xsmall_1x9yf {
|
|
122
109
|
font-size: 18px;
|
|
123
110
|
line-height: 22px;
|
|
124
111
|
font-weight: 700;
|
|
125
112
|
}
|
|
126
113
|
|
|
127
|
-
.typography__margins-
|
|
114
|
+
.typography__margins-xlarge_1x9yf {
|
|
128
115
|
margin: 0 0 var(--gap-xl);
|
|
129
116
|
}
|
|
130
117
|
|
|
131
|
-
.typography__margins-
|
|
118
|
+
.typography__margins-large_1x9yf {
|
|
132
119
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
133
120
|
}
|
|
134
121
|
|
|
135
|
-
.typography__margins-
|
|
122
|
+
.typography__margins-medium_1x9yf {
|
|
136
123
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
137
124
|
}
|
|
138
125
|
|
|
139
|
-
.typography__margins-
|
|
126
|
+
.typography__margins-small_1x9yf {
|
|
140
127
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
141
128
|
}
|
|
142
129
|
|
|
143
|
-
.typography__margins-
|
|
130
|
+
.typography__margins-xsmall_1x9yf {
|
|
144
131
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
145
132
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.typography__styrene-xlarge_39k3n {
|
|
133
|
+
} @media screen and (min-width: 1024px) {
|
|
134
|
+
.typography__styrene-xlarge_1x9yf {
|
|
149
135
|
font-size: 48px;
|
|
150
136
|
line-height: 64px;
|
|
151
137
|
font-weight: 500;
|
|
@@ -153,7 +139,7 @@
|
|
|
153
139
|
font-family: var(--font-family-styrene);
|
|
154
140
|
}
|
|
155
141
|
|
|
156
|
-
.typography__styrene-
|
|
142
|
+
.typography__styrene-large_1x9yf {
|
|
157
143
|
font-size: 40px;
|
|
158
144
|
line-height: 48px;
|
|
159
145
|
font-weight: 500;
|
|
@@ -161,7 +147,7 @@
|
|
|
161
147
|
font-family: var(--font-family-styrene);
|
|
162
148
|
}
|
|
163
149
|
|
|
164
|
-
.typography__styrene-
|
|
150
|
+
.typography__styrene-medium_1x9yf {
|
|
165
151
|
font-size: 32px;
|
|
166
152
|
line-height: 40px;
|
|
167
153
|
font-weight: 500;
|
|
@@ -169,7 +155,7 @@
|
|
|
169
155
|
font-family: var(--font-family-styrene);
|
|
170
156
|
}
|
|
171
157
|
|
|
172
|
-
.typography__styrene-
|
|
158
|
+
.typography__styrene-small_1x9yf {
|
|
173
159
|
font-size: 24px;
|
|
174
160
|
line-height: 32px;
|
|
175
161
|
font-weight: 500;
|
|
@@ -177,7 +163,7 @@
|
|
|
177
163
|
font-family: var(--font-family-styrene);
|
|
178
164
|
}
|
|
179
165
|
|
|
180
|
-
.typography__styrene-
|
|
166
|
+
.typography__styrene-xsmall_1x9yf {
|
|
181
167
|
font-size: 20px;
|
|
182
168
|
line-height: 24px;
|
|
183
169
|
font-weight: 500;
|
|
@@ -185,53 +171,53 @@
|
|
|
185
171
|
font-family: var(--font-family-styrene);
|
|
186
172
|
}
|
|
187
173
|
|
|
188
|
-
.typography__system-
|
|
174
|
+
.typography__system-xlarge_1x9yf {
|
|
189
175
|
font-size: 48px;
|
|
190
176
|
line-height: 52px;
|
|
191
177
|
font-weight: 700;
|
|
192
178
|
}
|
|
193
179
|
|
|
194
|
-
.typography__system-
|
|
180
|
+
.typography__system-large_1x9yf {
|
|
195
181
|
font-size: 40px;
|
|
196
182
|
line-height: 48px;
|
|
197
183
|
font-weight: 700;
|
|
198
184
|
}
|
|
199
185
|
|
|
200
|
-
.typography__system-
|
|
186
|
+
.typography__system-medium_1x9yf {
|
|
201
187
|
font-size: 30px;
|
|
202
188
|
line-height: 36px;
|
|
203
189
|
font-weight: 700;
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
.typography__system-
|
|
192
|
+
.typography__system-small_1x9yf {
|
|
207
193
|
font-size: 22px;
|
|
208
194
|
line-height: 26px;
|
|
209
195
|
font-weight: 700;
|
|
210
196
|
}
|
|
211
197
|
|
|
212
|
-
.typography__system-
|
|
198
|
+
.typography__system-xsmall_1x9yf {
|
|
213
199
|
font-size: 18px;
|
|
214
200
|
line-height: 22px;
|
|
215
201
|
font-weight: 700;
|
|
216
202
|
}
|
|
217
203
|
|
|
218
|
-
.typography__margins-
|
|
204
|
+
.typography__margins-xlarge_1x9yf {
|
|
219
205
|
margin: 0 0 var(--gap-xl);
|
|
220
206
|
}
|
|
221
207
|
|
|
222
|
-
.typography__margins-
|
|
208
|
+
.typography__margins-large_1x9yf {
|
|
223
209
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
224
210
|
}
|
|
225
211
|
|
|
226
|
-
.typography__margins-
|
|
212
|
+
.typography__margins-medium_1x9yf {
|
|
227
213
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
228
214
|
}
|
|
229
215
|
|
|
230
|
-
.typography__margins-
|
|
216
|
+
.typography__margins-small_1x9yf {
|
|
231
217
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
232
218
|
}
|
|
233
219
|
|
|
234
|
-
.typography__margins-
|
|
220
|
+
.typography__margins-xsmall_1x9yf {
|
|
235
221
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
236
222
|
}
|
|
237
223
|
}
|
|
@@ -2,5 +2,5 @@ export { TitleResponsive } from './component.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../title/component.js';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../colors.module-
|
|
6
|
-
import '../common.module-
|
|
5
|
+
import '../colors.module-c327b974.js';
|
|
6
|
+
import '../common.module-41281fe7.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-typography",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"classnames": "^2.3.1"
|
|
20
|
+
"classnames": "^2.3.1",
|
|
21
|
+
"tslib": "^2.4.0"
|
|
21
22
|
}
|
|
22
23
|
}
|
package/text/component.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
|
+
var colors_module = require('../colors.module-15de3c41.js');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
9
|
|
|
9
10
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
11
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
12
|
|
|
12
|
-
var styles = {"paragraph":"
|
|
13
|
+
var 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"};
|
|
13
14
|
require('./index.css')
|
|
14
15
|
|
|
15
16
|
var Text = React.forwardRef(function (_a, ref) {
|
|
16
17
|
var _b;
|
|
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, rowLimit = _a.rowLimit, restProps =
|
|
18
|
-
return (React__default.default.createElement(Component,
|
|
18
|
+
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, rowLimit = _a.rowLimit, restProps = tslib.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit"]);
|
|
19
|
+
return (React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default((_b = {},
|
|
19
20
|
_b[styles.paragraph] = Component === 'p' && !defaultMargins,
|
|
20
21
|
_b[styles.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
21
22
|
_b[styles.monospace] = monospaceNumbers,
|
package/text/index.css
CHANGED
|
@@ -1,95 +1,83 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1889g */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-s: 12px;
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
|
-
}
|
|
16
|
-
.typography__paragraph_9xfoj {
|
|
20
|
+
} .typography__paragraph_vffdo {
|
|
17
21
|
margin: 0;
|
|
18
22
|
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
.typography__paragraphWithMargins_9xfoj {
|
|
23
|
+
} .typography__paragraphWithMargins_vffdo {
|
|
21
24
|
padding: 0;
|
|
22
25
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
|
-
}
|
|
24
|
-
.typography__primary-large_9xfoj {
|
|
26
|
+
} .typography__primary-large_vffdo {
|
|
25
27
|
font-size: 18px;
|
|
26
28
|
line-height: 24px;
|
|
27
29
|
font-weight: 400;
|
|
28
|
-
}
|
|
29
|
-
.typography__primary-medium_9xfoj {
|
|
30
|
+
} .typography__primary-medium_vffdo {
|
|
30
31
|
font-size: 16px;
|
|
31
32
|
line-height: 24px;
|
|
32
33
|
font-weight: 400;
|
|
33
|
-
}
|
|
34
|
-
.typography__primary-small_9xfoj {
|
|
34
|
+
} .typography__primary-small_vffdo {
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
37
|
font-weight: 400;
|
|
38
|
-
}
|
|
39
|
-
.typography__secondary-large_9xfoj {
|
|
38
|
+
} .typography__secondary-large_vffdo {
|
|
40
39
|
font-size: 13px;
|
|
41
40
|
line-height: 16px;
|
|
42
41
|
font-weight: 400;
|
|
43
|
-
}
|
|
44
|
-
.typography__secondary-medium_9xfoj {
|
|
42
|
+
} .typography__secondary-medium_vffdo {
|
|
45
43
|
font-size: 12px;
|
|
46
44
|
line-height: 16px;
|
|
47
45
|
font-weight: 400;
|
|
48
|
-
}
|
|
49
|
-
.typography__secondary-small_9xfoj {
|
|
46
|
+
} .typography__secondary-small_vffdo {
|
|
50
47
|
font-size: 11px;
|
|
51
48
|
line-height: 16px;
|
|
52
49
|
font-weight: 400;
|
|
53
|
-
}
|
|
54
|
-
.typography__component_9xfoj {
|
|
50
|
+
} .typography__component_vffdo {
|
|
55
51
|
font-size: 16px;
|
|
56
52
|
line-height: 20px;
|
|
57
53
|
font-weight: 400;
|
|
58
|
-
}
|
|
59
|
-
.typography__caps_9xfoj {
|
|
54
|
+
} .typography__caps_vffdo {
|
|
60
55
|
font-size: 12px;
|
|
61
56
|
line-height: 16px;
|
|
62
57
|
font-weight: 500;
|
|
63
58
|
letter-spacing: 1.25px;
|
|
64
59
|
text-transform: uppercase;
|
|
65
|
-
}
|
|
66
|
-
.typography__bold_9xfoj {
|
|
60
|
+
} .typography__bold_vffdo {
|
|
67
61
|
font-weight: bold;
|
|
68
|
-
}
|
|
69
|
-
.typography__medium_9xfoj {
|
|
62
|
+
} .typography__medium_vffdo {
|
|
70
63
|
font-weight: 500;
|
|
71
|
-
}
|
|
72
|
-
.typography__regular_9xfoj {
|
|
64
|
+
} .typography__regular_vffdo {
|
|
73
65
|
font-weight: normal;
|
|
74
|
-
}
|
|
75
|
-
.typography__monospace_9xfoj {
|
|
66
|
+
} .typography__monospace_vffdo {
|
|
76
67
|
font-feature-settings: "tnum";
|
|
77
68
|
font-variant-numeric: tabular-nums;
|
|
78
|
-
}
|
|
79
|
-
.typography__rowLimit1_9xfoj {
|
|
69
|
+
} .typography__rowLimit1_vffdo {
|
|
80
70
|
-webkit-line-clamp: 1;
|
|
81
71
|
display: -webkit-box;
|
|
82
72
|
-webkit-box-orient: vertical;
|
|
83
73
|
overflow: hidden;
|
|
84
74
|
word-break: break-all;
|
|
85
|
-
}
|
|
86
|
-
.typography__rowLimit2_9xfoj {
|
|
75
|
+
} .typography__rowLimit2_vffdo {
|
|
87
76
|
-webkit-line-clamp: 2;
|
|
88
77
|
display: -webkit-box;
|
|
89
78
|
-webkit-box-orient: vertical;
|
|
90
79
|
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
.typography__rowLimit3_9xfoj {
|
|
80
|
+
} .typography__rowLimit3_vffdo {
|
|
93
81
|
-webkit-line-clamp: 3;
|
|
94
82
|
display: -webkit-box;
|
|
95
83
|
-webkit-box-orient: vertical;
|
package/text/index.js
CHANGED
package/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
|
}
|
package/title/component.d.ts
CHANGED
|
@@ -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
|
*/
|
package/title/component.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
|
+
var colors_module = require('../colors.module-15de3c41.js');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
9
|
|
|
@@ -11,8 +12,8 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
|
11
12
|
|
|
12
13
|
var Title = React.forwardRef(function (_a, ref) {
|
|
13
14
|
var _b;
|
|
14
|
-
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, _f = _a.weight, weight = _f === void 0 ? font === 'styrene' ? 'medium' : 'bold' : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, restProps =
|
|
15
|
-
return (React__default.default.createElement(Component,
|
|
15
|
+
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, _f = _a.weight, weight = _f === void 0 ? font === 'styrene' ? 'medium' : 'bold' : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, restProps = tslib.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles"]);
|
|
16
|
+
return (React__default.default.createElement(Component, tslib.__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], (_b = {}, _b[styles["rowLimit".concat(rowLimit)]] = rowLimit, _b)), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
16
17
|
});
|
|
17
18
|
|
|
18
19
|
exports.Title = Title;
|
package/title/index.css
CHANGED
|
@@ -1,111 +1,97 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1261a */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-m: 16px;
|
|
12
16
|
--gap-xl: 24px;
|
|
13
17
|
--gap-3xl: 40px;
|
|
14
18
|
--gap-4xl: 48px;
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
19
|
+
} :root {
|
|
17
20
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
18
21
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
19
|
-
}
|
|
20
|
-
.typography__styrene-
|
|
22
|
+
} :root {
|
|
23
|
+
} .typography__styrene-xlarge_1ixkt {
|
|
21
24
|
font-size: 48px;
|
|
22
25
|
line-height: 64px;
|
|
23
26
|
font-weight: 500;
|
|
24
27
|
font-feature-settings: 'ss01';
|
|
25
28
|
font-family: var(--font-family-styrene);
|
|
26
|
-
}
|
|
27
|
-
.typography__styrene-large_17h0l {
|
|
29
|
+
} .typography__styrene-large_1ixkt {
|
|
28
30
|
font-size: 40px;
|
|
29
31
|
line-height: 48px;
|
|
30
32
|
font-weight: 500;
|
|
31
33
|
font-feature-settings: 'ss01';
|
|
32
34
|
font-family: var(--font-family-styrene);
|
|
33
|
-
}
|
|
34
|
-
.typography__styrene-medium_17h0l {
|
|
35
|
+
} .typography__styrene-medium_1ixkt {
|
|
35
36
|
font-size: 32px;
|
|
36
37
|
line-height: 40px;
|
|
37
38
|
font-weight: 500;
|
|
38
39
|
font-feature-settings: 'ss01';
|
|
39
40
|
font-family: var(--font-family-styrene);
|
|
40
|
-
}
|
|
41
|
-
.typography__styrene-small_17h0l {
|
|
41
|
+
} .typography__styrene-small_1ixkt {
|
|
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
|
-
}
|
|
48
|
-
.typography__styrene-xsmall_17h0l {
|
|
47
|
+
} .typography__styrene-xsmall_1ixkt {
|
|
49
48
|
font-size: 20px;
|
|
50
49
|
line-height: 24px;
|
|
51
50
|
font-weight: 500;
|
|
52
51
|
font-feature-settings: 'ss01';
|
|
53
52
|
font-family: var(--font-family-styrene);
|
|
54
|
-
}
|
|
55
|
-
.typography__system-xlarge_17h0l {
|
|
53
|
+
} .typography__system-xlarge_1ixkt {
|
|
56
54
|
font-size: 48px;
|
|
57
55
|
line-height: 52px;
|
|
58
56
|
font-weight: 700;
|
|
59
|
-
}
|
|
60
|
-
.typography__system-large_17h0l {
|
|
57
|
+
} .typography__system-large_1ixkt {
|
|
61
58
|
font-size: 40px;
|
|
62
59
|
line-height: 48px;
|
|
63
60
|
font-weight: 700;
|
|
64
|
-
}
|
|
65
|
-
.typography__system-medium_17h0l {
|
|
61
|
+
} .typography__system-medium_1ixkt {
|
|
66
62
|
font-size: 30px;
|
|
67
63
|
line-height: 36px;
|
|
68
64
|
font-weight: 700;
|
|
69
|
-
}
|
|
70
|
-
.typography__system-small_17h0l {
|
|
65
|
+
} .typography__system-small_1ixkt {
|
|
71
66
|
font-size: 22px;
|
|
72
67
|
line-height: 26px;
|
|
73
68
|
font-weight: 700;
|
|
74
|
-
}
|
|
75
|
-
.typography__system-xsmall_17h0l {
|
|
69
|
+
} .typography__system-xsmall_1ixkt {
|
|
76
70
|
font-size: 18px;
|
|
77
71
|
line-height: 22px;
|
|
78
72
|
font-weight: 700;
|
|
79
|
-
}
|
|
80
|
-
.typography__margins-xlarge_17h0l {
|
|
73
|
+
} .typography__margins-xlarge_1ixkt {
|
|
81
74
|
margin: 0 0 var(--gap-xl);
|
|
82
|
-
}
|
|
83
|
-
.typography__margins-large_17h0l {
|
|
75
|
+
} .typography__margins-large_1ixkt {
|
|
84
76
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
85
|
-
}
|
|
86
|
-
.typography__margins-medium_17h0l {
|
|
77
|
+
} .typography__margins-medium_1ixkt {
|
|
87
78
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
88
|
-
}
|
|
89
|
-
.typography__margins-small_17h0l {
|
|
79
|
+
} .typography__margins-small_1ixkt {
|
|
90
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
91
|
-
}
|
|
92
|
-
.typography__margins-xsmall_17h0l {
|
|
81
|
+
} .typography__margins-xsmall_1ixkt {
|
|
93
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
|
-
}
|
|
95
|
-
.typography__rowLimit1_17h0l {
|
|
83
|
+
} .typography__rowLimit1_1ixkt {
|
|
96
84
|
-webkit-line-clamp: 1;
|
|
97
85
|
display: -webkit-box;
|
|
98
86
|
-webkit-box-orient: vertical;
|
|
99
87
|
overflow: hidden;
|
|
100
88
|
word-break: break-all;
|
|
101
|
-
}
|
|
102
|
-
.typography__rowLimit2_17h0l {
|
|
89
|
+
} .typography__rowLimit2_1ixkt {
|
|
103
90
|
-webkit-line-clamp: 2;
|
|
104
91
|
display: -webkit-box;
|
|
105
92
|
-webkit-box-orient: vertical;
|
|
106
93
|
overflow: hidden;
|
|
107
|
-
}
|
|
108
|
-
.typography__rowLimit3_17h0l {
|
|
94
|
+
} .typography__rowLimit3_1ixkt {
|
|
109
95
|
-webkit-line-clamp: 3;
|
|
110
96
|
display: -webkit-box;
|
|
111
97
|
-webkit-box-orient: vertical;
|