@alfalab/core-components-typography 3.0.4 → 3.0.6
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.module-e9b9579a.d.ts → colors.module-6e19bd6b.d.ts} +0 -0
- package/{colors.module-e9b9579a.js → colors.module-6e19bd6b.js} +1 -1
- package/common.module-dd23630a.js +6 -0
- package/component.d.ts +3 -2
- package/component.js +2 -2
- package/cssm/component.d.ts +3 -2
- package/cssm/text/component.d.ts +13 -37
- package/cssm/text/component.js +6 -2
- package/cssm/text/index.module.css +5 -1
- package/cssm/title/component.d.ts +2 -2
- package/cssm/types.d.ts +2 -0
- package/cssm/types.js +2 -0
- package/esm/colors.css +13 -13
- package/esm/{colors.module-4de66eae.d.ts → colors.module-78d99341.d.ts} +0 -0
- package/esm/{colors.module-4de66eae.js → colors.module-78d99341.js} +1 -1
- package/esm/common.module-00b1ccc7.js +4 -0
- package/esm/component.d.ts +3 -2
- package/esm/component.js +2 -2
- package/esm/index.js +2 -2
- package/esm/text/component.d.ts +13 -37
- package/esm/text/component.js +8 -4
- package/esm/text/index.css +19 -15
- package/esm/text/index.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +2 -2
- 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 +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/esm/types.d.ts +2 -0
- package/esm/types.js +1 -0
- package/index.js +2 -2
- package/modern/colors.css +13 -13
- package/modern/colors.module-cc6915f1.js +4 -0
- package/modern/common.module-00b1ccc7.js +4 -0
- package/modern/component.d.ts +3 -2
- package/modern/component.js +2 -2
- package/modern/index.js +2 -2
- package/modern/text/component.d.ts +13 -37
- package/modern/text/component.js +7 -3
- package/modern/text/index.css +19 -15
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +2 -2
- 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 +14 -14
- 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/modern/types.d.ts +2 -0
- package/modern/types.js +1 -0
- package/package.json +1 -1
- package/text/component.d.ts +13 -37
- package/text/component.js +8 -4
- package/text/index.css +19 -15
- package/text/index.js +1 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +2 -2
- 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 +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/types.d.ts +2 -0
- package/types.js +2 -0
- package/common.module-caf545a8.js +0 -6
- package/esm/common.module-2f6fae5e.js +0 -4
- package/modern/colors.module-08772334.js +0 -4
- package/modern/common.module-2f6fae5e.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1756t */
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
57
57
|
font-size: 30px;
|
|
58
58
|
line-height: 36px;
|
|
59
59
|
font-weight: 700;
|
|
60
60
|
}
|
|
61
|
-
.typography__system-
|
|
61
|
+
.typography__system-large_1u216 {
|
|
62
62
|
font-size: 22px;
|
|
63
63
|
line-height: 26px;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
}
|
|
66
|
-
.typography__system-
|
|
66
|
+
.typography__system-medium_1u216 {
|
|
67
67
|
font-size: 18px;
|
|
68
68
|
line-height: 22px;
|
|
69
69
|
font-weight: 700;
|
|
70
70
|
}
|
|
71
|
-
.typography__system-
|
|
71
|
+
.typography__system-small_1u216 {
|
|
72
72
|
font-size: 18px;
|
|
73
73
|
line-height: 22px;
|
|
74
74
|
font-weight: 700;
|
|
75
75
|
}
|
|
76
|
-
.typography__system-
|
|
76
|
+
.typography__system-xsmall_1u216 {
|
|
77
77
|
font-size: 18px;
|
|
78
78
|
line-height: 22px;
|
|
79
79
|
font-weight: 700;
|
|
80
80
|
}
|
|
81
|
-
.typography__margins-
|
|
81
|
+
.typography__margins-xlarge_1u216 {
|
|
82
82
|
margin: 0 0 var(--gap-xl);
|
|
83
83
|
}
|
|
84
|
-
.typography__margins-
|
|
84
|
+
.typography__margins-large_1u216 {
|
|
85
85
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
86
86
|
}
|
|
87
|
-
.typography__margins-
|
|
87
|
+
.typography__margins-medium_1u216 {
|
|
88
88
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
89
89
|
}
|
|
90
|
-
.typography__margins-
|
|
90
|
+
.typography__margins-small_1u216 {
|
|
91
91
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
92
92
|
}
|
|
93
|
-
.typography__margins-
|
|
93
|
+
.typography__margins-xsmall_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
128
128
|
margin: 0 0 var(--gap-xl);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.typography__margins-
|
|
131
|
+
.typography__margins-large_1u216 {
|
|
132
132
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.typography__margins-
|
|
135
|
+
.typography__margins-medium_1u216 {
|
|
136
136
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.typography__margins-
|
|
139
|
+
.typography__margins-small_1u216 {
|
|
140
140
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.typography__margins-
|
|
143
|
+
.typography__margins-xsmall_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
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_1u216 {
|
|
219
219
|
margin: 0 0 var(--gap-xl);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
.typography__margins-
|
|
222
|
+
.typography__margins-large_1u216 {
|
|
223
223
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.typography__margins-
|
|
226
|
+
.typography__margins-medium_1u216 {
|
|
227
227
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.typography__margins-
|
|
230
|
+
.typography__margins-small_1u216 {
|
|
231
231
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.typography__margins-
|
|
234
|
+
.typography__margins-xsmall_1u216 {
|
|
235
235
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '../colors.module-
|
|
3
|
+
import '../colors.module-cc6915f1.js';
|
|
4
4
|
import '../title/component.js';
|
|
5
|
-
import '../common.module-
|
|
5
|
+
import '../common.module-00b1ccc7.js';
|
|
6
6
|
export { TitleResponsive } from './component.js';
|
package/modern/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
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
|
-
type
|
|
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
|
/**
|
|
@@ -23,7 +24,7 @@ type TextProps = Omit<NativeProps, 'color'> & {
|
|
|
23
24
|
/**
|
|
24
25
|
* HTML тег
|
|
25
26
|
*/
|
|
26
|
-
tag?: '
|
|
27
|
+
tag?: 'span' | 'div';
|
|
27
28
|
/**
|
|
28
29
|
* Css-класс для стилизации (native prop)
|
|
29
30
|
*/
|
|
@@ -36,40 +37,15 @@ type TextProps = Omit<NativeProps, 'color'> & {
|
|
|
36
37
|
* Контент (native prop)
|
|
37
38
|
*/
|
|
38
39
|
children?: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
41
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
|
|
42
|
-
/**
|
|
43
|
-
* [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
|
|
44
|
-
*/
|
|
45
|
-
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps" | undefined;
|
|
46
40
|
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Толщина шрифта
|
|
52
|
-
*/
|
|
53
|
-
weight?: "regular" | "medium" | "bold" | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Делает цифры моноширинными
|
|
56
|
-
*/
|
|
57
|
-
monospaceNumbers?: boolean | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* HTML тег
|
|
41
|
+
* Добавляет отступы к тэгу 'p'
|
|
60
42
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
dataTestId?: string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Контент (native prop)
|
|
72
|
-
*/
|
|
73
|
-
children?: React.ReactNode;
|
|
74
|
-
} & React.RefAttributes<TextElementType>>;
|
|
43
|
+
defaultMargins?: never;
|
|
44
|
+
};
|
|
45
|
+
type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
|
|
46
|
+
tag?: 'p';
|
|
47
|
+
defaultMargins?: boolean;
|
|
48
|
+
};
|
|
49
|
+
type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);
|
|
50
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<TextElementType>>;
|
|
75
51
|
export { TextProps, Text };
|
package/text/component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var colors_module = require('../colors.module-
|
|
5
|
+
var colors_module = require('../colors.module-6e19bd6b.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
|
|
@@ -11,13 +11,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"paragraph":"
|
|
14
|
+
var styles = {"paragraph":"typography__paragraph_1osp9","paragraphWithMargins":"typography__paragraphWithMargins_1osp9","primary-large":"typography__primary-large_1osp9","primary-medium":"typography__primary-medium_1osp9","primary-small":"typography__primary-small_1osp9","secondary-large":"typography__secondary-large_1osp9","secondary-medium":"typography__secondary-medium_1osp9","secondary-small":"typography__secondary-small_1osp9","component":"typography__component_1osp9","caps":"typography__caps_1osp9","bold":"typography__bold_1osp9","medium":"typography__medium_1osp9","regular":"typography__regular_1osp9","monospace":"typography__monospace_1osp9"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Text = React.forwardRef(function (_a, ref) {
|
|
18
18
|
var _b;
|
|
19
|
-
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d, weight = _a.weight, _e = _a.monospaceNumbers, monospaceNumbers = _e === void 0 ? false : _e, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, restProps = colors_module.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "color", "className", "dataTestId", "children"]);
|
|
20
|
-
return (React__default['default'].createElement(Component, colors_module.__assign({ className: cn__default['default']((_b = {},
|
|
19
|
+
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d, weight = _a.weight, _e = _a.monospaceNumbers, monospaceNumbers = _e === void 0 ? false : _e, _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['default'].createElement(Component, colors_module.__assign({ className: cn__default['default']((_b = {},
|
|
21
|
+
_b[styles.paragraph] = Component === 'p' && !defaultMargins,
|
|
22
|
+
_b[styles.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
23
|
+
_b[styles.monospace] = monospaceNumbers,
|
|
24
|
+
_b), className, color && colors_module.colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
21
25
|
});
|
|
22
26
|
|
|
23
27
|
exports.Text = Text;
|
package/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcrl */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -13,62 +13,66 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
17
|
-
margin:
|
|
16
|
+
.typography__paragraph_1osp9 {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
.typography__paragraphWithMargins_1osp9 {
|
|
18
21
|
padding: 0;
|
|
22
|
+
margin: var(--text-paragraph-margin-bottom);
|
|
19
23
|
}
|
|
20
|
-
.typography__primary-
|
|
24
|
+
.typography__primary-large_1osp9 {
|
|
21
25
|
font-size: 18px;
|
|
22
26
|
line-height: 24px;
|
|
23
27
|
font-weight: 400;
|
|
24
28
|
}
|
|
25
|
-
.typography__primary-
|
|
29
|
+
.typography__primary-medium_1osp9 {
|
|
26
30
|
font-size: 16px;
|
|
27
31
|
line-height: 24px;
|
|
28
32
|
font-weight: 400;
|
|
29
33
|
}
|
|
30
|
-
.typography__primary-
|
|
34
|
+
.typography__primary-small_1osp9 {
|
|
31
35
|
font-size: 14px;
|
|
32
36
|
line-height: 20px;
|
|
33
37
|
font-weight: 400;
|
|
34
38
|
}
|
|
35
|
-
.typography__secondary-
|
|
39
|
+
.typography__secondary-large_1osp9 {
|
|
36
40
|
font-size: 13px;
|
|
37
41
|
line-height: 16px;
|
|
38
42
|
font-weight: 400;
|
|
39
43
|
}
|
|
40
|
-
.typography__secondary-
|
|
44
|
+
.typography__secondary-medium_1osp9 {
|
|
41
45
|
font-size: 12px;
|
|
42
46
|
line-height: 16px;
|
|
43
47
|
font-weight: 400;
|
|
44
48
|
}
|
|
45
|
-
.typography__secondary-
|
|
49
|
+
.typography__secondary-small_1osp9 {
|
|
46
50
|
font-size: 11px;
|
|
47
51
|
line-height: 16px;
|
|
48
52
|
font-weight: 400;
|
|
49
53
|
}
|
|
50
|
-
.
|
|
54
|
+
.typography__component_1osp9 {
|
|
51
55
|
font-size: 16px;
|
|
52
56
|
line-height: 20px;
|
|
53
57
|
font-weight: 400;
|
|
54
58
|
}
|
|
55
|
-
.
|
|
59
|
+
.typography__caps_1osp9 {
|
|
56
60
|
font-size: 12px;
|
|
57
61
|
line-height: 16px;
|
|
58
62
|
font-weight: 500;
|
|
59
63
|
letter-spacing: 1.25px;
|
|
60
64
|
text-transform: uppercase;
|
|
61
65
|
}
|
|
62
|
-
.
|
|
66
|
+
.typography__bold_1osp9 {
|
|
63
67
|
font-weight: bold;
|
|
64
68
|
}
|
|
65
|
-
.
|
|
69
|
+
.typography__medium_1osp9 {
|
|
66
70
|
font-weight: 500;
|
|
67
71
|
}
|
|
68
|
-
.
|
|
72
|
+
.typography__regular_1osp9 {
|
|
69
73
|
font-weight: normal;
|
|
70
74
|
}
|
|
71
|
-
.
|
|
75
|
+
.typography__monospace_1osp9 {
|
|
72
76
|
font-feature-settings: "tnum";
|
|
73
77
|
font-variant-numeric: tabular-nums;
|
|
74
78
|
}
|
package/text/index.js
CHANGED
package/title/common.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: punmg */
|
|
2
|
+
.typography__component_13ul2 {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.typography__bold_13ul2 {
|
|
8
8
|
font-weight: bold;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.typography__medium_13ul2 {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.typography__regular_13ul2 {
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
}
|
package/title/component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
9
9
|
*/
|
|
10
10
|
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
11
11
|
/**
|
|
12
|
-
* [Вариант начертания](https://
|
|
12
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
|
|
13
13
|
*/
|
|
14
14
|
view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
15
15
|
/**
|
|
@@ -53,7 +53,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
|
|
|
53
53
|
*/
|
|
54
54
|
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
55
55
|
/**
|
|
56
|
-
* [Вариант начертания](https://
|
|
56
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
|
|
57
57
|
*/
|
|
58
58
|
view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
|
|
59
59
|
/**
|
package/title/component.js
CHANGED
package/title/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: k67ng */
|
|
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_1fpnk {
|
|
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_1fpnk {
|
|
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_1fpnk {
|
|
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_1fpnk {
|
|
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_1fpnk {
|
|
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_1fpnk {
|
|
56
56
|
font-size: 48px;
|
|
57
57
|
line-height: 52px;
|
|
58
58
|
font-weight: 700;
|
|
59
59
|
}
|
|
60
|
-
.typography__system-
|
|
60
|
+
.typography__system-large_1fpnk {
|
|
61
61
|
font-size: 40px;
|
|
62
62
|
line-height: 48px;
|
|
63
63
|
font-weight: 700;
|
|
64
64
|
}
|
|
65
|
-
.typography__system-
|
|
65
|
+
.typography__system-medium_1fpnk {
|
|
66
66
|
font-size: 30px;
|
|
67
67
|
line-height: 36px;
|
|
68
68
|
font-weight: 700;
|
|
69
69
|
}
|
|
70
|
-
.typography__system-
|
|
70
|
+
.typography__system-small_1fpnk {
|
|
71
71
|
font-size: 22px;
|
|
72
72
|
line-height: 26px;
|
|
73
73
|
font-weight: 700;
|
|
74
74
|
}
|
|
75
|
-
.typography__system-
|
|
75
|
+
.typography__system-xsmall_1fpnk {
|
|
76
76
|
font-size: 18px;
|
|
77
77
|
line-height: 22px;
|
|
78
78
|
font-weight: 700;
|
|
79
79
|
}
|
|
80
|
-
.typography__margins-
|
|
80
|
+
.typography__margins-xlarge_1fpnk {
|
|
81
81
|
margin: 0 0 var(--gap-xl);
|
|
82
82
|
}
|
|
83
|
-
.typography__margins-
|
|
83
|
+
.typography__margins-large_1fpnk {
|
|
84
84
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
85
85
|
}
|
|
86
|
-
.typography__margins-
|
|
86
|
+
.typography__margins-medium_1fpnk {
|
|
87
87
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
88
88
|
}
|
|
89
|
-
.typography__margins-
|
|
89
|
+
.typography__margins-small_1fpnk {
|
|
90
90
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
91
91
|
}
|
|
92
|
-
.typography__margins-
|
|
92
|
+
.typography__margins-xsmall_1fpnk {
|
|
93
93
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.typography__bold_1fpnk {
|
|
96
96
|
font-weight: bold;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.typography__medium_1fpnk {
|
|
99
99
|
font-weight: 500;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.typography__regular_1fpnk {
|
|
102
102
|
font-weight: normal;
|
|
103
103
|
}
|