@alfalab/core-components-typography 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/colors.css +42 -28
  2. package/colors.d.ts +1 -1
  3. package/colors.js +7 -0
  4. package/colors.module-15de3c41.js +6 -0
  5. package/common.module-f948e7d5.js +6 -0
  6. package/component.js +3 -2
  7. package/cssm/colors.d.ts +1 -1
  8. package/cssm/colors.js +7 -0
  9. package/cssm/colors.module.css +41 -27
  10. package/cssm/component.js +1 -1
  11. package/cssm/index.js +1 -1
  12. package/cssm/text/component.js +3 -3
  13. package/cssm/text/index.js +1 -1
  14. package/cssm/text/index.module.css +26 -38
  15. package/cssm/title/component.d.ts +1 -1
  16. package/cssm/title/component.js +3 -3
  17. package/cssm/title/index.js +2 -2
  18. package/cssm/title/index.module.css +26 -40
  19. package/cssm/title-mobile/component.js +2 -2
  20. package/cssm/title-mobile/index.js +1 -1
  21. package/cssm/title-mobile/index.module.css +18 -22
  22. package/cssm/title-responsive/component.js +2 -2
  23. package/cssm/title-responsive/index.js +1 -1
  24. package/cssm/title-responsive/index.module.css +25 -39
  25. package/esm/colors.css +42 -28
  26. package/esm/colors.d.ts +1 -1
  27. package/esm/colors.js +7 -0
  28. package/esm/colors.module-308e84a9.js +4 -0
  29. package/esm/common.module-a19344da.js +4 -0
  30. package/esm/component.js +3 -2
  31. package/esm/index.js +3 -2
  32. package/esm/text/component.js +3 -2
  33. package/esm/text/index.css +27 -39
  34. package/esm/text/index.js +2 -1
  35. package/esm/title/common.css +5 -5
  36. package/esm/title/component.d.ts +1 -1
  37. package/esm/title/component.js +2 -1
  38. package/esm/title/index.css +27 -41
  39. package/esm/title/index.js +4 -3
  40. package/esm/title-mobile/component.js +4 -3
  41. package/esm/title-mobile/index.css +19 -23
  42. package/esm/title-mobile/index.js +3 -2
  43. package/esm/title-responsive/component.js +4 -3
  44. package/esm/title-responsive/index.css +51 -65
  45. package/esm/title-responsive/index.js +3 -2
  46. package/index.js +3 -2
  47. package/modern/colors.css +42 -28
  48. package/modern/colors.d.ts +1 -1
  49. package/modern/colors.js +7 -0
  50. package/modern/colors.module-c327b974.js +4 -0
  51. package/modern/common.module-41281fe7.js +4 -0
  52. package/modern/component.js +2 -2
  53. package/modern/index.js +2 -2
  54. package/modern/text/component.js +2 -2
  55. package/modern/text/index.css +27 -39
  56. package/modern/text/index.js +1 -1
  57. package/modern/title/common.css +5 -5
  58. package/modern/title/component.d.ts +1 -1
  59. package/modern/title/component.js +1 -1
  60. package/modern/title/index.css +27 -41
  61. package/modern/title/index.js +3 -3
  62. package/modern/title-mobile/component.js +3 -3
  63. package/modern/title-mobile/index.css +19 -23
  64. package/modern/title-mobile/index.js +2 -2
  65. package/modern/title-responsive/component.js +3 -3
  66. package/modern/title-responsive/index.css +51 -65
  67. package/modern/title-responsive/index.js +2 -2
  68. package/package.json +3 -2
  69. package/text/component.js +5 -4
  70. package/text/index.css +27 -39
  71. package/text/index.js +2 -1
  72. package/title/common.css +5 -5
  73. package/title/component.d.ts +1 -1
  74. package/title/component.js +4 -3
  75. package/title/index.css +27 -41
  76. package/title/index.js +5 -4
  77. package/title-mobile/component.js +5 -4
  78. package/title-mobile/index.css +19 -23
  79. package/title-mobile/index.js +3 -2
  80. package/title-responsive/component.js +5 -4
  81. package/title-responsive/index.css +51 -65
  82. package/title-responsive/index.js +3 -2
  83. package/colors.module-bc993287.d.ts +0 -36
  84. package/colors.module-bc993287.js +0 -46
  85. package/common.module-0a9ad0fb.js +0 -6
  86. package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
  87. package/cssm/tslib.es6-bbd6cd2a.js +0 -42
  88. package/esm/colors.module-42065957.d.ts +0 -36
  89. package/esm/colors.module-42065957.js +0 -43
  90. package/esm/common.module-cc423fc9.js +0 -4
  91. package/modern/colors.module-cbb33ea7.js +0 -4
  92. package/modern/common.module-13ae7781.js +0 -4
package/colors.css CHANGED
@@ -1,5 +1,6 @@
1
- /* hash: i62g2 */
1
+ /* hash: 1bc7p */
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,62 @@
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
+ --color-static-text-accent: #ef3124;
17
+ --color-static-text-primary-dark: #0b1f35;
18
+ --color-static-text-primary-light: #fff;
19
+ --color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
20
+ --color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
21
+ --color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
22
+ --color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
23
+ } :root {
24
+ } :root {
25
+ } :root {
17
26
 
18
27
  /* Hard */
19
28
 
20
29
  /* Up */
21
30
 
22
31
  /* Hard up */
23
- }
24
- /* colors */
25
- .typography__tertiary_5mg9e {
32
+ } :root {
33
+ } :root {
34
+ } :root {
35
+ } :root {
36
+ } /* colors */ .typography__tertiary_1m791 {
26
37
  color: var(--color-light-text-tertiary);
27
- }
28
- .typography__disabled_5mg9e {
38
+ } .typography__disabled_1m791 {
29
39
  color: var(--color-light-text-disabled);
30
- }
31
- .typography__accent_5mg9e {
40
+ } .typography__accent_1m791 {
32
41
  color: var(--color-light-text-accent);
33
- }
34
- .typography__primary_5mg9e {
42
+ } .typography__primary_1m791 {
35
43
  color: var(--color-light-text-primary);
36
- }
37
- .typography__attention_5mg9e {
44
+ } .typography__attention_1m791 {
38
45
  color: var(--color-light-text-attention);
39
- }
40
- .typography__positive_5mg9e {
46
+ } .typography__positive_1m791 {
41
47
  color: var(--color-light-text-positive);
42
- }
43
- .typography__secondary_5mg9e {
48
+ } .typography__secondary_1m791 {
44
49
  color: var(--color-light-text-secondary);
45
- }
46
- .typography__tertiary-inverted_5mg9e {
50
+ } .typography__tertiary-inverted_1m791 {
47
51
  color: var(--color-light-text-tertiary-inverted);
48
- }
49
- .typography__primary-inverted_5mg9e {
52
+ } .typography__primary-inverted_1m791 {
50
53
  color: var(--color-light-text-primary-inverted);
51
- }
52
- .typography__secondary-inverted_5mg9e {
54
+ } .typography__secondary-inverted_1m791 {
53
55
  color: var(--color-light-text-secondary-inverted);
54
- }
55
- .typography__link_5mg9e {
56
+ } .typography__link_1m791 {
56
57
  color: var(--color-light-text-link);
57
- }
58
- .typography__negative_5mg9e {
58
+ } .typography__negative_1m791 {
59
59
  color: var(--color-light-text-negative);
60
+ } .typography__static-primary-light_1m791 {
61
+ color: var(--color-static-text-primary-light);
62
+ } .typography__static-secondary-light_1m791 {
63
+ color: var(--color-static-text-secondary-light);
64
+ } .typography__static-tertiary-light_1m791 {
65
+ color: var(--color-static-text-tertiary-light);
66
+ } .typography__static-primary-dark_1m791 {
67
+ color: var(--color-static-text-primary-dark);
68
+ } .typography__static-secondary-dark_1m791 {
69
+ color: var(--color-static-text-secondary-dark);
70
+ } .typography__static-tertiary-dark_1m791 {
71
+ color: var(--color-static-text-tertiary-dark);
72
+ } .typography__static-accent_1m791 {
73
+ color: var(--color-static-text-accent);
60
74
  }
package/colors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative"];
1
+ declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
2
2
  type Color = typeof colors[number];
3
3
  export { colors, Color };
package/colors.js CHANGED
@@ -13,6 +13,13 @@ var colors = [
13
13
  'secondary-inverted',
14
14
  'link',
15
15
  'negative',
16
+ 'static-primary-light',
17
+ 'static-secondary-light',
18
+ 'static-tertiary-light',
19
+ 'static-primary-dark',
20
+ 'static-secondary-dark',
21
+ 'static-tertiary-dark',
22
+ 'static-accent',
16
23
  ];
17
24
 
18
25
  exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var colors = {"tertiary":"typography__tertiary_1m791","disabled":"typography__disabled_1m791","accent":"typography__accent_1m791","primary":"typography__primary_1m791","attention":"typography__attention_1m791","positive":"typography__positive_1m791","secondary":"typography__secondary_1m791","tertiary-inverted":"typography__tertiary-inverted_1m791","primary-inverted":"typography__primary-inverted_1m791","secondary-inverted":"typography__secondary-inverted_1m791","link":"typography__link_1m791","negative":"typography__negative_1m791","static-primary-light":"typography__static-primary-light_1m791","static-secondary-light":"typography__static-secondary-light_1m791","static-tertiary-light":"typography__static-tertiary-light_1m791","static-primary-dark":"typography__static-primary-dark_1m791","static-secondary-dark":"typography__static-secondary-dark_1m791","static-tertiary-dark":"typography__static-tertiary-dark_1m791","static-accent":"typography__static-accent_1m791"};
4
+ require('./colors.css')
5
+
6
+ exports.colors = colors;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_a3ydv","bold":"typography__bold_a3ydv","medium":"typography__medium_a3ydv","regular":"typography__regular_a3ydv"};
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-bc993287.js');
7
+ require('tslib');
8
8
  require('react');
9
9
  require('classnames');
10
+ require('./colors.module-15de3c41.js');
10
11
  require('./title/component.js');
11
- require('./common.module-0a9ad0fb.js');
12
+ require('./common.module-f948e7d5.js');
12
13
 
13
14
  var Typography = {
14
15
  Title: title_index.Title,
package/cssm/colors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative"];
1
+ declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
2
2
  type Color = typeof colors[number];
3
3
  export { colors, Color };
package/cssm/colors.js CHANGED
@@ -13,6 +13,13 @@ var colors = [
13
13
  'secondary-inverted',
14
14
  'link',
15
15
  'negative',
16
+ 'static-primary-light',
17
+ 'static-secondary-light',
18
+ 'static-tertiary-light',
19
+ 'static-primary-dark',
20
+ 'static-secondary-dark',
21
+ 'static-tertiary-dark',
22
+ 'static-accent',
16
23
  ];
17
24
 
18
25
  exports.colors = colors;
@@ -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,62 @@
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
+ --color-static-text-accent: #ef3124;
16
+ --color-static-text-primary-dark: #0b1f35;
17
+ --color-static-text-primary-light: #fff;
18
+ --color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
19
+ --color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
20
+ --color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
21
+ --color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
22
+ } :root {
23
+ } :root {
24
+ } :root {
16
25
 
17
26
  /* Hard */
18
27
 
19
28
  /* Up */
20
29
 
21
30
  /* Hard up */
22
- }
23
- /* colors */
24
- .tertiary {
31
+ } :root {
32
+ } :root {
33
+ } :root {
34
+ } :root {
35
+ } /* colors */ .tertiary {
25
36
  color: var(--color-light-text-tertiary);
26
- }
27
- .disabled {
37
+ } .disabled {
28
38
  color: var(--color-light-text-disabled);
29
- }
30
- .accent {
39
+ } .accent {
31
40
  color: var(--color-light-text-accent);
32
- }
33
- .primary {
41
+ } .primary {
34
42
  color: var(--color-light-text-primary);
35
- }
36
- .attention {
43
+ } .attention {
37
44
  color: var(--color-light-text-attention);
38
- }
39
- .positive {
45
+ } .positive {
40
46
  color: var(--color-light-text-positive);
41
- }
42
- .secondary {
47
+ } .secondary {
43
48
  color: var(--color-light-text-secondary);
44
- }
45
- .tertiary-inverted {
49
+ } .tertiary-inverted {
46
50
  color: var(--color-light-text-tertiary-inverted);
47
- }
48
- .primary-inverted {
51
+ } .primary-inverted {
49
52
  color: var(--color-light-text-primary-inverted);
50
- }
51
- .secondary-inverted {
53
+ } .secondary-inverted {
52
54
  color: var(--color-light-text-secondary-inverted);
53
- }
54
- .link {
55
+ } .link {
55
56
  color: var(--color-light-text-link);
56
- }
57
- .negative {
57
+ } .negative {
58
58
  color: var(--color-light-text-negative);
59
+ } .static-primary-light {
60
+ color: var(--color-static-text-primary-light);
61
+ } .static-secondary-light {
62
+ color: var(--color-static-text-secondary-light);
63
+ } .static-tertiary-light {
64
+ color: var(--color-static-text-tertiary-light);
65
+ } .static-primary-dark {
66
+ color: var(--color-static-text-primary-dark);
67
+ } .static-secondary-dark {
68
+ color: var(--color-static-text-secondary-dark);
69
+ } .static-tertiary-dark {
70
+ color: var(--color-static-text-tertiary-dark);
71
+ } .static-accent {
72
+ color: var(--color-static-text-accent);
59
73
  }
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');
@@ -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,8 +15,8 @@ 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, rowLimit = _a.rowLimit, restProps = tslib_es6.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit"]);
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,
@@ -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,94 +1,82 @@
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;
77
- }
78
- .rowLimit1 {
68
+ } .rowLimit1 {
79
69
  -webkit-line-clamp: 1;
80
70
  display: -webkit-box;
81
71
  -webkit-box-orient: vertical;
82
72
  overflow: hidden;
83
73
  word-break: break-all;
84
- }
85
- .rowLimit2 {
74
+ } .rowLimit2 {
86
75
  -webkit-line-clamp: 2;
87
76
  display: -webkit-box;
88
77
  -webkit-box-orient: vertical;
89
78
  overflow: hidden;
90
- }
91
- .rowLimit3 {
79
+ } .rowLimit3 {
92
80
  -webkit-line-clamp: 3;
93
81
  display: -webkit-box;
94
82
  -webkit-box-orient: vertical;
@@ -63,7 +63,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
63
63
  /**
64
64
  * Цвет текста
65
65
  */
66
- color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
66
+ color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
67
67
  /**
68
68
  * Толщина шрифта
69
69
  */
@@ -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');
@@ -13,8 +13,8 @@ var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
13
13
 
14
14
  var Title = React.forwardRef(function (_a, ref) {
15
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_es6.__rest(_a, ["tag", "view", "font", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles"]);
17
- 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], (_b = {}, _b[styles["rowLimit".concat(rowLimit)]] = rowLimit, _b)), "data-test-id": dataTestId, ref: ref }, restProps), children));
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));
18
18
  });
19
19
 
20
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,110 +1,96 @@
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);
93
- }
94
- .rowLimit1 {
82
+ } .rowLimit1 {
95
83
  -webkit-line-clamp: 1;
96
84
  display: -webkit-box;
97
85
  -webkit-box-orient: vertical;
98
86
  overflow: hidden;
99
87
  word-break: break-all;
100
- }
101
- .rowLimit2 {
88
+ } .rowLimit2 {
102
89
  -webkit-line-clamp: 2;
103
90
  display: -webkit-box;
104
91
  -webkit-box-orient: vertical;
105
92
  overflow: hidden;
106
- }
107
- .rowLimit3 {
93
+ } .rowLimit3 {
108
94
  -webkit-line-clamp: 3;
109
95
  display: -webkit-box;
110
96
  -webkit-box-orient: vertical;
@@ -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');