@alfalab/core-components-typography 6.0.5 → 6.0.6-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.
- package/colors.css +20 -20
- package/colors.module.css.js +1 -1
- package/cssm/text/index.module.css +40 -13
- package/cssm/title/component.d.ts +2 -8
- package/cssm/title/component.js +3 -6
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +1 -4
- package/cssm/title/index.module.css +23 -74
- package/cssm/title-mobile/component.d.ts +1 -4
- package/cssm/title-mobile/index.module.css +28 -45
- package/cssm/title-responsive/component.d.ts +1 -4
- package/esm/colors.css +20 -20
- package/esm/colors.module.css.js +1 -1
- package/esm/text/index.css +80 -53
- package/esm/text/index.module.css.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/component.d.ts +2 -8
- package/esm/title/component.js +2 -5
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +38 -89
- package/esm/title/index.d.ts +1 -4
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title-mobile/component.d.ts +1 -4
- package/esm/title-mobile/index.css +53 -70
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-responsive/component.d.ts +1 -4
- package/modern/colors.css +20 -20
- package/modern/colors.module.css.js +1 -1
- package/modern/text/index.css +80 -53
- package/modern/text/index.module.css.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/component.d.ts +2 -8
- package/modern/title/component.js +1 -4
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +38 -89
- package/modern/title/index.d.ts +1 -4
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title-mobile/component.d.ts +1 -4
- package/modern/title-mobile/index.css +53 -70
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-responsive/component.d.ts +1 -4
- package/moderncssm/text/index.module.css +37 -11
- package/moderncssm/title/component.d.ts +2 -8
- package/moderncssm/title/component.js +1 -4
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +1 -4
- package/moderncssm/title/index.module.css +20 -79
- package/moderncssm/title-mobile/component.d.ts +1 -4
- package/moderncssm/title-mobile/index.module.css +25 -40
- package/moderncssm/title-responsive/component.d.ts +1 -4
- package/package.json +6 -6
- package/src/title/component.tsx +3 -8
- package/src/title/index.module.css +0 -8
- package/text/index.css +80 -53
- package/text/index.module.css.js +1 -1
- package/title/common.css +5 -5
- package/title/common.module.css.js +1 -1
- package/title/component.d.ts +2 -8
- package/title/component.js +2 -5
- package/title/component.js.map +1 -1
- package/title/index.css +38 -89
- package/title/index.d.ts +1 -4
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title-mobile/component.d.ts +1 -4
- package/title-mobile/index.css +53 -70
- package/title-mobile/index.module.css.js +1 -1
- package/title-responsive/component.d.ts +1 -4
- package/cssm/title/utils.d.ts +0 -1
- package/cssm/title/utils.js +0 -16
- package/cssm/title/utils.js.map +0 -1
- package/esm/title/utils.d.ts +0 -1
- package/esm/title/utils.js +0 -12
- package/esm/title/utils.js.map +0 -1
- package/modern/title/utils.d.ts +0 -1
- package/modern/title/utils.js +0 -12
- package/modern/title/utils.js.map +0 -1
- package/moderncssm/title/utils.d.ts +0 -1
- package/moderncssm/title/utils.js +0 -12
- package/moderncssm/title/utils.js.map +0 -1
- package/src/title/utils.ts +0 -14
- package/title/utils.d.ts +0 -1
- package/title/utils.js +0 -16
- 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:
|
|
6
|
-
|
|
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
|
-
|
|
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:
|
|
31
|
-
|
|
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
|
-
|
|
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:
|
|
56
|
-
|
|
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
|
-
|
|
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:
|
|
81
|
-
|
|
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
|
-
|
|
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:
|
|
106
|
-
|
|
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
|
-
|
|
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"
|
|
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.
|
|
3
|
+
"version": "6.0.6-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": "
|
|
17
|
-
"@alfalab/core-components-shared": "
|
|
18
|
-
"@alfalab/core-components-skeleton": "
|
|
16
|
+
"@alfalab/core-components-mq": "6.0.4-alfasans",
|
|
17
|
+
"@alfalab/core-components-shared": "2.2.0-alfasans",
|
|
18
|
+
"@alfalab/core-components-skeleton": "7.0.3-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.0
|
|
31
|
+
"themesVersion": "15.1.0-alfasans",
|
|
32
|
+
"varsVersion": "11.1.0-alfasans"
|
|
33
33
|
}
|
package/src/title/component.tsx
CHANGED
|
@@ -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'
|
|
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
|
|
97
|
+
font,
|
|
101
98
|
platform,
|
|
102
|
-
weight =
|
|
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-
|
|
8
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
7
|
+
--font-family-alfasans:
|
|
8
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
9
|
+
Helvetica, sans-serif;
|
|
9
10
|
}
|
|
10
|
-
.
|
|
11
|
+
.typography__transparent_imgoa {
|
|
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
|
-
.
|
|
17
|
+
.typography__paragraph_imgoa {
|
|
17
18
|
margin: var(--gap-0);
|
|
18
19
|
padding: var(--gap-0);
|
|
19
20
|
}
|
|
20
|
-
.
|
|
21
|
+
.typography__paragraphWithMargins_imgoa {
|
|
21
22
|
padding: var(--gap-0);
|
|
22
23
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
24
|
}
|
|
24
|
-
.
|
|
25
|
+
.typography__component_imgoa {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
line-height: 20px;
|
|
27
28
|
font-weight: 400;
|
|
28
|
-
|
|
29
|
+
letter-spacing: -0.24px;
|
|
30
|
+
font-family: var(--font-family-alfasans);
|
|
29
31
|
}
|
|
30
|
-
.
|
|
32
|
+
.typography__component_imgoa.typography__bold_imgoa {
|
|
31
33
|
font-weight: 700;
|
|
34
|
+
letter-spacing: 0.43px;
|
|
32
35
|
}
|
|
33
|
-
.
|
|
36
|
+
.typography__component_imgoa.typography__medium_imgoa {
|
|
34
37
|
font-weight: 500;
|
|
38
|
+
letter-spacing: -0.05px;
|
|
35
39
|
}
|
|
36
|
-
.
|
|
40
|
+
.typography__caps_imgoa {
|
|
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-
|
|
46
|
+
font-family: var(--font-family-alfasans);
|
|
43
47
|
}
|
|
44
|
-
.
|
|
48
|
+
.typography__caps_imgoa.typography__bold_imgoa {
|
|
45
49
|
font-weight: 700;
|
|
46
50
|
}
|
|
47
|
-
.
|
|
51
|
+
.typography__caps_imgoa.typography__medium_imgoa {
|
|
48
52
|
font-weight: 500;
|
|
49
53
|
}
|
|
50
|
-
.
|
|
54
|
+
.typography__tagline_imgoa {
|
|
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-
|
|
60
|
+
font-family: var(--font-family-alfasans);
|
|
57
61
|
}
|
|
58
|
-
.
|
|
62
|
+
.typography__tagline_imgoa.typography__bold_imgoa {
|
|
59
63
|
font-weight: 700;
|
|
60
64
|
}
|
|
61
|
-
.
|
|
65
|
+
.typography__tagline_imgoa.typography__medium_imgoa {
|
|
62
66
|
font-weight: 500;
|
|
63
67
|
}
|
|
64
|
-
.typography__primary-
|
|
68
|
+
.typography__primary-large_imgoa {
|
|
65
69
|
font-size: 18px;
|
|
66
70
|
line-height: 24px;
|
|
67
71
|
font-weight: 400;
|
|
68
|
-
|
|
72
|
+
letter-spacing: -0.36px;
|
|
73
|
+
font-family: var(--font-family-alfasans);
|
|
69
74
|
}
|
|
70
|
-
.typography__primary-
|
|
75
|
+
.typography__primary-large_imgoa.typography__bold_imgoa {
|
|
71
76
|
font-weight: 700;
|
|
77
|
+
letter-spacing: 0.38px;
|
|
72
78
|
}
|
|
73
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_imgoa.typography__medium_imgoa {
|
|
74
80
|
font-weight: 500;
|
|
81
|
+
letter-spacing: -0.17px;
|
|
75
82
|
}
|
|
76
|
-
.typography__primary-
|
|
83
|
+
.typography__primary-medium_imgoa {
|
|
77
84
|
font-size: 16px;
|
|
78
85
|
line-height: 24px;
|
|
79
86
|
font-weight: 400;
|
|
80
|
-
|
|
87
|
+
letter-spacing: -0.24px;
|
|
88
|
+
font-family: var(--font-family-alfasans);
|
|
81
89
|
}
|
|
82
|
-
.typography__primary-
|
|
90
|
+
.typography__primary-medium_imgoa.typography__bold_imgoa {
|
|
83
91
|
font-weight: 700;
|
|
92
|
+
letter-spacing: 0.43px;
|
|
84
93
|
}
|
|
85
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-medium_imgoa.typography__medium_imgoa {
|
|
86
95
|
font-weight: 500;
|
|
96
|
+
letter-spacing: -0.05px;
|
|
87
97
|
}
|
|
88
|
-
.typography__primary-
|
|
98
|
+
.typography__primary-small_imgoa {
|
|
89
99
|
font-size: 14px;
|
|
90
100
|
line-height: 20px;
|
|
91
101
|
font-weight: 400;
|
|
92
|
-
|
|
102
|
+
letter-spacing: -0.08px;
|
|
103
|
+
font-family: var(--font-family-alfasans);
|
|
93
104
|
}
|
|
94
|
-
.typography__primary-
|
|
105
|
+
.typography__primary-small_imgoa.typography__bold_imgoa {
|
|
95
106
|
font-weight: 700;
|
|
107
|
+
letter-spacing: 0.47px;
|
|
96
108
|
}
|
|
97
|
-
.typography__primary-
|
|
109
|
+
.typography__primary-small_imgoa.typography__medium_imgoa {
|
|
98
110
|
font-weight: 500;
|
|
111
|
+
letter-spacing: 0.07px;
|
|
99
112
|
}
|
|
100
|
-
.typography__component-
|
|
113
|
+
.typography__component-primary_imgoa {
|
|
101
114
|
font-size: 16px;
|
|
102
115
|
line-height: 20px;
|
|
103
116
|
font-weight: 400;
|
|
104
|
-
|
|
117
|
+
letter-spacing: -0.24px;
|
|
118
|
+
font-family: var(--font-family-alfasans);
|
|
105
119
|
}
|
|
106
|
-
.typography__component-
|
|
120
|
+
.typography__component-primary_imgoa.typography__bold_imgoa {
|
|
107
121
|
font-weight: 700;
|
|
122
|
+
letter-spacing: 0.43px;
|
|
108
123
|
}
|
|
109
|
-
.typography__component-
|
|
124
|
+
.typography__component-primary_imgoa.typography__medium_imgoa {
|
|
110
125
|
font-weight: 500;
|
|
126
|
+
letter-spacing: -0.05px;
|
|
111
127
|
}
|
|
112
|
-
.typography__secondary-
|
|
128
|
+
.typography__secondary-large_imgoa {
|
|
113
129
|
font-size: 13px;
|
|
114
130
|
line-height: 16px;
|
|
115
131
|
font-weight: 400;
|
|
116
|
-
font-family: var(--font-family-
|
|
132
|
+
font-family: var(--font-family-alfasans);
|
|
117
133
|
}
|
|
118
|
-
.typography__secondary-
|
|
134
|
+
.typography__secondary-large_imgoa.typography__bold_imgoa {
|
|
119
135
|
font-weight: 700;
|
|
136
|
+
letter-spacing: 0.54px;
|
|
120
137
|
}
|
|
121
|
-
.typography__secondary-
|
|
138
|
+
.typography__secondary-large_imgoa.typography__medium_imgoa {
|
|
122
139
|
font-weight: 500;
|
|
140
|
+
letter-spacing: 0.13px;
|
|
123
141
|
}
|
|
124
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-medium_imgoa {
|
|
125
143
|
font-size: 12px;
|
|
126
144
|
line-height: 16px;
|
|
127
145
|
font-weight: 400;
|
|
128
|
-
|
|
146
|
+
letter-spacing: 0.06px;
|
|
147
|
+
font-family: var(--font-family-alfasans);
|
|
129
148
|
}
|
|
130
|
-
.typography__secondary-
|
|
149
|
+
.typography__secondary-medium_imgoa.typography__bold_imgoa {
|
|
131
150
|
font-weight: 700;
|
|
151
|
+
letter-spacing: 0.57px;
|
|
132
152
|
}
|
|
133
|
-
.typography__secondary-
|
|
153
|
+
.typography__secondary-medium_imgoa.typography__medium_imgoa {
|
|
134
154
|
font-weight: 500;
|
|
155
|
+
letter-spacing: 0.19px;
|
|
135
156
|
}
|
|
136
|
-
.typography__secondary-
|
|
157
|
+
.typography__secondary-small_imgoa {
|
|
137
158
|
font-size: 11px;
|
|
138
159
|
line-height: 16px;
|
|
139
160
|
font-weight: 400;
|
|
140
|
-
|
|
161
|
+
letter-spacing: 0.15px;
|
|
162
|
+
font-family: var(--font-family-alfasans);
|
|
141
163
|
}
|
|
142
|
-
.typography__secondary-
|
|
164
|
+
.typography__secondary-small_imgoa.typography__bold_imgoa {
|
|
143
165
|
font-weight: 700;
|
|
166
|
+
letter-spacing: 0.54px;
|
|
144
167
|
}
|
|
145
|
-
.typography__secondary-
|
|
168
|
+
.typography__secondary-small_imgoa.typography__medium_imgoa {
|
|
146
169
|
font-weight: 500;
|
|
170
|
+
letter-spacing: 0.24px;
|
|
147
171
|
}
|
|
148
|
-
.typography__component-
|
|
172
|
+
.typography__component-secondary_imgoa {
|
|
149
173
|
font-size: 14px;
|
|
150
174
|
line-height: 18px;
|
|
151
175
|
font-weight: 400;
|
|
152
|
-
|
|
176
|
+
letter-spacing: -0.08px;
|
|
177
|
+
font-family: var(--font-family-alfasans);
|
|
153
178
|
}
|
|
154
|
-
.typography__component-
|
|
179
|
+
.typography__component-secondary_imgoa.typography__bold_imgoa {
|
|
155
180
|
font-weight: 700;
|
|
181
|
+
letter-spacing: 0.47px;
|
|
156
182
|
}
|
|
157
|
-
.typography__component-
|
|
183
|
+
.typography__component-secondary_imgoa.typography__medium_imgoa {
|
|
158
184
|
font-weight: 500;
|
|
185
|
+
letter-spacing: 0.07px;
|
|
159
186
|
}
|
|
160
|
-
.
|
|
187
|
+
.typography__rowLimit1_imgoa {
|
|
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
|
-
.
|
|
194
|
+
.typography__rowLimit2_imgoa {
|
|
168
195
|
-webkit-line-clamp: 2;
|
|
169
196
|
display: -webkit-box;
|
|
170
197
|
-webkit-box-orient: vertical;
|
|
171
198
|
overflow: hidden;
|
|
172
199
|
}
|
|
173
|
-
.
|
|
200
|
+
.typography__rowLimit3_imgoa {
|
|
174
201
|
-webkit-line-clamp: 3;
|
|
175
202
|
display: -webkit-box;
|
|
176
203
|
-webkit-box-orient: vertical;
|
|
177
204
|
overflow: hidden;
|
|
178
205
|
}
|
|
179
|
-
.
|
|
206
|
+
.typography__monospace_imgoa {
|
|
180
207
|
font-feature-settings: "tnum";
|
|
181
208
|
font-variant-numeric: tabular-nums;
|
|
182
209
|
}
|
package/text/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"transparent":"
|
|
5
|
+
var styles = {"transparent":"typography__transparent_imgoa","paragraph":"typography__paragraph_imgoa","paragraphWithMargins":"typography__paragraphWithMargins_imgoa","component":"typography__component_imgoa","bold":"typography__bold_imgoa","medium":"typography__medium_imgoa","caps":"typography__caps_imgoa","tagline":"typography__tagline_imgoa","primary-large":"typography__primary-large_imgoa","primary-medium":"typography__primary-medium_imgoa","primary-small":"typography__primary-small_imgoa","component-primary":"typography__component-primary_imgoa","secondary-large":"typography__secondary-large_imgoa","secondary-medium":"typography__secondary-medium_imgoa","secondary-small":"typography__secondary-small_imgoa","component-secondary":"typography__component-secondary_imgoa","rowLimit1":"typography__rowLimit1_imgoa","rowLimit2":"typography__rowLimit2_imgoa","rowLimit3":"typography__rowLimit3_imgoa","monospace":"typography__monospace_imgoa"};
|
|
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
|
-
.
|
|
4
|
+
.typography__transparent_g55ul {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.typography__component_g55ul {
|
|
8
8
|
margin: var(--gap-0);
|
|
9
9
|
padding: var(--gap-0);
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.typography__rowLimit1_g55ul {
|
|
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
|
-
.
|
|
18
|
+
.typography__rowLimit2_g55ul {
|
|
19
19
|
-webkit-line-clamp: 2;
|
|
20
20
|
display: -webkit-box;
|
|
21
21
|
-webkit-box-orient: vertical;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.typography__rowLimit3_g55ul {
|
|
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":"
|
|
5
|
+
var commonStyles = {"transparent":"typography__transparent_g55ul","component":"typography__component_g55ul","rowLimit1":"typography__rowLimit1_g55ul","rowLimit2":"typography__rowLimit2_g55ul","rowLimit3":"typography__rowLimit3_g55ul"};
|
|
6
6
|
|
|
7
7
|
module.exports = commonStyles;
|
|
8
8
|
//# sourceMappingURL=common.module.css.js.map
|
package/title/component.d.ts
CHANGED
|
@@ -24,10 +24,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
24
24
|
*
|
|
25
25
|
* @deprecated
|
|
26
26
|
*/
|
|
27
|
-
font?: 'styrene' | 'system'
|
|
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"
|
|
94
|
-
font: "alfasans";
|
|
95
|
-
systemCompat: boolean;
|
|
96
|
-
};
|
|
90
|
+
font?: "styrene" | "system";
|
|
97
91
|
/**
|
|
98
92
|
* Добавляет отступы
|
|
99
93
|
*/
|
package/title/component.js
CHANGED
|
@@ -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
|
|
24
|
-
var
|
|
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
|
|