@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
@@ -2,126 +2,111 @@
2
2
  .xlarge {
3
3
  font-size: 34px;
4
4
  line-height: 40px;
5
- font-weight: 600;
6
- font-family: var(--font-family-system);
5
+ font-weight: 500;
6
+ letter-spacing: -0.32px;
7
+ font-family: var(--font-family-alfasans);
7
8
  }
8
9
 
9
10
  .xlarge.font {
10
- font-weight: 500;
11
- font-feature-settings: 'ss01';
12
- font-family: var(--font-family-styrene);
13
11
  }
14
12
 
15
13
  .regular-xlarge {
16
14
  font-size: 34px;
17
15
  line-height: 40px;
18
16
  font-weight: 400;
19
- font-family: var(--font-family-system);
17
+ letter-spacing: -1.36px;
18
+ font-family: var(--font-family-alfasans);
20
19
  }
21
20
 
22
21
  .regular-xlarge.system {
23
- font-feature-settings: 'ss01';
24
- font-family: var(--font-family-styrene);
25
22
  }
26
23
 
27
24
  .large {
28
25
  font-size: 30px;
29
26
  line-height: 36px;
30
- font-weight: 600;
31
- font-family: var(--font-family-system);
27
+ font-weight: 500;
28
+ letter-spacing: -0.25px;
29
+ font-family: var(--font-family-alfasans);
32
30
  }
33
31
 
34
32
  .large.font {
35
- font-weight: 500;
36
- font-feature-settings: 'ss01';
37
- font-family: var(--font-family-styrene);
38
33
  }
39
34
 
40
35
  .regular-large {
41
36
  font-size: 30px;
42
37
  line-height: 36px;
43
38
  font-weight: 400;
44
- font-family: var(--font-family-system);
39
+ letter-spacing: -1.25px;
40
+ font-family: var(--font-family-alfasans);
45
41
  }
46
42
 
47
43
  .regular-large.system {
48
- font-feature-settings: 'ss01';
49
- font-family: var(--font-family-styrene);
50
44
  }
51
45
 
52
46
  .medium {
53
47
  font-size: 26px;
54
48
  line-height: 32px;
55
- font-weight: 600;
56
- font-family: var(--font-family-system);
49
+ font-weight: 500;
50
+ letter-spacing: -0.25px;
51
+ font-family: var(--font-family-alfasans);
57
52
  }
58
53
 
59
54
  .medium.font {
60
- font-weight: 500;
61
- font-feature-settings: 'ss01';
62
- font-family: var(--font-family-styrene);
63
55
  }
64
56
 
65
57
  .regular-medium {
66
58
  font-size: 26px;
67
59
  line-height: 32px;
68
60
  font-weight: 400;
69
- font-family: var(--font-family-system);
61
+ letter-spacing: -1px;
62
+ font-family: var(--font-family-alfasans);
70
63
  }
71
64
 
72
65
  .regular-medium.system {
73
- font-feature-settings: 'ss01';
74
- font-family: var(--font-family-styrene);
75
66
  }
76
67
 
77
68
  .small {
78
69
  font-size: 20px;
79
70
  line-height: 28px;
80
- font-weight: 600;
81
- font-family: var(--font-family-system);
71
+ font-weight: 500;
72
+ letter-spacing: -0.15px;
73
+ font-family: var(--font-family-alfasans);
82
74
  }
83
75
 
84
76
  .small.font {
85
- font-weight: 500;
86
- font-feature-settings: 'ss01';
87
- font-family: var(--font-family-styrene);
88
77
  }
89
78
 
90
79
  .regular-small {
91
80
  font-size: 20px;
92
81
  line-height: 28px;
93
82
  font-weight: 400;
94
- font-family: var(--font-family-system);
83
+ letter-spacing: -0.68px;
84
+ font-family: var(--font-family-alfasans);
95
85
  }
96
86
 
97
87
  .regular-small.system {
98
- font-feature-settings: 'ss01';
99
- font-family: var(--font-family-styrene);
100
88
  }
101
89
 
102
90
  .xsmall {
103
91
  font-size: 16px;
104
92
  line-height: 20px;
105
- font-weight: 600;
106
- font-family: var(--font-family-system);
93
+ font-weight: 500;
94
+ letter-spacing: 0.17px;
95
+ font-family: var(--font-family-alfasans);
107
96
  }
108
97
 
109
98
  .xsmall.font {
110
- font-weight: 500;
111
- font-feature-settings: 'ss01';
112
- font-family: var(--font-family-styrene);
113
99
  }
114
100
 
115
101
  .regular-xsmall {
116
102
  font-size: 16px;
117
103
  line-height: 20px;
118
104
  font-weight: 400;
119
- font-family: var(--font-family-system);
105
+ letter-spacing: -0.24px;
106
+ font-family: var(--font-family-alfasans);
120
107
  }
121
108
 
122
109
  .regular-xsmall.system {
123
- font-feature-settings: 'ss01';
124
- font-family: var(--font-family-styrene);
125
110
  }
126
111
 
127
112
  .component.margins-xlarge {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-typography",
3
- "version": "6.0.9",
3
+ "version": "6.0.10-alfasans",
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",
17
- "@alfalab/core-components-shared": "^2.2.2",
18
- "@alfalab/core-components-skeleton": "^7.0.4",
16
+ "@alfalab/core-components-mq": "6.0.7-alfasans",
17
+ "@alfalab/core-components-shared": "2.2.3-alfasans",
18
+ "@alfalab/core-components-skeleton": "7.0.4-alfasans",
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",
32
- "varsVersion": "11.1.0"
31
+ "themesVersion": "15.2.1-alfasans",
32
+ "varsVersion": "11.2.1-alfasans"
33
33
  }
@@ -2,13 +2,10 @@ 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';
6
5
  import { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';
7
6
 
8
7
  import { type Color } from '../colors';
9
8
 
10
- import { getDefaultWeight } from './utils';
11
-
12
9
  import colors from '../colors.module.css';
13
10
  import commonStyles from './common.module.css';
14
11
 
@@ -38,7 +35,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
38
35
  /**
39
36
  * Шрифт текста
40
37
  */
41
- font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };
38
+ font?: 'styrene' | 'system';
42
39
 
43
40
  /**
44
41
  * Добавляет отступы
@@ -95,9 +92,9 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
95
92
  {
96
93
  tag: Component = 'div',
97
94
  view = 'medium',
98
- font = 'styrene',
95
+ font,
99
96
  platform,
100
- weight = getDefaultWeight(isObject(font) ? font.font : font, platform),
97
+ weight = 'bold',
101
98
  defaultMargins = false,
102
99
  color,
103
100
  className,
@@ -134,8 +131,6 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
134
131
  {
135
132
  [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,
136
133
  [commonStyles.transparent]: showSkeleton,
137
- [styles.font]:
138
- (isObject(font) && !font.systemCompat) || !(font === 'system'),
139
134
  },
140
135
  )}
141
136
  data-test-id={dataTestId}
@@ -4,18 +4,10 @@
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
- }
11
7
  }
12
8
 
13
9
  .regular-$(view) {
14
10
  @mixin promo-system_$(view);
15
-
16
- &.font {
17
- @subtract-mixin promo_$(view), promo-system_$(view);
18
- }
19
11
  }
20
12
  }
21
13
 
package/text/index.css CHANGED
@@ -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
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- 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"};
5
+ 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"};
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_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;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./common.css');
4
4
 
5
- var commonStyles = {"transparent":"typography__transparent_vjxpi","component":"typography__component_vjxpi","rowLimit1":"typography__rowLimit1_vjxpi","rowLimit2":"typography__rowLimit2_vjxpi","rowLimit3":"typography__rowLimit3_vjxpi"};
5
+ var commonStyles = {"transparent":"typography__transparent_yrxb0","component":"typography__component_yrxb0","rowLimit1":"typography__rowLimit1_yrxb0","rowLimit2":"typography__rowLimit2_yrxb0","rowLimit3":"typography__rowLimit3_yrxb0"};
6
6
 
7
7
  module.exports = commonStyles;
8
8
  //# 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
  */
@@ -6,9 +6,7 @@ var tslib = require('tslib');
6
6
  var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
- var coreComponentsShared = require('@alfalab/core-components-shared');
10
9
  var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
11
- var utils = require('./utils.js');
12
10
  var colors_module = require('../colors.module.css.js');
13
11
  var common_module = require('./common.module.css.js');
14
12
 
@@ -20,8 +18,8 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
18
 
21
19
  var TitleBase = React.forwardRef(function (_a, ref) {
22
20
  var _b;
23
- 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 ? utils.getDefaultWeight(coreComponentsShared.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 = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
24
- var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
21
+ 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 = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
22
+ var _g = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _g.renderSkeleton, textRef = _g.textRef;
25
23
  var skeleton = renderSkeleton({
26
24
  wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
27
25
  dataTestId: dataTestId,
@@ -32,7 +30,6 @@ var TitleBase = React.forwardRef(function (_a, ref) {
32
30
  return (React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default(common_module.component, styles.component, className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors_module[color], (_b = {},
33
31
  _b[common_module["rowLimit".concat(rowLimit)]] = rowLimit,
34
32
  _b[common_module.transparent] = showSkeleton,
35
- _b[styles.font] = (coreComponentsShared.isObject(font) && !font.systemCompat) || !(font === 'system'),
36
33
  _b)), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children));
37
34
  });
38
35