@alfalab/core-components-typography 6.0.9-alfasans → 6.0.9

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 (88) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/cssm/text/index.module.css +13 -40
  4. package/cssm/title/component.d.ts +8 -2
  5. package/cssm/title/component.js +6 -3
  6. package/cssm/title/component.js.map +1 -1
  7. package/cssm/title/index.d.ts +4 -1
  8. package/cssm/title/index.module.css +74 -23
  9. package/cssm/title/utils.d.ts +1 -0
  10. package/cssm/title/utils.js +16 -0
  11. package/cssm/title/utils.js.map +1 -0
  12. package/cssm/title-mobile/component.d.ts +4 -1
  13. package/cssm/title-mobile/index.module.css +45 -28
  14. package/cssm/title-responsive/component.d.ts +4 -1
  15. package/esm/colors.css +20 -20
  16. package/esm/colors.module.css.js +1 -1
  17. package/esm/text/index.css +53 -80
  18. package/esm/text/index.module.css.js +1 -1
  19. package/esm/title/common.css +5 -5
  20. package/esm/title/common.module.css.js +1 -1
  21. package/esm/title/component.d.ts +8 -2
  22. package/esm/title/component.js +5 -2
  23. package/esm/title/component.js.map +1 -1
  24. package/esm/title/index.css +89 -38
  25. package/esm/title/index.d.ts +4 -1
  26. package/esm/title/index.module.css.js +1 -1
  27. package/esm/title/index.module.css.js.map +1 -1
  28. package/esm/title/utils.d.ts +1 -0
  29. package/esm/title/utils.js +12 -0
  30. package/esm/title/utils.js.map +1 -0
  31. package/esm/title-mobile/component.d.ts +4 -1
  32. package/esm/title-mobile/index.css +70 -53
  33. package/esm/title-mobile/index.module.css.js +1 -1
  34. package/esm/title-responsive/component.d.ts +4 -1
  35. package/modern/colors.css +20 -20
  36. package/modern/colors.module.css.js +1 -1
  37. package/modern/text/index.css +53 -80
  38. package/modern/text/index.module.css.js +1 -1
  39. package/modern/title/common.css +5 -5
  40. package/modern/title/common.module.css.js +1 -1
  41. package/modern/title/component.d.ts +8 -2
  42. package/modern/title/component.js +4 -1
  43. package/modern/title/component.js.map +1 -1
  44. package/modern/title/index.css +89 -38
  45. package/modern/title/index.d.ts +4 -1
  46. package/modern/title/index.module.css.js +1 -1
  47. package/modern/title/index.module.css.js.map +1 -1
  48. package/modern/title/utils.d.ts +1 -0
  49. package/modern/title/utils.js +12 -0
  50. package/modern/title/utils.js.map +1 -0
  51. package/modern/title-mobile/component.d.ts +4 -1
  52. package/modern/title-mobile/index.css +70 -53
  53. package/modern/title-mobile/index.module.css.js +1 -1
  54. package/modern/title-responsive/component.d.ts +4 -1
  55. package/moderncssm/text/index.module.css +11 -37
  56. package/moderncssm/title/component.d.ts +8 -2
  57. package/moderncssm/title/component.js +4 -1
  58. package/moderncssm/title/component.js.map +1 -1
  59. package/moderncssm/title/index.d.ts +4 -1
  60. package/moderncssm/title/index.module.css +79 -20
  61. package/moderncssm/title/utils.d.ts +1 -0
  62. package/moderncssm/title/utils.js +12 -0
  63. package/moderncssm/title/utils.js.map +1 -0
  64. package/moderncssm/title-mobile/component.d.ts +4 -1
  65. package/moderncssm/title-mobile/index.module.css +40 -25
  66. package/moderncssm/title-responsive/component.d.ts +4 -1
  67. package/package.json +6 -6
  68. package/src/title/component.tsx +8 -3
  69. package/src/title/index.module.css +8 -0
  70. package/src/title/utils.ts +14 -0
  71. package/text/index.css +53 -80
  72. package/text/index.module.css.js +1 -1
  73. package/title/common.css +5 -5
  74. package/title/common.module.css.js +1 -1
  75. package/title/component.d.ts +8 -2
  76. package/title/component.js +5 -2
  77. package/title/component.js.map +1 -1
  78. package/title/index.css +89 -38
  79. package/title/index.d.ts +4 -1
  80. package/title/index.module.css.js +1 -1
  81. package/title/index.module.css.js.map +1 -1
  82. package/title/utils.d.ts +1 -0
  83. package/title/utils.js +16 -0
  84. package/title/utils.js.map +1 -0
  85. package/title-mobile/component.d.ts +4 -1
  86. package/title-mobile/index.css +70 -53
  87. package/title-mobile/index.module.css.js +1 -1
  88. package/title-responsive/component.d.ts +4 -1
@@ -8,99 +8,116 @@
8
8
  --gap-40: var(--gap-3xl);
9
9
  }
10
10
  :root {
11
- --font-family-alfasans:
12
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
13
- Helvetica, sans-serif;
11
+ --font-family-system:
12
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
13
+ --font-family-styrene:
14
+ 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
15
+ sans-serif;
14
16
  }
15
17
  .xlarge {
16
18
  font-size: 34px;
17
19
  line-height: 40px;
18
- font-weight: 500;
19
- letter-spacing: -0.32px;
20
- font-family: var(--font-family-alfasans);
20
+ font-weight: 600;
21
+ font-family: var(--font-family-system);
21
22
  }
22
23
  .xlarge.font {
24
+ font-weight: 500;
25
+ font-feature-settings: 'ss01';
26
+ font-family: var(--font-family-styrene);
23
27
  }
24
28
  .regular-xlarge {
25
29
  font-size: 34px;
26
30
  line-height: 40px;
27
31
  font-weight: 400;
28
- letter-spacing: -1.36px;
29
- font-family: var(--font-family-alfasans);
32
+ font-family: var(--font-family-system);
30
33
  }
31
34
  .regular-xlarge.system {
35
+ font-feature-settings: 'ss01';
36
+ font-family: var(--font-family-styrene);
32
37
  }
33
38
  .large {
34
39
  font-size: 30px;
35
40
  line-height: 36px;
36
- font-weight: 500;
37
- letter-spacing: -0.25px;
38
- font-family: var(--font-family-alfasans);
41
+ font-weight: 600;
42
+ font-family: var(--font-family-system);
39
43
  }
40
44
  .large.font {
45
+ font-weight: 500;
46
+ font-feature-settings: 'ss01';
47
+ font-family: var(--font-family-styrene);
41
48
  }
42
49
  .regular-large {
43
50
  font-size: 30px;
44
51
  line-height: 36px;
45
52
  font-weight: 400;
46
- letter-spacing: -1.25px;
47
- font-family: var(--font-family-alfasans);
53
+ font-family: var(--font-family-system);
48
54
  }
49
55
  .regular-large.system {
56
+ font-feature-settings: 'ss01';
57
+ font-family: var(--font-family-styrene);
50
58
  }
51
59
  .medium {
52
60
  font-size: 26px;
53
61
  line-height: 32px;
54
- font-weight: 500;
55
- letter-spacing: -0.25px;
56
- font-family: var(--font-family-alfasans);
62
+ font-weight: 600;
63
+ font-family: var(--font-family-system);
57
64
  }
58
65
  .medium.font {
66
+ font-weight: 500;
67
+ font-feature-settings: 'ss01';
68
+ font-family: var(--font-family-styrene);
59
69
  }
60
70
  .regular-medium {
61
71
  font-size: 26px;
62
72
  line-height: 32px;
63
73
  font-weight: 400;
64
- letter-spacing: -1px;
65
- font-family: var(--font-family-alfasans);
74
+ font-family: var(--font-family-system);
66
75
  }
67
76
  .regular-medium.system {
77
+ font-feature-settings: 'ss01';
78
+ font-family: var(--font-family-styrene);
68
79
  }
69
80
  .small {
70
81
  font-size: 20px;
71
82
  line-height: 28px;
72
- font-weight: 500;
73
- letter-spacing: -0.15px;
74
- font-family: var(--font-family-alfasans);
83
+ font-weight: 600;
84
+ font-family: var(--font-family-system);
75
85
  }
76
86
  .small.font {
87
+ font-weight: 500;
88
+ font-feature-settings: 'ss01';
89
+ font-family: var(--font-family-styrene);
77
90
  }
78
91
  .regular-small {
79
92
  font-size: 20px;
80
93
  line-height: 28px;
81
94
  font-weight: 400;
82
- letter-spacing: -0.68px;
83
- font-family: var(--font-family-alfasans);
95
+ font-family: var(--font-family-system);
84
96
  }
85
97
  .regular-small.system {
98
+ font-feature-settings: 'ss01';
99
+ font-family: var(--font-family-styrene);
86
100
  }
87
101
  .xsmall {
88
102
  font-size: 16px;
89
103
  line-height: 20px;
90
- font-weight: 500;
91
- letter-spacing: 0.17px;
92
- font-family: var(--font-family-alfasans);
104
+ font-weight: 600;
105
+ font-family: var(--font-family-system);
93
106
  }
94
107
  .xsmall.font {
108
+ font-weight: 500;
109
+ font-feature-settings: 'ss01';
110
+ font-family: var(--font-family-styrene);
95
111
  }
96
112
  .regular-xsmall {
97
113
  font-size: 16px;
98
114
  line-height: 20px;
99
115
  font-weight: 400;
100
- letter-spacing: -0.24px;
101
- font-family: var(--font-family-alfasans);
116
+ font-family: var(--font-family-system);
102
117
  }
103
118
  .regular-xsmall.system {
119
+ font-feature-settings: 'ss01';
120
+ font-family: var(--font-family-styrene);
104
121
  }
105
122
  .component.margins-xlarge {
106
123
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
@@ -16,7 +16,10 @@ export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React
16
16
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
17
17
  color?: import("..").Color;
18
18
  weight?: "regular" | "medium" | "bold" | "semibold";
19
- font?: "styrene" | "system";
19
+ font?: "styrene" | "system" | "alfasans" | {
20
+ font: "alfasans";
21
+ systemCompat: boolean;
22
+ };
20
23
  defaultMargins?: boolean;
21
24
  className?: string;
22
25
  dataTestId?: string;
package/esm/colors.css CHANGED
@@ -20,63 +20,63 @@
20
20
  --color-static-text-tertiary-dark: rgba(5, 8, 29, 0.38);
21
21
  --color-static-text-tertiary-light: rgba(233, 233, 250, 0.37);
22
22
  }
23
- .typography__tertiary_usno3 {
23
+ .typography__tertiary_6zo5v {
24
24
  color: var(--color-light-text-tertiary);
25
25
  }
26
- .typography__disabled_usno3 {
26
+ .typography__disabled_6zo5v {
27
27
  color: var(--color-light-text-quaternary);
28
28
  }
29
- .typography__accent_usno3 {
29
+ .typography__accent_6zo5v {
30
30
  color: var(--color-light-accent-primary);
31
31
  }
32
- .typography__primary_usno3 {
32
+ .typography__primary_6zo5v {
33
33
  color: var(--color-light-text-primary);
34
34
  }
35
- .typography__attention_usno3 {
35
+ .typography__attention_6zo5v {
36
36
  color: var(--color-light-text-attention);
37
37
  }
38
- .typography__positive_usno3 {
38
+ .typography__positive_6zo5v {
39
39
  color: var(--color-light-text-positive);
40
40
  }
41
- .typography__secondary_usno3 {
41
+ .typography__secondary_6zo5v {
42
42
  color: var(--color-light-text-secondary);
43
43
  }
44
- .typography__tertiary-inverted_usno3 {
44
+ .typography__tertiary-inverted_6zo5v {
45
45
  color: var(--color-light-text-tertiary-inverted);
46
46
  }
47
- .typography__primary-inverted_usno3 {
47
+ .typography__primary-inverted_6zo5v {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .typography__secondary-inverted_usno3 {
50
+ .typography__secondary-inverted_6zo5v {
51
51
  color: var(--color-light-text-secondary-inverted);
52
52
  }
53
- .typography__link_usno3 {
53
+ .typography__link_6zo5v {
54
54
  color: var(--color-light-text-info);
55
55
  }
56
- .typography__negative_usno3 {
56
+ .typography__negative_6zo5v {
57
57
  color: var(--color-light-text-negative);
58
58
  }
59
- .typography__static-primary-light_usno3 {
59
+ .typography__static-primary-light_6zo5v {
60
60
  color: var(--color-static-text-primary-light);
61
61
  }
62
- .typography__static-secondary-light_usno3 {
62
+ .typography__static-secondary-light_6zo5v {
63
63
  color: var(--color-static-text-secondary-light);
64
64
  }
65
- .typography__static-tertiary-light_usno3 {
65
+ .typography__static-tertiary-light_6zo5v {
66
66
  color: var(--color-static-text-tertiary-light);
67
67
  }
68
- .typography__static-primary-dark_usno3 {
68
+ .typography__static-primary-dark_6zo5v {
69
69
  color: var(--color-static-text-primary-dark);
70
70
  }
71
- .typography__static-secondary-dark_usno3 {
71
+ .typography__static-secondary-dark_6zo5v {
72
72
  color: var(--color-static-text-secondary-dark);
73
73
  }
74
- .typography__static-tertiary-dark_usno3 {
74
+ .typography__static-tertiary-dark_6zo5v {
75
75
  color: var(--color-static-text-tertiary-dark);
76
76
  }
77
- .typography__static-accent_usno3 {
77
+ .typography__static-accent_6zo5v {
78
78
  color: var(--color-static-accent-primary);
79
79
  }
80
- .typography__static-positive_usno3 {
80
+ .typography__static-positive_6zo5v {
81
81
  color: var(--color-static-text-positive);
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import './colors.css';
2
2
 
3
- var colors = {"tertiary":"typography__tertiary_usno3","disabled":"typography__disabled_usno3","accent":"typography__accent_usno3","primary":"typography__primary_usno3","attention":"typography__attention_usno3","positive":"typography__positive_usno3","secondary":"typography__secondary_usno3","tertiary-inverted":"typography__tertiary-inverted_usno3","primary-inverted":"typography__primary-inverted_usno3","secondary-inverted":"typography__secondary-inverted_usno3","link":"typography__link_usno3","negative":"typography__negative_usno3","static-primary-light":"typography__static-primary-light_usno3","static-secondary-light":"typography__static-secondary-light_usno3","static-tertiary-light":"typography__static-tertiary-light_usno3","static-primary-dark":"typography__static-primary-dark_usno3","static-secondary-dark":"typography__static-secondary-dark_usno3","static-tertiary-dark":"typography__static-tertiary-dark_usno3","static-accent":"typography__static-accent_usno3","static-positive":"typography__static-positive_usno3"};
3
+ var colors = {"tertiary":"typography__tertiary_6zo5v","disabled":"typography__disabled_6zo5v","accent":"typography__accent_6zo5v","primary":"typography__primary_6zo5v","attention":"typography__attention_6zo5v","positive":"typography__positive_6zo5v","secondary":"typography__secondary_6zo5v","tertiary-inverted":"typography__tertiary-inverted_6zo5v","primary-inverted":"typography__primary-inverted_6zo5v","secondary-inverted":"typography__secondary-inverted_6zo5v","link":"typography__link_6zo5v","negative":"typography__negative_6zo5v","static-primary-light":"typography__static-primary-light_6zo5v","static-secondary-light":"typography__static-secondary-light_6zo5v","static-tertiary-light":"typography__static-tertiary-light_6zo5v","static-primary-dark":"typography__static-primary-dark_6zo5v","static-secondary-dark":"typography__static-secondary-dark_6zo5v","static-tertiary-dark":"typography__static-tertiary-dark_6zo5v","static-accent":"typography__static-accent_6zo5v","static-positive":"typography__static-positive_6zo5v"};
4
4
 
5
5
  export { colors as default };
6
6
  //# sourceMappingURL=colors.module.css.js.map
@@ -4,206 +4,179 @@
4
4
  --gap-12: var(--gap-s);
5
5
  }
6
6
  :root {
7
- --font-family-alfasans:
8
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
9
- Helvetica, sans-serif;
7
+ --font-family-system:
8
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
10
9
  }
11
- .typography__transparent_2zvp4 {
10
+ .typography__transparent_1wgfo {
12
11
  opacity: 0;
13
12
  }
14
13
  :root {
15
14
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
16
15
  }
17
- .typography__paragraph_2zvp4 {
16
+ .typography__paragraph_1wgfo {
18
17
  margin: var(--gap-0);
19
18
  padding: var(--gap-0);
20
19
  }
21
- .typography__paragraphWithMargins_2zvp4 {
20
+ .typography__paragraphWithMargins_1wgfo {
22
21
  padding: var(--gap-0);
23
22
  margin: var(--text-paragraph-margin-bottom);
24
23
  }
25
- .typography__component_2zvp4 {
24
+ .typography__component_1wgfo {
26
25
  font-size: 16px;
27
26
  line-height: 20px;
28
27
  font-weight: 400;
29
- letter-spacing: -0.24px;
30
- font-family: var(--font-family-alfasans);
28
+ font-family: var(--font-family-system);
31
29
  }
32
- .typography__component_2zvp4.typography__bold_2zvp4 {
30
+ .typography__component_1wgfo.typography__bold_1wgfo {
33
31
  font-weight: 700;
34
- letter-spacing: 0.43px;
35
32
  }
36
- .typography__component_2zvp4.typography__medium_2zvp4 {
33
+ .typography__component_1wgfo.typography__medium_1wgfo {
37
34
  font-weight: 500;
38
- letter-spacing: -0.05px;
39
35
  }
40
- .typography__caps_2zvp4 {
36
+ .typography__caps_1wgfo {
41
37
  font-size: 12px;
42
38
  line-height: 16px;
43
39
  font-weight: 400;
44
40
  letter-spacing: 1.25px;
45
41
  text-transform: uppercase;
46
- font-family: var(--font-family-alfasans);
42
+ font-family: var(--font-family-system);
47
43
  }
48
- .typography__caps_2zvp4.typography__bold_2zvp4 {
44
+ .typography__caps_1wgfo.typography__bold_1wgfo {
49
45
  font-weight: 700;
50
46
  }
51
- .typography__caps_2zvp4.typography__medium_2zvp4 {
47
+ .typography__caps_1wgfo.typography__medium_1wgfo {
52
48
  font-weight: 500;
53
49
  }
54
- .typography__tagline_2zvp4 {
50
+ .typography__tagline_1wgfo {
55
51
  font-size: 12px;
56
52
  line-height: 16px;
57
53
  font-weight: 400;
58
54
  letter-spacing: 1.25px;
59
55
  text-transform: uppercase;
60
- font-family: var(--font-family-alfasans);
56
+ font-family: var(--font-family-system);
61
57
  }
62
- .typography__tagline_2zvp4.typography__bold_2zvp4 {
58
+ .typography__tagline_1wgfo.typography__bold_1wgfo {
63
59
  font-weight: 700;
64
60
  }
65
- .typography__tagline_2zvp4.typography__medium_2zvp4 {
61
+ .typography__tagline_1wgfo.typography__medium_1wgfo {
66
62
  font-weight: 500;
67
63
  }
68
- .typography__primary-large_2zvp4 {
64
+ .typography__primary-large_1wgfo {
69
65
  font-size: 18px;
70
66
  line-height: 24px;
71
67
  font-weight: 400;
72
- letter-spacing: -0.36px;
73
- font-family: var(--font-family-alfasans);
68
+ font-family: var(--font-family-system);
74
69
  }
75
- .typography__primary-large_2zvp4.typography__bold_2zvp4 {
70
+ .typography__primary-large_1wgfo.typography__bold_1wgfo {
76
71
  font-weight: 700;
77
- letter-spacing: 0.38px;
78
72
  }
79
- .typography__primary-large_2zvp4.typography__medium_2zvp4 {
73
+ .typography__primary-large_1wgfo.typography__medium_1wgfo {
80
74
  font-weight: 500;
81
- letter-spacing: -0.17px;
82
75
  }
83
- .typography__primary-medium_2zvp4 {
76
+ .typography__primary-medium_1wgfo {
84
77
  font-size: 16px;
85
78
  line-height: 24px;
86
79
  font-weight: 400;
87
- letter-spacing: -0.24px;
88
- font-family: var(--font-family-alfasans);
80
+ font-family: var(--font-family-system);
89
81
  }
90
- .typography__primary-medium_2zvp4.typography__bold_2zvp4 {
82
+ .typography__primary-medium_1wgfo.typography__bold_1wgfo {
91
83
  font-weight: 700;
92
- letter-spacing: 0.43px;
93
84
  }
94
- .typography__primary-medium_2zvp4.typography__medium_2zvp4 {
85
+ .typography__primary-medium_1wgfo.typography__medium_1wgfo {
95
86
  font-weight: 500;
96
- letter-spacing: -0.05px;
97
87
  }
98
- .typography__primary-small_2zvp4 {
88
+ .typography__primary-small_1wgfo {
99
89
  font-size: 14px;
100
90
  line-height: 20px;
101
91
  font-weight: 400;
102
- letter-spacing: -0.08px;
103
- font-family: var(--font-family-alfasans);
92
+ font-family: var(--font-family-system);
104
93
  }
105
- .typography__primary-small_2zvp4.typography__bold_2zvp4 {
94
+ .typography__primary-small_1wgfo.typography__bold_1wgfo {
106
95
  font-weight: 700;
107
- letter-spacing: 0.47px;
108
96
  }
109
- .typography__primary-small_2zvp4.typography__medium_2zvp4 {
97
+ .typography__primary-small_1wgfo.typography__medium_1wgfo {
110
98
  font-weight: 500;
111
- letter-spacing: 0.07px;
112
99
  }
113
- .typography__component-primary_2zvp4 {
100
+ .typography__component-primary_1wgfo {
114
101
  font-size: 16px;
115
102
  line-height: 20px;
116
103
  font-weight: 400;
117
- letter-spacing: -0.24px;
118
- font-family: var(--font-family-alfasans);
104
+ font-family: var(--font-family-system);
119
105
  }
120
- .typography__component-primary_2zvp4.typography__bold_2zvp4 {
106
+ .typography__component-primary_1wgfo.typography__bold_1wgfo {
121
107
  font-weight: 700;
122
- letter-spacing: 0.43px;
123
108
  }
124
- .typography__component-primary_2zvp4.typography__medium_2zvp4 {
109
+ .typography__component-primary_1wgfo.typography__medium_1wgfo {
125
110
  font-weight: 500;
126
- letter-spacing: -0.05px;
127
111
  }
128
- .typography__secondary-large_2zvp4 {
112
+ .typography__secondary-large_1wgfo {
129
113
  font-size: 13px;
130
114
  line-height: 16px;
131
115
  font-weight: 400;
132
- font-family: var(--font-family-alfasans);
116
+ font-family: var(--font-family-system);
133
117
  }
134
- .typography__secondary-large_2zvp4.typography__bold_2zvp4 {
118
+ .typography__secondary-large_1wgfo.typography__bold_1wgfo {
135
119
  font-weight: 700;
136
- letter-spacing: 0.54px;
137
120
  }
138
- .typography__secondary-large_2zvp4.typography__medium_2zvp4 {
121
+ .typography__secondary-large_1wgfo.typography__medium_1wgfo {
139
122
  font-weight: 500;
140
- letter-spacing: 0.13px;
141
123
  }
142
- .typography__secondary-medium_2zvp4 {
124
+ .typography__secondary-medium_1wgfo {
143
125
  font-size: 12px;
144
126
  line-height: 16px;
145
127
  font-weight: 400;
146
- letter-spacing: 0.06px;
147
- font-family: var(--font-family-alfasans);
128
+ font-family: var(--font-family-system);
148
129
  }
149
- .typography__secondary-medium_2zvp4.typography__bold_2zvp4 {
130
+ .typography__secondary-medium_1wgfo.typography__bold_1wgfo {
150
131
  font-weight: 700;
151
- letter-spacing: 0.57px;
152
132
  }
153
- .typography__secondary-medium_2zvp4.typography__medium_2zvp4 {
133
+ .typography__secondary-medium_1wgfo.typography__medium_1wgfo {
154
134
  font-weight: 500;
155
- letter-spacing: 0.19px;
156
135
  }
157
- .typography__secondary-small_2zvp4 {
136
+ .typography__secondary-small_1wgfo {
158
137
  font-size: 11px;
159
138
  line-height: 16px;
160
139
  font-weight: 400;
161
- letter-spacing: 0.15px;
162
- font-family: var(--font-family-alfasans);
140
+ font-family: var(--font-family-system);
163
141
  }
164
- .typography__secondary-small_2zvp4.typography__bold_2zvp4 {
142
+ .typography__secondary-small_1wgfo.typography__bold_1wgfo {
165
143
  font-weight: 700;
166
- letter-spacing: 0.54px;
167
144
  }
168
- .typography__secondary-small_2zvp4.typography__medium_2zvp4 {
145
+ .typography__secondary-small_1wgfo.typography__medium_1wgfo {
169
146
  font-weight: 500;
170
- letter-spacing: 0.24px;
171
147
  }
172
- .typography__component-secondary_2zvp4 {
148
+ .typography__component-secondary_1wgfo {
173
149
  font-size: 14px;
174
150
  line-height: 18px;
175
151
  font-weight: 400;
176
- letter-spacing: -0.08px;
177
- font-family: var(--font-family-alfasans);
152
+ font-family: var(--font-family-system);
178
153
  }
179
- .typography__component-secondary_2zvp4.typography__bold_2zvp4 {
154
+ .typography__component-secondary_1wgfo.typography__bold_1wgfo {
180
155
  font-weight: 700;
181
- letter-spacing: 0.47px;
182
156
  }
183
- .typography__component-secondary_2zvp4.typography__medium_2zvp4 {
157
+ .typography__component-secondary_1wgfo.typography__medium_1wgfo {
184
158
  font-weight: 500;
185
- letter-spacing: 0.07px;
186
159
  }
187
- .typography__rowLimit1_2zvp4 {
160
+ .typography__rowLimit1_1wgfo {
188
161
  -webkit-line-clamp: 1;
189
162
  display: -webkit-box;
190
163
  -webkit-box-orient: vertical;
191
164
  overflow: hidden;
192
165
  word-break: break-all;
193
166
  }
194
- .typography__rowLimit2_2zvp4 {
167
+ .typography__rowLimit2_1wgfo {
195
168
  -webkit-line-clamp: 2;
196
169
  display: -webkit-box;
197
170
  -webkit-box-orient: vertical;
198
171
  overflow: hidden;
199
172
  }
200
- .typography__rowLimit3_2zvp4 {
173
+ .typography__rowLimit3_1wgfo {
201
174
  -webkit-line-clamp: 3;
202
175
  display: -webkit-box;
203
176
  -webkit-box-orient: vertical;
204
177
  overflow: hidden;
205
178
  }
206
- .typography__monospace_2zvp4 {
179
+ .typography__monospace_1wgfo {
207
180
  font-feature-settings: "tnum";
208
181
  font-variant-numeric: tabular-nums;
209
182
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"transparent":"typography__transparent_2zvp4","paragraph":"typography__paragraph_2zvp4","paragraphWithMargins":"typography__paragraphWithMargins_2zvp4","component":"typography__component_2zvp4","bold":"typography__bold_2zvp4","medium":"typography__medium_2zvp4","caps":"typography__caps_2zvp4","tagline":"typography__tagline_2zvp4","primary-large":"typography__primary-large_2zvp4","primary-medium":"typography__primary-medium_2zvp4","primary-small":"typography__primary-small_2zvp4","component-primary":"typography__component-primary_2zvp4","secondary-large":"typography__secondary-large_2zvp4","secondary-medium":"typography__secondary-medium_2zvp4","secondary-small":"typography__secondary-small_2zvp4","component-secondary":"typography__component-secondary_2zvp4","rowLimit1":"typography__rowLimit1_2zvp4","rowLimit2":"typography__rowLimit2_2zvp4","rowLimit3":"typography__rowLimit3_2zvp4","monospace":"typography__monospace_2zvp4"};
3
+ var styles = {"transparent":"typography__transparent_1wgfo","paragraph":"typography__paragraph_1wgfo","paragraphWithMargins":"typography__paragraphWithMargins_1wgfo","component":"typography__component_1wgfo","bold":"typography__bold_1wgfo","medium":"typography__medium_1wgfo","caps":"typography__caps_1wgfo","tagline":"typography__tagline_1wgfo","primary-large":"typography__primary-large_1wgfo","primary-medium":"typography__primary-medium_1wgfo","primary-small":"typography__primary-small_1wgfo","component-primary":"typography__component-primary_1wgfo","secondary-large":"typography__secondary-large_1wgfo","secondary-medium":"typography__secondary-medium_1wgfo","secondary-small":"typography__secondary-small_1wgfo","component-secondary":"typography__component-secondary_1wgfo","rowLimit1":"typography__rowLimit1_1wgfo","rowLimit2":"typography__rowLimit2_1wgfo","rowLimit3":"typography__rowLimit3_1wgfo","monospace":"typography__monospace_1wgfo"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,27 +1,27 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .typography__transparent_6mtbu {
4
+ .typography__transparent_vjxpi {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_6mtbu {
7
+ .typography__component_vjxpi {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_6mtbu {
11
+ .typography__rowLimit1_vjxpi {
12
12
  -webkit-line-clamp: 1;
13
13
  display: -webkit-box;
14
14
  -webkit-box-orient: vertical;
15
15
  overflow: hidden;
16
16
  word-break: break-all;
17
17
  }
18
- .typography__rowLimit2_6mtbu {
18
+ .typography__rowLimit2_vjxpi {
19
19
  -webkit-line-clamp: 2;
20
20
  display: -webkit-box;
21
21
  -webkit-box-orient: vertical;
22
22
  overflow: hidden;
23
23
  }
24
- .typography__rowLimit3_6mtbu {
24
+ .typography__rowLimit3_vjxpi {
25
25
  -webkit-line-clamp: 3;
26
26
  display: -webkit-box;
27
27
  -webkit-box-orient: vertical;
@@ -1,6 +1,6 @@
1
1
  import './common.css';
2
2
 
3
- var commonStyles = {"transparent":"typography__transparent_6mtbu","component":"typography__component_6mtbu","rowLimit1":"typography__rowLimit1_6mtbu","rowLimit2":"typography__rowLimit2_6mtbu","rowLimit3":"typography__rowLimit3_6mtbu"};
3
+ var commonStyles = {"transparent":"typography__transparent_vjxpi","component":"typography__component_vjxpi","rowLimit1":"typography__rowLimit1_vjxpi","rowLimit2":"typography__rowLimit2_vjxpi","rowLimit3":"typography__rowLimit3_vjxpi"};
4
4
 
5
5
  export { commonStyles as default };
6
6
  //# sourceMappingURL=common.module.css.js.map
@@ -22,7 +22,10 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
22
22
  /**
23
23
  * Шрифт текста
24
24
  */
25
- font?: 'styrene' | 'system';
25
+ font?: 'styrene' | 'system' | 'alfasans' | {
26
+ font: 'alfasans';
27
+ systemCompat: boolean;
28
+ };
26
29
  /**
27
30
  * Добавляет отступы
28
31
  */
@@ -83,7 +86,10 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
83
86
  /**
84
87
  * Шрифт текста
85
88
  */
86
- font?: "styrene" | "system";
89
+ font?: "styrene" | "system" | "alfasans" | {
90
+ font: "alfasans";
91
+ systemCompat: boolean;
92
+ };
87
93
  /**
88
94
  * Добавляет отступы
89
95
  */
@@ -2,14 +2,16 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } 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';
5
6
  import { useSkeleton } from '@alfalab/core-components-skeleton/esm';
7
+ import { getDefaultWeight } from './utils.js';
6
8
  import colors from '../colors.module.css.js';
7
9
  import commonStyles from './common.module.css.js';
8
10
 
9
11
  var TitleBase = forwardRef(function (_a, ref) {
10
12
  var _b;
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;
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;
13
15
  var skeleton = renderSkeleton({
14
16
  wrapperClassName: cn(defaultMargins && styles["margins-".concat(view)]),
15
17
  dataTestId: dataTestId,
@@ -20,6 +22,7 @@ var TitleBase = forwardRef(function (_a, ref) {
20
22
  return (React.createElement(Component, __assign({ className: cn(commonStyles.component, styles.component, className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors[color], (_b = {},
21
23
  _b[commonStyles["rowLimit".concat(rowLimit)]] = rowLimit,
22
24
  _b[commonStyles.transparent] = showSkeleton,
25
+ _b[styles.font] = (isObject(font) && !font.systemCompat) || !(font === 'system'),
23
26
  _b)), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]) }, restProps), children));
24
27
  });
25
28