@alfalab/core-components-typography 6.0.6 → 6.0.7-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 +40 -13
  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 +23 -74
  9. package/cssm/title-mobile/component.d.ts +1 -4
  10. package/cssm/title-mobile/index.module.css +28 -45
  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 +80 -53
  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 +38 -89
  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 +53 -70
  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 +80 -53
  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 +38 -89
  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 +53 -70
  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 +80 -53
  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 +38 -89
  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 +53 -70
  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.6",
3
+ "version": "6.0.7-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.4",
17
- "@alfalab/core-components-shared": "^2.2.0",
18
- "@alfalab/core-components-skeleton": "^7.0.3",
16
+ "@alfalab/core-components-mq": "6.0.5-alfasans",
17
+ "@alfalab/core-components-shared": "2.2.1-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.1.0",
32
- "varsVersion": "11.1.0"
31
+ "themesVersion": "15.1.0-alfasans",
32
+ "varsVersion": "11.1.0-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
 
@@ -40,7 +37,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
40
37
  *
41
38
  * @deprecated
42
39
  */
43
- font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };
40
+ font?: 'styrene' | 'system';
44
41
 
45
42
  /**
46
43
  * Добавляет отступы
@@ -97,9 +94,9 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
97
94
  {
98
95
  tag: Component = 'div',
99
96
  view = 'medium',
100
- font = 'styrene',
97
+ font,
101
98
  platform,
102
- weight = getDefaultWeight(isObject(font) ? font.font : font, platform),
99
+ weight = 'bold',
103
100
  defaultMargins = false,
104
101
  color,
105
102
  className,
@@ -136,8 +133,6 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
136
133
  {
137
134
  [commonStyles[`rowLimit${rowLimit}`]]: rowLimit,
138
135
  [commonStyles.transparent]: showSkeleton,
139
- [styles.font]:
140
- (isObject(font) && !font.systemCompat) || !(font === 'system'),
141
136
  },
142
137
  )}
143
138
  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
@@ -4,179 +4,206 @@
4
4
  --gap-12: var(--gap-s);
5
5
  }
6
6
  :root {
7
- --font-family-system:
8
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
7
+ --font-family-alfasans:
8
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
9
+ Helvetica, sans-serif;
9
10
  }
10
- .typography__transparent_1u55a {
11
+ .typography__transparent_185u2 {
11
12
  opacity: 0;
12
13
  }
13
14
  :root {
14
15
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
15
16
  }
16
- .typography__paragraph_1u55a {
17
+ .typography__paragraph_185u2 {
17
18
  margin: var(--gap-0);
18
19
  padding: var(--gap-0);
19
20
  }
20
- .typography__paragraphWithMargins_1u55a {
21
+ .typography__paragraphWithMargins_185u2 {
21
22
  padding: var(--gap-0);
22
23
  margin: var(--text-paragraph-margin-bottom);
23
24
  }
24
- .typography__component_1u55a {
25
+ .typography__component_185u2 {
25
26
  font-size: 16px;
26
27
  line-height: 20px;
27
28
  font-weight: 400;
28
- font-family: var(--font-family-system);
29
+ letter-spacing: -0.24px;
30
+ font-family: var(--font-family-alfasans);
29
31
  }
30
- .typography__component_1u55a.typography__bold_1u55a {
32
+ .typography__component_185u2.typography__bold_185u2 {
31
33
  font-weight: 700;
34
+ letter-spacing: 0.43px;
32
35
  }
33
- .typography__component_1u55a.typography__medium_1u55a {
36
+ .typography__component_185u2.typography__medium_185u2 {
34
37
  font-weight: 500;
38
+ letter-spacing: -0.05px;
35
39
  }
36
- .typography__caps_1u55a {
40
+ .typography__caps_185u2 {
37
41
  font-size: 12px;
38
42
  line-height: 16px;
39
43
  font-weight: 400;
40
44
  letter-spacing: 1.25px;
41
45
  text-transform: uppercase;
42
- font-family: var(--font-family-system);
46
+ font-family: var(--font-family-alfasans);
43
47
  }
44
- .typography__caps_1u55a.typography__bold_1u55a {
48
+ .typography__caps_185u2.typography__bold_185u2 {
45
49
  font-weight: 700;
46
50
  }
47
- .typography__caps_1u55a.typography__medium_1u55a {
51
+ .typography__caps_185u2.typography__medium_185u2 {
48
52
  font-weight: 500;
49
53
  }
50
- .typography__tagline_1u55a {
54
+ .typography__tagline_185u2 {
51
55
  font-size: 12px;
52
56
  line-height: 16px;
53
57
  font-weight: 400;
54
58
  letter-spacing: 1.25px;
55
59
  text-transform: uppercase;
56
- font-family: var(--font-family-system);
60
+ font-family: var(--font-family-alfasans);
57
61
  }
58
- .typography__tagline_1u55a.typography__bold_1u55a {
62
+ .typography__tagline_185u2.typography__bold_185u2 {
59
63
  font-weight: 700;
60
64
  }
61
- .typography__tagline_1u55a.typography__medium_1u55a {
65
+ .typography__tagline_185u2.typography__medium_185u2 {
62
66
  font-weight: 500;
63
67
  }
64
- .typography__primary-large_1u55a {
68
+ .typography__primary-large_185u2 {
65
69
  font-size: 18px;
66
70
  line-height: 24px;
67
71
  font-weight: 400;
68
- font-family: var(--font-family-system);
72
+ letter-spacing: -0.36px;
73
+ font-family: var(--font-family-alfasans);
69
74
  }
70
- .typography__primary-large_1u55a.typography__bold_1u55a {
75
+ .typography__primary-large_185u2.typography__bold_185u2 {
71
76
  font-weight: 700;
77
+ letter-spacing: 0.38px;
72
78
  }
73
- .typography__primary-large_1u55a.typography__medium_1u55a {
79
+ .typography__primary-large_185u2.typography__medium_185u2 {
74
80
  font-weight: 500;
81
+ letter-spacing: -0.17px;
75
82
  }
76
- .typography__primary-medium_1u55a {
83
+ .typography__primary-medium_185u2 {
77
84
  font-size: 16px;
78
85
  line-height: 24px;
79
86
  font-weight: 400;
80
- font-family: var(--font-family-system);
87
+ letter-spacing: -0.24px;
88
+ font-family: var(--font-family-alfasans);
81
89
  }
82
- .typography__primary-medium_1u55a.typography__bold_1u55a {
90
+ .typography__primary-medium_185u2.typography__bold_185u2 {
83
91
  font-weight: 700;
92
+ letter-spacing: 0.43px;
84
93
  }
85
- .typography__primary-medium_1u55a.typography__medium_1u55a {
94
+ .typography__primary-medium_185u2.typography__medium_185u2 {
86
95
  font-weight: 500;
96
+ letter-spacing: -0.05px;
87
97
  }
88
- .typography__primary-small_1u55a {
98
+ .typography__primary-small_185u2 {
89
99
  font-size: 14px;
90
100
  line-height: 20px;
91
101
  font-weight: 400;
92
- font-family: var(--font-family-system);
102
+ letter-spacing: -0.08px;
103
+ font-family: var(--font-family-alfasans);
93
104
  }
94
- .typography__primary-small_1u55a.typography__bold_1u55a {
105
+ .typography__primary-small_185u2.typography__bold_185u2 {
95
106
  font-weight: 700;
107
+ letter-spacing: 0.47px;
96
108
  }
97
- .typography__primary-small_1u55a.typography__medium_1u55a {
109
+ .typography__primary-small_185u2.typography__medium_185u2 {
98
110
  font-weight: 500;
111
+ letter-spacing: 0.07px;
99
112
  }
100
- .typography__component-primary_1u55a {
113
+ .typography__component-primary_185u2 {
101
114
  font-size: 16px;
102
115
  line-height: 20px;
103
116
  font-weight: 400;
104
- font-family: var(--font-family-system);
117
+ letter-spacing: -0.24px;
118
+ font-family: var(--font-family-alfasans);
105
119
  }
106
- .typography__component-primary_1u55a.typography__bold_1u55a {
120
+ .typography__component-primary_185u2.typography__bold_185u2 {
107
121
  font-weight: 700;
122
+ letter-spacing: 0.43px;
108
123
  }
109
- .typography__component-primary_1u55a.typography__medium_1u55a {
124
+ .typography__component-primary_185u2.typography__medium_185u2 {
110
125
  font-weight: 500;
126
+ letter-spacing: -0.05px;
111
127
  }
112
- .typography__secondary-large_1u55a {
128
+ .typography__secondary-large_185u2 {
113
129
  font-size: 13px;
114
130
  line-height: 16px;
115
131
  font-weight: 400;
116
- font-family: var(--font-family-system);
132
+ font-family: var(--font-family-alfasans);
117
133
  }
118
- .typography__secondary-large_1u55a.typography__bold_1u55a {
134
+ .typography__secondary-large_185u2.typography__bold_185u2 {
119
135
  font-weight: 700;
136
+ letter-spacing: 0.54px;
120
137
  }
121
- .typography__secondary-large_1u55a.typography__medium_1u55a {
138
+ .typography__secondary-large_185u2.typography__medium_185u2 {
122
139
  font-weight: 500;
140
+ letter-spacing: 0.13px;
123
141
  }
124
- .typography__secondary-medium_1u55a {
142
+ .typography__secondary-medium_185u2 {
125
143
  font-size: 12px;
126
144
  line-height: 16px;
127
145
  font-weight: 400;
128
- font-family: var(--font-family-system);
146
+ letter-spacing: 0.06px;
147
+ font-family: var(--font-family-alfasans);
129
148
  }
130
- .typography__secondary-medium_1u55a.typography__bold_1u55a {
149
+ .typography__secondary-medium_185u2.typography__bold_185u2 {
131
150
  font-weight: 700;
151
+ letter-spacing: 0.57px;
132
152
  }
133
- .typography__secondary-medium_1u55a.typography__medium_1u55a {
153
+ .typography__secondary-medium_185u2.typography__medium_185u2 {
134
154
  font-weight: 500;
155
+ letter-spacing: 0.19px;
135
156
  }
136
- .typography__secondary-small_1u55a {
157
+ .typography__secondary-small_185u2 {
137
158
  font-size: 11px;
138
159
  line-height: 16px;
139
160
  font-weight: 400;
140
- font-family: var(--font-family-system);
161
+ letter-spacing: 0.15px;
162
+ font-family: var(--font-family-alfasans);
141
163
  }
142
- .typography__secondary-small_1u55a.typography__bold_1u55a {
164
+ .typography__secondary-small_185u2.typography__bold_185u2 {
143
165
  font-weight: 700;
166
+ letter-spacing: 0.54px;
144
167
  }
145
- .typography__secondary-small_1u55a.typography__medium_1u55a {
168
+ .typography__secondary-small_185u2.typography__medium_185u2 {
146
169
  font-weight: 500;
170
+ letter-spacing: 0.24px;
147
171
  }
148
- .typography__component-secondary_1u55a {
172
+ .typography__component-secondary_185u2 {
149
173
  font-size: 14px;
150
174
  line-height: 18px;
151
175
  font-weight: 400;
152
- font-family: var(--font-family-system);
176
+ letter-spacing: -0.08px;
177
+ font-family: var(--font-family-alfasans);
153
178
  }
154
- .typography__component-secondary_1u55a.typography__bold_1u55a {
179
+ .typography__component-secondary_185u2.typography__bold_185u2 {
155
180
  font-weight: 700;
181
+ letter-spacing: 0.47px;
156
182
  }
157
- .typography__component-secondary_1u55a.typography__medium_1u55a {
183
+ .typography__component-secondary_185u2.typography__medium_185u2 {
158
184
  font-weight: 500;
185
+ letter-spacing: 0.07px;
159
186
  }
160
- .typography__rowLimit1_1u55a {
187
+ .typography__rowLimit1_185u2 {
161
188
  -webkit-line-clamp: 1;
162
189
  display: -webkit-box;
163
190
  -webkit-box-orient: vertical;
164
191
  overflow: hidden;
165
192
  word-break: break-all;
166
193
  }
167
- .typography__rowLimit2_1u55a {
194
+ .typography__rowLimit2_185u2 {
168
195
  -webkit-line-clamp: 2;
169
196
  display: -webkit-box;
170
197
  -webkit-box-orient: vertical;
171
198
  overflow: hidden;
172
199
  }
173
- .typography__rowLimit3_1u55a {
200
+ .typography__rowLimit3_185u2 {
174
201
  -webkit-line-clamp: 3;
175
202
  display: -webkit-box;
176
203
  -webkit-box-orient: vertical;
177
204
  overflow: hidden;
178
205
  }
179
- .typography__monospace_1u55a {
206
+ .typography__monospace_185u2 {
180
207
  font-feature-settings: "tnum";
181
208
  font-variant-numeric: tabular-nums;
182
209
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"transparent":"typography__transparent_1u55a","paragraph":"typography__paragraph_1u55a","paragraphWithMargins":"typography__paragraphWithMargins_1u55a","component":"typography__component_1u55a","bold":"typography__bold_1u55a","medium":"typography__medium_1u55a","caps":"typography__caps_1u55a","tagline":"typography__tagline_1u55a","primary-large":"typography__primary-large_1u55a","primary-medium":"typography__primary-medium_1u55a","primary-small":"typography__primary-small_1u55a","component-primary":"typography__component-primary_1u55a","secondary-large":"typography__secondary-large_1u55a","secondary-medium":"typography__secondary-medium_1u55a","secondary-small":"typography__secondary-small_1u55a","component-secondary":"typography__component-secondary_1u55a","rowLimit1":"typography__rowLimit1_1u55a","rowLimit2":"typography__rowLimit2_1u55a","rowLimit3":"typography__rowLimit3_1u55a","monospace":"typography__monospace_1u55a"};
5
+ var styles = {"transparent":"typography__transparent_185u2","paragraph":"typography__paragraph_185u2","paragraphWithMargins":"typography__paragraphWithMargins_185u2","component":"typography__component_185u2","bold":"typography__bold_185u2","medium":"typography__medium_185u2","caps":"typography__caps_185u2","tagline":"typography__tagline_185u2","primary-large":"typography__primary-large_185u2","primary-medium":"typography__primary-medium_185u2","primary-small":"typography__primary-small_185u2","component-primary":"typography__component-primary_185u2","secondary-large":"typography__secondary-large_185u2","secondary-medium":"typography__secondary-medium_185u2","secondary-small":"typography__secondary-small_185u2","component-secondary":"typography__component-secondary_185u2","rowLimit1":"typography__rowLimit1_185u2","rowLimit2":"typography__rowLimit2_185u2","rowLimit3":"typography__rowLimit3_185u2","monospace":"typography__monospace_185u2"};
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_n57ko {
4
+ .typography__transparent_1w77i {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_n57ko {
7
+ .typography__component_1w77i {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_n57ko {
11
+ .typography__rowLimit1_1w77i {
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_n57ko {
18
+ .typography__rowLimit2_1w77i {
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_n57ko {
24
+ .typography__rowLimit3_1w77i {
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_n57ko","component":"typography__component_n57ko","rowLimit1":"typography__rowLimit1_n57ko","rowLimit2":"typography__rowLimit2_n57ko","rowLimit3":"typography__rowLimit3_n57ko"};
5
+ var commonStyles = {"transparent":"typography__transparent_1w77i","component":"typography__component_1w77i","rowLimit1":"typography__rowLimit1_1w77i","rowLimit2":"typography__rowLimit2_1w77i","rowLimit3":"typography__rowLimit3_1w77i"};
6
6
 
7
7
  module.exports = commonStyles;
8
8
  //# sourceMappingURL=common.module.css.js.map
@@ -24,10 +24,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
24
24
  *
25
25
  * @deprecated
26
26
  */
27
- font?: 'styrene' | 'system' | 'alfasans' | {
28
- font: 'alfasans';
29
- systemCompat: boolean;
30
- };
27
+ font?: 'styrene' | 'system';
31
28
  /**
32
29
  * Добавляет отступы
33
30
  */
@@ -90,10 +87,7 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
90
87
  *
91
88
  * @deprecated
92
89
  */
93
- font?: "styrene" | "system" | "alfasans" | {
94
- font: "alfasans";
95
- systemCompat: boolean;
96
- };
90
+ font?: "styrene" | "system";
97
91
  /**
98
92
  * Добавляет отступы
99
93
  */
@@ -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