@alfalab/core-components-typography 3.0.5 → 3.0.7

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 (101) hide show
  1. package/colors.css +13 -13
  2. package/colors.js +0 -2
  3. package/{colors.module-0bde6fb8.d.ts → colors.module-bf5cdf66.d.ts} +0 -0
  4. package/{colors.module-0bde6fb8.js → colors.module-bf5cdf66.js} +1 -1
  5. package/common.module-8c6b627f.js +6 -0
  6. package/component.d.ts +3 -2
  7. package/component.js +5 -7
  8. package/cssm/colors.js +0 -2
  9. package/cssm/component.d.ts +3 -2
  10. package/cssm/component.js +5 -7
  11. package/cssm/index.js +7 -9
  12. package/cssm/presets.js +0 -2
  13. package/cssm/text/component.d.ts +2 -2
  14. package/cssm/text/component.js +11 -13
  15. package/cssm/text/index.js +2 -4
  16. package/cssm/title/component.d.ts +3 -3
  17. package/cssm/title/component.js +6 -8
  18. package/cssm/title/index.d.ts +2 -1
  19. package/cssm/title/index.js +8 -10
  20. package/cssm/title-mobile/component.js +8 -10
  21. package/cssm/title-mobile/index.js +3 -5
  22. package/cssm/title-responsive/component.js +8 -10
  23. package/cssm/title-responsive/index.js +3 -5
  24. package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
  25. package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
  26. package/cssm/types.d.ts +2 -0
  27. package/cssm/types.js +2 -0
  28. package/esm/colors.css +13 -13
  29. package/esm/{colors.module-ea6aa385.d.ts → colors.module-6165745a.d.ts} +0 -0
  30. package/esm/{colors.module-ea6aa385.js → colors.module-6165745a.js} +2 -2
  31. package/esm/common.module-4ce0321b.js +4 -0
  32. package/esm/component.d.ts +3 -2
  33. package/esm/component.js +5 -5
  34. package/esm/index.js +6 -6
  35. package/esm/text/component.d.ts +2 -2
  36. package/esm/text/component.js +2 -2
  37. package/esm/text/index.css +15 -15
  38. package/esm/text/index.js +2 -2
  39. package/esm/title/common.css +5 -5
  40. package/esm/title/component.d.ts +3 -3
  41. package/esm/title/component.js +2 -2
  42. package/esm/title/index.css +19 -19
  43. package/esm/title/index.d.ts +2 -1
  44. package/esm/title/index.js +4 -4
  45. package/esm/title-mobile/component.js +4 -4
  46. package/esm/title-mobile/index.css +14 -14
  47. package/esm/title-mobile/index.js +4 -4
  48. package/esm/title-responsive/component.js +4 -4
  49. package/esm/title-responsive/index.css +41 -41
  50. package/esm/title-responsive/index.js +4 -4
  51. package/esm/types.d.ts +2 -0
  52. package/esm/types.js +1 -0
  53. package/index.js +6 -8
  54. package/modern/colors.css +13 -13
  55. package/modern/colors.module-e62b3a57.js +4 -0
  56. package/modern/common.module-9d782690.js +4 -0
  57. package/modern/component.d.ts +3 -2
  58. package/modern/component.js +5 -5
  59. package/modern/index.js +6 -6
  60. package/modern/text/component.d.ts +2 -2
  61. package/modern/text/component.js +2 -2
  62. package/modern/text/index.css +15 -15
  63. package/modern/text/index.js +2 -2
  64. package/modern/title/common.css +5 -5
  65. package/modern/title/component.d.ts +3 -3
  66. package/modern/title/component.js +1 -1
  67. package/modern/title/index.css +19 -19
  68. package/modern/title/index.d.ts +2 -1
  69. package/modern/title/index.js +4 -4
  70. package/modern/title-mobile/component.js +4 -4
  71. package/modern/title-mobile/index.css +14 -14
  72. package/modern/title-mobile/index.js +4 -4
  73. package/modern/title-responsive/component.js +4 -4
  74. package/modern/title-responsive/index.css +41 -41
  75. package/modern/title-responsive/index.js +4 -4
  76. package/modern/types.d.ts +2 -0
  77. package/modern/types.js +1 -0
  78. package/package.json +1 -1
  79. package/presets.js +0 -2
  80. package/text/component.d.ts +2 -2
  81. package/text/component.js +6 -8
  82. package/text/index.css +15 -15
  83. package/text/index.js +2 -4
  84. package/title/common.css +5 -5
  85. package/title/component.d.ts +3 -3
  86. package/title/component.js +5 -7
  87. package/title/index.css +19 -19
  88. package/title/index.d.ts +2 -1
  89. package/title/index.js +7 -9
  90. package/title-mobile/component.js +7 -9
  91. package/title-mobile/index.css +14 -14
  92. package/title-mobile/index.js +4 -6
  93. package/title-responsive/component.js +7 -9
  94. package/title-responsive/index.css +41 -41
  95. package/title-responsive/index.js +4 -6
  96. package/types.d.ts +2 -0
  97. package/types.js +2 -0
  98. package/common.module-38ff9d96.js +0 -6
  99. package/esm/common.module-3d6e256f.js +0 -4
  100. package/modern/colors.module-37ac527a.js +0 -4
  101. package/modern/common.module-3d6e256f.js +0 -4
@@ -1,4 +1,4 @@
1
- /* hash: lgay4 */
1
+ /* hash: 10lbz */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -17,87 +17,87 @@
17
17
  --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
18
18
  'Helvetica Neue', Helvetica, sans-serif;
19
19
  }
20
- .typography__styrene-xlarge_brh6v {
20
+ .typography__styrene-xlarge_1rf90 {
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_brh6v {
27
+ .typography__styrene-large_1rf90 {
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_brh6v {
34
+ .typography__styrene-medium_1rf90 {
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_brh6v {
41
+ .typography__styrene-small_1rf90 {
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_brh6v {
48
+ .typography__styrene-xsmall_1rf90 {
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_brh6v {
55
+ .typography__system-xlarge_1rf90 {
56
56
  font-size: 48px;
57
57
  line-height: 52px;
58
58
  font-weight: 700;
59
59
  }
60
- .typography__system-large_brh6v {
60
+ .typography__system-large_1rf90 {
61
61
  font-size: 40px;
62
62
  line-height: 48px;
63
63
  font-weight: 700;
64
64
  }
65
- .typography__system-medium_brh6v {
65
+ .typography__system-medium_1rf90 {
66
66
  font-size: 30px;
67
67
  line-height: 36px;
68
68
  font-weight: 700;
69
69
  }
70
- .typography__system-small_brh6v {
70
+ .typography__system-small_1rf90 {
71
71
  font-size: 22px;
72
72
  line-height: 26px;
73
73
  font-weight: 700;
74
74
  }
75
- .typography__system-xsmall_brh6v {
75
+ .typography__system-xsmall_1rf90 {
76
76
  font-size: 18px;
77
77
  line-height: 22px;
78
78
  font-weight: 700;
79
79
  }
80
- .typography__margins-xlarge_brh6v {
80
+ .typography__margins-xlarge_1rf90 {
81
81
  margin: 0 0 var(--gap-xl);
82
82
  }
83
- .typography__margins-large_brh6v {
83
+ .typography__margins-large_1rf90 {
84
84
  margin: var(--gap-4xl) 0 var(--gap-xl);
85
85
  }
86
- .typography__margins-medium_brh6v {
86
+ .typography__margins-medium_1rf90 {
87
87
  margin: var(--gap-4xl) 0 var(--gap-xl);
88
88
  }
89
- .typography__margins-small_brh6v {
89
+ .typography__margins-small_1rf90 {
90
90
  margin: var(--gap-3xl) 0 var(--gap-m);
91
91
  }
92
- .typography__margins-xsmall_brh6v {
92
+ .typography__margins-xsmall_1rf90 {
93
93
  margin: var(--gap-3xl) 0 var(--gap-m);
94
94
  }
95
- .typography__bold_brh6v {
95
+ .typography__bold_1rf90 {
96
96
  font-weight: bold;
97
97
  }
98
- .typography__medium_brh6v {
98
+ .typography__medium_1rf90 {
99
99
  font-weight: 500;
100
100
  }
101
- .typography__regular_brh6v {
101
+ .typography__regular_1rf90 {
102
102
  font-weight: normal;
103
103
  }
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { TitleProps } from "./component";
3
3
  declare const Title: FC<TitleProps>;
4
- export { Title, TitleProps };
4
+ export { Title };
5
+ export type { TitleProps };
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import 'classnames';
3
- import '../colors.module-37ac527a.js';
4
2
  import { Title as Title$1 } from './component.js';
5
- import { c as commonStyles } from '../common.module-3d6e256f.js';
3
+ import { c as commonStyles } from '../common.module-9d782690.js';
4
+ import 'classnames';
5
+ import '../colors.module-e62b3a57.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_brh6v","styrene-large":"typography__styrene-large_brh6v","styrene-medium":"typography__styrene-medium_brh6v","styrene-small":"typography__styrene-small_brh6v","styrene-xsmall":"typography__styrene-xsmall_brh6v","system-xlarge":"typography__system-xlarge_brh6v","system-large":"typography__system-large_brh6v","system-medium":"typography__system-medium_brh6v","system-small":"typography__system-small_brh6v","system-xsmall":"typography__system-xsmall_brh6v","margins-xlarge":"typography__margins-xlarge_brh6v","margins-large":"typography__margins-large_brh6v","margins-medium":"typography__margins-medium_brh6v","margins-small":"typography__margins-small_brh6v","margins-xsmall":"typography__margins-xsmall_brh6v","bold":"typography__bold_brh6v","medium":"typography__medium_brh6v","regular":"typography__regular_brh6v"};
7
+ const styles = {"styrene-xlarge":"typography__styrene-xlarge_1rf90","styrene-large":"typography__styrene-large_1rf90","styrene-medium":"typography__styrene-medium_1rf90","styrene-small":"typography__styrene-small_1rf90","styrene-xsmall":"typography__styrene-xsmall_1rf90","system-xlarge":"typography__system-xlarge_1rf90","system-large":"typography__system-large_1rf90","system-medium":"typography__system-medium_1rf90","system-small":"typography__system-small_1rf90","system-xsmall":"typography__system-xsmall_1rf90","margins-xlarge":"typography__margins-xlarge_1rf90","margins-large":"typography__margins-large_1rf90","margins-medium":"typography__margins-medium_1rf90","margins-small":"typography__margins-small_1rf90","margins-xsmall":"typography__margins-xsmall_1rf90","bold":"typography__bold_1rf90","medium":"typography__medium_1rf90","regular":"typography__regular_1rf90"};
8
8
  require('./index.css')
9
9
 
10
10
  const Title = (props) => (
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import 'classnames';
3
- import '../colors.module-37ac527a.js';
4
2
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-3d6e256f.js';
3
+ import { c as commonStyles } from '../common.module-9d782690.js';
4
+ import 'classnames';
5
+ import '../colors.module-e62b3a57.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_1o835","styrene-large":"typography__styrene-large_1o835","styrene-medium":"typography__styrene-medium_1o835","styrene-small":"typography__styrene-small_1o835","styrene-xsmall":"typography__styrene-xsmall_1o835","system-xlarge":"typography__system-xlarge_1o835","system-large":"typography__system-large_1o835","system-medium":"typography__system-medium_1o835","system-small":"typography__system-small_1o835","system-xsmall":"typography__system-xsmall_1o835","bold":"typography__bold_1o835","medium":"typography__medium_1o835","regular":"typography__regular_1o835"};
7
+ const styles = {"styrene-xlarge":"typography__styrene-xlarge_8kbc6","styrene-large":"typography__styrene-large_8kbc6","styrene-medium":"typography__styrene-medium_8kbc6","styrene-small":"typography__styrene-small_8kbc6","styrene-xsmall":"typography__styrene-xsmall_8kbc6","system-xlarge":"typography__system-xlarge_8kbc6","system-large":"typography__system-large_8kbc6","system-medium":"typography__system-medium_8kbc6","system-small":"typography__system-small_8kbc6","system-xsmall":"typography__system-xsmall_8kbc6","bold":"typography__bold_8kbc6","medium":"typography__medium_8kbc6","regular":"typography__regular_8kbc6"};
8
8
  require('./index.css')
9
9
 
10
10
  const TitleMobile = (props) => (
@@ -1,4 +1,4 @@
1
- /* hash: 1wmyx */
1
+ /* hash: cqvwv */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,72 +11,72 @@
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_1o835 {
14
+ .typography__styrene-xlarge_8kbc6 {
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_1o835 {
21
+ .typography__styrene-large_8kbc6 {
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_1o835 {
28
+ .typography__styrene-medium_8kbc6 {
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_1o835 {
35
+ .typography__styrene-small_8kbc6 {
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_1o835 {
42
+ .typography__styrene-xsmall_8kbc6 {
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_1o835 {
49
+ .typography__system-xlarge_8kbc6 {
50
50
  font-size: 34px;
51
51
  line-height: 40px;
52
52
  font-weight: 600;
53
53
  }
54
- .typography__system-large_1o835 {
54
+ .typography__system-large_8kbc6 {
55
55
  font-size: 30px;
56
56
  line-height: 36px;
57
57
  font-weight: 600;
58
58
  }
59
- .typography__system-medium_1o835 {
59
+ .typography__system-medium_8kbc6 {
60
60
  font-size: 26px;
61
61
  line-height: 32px;
62
62
  font-weight: 600;
63
63
  }
64
- .typography__system-small_1o835 {
64
+ .typography__system-small_8kbc6 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
68
  }
69
- .typography__system-xsmall_1o835 {
69
+ .typography__system-xsmall_8kbc6 {
70
70
  font-size: 16px;
71
71
  line-height: 20px;
72
72
  font-weight: 600;
73
73
  }
74
- .typography__bold_1o835 {
74
+ .typography__bold_8kbc6 {
75
75
  font-weight: bold;
76
76
  }
77
- .typography__medium_1o835 {
77
+ .typography__medium_8kbc6 {
78
78
  font-weight: 500;
79
79
  }
80
- .typography__regular_1o835 {
80
+ .typography__regular_8kbc6 {
81
81
  font-weight: normal;
82
82
  }
@@ -1,6 +1,6 @@
1
+ export { TitleMobile } from './component.js';
1
2
  import 'react';
2
- import 'classnames';
3
- import '../colors.module-37ac527a.js';
4
3
  import '../title/component.js';
5
- import '../common.module-3d6e256f.js';
6
- export { TitleMobile } from './component.js';
4
+ import 'classnames';
5
+ import '../colors.module-e62b3a57.js';
6
+ import '../common.module-9d782690.js';
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import 'classnames';
3
- import '../colors.module-37ac527a.js';
4
2
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-3d6e256f.js';
3
+ import { c as commonStyles } from '../common.module-9d782690.js';
4
+ import 'classnames';
5
+ import '../colors.module-e62b3a57.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_1wm3b","styrene-large":"typography__styrene-large_1wm3b","styrene-medium":"typography__styrene-medium_1wm3b","styrene-small":"typography__styrene-small_1wm3b","styrene-xsmall":"typography__styrene-xsmall_1wm3b","system-xlarge":"typography__system-xlarge_1wm3b","system-large":"typography__system-large_1wm3b","system-medium":"typography__system-medium_1wm3b","system-small":"typography__system-small_1wm3b","system-xsmall":"typography__system-xsmall_1wm3b","margins-xlarge":"typography__margins-xlarge_1wm3b","margins-large":"typography__margins-large_1wm3b","margins-medium":"typography__margins-medium_1wm3b","margins-small":"typography__margins-small_1wm3b","margins-xsmall":"typography__margins-xsmall_1wm3b"};
7
+ const styles = {"styrene-xlarge":"typography__styrene-xlarge_6qijl","styrene-large":"typography__styrene-large_6qijl","styrene-medium":"typography__styrene-medium_6qijl","styrene-small":"typography__styrene-small_6qijl","styrene-xsmall":"typography__styrene-xsmall_6qijl","system-xlarge":"typography__system-xlarge_6qijl","system-large":"typography__system-large_6qijl","system-medium":"typography__system-medium_6qijl","system-small":"typography__system-small_6qijl","system-xsmall":"typography__system-xsmall_6qijl","margins-xlarge":"typography__margins-xlarge_6qijl","margins-large":"typography__margins-large_6qijl","margins-medium":"typography__margins-medium_6qijl","margins-small":"typography__margins-small_6qijl","margins-xsmall":"typography__margins-xsmall_6qijl"};
8
8
  require('./index.css')
9
9
 
10
10
  const TitleResponsive = (props) => (
@@ -1,4 +1,4 @@
1
- /* hash: 1urhv */
1
+ /* hash: 16knd */
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_1wm3b {
21
+ .typography__styrene-xlarge_6qijl {
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_1wm3b {
28
+ .typography__styrene-large_6qijl {
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_1wm3b {
35
+ .typography__styrene-medium_6qijl {
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_1wm3b {
42
+ .typography__styrene-small_6qijl {
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_1wm3b {
49
+ .typography__styrene-xsmall_6qijl {
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_1wm3b {
56
+ .typography__system-xlarge_6qijl {
57
57
  font-size: 30px;
58
58
  line-height: 36px;
59
59
  font-weight: 700;
60
60
  }
61
- .typography__system-large_1wm3b {
61
+ .typography__system-large_6qijl {
62
62
  font-size: 22px;
63
63
  line-height: 26px;
64
64
  font-weight: 700;
65
65
  }
66
- .typography__system-medium_1wm3b {
66
+ .typography__system-medium_6qijl {
67
67
  font-size: 18px;
68
68
  line-height: 22px;
69
69
  font-weight: 700;
70
70
  }
71
- .typography__system-small_1wm3b {
71
+ .typography__system-small_6qijl {
72
72
  font-size: 18px;
73
73
  line-height: 22px;
74
74
  font-weight: 700;
75
75
  }
76
- .typography__system-xsmall_1wm3b {
76
+ .typography__system-xsmall_6qijl {
77
77
  font-size: 18px;
78
78
  line-height: 22px;
79
79
  font-weight: 700;
80
80
  }
81
- .typography__margins-xlarge_1wm3b {
81
+ .typography__margins-xlarge_6qijl {
82
82
  margin: 0 0 var(--gap-xl);
83
83
  }
84
- .typography__margins-large_1wm3b {
84
+ .typography__margins-large_6qijl {
85
85
  margin: var(--gap-3xl) 0 var(--gap-m);
86
86
  }
87
- .typography__margins-medium_1wm3b {
87
+ .typography__margins-medium_6qijl {
88
88
  margin: var(--gap-3xl) 0 var(--gap-m);
89
89
  }
90
- .typography__margins-small_1wm3b {
90
+ .typography__margins-small_6qijl {
91
91
  margin: var(--gap-3xl) 0 var(--gap-m);
92
92
  }
93
- .typography__margins-xsmall_1wm3b {
93
+ .typography__margins-xsmall_6qijl {
94
94
  margin: var(--gap-3xl) 0 var(--gap-m);
95
95
  }
96
96
  @media screen and (min-width: 600px) {
97
- .typography__system-xlarge_1wm3b {
97
+ .typography__system-xlarge_6qijl {
98
98
  font-size: 40px;
99
99
  line-height: 48px;
100
100
  font-weight: 700;
101
101
  }
102
102
 
103
- .typography__system-large_1wm3b {
103
+ .typography__system-large_6qijl {
104
104
  font-size: 30px;
105
105
  line-height: 36px;
106
106
  font-weight: 700;
107
107
  }
108
108
 
109
- .typography__system-medium_1wm3b {
109
+ .typography__system-medium_6qijl {
110
110
  font-size: 22px;
111
111
  line-height: 26px;
112
112
  font-weight: 700;
113
113
  }
114
114
 
115
- .typography__system-small_1wm3b {
115
+ .typography__system-small_6qijl {
116
116
  font-size: 22px;
117
117
  line-height: 26px;
118
118
  font-weight: 700;
119
119
  }
120
120
 
121
- .typography__system-xsmall_1wm3b {
121
+ .typography__system-xsmall_6qijl {
122
122
  font-size: 18px;
123
123
  line-height: 22px;
124
124
  font-weight: 700;
125
125
  }
126
126
 
127
- .typography__margins-xlarge_1wm3b {
127
+ .typography__margins-xlarge_6qijl {
128
128
  margin: 0 0 var(--gap-xl);
129
129
  }
130
130
 
131
- .typography__margins-large_1wm3b {
131
+ .typography__margins-large_6qijl {
132
132
  margin: var(--gap-4xl) 0 var(--gap-xl);
133
133
  }
134
134
 
135
- .typography__margins-medium_1wm3b {
135
+ .typography__margins-medium_6qijl {
136
136
  margin: var(--gap-3xl) 0 var(--gap-m);
137
137
  }
138
138
 
139
- .typography__margins-small_1wm3b {
139
+ .typography__margins-small_6qijl {
140
140
  margin: var(--gap-3xl) 0 var(--gap-m);
141
141
  }
142
142
 
143
- .typography__margins-xsmall_1wm3b {
143
+ .typography__margins-xsmall_6qijl {
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_1wm3b {
148
+ .typography__styrene-xlarge_6qijl {
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_1wm3b {
156
+ .typography__styrene-large_6qijl {
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_1wm3b {
164
+ .typography__styrene-medium_6qijl {
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_1wm3b {
172
+ .typography__styrene-small_6qijl {
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_1wm3b {
180
+ .typography__styrene-xsmall_6qijl {
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_1wm3b {
188
+ .typography__system-xlarge_6qijl {
189
189
  font-size: 48px;
190
190
  line-height: 52px;
191
191
  font-weight: 700;
192
192
  }
193
193
 
194
- .typography__system-large_1wm3b {
194
+ .typography__system-large_6qijl {
195
195
  font-size: 40px;
196
196
  line-height: 48px;
197
197
  font-weight: 700;
198
198
  }
199
199
 
200
- .typography__system-medium_1wm3b {
200
+ .typography__system-medium_6qijl {
201
201
  font-size: 30px;
202
202
  line-height: 36px;
203
203
  font-weight: 700;
204
204
  }
205
205
 
206
- .typography__system-small_1wm3b {
206
+ .typography__system-small_6qijl {
207
207
  font-size: 22px;
208
208
  line-height: 26px;
209
209
  font-weight: 700;
210
210
  }
211
211
 
212
- .typography__system-xsmall_1wm3b {
212
+ .typography__system-xsmall_6qijl {
213
213
  font-size: 18px;
214
214
  line-height: 22px;
215
215
  font-weight: 700;
216
216
  }
217
217
 
218
- .typography__margins-xlarge_1wm3b {
218
+ .typography__margins-xlarge_6qijl {
219
219
  margin: 0 0 var(--gap-xl);
220
220
  }
221
221
 
222
- .typography__margins-large_1wm3b {
222
+ .typography__margins-large_6qijl {
223
223
  margin: var(--gap-4xl) 0 var(--gap-xl);
224
224
  }
225
225
 
226
- .typography__margins-medium_1wm3b {
226
+ .typography__margins-medium_6qijl {
227
227
  margin: var(--gap-4xl) 0 var(--gap-xl);
228
228
  }
229
229
 
230
- .typography__margins-small_1wm3b {
230
+ .typography__margins-small_6qijl {
231
231
  margin: var(--gap-3xl) 0 var(--gap-m);
232
232
  }
233
233
 
234
- .typography__margins-xsmall_1wm3b {
234
+ .typography__margins-xsmall_6qijl {
235
235
  margin: var(--gap-3xl) 0 var(--gap-m);
236
236
  }
237
237
  }
@@ -1,6 +1,6 @@
1
+ export { TitleResponsive } from './component.js';
1
2
  import 'react';
2
- import 'classnames';
3
- import '../colors.module-37ac527a.js';
4
3
  import '../title/component.js';
5
- import '../common.module-3d6e256f.js';
6
- export { TitleResponsive } from './component.js';
4
+ import 'classnames';
5
+ import '../colors.module-e62b3a57.js';
6
+ import '../common.module-9d782690.js';
@@ -0,0 +1,2 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ export { TextElementType };
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
package/presets.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var typographyPresets = {
6
4
  mobile: {
7
5
  list: {
@@ -2,10 +2,11 @@
2
2
  import React from 'react';
3
3
  import { HTMLAttributes } from "react";
4
4
  import { Color } from "../colors";
5
+ import { TextElementType } from "../types";
5
6
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
6
7
  type TextBaseProps = {
7
8
  /**
8
- * [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
9
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/инструкции-типографика--page)
9
10
  */
10
11
  view?: 'primary-large' | 'primary-medium' | 'primary-small' | 'secondary-large' | 'secondary-medium' | 'secondary-small' | 'component' | 'caps';
11
12
  /**
@@ -46,6 +47,5 @@ type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
46
47
  defaultMargins?: boolean;
47
48
  };
48
49
  type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);
49
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
50
50
  declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<TextElementType>>;
51
51
  export { TextProps, Text };
package/text/component.js CHANGED
@@ -1,23 +1,21 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var colors_module = require('../colors.module-0bde6fb8.js');
3
+ var colors_module = require('../colors.module-bf5cdf66.js');
6
4
  var React = require('react');
7
5
  var cn = require('classnames');
8
6
 
9
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
8
 
11
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
- var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
9
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
11
 
14
- var styles = {"paragraph":"typography__paragraph_8kho6","paragraphWithMargins":"typography__paragraphWithMargins_8kho6","primary-large":"typography__primary-large_8kho6","primary-medium":"typography__primary-medium_8kho6","primary-small":"typography__primary-small_8kho6","secondary-large":"typography__secondary-large_8kho6","secondary-medium":"typography__secondary-medium_8kho6","secondary-small":"typography__secondary-small_8kho6","component":"typography__component_8kho6","caps":"typography__caps_8kho6","bold":"typography__bold_8kho6","medium":"typography__medium_8kho6","regular":"typography__regular_8kho6","monospace":"typography__monospace_8kho6"};
12
+ var styles = {"paragraph":"typography__paragraph_rxtwz","paragraphWithMargins":"typography__paragraphWithMargins_rxtwz","primary-large":"typography__primary-large_rxtwz","primary-medium":"typography__primary-medium_rxtwz","primary-small":"typography__primary-small_rxtwz","secondary-large":"typography__secondary-large_rxtwz","secondary-medium":"typography__secondary-medium_rxtwz","secondary-small":"typography__secondary-small_rxtwz","component":"typography__component_rxtwz","caps":"typography__caps_rxtwz","bold":"typography__bold_rxtwz","medium":"typography__medium_rxtwz","regular":"typography__regular_rxtwz","monospace":"typography__monospace_rxtwz"};
15
13
  require('./index.css')
16
14
 
17
15
  var Text = React.forwardRef(function (_a, ref) {
18
16
  var _b;
19
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"]);
20
- return (React__default['default'].createElement(Component, colors_module.__assign({ className: cn__default['default']((_b = {},
18
+ return (React__default.default.createElement(Component, colors_module.__assign({ className: cn__default.default((_b = {},
21
19
  _b[styles.paragraph] = Component === 'p' && !defaultMargins,
22
20
  _b[styles.paragraphWithMargins] = Component === 'p' && defaultMargins,
23
21
  _b[styles.monospace] = monospaceNumbers,