@alfalab/core-components-typography 3.0.8 → 3.1.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.
Files changed (73) hide show
  1. package/colors.css +13 -13
  2. package/{colors.module-0b2b700f.d.ts → colors.module-bc993287.d.ts} +0 -0
  3. package/{colors.module-0b2b700f.js → colors.module-bc993287.js} +1 -1
  4. package/common.module-0a9ad0fb.js +6 -0
  5. package/component.js +2 -2
  6. package/cssm/text/component.d.ts +5 -1
  7. package/cssm/text/component.js +2 -1
  8. package/cssm/text/index.module.css +19 -0
  9. package/cssm/title/component.d.ts +10 -2
  10. package/cssm/title/component.js +3 -2
  11. package/cssm/title/index.module.css +19 -0
  12. package/esm/colors.css +13 -13
  13. package/esm/{colors.module-3225ad5e.d.ts → colors.module-42065957.d.ts} +0 -0
  14. package/esm/{colors.module-3225ad5e.js → colors.module-42065957.js} +1 -1
  15. package/esm/common.module-cc423fc9.js +4 -0
  16. package/esm/component.js +2 -2
  17. package/esm/index.js +2 -2
  18. package/esm/text/component.d.ts +5 -1
  19. package/esm/text/component.js +4 -3
  20. package/esm/text/index.css +34 -15
  21. package/esm/text/index.js +1 -1
  22. package/esm/title/common.css +5 -5
  23. package/esm/title/component.d.ts +10 -2
  24. package/esm/title/component.js +4 -3
  25. package/esm/title/index.css +35 -16
  26. package/esm/title/index.js +3 -3
  27. package/esm/title-mobile/component.js +3 -3
  28. package/esm/title-mobile/index.css +11 -11
  29. package/esm/title-mobile/index.js +2 -2
  30. package/esm/title-responsive/component.js +3 -3
  31. package/esm/title-responsive/index.css +41 -41
  32. package/esm/title-responsive/index.js +2 -2
  33. package/index.js +2 -2
  34. package/modern/colors.css +13 -13
  35. package/modern/colors.module-cbb33ea7.js +4 -0
  36. package/modern/common.module-13ae7781.js +4 -0
  37. package/modern/component.js +2 -2
  38. package/modern/index.js +2 -2
  39. package/modern/text/component.d.ts +5 -1
  40. package/modern/text/component.js +4 -3
  41. package/modern/text/index.css +34 -15
  42. package/modern/text/index.js +1 -1
  43. package/modern/title/common.css +5 -5
  44. package/modern/title/component.d.ts +10 -2
  45. package/modern/title/component.js +2 -2
  46. package/modern/title/index.css +35 -16
  47. package/modern/title/index.js +3 -3
  48. package/modern/title-mobile/component.js +3 -3
  49. package/modern/title-mobile/index.css +11 -11
  50. package/modern/title-mobile/index.js +2 -2
  51. package/modern/title-responsive/component.js +3 -3
  52. package/modern/title-responsive/index.css +41 -41
  53. package/modern/title-responsive/index.js +2 -2
  54. package/package.json +1 -1
  55. package/text/component.d.ts +5 -1
  56. package/text/component.js +4 -3
  57. package/text/index.css +34 -15
  58. package/text/index.js +1 -1
  59. package/title/common.css +5 -5
  60. package/title/component.d.ts +10 -2
  61. package/title/component.js +4 -3
  62. package/title/index.css +35 -16
  63. package/title/index.js +3 -3
  64. package/title-mobile/component.js +3 -3
  65. package/title-mobile/index.css +11 -11
  66. package/title-mobile/index.js +2 -2
  67. package/title-responsive/component.js +3 -3
  68. package/title-responsive/index.css +41 -41
  69. package/title-responsive/index.js +2 -2
  70. package/common.module-8d29fea6.js +0 -6
  71. package/esm/common.module-88c2056e.js +0 -4
  72. package/modern/colors.module-748605fe.js +0 -4
  73. package/modern/common.module-8ec5ed89.js +0 -4
@@ -1,4 +1,4 @@
1
- /* hash: iycb1 */
1
+ /* hash: 1qawm */
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-xlarge_1n1q4 {
21
+ .typography__styrene-xlarge_39k3n {
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-large_1n1q4 {
28
+ .typography__styrene-large_39k3n {
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-medium_1n1q4 {
35
+ .typography__styrene-medium_39k3n {
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-small_1n1q4 {
42
+ .typography__styrene-small_39k3n {
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-xsmall_1n1q4 {
49
+ .typography__styrene-xsmall_39k3n {
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-xlarge_1n1q4 {
56
+ .typography__system-xlarge_39k3n {
57
57
  font-size: 30px;
58
58
  line-height: 36px;
59
59
  font-weight: 700;
60
60
  }
61
- .typography__system-large_1n1q4 {
61
+ .typography__system-large_39k3n {
62
62
  font-size: 22px;
63
63
  line-height: 26px;
64
64
  font-weight: 700;
65
65
  }
66
- .typography__system-medium_1n1q4 {
66
+ .typography__system-medium_39k3n {
67
67
  font-size: 18px;
68
68
  line-height: 22px;
69
69
  font-weight: 700;
70
70
  }
71
- .typography__system-small_1n1q4 {
71
+ .typography__system-small_39k3n {
72
72
  font-size: 18px;
73
73
  line-height: 22px;
74
74
  font-weight: 700;
75
75
  }
76
- .typography__system-xsmall_1n1q4 {
76
+ .typography__system-xsmall_39k3n {
77
77
  font-size: 18px;
78
78
  line-height: 22px;
79
79
  font-weight: 700;
80
80
  }
81
- .typography__margins-xlarge_1n1q4 {
81
+ .typography__margins-xlarge_39k3n {
82
82
  margin: 0 0 var(--gap-xl);
83
83
  }
84
- .typography__margins-large_1n1q4 {
84
+ .typography__margins-large_39k3n {
85
85
  margin: var(--gap-3xl) 0 var(--gap-m);
86
86
  }
87
- .typography__margins-medium_1n1q4 {
87
+ .typography__margins-medium_39k3n {
88
88
  margin: var(--gap-3xl) 0 var(--gap-m);
89
89
  }
90
- .typography__margins-small_1n1q4 {
90
+ .typography__margins-small_39k3n {
91
91
  margin: var(--gap-3xl) 0 var(--gap-m);
92
92
  }
93
- .typography__margins-xsmall_1n1q4 {
93
+ .typography__margins-xsmall_39k3n {
94
94
  margin: var(--gap-3xl) 0 var(--gap-m);
95
95
  }
96
96
  @media screen and (min-width: 600px) {
97
- .typography__system-xlarge_1n1q4 {
97
+ .typography__system-xlarge_39k3n {
98
98
  font-size: 40px;
99
99
  line-height: 48px;
100
100
  font-weight: 700;
101
101
  }
102
102
 
103
- .typography__system-large_1n1q4 {
103
+ .typography__system-large_39k3n {
104
104
  font-size: 30px;
105
105
  line-height: 36px;
106
106
  font-weight: 700;
107
107
  }
108
108
 
109
- .typography__system-medium_1n1q4 {
109
+ .typography__system-medium_39k3n {
110
110
  font-size: 22px;
111
111
  line-height: 26px;
112
112
  font-weight: 700;
113
113
  }
114
114
 
115
- .typography__system-small_1n1q4 {
115
+ .typography__system-small_39k3n {
116
116
  font-size: 22px;
117
117
  line-height: 26px;
118
118
  font-weight: 700;
119
119
  }
120
120
 
121
- .typography__system-xsmall_1n1q4 {
121
+ .typography__system-xsmall_39k3n {
122
122
  font-size: 18px;
123
123
  line-height: 22px;
124
124
  font-weight: 700;
125
125
  }
126
126
 
127
- .typography__margins-xlarge_1n1q4 {
127
+ .typography__margins-xlarge_39k3n {
128
128
  margin: 0 0 var(--gap-xl);
129
129
  }
130
130
 
131
- .typography__margins-large_1n1q4 {
131
+ .typography__margins-large_39k3n {
132
132
  margin: var(--gap-4xl) 0 var(--gap-xl);
133
133
  }
134
134
 
135
- .typography__margins-medium_1n1q4 {
135
+ .typography__margins-medium_39k3n {
136
136
  margin: var(--gap-3xl) 0 var(--gap-m);
137
137
  }
138
138
 
139
- .typography__margins-small_1n1q4 {
139
+ .typography__margins-small_39k3n {
140
140
  margin: var(--gap-3xl) 0 var(--gap-m);
141
141
  }
142
142
 
143
- .typography__margins-xsmall_1n1q4 {
143
+ .typography__margins-xsmall_39k3n {
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-xlarge_1n1q4 {
148
+ .typography__styrene-xlarge_39k3n {
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-large_1n1q4 {
156
+ .typography__styrene-large_39k3n {
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-medium_1n1q4 {
164
+ .typography__styrene-medium_39k3n {
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-small_1n1q4 {
172
+ .typography__styrene-small_39k3n {
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-xsmall_1n1q4 {
180
+ .typography__styrene-xsmall_39k3n {
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-xlarge_1n1q4 {
188
+ .typography__system-xlarge_39k3n {
189
189
  font-size: 48px;
190
190
  line-height: 52px;
191
191
  font-weight: 700;
192
192
  }
193
193
 
194
- .typography__system-large_1n1q4 {
194
+ .typography__system-large_39k3n {
195
195
  font-size: 40px;
196
196
  line-height: 48px;
197
197
  font-weight: 700;
198
198
  }
199
199
 
200
- .typography__system-medium_1n1q4 {
200
+ .typography__system-medium_39k3n {
201
201
  font-size: 30px;
202
202
  line-height: 36px;
203
203
  font-weight: 700;
204
204
  }
205
205
 
206
- .typography__system-small_1n1q4 {
206
+ .typography__system-small_39k3n {
207
207
  font-size: 22px;
208
208
  line-height: 26px;
209
209
  font-weight: 700;
210
210
  }
211
211
 
212
- .typography__system-xsmall_1n1q4 {
212
+ .typography__system-xsmall_39k3n {
213
213
  font-size: 18px;
214
214
  line-height: 22px;
215
215
  font-weight: 700;
216
216
  }
217
217
 
218
- .typography__margins-xlarge_1n1q4 {
218
+ .typography__margins-xlarge_39k3n {
219
219
  margin: 0 0 var(--gap-xl);
220
220
  }
221
221
 
222
- .typography__margins-large_1n1q4 {
222
+ .typography__margins-large_39k3n {
223
223
  margin: var(--gap-4xl) 0 var(--gap-xl);
224
224
  }
225
225
 
226
- .typography__margins-medium_1n1q4 {
226
+ .typography__margins-medium_39k3n {
227
227
  margin: var(--gap-4xl) 0 var(--gap-xl);
228
228
  }
229
229
 
230
- .typography__margins-small_1n1q4 {
230
+ .typography__margins-small_39k3n {
231
231
  margin: var(--gap-3xl) 0 var(--gap-m);
232
232
  }
233
233
 
234
- .typography__margins-xsmall_1n1q4 {
234
+ .typography__margins-xsmall_39k3n {
235
235
  margin: var(--gap-3xl) 0 var(--gap-m);
236
236
  }
237
237
  }
@@ -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-748605fe.js';
6
- import '../common.module-8ec5ed89.js';
5
+ import '../colors.module-cbb33ea7.js';
6
+ import '../common.module-13ae7781.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "3.0.8",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@ import { TextElementType } from "../types";
6
6
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
7
7
  type TextBaseProps = {
8
8
  /**
9
- * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
9
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
10
10
  */
11
11
  view?: 'primary-large' | 'primary-medium' | 'primary-small' | 'secondary-large' | 'secondary-medium' | 'secondary-small' | 'component' | 'caps';
12
12
  /**
@@ -41,6 +41,10 @@ type TextBaseProps = {
41
41
  * Добавляет отступы к тэгу 'p'
42
42
  */
43
43
  defaultMargins?: never;
44
+ /**
45
+ * Количество строк (не поддерживает IE)
46
+ */
47
+ rowLimit?: 1 | 2 | 3;
44
48
  };
45
49
  type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
46
50
  tag?: 'p';
package/text/component.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var colors_module = require('../colors.module-0b2b700f.js');
3
+ var colors_module = require('../colors.module-bc993287.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
 
@@ -9,16 +9,17 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"paragraph":"typography__paragraph_1tplp","paragraphWithMargins":"typography__paragraphWithMargins_1tplp","primary-large":"typography__primary-large_1tplp","primary-medium":"typography__primary-medium_1tplp","primary-small":"typography__primary-small_1tplp","secondary-large":"typography__secondary-large_1tplp","secondary-medium":"typography__secondary-medium_1tplp","secondary-small":"typography__secondary-small_1tplp","component":"typography__component_1tplp","caps":"typography__caps_1tplp","bold":"typography__bold_1tplp","medium":"typography__medium_1tplp","regular":"typography__regular_1tplp","monospace":"typography__monospace_1tplp"};
12
+ var styles = {"paragraph":"typography__paragraph_9xfoj","paragraphWithMargins":"typography__paragraphWithMargins_9xfoj","primary-large":"typography__primary-large_9xfoj","primary-medium":"typography__primary-medium_9xfoj","primary-small":"typography__primary-small_9xfoj","secondary-large":"typography__secondary-large_9xfoj","secondary-medium":"typography__secondary-medium_9xfoj","secondary-small":"typography__secondary-small_9xfoj","component":"typography__component_9xfoj","caps":"typography__caps_9xfoj","bold":"typography__bold_9xfoj","medium":"typography__medium_9xfoj","regular":"typography__regular_9xfoj","monospace":"typography__monospace_9xfoj","rowLimit1":"typography__rowLimit1_9xfoj","rowLimit2":"typography__rowLimit2_9xfoj","rowLimit3":"typography__rowLimit3_9xfoj"};
13
13
  require('./index.css')
14
14
 
15
15
  var Text = React.forwardRef(function (_a, ref) {
16
16
  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, restProps = colors_module.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children"]);
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 = colors_module.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit"]);
18
18
  return (React__default.default.createElement(Component, colors_module.__assign({ className: cn__default.default((_b = {},
19
19
  _b[styles.paragraph] = Component === 'p' && !defaultMargins,
20
20
  _b[styles.paragraphWithMargins] = Component === 'p' && defaultMargins,
21
21
  _b[styles.monospace] = monospaceNumbers,
22
+ _b[styles["rowLimit".concat(rowLimit)]] = rowLimit,
22
23
  _b), className, color && colors_module.colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
23
24
  });
24
25
 
package/text/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 155x3 */
1
+ /* hash: meju9 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -13,66 +13,85 @@
13
13
  :root {
14
14
  --text-paragraph-margin-bottom: 0 0 var(--gap-s);
15
15
  }
16
- .typography__paragraph_1tplp {
16
+ .typography__paragraph_9xfoj {
17
17
  margin: 0;
18
18
  padding: 0;
19
19
  }
20
- .typography__paragraphWithMargins_1tplp {
20
+ .typography__paragraphWithMargins_9xfoj {
21
21
  padding: 0;
22
22
  margin: var(--text-paragraph-margin-bottom);
23
23
  }
24
- .typography__primary-large_1tplp {
24
+ .typography__primary-large_9xfoj {
25
25
  font-size: 18px;
26
26
  line-height: 24px;
27
27
  font-weight: 400;
28
28
  }
29
- .typography__primary-medium_1tplp {
29
+ .typography__primary-medium_9xfoj {
30
30
  font-size: 16px;
31
31
  line-height: 24px;
32
32
  font-weight: 400;
33
33
  }
34
- .typography__primary-small_1tplp {
34
+ .typography__primary-small_9xfoj {
35
35
  font-size: 14px;
36
36
  line-height: 20px;
37
37
  font-weight: 400;
38
38
  }
39
- .typography__secondary-large_1tplp {
39
+ .typography__secondary-large_9xfoj {
40
40
  font-size: 13px;
41
41
  line-height: 16px;
42
42
  font-weight: 400;
43
43
  }
44
- .typography__secondary-medium_1tplp {
44
+ .typography__secondary-medium_9xfoj {
45
45
  font-size: 12px;
46
46
  line-height: 16px;
47
47
  font-weight: 400;
48
48
  }
49
- .typography__secondary-small_1tplp {
49
+ .typography__secondary-small_9xfoj {
50
50
  font-size: 11px;
51
51
  line-height: 16px;
52
52
  font-weight: 400;
53
53
  }
54
- .typography__component_1tplp {
54
+ .typography__component_9xfoj {
55
55
  font-size: 16px;
56
56
  line-height: 20px;
57
57
  font-weight: 400;
58
58
  }
59
- .typography__caps_1tplp {
59
+ .typography__caps_9xfoj {
60
60
  font-size: 12px;
61
61
  line-height: 16px;
62
62
  font-weight: 500;
63
63
  letter-spacing: 1.25px;
64
64
  text-transform: uppercase;
65
65
  }
66
- .typography__bold_1tplp {
66
+ .typography__bold_9xfoj {
67
67
  font-weight: bold;
68
68
  }
69
- .typography__medium_1tplp {
69
+ .typography__medium_9xfoj {
70
70
  font-weight: 500;
71
71
  }
72
- .typography__regular_1tplp {
72
+ .typography__regular_9xfoj {
73
73
  font-weight: normal;
74
74
  }
75
- .typography__monospace_1tplp {
75
+ .typography__monospace_9xfoj {
76
76
  font-feature-settings: "tnum";
77
77
  font-variant-numeric: tabular-nums;
78
78
  }
79
+ .typography__rowLimit1_9xfoj {
80
+ -webkit-line-clamp: 1;
81
+ display: -webkit-box;
82
+ -webkit-box-orient: vertical;
83
+ overflow: hidden;
84
+ word-break: break-all;
85
+ }
86
+ .typography__rowLimit2_9xfoj {
87
+ -webkit-line-clamp: 2;
88
+ display: -webkit-box;
89
+ -webkit-box-orient: vertical;
90
+ overflow: hidden;
91
+ }
92
+ .typography__rowLimit3_9xfoj {
93
+ -webkit-line-clamp: 3;
94
+ display: -webkit-box;
95
+ -webkit-box-orient: vertical;
96
+ overflow: hidden;
97
+ }
package/text/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var text_component = require('./component.js');
4
- require('../colors.module-0b2b700f.js');
4
+ require('../colors.module-bc993287.js');
5
5
  require('react');
6
6
  require('classnames');
7
7
 
package/title/common.css CHANGED
@@ -1,14 +1,14 @@
1
- /* hash: 1e1i4 */
2
- .typography__component_1tml6 {
1
+ /* hash: 190df */
2
+ .typography__component_1c381 {
3
3
  margin: 0;
4
4
  padding: 0
5
5
  }
6
- .typography__component_1tml6.typography__bold_1tml6 {
6
+ .typography__component_1c381.typography__bold_1c381 {
7
7
  font-weight: bold;
8
8
  }
9
- .typography__component_1tml6.typography__medium_1tml6 {
9
+ .typography__component_1c381.typography__medium_1c381 {
10
10
  font-weight: 500;
11
11
  }
12
- .typography__component_1tml6.typography__regular_1tml6 {
12
+ .typography__component_1c381.typography__regular_1c381 {
13
13
  font-weight: normal;
14
14
  }
@@ -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://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
12
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
13
13
  */
14
14
  view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
15
15
  /**
@@ -40,6 +40,10 @@ type TitleProps = Omit<NativeProps, 'color'> & {
40
40
  * Контент (native prop)
41
41
  */
42
42
  children?: React.ReactNode;
43
+ /**
44
+ * Количество строк (не поддерживает IE)
45
+ */
46
+ rowLimit?: 1 | 2 | 3;
43
47
  };
44
48
  type Styles = {
45
49
  styles: {
@@ -53,7 +57,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
53
57
  */
54
58
  tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
55
59
  /**
56
- * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
60
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
57
61
  */
58
62
  view?: "medium" | "xlarge" | "large" | "small" | "xsmall" | undefined;
59
63
  /**
@@ -84,5 +88,9 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
84
88
  * Контент (native prop)
85
89
  */
86
90
  children?: React.ReactNode;
91
+ /**
92
+ * Количество строк (не поддерживает IE)
93
+ */
94
+ rowLimit?: 1 | 2 | 3 | undefined;
87
95
  } & Styles & React.RefAttributes<TitleElementType>>;
88
96
  export { TitleProps, Title };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var colors_module = require('../colors.module-0b2b700f.js');
3
+ var colors_module = require('../colors.module-bc993287.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
 
@@ -10,8 +10,9 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
12
  var Title = React.forwardRef(function (_a, ref) {
13
- var _b = _a.tag, Component = _b === void 0 ? 'div' : _b, _c = _a.view, view = _c === void 0 ? 'medium' : _c, _d = _a.font, font = _d === void 0 ? 'styrene' : _d, _e = _a.weight, weight = _e === void 0 ? font === 'styrene' ? 'medium' : 'bold' : _e, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? false : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, styles = _a.styles, restProps = colors_module.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "styles"]);
14
- return (React__default.default.createElement(Component, colors_module.__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]), "data-test-id": dataTestId, ref: ref }, restProps), children));
13
+ 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 = colors_module.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles"]);
15
+ return (React__default.default.createElement(Component, colors_module.__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));
15
16
  });
16
17
 
17
18
  exports.Title = Title;
package/title/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: fp796 */
1
+ /* hash: gzpp9 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -17,78 +17,97 @@
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-xlarge_13txv {
20
+ .typography__styrene-xlarge_17h0l {
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-large_13txv {
27
+ .typography__styrene-large_17h0l {
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-medium_13txv {
34
+ .typography__styrene-medium_17h0l {
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-small_13txv {
41
+ .typography__styrene-small_17h0l {
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-xsmall_13txv {
48
+ .typography__styrene-xsmall_17h0l {
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-xlarge_13txv {
55
+ .typography__system-xlarge_17h0l {
56
56
  font-size: 48px;
57
57
  line-height: 52px;
58
58
  font-weight: 700;
59
59
  }
60
- .typography__system-large_13txv {
60
+ .typography__system-large_17h0l {
61
61
  font-size: 40px;
62
62
  line-height: 48px;
63
63
  font-weight: 700;
64
64
  }
65
- .typography__system-medium_13txv {
65
+ .typography__system-medium_17h0l {
66
66
  font-size: 30px;
67
67
  line-height: 36px;
68
68
  font-weight: 700;
69
69
  }
70
- .typography__system-small_13txv {
70
+ .typography__system-small_17h0l {
71
71
  font-size: 22px;
72
72
  line-height: 26px;
73
73
  font-weight: 700;
74
74
  }
75
- .typography__system-xsmall_13txv {
75
+ .typography__system-xsmall_17h0l {
76
76
  font-size: 18px;
77
77
  line-height: 22px;
78
78
  font-weight: 700;
79
79
  }
80
- .typography__margins-xlarge_13txv {
80
+ .typography__margins-xlarge_17h0l {
81
81
  margin: 0 0 var(--gap-xl);
82
82
  }
83
- .typography__margins-large_13txv {
83
+ .typography__margins-large_17h0l {
84
84
  margin: var(--gap-4xl) 0 var(--gap-xl);
85
85
  }
86
- .typography__margins-medium_13txv {
86
+ .typography__margins-medium_17h0l {
87
87
  margin: var(--gap-4xl) 0 var(--gap-xl);
88
88
  }
89
- .typography__margins-small_13txv {
89
+ .typography__margins-small_17h0l {
90
90
  margin: var(--gap-3xl) 0 var(--gap-m);
91
91
  }
92
- .typography__margins-xsmall_13txv {
92
+ .typography__margins-xsmall_17h0l {
93
93
  margin: var(--gap-3xl) 0 var(--gap-m);
94
94
  }
95
+ .typography__rowLimit1_17h0l {
96
+ -webkit-line-clamp: 1;
97
+ display: -webkit-box;
98
+ -webkit-box-orient: vertical;
99
+ overflow: hidden;
100
+ word-break: break-all;
101
+ }
102
+ .typography__rowLimit2_17h0l {
103
+ -webkit-line-clamp: 2;
104
+ display: -webkit-box;
105
+ -webkit-box-orient: vertical;
106
+ overflow: hidden;
107
+ }
108
+ .typography__rowLimit3_17h0l {
109
+ -webkit-line-clamp: 3;
110
+ display: -webkit-box;
111
+ -webkit-box-orient: vertical;
112
+ overflow: hidden;
113
+ }