@alfalab/core-components-typography 6.0.8 → 6.0.9-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
|
@@ -8,116 +8,99 @@
|
|
|
8
8
|
--gap-40: var(--gap-3xl);
|
|
9
9
|
}
|
|
10
10
|
:root {
|
|
11
|
-
--font-family-
|
|
12
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
13
|
-
|
|
14
|
-
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
15
|
-
sans-serif;
|
|
11
|
+
--font-family-alfasans:
|
|
12
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
13
|
+
Helvetica, sans-serif;
|
|
16
14
|
}
|
|
17
15
|
.xlarge {
|
|
18
16
|
font-size: 34px;
|
|
19
17
|
line-height: 40px;
|
|
20
|
-
font-weight:
|
|
21
|
-
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
letter-spacing: -0.32px;
|
|
20
|
+
font-family: var(--font-family-alfasans);
|
|
22
21
|
}
|
|
23
22
|
.xlarge.font {
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
font-feature-settings: 'ss01';
|
|
26
|
-
font-family: var(--font-family-styrene);
|
|
27
23
|
}
|
|
28
24
|
.regular-xlarge {
|
|
29
25
|
font-size: 34px;
|
|
30
26
|
line-height: 40px;
|
|
31
27
|
font-weight: 400;
|
|
32
|
-
|
|
28
|
+
letter-spacing: -1.36px;
|
|
29
|
+
font-family: var(--font-family-alfasans);
|
|
33
30
|
}
|
|
34
31
|
.regular-xlarge.system {
|
|
35
|
-
font-feature-settings: 'ss01';
|
|
36
|
-
font-family: var(--font-family-styrene);
|
|
37
32
|
}
|
|
38
33
|
.large {
|
|
39
34
|
font-size: 30px;
|
|
40
35
|
line-height: 36px;
|
|
41
|
-
font-weight:
|
|
42
|
-
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
letter-spacing: -0.25px;
|
|
38
|
+
font-family: var(--font-family-alfasans);
|
|
43
39
|
}
|
|
44
40
|
.large.font {
|
|
45
|
-
font-weight: 500;
|
|
46
|
-
font-feature-settings: 'ss01';
|
|
47
|
-
font-family: var(--font-family-styrene);
|
|
48
41
|
}
|
|
49
42
|
.regular-large {
|
|
50
43
|
font-size: 30px;
|
|
51
44
|
line-height: 36px;
|
|
52
45
|
font-weight: 400;
|
|
53
|
-
|
|
46
|
+
letter-spacing: -1.25px;
|
|
47
|
+
font-family: var(--font-family-alfasans);
|
|
54
48
|
}
|
|
55
49
|
.regular-large.system {
|
|
56
|
-
font-feature-settings: 'ss01';
|
|
57
|
-
font-family: var(--font-family-styrene);
|
|
58
50
|
}
|
|
59
51
|
.medium {
|
|
60
52
|
font-size: 26px;
|
|
61
53
|
line-height: 32px;
|
|
62
|
-
font-weight:
|
|
63
|
-
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
letter-spacing: -0.25px;
|
|
56
|
+
font-family: var(--font-family-alfasans);
|
|
64
57
|
}
|
|
65
58
|
.medium.font {
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
font-feature-settings: 'ss01';
|
|
68
|
-
font-family: var(--font-family-styrene);
|
|
69
59
|
}
|
|
70
60
|
.regular-medium {
|
|
71
61
|
font-size: 26px;
|
|
72
62
|
line-height: 32px;
|
|
73
63
|
font-weight: 400;
|
|
74
|
-
|
|
64
|
+
letter-spacing: -1px;
|
|
65
|
+
font-family: var(--font-family-alfasans);
|
|
75
66
|
}
|
|
76
67
|
.regular-medium.system {
|
|
77
|
-
font-feature-settings: 'ss01';
|
|
78
|
-
font-family: var(--font-family-styrene);
|
|
79
68
|
}
|
|
80
69
|
.small {
|
|
81
70
|
font-size: 20px;
|
|
82
71
|
line-height: 28px;
|
|
83
|
-
font-weight:
|
|
84
|
-
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
letter-spacing: -0.15px;
|
|
74
|
+
font-family: var(--font-family-alfasans);
|
|
85
75
|
}
|
|
86
76
|
.small.font {
|
|
87
|
-
font-weight: 500;
|
|
88
|
-
font-feature-settings: 'ss01';
|
|
89
|
-
font-family: var(--font-family-styrene);
|
|
90
77
|
}
|
|
91
78
|
.regular-small {
|
|
92
79
|
font-size: 20px;
|
|
93
80
|
line-height: 28px;
|
|
94
81
|
font-weight: 400;
|
|
95
|
-
|
|
82
|
+
letter-spacing: -0.68px;
|
|
83
|
+
font-family: var(--font-family-alfasans);
|
|
96
84
|
}
|
|
97
85
|
.regular-small.system {
|
|
98
|
-
font-feature-settings: 'ss01';
|
|
99
|
-
font-family: var(--font-family-styrene);
|
|
100
86
|
}
|
|
101
87
|
.xsmall {
|
|
102
88
|
font-size: 16px;
|
|
103
89
|
line-height: 20px;
|
|
104
|
-
font-weight:
|
|
105
|
-
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
letter-spacing: 0.17px;
|
|
92
|
+
font-family: var(--font-family-alfasans);
|
|
106
93
|
}
|
|
107
94
|
.xsmall.font {
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
font-feature-settings: 'ss01';
|
|
110
|
-
font-family: var(--font-family-styrene);
|
|
111
95
|
}
|
|
112
96
|
.regular-xsmall {
|
|
113
97
|
font-size: 16px;
|
|
114
98
|
line-height: 20px;
|
|
115
99
|
font-weight: 400;
|
|
116
|
-
|
|
100
|
+
letter-spacing: -0.24px;
|
|
101
|
+
font-family: var(--font-family-alfasans);
|
|
117
102
|
}
|
|
118
103
|
.regular-xsmall.system {
|
|
119
|
-
font-feature-settings: 'ss01';
|
|
120
|
-
font-family: var(--font-family-styrene);
|
|
121
104
|
}
|
|
122
105
|
.component.margins-xlarge {
|
|
123
106
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
@@ -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/esm/colors.css
CHANGED
|
@@ -20,63 +20,63 @@
|
|
|
20
20
|
--color-static-text-tertiary-dark: rgba(5, 8, 29, 0.38);
|
|
21
21
|
--color-static-text-tertiary-light: rgba(233, 233, 250, 0.37);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.typography__tertiary_usno3 {
|
|
24
24
|
color: var(--color-light-text-tertiary);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.typography__disabled_usno3 {
|
|
27
27
|
color: var(--color-light-text-quaternary);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.typography__accent_usno3 {
|
|
30
30
|
color: var(--color-light-accent-primary);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.typography__primary_usno3 {
|
|
33
33
|
color: var(--color-light-text-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.typography__attention_usno3 {
|
|
36
36
|
color: var(--color-light-text-attention);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.typography__positive_usno3 {
|
|
39
39
|
color: var(--color-light-text-positive);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.typography__secondary_usno3 {
|
|
42
42
|
color: var(--color-light-text-secondary);
|
|
43
43
|
}
|
|
44
|
-
.typography__tertiary-
|
|
44
|
+
.typography__tertiary-inverted_usno3 {
|
|
45
45
|
color: var(--color-light-text-tertiary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.typography__primary-
|
|
47
|
+
.typography__primary-inverted_usno3 {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.typography__secondary-
|
|
50
|
+
.typography__secondary-inverted_usno3 {
|
|
51
51
|
color: var(--color-light-text-secondary-inverted);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.typography__link_usno3 {
|
|
54
54
|
color: var(--color-light-text-info);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__negative_usno3 {
|
|
57
57
|
color: var(--color-light-text-negative);
|
|
58
58
|
}
|
|
59
|
-
.typography__static-primary-
|
|
59
|
+
.typography__static-primary-light_usno3 {
|
|
60
60
|
color: var(--color-static-text-primary-light);
|
|
61
61
|
}
|
|
62
|
-
.typography__static-secondary-
|
|
62
|
+
.typography__static-secondary-light_usno3 {
|
|
63
63
|
color: var(--color-static-text-secondary-light);
|
|
64
64
|
}
|
|
65
|
-
.typography__static-tertiary-
|
|
65
|
+
.typography__static-tertiary-light_usno3 {
|
|
66
66
|
color: var(--color-static-text-tertiary-light);
|
|
67
67
|
}
|
|
68
|
-
.typography__static-primary-
|
|
68
|
+
.typography__static-primary-dark_usno3 {
|
|
69
69
|
color: var(--color-static-text-primary-dark);
|
|
70
70
|
}
|
|
71
|
-
.typography__static-secondary-
|
|
71
|
+
.typography__static-secondary-dark_usno3 {
|
|
72
72
|
color: var(--color-static-text-secondary-dark);
|
|
73
73
|
}
|
|
74
|
-
.typography__static-tertiary-
|
|
74
|
+
.typography__static-tertiary-dark_usno3 {
|
|
75
75
|
color: var(--color-static-text-tertiary-dark);
|
|
76
76
|
}
|
|
77
|
-
.typography__static-
|
|
77
|
+
.typography__static-accent_usno3 {
|
|
78
78
|
color: var(--color-static-accent-primary);
|
|
79
79
|
}
|
|
80
|
-
.typography__static-
|
|
80
|
+
.typography__static-positive_usno3 {
|
|
81
81
|
color: var(--color-static-text-positive);
|
|
82
82
|
}
|
package/esm/colors.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './colors.css';
|
|
2
2
|
|
|
3
|
-
var colors = {"tertiary":"
|
|
3
|
+
var colors = {"tertiary":"typography__tertiary_usno3","disabled":"typography__disabled_usno3","accent":"typography__accent_usno3","primary":"typography__primary_usno3","attention":"typography__attention_usno3","positive":"typography__positive_usno3","secondary":"typography__secondary_usno3","tertiary-inverted":"typography__tertiary-inverted_usno3","primary-inverted":"typography__primary-inverted_usno3","secondary-inverted":"typography__secondary-inverted_usno3","link":"typography__link_usno3","negative":"typography__negative_usno3","static-primary-light":"typography__static-primary-light_usno3","static-secondary-light":"typography__static-secondary-light_usno3","static-tertiary-light":"typography__static-tertiary-light_usno3","static-primary-dark":"typography__static-primary-dark_usno3","static-secondary-dark":"typography__static-secondary-dark_usno3","static-tertiary-dark":"typography__static-tertiary-dark_usno3","static-accent":"typography__static-accent_usno3","static-positive":"typography__static-positive_usno3"};
|
|
4
4
|
|
|
5
5
|
export { colors as default };
|
|
6
6
|
//# sourceMappingURL=colors.module.css.js.map
|
package/esm/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_2zvp4 {
|
|
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_2zvp4 {
|
|
17
18
|
margin: var(--gap-0);
|
|
18
19
|
padding: var(--gap-0);
|
|
19
20
|
}
|
|
20
|
-
.
|
|
21
|
+
.typography__paragraphWithMargins_2zvp4 {
|
|
21
22
|
padding: var(--gap-0);
|
|
22
23
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
24
|
}
|
|
24
|
-
.
|
|
25
|
+
.typography__component_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
31
33
|
font-weight: 700;
|
|
34
|
+
letter-spacing: 0.43px;
|
|
32
35
|
}
|
|
33
|
-
.
|
|
36
|
+
.typography__component_2zvp4.typography__medium_2zvp4 {
|
|
34
37
|
font-weight: 500;
|
|
38
|
+
letter-spacing: -0.05px;
|
|
35
39
|
}
|
|
36
|
-
.
|
|
40
|
+
.typography__caps_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
45
49
|
font-weight: 700;
|
|
46
50
|
}
|
|
47
|
-
.
|
|
51
|
+
.typography__caps_2zvp4.typography__medium_2zvp4 {
|
|
48
52
|
font-weight: 500;
|
|
49
53
|
}
|
|
50
|
-
.
|
|
54
|
+
.typography__tagline_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
59
63
|
font-weight: 700;
|
|
60
64
|
}
|
|
61
|
-
.
|
|
65
|
+
.typography__tagline_2zvp4.typography__medium_2zvp4 {
|
|
62
66
|
font-weight: 500;
|
|
63
67
|
}
|
|
64
|
-
.typography__primary-
|
|
68
|
+
.typography__primary-large_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
71
76
|
font-weight: 700;
|
|
77
|
+
letter-spacing: 0.38px;
|
|
72
78
|
}
|
|
73
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_2zvp4.typography__medium_2zvp4 {
|
|
74
80
|
font-weight: 500;
|
|
81
|
+
letter-spacing: -0.17px;
|
|
75
82
|
}
|
|
76
|
-
.typography__primary-
|
|
83
|
+
.typography__primary-medium_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
83
91
|
font-weight: 700;
|
|
92
|
+
letter-spacing: 0.43px;
|
|
84
93
|
}
|
|
85
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-medium_2zvp4.typography__medium_2zvp4 {
|
|
86
95
|
font-weight: 500;
|
|
96
|
+
letter-spacing: -0.05px;
|
|
87
97
|
}
|
|
88
|
-
.typography__primary-
|
|
98
|
+
.typography__primary-small_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
95
106
|
font-weight: 700;
|
|
107
|
+
letter-spacing: 0.47px;
|
|
96
108
|
}
|
|
97
|
-
.typography__primary-
|
|
109
|
+
.typography__primary-small_2zvp4.typography__medium_2zvp4 {
|
|
98
110
|
font-weight: 500;
|
|
111
|
+
letter-spacing: 0.07px;
|
|
99
112
|
}
|
|
100
|
-
.typography__component-
|
|
113
|
+
.typography__component-primary_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
107
121
|
font-weight: 700;
|
|
122
|
+
letter-spacing: 0.43px;
|
|
108
123
|
}
|
|
109
|
-
.typography__component-
|
|
124
|
+
.typography__component-primary_2zvp4.typography__medium_2zvp4 {
|
|
110
125
|
font-weight: 500;
|
|
126
|
+
letter-spacing: -0.05px;
|
|
111
127
|
}
|
|
112
|
-
.typography__secondary-
|
|
128
|
+
.typography__secondary-large_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
119
135
|
font-weight: 700;
|
|
136
|
+
letter-spacing: 0.54px;
|
|
120
137
|
}
|
|
121
|
-
.typography__secondary-
|
|
138
|
+
.typography__secondary-large_2zvp4.typography__medium_2zvp4 {
|
|
122
139
|
font-weight: 500;
|
|
140
|
+
letter-spacing: 0.13px;
|
|
123
141
|
}
|
|
124
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-medium_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
131
150
|
font-weight: 700;
|
|
151
|
+
letter-spacing: 0.57px;
|
|
132
152
|
}
|
|
133
|
-
.typography__secondary-
|
|
153
|
+
.typography__secondary-medium_2zvp4.typography__medium_2zvp4 {
|
|
134
154
|
font-weight: 500;
|
|
155
|
+
letter-spacing: 0.19px;
|
|
135
156
|
}
|
|
136
|
-
.typography__secondary-
|
|
157
|
+
.typography__secondary-small_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
143
165
|
font-weight: 700;
|
|
166
|
+
letter-spacing: 0.54px;
|
|
144
167
|
}
|
|
145
|
-
.typography__secondary-
|
|
168
|
+
.typography__secondary-small_2zvp4.typography__medium_2zvp4 {
|
|
146
169
|
font-weight: 500;
|
|
170
|
+
letter-spacing: 0.24px;
|
|
147
171
|
}
|
|
148
|
-
.typography__component-
|
|
172
|
+
.typography__component-secondary_2zvp4 {
|
|
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_2zvp4.typography__bold_2zvp4 {
|
|
155
180
|
font-weight: 700;
|
|
181
|
+
letter-spacing: 0.47px;
|
|
156
182
|
}
|
|
157
|
-
.typography__component-
|
|
183
|
+
.typography__component-secondary_2zvp4.typography__medium_2zvp4 {
|
|
158
184
|
font-weight: 500;
|
|
185
|
+
letter-spacing: 0.07px;
|
|
159
186
|
}
|
|
160
|
-
.
|
|
187
|
+
.typography__rowLimit1_2zvp4 {
|
|
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_2zvp4 {
|
|
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_2zvp4 {
|
|
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_2zvp4 {
|
|
180
207
|
font-feature-settings: "tnum";
|
|
181
208
|
font-variant-numeric: tabular-nums;
|
|
182
209
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"transparent":"
|
|
3
|
+
var styles = {"transparent":"typography__transparent_2zvp4","paragraph":"typography__paragraph_2zvp4","paragraphWithMargins":"typography__paragraphWithMargins_2zvp4","component":"typography__component_2zvp4","bold":"typography__bold_2zvp4","medium":"typography__medium_2zvp4","caps":"typography__caps_2zvp4","tagline":"typography__tagline_2zvp4","primary-large":"typography__primary-large_2zvp4","primary-medium":"typography__primary-medium_2zvp4","primary-small":"typography__primary-small_2zvp4","component-primary":"typography__component-primary_2zvp4","secondary-large":"typography__secondary-large_2zvp4","secondary-medium":"typography__secondary-medium_2zvp4","secondary-small":"typography__secondary-small_2zvp4","component-secondary":"typography__component-secondary_2zvp4","rowLimit1":"typography__rowLimit1_2zvp4","rowLimit2":"typography__rowLimit2_2zvp4","rowLimit3":"typography__rowLimit3_2zvp4","monospace":"typography__monospace_2zvp4"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
package/esm/title/common.css
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
.typography__transparent_6mtbu {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.typography__component_6mtbu {
|
|
8
8
|
margin: var(--gap-0);
|
|
9
9
|
padding: var(--gap-0);
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.typography__rowLimit1_6mtbu {
|
|
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_6mtbu {
|
|
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_6mtbu {
|
|
25
25
|
-webkit-line-clamp: 3;
|
|
26
26
|
display: -webkit-box;
|
|
27
27
|
-webkit-box-orient: vertical;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './common.css';
|
|
2
2
|
|
|
3
|
-
var commonStyles = {"transparent":"
|
|
3
|
+
var commonStyles = {"transparent":"typography__transparent_6mtbu","component":"typography__component_6mtbu","rowLimit1":"typography__rowLimit1_6mtbu","rowLimit2":"typography__rowLimit2_6mtbu","rowLimit3":"typography__rowLimit3_6mtbu"};
|
|
4
4
|
|
|
5
5
|
export { commonStyles as default };
|
|
6
6
|
//# sourceMappingURL=common.module.css.js.map
|
package/esm/title/component.d.ts
CHANGED
|
@@ -22,10 +22,7 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
22
22
|
/**
|
|
23
23
|
* Шрифт текста
|
|
24
24
|
*/
|
|
25
|
-
font?: 'styrene' | 'system'
|
|
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"
|
|
90
|
-
font: "alfasans";
|
|
91
|
-
systemCompat: boolean;
|
|
92
|
-
};
|
|
86
|
+
font?: "styrene" | "system";
|
|
93
87
|
/**
|
|
94
88
|
* Добавляет отступы
|
|
95
89
|
*/
|
package/esm/title/component.js
CHANGED
|
@@ -2,16 +2,14 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
|
-
import { isObject } from '@alfalab/core-components-shared/esm';
|
|
6
5
|
import { useSkeleton } from '@alfalab/core-components-skeleton/esm';
|
|
7
|
-
import { getDefaultWeight } from './utils.js';
|
|
8
6
|
import colors from '../colors.module.css.js';
|
|
9
7
|
import commonStyles from './common.module.css.js';
|
|
10
8
|
|
|
11
9
|
var TitleBase = forwardRef(function (_a, ref) {
|
|
12
10
|
var _b;
|
|
13
|
-
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d
|
|
14
|
-
var
|
|
11
|
+
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 = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
|
|
12
|
+
var _g = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _g.renderSkeleton, textRef = _g.textRef;
|
|
15
13
|
var skeleton = renderSkeleton({
|
|
16
14
|
wrapperClassName: cn(defaultMargins && styles["margins-".concat(view)]),
|
|
17
15
|
dataTestId: dataTestId,
|
|
@@ -22,7 +20,6 @@ var TitleBase = forwardRef(function (_a, ref) {
|
|
|
22
20
|
return (React.createElement(Component, __assign({ className: cn(commonStyles.component, styles.component, className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors[color], (_b = {},
|
|
23
21
|
_b[commonStyles["rowLimit".concat(rowLimit)]] = rowLimit,
|
|
24
22
|
_b[commonStyles.transparent] = showSkeleton,
|
|
25
|
-
_b[styles.font] = (isObject(font) && !font.systemCompat) || !(font === 'system'),
|
|
26
23
|
_b)), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]) }, restProps), children));
|
|
27
24
|
});
|
|
28
25
|
|