@alfalab/core-components-typography 3.0.4 → 3.0.5

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 (67) hide show
  1. package/colors.css +13 -13
  2. package/{colors.module-e9b9579a.d.ts → colors.module-0bde6fb8.d.ts} +0 -0
  3. package/{colors.module-e9b9579a.js → colors.module-0bde6fb8.js} +1 -1
  4. package/common.module-38ff9d96.js +6 -0
  5. package/component.js +2 -2
  6. package/cssm/text/component.d.ts +12 -36
  7. package/cssm/text/component.js +6 -2
  8. package/cssm/text/index.module.css +5 -1
  9. package/esm/colors.css +13 -13
  10. package/esm/{colors.module-4de66eae.d.ts → colors.module-ea6aa385.d.ts} +0 -0
  11. package/esm/{colors.module-4de66eae.js → colors.module-ea6aa385.js} +1 -1
  12. package/esm/common.module-3d6e256f.js +4 -0
  13. package/esm/component.js +2 -2
  14. package/esm/index.js +2 -2
  15. package/esm/text/component.d.ts +12 -36
  16. package/esm/text/component.js +8 -4
  17. package/esm/text/index.css +19 -15
  18. package/esm/text/index.js +1 -1
  19. package/esm/title/common.css +5 -5
  20. package/esm/title/component.js +1 -1
  21. package/esm/title/index.css +19 -19
  22. package/esm/title/index.js +3 -3
  23. package/esm/title-mobile/component.js +3 -3
  24. package/esm/title-mobile/index.css +14 -14
  25. package/esm/title-mobile/index.js +2 -2
  26. package/esm/title-responsive/component.js +3 -3
  27. package/esm/title-responsive/index.css +41 -41
  28. package/esm/title-responsive/index.js +2 -2
  29. package/index.js +2 -2
  30. package/modern/colors.css +13 -13
  31. package/modern/colors.module-37ac527a.js +4 -0
  32. package/modern/common.module-3d6e256f.js +4 -0
  33. package/modern/component.js +2 -2
  34. package/modern/index.js +2 -2
  35. package/modern/text/component.d.ts +12 -36
  36. package/modern/text/component.js +7 -3
  37. package/modern/text/index.css +19 -15
  38. package/modern/text/index.js +1 -1
  39. package/modern/title/common.css +5 -5
  40. package/modern/title/component.js +1 -1
  41. package/modern/title/index.css +19 -19
  42. package/modern/title/index.js +3 -3
  43. package/modern/title-mobile/component.js +3 -3
  44. package/modern/title-mobile/index.css +14 -14
  45. package/modern/title-mobile/index.js +2 -2
  46. package/modern/title-responsive/component.js +3 -3
  47. package/modern/title-responsive/index.css +41 -41
  48. package/modern/title-responsive/index.js +2 -2
  49. package/package.json +1 -1
  50. package/text/component.d.ts +12 -36
  51. package/text/component.js +8 -4
  52. package/text/index.css +19 -15
  53. package/text/index.js +1 -1
  54. package/title/common.css +5 -5
  55. package/title/component.js +1 -1
  56. package/title/index.css +19 -19
  57. package/title/index.js +3 -3
  58. package/title-mobile/component.js +3 -3
  59. package/title-mobile/index.css +14 -14
  60. package/title-mobile/index.js +2 -2
  61. package/title-responsive/component.js +3 -3
  62. package/title-responsive/index.css +41 -41
  63. package/title-responsive/index.js +2 -2
  64. package/common.module-caf545a8.js +0 -6
  65. package/esm/common.module-2f6fae5e.js +0 -4
  66. package/modern/colors.module-08772334.js +0 -4
  67. package/modern/common.module-2f6fae5e.js +0 -4
@@ -1,10 +1,10 @@
1
- import { _ as __assign } from '../colors.module-4de66eae.js';
1
+ import { _ as __assign } from '../colors.module-ea6aa385.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import { Title as Title$1 } from './component.js';
5
- import { c as commonStyles } from '../common.module-2f6fae5e.js';
5
+ import { c as commonStyles } from '../common.module-3d6e256f.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_vlaw6","styrene-large":"typography__styrene-large_vlaw6","styrene-medium":"typography__styrene-medium_vlaw6","styrene-small":"typography__styrene-small_vlaw6","styrene-xsmall":"typography__styrene-xsmall_vlaw6","system-xlarge":"typography__system-xlarge_vlaw6","system-large":"typography__system-large_vlaw6","system-medium":"typography__system-medium_vlaw6","system-small":"typography__system-small_vlaw6","system-xsmall":"typography__system-xsmall_vlaw6","margins-xlarge":"typography__margins-xlarge_vlaw6","margins-large":"typography__margins-large_vlaw6","margins-medium":"typography__margins-medium_vlaw6","margins-small":"typography__margins-small_vlaw6","margins-xsmall":"typography__margins-xsmall_vlaw6","bold":"typography__bold_vlaw6","medium":"typography__medium_vlaw6","regular":"typography__regular_vlaw6"};
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"};
8
8
  require('./index.css')
9
9
 
10
10
  var Title = function (props) { return (
@@ -1,10 +1,10 @@
1
- import { _ as __assign } from '../colors.module-4de66eae.js';
1
+ import { _ as __assign } from '../colors.module-ea6aa385.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-2f6fae5e.js';
5
+ import { c as commonStyles } from '../common.module-3d6e256f.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_14e9g","styrene-large":"typography__styrene-large_14e9g","styrene-medium":"typography__styrene-medium_14e9g","styrene-small":"typography__styrene-small_14e9g","styrene-xsmall":"typography__styrene-xsmall_14e9g","system-xlarge":"typography__system-xlarge_14e9g","system-large":"typography__system-large_14e9g","system-medium":"typography__system-medium_14e9g","system-small":"typography__system-small_14e9g","system-xsmall":"typography__system-xsmall_14e9g","bold":"typography__bold_14e9g","medium":"typography__medium_14e9g","regular":"typography__regular_14e9g"};
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"};
8
8
  require('./index.css')
9
9
 
10
10
  var TitleMobile = function (props) { return (
@@ -1,4 +1,4 @@
1
- /* hash: t4o7q */
1
+ /* hash: 1wmyx */
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_14e9g {
14
+ .typography__styrene-xlarge_1o835 {
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_14e9g {
21
+ .typography__styrene-large_1o835 {
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_14e9g {
28
+ .typography__styrene-medium_1o835 {
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_14e9g {
35
+ .typography__styrene-small_1o835 {
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_14e9g {
42
+ .typography__styrene-xsmall_1o835 {
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_14e9g {
49
+ .typography__system-xlarge_1o835 {
50
50
  font-size: 34px;
51
51
  line-height: 40px;
52
52
  font-weight: 600;
53
53
  }
54
- .typography__system-large_14e9g {
54
+ .typography__system-large_1o835 {
55
55
  font-size: 30px;
56
56
  line-height: 36px;
57
57
  font-weight: 600;
58
58
  }
59
- .typography__system-medium_14e9g {
59
+ .typography__system-medium_1o835 {
60
60
  font-size: 26px;
61
61
  line-height: 32px;
62
62
  font-weight: 600;
63
63
  }
64
- .typography__system-small_14e9g {
64
+ .typography__system-small_1o835 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
68
  }
69
- .typography__system-xsmall_14e9g {
69
+ .typography__system-xsmall_1o835 {
70
70
  font-size: 16px;
71
71
  line-height: 20px;
72
72
  font-weight: 600;
73
73
  }
74
- .typography__bold_14e9g {
74
+ .typography__bold_1o835 {
75
75
  font-weight: bold;
76
76
  }
77
- .typography__medium_14e9g {
77
+ .typography__medium_1o835 {
78
78
  font-weight: 500;
79
79
  }
80
- .typography__regular_14e9g {
80
+ .typography__regular_1o835 {
81
81
  font-weight: normal;
82
82
  }
@@ -1,6 +1,6 @@
1
- import '../colors.module-4de66eae.js';
1
+ import '../colors.module-ea6aa385.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../title/component.js';
5
- import '../common.module-2f6fae5e.js';
5
+ import '../common.module-3d6e256f.js';
6
6
  export { TitleMobile } from './component.js';
@@ -1,10 +1,10 @@
1
- import { _ as __assign } from '../colors.module-4de66eae.js';
1
+ import { _ as __assign } from '../colors.module-ea6aa385.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import { Title } from '../title/component.js';
5
- import { c as commonStyles } from '../common.module-2f6fae5e.js';
5
+ import { c as commonStyles } from '../common.module-3d6e256f.js';
6
6
 
7
- var styles = {"styrene-xlarge":"typography__styrene-xlarge_1vad3","styrene-large":"typography__styrene-large_1vad3","styrene-medium":"typography__styrene-medium_1vad3","styrene-small":"typography__styrene-small_1vad3","styrene-xsmall":"typography__styrene-xsmall_1vad3","system-xlarge":"typography__system-xlarge_1vad3","system-large":"typography__system-large_1vad3","system-medium":"typography__system-medium_1vad3","system-small":"typography__system-small_1vad3","system-xsmall":"typography__system-xsmall_1vad3","margins-xlarge":"typography__margins-xlarge_1vad3","margins-large":"typography__margins-large_1vad3","margins-medium":"typography__margins-medium_1vad3","margins-small":"typography__margins-small_1vad3","margins-xsmall":"typography__margins-xsmall_1vad3"};
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"};
8
8
  require('./index.css')
9
9
 
10
10
  var TitleResponsive = function (props) { return (
@@ -1,4 +1,4 @@
1
- /* hash: ngoqn */
1
+ /* hash: 1urhv */
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_1vad3 {
21
+ .typography__styrene-xlarge_1wm3b {
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_1vad3 {
28
+ .typography__styrene-large_1wm3b {
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_1vad3 {
35
+ .typography__styrene-medium_1wm3b {
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_1vad3 {
42
+ .typography__styrene-small_1wm3b {
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_1vad3 {
49
+ .typography__styrene-xsmall_1wm3b {
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_1vad3 {
56
+ .typography__system-xlarge_1wm3b {
57
57
  font-size: 30px;
58
58
  line-height: 36px;
59
59
  font-weight: 700;
60
60
  }
61
- .typography__system-large_1vad3 {
61
+ .typography__system-large_1wm3b {
62
62
  font-size: 22px;
63
63
  line-height: 26px;
64
64
  font-weight: 700;
65
65
  }
66
- .typography__system-medium_1vad3 {
66
+ .typography__system-medium_1wm3b {
67
67
  font-size: 18px;
68
68
  line-height: 22px;
69
69
  font-weight: 700;
70
70
  }
71
- .typography__system-small_1vad3 {
71
+ .typography__system-small_1wm3b {
72
72
  font-size: 18px;
73
73
  line-height: 22px;
74
74
  font-weight: 700;
75
75
  }
76
- .typography__system-xsmall_1vad3 {
76
+ .typography__system-xsmall_1wm3b {
77
77
  font-size: 18px;
78
78
  line-height: 22px;
79
79
  font-weight: 700;
80
80
  }
81
- .typography__margins-xlarge_1vad3 {
81
+ .typography__margins-xlarge_1wm3b {
82
82
  margin: 0 0 var(--gap-xl);
83
83
  }
84
- .typography__margins-large_1vad3 {
84
+ .typography__margins-large_1wm3b {
85
85
  margin: var(--gap-3xl) 0 var(--gap-m);
86
86
  }
87
- .typography__margins-medium_1vad3 {
87
+ .typography__margins-medium_1wm3b {
88
88
  margin: var(--gap-3xl) 0 var(--gap-m);
89
89
  }
90
- .typography__margins-small_1vad3 {
90
+ .typography__margins-small_1wm3b {
91
91
  margin: var(--gap-3xl) 0 var(--gap-m);
92
92
  }
93
- .typography__margins-xsmall_1vad3 {
93
+ .typography__margins-xsmall_1wm3b {
94
94
  margin: var(--gap-3xl) 0 var(--gap-m);
95
95
  }
96
96
  @media screen and (min-width: 600px) {
97
- .typography__system-xlarge_1vad3 {
97
+ .typography__system-xlarge_1wm3b {
98
98
  font-size: 40px;
99
99
  line-height: 48px;
100
100
  font-weight: 700;
101
101
  }
102
102
 
103
- .typography__system-large_1vad3 {
103
+ .typography__system-large_1wm3b {
104
104
  font-size: 30px;
105
105
  line-height: 36px;
106
106
  font-weight: 700;
107
107
  }
108
108
 
109
- .typography__system-medium_1vad3 {
109
+ .typography__system-medium_1wm3b {
110
110
  font-size: 22px;
111
111
  line-height: 26px;
112
112
  font-weight: 700;
113
113
  }
114
114
 
115
- .typography__system-small_1vad3 {
115
+ .typography__system-small_1wm3b {
116
116
  font-size: 22px;
117
117
  line-height: 26px;
118
118
  font-weight: 700;
119
119
  }
120
120
 
121
- .typography__system-xsmall_1vad3 {
121
+ .typography__system-xsmall_1wm3b {
122
122
  font-size: 18px;
123
123
  line-height: 22px;
124
124
  font-weight: 700;
125
125
  }
126
126
 
127
- .typography__margins-xlarge_1vad3 {
127
+ .typography__margins-xlarge_1wm3b {
128
128
  margin: 0 0 var(--gap-xl);
129
129
  }
130
130
 
131
- .typography__margins-large_1vad3 {
131
+ .typography__margins-large_1wm3b {
132
132
  margin: var(--gap-4xl) 0 var(--gap-xl);
133
133
  }
134
134
 
135
- .typography__margins-medium_1vad3 {
135
+ .typography__margins-medium_1wm3b {
136
136
  margin: var(--gap-3xl) 0 var(--gap-m);
137
137
  }
138
138
 
139
- .typography__margins-small_1vad3 {
139
+ .typography__margins-small_1wm3b {
140
140
  margin: var(--gap-3xl) 0 var(--gap-m);
141
141
  }
142
142
 
143
- .typography__margins-xsmall_1vad3 {
143
+ .typography__margins-xsmall_1wm3b {
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_1vad3 {
148
+ .typography__styrene-xlarge_1wm3b {
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_1vad3 {
156
+ .typography__styrene-large_1wm3b {
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_1vad3 {
164
+ .typography__styrene-medium_1wm3b {
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_1vad3 {
172
+ .typography__styrene-small_1wm3b {
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_1vad3 {
180
+ .typography__styrene-xsmall_1wm3b {
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_1vad3 {
188
+ .typography__system-xlarge_1wm3b {
189
189
  font-size: 48px;
190
190
  line-height: 52px;
191
191
  font-weight: 700;
192
192
  }
193
193
 
194
- .typography__system-large_1vad3 {
194
+ .typography__system-large_1wm3b {
195
195
  font-size: 40px;
196
196
  line-height: 48px;
197
197
  font-weight: 700;
198
198
  }
199
199
 
200
- .typography__system-medium_1vad3 {
200
+ .typography__system-medium_1wm3b {
201
201
  font-size: 30px;
202
202
  line-height: 36px;
203
203
  font-weight: 700;
204
204
  }
205
205
 
206
- .typography__system-small_1vad3 {
206
+ .typography__system-small_1wm3b {
207
207
  font-size: 22px;
208
208
  line-height: 26px;
209
209
  font-weight: 700;
210
210
  }
211
211
 
212
- .typography__system-xsmall_1vad3 {
212
+ .typography__system-xsmall_1wm3b {
213
213
  font-size: 18px;
214
214
  line-height: 22px;
215
215
  font-weight: 700;
216
216
  }
217
217
 
218
- .typography__margins-xlarge_1vad3 {
218
+ .typography__margins-xlarge_1wm3b {
219
219
  margin: 0 0 var(--gap-xl);
220
220
  }
221
221
 
222
- .typography__margins-large_1vad3 {
222
+ .typography__margins-large_1wm3b {
223
223
  margin: var(--gap-4xl) 0 var(--gap-xl);
224
224
  }
225
225
 
226
- .typography__margins-medium_1vad3 {
226
+ .typography__margins-medium_1wm3b {
227
227
  margin: var(--gap-4xl) 0 var(--gap-xl);
228
228
  }
229
229
 
230
- .typography__margins-small_1vad3 {
230
+ .typography__margins-small_1wm3b {
231
231
  margin: var(--gap-3xl) 0 var(--gap-m);
232
232
  }
233
233
 
234
- .typography__margins-xsmall_1vad3 {
234
+ .typography__margins-xsmall_1wm3b {
235
235
  margin: var(--gap-3xl) 0 var(--gap-m);
236
236
  }
237
237
  }
@@ -1,6 +1,6 @@
1
- import '../colors.module-4de66eae.js';
1
+ import '../colors.module-ea6aa385.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../title/component.js';
5
- import '../common.module-2f6fae5e.js';
5
+ import '../common.module-3d6e256f.js';
6
6
  export { TitleResponsive } from './component.js';
package/index.js CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./colors.module-e9b9579a.js');
5
+ require('./colors.module-0bde6fb8.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('./text/component.js');
9
9
  require('./title/component.js');
10
- require('./common.module-caf545a8.js');
10
+ require('./common.module-38ff9d96.js');
11
11
  require('./title/index.js');
12
12
  require('./title-mobile/component.js');
13
13
  require('./title-responsive/component.js');
package/modern/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1axrr */
1
+ /* hash: dph77 */
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_1vd47 {
25
+ .typography__tertiary_v989w {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1vd47 {
28
+ .typography__disabled_v989w {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1vd47 {
31
+ .typography__accent_v989w {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1vd47 {
34
+ .typography__primary_v989w {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1vd47 {
37
+ .typography__attention_v989w {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1vd47 {
40
+ .typography__positive_v989w {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1vd47 {
43
+ .typography__secondary_v989w {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1vd47 {
46
+ .typography__tertiary-inverted_v989w {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1vd47 {
49
+ .typography__primary-inverted_v989w {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1vd47 {
52
+ .typography__secondary-inverted_v989w {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1vd47 {
55
+ .typography__link_v989w {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1vd47 {
58
+ .typography__negative_v989w {
59
59
  color: var(--color-light-text-negative);
60
60
  }
@@ -0,0 +1,4 @@
1
+ var colors = {"tertiary":"typography__tertiary_v989w","disabled":"typography__disabled_v989w","accent":"typography__accent_v989w","primary":"typography__primary_v989w","attention":"typography__attention_v989w","positive":"typography__positive_v989w","secondary":"typography__secondary_v989w","tertiary-inverted":"typography__tertiary-inverted_v989w","primary-inverted":"typography__primary-inverted_v989w","secondary-inverted":"typography__secondary-inverted_v989w","link":"typography__link_v989w","negative":"typography__negative_v989w"};
2
+ require('./colors.css')
3
+
4
+ export { colors as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"typography__component_8rne9","bold":"typography__bold_8rne9","medium":"typography__medium_8rne9","regular":"typography__regular_8rne9"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
@@ -1,9 +1,9 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import './colors.module-08772334.js';
3
+ import './colors.module-37ac527a.js';
4
4
  import { Text } from './text/component.js';
5
5
  import './title/component.js';
6
- import './common.module-2f6fae5e.js';
6
+ import './common.module-3d6e256f.js';
7
7
  import { Title } from './title/index.js';
8
8
  import { TitleMobile } from './title-mobile/component.js';
9
9
  import { TitleResponsive } from './title-responsive/component.js';
package/modern/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import './colors.module-08772334.js';
3
+ import './colors.module-37ac527a.js';
4
4
  import './text/component.js';
5
5
  import './title/component.js';
6
- import './common.module-2f6fae5e.js';
6
+ import './common.module-3d6e256f.js';
7
7
  import './title/index.js';
8
8
  import './title-mobile/component.js';
9
9
  import './title-responsive/component.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { HTMLAttributes } from "react";
4
4
  import { Color } from "../colors";
5
5
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
6
- type TextProps = Omit<NativeProps, 'color'> & {
6
+ type TextBaseProps = {
7
7
  /**
8
8
  * [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
9
9
  */
@@ -23,7 +23,7 @@ type TextProps = Omit<NativeProps, 'color'> & {
23
23
  /**
24
24
  * HTML тег
25
25
  */
26
- tag?: 'p' | 'span' | 'div';
26
+ tag?: 'span' | 'div';
27
27
  /**
28
28
  * Css-класс для стилизации (native prop)
29
29
  */
@@ -36,40 +36,16 @@ type TextProps = Omit<NativeProps, 'color'> & {
36
36
  * Контент (native prop)
37
37
  */
38
38
  children?: React.ReactNode;
39
- };
40
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
41
- declare const Text: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
42
- /**
43
- * [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
44
- */
45
- view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps" | undefined;
46
- /**
47
- * Цвет текста
48
- */
49
- color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
50
- /**
51
- * Толщина шрифта
52
- */
53
- weight?: "regular" | "medium" | "bold" | undefined;
54
- /**
55
- * Делает цифры моноширинными
56
- */
57
- monospaceNumbers?: boolean | undefined;
58
39
  /**
59
- * HTML тег
60
- */
61
- tag?: "p" | "span" | "div" | undefined;
62
- /**
63
- * Css-класс для стилизации (native prop)
64
- */
65
- className?: string | undefined;
66
- /**
67
- * Id компонента для тестов
40
+ * Добавляет отступы к тэгу 'p'
68
41
  */
69
- dataTestId?: string | undefined;
70
- /**
71
- * Контент (native prop)
72
- */
73
- children?: React.ReactNode;
74
- } & React.RefAttributes<TextElementType>>;
42
+ defaultMargins?: never;
43
+ };
44
+ type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
45
+ tag?: 'p';
46
+ defaultMargins?: boolean;
47
+ };
48
+ type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);
49
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
50
+ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<TextElementType>>;
75
51
  export { TextProps, Text };
@@ -1,10 +1,14 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import cn from 'classnames';
3
- import { c as colors } from '../colors.module-08772334.js';
3
+ import { c as colors } from '../colors.module-37ac527a.js';
4
4
 
5
- var styles = {"paragraph":"typography__paragraph_2x4ms","primary-large":"typography__primary-large_2x4ms","primary-medium":"typography__primary-medium_2x4ms","primary-small":"typography__primary-small_2x4ms","secondary-large":"typography__secondary-large_2x4ms","secondary-medium":"typography__secondary-medium_2x4ms","secondary-small":"typography__secondary-small_2x4ms","component":"typography__component_2x4ms","caps":"typography__caps_2x4ms","bold":"typography__bold_2x4ms","medium":"typography__medium_2x4ms","regular":"typography__regular_2x4ms","monospace":"typography__monospace_2x4ms"};
5
+ 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"};
6
6
  require('./index.css')
7
7
 
8
- const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, color, className, dataTestId, children, ...restProps }, ref) => (React.createElement(Component, { className: cn({ [styles.paragraph]: Component === 'p', [styles.monospace]: monospaceNumbers }, className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref, ...restProps }, children)));
8
+ const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, defaultMargins = true, color, className, dataTestId, children, ...restProps }, ref) => (React.createElement(Component, { className: cn({
9
+ [styles.paragraph]: Component === 'p' && !defaultMargins,
10
+ [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
11
+ [styles.monospace]: monospaceNumbers,
12
+ }, className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref, ...restProps }, children)));
9
13
 
10
14
  export { Text };