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

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 +14 -42
  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 +78 -31
  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 +48 -34
  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 +54 -82
  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 +93 -46
  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 +73 -59
  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 +54 -82
  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 +93 -46
  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 +73 -59
  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 +54 -82
  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 +93 -46
  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 +73 -59
  87. package/title-mobile/index.module.css.js +1 -1
  88. package/title-responsive/component.d.ts +4 -1
@@ -1,106 +1,120 @@
1
1
  :root {
2
- --gap-m: 16px;
3
- --gap-xl: 24px;
4
- --gap-3xl: 40px;
5
2
  --gap-0: 0px;
6
- --gap-16: var(--gap-m);
7
- --gap-24: var(--gap-xl);
8
- --gap-40: var(--gap-3xl);
3
+ --gap-16: 16px;
4
+ --gap-24: 24px;
5
+ --gap-40: 40px;
9
6
  }
10
7
  :root {
11
- --font-family-alfasans:
12
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
13
- 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;
14
13
  }
15
14
  .xlarge {
16
15
  font-size: 34px;
17
16
  line-height: 40px;
18
- font-weight: 500;
19
- letter-spacing: -0.32px;
20
- font-family: var(--font-family-alfasans);
17
+ font-weight: 600;
18
+ font-family: var(--font-family-system);
21
19
  }
22
20
  .xlarge.font {
21
+ font-weight: 500;
22
+ font-feature-settings: 'ss01';
23
+ font-family: var(--font-family-styrene);
23
24
  }
24
25
  .regular-xlarge {
25
26
  font-size: 34px;
26
27
  line-height: 40px;
27
28
  font-weight: 400;
28
- letter-spacing: -1.36px;
29
- font-family: var(--font-family-alfasans);
29
+ font-family: var(--font-family-system);
30
30
  }
31
31
  .regular-xlarge.system {
32
+ font-feature-settings: 'ss01';
33
+ font-family: var(--font-family-styrene);
32
34
  }
33
35
  .large {
34
36
  font-size: 30px;
35
37
  line-height: 36px;
36
- font-weight: 500;
37
- letter-spacing: -0.25px;
38
- font-family: var(--font-family-alfasans);
38
+ font-weight: 600;
39
+ font-family: var(--font-family-system);
39
40
  }
40
41
  .large.font {
42
+ font-weight: 500;
43
+ font-feature-settings: 'ss01';
44
+ font-family: var(--font-family-styrene);
41
45
  }
42
46
  .regular-large {
43
47
  font-size: 30px;
44
48
  line-height: 36px;
45
49
  font-weight: 400;
46
- letter-spacing: -1.25px;
47
- font-family: var(--font-family-alfasans);
50
+ font-family: var(--font-family-system);
48
51
  }
49
52
  .regular-large.system {
53
+ font-feature-settings: 'ss01';
54
+ font-family: var(--font-family-styrene);
50
55
  }
51
56
  .medium {
52
57
  font-size: 26px;
53
58
  line-height: 32px;
54
- font-weight: 500;
55
- letter-spacing: -0.25px;
56
- font-family: var(--font-family-alfasans);
59
+ font-weight: 600;
60
+ font-family: var(--font-family-system);
57
61
  }
58
62
  .medium.font {
63
+ font-weight: 500;
64
+ font-feature-settings: 'ss01';
65
+ font-family: var(--font-family-styrene);
59
66
  }
60
67
  .regular-medium {
61
68
  font-size: 26px;
62
69
  line-height: 32px;
63
70
  font-weight: 400;
64
- letter-spacing: -1px;
65
- font-family: var(--font-family-alfasans);
71
+ font-family: var(--font-family-system);
66
72
  }
67
73
  .regular-medium.system {
74
+ font-feature-settings: 'ss01';
75
+ font-family: var(--font-family-styrene);
68
76
  }
69
77
  .small {
70
78
  font-size: 20px;
71
79
  line-height: 28px;
72
- font-weight: 500;
73
- letter-spacing: -0.15px;
74
- font-family: var(--font-family-alfasans);
80
+ font-weight: 600;
81
+ font-family: var(--font-family-system);
75
82
  }
76
83
  .small.font {
84
+ font-weight: 500;
85
+ font-feature-settings: 'ss01';
86
+ font-family: var(--font-family-styrene);
77
87
  }
78
88
  .regular-small {
79
89
  font-size: 20px;
80
90
  line-height: 28px;
81
91
  font-weight: 400;
82
- letter-spacing: -0.68px;
83
- font-family: var(--font-family-alfasans);
92
+ font-family: var(--font-family-system);
84
93
  }
85
94
  .regular-small.system {
95
+ font-feature-settings: 'ss01';
96
+ font-family: var(--font-family-styrene);
86
97
  }
87
98
  .xsmall {
88
99
  font-size: 16px;
89
100
  line-height: 20px;
90
- font-weight: 500;
91
- letter-spacing: 0.17px;
92
- font-family: var(--font-family-alfasans);
101
+ font-weight: 600;
102
+ font-family: var(--font-family-system);
93
103
  }
94
104
  .xsmall.font {
105
+ font-weight: 500;
106
+ font-feature-settings: 'ss01';
107
+ font-family: var(--font-family-styrene);
95
108
  }
96
109
  .regular-xsmall {
97
110
  font-size: 16px;
98
111
  line-height: 20px;
99
112
  font-weight: 400;
100
- letter-spacing: -0.24px;
101
- font-family: var(--font-family-alfasans);
113
+ font-family: var(--font-family-system);
102
114
  }
103
115
  .regular-xsmall.system {
116
+ font-feature-settings: 'ss01';
117
+ font-family: var(--font-family-styrene);
104
118
  }
105
119
  .component.margins-xlarge {
106
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_usno3 {
23
+ .typography__tertiary_1up0l {
24
24
  color: var(--color-light-text-tertiary);
25
25
  }
26
- .typography__disabled_usno3 {
26
+ .typography__disabled_1up0l {
27
27
  color: var(--color-light-text-quaternary);
28
28
  }
29
- .typography__accent_usno3 {
29
+ .typography__accent_1up0l {
30
30
  color: var(--color-light-accent-primary);
31
31
  }
32
- .typography__primary_usno3 {
32
+ .typography__primary_1up0l {
33
33
  color: var(--color-light-text-primary);
34
34
  }
35
- .typography__attention_usno3 {
35
+ .typography__attention_1up0l {
36
36
  color: var(--color-light-text-attention);
37
37
  }
38
- .typography__positive_usno3 {
38
+ .typography__positive_1up0l {
39
39
  color: var(--color-light-text-positive);
40
40
  }
41
- .typography__secondary_usno3 {
41
+ .typography__secondary_1up0l {
42
42
  color: var(--color-light-text-secondary);
43
43
  }
44
- .typography__tertiary-inverted_usno3 {
44
+ .typography__tertiary-inverted_1up0l {
45
45
  color: var(--color-light-text-tertiary-inverted);
46
46
  }
47
- .typography__primary-inverted_usno3 {
47
+ .typography__primary-inverted_1up0l {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .typography__secondary-inverted_usno3 {
50
+ .typography__secondary-inverted_1up0l {
51
51
  color: var(--color-light-text-secondary-inverted);
52
52
  }
53
- .typography__link_usno3 {
53
+ .typography__link_1up0l {
54
54
  color: var(--color-light-text-info);
55
55
  }
56
- .typography__negative_usno3 {
56
+ .typography__negative_1up0l {
57
57
  color: var(--color-light-text-negative);
58
58
  }
59
- .typography__static-primary-light_usno3 {
59
+ .typography__static-primary-light_1up0l {
60
60
  color: var(--color-static-text-primary-light);
61
61
  }
62
- .typography__static-secondary-light_usno3 {
62
+ .typography__static-secondary-light_1up0l {
63
63
  color: var(--color-static-text-secondary-light);
64
64
  }
65
- .typography__static-tertiary-light_usno3 {
65
+ .typography__static-tertiary-light_1up0l {
66
66
  color: var(--color-static-text-tertiary-light);
67
67
  }
68
- .typography__static-primary-dark_usno3 {
68
+ .typography__static-primary-dark_1up0l {
69
69
  color: var(--color-static-text-primary-dark);
70
70
  }
71
- .typography__static-secondary-dark_usno3 {
71
+ .typography__static-secondary-dark_1up0l {
72
72
  color: var(--color-static-text-secondary-dark);
73
73
  }
74
- .typography__static-tertiary-dark_usno3 {
74
+ .typography__static-tertiary-dark_1up0l {
75
75
  color: var(--color-static-text-tertiary-dark);
76
76
  }
77
- .typography__static-accent_usno3 {
77
+ .typography__static-accent_1up0l {
78
78
  color: var(--color-static-accent-primary);
79
79
  }
80
- .typography__static-positive_usno3 {
80
+ .typography__static-positive_1up0l {
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_1up0l","disabled":"typography__disabled_1up0l","accent":"typography__accent_1up0l","primary":"typography__primary_1up0l","attention":"typography__attention_1up0l","positive":"typography__positive_1up0l","secondary":"typography__secondary_1up0l","tertiary-inverted":"typography__tertiary-inverted_1up0l","primary-inverted":"typography__primary-inverted_1up0l","secondary-inverted":"typography__secondary-inverted_1up0l","link":"typography__link_1up0l","negative":"typography__negative_1up0l","static-primary-light":"typography__static-primary-light_1up0l","static-secondary-light":"typography__static-secondary-light_1up0l","static-tertiary-light":"typography__static-tertiary-light_1up0l","static-primary-dark":"typography__static-primary-dark_1up0l","static-secondary-dark":"typography__static-secondary-dark_1up0l","static-tertiary-dark":"typography__static-tertiary-dark_1up0l","static-accent":"typography__static-accent_1up0l","static-positive":"typography__static-positive_1up0l"};
4
4
 
5
5
  export { colors as default };
6
6
  //# sourceMappingURL=colors.module.css.js.map
@@ -1,209 +1,181 @@
1
1
  :root {
2
- --gap-s: 12px;
3
2
  --gap-0: 0px;
4
- --gap-12: var(--gap-s);
3
+ --gap-12: 12px;
5
4
  }
6
5
  :root {
7
- --font-family-alfasans:
8
- 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
9
- Helvetica, sans-serif;
6
+ --font-family-system:
7
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
10
8
  }
11
- .typography__transparent_2zvp4 {
9
+ .typography__transparent_15zcn {
12
10
  opacity: 0;
13
11
  }
14
12
  :root {
15
13
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
16
14
  }
17
- .typography__paragraph_2zvp4 {
15
+ .typography__paragraph_15zcn {
18
16
  margin: var(--gap-0);
19
17
  padding: var(--gap-0);
20
18
  }
21
- .typography__paragraphWithMargins_2zvp4 {
19
+ .typography__paragraphWithMargins_15zcn {
22
20
  padding: var(--gap-0);
23
21
  margin: var(--text-paragraph-margin-bottom);
24
22
  }
25
- .typography__component_2zvp4 {
23
+ .typography__component_15zcn {
26
24
  font-size: 16px;
27
25
  line-height: 20px;
28
26
  font-weight: 400;
29
- letter-spacing: -0.24px;
30
- font-family: var(--font-family-alfasans);
27
+ font-family: var(--font-family-system);
31
28
  }
32
- .typography__component_2zvp4.typography__bold_2zvp4 {
29
+ .typography__component_15zcn.typography__bold_15zcn {
33
30
  font-weight: 700;
34
- letter-spacing: 0.43px;
35
31
  }
36
- .typography__component_2zvp4.typography__medium_2zvp4 {
32
+ .typography__component_15zcn.typography__medium_15zcn {
37
33
  font-weight: 500;
38
- letter-spacing: -0.05px;
39
34
  }
40
- .typography__caps_2zvp4 {
35
+ .typography__caps_15zcn {
41
36
  font-size: 12px;
42
37
  line-height: 16px;
43
38
  font-weight: 400;
44
39
  letter-spacing: 1.25px;
45
40
  text-transform: uppercase;
46
- font-family: var(--font-family-alfasans);
41
+ font-family: var(--font-family-system);
47
42
  }
48
- .typography__caps_2zvp4.typography__bold_2zvp4 {
43
+ .typography__caps_15zcn.typography__bold_15zcn {
49
44
  font-weight: 700;
50
45
  }
51
- .typography__caps_2zvp4.typography__medium_2zvp4 {
46
+ .typography__caps_15zcn.typography__medium_15zcn {
52
47
  font-weight: 500;
53
48
  }
54
- .typography__tagline_2zvp4 {
49
+ .typography__tagline_15zcn {
55
50
  font-size: 12px;
56
51
  line-height: 16px;
57
52
  font-weight: 400;
58
53
  letter-spacing: 1.25px;
59
54
  text-transform: uppercase;
60
- font-family: var(--font-family-alfasans);
55
+ font-family: var(--font-family-system);
61
56
  }
62
- .typography__tagline_2zvp4.typography__bold_2zvp4 {
57
+ .typography__tagline_15zcn.typography__bold_15zcn {
63
58
  font-weight: 700;
64
59
  }
65
- .typography__tagline_2zvp4.typography__medium_2zvp4 {
60
+ .typography__tagline_15zcn.typography__medium_15zcn {
66
61
  font-weight: 500;
67
62
  }
68
- .typography__primary-large_2zvp4 {
63
+ .typography__primary-large_15zcn {
69
64
  font-size: 18px;
70
65
  line-height: 24px;
71
66
  font-weight: 400;
72
- letter-spacing: -0.36px;
73
- font-family: var(--font-family-alfasans);
67
+ font-family: var(--font-family-system);
74
68
  }
75
- .typography__primary-large_2zvp4.typography__bold_2zvp4 {
69
+ .typography__primary-large_15zcn.typography__bold_15zcn {
76
70
  font-weight: 700;
77
- letter-spacing: 0.38px;
78
71
  }
79
- .typography__primary-large_2zvp4.typography__medium_2zvp4 {
72
+ .typography__primary-large_15zcn.typography__medium_15zcn {
80
73
  font-weight: 500;
81
- letter-spacing: -0.17px;
82
74
  }
83
- .typography__primary-medium_2zvp4 {
75
+ .typography__primary-medium_15zcn {
84
76
  font-size: 16px;
85
77
  line-height: 24px;
86
78
  font-weight: 400;
87
- letter-spacing: -0.24px;
88
- font-family: var(--font-family-alfasans);
79
+ font-family: var(--font-family-system);
89
80
  }
90
- .typography__primary-medium_2zvp4.typography__bold_2zvp4 {
81
+ .typography__primary-medium_15zcn.typography__bold_15zcn {
91
82
  font-weight: 700;
92
- letter-spacing: 0.43px;
93
83
  }
94
- .typography__primary-medium_2zvp4.typography__medium_2zvp4 {
84
+ .typography__primary-medium_15zcn.typography__medium_15zcn {
95
85
  font-weight: 500;
96
- letter-spacing: -0.05px;
97
86
  }
98
- .typography__primary-small_2zvp4 {
87
+ .typography__primary-small_15zcn {
99
88
  font-size: 14px;
100
89
  line-height: 20px;
101
90
  font-weight: 400;
102
- letter-spacing: -0.08px;
103
- font-family: var(--font-family-alfasans);
91
+ font-family: var(--font-family-system);
104
92
  }
105
- .typography__primary-small_2zvp4.typography__bold_2zvp4 {
93
+ .typography__primary-small_15zcn.typography__bold_15zcn {
106
94
  font-weight: 700;
107
- letter-spacing: 0.47px;
108
95
  }
109
- .typography__primary-small_2zvp4.typography__medium_2zvp4 {
96
+ .typography__primary-small_15zcn.typography__medium_15zcn {
110
97
  font-weight: 500;
111
- letter-spacing: 0.07px;
112
98
  }
113
- .typography__component-primary_2zvp4 {
99
+ .typography__component-primary_15zcn {
114
100
  font-size: 16px;
115
101
  line-height: 20px;
116
102
  font-weight: 400;
117
- letter-spacing: -0.24px;
118
- font-family: var(--font-family-alfasans);
103
+ font-family: var(--font-family-system);
119
104
  }
120
- .typography__component-primary_2zvp4.typography__bold_2zvp4 {
105
+ .typography__component-primary_15zcn.typography__bold_15zcn {
121
106
  font-weight: 700;
122
- letter-spacing: 0.43px;
123
107
  }
124
- .typography__component-primary_2zvp4.typography__medium_2zvp4 {
108
+ .typography__component-primary_15zcn.typography__medium_15zcn {
125
109
  font-weight: 500;
126
- letter-spacing: -0.05px;
127
110
  }
128
- .typography__secondary-large_2zvp4 {
111
+ .typography__secondary-large_15zcn {
129
112
  font-size: 13px;
130
113
  line-height: 16px;
131
114
  font-weight: 400;
132
- font-family: var(--font-family-alfasans);
115
+ font-family: var(--font-family-system);
133
116
  }
134
- .typography__secondary-large_2zvp4.typography__bold_2zvp4 {
117
+ .typography__secondary-large_15zcn.typography__bold_15zcn {
135
118
  font-weight: 700;
136
- letter-spacing: 0.54px;
137
119
  }
138
- .typography__secondary-large_2zvp4.typography__medium_2zvp4 {
120
+ .typography__secondary-large_15zcn.typography__medium_15zcn {
139
121
  font-weight: 500;
140
- letter-spacing: 0.13px;
141
122
  }
142
- .typography__secondary-medium_2zvp4 {
123
+ .typography__secondary-medium_15zcn {
143
124
  font-size: 12px;
144
125
  line-height: 16px;
145
126
  font-weight: 400;
146
- letter-spacing: 0.06px;
147
- font-family: var(--font-family-alfasans);
127
+ font-family: var(--font-family-system);
148
128
  }
149
- .typography__secondary-medium_2zvp4.typography__bold_2zvp4 {
129
+ .typography__secondary-medium_15zcn.typography__bold_15zcn {
150
130
  font-weight: 700;
151
- letter-spacing: 0.57px;
152
131
  }
153
- .typography__secondary-medium_2zvp4.typography__medium_2zvp4 {
132
+ .typography__secondary-medium_15zcn.typography__medium_15zcn {
154
133
  font-weight: 500;
155
- letter-spacing: 0.19px;
156
134
  }
157
- .typography__secondary-small_2zvp4 {
135
+ .typography__secondary-small_15zcn {
158
136
  font-size: 11px;
159
137
  line-height: 16px;
160
138
  font-weight: 400;
161
- letter-spacing: 0.15px;
162
- font-family: var(--font-family-alfasans);
139
+ font-family: var(--font-family-system);
163
140
  }
164
- .typography__secondary-small_2zvp4.typography__bold_2zvp4 {
141
+ .typography__secondary-small_15zcn.typography__bold_15zcn {
165
142
  font-weight: 700;
166
- letter-spacing: 0.54px;
167
143
  }
168
- .typography__secondary-small_2zvp4.typography__medium_2zvp4 {
144
+ .typography__secondary-small_15zcn.typography__medium_15zcn {
169
145
  font-weight: 500;
170
- letter-spacing: 0.24px;
171
146
  }
172
- .typography__component-secondary_2zvp4 {
147
+ .typography__component-secondary_15zcn {
173
148
  font-size: 14px;
174
149
  line-height: 18px;
175
150
  font-weight: 400;
176
- letter-spacing: -0.08px;
177
- font-family: var(--font-family-alfasans);
151
+ font-family: var(--font-family-system);
178
152
  }
179
- .typography__component-secondary_2zvp4.typography__bold_2zvp4 {
153
+ .typography__component-secondary_15zcn.typography__bold_15zcn {
180
154
  font-weight: 700;
181
- letter-spacing: 0.47px;
182
155
  }
183
- .typography__component-secondary_2zvp4.typography__medium_2zvp4 {
156
+ .typography__component-secondary_15zcn.typography__medium_15zcn {
184
157
  font-weight: 500;
185
- letter-spacing: 0.07px;
186
158
  }
187
- .typography__rowLimit1_2zvp4 {
159
+ .typography__rowLimit1_15zcn {
188
160
  -webkit-line-clamp: 1;
189
161
  display: -webkit-box;
190
162
  -webkit-box-orient: vertical;
191
163
  overflow: hidden;
192
164
  word-break: break-all;
193
165
  }
194
- .typography__rowLimit2_2zvp4 {
166
+ .typography__rowLimit2_15zcn {
195
167
  -webkit-line-clamp: 2;
196
168
  display: -webkit-box;
197
169
  -webkit-box-orient: vertical;
198
170
  overflow: hidden;
199
171
  }
200
- .typography__rowLimit3_2zvp4 {
172
+ .typography__rowLimit3_15zcn {
201
173
  -webkit-line-clamp: 3;
202
174
  display: -webkit-box;
203
175
  -webkit-box-orient: vertical;
204
176
  overflow: hidden;
205
177
  }
206
- .typography__monospace_2zvp4 {
178
+ .typography__monospace_15zcn {
207
179
  font-feature-settings: "tnum";
208
180
  font-variant-numeric: tabular-nums;
209
181
  }
@@ -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_15zcn","paragraph":"typography__paragraph_15zcn","paragraphWithMargins":"typography__paragraphWithMargins_15zcn","component":"typography__component_15zcn","bold":"typography__bold_15zcn","medium":"typography__medium_15zcn","caps":"typography__caps_15zcn","tagline":"typography__tagline_15zcn","primary-large":"typography__primary-large_15zcn","primary-medium":"typography__primary-medium_15zcn","primary-small":"typography__primary-small_15zcn","component-primary":"typography__component-primary_15zcn","secondary-large":"typography__secondary-large_15zcn","secondary-medium":"typography__secondary-medium_15zcn","secondary-small":"typography__secondary-small_15zcn","component-secondary":"typography__component-secondary_15zcn","rowLimit1":"typography__rowLimit1_15zcn","rowLimit2":"typography__rowLimit2_15zcn","rowLimit3":"typography__rowLimit3_15zcn","monospace":"typography__monospace_15zcn"};
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_gne53 {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_6mtbu {
7
+ .typography__component_gne53 {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_6mtbu {
11
+ .typography__rowLimit1_gne53 {
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_gne53 {
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_gne53 {
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_gne53","component":"typography__component_gne53","rowLimit1":"typography__rowLimit1_gne53","rowLimit2":"typography__rowLimit2_gne53","rowLimit3":"typography__rowLimit3_gne53"};
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