@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
@@ -0,0 +1 @@
1
+ export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -0,0 +1,12 @@
1
+ function getDefaultWeight(font, platform) {
2
+ if (font === 'styrene' || font === 'alfasans') {
3
+ return 'medium';
4
+ }
5
+ if (platform === 'desktop') {
6
+ return 'bold';
7
+ }
8
+ return 'semibold';
9
+ }
10
+
11
+ export { getDefaultWeight };
12
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -4,7 +4,10 @@ export declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTM
4
4
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
5
5
  color?: import("..").Color;
6
6
  weight?: "regular" | "medium" | "bold" | "semibold";
7
- font?: "styrene" | "system";
7
+ font?: "styrene" | "system" | "alfasans" | {
8
+ font: "alfasans";
9
+ systemCompat: boolean;
10
+ };
8
11
  defaultMargins?: boolean;
9
12
  className?: string;
10
13
  dataTestId?: string;
@@ -2,111 +2,126 @@
2
2
  .xlarge {
3
3
  font-size: 34px;
4
4
  line-height: 40px;
5
- font-weight: 500;
6
- letter-spacing: -0.32px;
7
- font-family: var(--font-family-alfasans);
5
+ font-weight: 600;
6
+ font-family: var(--font-family-system);
8
7
  }
9
8
 
10
9
  .xlarge.font {
10
+ font-weight: 500;
11
+ font-feature-settings: 'ss01';
12
+ font-family: var(--font-family-styrene);
11
13
  }
12
14
 
13
15
  .regular-xlarge {
14
16
  font-size: 34px;
15
17
  line-height: 40px;
16
18
  font-weight: 400;
17
- letter-spacing: -1.36px;
18
- font-family: var(--font-family-alfasans);
19
+ font-family: var(--font-family-system);
19
20
  }
20
21
 
21
22
  .regular-xlarge.system {
23
+ font-feature-settings: 'ss01';
24
+ font-family: var(--font-family-styrene);
22
25
  }
23
26
 
24
27
  .large {
25
28
  font-size: 30px;
26
29
  line-height: 36px;
27
- font-weight: 500;
28
- letter-spacing: -0.25px;
29
- font-family: var(--font-family-alfasans);
30
+ font-weight: 600;
31
+ font-family: var(--font-family-system);
30
32
  }
31
33
 
32
34
  .large.font {
35
+ font-weight: 500;
36
+ font-feature-settings: 'ss01';
37
+ font-family: var(--font-family-styrene);
33
38
  }
34
39
 
35
40
  .regular-large {
36
41
  font-size: 30px;
37
42
  line-height: 36px;
38
43
  font-weight: 400;
39
- letter-spacing: -1.25px;
40
- font-family: var(--font-family-alfasans);
44
+ font-family: var(--font-family-system);
41
45
  }
42
46
 
43
47
  .regular-large.system {
48
+ font-feature-settings: 'ss01';
49
+ font-family: var(--font-family-styrene);
44
50
  }
45
51
 
46
52
  .medium {
47
53
  font-size: 26px;
48
54
  line-height: 32px;
49
- font-weight: 500;
50
- letter-spacing: -0.25px;
51
- font-family: var(--font-family-alfasans);
55
+ font-weight: 600;
56
+ font-family: var(--font-family-system);
52
57
  }
53
58
 
54
59
  .medium.font {
60
+ font-weight: 500;
61
+ font-feature-settings: 'ss01';
62
+ font-family: var(--font-family-styrene);
55
63
  }
56
64
 
57
65
  .regular-medium {
58
66
  font-size: 26px;
59
67
  line-height: 32px;
60
68
  font-weight: 400;
61
- letter-spacing: -1px;
62
- font-family: var(--font-family-alfasans);
69
+ font-family: var(--font-family-system);
63
70
  }
64
71
 
65
72
  .regular-medium.system {
73
+ font-feature-settings: 'ss01';
74
+ font-family: var(--font-family-styrene);
66
75
  }
67
76
 
68
77
  .small {
69
78
  font-size: 20px;
70
79
  line-height: 28px;
71
- font-weight: 500;
72
- letter-spacing: -0.15px;
73
- font-family: var(--font-family-alfasans);
80
+ font-weight: 600;
81
+ font-family: var(--font-family-system);
74
82
  }
75
83
 
76
84
  .small.font {
85
+ font-weight: 500;
86
+ font-feature-settings: 'ss01';
87
+ font-family: var(--font-family-styrene);
77
88
  }
78
89
 
79
90
  .regular-small {
80
91
  font-size: 20px;
81
92
  line-height: 28px;
82
93
  font-weight: 400;
83
- letter-spacing: -0.68px;
84
- font-family: var(--font-family-alfasans);
94
+ font-family: var(--font-family-system);
85
95
  }
86
96
 
87
97
  .regular-small.system {
98
+ font-feature-settings: 'ss01';
99
+ font-family: var(--font-family-styrene);
88
100
  }
89
101
 
90
102
  .xsmall {
91
103
  font-size: 16px;
92
104
  line-height: 20px;
93
- font-weight: 500;
94
- letter-spacing: 0.17px;
95
- font-family: var(--font-family-alfasans);
105
+ font-weight: 600;
106
+ font-family: var(--font-family-system);
96
107
  }
97
108
 
98
109
  .xsmall.font {
110
+ font-weight: 500;
111
+ font-feature-settings: 'ss01';
112
+ font-family: var(--font-family-styrene);
99
113
  }
100
114
 
101
115
  .regular-xsmall {
102
116
  font-size: 16px;
103
117
  line-height: 20px;
104
118
  font-weight: 400;
105
- letter-spacing: -0.24px;
106
- font-family: var(--font-family-alfasans);
119
+ font-family: var(--font-family-system);
107
120
  }
108
121
 
109
122
  .regular-xsmall.system {
123
+ font-feature-settings: 'ss01';
124
+ font-family: var(--font-family-styrene);
110
125
  }
111
126
 
112
127
  .component.margins-xlarge {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "6.0.9-alfasans",
3
+ "version": "6.0.10",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,9 +13,9 @@
13
13
  "build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
14
14
  },
15
15
  "dependencies": {
16
- "@alfalab/core-components-mq": "6.0.6-alfasans",
17
- "@alfalab/core-components-shared": "2.2.2-alfasans",
18
- "@alfalab/core-components-skeleton": "7.0.4-alfasans",
16
+ "@alfalab/core-components-mq": "^6.0.7",
17
+ "@alfalab/core-components-shared": "^2.2.3",
18
+ "@alfalab/core-components-skeleton": "^7.0.4",
19
19
  "classnames": "^2.5.1",
20
20
  "react-merge-refs": "^1.1.0",
21
21
  "tslib": "^2.4.0"
@@ -28,6 +28,6 @@
28
28
  "access": "public",
29
29
  "directory": "dist"
30
30
  },
31
- "themesVersion": "15.2.0-alfasans",
32
- "varsVersion": "11.1.0-alfasans"
31
+ "themesVersion": "15.2.1",
32
+ "varsVersion": "11.2.1"
33
33
  }
@@ -2,10 +2,13 @@ import React, { forwardRef, type HTMLAttributes } from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
 
5
+ import { isObject } from '@alfalab/core-components-shared';
5
6
  import { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';
6
7
 
7
8
  import { type Color } from '../colors';
8
9
 
10
+ import { getDefaultWeight } from './utils';
11
+
9
12
  import colors from '../colors.module.css';
10
13
  import commonStyles from './common.module.css';
11
14
 
@@ -35,7 +38,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
35
38
  /**
36
39
  * Шрифт текста
37
40
  */
38
- font?: 'styrene' | 'system';
41
+ font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };
39
42
 
40
43
  /**
41
44
  * Добавляет отступы
@@ -92,9 +95,9 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
92
95
  {
93
96
  tag: Component = 'div',
94
97
  view = 'medium',
95
- font,
98
+ font = 'styrene',
96
99
  platform,
97
- weight = 'bold',
100
+ weight = getDefaultWeight(isObject(font) ? font.font : font, platform),
98
101
  defaultMargins = false,
99
102
  color,
100
103
  className,
@@ -131,6 +134,8 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
131
134
  {
132
135
  [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,
133
136
  [commonStyles.transparent]: showSkeleton,
137
+ [styles.font]:
138
+ (isObject(font) && !font.systemCompat) || !(font === 'system'),
134
139
  },
135
140
  )}
136
141
  data-test-id={dataTestId}
@@ -4,10 +4,18 @@
4
4
  @each $view in xlarge, large, medium, small, xsmall {
5
5
  .$(view) {
6
6
  @mixin headline-system_$(view);
7
+
8
+ &.font {
9
+ @subtract-mixin headline_$(view), headline-system_$(view);
10
+ }
7
11
  }
8
12
 
9
13
  .regular-$(view) {
10
14
  @mixin promo-system_$(view);
15
+
16
+ &.font {
17
+ @subtract-mixin promo_$(view), promo-system_$(view);
18
+ }
11
19
  }
12
20
  }
13
21
 
@@ -0,0 +1,14 @@
1
+ export function getDefaultWeight(
2
+ font: 'styrene' | 'system' | 'alfasans',
3
+ platform: 'mobile' | 'desktop',
4
+ ) {
5
+ if (font === 'styrene' || font === 'alfasans') {
6
+ return 'medium';
7
+ }
8
+
9
+ if (platform === 'desktop') {
10
+ return 'bold';
11
+ }
12
+
13
+ return 'semibold';
14
+ }
package/text/index.css CHANGED
@@ -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
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- 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"};
5
+ 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"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
package/title/common.css CHANGED
@@ -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;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./common.css');
4
4
 
5
- var commonStyles = {"transparent":"typography__transparent_6mtbu","component":"typography__component_6mtbu","rowLimit1":"typography__rowLimit1_6mtbu","rowLimit2":"typography__rowLimit2_6mtbu","rowLimit3":"typography__rowLimit3_6mtbu"};
5
+ var commonStyles = {"transparent":"typography__transparent_gne53","component":"typography__component_gne53","rowLimit1":"typography__rowLimit1_gne53","rowLimit2":"typography__rowLimit2_gne53","rowLimit3":"typography__rowLimit3_gne53"};
6
6
 
7
7
  module.exports = commonStyles;
8
8
  //# 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
  */