@alfalab/core-components-typography 3.0.8 → 3.1.1

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 (88) hide show
  1. package/colors.css +21 -28
  2. package/colors.module-fcf8e5d3.js +6 -0
  3. package/common.module-cf8a6de7.js +6 -0
  4. package/component.js +3 -2
  5. package/cssm/colors.module.css +20 -27
  6. package/cssm/component.js +1 -1
  7. package/cssm/index.js +1 -1
  8. package/cssm/text/component.d.ts +5 -1
  9. package/cssm/text/component.js +4 -3
  10. package/cssm/text/index.js +1 -1
  11. package/cssm/text/index.module.css +39 -32
  12. package/cssm/title/component.d.ts +10 -2
  13. package/cssm/title/component.js +4 -3
  14. package/cssm/title/index.js +2 -2
  15. package/cssm/title/index.module.css +39 -34
  16. package/cssm/title-mobile/component.js +2 -2
  17. package/cssm/title-mobile/index.js +1 -1
  18. package/cssm/title-mobile/index.module.css +18 -22
  19. package/cssm/title-responsive/component.js +2 -2
  20. package/cssm/title-responsive/index.js +1 -1
  21. package/cssm/title-responsive/index.module.css +25 -39
  22. package/esm/colors.css +21 -28
  23. package/esm/colors.module-6c8a001e.js +4 -0
  24. package/esm/common.module-e5f2dd08.js +4 -0
  25. package/esm/component.js +3 -2
  26. package/esm/index.js +3 -2
  27. package/esm/text/component.d.ts +5 -1
  28. package/esm/text/component.js +5 -3
  29. package/esm/text/index.css +40 -33
  30. package/esm/text/index.js +2 -1
  31. package/esm/title/common.css +5 -5
  32. package/esm/title/component.d.ts +10 -2
  33. package/esm/title/component.js +5 -3
  34. package/esm/title/index.css +40 -35
  35. package/esm/title/index.js +4 -3
  36. package/esm/title-mobile/component.js +4 -3
  37. package/esm/title-mobile/index.css +19 -23
  38. package/esm/title-mobile/index.js +3 -2
  39. package/esm/title-responsive/component.js +4 -3
  40. package/esm/title-responsive/index.css +51 -65
  41. package/esm/title-responsive/index.js +3 -2
  42. package/index.js +3 -2
  43. package/modern/colors.css +21 -28
  44. package/modern/colors.module-cd27c99e.js +4 -0
  45. package/modern/common.module-83440d45.js +4 -0
  46. package/modern/component.js +2 -2
  47. package/modern/index.js +2 -2
  48. package/modern/text/component.d.ts +5 -1
  49. package/modern/text/component.js +4 -3
  50. package/modern/text/index.css +40 -33
  51. package/modern/text/index.js +1 -1
  52. package/modern/title/common.css +5 -5
  53. package/modern/title/component.d.ts +10 -2
  54. package/modern/title/component.js +2 -2
  55. package/modern/title/index.css +40 -35
  56. package/modern/title/index.js +3 -3
  57. package/modern/title-mobile/component.js +3 -3
  58. package/modern/title-mobile/index.css +19 -23
  59. package/modern/title-mobile/index.js +2 -2
  60. package/modern/title-responsive/component.js +3 -3
  61. package/modern/title-responsive/index.css +51 -65
  62. package/modern/title-responsive/index.js +2 -2
  63. package/package.json +3 -2
  64. package/text/component.d.ts +5 -1
  65. package/text/component.js +6 -4
  66. package/text/index.css +40 -33
  67. package/text/index.js +2 -1
  68. package/title/common.css +5 -5
  69. package/title/component.d.ts +10 -2
  70. package/title/component.js +5 -3
  71. package/title/index.css +40 -35
  72. package/title/index.js +5 -4
  73. package/title-mobile/component.js +5 -4
  74. package/title-mobile/index.css +19 -23
  75. package/title-mobile/index.js +3 -2
  76. package/title-responsive/component.js +5 -4
  77. package/title-responsive/index.css +51 -65
  78. package/title-responsive/index.js +3 -2
  79. package/colors.module-0b2b700f.d.ts +0 -36
  80. package/colors.module-0b2b700f.js +0 -46
  81. package/common.module-8d29fea6.js +0 -6
  82. package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
  83. package/cssm/tslib.es6-bbd6cd2a.js +0 -42
  84. package/esm/colors.module-3225ad5e.d.ts +0 -36
  85. package/esm/colors.module-3225ad5e.js +0 -43
  86. package/esm/common.module-88c2056e.js +0 -4
  87. package/modern/colors.module-748605fe.js +0 -4
  88. package/modern/common.module-8ec5ed89.js +0 -4
package/colors.css CHANGED
@@ -1,5 +1,6 @@
1
- /* hash: 1fg47 */
1
+ /* hash: 11u0a */
2
2
  :root {
3
+ } /* deprecated */ :root {
3
4
  --color-light-text-accent: #ef3124;
4
5
  --color-light-text-attention: #de6a00;
5
6
  --color-light-text-disabled: rgba(11, 31, 53, 0.15);
@@ -12,49 +13,41 @@
12
13
  --color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
13
14
  --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
14
15
  --color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
15
- }
16
- :root {
16
+ } :root {
17
+ } :root {
18
+ } :root {
17
19
 
18
20
  /* Hard */
19
21
 
20
22
  /* Up */
21
23
 
22
24
  /* Hard up */
23
- }
24
- /* colors */
25
- .typography__tertiary_1lljz {
25
+ } :root {
26
+ } :root {
27
+ } :root {
28
+ } :root {
29
+ } /* colors */ .typography__tertiary_2xsx1 {
26
30
  color: var(--color-light-text-tertiary);
27
- }
28
- .typography__disabled_1lljz {
31
+ } .typography__disabled_2xsx1 {
29
32
  color: var(--color-light-text-disabled);
30
- }
31
- .typography__accent_1lljz {
33
+ } .typography__accent_2xsx1 {
32
34
  color: var(--color-light-text-accent);
33
- }
34
- .typography__primary_1lljz {
35
+ } .typography__primary_2xsx1 {
35
36
  color: var(--color-light-text-primary);
36
- }
37
- .typography__attention_1lljz {
37
+ } .typography__attention_2xsx1 {
38
38
  color: var(--color-light-text-attention);
39
- }
40
- .typography__positive_1lljz {
39
+ } .typography__positive_2xsx1 {
41
40
  color: var(--color-light-text-positive);
42
- }
43
- .typography__secondary_1lljz {
41
+ } .typography__secondary_2xsx1 {
44
42
  color: var(--color-light-text-secondary);
45
- }
46
- .typography__tertiary-inverted_1lljz {
43
+ } .typography__tertiary-inverted_2xsx1 {
47
44
  color: var(--color-light-text-tertiary-inverted);
48
- }
49
- .typography__primary-inverted_1lljz {
45
+ } .typography__primary-inverted_2xsx1 {
50
46
  color: var(--color-light-text-primary-inverted);
51
- }
52
- .typography__secondary-inverted_1lljz {
47
+ } .typography__secondary-inverted_2xsx1 {
53
48
  color: var(--color-light-text-secondary-inverted);
54
- }
55
- .typography__link_1lljz {
49
+ } .typography__link_2xsx1 {
56
50
  color: var(--color-light-text-link);
57
- }
58
- .typography__negative_1lljz {
51
+ } .typography__negative_2xsx1 {
59
52
  color: var(--color-light-text-negative);
60
53
  }
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var colors = {"tertiary":"typography__tertiary_2xsx1","disabled":"typography__disabled_2xsx1","accent":"typography__accent_2xsx1","primary":"typography__primary_2xsx1","attention":"typography__attention_2xsx1","positive":"typography__positive_2xsx1","secondary":"typography__secondary_2xsx1","tertiary-inverted":"typography__tertiary-inverted_2xsx1","primary-inverted":"typography__primary-inverted_2xsx1","secondary-inverted":"typography__secondary-inverted_2xsx1","link":"typography__link_2xsx1","negative":"typography__negative_2xsx1"};
4
+ require('./colors.css')
5
+
6
+ exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_t6v95","bold":"typography__bold_t6v95","medium":"typography__medium_t6v95","regular":"typography__regular_t6v95"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/component.js CHANGED
@@ -4,11 +4,12 @@ var text_component = require('./text/component.js');
4
4
  var title_index = require('./title/index.js');
5
5
  var titleMobile_component = require('./title-mobile/component.js');
6
6
  var titleResponsive_component = require('./title-responsive/component.js');
7
- require('./colors.module-0b2b700f.js');
7
+ require('tslib');
8
8
  require('react');
9
9
  require('classnames');
10
+ require('./colors.module-fcf8e5d3.js');
10
11
  require('./title/component.js');
11
- require('./common.module-8d29fea6.js');
12
+ require('./common.module-cf8a6de7.js');
12
13
 
13
14
  var Typography = {
14
15
  Title: title_index.Title,
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
2
3
  --color-light-text-accent: #ef3124;
3
4
  --color-light-text-attention: #de6a00;
4
5
  --color-light-text-disabled: rgba(11, 31, 53, 0.15);
@@ -11,49 +12,41 @@
11
12
  --color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
12
13
  --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
13
14
  --color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
14
- }
15
- :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
16
18
 
17
19
  /* Hard */
18
20
 
19
21
  /* Up */
20
22
 
21
23
  /* Hard up */
22
- }
23
- /* colors */
24
- .tertiary {
24
+ } :root {
25
+ } :root {
26
+ } :root {
27
+ } :root {
28
+ } /* colors */ .tertiary {
25
29
  color: var(--color-light-text-tertiary);
26
- }
27
- .disabled {
30
+ } .disabled {
28
31
  color: var(--color-light-text-disabled);
29
- }
30
- .accent {
32
+ } .accent {
31
33
  color: var(--color-light-text-accent);
32
- }
33
- .primary {
34
+ } .primary {
34
35
  color: var(--color-light-text-primary);
35
- }
36
- .attention {
36
+ } .attention {
37
37
  color: var(--color-light-text-attention);
38
- }
39
- .positive {
38
+ } .positive {
40
39
  color: var(--color-light-text-positive);
41
- }
42
- .secondary {
40
+ } .secondary {
43
41
  color: var(--color-light-text-secondary);
44
- }
45
- .tertiary-inverted {
42
+ } .tertiary-inverted {
46
43
  color: var(--color-light-text-tertiary-inverted);
47
- }
48
- .primary-inverted {
44
+ } .primary-inverted {
49
45
  color: var(--color-light-text-primary-inverted);
50
- }
51
- .secondary-inverted {
46
+ } .secondary-inverted {
52
47
  color: var(--color-light-text-secondary-inverted);
53
- }
54
- .link {
48
+ } .link {
55
49
  color: var(--color-light-text-link);
56
- }
57
- .negative {
50
+ } .negative {
58
51
  color: var(--color-light-text-negative);
59
52
  }
package/cssm/component.js CHANGED
@@ -4,7 +4,7 @@ var text_component = require('./text/component.js');
4
4
  var title_index = require('./title/index.js');
5
5
  var titleMobile_component = require('./title-mobile/component.js');
6
6
  var titleResponsive_component = require('./title-responsive/component.js');
7
- require('./tslib.es6-bbd6cd2a.js');
7
+ require('tslib');
8
8
  require('react');
9
9
  require('classnames');
10
10
  require('./colors.module.css');
package/cssm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var component = require('./component.js');
4
4
  var presets = require('./presets.js');
5
5
  require('./text/component.js');
6
- require('./tslib.es6-bbd6cd2a.js');
6
+ require('tslib');
7
7
  require('react');
8
8
  require('classnames');
9
9
  require('./colors.module.css');
@@ -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';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var colors = require('../colors.module.css');
@@ -15,11 +15,12 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
15
15
 
16
16
  var Text = React.forwardRef(function (_a, ref) {
17
17
  var _b;
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, restProps = tslib_es6.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children"]);
19
- return (React__default.default.createElement(Component, tslib_es6.__assign({ className: cn__default.default((_b = {},
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 = {},
20
20
  _b[styles__default.default.paragraph] = Component === 'p' && !defaultMargins,
21
21
  _b[styles__default.default.paragraphWithMargins] = Component === 'p' && defaultMargins,
22
22
  _b[styles__default.default.monospace] = monospaceNumbers,
23
+ _b[styles__default.default["rowLimit".concat(rowLimit)]] = rowLimit,
23
24
  _b), className, color && colors__default.default[color], styles__default.default[view], weight && styles__default.default[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
24
25
  });
25
26
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var text_component = require('./component.js');
4
- require('../tslib.es6-bbd6cd2a.js');
4
+ require('tslib');
5
5
  require('react');
6
6
  require('classnames');
7
7
  require('../colors.module.css');
@@ -1,77 +1,84 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
3
+ } :root {
4
+ } :root {
5
+ } :root {
2
6
 
3
7
  /* Hard */
4
8
 
5
9
  /* Up */
6
10
 
7
11
  /* Hard up */
8
- }
9
- :root {
12
+ } :root {
13
+ } :root {
10
14
  --gap-s: 12px;
11
- }
12
- :root {
15
+ } :root {
16
+ } :root {
17
+ } :root {
13
18
  --text-paragraph-margin-bottom: 0 0 var(--gap-s);
14
- }
15
- .paragraph {
19
+ } .paragraph {
16
20
  margin: 0;
17
21
  padding: 0;
18
- }
19
- .paragraphWithMargins {
22
+ } .paragraphWithMargins {
20
23
  padding: 0;
21
24
  margin: var(--text-paragraph-margin-bottom);
22
- }
23
- .primary-large {
25
+ } .primary-large {
24
26
  font-size: 18px;
25
27
  line-height: 24px;
26
28
  font-weight: 400;
27
- }
28
- .primary-medium {
29
+ } .primary-medium {
29
30
  font-size: 16px;
30
31
  line-height: 24px;
31
32
  font-weight: 400;
32
- }
33
- .primary-small {
33
+ } .primary-small {
34
34
  font-size: 14px;
35
35
  line-height: 20px;
36
36
  font-weight: 400;
37
- }
38
- .secondary-large {
37
+ } .secondary-large {
39
38
  font-size: 13px;
40
39
  line-height: 16px;
41
40
  font-weight: 400;
42
- }
43
- .secondary-medium {
41
+ } .secondary-medium {
44
42
  font-size: 12px;
45
43
  line-height: 16px;
46
44
  font-weight: 400;
47
- }
48
- .secondary-small {
45
+ } .secondary-small {
49
46
  font-size: 11px;
50
47
  line-height: 16px;
51
48
  font-weight: 400;
52
- }
53
- .component {
49
+ } .component {
54
50
  font-size: 16px;
55
51
  line-height: 20px;
56
52
  font-weight: 400;
57
- }
58
- .caps {
53
+ } .caps {
59
54
  font-size: 12px;
60
55
  line-height: 16px;
61
56
  font-weight: 500;
62
57
  letter-spacing: 1.25px;
63
58
  text-transform: uppercase;
64
- }
65
- .bold {
59
+ } .bold {
66
60
  font-weight: bold;
67
- }
68
- .medium {
61
+ } .medium {
69
62
  font-weight: 500;
70
- }
71
- .regular {
63
+ } .regular {
72
64
  font-weight: normal;
73
- }
74
- .monospace {
65
+ } .monospace {
75
66
  font-feature-settings: "tnum";
76
67
  font-variant-numeric: tabular-nums;
68
+ } .rowLimit1 {
69
+ -webkit-line-clamp: 1;
70
+ display: -webkit-box;
71
+ -webkit-box-orient: vertical;
72
+ overflow: hidden;
73
+ word-break: break-all;
74
+ } .rowLimit2 {
75
+ -webkit-line-clamp: 2;
76
+ display: -webkit-box;
77
+ -webkit-box-orient: vertical;
78
+ overflow: hidden;
79
+ } .rowLimit3 {
80
+ -webkit-line-clamp: 3;
81
+ display: -webkit-box;
82
+ -webkit-box-orient: vertical;
83
+ overflow: hidden;
77
84
  }
@@ -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 tslib_es6 = require('../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var colors = require('../colors.module.css');
@@ -12,8 +12,9 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
12
  var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
13
13
 
14
14
  var Title = React.forwardRef(function (_a, ref) {
15
- 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 = tslib_es6.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "styles"]);
16
- return (React__default.default.createElement(Component, tslib_es6.__assign({ className: cn__default.default(styles.component, className, styles["".concat(font, "-").concat(view)], defaultMargins && styles["margins-".concat(view)], styles[weight], color && colors__default.default[color]), "data-test-id": dataTestId, ref: ref }, restProps), children));
15
+ var _b;
16
+ 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"]);
17
+ 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__default.default[color], (_b = {}, _b[styles["rowLimit".concat(rowLimit)]] = rowLimit, _b)), "data-test-id": dataTestId, ref: ref }, restProps), children));
17
18
  });
18
19
 
19
20
  exports.Title = Title;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var title_component = require('./component.js');
6
6
  var commonStyles = require('./common.module.css');
@@ -19,6 +19,6 @@ var Title = function (props) { return (
19
19
  * Если поменять Object.assign на деструктуризацию, то упадут тесты.
20
20
  * Видимо, это особенность работы jest и css-modules.
21
21
  */
22
- React__default.default.createElement(title_component.Title, tslib_es6.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
22
+ React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
23
23
 
24
24
  exports.Title = Title;
@@ -1,93 +1,98 @@
1
1
  :root {
2
+ } /* deprecated */ :root {
3
+ } :root {
4
+ } :root {
5
+ } :root {
2
6
 
3
7
  /* Hard */
4
8
 
5
9
  /* Up */
6
10
 
7
11
  /* Hard up */
8
- }
9
- :root {
12
+ } :root {
13
+ } :root {
10
14
  --gap-m: 16px;
11
15
  --gap-xl: 24px;
12
16
  --gap-3xl: 40px;
13
17
  --gap-4xl: 48px;
14
- }
15
- :root {
18
+ } :root {
16
19
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
17
20
  'Helvetica Neue', Helvetica, sans-serif;
18
- }
19
- .styrene-xlarge {
21
+ } :root {
22
+ } .styrene-xlarge {
20
23
  font-size: 48px;
21
24
  line-height: 64px;
22
25
  font-weight: 500;
23
26
  font-feature-settings: 'ss01';
24
27
  font-family: var(--font-family-styrene);
25
- }
26
- .styrene-large {
28
+ } .styrene-large {
27
29
  font-size: 40px;
28
30
  line-height: 48px;
29
31
  font-weight: 500;
30
32
  font-feature-settings: 'ss01';
31
33
  font-family: var(--font-family-styrene);
32
- }
33
- .styrene-medium {
34
+ } .styrene-medium {
34
35
  font-size: 32px;
35
36
  line-height: 40px;
36
37
  font-weight: 500;
37
38
  font-feature-settings: 'ss01';
38
39
  font-family: var(--font-family-styrene);
39
- }
40
- .styrene-small {
40
+ } .styrene-small {
41
41
  font-size: 24px;
42
42
  line-height: 32px;
43
43
  font-weight: 500;
44
44
  font-feature-settings: 'ss01';
45
45
  font-family: var(--font-family-styrene);
46
- }
47
- .styrene-xsmall {
46
+ } .styrene-xsmall {
48
47
  font-size: 20px;
49
48
  line-height: 24px;
50
49
  font-weight: 500;
51
50
  font-feature-settings: 'ss01';
52
51
  font-family: var(--font-family-styrene);
53
- }
54
- .system-xlarge {
52
+ } .system-xlarge {
55
53
  font-size: 48px;
56
54
  line-height: 52px;
57
55
  font-weight: 700;
58
- }
59
- .system-large {
56
+ } .system-large {
60
57
  font-size: 40px;
61
58
  line-height: 48px;
62
59
  font-weight: 700;
63
- }
64
- .system-medium {
60
+ } .system-medium {
65
61
  font-size: 30px;
66
62
  line-height: 36px;
67
63
  font-weight: 700;
68
- }
69
- .system-small {
64
+ } .system-small {
70
65
  font-size: 22px;
71
66
  line-height: 26px;
72
67
  font-weight: 700;
73
- }
74
- .system-xsmall {
68
+ } .system-xsmall {
75
69
  font-size: 18px;
76
70
  line-height: 22px;
77
71
  font-weight: 700;
78
- }
79
- .margins-xlarge {
72
+ } .margins-xlarge {
80
73
  margin: 0 0 var(--gap-xl);
81
- }
82
- .margins-large {
74
+ } .margins-large {
83
75
  margin: var(--gap-4xl) 0 var(--gap-xl);
84
- }
85
- .margins-medium {
76
+ } .margins-medium {
86
77
  margin: var(--gap-4xl) 0 var(--gap-xl);
87
- }
88
- .margins-small {
78
+ } .margins-small {
89
79
  margin: var(--gap-3xl) 0 var(--gap-m);
90
- }
91
- .margins-xsmall {
80
+ } .margins-xsmall {
92
81
  margin: var(--gap-3xl) 0 var(--gap-m);
82
+ } .rowLimit1 {
83
+ -webkit-line-clamp: 1;
84
+ display: -webkit-box;
85
+ -webkit-box-orient: vertical;
86
+ overflow: hidden;
87
+ word-break: break-all;
88
+ } .rowLimit2 {
89
+ -webkit-line-clamp: 2;
90
+ display: -webkit-box;
91
+ -webkit-box-orient: vertical;
92
+ overflow: hidden;
93
+ } .rowLimit3 {
94
+ -webkit-line-clamp: 3;
95
+ display: -webkit-box;
96
+ -webkit-box-orient: vertical;
97
+ overflow: hidden;
93
98
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var title_component = require('../title/component.js');
6
6
  var commonStyles = require('../title/common.module.css');
@@ -19,6 +19,6 @@ var TitleMobile = function (props) { return (
19
19
  * Если поменять Object.assign на деструктуризацию, то упадут тесты.
20
20
  * Видимо, это особенность работы jest и css-modules.
21
21
  */
22
- React__default.default.createElement(title_component.Title, tslib_es6.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
22
+ React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
23
23
 
24
24
  exports.TitleMobile = TitleMobile;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var titleMobile_component = require('./component.js');
4
- require('../tslib.es6-bbd6cd2a.js');
4
+ require('tslib');
5
5
  require('react');
6
6
  require('../title/component.js');
7
7
  require('classnames');