@alfalab/core-components-typography 6.0.12 → 6.0.13-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.12",
3
+ "version": "6.0.13-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.8",
17
- "@alfalab/core-components-shared": "^2.2.4",
18
- "@alfalab/core-components-skeleton": "^7.0.5",
16
+ "@alfalab/core-components-mq": "6.0.9-alfasans",
17
+ "@alfalab/core-components-shared": "2.3.0-alfasans",
18
+ "@alfalab/core-components-skeleton": "7.0.5-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.1",
32
- "varsVersion": "11.4.0"
31
+ "themesVersion": "15.2.1-alfasans",
32
+ "varsVersion": "11.4.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
 
@@ -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
@@ -3,179 +3,206 @@
3
3
  --gap-12: 12px;
4
4
  }
5
5
  :root {
6
- --font-family-system:
7
- 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;
8
9
  }
9
- .typography__transparent_ngfpy {
10
+ .typography__transparent_oy13v {
10
11
  opacity: 0;
11
12
  }
12
13
  :root {
13
14
  --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
14
15
  }
15
- .typography__paragraph_ngfpy {
16
+ .typography__paragraph_oy13v {
16
17
  margin: var(--gap-0);
17
18
  padding: var(--gap-0);
18
19
  }
19
- .typography__paragraphWithMargins_ngfpy {
20
+ .typography__paragraphWithMargins_oy13v {
20
21
  padding: var(--gap-0);
21
22
  margin: var(--text-paragraph-margin-bottom);
22
23
  }
23
- .typography__component_ngfpy {
24
+ .typography__component_oy13v {
24
25
  font-size: 16px;
25
26
  line-height: 20px;
26
27
  font-weight: 400;
27
- font-family: var(--font-family-system);
28
+ letter-spacing: -0.24px;
29
+ font-family: var(--font-family-alfasans);
28
30
  }
29
- .typography__component_ngfpy.typography__bold_ngfpy {
31
+ .typography__component_oy13v.typography__bold_oy13v {
30
32
  font-weight: 700;
33
+ letter-spacing: 0.43px;
31
34
  }
32
- .typography__component_ngfpy.typography__medium_ngfpy {
35
+ .typography__component_oy13v.typography__medium_oy13v {
33
36
  font-weight: 500;
37
+ letter-spacing: -0.05px;
34
38
  }
35
- .typography__caps_ngfpy {
39
+ .typography__caps_oy13v {
36
40
  font-size: 12px;
37
41
  line-height: 16px;
38
42
  font-weight: 400;
39
43
  letter-spacing: 1.25px;
40
44
  text-transform: uppercase;
41
- font-family: var(--font-family-system);
45
+ font-family: var(--font-family-alfasans);
42
46
  }
43
- .typography__caps_ngfpy.typography__bold_ngfpy {
47
+ .typography__caps_oy13v.typography__bold_oy13v {
44
48
  font-weight: 700;
45
49
  }
46
- .typography__caps_ngfpy.typography__medium_ngfpy {
50
+ .typography__caps_oy13v.typography__medium_oy13v {
47
51
  font-weight: 500;
48
52
  }
49
- .typography__tagline_ngfpy {
53
+ .typography__tagline_oy13v {
50
54
  font-size: 12px;
51
55
  line-height: 16px;
52
56
  font-weight: 400;
53
57
  letter-spacing: 1.25px;
54
58
  text-transform: uppercase;
55
- font-family: var(--font-family-system);
59
+ font-family: var(--font-family-alfasans);
56
60
  }
57
- .typography__tagline_ngfpy.typography__bold_ngfpy {
61
+ .typography__tagline_oy13v.typography__bold_oy13v {
58
62
  font-weight: 700;
59
63
  }
60
- .typography__tagline_ngfpy.typography__medium_ngfpy {
64
+ .typography__tagline_oy13v.typography__medium_oy13v {
61
65
  font-weight: 500;
62
66
  }
63
- .typography__primary-large_ngfpy {
67
+ .typography__primary-large_oy13v {
64
68
  font-size: 18px;
65
69
  line-height: 24px;
66
70
  font-weight: 400;
67
- font-family: var(--font-family-system);
71
+ letter-spacing: -0.36px;
72
+ font-family: var(--font-family-alfasans);
68
73
  }
69
- .typography__primary-large_ngfpy.typography__bold_ngfpy {
74
+ .typography__primary-large_oy13v.typography__bold_oy13v {
70
75
  font-weight: 700;
76
+ letter-spacing: 0.38px;
71
77
  }
72
- .typography__primary-large_ngfpy.typography__medium_ngfpy {
78
+ .typography__primary-large_oy13v.typography__medium_oy13v {
73
79
  font-weight: 500;
80
+ letter-spacing: -0.17px;
74
81
  }
75
- .typography__primary-medium_ngfpy {
82
+ .typography__primary-medium_oy13v {
76
83
  font-size: 16px;
77
84
  line-height: 24px;
78
85
  font-weight: 400;
79
- font-family: var(--font-family-system);
86
+ letter-spacing: -0.24px;
87
+ font-family: var(--font-family-alfasans);
80
88
  }
81
- .typography__primary-medium_ngfpy.typography__bold_ngfpy {
89
+ .typography__primary-medium_oy13v.typography__bold_oy13v {
82
90
  font-weight: 700;
91
+ letter-spacing: 0.43px;
83
92
  }
84
- .typography__primary-medium_ngfpy.typography__medium_ngfpy {
93
+ .typography__primary-medium_oy13v.typography__medium_oy13v {
85
94
  font-weight: 500;
95
+ letter-spacing: -0.05px;
86
96
  }
87
- .typography__primary-small_ngfpy {
97
+ .typography__primary-small_oy13v {
88
98
  font-size: 14px;
89
99
  line-height: 20px;
90
100
  font-weight: 400;
91
- font-family: var(--font-family-system);
101
+ letter-spacing: -0.08px;
102
+ font-family: var(--font-family-alfasans);
92
103
  }
93
- .typography__primary-small_ngfpy.typography__bold_ngfpy {
104
+ .typography__primary-small_oy13v.typography__bold_oy13v {
94
105
  font-weight: 700;
106
+ letter-spacing: 0.47px;
95
107
  }
96
- .typography__primary-small_ngfpy.typography__medium_ngfpy {
108
+ .typography__primary-small_oy13v.typography__medium_oy13v {
97
109
  font-weight: 500;
110
+ letter-spacing: 0.07px;
98
111
  }
99
- .typography__component-primary_ngfpy {
112
+ .typography__component-primary_oy13v {
100
113
  font-size: 16px;
101
114
  line-height: 20px;
102
115
  font-weight: 400;
103
- font-family: var(--font-family-system);
116
+ letter-spacing: -0.24px;
117
+ font-family: var(--font-family-alfasans);
104
118
  }
105
- .typography__component-primary_ngfpy.typography__bold_ngfpy {
119
+ .typography__component-primary_oy13v.typography__bold_oy13v {
106
120
  font-weight: 700;
121
+ letter-spacing: 0.43px;
107
122
  }
108
- .typography__component-primary_ngfpy.typography__medium_ngfpy {
123
+ .typography__component-primary_oy13v.typography__medium_oy13v {
109
124
  font-weight: 500;
125
+ letter-spacing: -0.05px;
110
126
  }
111
- .typography__secondary-large_ngfpy {
127
+ .typography__secondary-large_oy13v {
112
128
  font-size: 13px;
113
129
  line-height: 16px;
114
130
  font-weight: 400;
115
- font-family: var(--font-family-system);
131
+ font-family: var(--font-family-alfasans);
116
132
  }
117
- .typography__secondary-large_ngfpy.typography__bold_ngfpy {
133
+ .typography__secondary-large_oy13v.typography__bold_oy13v {
118
134
  font-weight: 700;
135
+ letter-spacing: 0.54px;
119
136
  }
120
- .typography__secondary-large_ngfpy.typography__medium_ngfpy {
137
+ .typography__secondary-large_oy13v.typography__medium_oy13v {
121
138
  font-weight: 500;
139
+ letter-spacing: 0.13px;
122
140
  }
123
- .typography__secondary-medium_ngfpy {
141
+ .typography__secondary-medium_oy13v {
124
142
  font-size: 12px;
125
143
  line-height: 16px;
126
144
  font-weight: 400;
127
- font-family: var(--font-family-system);
145
+ letter-spacing: 0.06px;
146
+ font-family: var(--font-family-alfasans);
128
147
  }
129
- .typography__secondary-medium_ngfpy.typography__bold_ngfpy {
148
+ .typography__secondary-medium_oy13v.typography__bold_oy13v {
130
149
  font-weight: 700;
150
+ letter-spacing: 0.57px;
131
151
  }
132
- .typography__secondary-medium_ngfpy.typography__medium_ngfpy {
152
+ .typography__secondary-medium_oy13v.typography__medium_oy13v {
133
153
  font-weight: 500;
154
+ letter-spacing: 0.19px;
134
155
  }
135
- .typography__secondary-small_ngfpy {
156
+ .typography__secondary-small_oy13v {
136
157
  font-size: 11px;
137
158
  line-height: 16px;
138
159
  font-weight: 400;
139
- font-family: var(--font-family-system);
160
+ letter-spacing: 0.15px;
161
+ font-family: var(--font-family-alfasans);
140
162
  }
141
- .typography__secondary-small_ngfpy.typography__bold_ngfpy {
163
+ .typography__secondary-small_oy13v.typography__bold_oy13v {
142
164
  font-weight: 700;
165
+ letter-spacing: 0.54px;
143
166
  }
144
- .typography__secondary-small_ngfpy.typography__medium_ngfpy {
167
+ .typography__secondary-small_oy13v.typography__medium_oy13v {
145
168
  font-weight: 500;
169
+ letter-spacing: 0.24px;
146
170
  }
147
- .typography__component-secondary_ngfpy {
171
+ .typography__component-secondary_oy13v {
148
172
  font-size: 14px;
149
173
  line-height: 18px;
150
174
  font-weight: 400;
151
- font-family: var(--font-family-system);
175
+ letter-spacing: -0.08px;
176
+ font-family: var(--font-family-alfasans);
152
177
  }
153
- .typography__component-secondary_ngfpy.typography__bold_ngfpy {
178
+ .typography__component-secondary_oy13v.typography__bold_oy13v {
154
179
  font-weight: 700;
180
+ letter-spacing: 0.47px;
155
181
  }
156
- .typography__component-secondary_ngfpy.typography__medium_ngfpy {
182
+ .typography__component-secondary_oy13v.typography__medium_oy13v {
157
183
  font-weight: 500;
184
+ letter-spacing: 0.07px;
158
185
  }
159
- .typography__rowLimit1_ngfpy {
186
+ .typography__rowLimit1_oy13v {
160
187
  -webkit-line-clamp: 1;
161
188
  display: -webkit-box;
162
189
  -webkit-box-orient: vertical;
163
190
  overflow: hidden;
164
191
  word-break: break-all;
165
192
  }
166
- .typography__rowLimit2_ngfpy {
193
+ .typography__rowLimit2_oy13v {
167
194
  -webkit-line-clamp: 2;
168
195
  display: -webkit-box;
169
196
  -webkit-box-orient: vertical;
170
197
  overflow: hidden;
171
198
  }
172
- .typography__rowLimit3_ngfpy {
199
+ .typography__rowLimit3_oy13v {
173
200
  -webkit-line-clamp: 3;
174
201
  display: -webkit-box;
175
202
  -webkit-box-orient: vertical;
176
203
  overflow: hidden;
177
204
  }
178
- .typography__monospace_ngfpy {
205
+ .typography__monospace_oy13v {
179
206
  font-feature-settings: "tnum";
180
207
  font-variant-numeric: tabular-nums;
181
208
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"transparent":"typography__transparent_ngfpy","paragraph":"typography__paragraph_ngfpy","paragraphWithMargins":"typography__paragraphWithMargins_ngfpy","component":"typography__component_ngfpy","bold":"typography__bold_ngfpy","medium":"typography__medium_ngfpy","caps":"typography__caps_ngfpy","tagline":"typography__tagline_ngfpy","primary-large":"typography__primary-large_ngfpy","primary-medium":"typography__primary-medium_ngfpy","primary-small":"typography__primary-small_ngfpy","component-primary":"typography__component-primary_ngfpy","secondary-large":"typography__secondary-large_ngfpy","secondary-medium":"typography__secondary-medium_ngfpy","secondary-small":"typography__secondary-small_ngfpy","component-secondary":"typography__component-secondary_ngfpy","rowLimit1":"typography__rowLimit1_ngfpy","rowLimit2":"typography__rowLimit2_ngfpy","rowLimit3":"typography__rowLimit3_ngfpy","monospace":"typography__monospace_ngfpy"};
5
+ var styles = {"transparent":"typography__transparent_oy13v","paragraph":"typography__paragraph_oy13v","paragraphWithMargins":"typography__paragraphWithMargins_oy13v","component":"typography__component_oy13v","bold":"typography__bold_oy13v","medium":"typography__medium_oy13v","caps":"typography__caps_oy13v","tagline":"typography__tagline_oy13v","primary-large":"typography__primary-large_oy13v","primary-medium":"typography__primary-medium_oy13v","primary-small":"typography__primary-small_oy13v","component-primary":"typography__component-primary_oy13v","secondary-large":"typography__secondary-large_oy13v","secondary-medium":"typography__secondary-medium_oy13v","secondary-small":"typography__secondary-small_oy13v","component-secondary":"typography__component-secondary_oy13v","rowLimit1":"typography__rowLimit1_oy13v","rowLimit2":"typography__rowLimit2_oy13v","rowLimit3":"typography__rowLimit3_oy13v","monospace":"typography__monospace_oy13v"};
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_z6b33 {
4
+ .typography__transparent_1skzm {
5
5
  opacity: 0;
6
6
  }
7
- .typography__component_z6b33 {
7
+ .typography__component_1skzm {
8
8
  margin: var(--gap-0);
9
9
  padding: var(--gap-0);
10
10
  }
11
- .typography__rowLimit1_z6b33 {
11
+ .typography__rowLimit1_1skzm {
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_z6b33 {
18
+ .typography__rowLimit2_1skzm {
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_z6b33 {
24
+ .typography__rowLimit3_1skzm {
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_z6b33","component":"typography__component_z6b33","rowLimit1":"typography__rowLimit1_z6b33","rowLimit2":"typography__rowLimit2_z6b33","rowLimit3":"typography__rowLimit3_z6b33"};
5
+ var commonStyles = {"transparent":"typography__transparent_1skzm","component":"typography__component_1skzm","rowLimit1":"typography__rowLimit1_1skzm","rowLimit2":"typography__rowLimit2_1skzm","rowLimit3":"typography__rowLimit3_1skzm"};
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