@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: 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
+ }
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../colors.module-3225ad5e.js';
1
+ import { a as __assign } from '../colors.module-42065957.js';
2
2
  import React from 'react';
3
3
  import { Title as Title$1 } from './component.js';
4
- import { c as commonStyles } from '../common.module-88c2056e.js';
4
+ import { c as commonStyles } from '../common.module-cc423fc9.js';
5
5
  import 'classnames';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_13txv","styrene-large":"typography__styrene-large_13txv","styrene-medium":"typography__styrene-medium_13txv","styrene-small":"typography__styrene-small_13txv","styrene-xsmall":"typography__styrene-xsmall_13txv","system-xlarge":"typography__system-xlarge_13txv","system-large":"typography__system-large_13txv","system-medium":"typography__system-medium_13txv","system-small":"typography__system-small_13txv","system-xsmall":"typography__system-xsmall_13txv","margins-xlarge":"typography__margins-xlarge_13txv","margins-large":"typography__margins-large_13txv","margins-medium":"typography__margins-medium_13txv","margins-small":"typography__margins-small_13txv","margins-xsmall":"typography__margins-xsmall_13txv"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_17h0l","styrene-large":"typography__styrene-large_17h0l","styrene-medium":"typography__styrene-medium_17h0l","styrene-small":"typography__styrene-small_17h0l","styrene-xsmall":"typography__styrene-xsmall_17h0l","system-xlarge":"typography__system-xlarge_17h0l","system-large":"typography__system-large_17h0l","system-medium":"typography__system-medium_17h0l","system-small":"typography__system-small_17h0l","system-xsmall":"typography__system-xsmall_17h0l","margins-xlarge":"typography__margins-xlarge_17h0l","margins-large":"typography__margins-large_17h0l","margins-medium":"typography__margins-medium_17h0l","margins-small":"typography__margins-small_17h0l","margins-xsmall":"typography__margins-xsmall_17h0l","rowLimit1":"typography__rowLimit1_17h0l","rowLimit2":"typography__rowLimit2_17h0l","rowLimit3":"typography__rowLimit3_17h0l"};
8
8
  require('./index.css')
9
9
 
10
10
  var Title = function (props) { return (
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../colors.module-3225ad5e.js';
1
+ import { a as __assign } from '../colors.module-42065957.js';
2
2
  import React from 'react';
3
3
  import { Title } from '../title/component.js';
4
- import { c as commonStyles } from '../common.module-88c2056e.js';
4
+ import { c as commonStyles } from '../common.module-cc423fc9.js';
5
5
  import 'classnames';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_w5mgs","styrene-large":"typography__styrene-large_w5mgs","styrene-medium":"typography__styrene-medium_w5mgs","styrene-small":"typography__styrene-small_w5mgs","styrene-xsmall":"typography__styrene-xsmall_w5mgs","system-xlarge":"typography__system-xlarge_w5mgs","system-large":"typography__system-large_w5mgs","system-medium":"typography__system-medium_w5mgs","system-small":"typography__system-small_w5mgs","system-xsmall":"typography__system-xsmall_w5mgs"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_1pauw","styrene-large":"typography__styrene-large_1pauw","styrene-medium":"typography__styrene-medium_1pauw","styrene-small":"typography__styrene-small_1pauw","styrene-xsmall":"typography__styrene-xsmall_1pauw","system-xlarge":"typography__system-xlarge_1pauw","system-large":"typography__system-large_1pauw","system-medium":"typography__system-medium_1pauw","system-small":"typography__system-small_1pauw","system-xsmall":"typography__system-xsmall_1pauw"};
8
8
  require('./index.css')
9
9
 
10
10
  var TitleMobile = function (props) { return (
@@ -1,4 +1,4 @@
1
- /* hash: xn0nc */
1
+ /* hash: 22g47 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,62 +11,62 @@
11
11
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
12
12
  'Helvetica Neue', Helvetica, sans-serif;
13
13
  }
14
- .typography__styrene-xlarge_w5mgs {
14
+ .typography__styrene-xlarge_1pauw {
15
15
  font-size: 34px;
16
16
  line-height: 40px;
17
17
  font-weight: 500;
18
18
  font-feature-settings: 'ss01';
19
19
  font-family: var(--font-family-styrene);
20
20
  }
21
- .typography__styrene-large_w5mgs {
21
+ .typography__styrene-large_1pauw {
22
22
  font-size: 30px;
23
23
  line-height: 36px;
24
24
  font-weight: 500;
25
25
  font-feature-settings: 'ss01';
26
26
  font-family: var(--font-family-styrene);
27
27
  }
28
- .typography__styrene-medium_w5mgs {
28
+ .typography__styrene-medium_1pauw {
29
29
  font-size: 26px;
30
30
  line-height: 32px;
31
31
  font-weight: 500;
32
32
  font-feature-settings: 'ss01';
33
33
  font-family: var(--font-family-styrene);
34
34
  }
35
- .typography__styrene-small_w5mgs {
35
+ .typography__styrene-small_1pauw {
36
36
  font-size: 20px;
37
37
  line-height: 28px;
38
38
  font-weight: 500;
39
39
  font-feature-settings: 'ss01';
40
40
  font-family: var(--font-family-styrene);
41
41
  }
42
- .typography__styrene-xsmall_w5mgs {
42
+ .typography__styrene-xsmall_1pauw {
43
43
  font-size: 16px;
44
44
  line-height: 20px;
45
45
  font-weight: 500;
46
46
  font-feature-settings: 'ss01';
47
47
  font-family: var(--font-family-styrene);
48
48
  }
49
- .typography__system-xlarge_w5mgs {
49
+ .typography__system-xlarge_1pauw {
50
50
  font-size: 34px;
51
51
  line-height: 40px;
52
52
  font-weight: 600;
53
53
  }
54
- .typography__system-large_w5mgs {
54
+ .typography__system-large_1pauw {
55
55
  font-size: 30px;
56
56
  line-height: 36px;
57
57
  font-weight: 600;
58
58
  }
59
- .typography__system-medium_w5mgs {
59
+ .typography__system-medium_1pauw {
60
60
  font-size: 26px;
61
61
  line-height: 32px;
62
62
  font-weight: 600;
63
63
  }
64
- .typography__system-small_w5mgs {
64
+ .typography__system-small_1pauw {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
68
  }
69
- .typography__system-xsmall_w5mgs {
69
+ .typography__system-xsmall_1pauw {
70
70
  font-size: 16px;
71
71
  line-height: 20px;
72
72
  font-weight: 600;
@@ -1,6 +1,6 @@
1
1
  export { TitleMobile } from './component.js';
2
- import '../colors.module-3225ad5e.js';
2
+ import '../colors.module-42065957.js';
3
3
  import 'react';
4
4
  import '../title/component.js';
5
5
  import 'classnames';
6
- import '../common.module-88c2056e.js';
6
+ import '../common.module-cc423fc9.js';
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../colors.module-3225ad5e.js';
1
+ import { a as __assign } from '../colors.module-42065957.js';
2
2
  import React from 'react';
3
3
  import { Title } from '../title/component.js';
4
- import { c as commonStyles } from '../common.module-88c2056e.js';
4
+ import { c as commonStyles } from '../common.module-cc423fc9.js';
5
5
  import 'classnames';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_1n1q4","styrene-large":"typography__styrene-large_1n1q4","styrene-medium":"typography__styrene-medium_1n1q4","styrene-small":"typography__styrene-small_1n1q4","styrene-xsmall":"typography__styrene-xsmall_1n1q4","system-xlarge":"typography__system-xlarge_1n1q4","system-large":"typography__system-large_1n1q4","system-medium":"typography__system-medium_1n1q4","system-small":"typography__system-small_1n1q4","system-xsmall":"typography__system-xsmall_1n1q4","margins-xlarge":"typography__margins-xlarge_1n1q4","margins-large":"typography__margins-large_1n1q4","margins-medium":"typography__margins-medium_1n1q4","margins-small":"typography__margins-small_1n1q4","margins-xsmall":"typography__margins-xsmall_1n1q4"};
7
+ var styles = {"styrene-xlarge":"typography__styrene-xlarge_39k3n","styrene-large":"typography__styrene-large_39k3n","styrene-medium":"typography__styrene-medium_39k3n","styrene-small":"typography__styrene-small_39k3n","styrene-xsmall":"typography__styrene-xsmall_39k3n","system-xlarge":"typography__system-xlarge_39k3n","system-large":"typography__system-large_39k3n","system-medium":"typography__system-medium_39k3n","system-small":"typography__system-small_39k3n","system-xsmall":"typography__system-xsmall_39k3n","margins-xlarge":"typography__margins-xlarge_39k3n","margins-large":"typography__margins-large_39k3n","margins-medium":"typography__margins-medium_39k3n","margins-small":"typography__margins-small_39k3n","margins-xsmall":"typography__margins-xsmall_39k3n"};
8
8
  require('./index.css')
9
9
 
10
10
  var TitleResponsive = function (props) { return (
@@ -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
  }
@@ -1,6 +1,6 @@
1
1
  export { TitleResponsive } from './component.js';
2
- import '../colors.module-3225ad5e.js';
2
+ import '../colors.module-42065957.js';
3
3
  import 'react';
4
4
  import '../title/component.js';
5
5
  import 'classnames';
6
- import '../common.module-88c2056e.js';
6
+ import '../common.module-cc423fc9.js';
package/index.js CHANGED
@@ -3,12 +3,12 @@
3
3
  var component = require('./component.js');
4
4
  var presets = require('./presets.js');
5
5
  require('./text/component.js');
6
- require('./colors.module-0b2b700f.js');
6
+ require('./colors.module-bc993287.js');
7
7
  require('react');
8
8
  require('classnames');
9
9
  require('./title/index.js');
10
10
  require('./title/component.js');
11
- require('./common.module-8d29fea6.js');
11
+ require('./common.module-0a9ad0fb.js');
12
12
  require('./title-mobile/component.js');
13
13
  require('./title-responsive/component.js');
14
14
 
package/modern/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1fg47 */
1
+ /* hash: i62g2 */
2
2
  :root {
3
3
  --color-light-text-accent: #ef3124;
4
4
  --color-light-text-attention: #de6a00;
@@ -22,39 +22,39 @@
22
22
  /* Hard up */
23
23
  }
24
24
  /* colors */
25
- .typography__tertiary_1lljz {
25
+ .typography__tertiary_5mg9e {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1lljz {
28
+ .typography__disabled_5mg9e {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1lljz {
31
+ .typography__accent_5mg9e {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1lljz {
34
+ .typography__primary_5mg9e {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1lljz {
37
+ .typography__attention_5mg9e {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1lljz {
40
+ .typography__positive_5mg9e {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1lljz {
43
+ .typography__secondary_5mg9e {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1lljz {
46
+ .typography__tertiary-inverted_5mg9e {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1lljz {
49
+ .typography__primary-inverted_5mg9e {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1lljz {
52
+ .typography__secondary-inverted_5mg9e {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1lljz {
55
+ .typography__link_5mg9e {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1lljz {
58
+ .typography__negative_5mg9e {
59
59
  color: var(--color-light-text-negative);
60
60
  }
@@ -0,0 +1,4 @@
1
+ const colors = {"tertiary":"typography__tertiary_5mg9e","disabled":"typography__disabled_5mg9e","accent":"typography__accent_5mg9e","primary":"typography__primary_5mg9e","attention":"typography__attention_5mg9e","positive":"typography__positive_5mg9e","secondary":"typography__secondary_5mg9e","tertiary-inverted":"typography__tertiary-inverted_5mg9e","primary-inverted":"typography__primary-inverted_5mg9e","secondary-inverted":"typography__secondary-inverted_5mg9e","link":"typography__link_5mg9e","negative":"typography__negative_5mg9e"};
2
+ require('./colors.css')
3
+
4
+ export { colors as c };
@@ -0,0 +1,4 @@
1
+ const commonStyles = {"component":"typography__component_1c381","bold":"typography__bold_1c381","medium":"typography__medium_1c381","regular":"typography__regular_1c381"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
@@ -4,9 +4,9 @@ import { TitleMobile } from './title-mobile/component.js';
4
4
  import { TitleResponsive } from './title-responsive/component.js';
5
5
  import 'react';
6
6
  import 'classnames';
7
- import './colors.module-748605fe.js';
7
+ import './colors.module-cbb33ea7.js';
8
8
  import './title/component.js';
9
- import './common.module-8ec5ed89.js';
9
+ import './common.module-13ae7781.js';
10
10
 
11
11
  const Typography = {
12
12
  Title,
package/modern/index.js CHANGED
@@ -3,9 +3,9 @@ export { typographyPresets } from './presets.js';
3
3
  import './text/component.js';
4
4
  import 'react';
5
5
  import 'classnames';
6
- import './colors.module-748605fe.js';
6
+ import './colors.module-cbb33ea7.js';
7
7
  import './title/index.js';
8
8
  import './title/component.js';
9
- import './common.module-8ec5ed89.js';
9
+ import './common.module-13ae7781.js';
10
10
  import './title-mobile/component.js';
11
11
  import './title-responsive/component.js';
@@ -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';