@alfalab/core-components-typography 6.0.14 → 6.0.15-alfasans

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 (143) hide show
  1. package/colors.css +20 -20
  2. package/colors.js.map +1 -1
  3. package/colors.module.css.js +1 -1
  4. package/colors.module.css.js.map +1 -1
  5. package/component.js +8 -8
  6. package/component.js.map +1 -1
  7. package/cssm/colors.js.map +1 -1
  8. package/cssm/component.js +8 -8
  9. package/cssm/component.js.map +1 -1
  10. package/cssm/index.js +8 -8
  11. package/cssm/presets.js.map +1 -1
  12. package/cssm/text/component.js.map +1 -1
  13. package/cssm/text/index.module.css +40 -13
  14. package/cssm/title/component.d.ts +2 -8
  15. package/cssm/title/component.js +3 -6
  16. package/cssm/title/component.js.map +1 -1
  17. package/cssm/title/index.d.ts +1 -4
  18. package/cssm/title/index.js.map +1 -1
  19. package/cssm/title/index.module.css +23 -74
  20. package/cssm/title-mobile/component.d.ts +1 -4
  21. package/cssm/title-mobile/component.js.map +1 -1
  22. package/cssm/title-mobile/index.module.css +28 -45
  23. package/cssm/title-responsive/component.d.ts +1 -4
  24. package/cssm/title-responsive/component.js.map +1 -1
  25. package/esm/colors.css +20 -20
  26. package/esm/colors.js.map +1 -1
  27. package/esm/colors.module.css.js +1 -1
  28. package/esm/colors.module.css.js.map +1 -1
  29. package/esm/component.js.map +1 -1
  30. package/esm/index.js +1 -1
  31. package/esm/presets.js.map +1 -1
  32. package/esm/text/component.js.map +1 -1
  33. package/esm/text/index.css +82 -55
  34. package/esm/text/index.module.css.js +1 -1
  35. package/esm/text/index.module.css.js.map +1 -1
  36. package/esm/title/common.css +7 -7
  37. package/esm/title/common.module.css.js +1 -1
  38. package/esm/title/common.module.css.js.map +1 -1
  39. package/esm/title/component.d.ts +2 -8
  40. package/esm/title/component.js +2 -5
  41. package/esm/title/component.js.map +1 -1
  42. package/esm/title/index.css +38 -89
  43. package/esm/title/index.d.ts +1 -4
  44. package/esm/title/index.js.map +1 -1
  45. package/esm/title/index.module.css.js +1 -1
  46. package/esm/title/index.module.css.js.map +1 -1
  47. package/esm/title-mobile/component.d.ts +1 -4
  48. package/esm/title-mobile/component.js.map +1 -1
  49. package/esm/title-mobile/index.css +53 -70
  50. package/esm/title-mobile/index.module.css.js +1 -1
  51. package/esm/title-mobile/index.module.css.js.map +1 -1
  52. package/esm/title-responsive/component.d.ts +1 -4
  53. package/esm/title-responsive/component.js.map +1 -1
  54. package/index.js +8 -8
  55. package/modern/colors.css +20 -20
  56. package/modern/colors.js.map +1 -1
  57. package/modern/colors.module.css.js +1 -1
  58. package/modern/colors.module.css.js.map +1 -1
  59. package/modern/component.js.map +1 -1
  60. package/modern/index.js +1 -1
  61. package/modern/presets.js.map +1 -1
  62. package/modern/text/component.js.map +1 -1
  63. package/modern/text/index.css +82 -55
  64. package/modern/text/index.module.css.js +1 -1
  65. package/modern/text/index.module.css.js.map +1 -1
  66. package/modern/title/common.css +7 -7
  67. package/modern/title/common.module.css.js +1 -1
  68. package/modern/title/common.module.css.js.map +1 -1
  69. package/modern/title/component.d.ts +2 -8
  70. package/modern/title/component.js +1 -4
  71. package/modern/title/component.js.map +1 -1
  72. package/modern/title/index.css +38 -89
  73. package/modern/title/index.d.ts +1 -4
  74. package/modern/title/index.js.map +1 -1
  75. package/modern/title/index.module.css.js +1 -1
  76. package/modern/title/index.module.css.js.map +1 -1
  77. package/modern/title-mobile/component.d.ts +1 -4
  78. package/modern/title-mobile/component.js.map +1 -1
  79. package/modern/title-mobile/index.css +53 -70
  80. package/modern/title-mobile/index.module.css.js +1 -1
  81. package/modern/title-mobile/index.module.css.js.map +1 -1
  82. package/modern/title-responsive/component.d.ts +1 -4
  83. package/modern/title-responsive/component.js.map +1 -1
  84. package/moderncssm/colors.js.map +1 -1
  85. package/moderncssm/component.js.map +1 -1
  86. package/moderncssm/index.js +1 -1
  87. package/moderncssm/presets.js.map +1 -1
  88. package/moderncssm/text/component.js.map +1 -1
  89. package/moderncssm/text/index.module.css +37 -11
  90. package/moderncssm/title/component.d.ts +2 -8
  91. package/moderncssm/title/component.js +1 -4
  92. package/moderncssm/title/component.js.map +1 -1
  93. package/moderncssm/title/index.d.ts +1 -4
  94. package/moderncssm/title/index.js.map +1 -1
  95. package/moderncssm/title/index.module.css +20 -79
  96. package/moderncssm/title-mobile/component.d.ts +1 -4
  97. package/moderncssm/title-mobile/component.js.map +1 -1
  98. package/moderncssm/title-mobile/index.module.css +25 -40
  99. package/moderncssm/title-responsive/component.d.ts +1 -4
  100. package/moderncssm/title-responsive/component.js.map +1 -1
  101. package/package.json +6 -6
  102. package/presets.js.map +1 -1
  103. package/src/text/index.module.css +5 -4
  104. package/src/title/component.tsx +3 -8
  105. package/src/title/index.module.css +0 -8
  106. package/text/component.js.map +1 -1
  107. package/text/index.css +82 -55
  108. package/text/index.module.css.js +1 -1
  109. package/text/index.module.css.js.map +1 -1
  110. package/title/common.css +7 -7
  111. package/title/common.module.css.js +1 -1
  112. package/title/common.module.css.js.map +1 -1
  113. package/title/component.d.ts +2 -8
  114. package/title/component.js +2 -5
  115. package/title/component.js.map +1 -1
  116. package/title/index.css +38 -89
  117. package/title/index.d.ts +1 -4
  118. package/title/index.js.map +1 -1
  119. package/title/index.module.css.js +1 -1
  120. package/title/index.module.css.js.map +1 -1
  121. package/title-mobile/component.d.ts +1 -4
  122. package/title-mobile/component.js.map +1 -1
  123. package/title-mobile/index.css +53 -70
  124. package/title-mobile/index.module.css.js +1 -1
  125. package/title-mobile/index.module.css.js.map +1 -1
  126. package/title-responsive/component.d.ts +1 -4
  127. package/title-responsive/component.js.map +1 -1
  128. package/cssm/title/utils.d.ts +0 -1
  129. package/cssm/title/utils.js +0 -16
  130. package/cssm/title/utils.js.map +0 -1
  131. package/esm/title/utils.d.ts +0 -1
  132. package/esm/title/utils.js +0 -12
  133. package/esm/title/utils.js.map +0 -1
  134. package/modern/title/utils.d.ts +0 -1
  135. package/modern/title/utils.js +0 -12
  136. package/modern/title/utils.js.map +0 -1
  137. package/moderncssm/title/utils.d.ts +0 -1
  138. package/moderncssm/title/utils.js +0 -12
  139. package/moderncssm/title/utils.js.map +0 -1
  140. package/src/title/utils.ts +0 -14
  141. package/title/utils.d.ts +0 -1
  142. package/title/utils.js +0 -16
  143. package/title/utils.js.map +0 -1
@@ -3,186 +3,213 @@
3
3
  --gap-12: 12px;
4
4
  }
5
5
  :root {
6
- --font-family-system:
7
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
6
+ --font-family-alfasans:
7
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
8
+ Helvetica, sans-serif;
8
9
  }
9
- .typography__transparent_1j1xz {
10
+ .typography__transparent_1k9d4 {
10
11
  visibility: hidden;
11
12
  }
12
- .typography__skeleton_1j1xz {
13
+ .typography__skeleton_1k9d4 {
13
14
  position: absolute;
14
15
  inset: 0;
15
16
  }
16
- .typography__root_1j1xz {
17
+ .typography__root_1k9d4 {
17
18
  position: relative;
18
19
  }
19
20
  :root {
20
21
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
21
22
  }
22
- .typography__paragraph_1j1xz {
23
+ .typography__paragraph_1k9d4 {
23
24
  margin: var(--gap-0);
24
25
  padding: var(--gap-0);
25
26
  }
26
- .typography__paragraphWithMargins_1j1xz {
27
+ .typography__paragraphWithMargins_1k9d4 {
27
28
  padding: var(--gap-0);
28
29
  margin: var(--text-paragraph-margin-bottom);
29
30
  }
30
- .typography__component_1j1xz {
31
+ .typography__component_1k9d4 {
31
32
  font-size: 16px;
32
33
  line-height: 20px;
33
34
  font-weight: 400;
34
- font-family: var(--font-family-system);
35
+ letter-spacing: -0.24px;
36
+ font-family: var(--font-family-alfasans);
35
37
  }
36
- .typography__component_1j1xz.typography__bold_1j1xz {
38
+ .typography__component_1k9d4.typography__bold_1k9d4 {
37
39
  font-weight: 700;
40
+ letter-spacing: 0.43px;
38
41
  }
39
- .typography__component_1j1xz.typography__medium_1j1xz {
42
+ .typography__component_1k9d4.typography__medium_1k9d4 {
40
43
  font-weight: 500;
44
+ letter-spacing: -0.05px;
41
45
  }
42
- .typography__caps_1j1xz {
46
+ .typography__caps_1k9d4 {
43
47
  font-size: 12px;
44
48
  line-height: 16px;
45
49
  font-weight: 400;
46
50
  letter-spacing: 1.25px;
47
51
  text-transform: uppercase;
48
- font-family: var(--font-family-system);
52
+ font-family: var(--font-family-alfasans);
49
53
  }
50
- .typography__caps_1j1xz.typography__bold_1j1xz {
54
+ .typography__caps_1k9d4.typography__bold_1k9d4 {
51
55
  font-weight: 700;
52
56
  }
53
- .typography__caps_1j1xz.typography__medium_1j1xz {
57
+ .typography__caps_1k9d4.typography__medium_1k9d4 {
54
58
  font-weight: 500;
55
59
  }
56
- .typography__tagline_1j1xz {
60
+ .typography__tagline_1k9d4 {
57
61
  font-size: 12px;
58
62
  line-height: 16px;
59
63
  font-weight: 400;
60
64
  letter-spacing: 1.25px;
61
65
  text-transform: uppercase;
62
- font-family: var(--font-family-system);
66
+ font-family: var(--font-family-alfasans);
63
67
  }
64
- .typography__tagline_1j1xz.typography__bold_1j1xz {
68
+ .typography__tagline_1k9d4.typography__bold_1k9d4 {
65
69
  font-weight: 700;
66
70
  }
67
- .typography__tagline_1j1xz.typography__medium_1j1xz {
71
+ .typography__tagline_1k9d4.typography__medium_1k9d4 {
68
72
  font-weight: 500;
69
73
  }
70
- .typography__primary-large_1j1xz {
74
+ .typography__primary-large_1k9d4 {
71
75
  font-size: 18px;
72
76
  line-height: 24px;
73
77
  font-weight: 400;
74
- font-family: var(--font-family-system);
78
+ letter-spacing: -0.36px;
79
+ font-family: var(--font-family-alfasans);
75
80
  }
76
- .typography__primary-large_1j1xz.typography__bold_1j1xz {
81
+ .typography__primary-large_1k9d4.typography__bold_1k9d4 {
77
82
  font-weight: 700;
83
+ letter-spacing: 0.38px;
78
84
  }
79
- .typography__primary-large_1j1xz.typography__medium_1j1xz {
85
+ .typography__primary-large_1k9d4.typography__medium_1k9d4 {
80
86
  font-weight: 500;
87
+ letter-spacing: -0.17px;
81
88
  }
82
- .typography__primary-medium_1j1xz {
89
+ .typography__primary-medium_1k9d4 {
83
90
  font-size: 16px;
84
91
  line-height: 24px;
85
92
  font-weight: 400;
86
- font-family: var(--font-family-system);
93
+ letter-spacing: -0.24px;
94
+ font-family: var(--font-family-alfasans);
87
95
  }
88
- .typography__primary-medium_1j1xz.typography__bold_1j1xz {
96
+ .typography__primary-medium_1k9d4.typography__bold_1k9d4 {
89
97
  font-weight: 700;
98
+ letter-spacing: 0.43px;
90
99
  }
91
- .typography__primary-medium_1j1xz.typography__medium_1j1xz {
100
+ .typography__primary-medium_1k9d4.typography__medium_1k9d4 {
92
101
  font-weight: 500;
102
+ letter-spacing: -0.05px;
93
103
  }
94
- .typography__primary-small_1j1xz {
104
+ .typography__primary-small_1k9d4 {
95
105
  font-size: 14px;
96
106
  line-height: 20px;
97
107
  font-weight: 400;
98
- font-family: var(--font-family-system);
108
+ letter-spacing: -0.08px;
109
+ font-family: var(--font-family-alfasans);
99
110
  }
100
- .typography__primary-small_1j1xz.typography__bold_1j1xz {
111
+ .typography__primary-small_1k9d4.typography__bold_1k9d4 {
101
112
  font-weight: 700;
113
+ letter-spacing: 0.47px;
102
114
  }
103
- .typography__primary-small_1j1xz.typography__medium_1j1xz {
115
+ .typography__primary-small_1k9d4.typography__medium_1k9d4 {
104
116
  font-weight: 500;
117
+ letter-spacing: 0.07px;
105
118
  }
106
- .typography__component-primary_1j1xz {
119
+ .typography__component-primary_1k9d4 {
107
120
  font-size: 16px;
108
121
  line-height: 20px;
109
122
  font-weight: 400;
110
- font-family: var(--font-family-system);
123
+ letter-spacing: -0.24px;
124
+ font-family: var(--font-family-alfasans);
111
125
  }
112
- .typography__component-primary_1j1xz.typography__bold_1j1xz {
126
+ .typography__component-primary_1k9d4.typography__bold_1k9d4 {
113
127
  font-weight: 700;
128
+ letter-spacing: 0.43px;
114
129
  }
115
- .typography__component-primary_1j1xz.typography__medium_1j1xz {
130
+ .typography__component-primary_1k9d4.typography__medium_1k9d4 {
116
131
  font-weight: 500;
132
+ letter-spacing: -0.05px;
117
133
  }
118
- .typography__secondary-large_1j1xz {
134
+ .typography__secondary-large_1k9d4 {
119
135
  font-size: 13px;
120
136
  line-height: 16px;
121
137
  font-weight: 400;
122
- font-family: var(--font-family-system);
138
+ font-family: var(--font-family-alfasans);
123
139
  }
124
- .typography__secondary-large_1j1xz.typography__bold_1j1xz {
140
+ .typography__secondary-large_1k9d4.typography__bold_1k9d4 {
125
141
  font-weight: 700;
142
+ letter-spacing: 0.54px;
126
143
  }
127
- .typography__secondary-large_1j1xz.typography__medium_1j1xz {
144
+ .typography__secondary-large_1k9d4.typography__medium_1k9d4 {
128
145
  font-weight: 500;
146
+ letter-spacing: 0.13px;
129
147
  }
130
- .typography__secondary-medium_1j1xz {
148
+ .typography__secondary-medium_1k9d4 {
131
149
  font-size: 12px;
132
150
  line-height: 16px;
133
151
  font-weight: 400;
134
- font-family: var(--font-family-system);
152
+ letter-spacing: 0.06px;
153
+ font-family: var(--font-family-alfasans);
135
154
  }
136
- .typography__secondary-medium_1j1xz.typography__bold_1j1xz {
155
+ .typography__secondary-medium_1k9d4.typography__bold_1k9d4 {
137
156
  font-weight: 700;
157
+ letter-spacing: 0.57px;
138
158
  }
139
- .typography__secondary-medium_1j1xz.typography__medium_1j1xz {
159
+ .typography__secondary-medium_1k9d4.typography__medium_1k9d4 {
140
160
  font-weight: 500;
161
+ letter-spacing: 0.19px;
141
162
  }
142
- .typography__secondary-small_1j1xz {
163
+ .typography__secondary-small_1k9d4 {
143
164
  font-size: 11px;
144
165
  line-height: 16px;
145
166
  font-weight: 400;
146
- font-family: var(--font-family-system);
167
+ letter-spacing: 0.15px;
168
+ font-family: var(--font-family-alfasans);
147
169
  }
148
- .typography__secondary-small_1j1xz.typography__bold_1j1xz {
170
+ .typography__secondary-small_1k9d4.typography__bold_1k9d4 {
149
171
  font-weight: 700;
172
+ letter-spacing: 0.54px;
150
173
  }
151
- .typography__secondary-small_1j1xz.typography__medium_1j1xz {
174
+ .typography__secondary-small_1k9d4.typography__medium_1k9d4 {
152
175
  font-weight: 500;
176
+ letter-spacing: 0.24px;
153
177
  }
154
- .typography__component-secondary_1j1xz {
178
+ .typography__component-secondary_1k9d4 {
155
179
  font-size: 14px;
156
180
  line-height: 18px;
157
181
  font-weight: 400;
158
- font-family: var(--font-family-system);
182
+ letter-spacing: -0.08px;
183
+ font-family: var(--font-family-alfasans);
159
184
  }
160
- .typography__component-secondary_1j1xz.typography__bold_1j1xz {
185
+ .typography__component-secondary_1k9d4.typography__bold_1k9d4 {
161
186
  font-weight: 700;
187
+ letter-spacing: 0.47px;
162
188
  }
163
- .typography__component-secondary_1j1xz.typography__medium_1j1xz {
189
+ .typography__component-secondary_1k9d4.typography__medium_1k9d4 {
164
190
  font-weight: 500;
191
+ letter-spacing: 0.07px;
165
192
  }
166
- .typography__rowLimit1_1j1xz {
193
+ .typography__rowLimit1_1k9d4 {
167
194
  -webkit-line-clamp: 1;
168
195
  display: -webkit-box;
169
196
  -webkit-box-orient: vertical;
170
197
  overflow: hidden;
171
198
  word-break: break-all;
172
199
  }
173
- .typography__rowLimit2_1j1xz {
200
+ .typography__rowLimit2_1k9d4 {
174
201
  -webkit-line-clamp: 2;
175
202
  display: -webkit-box;
176
203
  -webkit-box-orient: vertical;
177
204
  overflow: hidden;
178
205
  }
179
- .typography__rowLimit3_1j1xz {
206
+ .typography__rowLimit3_1k9d4 {
180
207
  -webkit-line-clamp: 3;
181
208
  display: -webkit-box;
182
209
  -webkit-box-orient: vertical;
183
210
  overflow: hidden;
184
211
  }
185
- .typography__monospace_1j1xz {
212
+ .typography__monospace_1k9d4 {
186
213
  font-feature-settings: "tnum";
187
214
  font-variant-numeric: tabular-nums;
188
215
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"transparent":"typography__transparent_1j1xz","skeleton":"typography__skeleton_1j1xz","root":"typography__root_1j1xz","paragraph":"typography__paragraph_1j1xz","paragraphWithMargins":"typography__paragraphWithMargins_1j1xz","component":"typography__component_1j1xz","bold":"typography__bold_1j1xz","medium":"typography__medium_1j1xz","caps":"typography__caps_1j1xz","tagline":"typography__tagline_1j1xz","primary-large":"typography__primary-large_1j1xz","primary-medium":"typography__primary-medium_1j1xz","primary-small":"typography__primary-small_1j1xz","component-primary":"typography__component-primary_1j1xz","secondary-large":"typography__secondary-large_1j1xz","secondary-medium":"typography__secondary-medium_1j1xz","secondary-small":"typography__secondary-small_1j1xz","component-secondary":"typography__component-secondary_1j1xz","rowLimit1":"typography__rowLimit1_1j1xz","rowLimit2":"typography__rowLimit2_1j1xz","rowLimit3":"typography__rowLimit3_1j1xz","monospace":"typography__monospace_1j1xz"};
3
+ var styles = {"transparent":"typography__transparent_1k9d4","skeleton":"typography__skeleton_1k9d4","root":"typography__root_1k9d4","paragraph":"typography__paragraph_1k9d4","paragraphWithMargins":"typography__paragraphWithMargins_1k9d4","component":"typography__component_1k9d4","bold":"typography__bold_1k9d4","medium":"typography__medium_1k9d4","caps":"typography__caps_1k9d4","tagline":"typography__tagline_1k9d4","primary-large":"typography__primary-large_1k9d4","primary-medium":"typography__primary-medium_1k9d4","primary-small":"typography__primary-small_1k9d4","component-primary":"typography__component-primary_1k9d4","secondary-large":"typography__secondary-large_1k9d4","secondary-medium":"typography__secondary-medium_1k9d4","secondary-small":"typography__secondary-small_1k9d4","component-secondary":"typography__component-secondary_1k9d4","rowLimit1":"typography__rowLimit1_1k9d4","rowLimit2":"typography__rowLimit2_1k9d4","rowLimit3":"typography__rowLimit3_1k9d4","monospace":"typography__monospace_1k9d4"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), paragraph_$(view);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n/* prettier-ignore */\n@each $view, $token in (component, component_primary), (caps, caps), (tagline, tagline) {\n .$(view) {\n @mixin paragraph_$(token);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(token), paragraph_$(token);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(token), paragraph_$(token);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;"}
@@ -1,34 +1,34 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .typography__transparent_3kstk {
4
+ .typography__transparent_wzhd7 {
5
5
  visibility: hidden;
6
6
  }
7
- .typography__skeleton_3kstk {
7
+ .typography__skeleton_wzhd7 {
8
8
  position: absolute;
9
9
  inset: 0;
10
10
  }
11
- .typography__root_3kstk {
11
+ .typography__root_wzhd7 {
12
12
  position: relative;
13
13
  }
14
- .typography__component_3kstk {
14
+ .typography__component_wzhd7 {
15
15
  margin: var(--gap-0);
16
16
  padding: var(--gap-0);
17
17
  }
18
- .typography__rowLimit1_3kstk {
18
+ .typography__rowLimit1_wzhd7 {
19
19
  -webkit-line-clamp: 1;
20
20
  display: -webkit-box;
21
21
  -webkit-box-orient: vertical;
22
22
  overflow: hidden;
23
23
  word-break: break-all;
24
24
  }
25
- .typography__rowLimit2_3kstk {
25
+ .typography__rowLimit2_wzhd7 {
26
26
  -webkit-line-clamp: 2;
27
27
  display: -webkit-box;
28
28
  -webkit-box-orient: vertical;
29
29
  overflow: hidden;
30
30
  }
31
- .typography__rowLimit3_3kstk {
31
+ .typography__rowLimit3_wzhd7 {
32
32
  -webkit-line-clamp: 3;
33
33
  display: -webkit-box;
34
34
  -webkit-box-orient: vertical;
@@ -1,6 +1,6 @@
1
1
  import './common.css';
2
2
 
3
- var commonStyles = {"transparent":"typography__transparent_3kstk","skeleton":"typography__skeleton_3kstk","root":"typography__root_3kstk","component":"typography__component_3kstk","rowLimit1":"typography__rowLimit1_3kstk","rowLimit2":"typography__rowLimit2_3kstk","rowLimit3":"typography__rowLimit3_3kstk"};
3
+ var commonStyles = {"transparent":"typography__transparent_wzhd7","skeleton":"typography__skeleton_wzhd7","root":"typography__root_wzhd7","component":"typography__component_wzhd7","rowLimit1":"typography__rowLimit1_wzhd7","rowLimit2":"typography__rowLimit2_wzhd7","rowLimit3":"typography__rowLimit3_wzhd7"};
4
4
 
5
5
  export { commonStyles as default };
6
6
  //# sourceMappingURL=common.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
1
+ {"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;"}
@@ -22,10 +22,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
22
22
  /**
23
23
  * Шрифт текста
24
24
  */
25
- font?: 'styrene' | 'system' | 'alfasans' | {
26
- font: 'alfasans';
27
- systemCompat: boolean;
28
- };
25
+ font?: 'styrene' | 'system';
29
26
  /**
30
27
  * Добавляет отступы
31
28
  */
@@ -86,10 +83,7 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
86
83
  /**
87
84
  * Шрифт текста
88
85
  */
89
- font?: "styrene" | "system" | "alfasans" | {
90
- font: "alfasans";
91
- systemCompat: boolean;
92
- };
86
+ font?: "styrene" | "system";
93
87
  /**
94
88
  * Добавляет отступы
95
89
  */
@@ -2,16 +2,14 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef, Fragment } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
- import { isObject } from '@alfalab/core-components-shared/esm';
6
5
  import { useSkeleton } from '@alfalab/core-components-skeleton/esm';
7
- import { getDefaultWeight } from './utils.js';
8
6
  import colors from '../colors.module.css.js';
9
7
  import commonStyles from './common.module.css.js';
10
8
 
11
9
  var TitleBase = forwardRef(function (_a, ref) {
12
10
  var _b;
13
- 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, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? getDefaultWeight(isObject(font) ? font.font : font, platform) : _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, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
14
- var _h = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
11
+ var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d; _a.font; _a.platform; var _e = _a.weight, weight = _e === void 0 ? 'bold' : _e, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? false : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
12
+ var _g = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _g.renderSkeleton, textRef = _g.textRef;
15
13
  var Root = showSkeleton ? 'div' : Fragment;
16
14
  var rootProps = showSkeleton
17
15
  ? { className: cn(commonStyles.root, className) }
@@ -20,7 +18,6 @@ var TitleBase = forwardRef(function (_a, ref) {
20
18
  React.createElement(Component, __assign({ className: cn(commonStyles.component, styles.component, !showSkeleton && className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors[color], (_b = {},
21
19
  _b[commonStyles["rowLimit".concat(rowLimit)]] = rowLimit,
22
20
  _b[commonStyles.transparent] = showSkeleton,
23
- _b[styles.font] = (isObject(font) && !font.systemCompat) || !(font === 'system'),
24
21
  _b)), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]) }, restProps), children),
25
22
  showSkeleton && (React.createElement("div", { className: commonStyles.skeleton }, renderSkeleton({
26
23
  wrapperClassName: cn(defaultMargins && styles["margins-".concat(view)]),
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(font) ? font.font : font, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(commonStyles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n !showSkeleton && className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n [styles.font]:\n (isObject(font) && !font.systemCompat) || !(font === 'system'),\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={commonStyles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport colors from '../colors.module.css';\nimport commonStyles from './common.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system';\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font,\n platform,\n weight = 'bold',\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(commonStyles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n commonStyles.component,\n styles.component,\n !showSkeleton && className,\n styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],\n defaultMargins && styles[`margins-${view}`],\n color && colors[color],\n {\n [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,\n [commonStyles.transparent]: showSkeleton,\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={commonStyles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;IAyFa,SAAS,GAAG,UAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,GAAsB,CAAA,CAAjB,SAAS,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,CAAA,CACtB,EAAA,GAAA,EAAA,CAAA,IAAe,CAAA,CAAf,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,QAAQ,GAAA,EAAA,CAAA,CACX,EAAA,CAAA,IAAA,CAAA,CACI,EAAA,CAAA,QAAA,CAAA,KACR,EAAA,GAAA,EAAA,CAAA,MAAe,CAAA,CAAf,MAAM,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,GAAA,EAAA,CAAA,CACf,EAAA,GAAA,EAAA,CAAA,cAAsB,CAAA,CAAtB,cAAc,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,CAAA,CACtB,KAAK,GAAA,EAAA,CAAA,KAAA,CAAA,CACL,SAAS,GAAA,EAAA,CAAA,SAAA,CAAA,CACT,UAAU,GAAA,EAAA,CAAA,UAAA,CAAA,CACV,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA,CACR,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA,CACR,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA,CACN,aAAa,GAAA,EAAA,CAAA,aAAA,CAAA,CACb,YAAY,GAAA,EAAA,CAAA,YAAA,CAAA,CACT,SAAS,GAAA,MAAA,CAAA,EAAA,EAfhB,sKAgBC;AAGK,IAAA,IAAA,EAAA,GAA8B,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAC5E,IAAM,IAAI,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ;IAC5C,IAAM,SAAS,GAAgC;AAC3C,UAAE,EAAE,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC;UAC7C,EAAE;AAER,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAA;QACf,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,QAAA,CAAA,EACN,SAAS,EAAE,EAAE,CACT,YAAY,CAAC,SAAS,EACtB,MAAM,CAAC,SAAS,EAChB,CAAC,YAAY,IAAI,SAAS,EAC1B,MAAM,CAAC,EAAA,CAAA,MAAA,CAAG,MAAM,KAAK,SAAS,GAAG,UAAU,GAAG,EAAE,SAAG,IAAI,CAAE,CAAC,EAC1D,cAAc,IAAI,MAAM,CAAC,UAAA,CAAA,MAAA,CAAW,IAAI,CAAE,CAAC,EAC3C,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAA,EAAA,GAAA,EAAA;AAElB,gBAAA,EAAA,CAAC,YAAY,CAAC,UAAA,CAAA,MAAA,CAAW,QAAQ,CAAE,CAAC,IAAG,QAAQ;AAC/C,gBAAA,EAAA,CAAC,YAAY,CAAC,WAAW,CAAA,GAAG,YAAY;AAE/C,gBAAA,EAAA,EAAA,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAAA,EAC1B,SAAS,CAAA,EAEZ,QAAQ,CACD;QACX,YAAY,KACT,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,YAAY,CAAC,QAAQ,EAAA,EAChC,cAAc,CAAC;YACZ,gBAAgB,EAAE,EAAE,CAAC,cAAc,IAAI,MAAM,CAAC,UAAA,CAAA,MAAA,CAAW,IAAI,CAAE,CAAC,CAAC;AACjE,YAAA,UAAU,EAAA,UAAA;AACb,SAAA,CAAC,CACA,CACT,CACE;AAEf,CAAC;;"}
@@ -6,143 +6,92 @@
6
6
  --gap-48: 48px;
7
7
  }
8
8
  :root {
9
- --font-family-system:
10
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
11
- --font-family-styrene:
12
- 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
13
- sans-serif;
9
+ --font-family-alfasans:
10
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
11
+ Helvetica, sans-serif;
14
12
  }
15
- .typography__xlarge_xd7yh {
13
+ .typography__xlarge_8713p {
16
14
  font-size: 48px;
17
15
  line-height: 52px;
18
16
  font-weight: 700;
19
- font-family: var(--font-family-system);
17
+ letter-spacing: 0.1px;
18
+ font-family: var(--font-family-alfasans);
20
19
  }
21
- .typography__xlarge_xd7yh.typography__font_xd7yh {
22
- line-height: 64px;
23
- font-weight: 500;
24
- font-feature-settings: 'ss01';
25
- font-family: var(--font-family-styrene);
26
- }
27
- .typography__regular-xlarge_xd7yh {
20
+ .typography__regular-xlarge_8713p {
28
21
  font-size: 48px;
29
22
  line-height: 52px;
30
23
  font-weight: 400;
31
- font-family: var(--font-family-system);
24
+ letter-spacing: -2.1px;
25
+ font-family: var(--font-family-alfasans);
32
26
  }
33
- .typography__regular-xlarge_xd7yh.typography__font_xd7yh {
34
- line-height: 64px;
35
- font-feature-settings: 'ss01';
36
- font-family: var(--font-family-styrene);
37
- }
38
- .typography__large_xd7yh {
27
+ .typography__large_8713p {
39
28
  font-size: 40px;
40
29
  line-height: 48px;
41
30
  font-weight: 700;
42
- font-family: var(--font-family-system);
31
+ letter-spacing: 0.1px;
32
+ font-family: var(--font-family-alfasans);
43
33
  }
44
- .typography__large_xd7yh.typography__font_xd7yh {
45
- font-weight: 500;
46
- font-feature-settings: 'ss01';
47
- font-family: var(--font-family-styrene);
48
- }
49
- .typography__regular-large_xd7yh {
34
+ .typography__regular-large_8713p {
50
35
  font-size: 40px;
51
36
  line-height: 48px;
52
37
  font-weight: 400;
53
- font-family: var(--font-family-system);
38
+ letter-spacing: -1.7px;
39
+ font-family: var(--font-family-alfasans);
54
40
  }
55
- .typography__regular-large_xd7yh.typography__font_xd7yh {
56
- font-feature-settings: 'ss01';
57
- font-family: var(--font-family-styrene);
58
- }
59
- .typography__medium_xd7yh {
41
+ .typography__medium_8713p {
60
42
  font-size: 30px;
61
43
  line-height: 36px;
62
44
  font-weight: 700;
63
- font-family: var(--font-family-system);
45
+ letter-spacing: 0.1px;
46
+ font-family: var(--font-family-alfasans);
64
47
  }
65
- .typography__medium_xd7yh.typography__font_xd7yh {
66
- font-size: 32px;
67
- line-height: 40px;
68
- font-weight: 500;
69
- font-feature-settings: 'ss01';
70
- font-family: var(--font-family-styrene);
71
- }
72
- .typography__regular-medium_xd7yh {
48
+ .typography__regular-medium_8713p {
73
49
  font-size: 30px;
74
50
  line-height: 36px;
75
51
  font-weight: 400;
76
- font-family: var(--font-family-system);
52
+ letter-spacing: -1.25px;
53
+ font-family: var(--font-family-alfasans);
77
54
  }
78
- .typography__regular-medium_xd7yh.typography__font_xd7yh {
79
- font-size: 32px;
80
- line-height: 40px;
81
- font-feature-settings: 'ss01';
82
- font-family: var(--font-family-styrene);
83
- }
84
- .typography__small_xd7yh {
55
+ .typography__small_8713p {
85
56
  font-size: 22px;
86
57
  line-height: 26px;
87
58
  font-weight: 700;
88
- font-family: var(--font-family-system);
59
+ letter-spacing: 0.2px;
60
+ font-family: var(--font-family-alfasans);
89
61
  }
90
- .typography__small_xd7yh.typography__font_xd7yh {
91
- font-size: 24px;
92
- line-height: 32px;
93
- font-weight: 500;
94
- font-feature-settings: 'ss01';
95
- font-family: var(--font-family-styrene);
96
- }
97
- .typography__regular-small_xd7yh {
62
+ .typography__regular-small_8713p {
98
63
  font-size: 22px;
99
64
  line-height: 26px;
100
65
  font-weight: 400;
101
- font-family: var(--font-family-system);
66
+ letter-spacing: -0.8px;
67
+ font-family: var(--font-family-alfasans);
102
68
  }
103
- .typography__regular-small_xd7yh.typography__font_xd7yh {
104
- font-size: 24px;
105
- line-height: 32px;
106
- font-feature-settings: 'ss01';
107
- font-family: var(--font-family-styrene);
108
- }
109
- .typography__xsmall_xd7yh {
69
+ .typography__xsmall_8713p {
110
70
  font-size: 18px;
111
71
  line-height: 22px;
112
72
  font-weight: 700;
113
- font-family: var(--font-family-system);
73
+ letter-spacing: 0.38px;
74
+ font-family: var(--font-family-alfasans);
114
75
  }
115
- .typography__xsmall_xd7yh.typography__font_xd7yh {
116
- font-size: 20px;
117
- line-height: 24px;
118
- font-weight: 500;
119
- font-feature-settings: 'ss01';
120
- font-family: var(--font-family-styrene);
121
- }
122
- .typography__regular-xsmall_xd7yh {
76
+ .typography__regular-xsmall_8713p {
123
77
  font-size: 18px;
124
78
  line-height: 22px;
125
79
  font-weight: 400;
126
- font-family: var(--font-family-system);
80
+ letter-spacing: -0.36px;
81
+ font-family: var(--font-family-alfasans);
127
82
  }
128
- .typography__regular-xsmall_xd7yh.typography__font_xd7yh {
129
- font-size: 20px;
130
- line-height: 24px;
131
- font-feature-settings: 'ss01';
132
- font-family: var(--font-family-styrene);
133
- }
134
- .typography__component_xd7yh.typography__margins-xlarge_xd7yh {
83
+ .typography__component_8713p.typography__margins-xlarge_8713p {
135
84
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
136
85
  }
137
- .typography__component_xd7yh.typography__margins-large_xd7yh {
86
+ .typography__component_8713p.typography__margins-large_8713p {
138
87
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
139
88
  }
140
- .typography__component_xd7yh.typography__margins-medium_xd7yh {
89
+ .typography__component_8713p.typography__margins-medium_8713p {
141
90
  margin: var(--gap-48) var(--gap-0) var(--gap-24);
142
91
  }
143
- .typography__component_xd7yh.typography__margins-small_xd7yh {
92
+ .typography__component_8713p.typography__margins-small_8713p {
144
93
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
145
94
  }
146
- .typography__component_xd7yh.typography__margins-xsmall_xd7yh {
95
+ .typography__component_8713p.typography__margins-xsmall_8713p {
147
96
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
148
97
  }
@@ -5,10 +5,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<H
5
5
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
6
6
  color?: import("..").Color;
7
7
  weight?: "regular" | "medium" | "bold" | "semibold";
8
- font?: "styrene" | "system" | "alfasans" | {
9
- font: "alfasans";
10
- systemCompat: boolean;
11
- };
8
+ font?: "styrene" | "system";
12
9
  defaultMargins?: boolean;
13
10
  className?: string;
14
11
  dataTestId?: string;