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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/cssm/text/index.module.css +41 -15
  4. package/cssm/title/component.d.ts +2 -8
  5. package/cssm/title/component.js +3 -6
  6. package/cssm/title/component.js.map +1 -1
  7. package/cssm/title/index.d.ts +1 -4
  8. package/cssm/title/index.module.css +27 -82
  9. package/cssm/title-mobile/component.d.ts +1 -4
  10. package/cssm/title-mobile/index.module.css +31 -51
  11. package/cssm/title-responsive/component.d.ts +1 -4
  12. package/esm/colors.css +20 -20
  13. package/esm/colors.module.css.js +1 -1
  14. package/esm/text/index.css +81 -55
  15. package/esm/text/index.module.css.js +1 -1
  16. package/esm/title/common.css +5 -5
  17. package/esm/title/common.module.css.js +1 -1
  18. package/esm/title/component.d.ts +2 -8
  19. package/esm/title/component.js +2 -5
  20. package/esm/title/component.js.map +1 -1
  21. package/esm/title/index.css +42 -97
  22. package/esm/title/index.d.ts +1 -4
  23. package/esm/title/index.module.css.js +1 -1
  24. package/esm/title/index.module.css.js.map +1 -1
  25. package/esm/title-mobile/component.d.ts +1 -4
  26. package/esm/title-mobile/index.css +56 -76
  27. package/esm/title-mobile/index.module.css.js +1 -1
  28. package/esm/title-responsive/component.d.ts +1 -4
  29. package/modern/colors.css +20 -20
  30. package/modern/colors.module.css.js +1 -1
  31. package/modern/text/index.css +81 -55
  32. package/modern/text/index.module.css.js +1 -1
  33. package/modern/title/common.css +5 -5
  34. package/modern/title/common.module.css.js +1 -1
  35. package/modern/title/component.d.ts +2 -8
  36. package/modern/title/component.js +1 -4
  37. package/modern/title/component.js.map +1 -1
  38. package/modern/title/index.css +42 -97
  39. package/modern/title/index.d.ts +1 -4
  40. package/modern/title/index.module.css.js +1 -1
  41. package/modern/title/index.module.css.js.map +1 -1
  42. package/modern/title-mobile/component.d.ts +1 -4
  43. package/modern/title-mobile/index.css +56 -76
  44. package/modern/title-mobile/index.module.css.js +1 -1
  45. package/modern/title-responsive/component.d.ts +1 -4
  46. package/moderncssm/text/index.module.css +37 -11
  47. package/moderncssm/title/component.d.ts +2 -8
  48. package/moderncssm/title/component.js +1 -4
  49. package/moderncssm/title/component.js.map +1 -1
  50. package/moderncssm/title/index.d.ts +1 -4
  51. package/moderncssm/title/index.module.css +20 -79
  52. package/moderncssm/title-mobile/component.d.ts +1 -4
  53. package/moderncssm/title-mobile/index.module.css +25 -40
  54. package/moderncssm/title-responsive/component.d.ts +1 -4
  55. package/package.json +6 -6
  56. package/src/title/component.tsx +3 -8
  57. package/src/title/index.module.css +0 -8
  58. package/text/index.css +81 -55
  59. package/text/index.module.css.js +1 -1
  60. package/title/common.css +5 -5
  61. package/title/common.module.css.js +1 -1
  62. package/title/component.d.ts +2 -8
  63. package/title/component.js +2 -5
  64. package/title/component.js.map +1 -1
  65. package/title/index.css +42 -97
  66. package/title/index.d.ts +1 -4
  67. package/title/index.module.css.js +1 -1
  68. package/title/index.module.css.js.map +1 -1
  69. package/title-mobile/component.d.ts +1 -4
  70. package/title-mobile/index.css +56 -76
  71. package/title-mobile/index.module.css.js +1 -1
  72. package/title-responsive/component.d.ts +1 -4
  73. package/cssm/title/utils.d.ts +0 -1
  74. package/cssm/title/utils.js +0 -16
  75. package/cssm/title/utils.js.map +0 -1
  76. package/esm/title/utils.d.ts +0 -1
  77. package/esm/title/utils.js +0 -12
  78. package/esm/title/utils.js.map +0 -1
  79. package/modern/title/utils.d.ts +0 -1
  80. package/modern/title/utils.js +0 -12
  81. package/modern/title/utils.js.map +0 -1
  82. package/moderncssm/title/utils.d.ts +0 -1
  83. package/moderncssm/title/utils.js +0 -12
  84. package/moderncssm/title/utils.js.map +0 -1
  85. package/src/title/utils.ts +0 -14
  86. package/title/utils.d.ts +0 -1
  87. package/title/utils.js +0 -16
  88. package/title/utils.js.map +0 -1
@@ -1,123 +1,103 @@
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-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;
8
+ --font-family-alfasans:
9
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
10
+ Helvetica, sans-serif;
16
11
  }
17
12
  .xlarge {
18
13
  font-size: 34px;
19
14
  line-height: 40px;
20
- font-weight: 600;
21
- font-family: var(--font-family-system);
15
+ font-weight: 500;
16
+ letter-spacing: -0.32px;
17
+ font-family: var(--font-family-alfasans);
22
18
  }
23
19
  .xlarge.font {
24
- font-weight: 500;
25
- font-feature-settings: 'ss01';
26
- font-family: var(--font-family-styrene);
27
20
  }
28
21
  .regular-xlarge {
29
22
  font-size: 34px;
30
23
  line-height: 40px;
31
24
  font-weight: 400;
32
- font-family: var(--font-family-system);
25
+ letter-spacing: -1.36px;
26
+ font-family: var(--font-family-alfasans);
33
27
  }
34
28
  .regular-xlarge.system {
35
- font-feature-settings: 'ss01';
36
- font-family: var(--font-family-styrene);
37
29
  }
38
30
  .large {
39
31
  font-size: 30px;
40
32
  line-height: 36px;
41
- font-weight: 600;
42
- font-family: var(--font-family-system);
33
+ font-weight: 500;
34
+ letter-spacing: -0.25px;
35
+ font-family: var(--font-family-alfasans);
43
36
  }
44
37
  .large.font {
45
- font-weight: 500;
46
- font-feature-settings: 'ss01';
47
- font-family: var(--font-family-styrene);
48
38
  }
49
39
  .regular-large {
50
40
  font-size: 30px;
51
41
  line-height: 36px;
52
42
  font-weight: 400;
53
- font-family: var(--font-family-system);
43
+ letter-spacing: -1.25px;
44
+ font-family: var(--font-family-alfasans);
54
45
  }
55
46
  .regular-large.system {
56
- font-feature-settings: 'ss01';
57
- font-family: var(--font-family-styrene);
58
47
  }
59
48
  .medium {
60
49
  font-size: 26px;
61
50
  line-height: 32px;
62
- font-weight: 600;
63
- font-family: var(--font-family-system);
51
+ font-weight: 500;
52
+ letter-spacing: -0.25px;
53
+ font-family: var(--font-family-alfasans);
64
54
  }
65
55
  .medium.font {
66
- font-weight: 500;
67
- font-feature-settings: 'ss01';
68
- font-family: var(--font-family-styrene);
69
56
  }
70
57
  .regular-medium {
71
58
  font-size: 26px;
72
59
  line-height: 32px;
73
60
  font-weight: 400;
74
- font-family: var(--font-family-system);
61
+ letter-spacing: -1px;
62
+ font-family: var(--font-family-alfasans);
75
63
  }
76
64
  .regular-medium.system {
77
- font-feature-settings: 'ss01';
78
- font-family: var(--font-family-styrene);
79
65
  }
80
66
  .small {
81
67
  font-size: 20px;
82
68
  line-height: 28px;
83
- font-weight: 600;
84
- font-family: var(--font-family-system);
69
+ font-weight: 500;
70
+ letter-spacing: -0.15px;
71
+ font-family: var(--font-family-alfasans);
85
72
  }
86
73
  .small.font {
87
- font-weight: 500;
88
- font-feature-settings: 'ss01';
89
- font-family: var(--font-family-styrene);
90
74
  }
91
75
  .regular-small {
92
76
  font-size: 20px;
93
77
  line-height: 28px;
94
78
  font-weight: 400;
95
- font-family: var(--font-family-system);
79
+ letter-spacing: -0.68px;
80
+ font-family: var(--font-family-alfasans);
96
81
  }
97
82
  .regular-small.system {
98
- font-feature-settings: 'ss01';
99
- font-family: var(--font-family-styrene);
100
83
  }
101
84
  .xsmall {
102
85
  font-size: 16px;
103
86
  line-height: 20px;
104
- font-weight: 600;
105
- font-family: var(--font-family-system);
87
+ font-weight: 500;
88
+ letter-spacing: 0.17px;
89
+ font-family: var(--font-family-alfasans);
106
90
  }
107
91
  .xsmall.font {
108
- font-weight: 500;
109
- font-feature-settings: 'ss01';
110
- font-family: var(--font-family-styrene);
111
92
  }
112
93
  .regular-xsmall {
113
94
  font-size: 16px;
114
95
  line-height: 20px;
115
96
  font-weight: 400;
116
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
117
99
  }
118
100
  .regular-xsmall.system {
119
- font-feature-settings: 'ss01';
120
- font-family: var(--font-family-styrene);
121
101
  }
122
102
  .component.margins-xlarge {
123
103
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
@@ -16,10 +16,7 @@ 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" | "alfasans" | {
20
- font: "alfasans";
21
- systemCompat: boolean;
22
- };
19
+ font?: "styrene" | "system";
23
20
  defaultMargins?: boolean;
24
21
  className?: string;
25
22
  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_6zo5v {
23
+ .typography__tertiary_564se {
24
24
  color: var(--color-light-text-tertiary);
25
25
  }
26
- .typography__disabled_6zo5v {
26
+ .typography__disabled_564se {
27
27
  color: var(--color-light-text-quaternary);
28
28
  }
29
- .typography__accent_6zo5v {
29
+ .typography__accent_564se {
30
30
  color: var(--color-light-accent-primary);
31
31
  }
32
- .typography__primary_6zo5v {
32
+ .typography__primary_564se {
33
33
  color: var(--color-light-text-primary);
34
34
  }
35
- .typography__attention_6zo5v {
35
+ .typography__attention_564se {
36
36
  color: var(--color-light-text-attention);
37
37
  }
38
- .typography__positive_6zo5v {
38
+ .typography__positive_564se {
39
39
  color: var(--color-light-text-positive);
40
40
  }
41
- .typography__secondary_6zo5v {
41
+ .typography__secondary_564se {
42
42
  color: var(--color-light-text-secondary);
43
43
  }
44
- .typography__tertiary-inverted_6zo5v {
44
+ .typography__tertiary-inverted_564se {
45
45
  color: var(--color-light-text-tertiary-inverted);
46
46
  }
47
- .typography__primary-inverted_6zo5v {
47
+ .typography__primary-inverted_564se {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .typography__secondary-inverted_6zo5v {
50
+ .typography__secondary-inverted_564se {
51
51
  color: var(--color-light-text-secondary-inverted);
52
52
  }
53
- .typography__link_6zo5v {
53
+ .typography__link_564se {
54
54
  color: var(--color-light-text-info);
55
55
  }
56
- .typography__negative_6zo5v {
56
+ .typography__negative_564se {
57
57
  color: var(--color-light-text-negative);
58
58
  }
59
- .typography__static-primary-light_6zo5v {
59
+ .typography__static-primary-light_564se {
60
60
  color: var(--color-static-text-primary-light);
61
61
  }
62
- .typography__static-secondary-light_6zo5v {
62
+ .typography__static-secondary-light_564se {
63
63
  color: var(--color-static-text-secondary-light);
64
64
  }
65
- .typography__static-tertiary-light_6zo5v {
65
+ .typography__static-tertiary-light_564se {
66
66
  color: var(--color-static-text-tertiary-light);
67
67
  }
68
- .typography__static-primary-dark_6zo5v {
68
+ .typography__static-primary-dark_564se {
69
69
  color: var(--color-static-text-primary-dark);
70
70
  }
71
- .typography__static-secondary-dark_6zo5v {
71
+ .typography__static-secondary-dark_564se {
72
72
  color: var(--color-static-text-secondary-dark);
73
73
  }
74
- .typography__static-tertiary-dark_6zo5v {
74
+ .typography__static-tertiary-dark_564se {
75
75
  color: var(--color-static-text-tertiary-dark);
76
76
  }
77
- .typography__static-accent_6zo5v {
77
+ .typography__static-accent_564se {
78
78
  color: var(--color-static-accent-primary);
79
79
  }
80
- .typography__static-positive_6zo5v {
80
+ .typography__static-positive_564se {
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_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"};
3
+ var colors = {"tertiary":"typography__tertiary_564se","disabled":"typography__disabled_564se","accent":"typography__accent_564se","primary":"typography__primary_564se","attention":"typography__attention_564se","positive":"typography__positive_564se","secondary":"typography__secondary_564se","tertiary-inverted":"typography__tertiary-inverted_564se","primary-inverted":"typography__primary-inverted_564se","secondary-inverted":"typography__secondary-inverted_564se","link":"typography__link_564se","negative":"typography__negative_564se","static-primary-light":"typography__static-primary-light_564se","static-secondary-light":"typography__static-secondary-light_564se","static-tertiary-light":"typography__static-tertiary-light_564se","static-primary-dark":"typography__static-primary-dark_564se","static-secondary-dark":"typography__static-secondary-dark_564se","static-tertiary-dark":"typography__static-tertiary-dark_564se","static-accent":"typography__static-accent_564se","static-positive":"typography__static-positive_564se"};
4
4
 
5
5
  export { colors as default };
6
6
  //# sourceMappingURL=colors.module.css.js.map
@@ -1,182 +1,208 @@
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-system:
8
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
6
+ --font-family-alfasans:
7
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
8
+ Helvetica, sans-serif;
9
9
  }
10
- .typography__transparent_1wgfo {
10
+ .typography__transparent_i0c0a {
11
11
  opacity: 0;
12
12
  }
13
13
  :root {
14
14
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
15
15
  }
16
- .typography__paragraph_1wgfo {
16
+ .typography__paragraph_i0c0a {
17
17
  margin: var(--gap-0);
18
18
  padding: var(--gap-0);
19
19
  }
20
- .typography__paragraphWithMargins_1wgfo {
20
+ .typography__paragraphWithMargins_i0c0a {
21
21
  padding: var(--gap-0);
22
22
  margin: var(--text-paragraph-margin-bottom);
23
23
  }
24
- .typography__component_1wgfo {
24
+ .typography__component_i0c0a {
25
25
  font-size: 16px;
26
26
  line-height: 20px;
27
27
  font-weight: 400;
28
- font-family: var(--font-family-system);
28
+ letter-spacing: -0.24px;
29
+ font-family: var(--font-family-alfasans);
29
30
  }
30
- .typography__component_1wgfo.typography__bold_1wgfo {
31
+ .typography__component_i0c0a.typography__bold_i0c0a {
31
32
  font-weight: 700;
33
+ letter-spacing: 0.43px;
32
34
  }
33
- .typography__component_1wgfo.typography__medium_1wgfo {
35
+ .typography__component_i0c0a.typography__medium_i0c0a {
34
36
  font-weight: 500;
37
+ letter-spacing: -0.05px;
35
38
  }
36
- .typography__caps_1wgfo {
39
+ .typography__caps_i0c0a {
37
40
  font-size: 12px;
38
41
  line-height: 16px;
39
42
  font-weight: 400;
40
43
  letter-spacing: 1.25px;
41
44
  text-transform: uppercase;
42
- font-family: var(--font-family-system);
45
+ font-family: var(--font-family-alfasans);
43
46
  }
44
- .typography__caps_1wgfo.typography__bold_1wgfo {
47
+ .typography__caps_i0c0a.typography__bold_i0c0a {
45
48
  font-weight: 700;
46
49
  }
47
- .typography__caps_1wgfo.typography__medium_1wgfo {
50
+ .typography__caps_i0c0a.typography__medium_i0c0a {
48
51
  font-weight: 500;
49
52
  }
50
- .typography__tagline_1wgfo {
53
+ .typography__tagline_i0c0a {
51
54
  font-size: 12px;
52
55
  line-height: 16px;
53
56
  font-weight: 400;
54
57
  letter-spacing: 1.25px;
55
58
  text-transform: uppercase;
56
- font-family: var(--font-family-system);
59
+ font-family: var(--font-family-alfasans);
57
60
  }
58
- .typography__tagline_1wgfo.typography__bold_1wgfo {
61
+ .typography__tagline_i0c0a.typography__bold_i0c0a {
59
62
  font-weight: 700;
60
63
  }
61
- .typography__tagline_1wgfo.typography__medium_1wgfo {
64
+ .typography__tagline_i0c0a.typography__medium_i0c0a {
62
65
  font-weight: 500;
63
66
  }
64
- .typography__primary-large_1wgfo {
67
+ .typography__primary-large_i0c0a {
65
68
  font-size: 18px;
66
69
  line-height: 24px;
67
70
  font-weight: 400;
68
- font-family: var(--font-family-system);
71
+ letter-spacing: -0.36px;
72
+ font-family: var(--font-family-alfasans);
69
73
  }
70
- .typography__primary-large_1wgfo.typography__bold_1wgfo {
74
+ .typography__primary-large_i0c0a.typography__bold_i0c0a {
71
75
  font-weight: 700;
76
+ letter-spacing: 0.38px;
72
77
  }
73
- .typography__primary-large_1wgfo.typography__medium_1wgfo {
78
+ .typography__primary-large_i0c0a.typography__medium_i0c0a {
74
79
  font-weight: 500;
80
+ letter-spacing: -0.17px;
75
81
  }
76
- .typography__primary-medium_1wgfo {
82
+ .typography__primary-medium_i0c0a {
77
83
  font-size: 16px;
78
84
  line-height: 24px;
79
85
  font-weight: 400;
80
- font-family: var(--font-family-system);
86
+ letter-spacing: -0.24px;
87
+ font-family: var(--font-family-alfasans);
81
88
  }
82
- .typography__primary-medium_1wgfo.typography__bold_1wgfo {
89
+ .typography__primary-medium_i0c0a.typography__bold_i0c0a {
83
90
  font-weight: 700;
91
+ letter-spacing: 0.43px;
84
92
  }
85
- .typography__primary-medium_1wgfo.typography__medium_1wgfo {
93
+ .typography__primary-medium_i0c0a.typography__medium_i0c0a {
86
94
  font-weight: 500;
95
+ letter-spacing: -0.05px;
87
96
  }
88
- .typography__primary-small_1wgfo {
97
+ .typography__primary-small_i0c0a {
89
98
  font-size: 14px;
90
99
  line-height: 20px;
91
100
  font-weight: 400;
92
- font-family: var(--font-family-system);
101
+ letter-spacing: -0.08px;
102
+ font-family: var(--font-family-alfasans);
93
103
  }
94
- .typography__primary-small_1wgfo.typography__bold_1wgfo {
104
+ .typography__primary-small_i0c0a.typography__bold_i0c0a {
95
105
  font-weight: 700;
106
+ letter-spacing: 0.47px;
96
107
  }
97
- .typography__primary-small_1wgfo.typography__medium_1wgfo {
108
+ .typography__primary-small_i0c0a.typography__medium_i0c0a {
98
109
  font-weight: 500;
110
+ letter-spacing: 0.07px;
99
111
  }
100
- .typography__component-primary_1wgfo {
112
+ .typography__component-primary_i0c0a {
101
113
  font-size: 16px;
102
114
  line-height: 20px;
103
115
  font-weight: 400;
104
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.24px;
117
+ font-family: var(--font-family-alfasans);
105
118
  }
106
- .typography__component-primary_1wgfo.typography__bold_1wgfo {
119
+ .typography__component-primary_i0c0a.typography__bold_i0c0a {
107
120
  font-weight: 700;
121
+ letter-spacing: 0.43px;
108
122
  }
109
- .typography__component-primary_1wgfo.typography__medium_1wgfo {
123
+ .typography__component-primary_i0c0a.typography__medium_i0c0a {
110
124
  font-weight: 500;
125
+ letter-spacing: -0.05px;
111
126
  }
112
- .typography__secondary-large_1wgfo {
127
+ .typography__secondary-large_i0c0a {
113
128
  font-size: 13px;
114
129
  line-height: 16px;
115
130
  font-weight: 400;
116
- font-family: var(--font-family-system);
131
+ font-family: var(--font-family-alfasans);
117
132
  }
118
- .typography__secondary-large_1wgfo.typography__bold_1wgfo {
133
+ .typography__secondary-large_i0c0a.typography__bold_i0c0a {
119
134
  font-weight: 700;
135
+ letter-spacing: 0.54px;
120
136
  }
121
- .typography__secondary-large_1wgfo.typography__medium_1wgfo {
137
+ .typography__secondary-large_i0c0a.typography__medium_i0c0a {
122
138
  font-weight: 500;
139
+ letter-spacing: 0.13px;
123
140
  }
124
- .typography__secondary-medium_1wgfo {
141
+ .typography__secondary-medium_i0c0a {
125
142
  font-size: 12px;
126
143
  line-height: 16px;
127
144
  font-weight: 400;
128
- font-family: var(--font-family-system);
145
+ letter-spacing: 0.06px;
146
+ font-family: var(--font-family-alfasans);
129
147
  }
130
- .typography__secondary-medium_1wgfo.typography__bold_1wgfo {
148
+ .typography__secondary-medium_i0c0a.typography__bold_i0c0a {
131
149
  font-weight: 700;
150
+ letter-spacing: 0.57px;
132
151
  }
133
- .typography__secondary-medium_1wgfo.typography__medium_1wgfo {
152
+ .typography__secondary-medium_i0c0a.typography__medium_i0c0a {
134
153
  font-weight: 500;
154
+ letter-spacing: 0.19px;
135
155
  }
136
- .typography__secondary-small_1wgfo {
156
+ .typography__secondary-small_i0c0a {
137
157
  font-size: 11px;
138
158
  line-height: 16px;
139
159
  font-weight: 400;
140
- font-family: var(--font-family-system);
160
+ letter-spacing: 0.15px;
161
+ font-family: var(--font-family-alfasans);
141
162
  }
142
- .typography__secondary-small_1wgfo.typography__bold_1wgfo {
163
+ .typography__secondary-small_i0c0a.typography__bold_i0c0a {
143
164
  font-weight: 700;
165
+ letter-spacing: 0.54px;
144
166
  }
145
- .typography__secondary-small_1wgfo.typography__medium_1wgfo {
167
+ .typography__secondary-small_i0c0a.typography__medium_i0c0a {
146
168
  font-weight: 500;
169
+ letter-spacing: 0.24px;
147
170
  }
148
- .typography__component-secondary_1wgfo {
171
+ .typography__component-secondary_i0c0a {
149
172
  font-size: 14px;
150
173
  line-height: 18px;
151
174
  font-weight: 400;
152
- font-family: var(--font-family-system);
175
+ letter-spacing: -0.08px;
176
+ font-family: var(--font-family-alfasans);
153
177
  }
154
- .typography__component-secondary_1wgfo.typography__bold_1wgfo {
178
+ .typography__component-secondary_i0c0a.typography__bold_i0c0a {
155
179
  font-weight: 700;
180
+ letter-spacing: 0.47px;
156
181
  }
157
- .typography__component-secondary_1wgfo.typography__medium_1wgfo {
182
+ .typography__component-secondary_i0c0a.typography__medium_i0c0a {
158
183
  font-weight: 500;
184
+ letter-spacing: 0.07px;
159
185
  }
160
- .typography__rowLimit1_1wgfo {
186
+ .typography__rowLimit1_i0c0a {
161
187
  -webkit-line-clamp: 1;
162
188
  display: -webkit-box;
163
189
  -webkit-box-orient: vertical;
164
190
  overflow: hidden;
165
191
  word-break: break-all;
166
192
  }
167
- .typography__rowLimit2_1wgfo {
193
+ .typography__rowLimit2_i0c0a {
168
194
  -webkit-line-clamp: 2;
169
195
  display: -webkit-box;
170
196
  -webkit-box-orient: vertical;
171
197
  overflow: hidden;
172
198
  }
173
- .typography__rowLimit3_1wgfo {
199
+ .typography__rowLimit3_i0c0a {
174
200
  -webkit-line-clamp: 3;
175
201
  display: -webkit-box;
176
202
  -webkit-box-orient: vertical;
177
203
  overflow: hidden;
178
204
  }
179
- .typography__monospace_1wgfo {
205
+ .typography__monospace_i0c0a {
180
206
  font-feature-settings: "tnum";
181
207
  font-variant-numeric: tabular-nums;
182
208
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
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"};
3
+ var styles = {"transparent":"typography__transparent_i0c0a","paragraph":"typography__paragraph_i0c0a","paragraphWithMargins":"typography__paragraphWithMargins_i0c0a","component":"typography__component_i0c0a","bold":"typography__bold_i0c0a","medium":"typography__medium_i0c0a","caps":"typography__caps_i0c0a","tagline":"typography__tagline_i0c0a","primary-large":"typography__primary-large_i0c0a","primary-medium":"typography__primary-medium_i0c0a","primary-small":"typography__primary-small_i0c0a","component-primary":"typography__component-primary_i0c0a","secondary-large":"typography__secondary-large_i0c0a","secondary-medium":"typography__secondary-medium_i0c0a","secondary-small":"typography__secondary-small_i0c0a","component-secondary":"typography__component-secondary_i0c0a","rowLimit1":"typography__rowLimit1_i0c0a","rowLimit2":"typography__rowLimit2_i0c0a","rowLimit3":"typography__rowLimit3_i0c0a","monospace":"typography__monospace_i0c0a"};
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_vjxpi {
4
+ .typography__transparent_yrxb0 {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_vjxpi {
7
+ .typography__component_yrxb0 {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_vjxpi {
11
+ .typography__rowLimit1_yrxb0 {
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_vjxpi {
18
+ .typography__rowLimit2_yrxb0 {
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_vjxpi {
24
+ .typography__rowLimit3_yrxb0 {
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_vjxpi","component":"typography__component_vjxpi","rowLimit1":"typography__rowLimit1_vjxpi","rowLimit2":"typography__rowLimit2_vjxpi","rowLimit3":"typography__rowLimit3_vjxpi"};
3
+ var commonStyles = {"transparent":"typography__transparent_yrxb0","component":"typography__component_yrxb0","rowLimit1":"typography__rowLimit1_yrxb0","rowLimit2":"typography__rowLimit2_yrxb0","rowLimit3":"typography__rowLimit3_yrxb0"};
4
4
 
5
5
  export { commonStyles as default };
6
6
  //# sourceMappingURL=common.module.css.js.map
@@ -22,10 +22,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
22
22
  /**
23
23
  * Шрифт текста
24
24
  */
25
- font?: 'styrene' | 'system' | 'alfasans' | {
26
- font: 'alfasans';
27
- systemCompat: boolean;
28
- };
25
+ font?: 'styrene' | 'system';
29
26
  /**
30
27
  * Добавляет отступы
31
28
  */
@@ -86,10 +83,7 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
86
83
  /**
87
84
  * Шрифт текста
88
85
  */
89
- font?: "styrene" | "system" | "alfasans" | {
90
- font: "alfasans";
91
- systemCompat: boolean;
92
- };
86
+ font?: "styrene" | "system";
93
87
  /**
94
88
  * Добавляет отступы
95
89
  */
@@ -2,16 +2,14 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
- import { isObject } from '@alfalab/core-components-shared/esm';
6
5
  import { useSkeleton } from '@alfalab/core-components-skeleton/esm';
7
- import { getDefaultWeight } from './utils.js';
8
6
  import colors from '../colors.module.css.js';
9
7
  import commonStyles from './common.module.css.js';
10
8
 
11
9
  var TitleBase = forwardRef(function (_a, ref) {
12
10
  var _b;
13
- var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? getDefaultWeight(isObject(font) ? font.font : font, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
14
- var _h = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
11
+ var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d; _a.font; _a.platform; var _e = _a.weight, weight = _e === void 0 ? 'bold' : _e, _f = _a.defaultMargins, defaultMargins = _f === void 0 ? false : _f, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
12
+ var _g = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _g.renderSkeleton, textRef = _g.textRef;
15
13
  var skeleton = renderSkeleton({
16
14
  wrapperClassName: cn(defaultMargins && styles["margins-".concat(view)]),
17
15
  dataTestId: dataTestId,
@@ -22,7 +20,6 @@ var TitleBase = forwardRef(function (_a, ref) {
22
20
  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 = {},
23
21
  _b[commonStyles["rowLimit".concat(rowLimit)]] = rowLimit,
24
22
  _b[commonStyles.transparent] = showSkeleton,
25
- _b[styles.font] = (isObject(font) && !font.systemCompat) || !(font === 'system'),
26
23
  _b)), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]) }, restProps), children));
27
24
  });
28
25