@alfalab/core-components-typography 3.0.2 → 3.0.3
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 +18 -18
- package/{colors.module-2cc8e807.d.ts → colors.module-2ba58573.d.ts} +8 -4
- package/{colors.module-2cc8e807.js → colors.module-2ba58573.js} +2 -2
- package/common.module-c7b5f1ff.js +6 -0
- package/component.d.ts +1 -1
- package/component.js +4 -4
- package/cssm/colors.module.css +5 -5
- package/cssm/component.d.ts +1 -1
- package/cssm/component.js +5 -5
- package/cssm/index.d.ts +3 -3
- package/cssm/index.js +5 -5
- package/cssm/text/component.d.ts +3 -3
- package/cssm/text/component.js +1 -1
- package/cssm/text/index.js +1 -1
- package/cssm/title/component.d.ts +4 -4
- package/cssm/title/component.js +1 -1
- package/cssm/title/index.js +7 -8
- package/cssm/title-mobile/component.js +1 -1
- package/cssm/title-mobile/index.js +1 -1
- package/cssm/title-responsive/component.js +1 -1
- package/cssm/title-responsive/index.js +1 -1
- package/{esm/colors.module-6065797e.d.ts → cssm/tslib.es6-9682e485.d.ts} +8 -4
- package/cssm/{tslib.es6-ce870b46.js → tslib.es6-9682e485.js} +1 -1
- package/esm/colors.css +18 -18
- package/{cssm/tslib.es6-ce870b46.d.ts → esm/colors.module-b694324b.d.ts} +8 -4
- package/esm/{colors.module-6065797e.js → colors.module-b694324b.js} +2 -2
- package/esm/common.module-6a9b5b80.js +4 -0
- package/esm/component.d.ts +1 -1
- package/esm/component.js +4 -4
- package/esm/index.d.ts +3 -3
- package/esm/index.js +4 -4
- package/esm/text/component.d.ts +3 -3
- package/esm/text/component.js +2 -2
- package/esm/text/index.css +14 -14
- package/esm/text/index.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +4 -4
- package/esm/title/component.js +1 -1
- package/esm/title/index.css +19 -19
- package/esm/title/index.js +9 -10
- package/esm/title-mobile/component.js +3 -3
- package/esm/title-mobile/index.css +14 -14
- 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.d.ts +3 -3
- package/index.js +4 -4
- package/modern/colors.css +18 -18
- package/modern/colors.module-3475616e.js +4 -0
- package/modern/common.module-6a9b5b80.js +4 -0
- package/modern/component.d.ts +1 -1
- package/modern/component.js +4 -4
- package/modern/index.d.ts +3 -3
- package/modern/index.js +4 -4
- package/modern/text/component.d.ts +3 -3
- package/modern/text/component.js +3 -3
- package/modern/text/index.css +14 -14
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +4 -4
- package/modern/title/component.js +2 -2
- package/modern/title/index.css +19 -19
- package/modern/title/index.js +9 -10
- package/modern/title-mobile/component.js +9 -10
- package/modern/title-mobile/index.css +14 -14
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +9 -10
- package/modern/title-responsive/index.css +41 -41
- package/modern/title-responsive/index.js +2 -2
- package/package.json +1 -1
- package/text/component.d.ts +3 -3
- package/text/component.js +2 -2
- package/text/index.css +14 -14
- package/text/index.js +1 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +4 -4
- package/title/component.js +1 -1
- package/title/index.css +19 -19
- package/title/index.js +9 -10
- package/title-mobile/component.js +3 -3
- package/title-mobile/index.css +14 -14
- 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/common.module-0606ddd8.js +0 -6
- package/esm/common.module-879f9853.js +0 -4
- package/modern/colors.module-4a1750d9.js +0 -4
- package/modern/common.module-879f9853.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b2zs */
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
57
57
|
font-size: 30px;
|
|
58
58
|
line-height: 36px;
|
|
59
59
|
font-weight: 700;
|
|
60
60
|
}
|
|
61
|
-
.typography__system-
|
|
61
|
+
.typography__system-large_kqyhi {
|
|
62
62
|
font-size: 22px;
|
|
63
63
|
line-height: 26px;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
}
|
|
66
|
-
.typography__system-
|
|
66
|
+
.typography__system-medium_kqyhi {
|
|
67
67
|
font-size: 18px;
|
|
68
68
|
line-height: 22px;
|
|
69
69
|
font-weight: 700;
|
|
70
70
|
}
|
|
71
|
-
.typography__system-
|
|
71
|
+
.typography__system-small_kqyhi {
|
|
72
72
|
font-size: 18px;
|
|
73
73
|
line-height: 22px;
|
|
74
74
|
font-weight: 700;
|
|
75
75
|
}
|
|
76
|
-
.typography__system-
|
|
76
|
+
.typography__system-xsmall_kqyhi {
|
|
77
77
|
font-size: 18px;
|
|
78
78
|
line-height: 22px;
|
|
79
79
|
font-weight: 700;
|
|
80
80
|
}
|
|
81
|
-
.typography__margins-
|
|
81
|
+
.typography__margins-xlarge_kqyhi {
|
|
82
82
|
margin: 0 0 var(--gap-xl);
|
|
83
83
|
}
|
|
84
|
-
.typography__margins-
|
|
84
|
+
.typography__margins-large_kqyhi {
|
|
85
85
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
86
86
|
}
|
|
87
|
-
.typography__margins-
|
|
87
|
+
.typography__margins-medium_kqyhi {
|
|
88
88
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
89
89
|
}
|
|
90
|
-
.typography__margins-
|
|
90
|
+
.typography__margins-small_kqyhi {
|
|
91
91
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
92
92
|
}
|
|
93
|
-
.typography__margins-
|
|
93
|
+
.typography__margins-xsmall_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
128
128
|
margin: 0 0 var(--gap-xl);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.typography__margins-
|
|
131
|
+
.typography__margins-large_kqyhi {
|
|
132
132
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.typography__margins-
|
|
135
|
+
.typography__margins-medium_kqyhi {
|
|
136
136
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.typography__margins-
|
|
139
|
+
.typography__margins-small_kqyhi {
|
|
140
140
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.typography__margins-
|
|
143
|
+
.typography__margins-xsmall_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
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_kqyhi {
|
|
219
219
|
margin: 0 0 var(--gap-xl);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
.typography__margins-
|
|
222
|
+
.typography__margins-large_kqyhi {
|
|
223
223
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.typography__margins-
|
|
226
|
+
.typography__margins-medium_kqyhi {
|
|
227
227
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.typography__margins-
|
|
230
|
+
.typography__margins-small_kqyhi {
|
|
231
231
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.typography__margins-
|
|
234
|
+
.typography__margins-xsmall_kqyhi {
|
|
235
235
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../colors.module-
|
|
1
|
+
import '../colors.module-b694324b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../title/component.js';
|
|
5
|
-
import '../common.module-
|
|
5
|
+
import '../common.module-6a9b5b80.js';
|
|
6
6
|
export { TitleResponsive } from './component.js';
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./component";
|
|
2
2
|
export * from "./presets";
|
|
3
|
-
export { TitleProps } from "./title/index";
|
|
4
|
-
export { TextProps } from "./text/index";
|
|
5
|
-
export { Color } from "./colors";
|
|
3
|
+
export type { TitleProps } from "./title/index";
|
|
4
|
+
export type { TextProps } from "./text/index";
|
|
5
|
+
export type { Color } from "./colors";
|
package/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./colors.module-
|
|
5
|
+
require('./colors.module-2ba58573.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
+
require('./text/component.js');
|
|
8
9
|
require('./title/component.js');
|
|
9
|
-
require('./common.module-
|
|
10
|
+
require('./common.module-c7b5f1ff.js');
|
|
10
11
|
require('./title/index.js');
|
|
11
|
-
require('./text/component.js');
|
|
12
|
-
require('./title-responsive/component.js');
|
|
13
12
|
require('./title-mobile/component.js');
|
|
13
|
+
require('./title-responsive/component.js');
|
|
14
14
|
var component = require('./component.js');
|
|
15
15
|
var presets = require('./presets.js');
|
|
16
16
|
|
package/modern/colors.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ba9o */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-accent: #ef3124;
|
|
4
4
|
--color-light-text-attention: #de6a00;
|
|
5
|
-
--color-light-text-disabled:
|
|
5
|
+
--color-light-text-disabled: rgba(11, 31, 53, 0.15);
|
|
6
6
|
--color-light-text-link: #007aff;
|
|
7
7
|
--color-light-text-negative: #d91d0b;
|
|
8
8
|
--color-light-text-positive: #13a463;
|
|
9
9
|
--color-light-text-primary: #0b1f35;
|
|
10
10
|
--color-light-text-primary-inverted: #fff;
|
|
11
|
-
--color-light-text-secondary:
|
|
12
|
-
--color-light-text-secondary-inverted:
|
|
13
|
-
--color-light-text-tertiary:
|
|
14
|
-
--color-light-text-tertiary-inverted:
|
|
11
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
12
|
+
--color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
|
|
13
|
+
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
14
|
+
--color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
17
|
|
|
@@ -22,39 +22,39 @@
|
|
|
22
22
|
/* Hard up */
|
|
23
23
|
}
|
|
24
24
|
/* colors */
|
|
25
|
-
.
|
|
25
|
+
.typography__tertiary_1fdvu {
|
|
26
26
|
color: var(--color-light-text-tertiary);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.typography__disabled_1fdvu {
|
|
29
29
|
color: var(--color-light-text-disabled);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__accent_1fdvu {
|
|
32
32
|
color: var(--color-light-text-accent);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.typography__primary_1fdvu {
|
|
35
35
|
color: var(--color-light-text-primary);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.typography__attention_1fdvu {
|
|
38
38
|
color: var(--color-light-text-attention);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.typography__positive_1fdvu {
|
|
41
41
|
color: var(--color-light-text-positive);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.typography__secondary_1fdvu {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.typography__tertiary-
|
|
46
|
+
.typography__tertiary-inverted_1fdvu {
|
|
47
47
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
48
|
}
|
|
49
|
-
.typography__primary-
|
|
49
|
+
.typography__primary-inverted_1fdvu {
|
|
50
50
|
color: var(--color-light-text-primary-inverted);
|
|
51
51
|
}
|
|
52
|
-
.typography__secondary-
|
|
52
|
+
.typography__secondary-inverted_1fdvu {
|
|
53
53
|
color: var(--color-light-text-secondary-inverted);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__link_1fdvu {
|
|
56
56
|
color: var(--color-light-text-link);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.typography__negative_1fdvu {
|
|
59
59
|
color: var(--color-light-text-negative);
|
|
60
60
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var colors = {"tertiary":"typography__tertiary_1fdvu","disabled":"typography__disabled_1fdvu","accent":"typography__accent_1fdvu","primary":"typography__primary_1fdvu","attention":"typography__attention_1fdvu","positive":"typography__positive_1fdvu","secondary":"typography__secondary_1fdvu","tertiary-inverted":"typography__tertiary-inverted_1fdvu","primary-inverted":"typography__primary-inverted_1fdvu","secondary-inverted":"typography__secondary-inverted_1fdvu","link":"typography__link_1fdvu","negative":"typography__negative_1fdvu"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|
package/modern/component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { TitleProps } from "./title/index";
|
|
3
2
|
import { TextProps } from "./text/index";
|
|
3
|
+
import { TitleProps } from "./title/index";
|
|
4
4
|
import { TitleMobileProps } from "./title-mobile/index";
|
|
5
5
|
declare const Typography: {
|
|
6
6
|
Title: FC<TitleProps>;
|
package/modern/component.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import './colors.module-
|
|
3
|
+
import './colors.module-3475616e.js';
|
|
4
|
+
import { Text } from './text/component.js';
|
|
4
5
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
6
|
+
import './common.module-6a9b5b80.js';
|
|
6
7
|
import { Title } from './title/index.js';
|
|
7
|
-
import { Text } from './text/component.js';
|
|
8
|
-
import { TitleResponsive } from './title-responsive/component.js';
|
|
9
8
|
import { TitleMobile } from './title-mobile/component.js';
|
|
9
|
+
import { TitleResponsive } from './title-responsive/component.js';
|
|
10
10
|
|
|
11
11
|
const Typography = {
|
|
12
12
|
Title,
|
package/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./component";
|
|
2
2
|
export * from "./presets";
|
|
3
|
-
export { TitleProps } from "./title/index";
|
|
4
|
-
export { TextProps } from "./text/index";
|
|
5
|
-
export { Color } from "./colors";
|
|
3
|
+
export type { TitleProps } from "./title/index";
|
|
4
|
+
export type { TextProps } from "./text/index";
|
|
5
|
+
export type { Color } from "./colors";
|
package/modern/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import './colors.module-
|
|
3
|
+
import './colors.module-3475616e.js';
|
|
4
|
+
import './text/component.js';
|
|
4
5
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
6
|
+
import './common.module-6a9b5b80.js';
|
|
6
7
|
import './title/index.js';
|
|
7
|
-
import './text/component.js';
|
|
8
|
-
import './title-responsive/component.js';
|
|
9
8
|
import './title-mobile/component.js';
|
|
9
|
+
import './title-responsive/component.js';
|
|
10
10
|
export { Typography } from './component.js';
|
|
11
11
|
export { typographyPresets } from './presets.js';
|
|
@@ -38,7 +38,7 @@ type TextProps = Omit<NativeProps, 'color'> & {
|
|
|
38
38
|
children?: React.ReactNode;
|
|
39
39
|
};
|
|
40
40
|
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
41
|
-
declare const Text: React.ForwardRefExoticComponent<
|
|
41
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
42
42
|
/**
|
|
43
43
|
* [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
|
|
44
44
|
*/
|
|
@@ -50,7 +50,7 @@ declare const Text: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultCh
|
|
|
50
50
|
/**
|
|
51
51
|
* Толщина шрифта
|
|
52
52
|
*/
|
|
53
|
-
weight?: "
|
|
53
|
+
weight?: "regular" | "medium" | "bold" | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Делает цифры моноширинными
|
|
56
56
|
*/
|
|
@@ -58,7 +58,7 @@ declare const Text: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultCh
|
|
|
58
58
|
/**
|
|
59
59
|
* HTML тег
|
|
60
60
|
*/
|
|
61
|
-
tag?: "
|
|
61
|
+
tag?: "p" | "span" | "div" | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Css-класс для стилизации (native prop)
|
|
64
64
|
*/
|
package/modern/text/component.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-3475616e.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"paragraph":"
|
|
5
|
+
var styles = {"paragraph":"typography__paragraph_reu2d","primary-large":"typography__primary-large_reu2d","primary-medium":"typography__primary-medium_reu2d","primary-small":"typography__primary-small_reu2d","secondary-large":"typography__secondary-large_reu2d","secondary-medium":"typography__secondary-medium_reu2d","secondary-small":"typography__secondary-small_reu2d","component":"typography__component_reu2d","caps":"typography__caps_reu2d","bold":"typography__bold_reu2d","medium":"typography__medium_reu2d","regular":"typography__regular_reu2d","monospace":"typography__monospace_reu2d"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
|
-
const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, color, className, dataTestId, children, ...restProps }, ref) => (React.createElement(Component,
|
|
8
|
+
const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, color, className, dataTestId, children, ...restProps }, ref) => (React.createElement(Component, { className: cn({ [styles.paragraph]: Component === 'p', [styles.monospace]: monospaceNumbers }, className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref, ...restProps }, children)));
|
|
9
9
|
|
|
10
10
|
export { Text };
|
package/modern/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o9vp */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -13,62 +13,62 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.typography__paragraph_reu2d {
|
|
17
17
|
margin: var(--text-paragraph-margin-bottom);
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
|
-
.typography__primary-
|
|
20
|
+
.typography__primary-large_reu2d {
|
|
21
21
|
font-size: 18px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
24
|
}
|
|
25
|
-
.typography__primary-
|
|
25
|
+
.typography__primary-medium_reu2d {
|
|
26
26
|
font-size: 16px;
|
|
27
27
|
line-height: 24px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
}
|
|
30
|
-
.typography__primary-
|
|
30
|
+
.typography__primary-small_reu2d {
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
}
|
|
35
|
-
.typography__secondary-
|
|
35
|
+
.typography__secondary-large_reu2d {
|
|
36
36
|
font-size: 13px;
|
|
37
37
|
line-height: 16px;
|
|
38
38
|
font-weight: 400;
|
|
39
39
|
}
|
|
40
|
-
.typography__secondary-
|
|
40
|
+
.typography__secondary-medium_reu2d {
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
line-height: 16px;
|
|
43
43
|
font-weight: 400;
|
|
44
44
|
}
|
|
45
|
-
.typography__secondary-
|
|
45
|
+
.typography__secondary-small_reu2d {
|
|
46
46
|
font-size: 11px;
|
|
47
47
|
line-height: 16px;
|
|
48
48
|
font-weight: 400;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.typography__component_reu2d {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 400;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__caps_reu2d {
|
|
56
56
|
font-size: 12px;
|
|
57
57
|
line-height: 16px;
|
|
58
58
|
font-weight: 500;
|
|
59
59
|
letter-spacing: 1.25px;
|
|
60
60
|
text-transform: uppercase;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.typography__bold_reu2d {
|
|
63
63
|
font-weight: bold;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.typography__medium_reu2d {
|
|
66
66
|
font-weight: 500;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
.typography__regular_reu2d {
|
|
69
69
|
font-weight: normal;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.typography__monospace_reu2d {
|
|
72
72
|
font-feature-settings: "tnum";
|
|
73
73
|
font-variant-numeric: tabular-nums;
|
|
74
74
|
}
|
package/modern/text/index.js
CHANGED
package/modern/title/common.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 751kd */
|
|
2
|
+
.typography__component_ww8rj {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.typography__bold_ww8rj {
|
|
8
8
|
font-weight: bold;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.typography__medium_ww8rj {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.typography__regular_ww8rj {
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
}
|