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

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
@@ -5,99 +5,116 @@
5
5
  --gap-40: 40px;
6
6
  }
7
7
  :root {
8
- --font-family-alfasans:
9
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
10
- Helvetica, sans-serif;
8
+ --font-family-system:
9
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
10
+ --font-family-styrene:
11
+ 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
12
+ sans-serif;
11
13
  }
12
14
  .xlarge {
13
15
  font-size: 34px;
14
16
  line-height: 40px;
15
- font-weight: 500;
16
- letter-spacing: -0.32px;
17
- font-family: var(--font-family-alfasans);
17
+ font-weight: 600;
18
+ font-family: var(--font-family-system);
18
19
  }
19
20
  .xlarge.font {
21
+ font-weight: 500;
22
+ font-feature-settings: 'ss01';
23
+ font-family: var(--font-family-styrene);
20
24
  }
21
25
  .regular-xlarge {
22
26
  font-size: 34px;
23
27
  line-height: 40px;
24
28
  font-weight: 400;
25
- letter-spacing: -1.36px;
26
- font-family: var(--font-family-alfasans);
29
+ font-family: var(--font-family-system);
27
30
  }
28
31
  .regular-xlarge.system {
32
+ font-feature-settings: 'ss01';
33
+ font-family: var(--font-family-styrene);
29
34
  }
30
35
  .large {
31
36
  font-size: 30px;
32
37
  line-height: 36px;
33
- font-weight: 500;
34
- letter-spacing: -0.25px;
35
- font-family: var(--font-family-alfasans);
38
+ font-weight: 600;
39
+ font-family: var(--font-family-system);
36
40
  }
37
41
  .large.font {
42
+ font-weight: 500;
43
+ font-feature-settings: 'ss01';
44
+ font-family: var(--font-family-styrene);
38
45
  }
39
46
  .regular-large {
40
47
  font-size: 30px;
41
48
  line-height: 36px;
42
49
  font-weight: 400;
43
- letter-spacing: -1.25px;
44
- font-family: var(--font-family-alfasans);
50
+ font-family: var(--font-family-system);
45
51
  }
46
52
  .regular-large.system {
53
+ font-feature-settings: 'ss01';
54
+ font-family: var(--font-family-styrene);
47
55
  }
48
56
  .medium {
49
57
  font-size: 26px;
50
58
  line-height: 32px;
51
- font-weight: 500;
52
- letter-spacing: -0.25px;
53
- font-family: var(--font-family-alfasans);
59
+ font-weight: 600;
60
+ font-family: var(--font-family-system);
54
61
  }
55
62
  .medium.font {
63
+ font-weight: 500;
64
+ font-feature-settings: 'ss01';
65
+ font-family: var(--font-family-styrene);
56
66
  }
57
67
  .regular-medium {
58
68
  font-size: 26px;
59
69
  line-height: 32px;
60
70
  font-weight: 400;
61
- letter-spacing: -1px;
62
- font-family: var(--font-family-alfasans);
71
+ font-family: var(--font-family-system);
63
72
  }
64
73
  .regular-medium.system {
74
+ font-feature-settings: 'ss01';
75
+ font-family: var(--font-family-styrene);
65
76
  }
66
77
  .small {
67
78
  font-size: 20px;
68
79
  line-height: 28px;
69
- font-weight: 500;
70
- letter-spacing: -0.15px;
71
- font-family: var(--font-family-alfasans);
80
+ font-weight: 600;
81
+ font-family: var(--font-family-system);
72
82
  }
73
83
  .small.font {
84
+ font-weight: 500;
85
+ font-feature-settings: 'ss01';
86
+ font-family: var(--font-family-styrene);
74
87
  }
75
88
  .regular-small {
76
89
  font-size: 20px;
77
90
  line-height: 28px;
78
91
  font-weight: 400;
79
- letter-spacing: -0.68px;
80
- font-family: var(--font-family-alfasans);
92
+ font-family: var(--font-family-system);
81
93
  }
82
94
  .regular-small.system {
95
+ font-feature-settings: 'ss01';
96
+ font-family: var(--font-family-styrene);
83
97
  }
84
98
  .xsmall {
85
99
  font-size: 16px;
86
100
  line-height: 20px;
87
- font-weight: 500;
88
- letter-spacing: 0.17px;
89
- font-family: var(--font-family-alfasans);
101
+ font-weight: 600;
102
+ font-family: var(--font-family-system);
90
103
  }
91
104
  .xsmall.font {
105
+ font-weight: 500;
106
+ font-feature-settings: 'ss01';
107
+ font-family: var(--font-family-styrene);
92
108
  }
93
109
  .regular-xsmall {
94
110
  font-size: 16px;
95
111
  line-height: 20px;
96
112
  font-weight: 400;
97
- letter-spacing: -0.24px;
98
- font-family: var(--font-family-alfasans);
113
+ font-family: var(--font-family-system);
99
114
  }
100
115
  .regular-xsmall.system {
116
+ font-feature-settings: 'ss01';
117
+ font-family: var(--font-family-styrene);
101
118
  }
102
119
  .component.margins-xlarge {
103
120
  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_1vxb9 {
23
+ .typography__tertiary_1mf30 {
24
24
  color: var(--color-light-text-tertiary);
25
25
  }
26
- .typography__disabled_1vxb9 {
26
+ .typography__disabled_1mf30 {
27
27
  color: var(--color-light-text-quaternary);
28
28
  }
29
- .typography__accent_1vxb9 {
29
+ .typography__accent_1mf30 {
30
30
  color: var(--color-light-accent-primary);
31
31
  }
32
- .typography__primary_1vxb9 {
32
+ .typography__primary_1mf30 {
33
33
  color: var(--color-light-text-primary);
34
34
  }
35
- .typography__attention_1vxb9 {
35
+ .typography__attention_1mf30 {
36
36
  color: var(--color-light-text-attention);
37
37
  }
38
- .typography__positive_1vxb9 {
38
+ .typography__positive_1mf30 {
39
39
  color: var(--color-light-text-positive);
40
40
  }
41
- .typography__secondary_1vxb9 {
41
+ .typography__secondary_1mf30 {
42
42
  color: var(--color-light-text-secondary);
43
43
  }
44
- .typography__tertiary-inverted_1vxb9 {
44
+ .typography__tertiary-inverted_1mf30 {
45
45
  color: var(--color-light-text-tertiary-inverted);
46
46
  }
47
- .typography__primary-inverted_1vxb9 {
47
+ .typography__primary-inverted_1mf30 {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .typography__secondary-inverted_1vxb9 {
50
+ .typography__secondary-inverted_1mf30 {
51
51
  color: var(--color-light-text-secondary-inverted);
52
52
  }
53
- .typography__link_1vxb9 {
53
+ .typography__link_1mf30 {
54
54
  color: var(--color-light-text-info);
55
55
  }
56
- .typography__negative_1vxb9 {
56
+ .typography__negative_1mf30 {
57
57
  color: var(--color-light-text-negative);
58
58
  }
59
- .typography__static-primary-light_1vxb9 {
59
+ .typography__static-primary-light_1mf30 {
60
60
  color: var(--color-static-text-primary-light);
61
61
  }
62
- .typography__static-secondary-light_1vxb9 {
62
+ .typography__static-secondary-light_1mf30 {
63
63
  color: var(--color-static-text-secondary-light);
64
64
  }
65
- .typography__static-tertiary-light_1vxb9 {
65
+ .typography__static-tertiary-light_1mf30 {
66
66
  color: var(--color-static-text-tertiary-light);
67
67
  }
68
- .typography__static-primary-dark_1vxb9 {
68
+ .typography__static-primary-dark_1mf30 {
69
69
  color: var(--color-static-text-primary-dark);
70
70
  }
71
- .typography__static-secondary-dark_1vxb9 {
71
+ .typography__static-secondary-dark_1mf30 {
72
72
  color: var(--color-static-text-secondary-dark);
73
73
  }
74
- .typography__static-tertiary-dark_1vxb9 {
74
+ .typography__static-tertiary-dark_1mf30 {
75
75
  color: var(--color-static-text-tertiary-dark);
76
76
  }
77
- .typography__static-accent_1vxb9 {
77
+ .typography__static-accent_1mf30 {
78
78
  color: var(--color-static-accent-primary);
79
79
  }
80
- .typography__static-positive_1vxb9 {
80
+ .typography__static-positive_1mf30 {
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_1vxb9","disabled":"typography__disabled_1vxb9","accent":"typography__accent_1vxb9","primary":"typography__primary_1vxb9","attention":"typography__attention_1vxb9","positive":"typography__positive_1vxb9","secondary":"typography__secondary_1vxb9","tertiary-inverted":"typography__tertiary-inverted_1vxb9","primary-inverted":"typography__primary-inverted_1vxb9","secondary-inverted":"typography__secondary-inverted_1vxb9","link":"typography__link_1vxb9","negative":"typography__negative_1vxb9","static-primary-light":"typography__static-primary-light_1vxb9","static-secondary-light":"typography__static-secondary-light_1vxb9","static-tertiary-light":"typography__static-tertiary-light_1vxb9","static-primary-dark":"typography__static-primary-dark_1vxb9","static-secondary-dark":"typography__static-secondary-dark_1vxb9","static-tertiary-dark":"typography__static-tertiary-dark_1vxb9","static-accent":"typography__static-accent_1vxb9","static-positive":"typography__static-positive_1vxb9"};
3
+ var colors = {"tertiary":"typography__tertiary_1mf30","disabled":"typography__disabled_1mf30","accent":"typography__accent_1mf30","primary":"typography__primary_1mf30","attention":"typography__attention_1mf30","positive":"typography__positive_1mf30","secondary":"typography__secondary_1mf30","tertiary-inverted":"typography__tertiary-inverted_1mf30","primary-inverted":"typography__primary-inverted_1mf30","secondary-inverted":"typography__secondary-inverted_1mf30","link":"typography__link_1mf30","negative":"typography__negative_1mf30","static-primary-light":"typography__static-primary-light_1mf30","static-secondary-light":"typography__static-secondary-light_1mf30","static-tertiary-light":"typography__static-tertiary-light_1mf30","static-primary-dark":"typography__static-primary-dark_1mf30","static-secondary-dark":"typography__static-secondary-dark_1mf30","static-tertiary-dark":"typography__static-tertiary-dark_1mf30","static-accent":"typography__static-accent_1mf30","static-positive":"typography__static-positive_1mf30"};
4
4
 
5
5
  export { colors as default };
6
6
  //# sourceMappingURL=colors.module.css.js.map
@@ -3,206 +3,179 @@
3
3
  --gap-12: 12px;
4
4
  }
5
5
  :root {
6
- --font-family-alfasans:
7
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
8
- Helvetica, sans-serif;
6
+ --font-family-system:
7
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
9
8
  }
10
- .typography__transparent_1yij4 {
9
+ .typography__transparent_ngfpy {
11
10
  opacity: 0;
12
11
  }
13
12
  :root {
14
13
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
15
14
  }
16
- .typography__paragraph_1yij4 {
15
+ .typography__paragraph_ngfpy {
17
16
  margin: var(--gap-0);
18
17
  padding: var(--gap-0);
19
18
  }
20
- .typography__paragraphWithMargins_1yij4 {
19
+ .typography__paragraphWithMargins_ngfpy {
21
20
  padding: var(--gap-0);
22
21
  margin: var(--text-paragraph-margin-bottom);
23
22
  }
24
- .typography__component_1yij4 {
23
+ .typography__component_ngfpy {
25
24
  font-size: 16px;
26
25
  line-height: 20px;
27
26
  font-weight: 400;
28
- letter-spacing: -0.24px;
29
- font-family: var(--font-family-alfasans);
27
+ font-family: var(--font-family-system);
30
28
  }
31
- .typography__component_1yij4.typography__bold_1yij4 {
29
+ .typography__component_ngfpy.typography__bold_ngfpy {
32
30
  font-weight: 700;
33
- letter-spacing: 0.43px;
34
31
  }
35
- .typography__component_1yij4.typography__medium_1yij4 {
32
+ .typography__component_ngfpy.typography__medium_ngfpy {
36
33
  font-weight: 500;
37
- letter-spacing: -0.05px;
38
34
  }
39
- .typography__caps_1yij4 {
35
+ .typography__caps_ngfpy {
40
36
  font-size: 12px;
41
37
  line-height: 16px;
42
38
  font-weight: 400;
43
39
  letter-spacing: 1.25px;
44
40
  text-transform: uppercase;
45
- font-family: var(--font-family-alfasans);
41
+ font-family: var(--font-family-system);
46
42
  }
47
- .typography__caps_1yij4.typography__bold_1yij4 {
43
+ .typography__caps_ngfpy.typography__bold_ngfpy {
48
44
  font-weight: 700;
49
45
  }
50
- .typography__caps_1yij4.typography__medium_1yij4 {
46
+ .typography__caps_ngfpy.typography__medium_ngfpy {
51
47
  font-weight: 500;
52
48
  }
53
- .typography__tagline_1yij4 {
49
+ .typography__tagline_ngfpy {
54
50
  font-size: 12px;
55
51
  line-height: 16px;
56
52
  font-weight: 400;
57
53
  letter-spacing: 1.25px;
58
54
  text-transform: uppercase;
59
- font-family: var(--font-family-alfasans);
55
+ font-family: var(--font-family-system);
60
56
  }
61
- .typography__tagline_1yij4.typography__bold_1yij4 {
57
+ .typography__tagline_ngfpy.typography__bold_ngfpy {
62
58
  font-weight: 700;
63
59
  }
64
- .typography__tagline_1yij4.typography__medium_1yij4 {
60
+ .typography__tagline_ngfpy.typography__medium_ngfpy {
65
61
  font-weight: 500;
66
62
  }
67
- .typography__primary-large_1yij4 {
63
+ .typography__primary-large_ngfpy {
68
64
  font-size: 18px;
69
65
  line-height: 24px;
70
66
  font-weight: 400;
71
- letter-spacing: -0.36px;
72
- font-family: var(--font-family-alfasans);
67
+ font-family: var(--font-family-system);
73
68
  }
74
- .typography__primary-large_1yij4.typography__bold_1yij4 {
69
+ .typography__primary-large_ngfpy.typography__bold_ngfpy {
75
70
  font-weight: 700;
76
- letter-spacing: 0.38px;
77
71
  }
78
- .typography__primary-large_1yij4.typography__medium_1yij4 {
72
+ .typography__primary-large_ngfpy.typography__medium_ngfpy {
79
73
  font-weight: 500;
80
- letter-spacing: -0.17px;
81
74
  }
82
- .typography__primary-medium_1yij4 {
75
+ .typography__primary-medium_ngfpy {
83
76
  font-size: 16px;
84
77
  line-height: 24px;
85
78
  font-weight: 400;
86
- letter-spacing: -0.24px;
87
- font-family: var(--font-family-alfasans);
79
+ font-family: var(--font-family-system);
88
80
  }
89
- .typography__primary-medium_1yij4.typography__bold_1yij4 {
81
+ .typography__primary-medium_ngfpy.typography__bold_ngfpy {
90
82
  font-weight: 700;
91
- letter-spacing: 0.43px;
92
83
  }
93
- .typography__primary-medium_1yij4.typography__medium_1yij4 {
84
+ .typography__primary-medium_ngfpy.typography__medium_ngfpy {
94
85
  font-weight: 500;
95
- letter-spacing: -0.05px;
96
86
  }
97
- .typography__primary-small_1yij4 {
87
+ .typography__primary-small_ngfpy {
98
88
  font-size: 14px;
99
89
  line-height: 20px;
100
90
  font-weight: 400;
101
- letter-spacing: -0.08px;
102
- font-family: var(--font-family-alfasans);
91
+ font-family: var(--font-family-system);
103
92
  }
104
- .typography__primary-small_1yij4.typography__bold_1yij4 {
93
+ .typography__primary-small_ngfpy.typography__bold_ngfpy {
105
94
  font-weight: 700;
106
- letter-spacing: 0.47px;
107
95
  }
108
- .typography__primary-small_1yij4.typography__medium_1yij4 {
96
+ .typography__primary-small_ngfpy.typography__medium_ngfpy {
109
97
  font-weight: 500;
110
- letter-spacing: 0.07px;
111
98
  }
112
- .typography__component-primary_1yij4 {
99
+ .typography__component-primary_ngfpy {
113
100
  font-size: 16px;
114
101
  line-height: 20px;
115
102
  font-weight: 400;
116
- letter-spacing: -0.24px;
117
- font-family: var(--font-family-alfasans);
103
+ font-family: var(--font-family-system);
118
104
  }
119
- .typography__component-primary_1yij4.typography__bold_1yij4 {
105
+ .typography__component-primary_ngfpy.typography__bold_ngfpy {
120
106
  font-weight: 700;
121
- letter-spacing: 0.43px;
122
107
  }
123
- .typography__component-primary_1yij4.typography__medium_1yij4 {
108
+ .typography__component-primary_ngfpy.typography__medium_ngfpy {
124
109
  font-weight: 500;
125
- letter-spacing: -0.05px;
126
110
  }
127
- .typography__secondary-large_1yij4 {
111
+ .typography__secondary-large_ngfpy {
128
112
  font-size: 13px;
129
113
  line-height: 16px;
130
114
  font-weight: 400;
131
- font-family: var(--font-family-alfasans);
115
+ font-family: var(--font-family-system);
132
116
  }
133
- .typography__secondary-large_1yij4.typography__bold_1yij4 {
117
+ .typography__secondary-large_ngfpy.typography__bold_ngfpy {
134
118
  font-weight: 700;
135
- letter-spacing: 0.54px;
136
119
  }
137
- .typography__secondary-large_1yij4.typography__medium_1yij4 {
120
+ .typography__secondary-large_ngfpy.typography__medium_ngfpy {
138
121
  font-weight: 500;
139
- letter-spacing: 0.13px;
140
122
  }
141
- .typography__secondary-medium_1yij4 {
123
+ .typography__secondary-medium_ngfpy {
142
124
  font-size: 12px;
143
125
  line-height: 16px;
144
126
  font-weight: 400;
145
- letter-spacing: 0.06px;
146
- font-family: var(--font-family-alfasans);
127
+ font-family: var(--font-family-system);
147
128
  }
148
- .typography__secondary-medium_1yij4.typography__bold_1yij4 {
129
+ .typography__secondary-medium_ngfpy.typography__bold_ngfpy {
149
130
  font-weight: 700;
150
- letter-spacing: 0.57px;
151
131
  }
152
- .typography__secondary-medium_1yij4.typography__medium_1yij4 {
132
+ .typography__secondary-medium_ngfpy.typography__medium_ngfpy {
153
133
  font-weight: 500;
154
- letter-spacing: 0.19px;
155
134
  }
156
- .typography__secondary-small_1yij4 {
135
+ .typography__secondary-small_ngfpy {
157
136
  font-size: 11px;
158
137
  line-height: 16px;
159
138
  font-weight: 400;
160
- letter-spacing: 0.15px;
161
- font-family: var(--font-family-alfasans);
139
+ font-family: var(--font-family-system);
162
140
  }
163
- .typography__secondary-small_1yij4.typography__bold_1yij4 {
141
+ .typography__secondary-small_ngfpy.typography__bold_ngfpy {
164
142
  font-weight: 700;
165
- letter-spacing: 0.54px;
166
143
  }
167
- .typography__secondary-small_1yij4.typography__medium_1yij4 {
144
+ .typography__secondary-small_ngfpy.typography__medium_ngfpy {
168
145
  font-weight: 500;
169
- letter-spacing: 0.24px;
170
146
  }
171
- .typography__component-secondary_1yij4 {
147
+ .typography__component-secondary_ngfpy {
172
148
  font-size: 14px;
173
149
  line-height: 18px;
174
150
  font-weight: 400;
175
- letter-spacing: -0.08px;
176
- font-family: var(--font-family-alfasans);
151
+ font-family: var(--font-family-system);
177
152
  }
178
- .typography__component-secondary_1yij4.typography__bold_1yij4 {
153
+ .typography__component-secondary_ngfpy.typography__bold_ngfpy {
179
154
  font-weight: 700;
180
- letter-spacing: 0.47px;
181
155
  }
182
- .typography__component-secondary_1yij4.typography__medium_1yij4 {
156
+ .typography__component-secondary_ngfpy.typography__medium_ngfpy {
183
157
  font-weight: 500;
184
- letter-spacing: 0.07px;
185
158
  }
186
- .typography__rowLimit1_1yij4 {
159
+ .typography__rowLimit1_ngfpy {
187
160
  -webkit-line-clamp: 1;
188
161
  display: -webkit-box;
189
162
  -webkit-box-orient: vertical;
190
163
  overflow: hidden;
191
164
  word-break: break-all;
192
165
  }
193
- .typography__rowLimit2_1yij4 {
166
+ .typography__rowLimit2_ngfpy {
194
167
  -webkit-line-clamp: 2;
195
168
  display: -webkit-box;
196
169
  -webkit-box-orient: vertical;
197
170
  overflow: hidden;
198
171
  }
199
- .typography__rowLimit3_1yij4 {
172
+ .typography__rowLimit3_ngfpy {
200
173
  -webkit-line-clamp: 3;
201
174
  display: -webkit-box;
202
175
  -webkit-box-orient: vertical;
203
176
  overflow: hidden;
204
177
  }
205
- .typography__monospace_1yij4 {
178
+ .typography__monospace_ngfpy {
206
179
  font-feature-settings: "tnum";
207
180
  font-variant-numeric: tabular-nums;
208
181
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"transparent":"typography__transparent_1yij4","paragraph":"typography__paragraph_1yij4","paragraphWithMargins":"typography__paragraphWithMargins_1yij4","component":"typography__component_1yij4","bold":"typography__bold_1yij4","medium":"typography__medium_1yij4","caps":"typography__caps_1yij4","tagline":"typography__tagline_1yij4","primary-large":"typography__primary-large_1yij4","primary-medium":"typography__primary-medium_1yij4","primary-small":"typography__primary-small_1yij4","component-primary":"typography__component-primary_1yij4","secondary-large":"typography__secondary-large_1yij4","secondary-medium":"typography__secondary-medium_1yij4","secondary-small":"typography__secondary-small_1yij4","component-secondary":"typography__component-secondary_1yij4","rowLimit1":"typography__rowLimit1_1yij4","rowLimit2":"typography__rowLimit2_1yij4","rowLimit3":"typography__rowLimit3_1yij4","monospace":"typography__monospace_1yij4"};
3
+ var styles = {"transparent":"typography__transparent_ngfpy","paragraph":"typography__paragraph_ngfpy","paragraphWithMargins":"typography__paragraphWithMargins_ngfpy","component":"typography__component_ngfpy","bold":"typography__bold_ngfpy","medium":"typography__medium_ngfpy","caps":"typography__caps_ngfpy","tagline":"typography__tagline_ngfpy","primary-large":"typography__primary-large_ngfpy","primary-medium":"typography__primary-medium_ngfpy","primary-small":"typography__primary-small_ngfpy","component-primary":"typography__component-primary_ngfpy","secondary-large":"typography__secondary-large_ngfpy","secondary-medium":"typography__secondary-medium_ngfpy","secondary-small":"typography__secondary-small_ngfpy","component-secondary":"typography__component-secondary_ngfpy","rowLimit1":"typography__rowLimit1_ngfpy","rowLimit2":"typography__rowLimit2_ngfpy","rowLimit3":"typography__rowLimit3_ngfpy","monospace":"typography__monospace_ngfpy"};
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_1h0nz {
4
+ .typography__transparent_z6b33 {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_1h0nz {
7
+ .typography__component_z6b33 {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_1h0nz {
11
+ .typography__rowLimit1_z6b33 {
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_1h0nz {
18
+ .typography__rowLimit2_z6b33 {
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_1h0nz {
24
+ .typography__rowLimit3_z6b33 {
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_1h0nz","component":"typography__component_1h0nz","rowLimit1":"typography__rowLimit1_1h0nz","rowLimit2":"typography__rowLimit2_1h0nz","rowLimit3":"typography__rowLimit3_1h0nz"};
3
+ var commonStyles = {"transparent":"typography__transparent_z6b33","component":"typography__component_z6b33","rowLimit1":"typography__rowLimit1_z6b33","rowLimit2":"typography__rowLimit2_z6b33","rowLimit3":"typography__rowLimit3_z6b33"};
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