@alfalab/core-components-typography 6.0.9-alfasans → 6.0.10
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 +14 -42
- package/cssm/title/component.d.ts +8 -2
- package/cssm/title/component.js +6 -3
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +4 -1
- package/cssm/title/index.module.css +78 -31
- package/cssm/title/utils.d.ts +1 -0
- package/cssm/title/utils.js +16 -0
- package/cssm/title/utils.js.map +1 -0
- package/cssm/title-mobile/component.d.ts +4 -1
- package/cssm/title-mobile/index.module.css +48 -34
- package/cssm/title-responsive/component.d.ts +4 -1
- package/esm/colors.css +20 -20
- package/esm/colors.module.css.js +1 -1
- package/esm/text/index.css +54 -82
- 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 +8 -2
- package/esm/title/component.js +5 -2
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +93 -46
- package/esm/title/index.d.ts +4 -1
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title/utils.d.ts +1 -0
- package/esm/title/utils.js +12 -0
- package/esm/title/utils.js.map +1 -0
- package/esm/title-mobile/component.d.ts +4 -1
- package/esm/title-mobile/index.css +73 -59
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-responsive/component.d.ts +4 -1
- package/modern/colors.css +20 -20
- package/modern/colors.module.css.js +1 -1
- package/modern/text/index.css +54 -82
- 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 +8 -2
- package/modern/title/component.js +4 -1
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +93 -46
- package/modern/title/index.d.ts +4 -1
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title/utils.d.ts +1 -0
- package/modern/title/utils.js +12 -0
- package/modern/title/utils.js.map +1 -0
- package/modern/title-mobile/component.d.ts +4 -1
- package/modern/title-mobile/index.css +73 -59
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-responsive/component.d.ts +4 -1
- package/moderncssm/text/index.module.css +11 -37
- package/moderncssm/title/component.d.ts +8 -2
- package/moderncssm/title/component.js +4 -1
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +4 -1
- package/moderncssm/title/index.module.css +79 -20
- package/moderncssm/title/utils.d.ts +1 -0
- package/moderncssm/title/utils.js +12 -0
- package/moderncssm/title/utils.js.map +1 -0
- package/moderncssm/title-mobile/component.d.ts +4 -1
- package/moderncssm/title-mobile/index.module.css +40 -25
- package/moderncssm/title-responsive/component.d.ts +4 -1
- package/package.json +6 -6
- package/src/title/component.tsx +8 -3
- package/src/title/index.module.css +8 -0
- package/src/title/utils.ts +14 -0
- package/text/index.css +54 -82
- 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 +8 -2
- package/title/component.js +5 -2
- package/title/component.js.map +1 -1
- package/title/index.css +93 -46
- package/title/index.d.ts +4 -1
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title/utils.d.ts +1 -0
- package/title/utils.js +16 -0
- package/title/utils.js.map +1 -0
- package/title-mobile/component.d.ts +4 -1
- package/title-mobile/index.css +73 -59
- package/title-mobile/index.module.css.js +1 -1
- package/title-responsive/component.d.ts +4 -1
|
@@ -1,106 +1,120 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-m: 16px;
|
|
3
|
-
--gap-xl: 24px;
|
|
4
|
-
--gap-3xl: 40px;
|
|
5
2
|
--gap-0: 0px;
|
|
6
|
-
--gap-16:
|
|
7
|
-
--gap-24:
|
|
8
|
-
--gap-40:
|
|
3
|
+
--gap-16: 16px;
|
|
4
|
+
--gap-24: 24px;
|
|
5
|
+
--gap-40: 40px;
|
|
9
6
|
}
|
|
10
7
|
:root {
|
|
11
|
-
--font-family-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
--font-family-system:
|
|
9
|
+
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
10
|
+
--font-family-styrene:
|
|
11
|
+
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
12
|
+
sans-serif;
|
|
14
13
|
}
|
|
15
14
|
.xlarge {
|
|
16
15
|
font-size: 34px;
|
|
17
16
|
line-height: 40px;
|
|
18
|
-
font-weight:
|
|
19
|
-
|
|
20
|
-
font-family: var(--font-family-alfasans);
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
font-family: var(--font-family-system);
|
|
21
19
|
}
|
|
22
20
|
.xlarge.font {
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
font-feature-settings: 'ss01';
|
|
23
|
+
font-family: var(--font-family-styrene);
|
|
23
24
|
}
|
|
24
25
|
.regular-xlarge {
|
|
25
26
|
font-size: 34px;
|
|
26
27
|
line-height: 40px;
|
|
27
28
|
font-weight: 400;
|
|
28
|
-
|
|
29
|
-
font-family: var(--font-family-alfasans);
|
|
29
|
+
font-family: var(--font-family-system);
|
|
30
30
|
}
|
|
31
31
|
.regular-xlarge.system {
|
|
32
|
+
font-feature-settings: 'ss01';
|
|
33
|
+
font-family: var(--font-family-styrene);
|
|
32
34
|
}
|
|
33
35
|
.large {
|
|
34
36
|
font-size: 30px;
|
|
35
37
|
line-height: 36px;
|
|
36
|
-
font-weight:
|
|
37
|
-
|
|
38
|
-
font-family: var(--font-family-alfasans);
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-family: var(--font-family-system);
|
|
39
40
|
}
|
|
40
41
|
.large.font {
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
font-feature-settings: 'ss01';
|
|
44
|
+
font-family: var(--font-family-styrene);
|
|
41
45
|
}
|
|
42
46
|
.regular-large {
|
|
43
47
|
font-size: 30px;
|
|
44
48
|
line-height: 36px;
|
|
45
49
|
font-weight: 400;
|
|
46
|
-
|
|
47
|
-
font-family: var(--font-family-alfasans);
|
|
50
|
+
font-family: var(--font-family-system);
|
|
48
51
|
}
|
|
49
52
|
.regular-large.system {
|
|
53
|
+
font-feature-settings: 'ss01';
|
|
54
|
+
font-family: var(--font-family-styrene);
|
|
50
55
|
}
|
|
51
56
|
.medium {
|
|
52
57
|
font-size: 26px;
|
|
53
58
|
line-height: 32px;
|
|
54
|
-
font-weight:
|
|
55
|
-
|
|
56
|
-
font-family: var(--font-family-alfasans);
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
font-family: var(--font-family-system);
|
|
57
61
|
}
|
|
58
62
|
.medium.font {
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
font-feature-settings: 'ss01';
|
|
65
|
+
font-family: var(--font-family-styrene);
|
|
59
66
|
}
|
|
60
67
|
.regular-medium {
|
|
61
68
|
font-size: 26px;
|
|
62
69
|
line-height: 32px;
|
|
63
70
|
font-weight: 400;
|
|
64
|
-
|
|
65
|
-
font-family: var(--font-family-alfasans);
|
|
71
|
+
font-family: var(--font-family-system);
|
|
66
72
|
}
|
|
67
73
|
.regular-medium.system {
|
|
74
|
+
font-feature-settings: 'ss01';
|
|
75
|
+
font-family: var(--font-family-styrene);
|
|
68
76
|
}
|
|
69
77
|
.small {
|
|
70
78
|
font-size: 20px;
|
|
71
79
|
line-height: 28px;
|
|
72
|
-
font-weight:
|
|
73
|
-
|
|
74
|
-
font-family: var(--font-family-alfasans);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
font-family: var(--font-family-system);
|
|
75
82
|
}
|
|
76
83
|
.small.font {
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
font-feature-settings: 'ss01';
|
|
86
|
+
font-family: var(--font-family-styrene);
|
|
77
87
|
}
|
|
78
88
|
.regular-small {
|
|
79
89
|
font-size: 20px;
|
|
80
90
|
line-height: 28px;
|
|
81
91
|
font-weight: 400;
|
|
82
|
-
|
|
83
|
-
font-family: var(--font-family-alfasans);
|
|
92
|
+
font-family: var(--font-family-system);
|
|
84
93
|
}
|
|
85
94
|
.regular-small.system {
|
|
95
|
+
font-feature-settings: 'ss01';
|
|
96
|
+
font-family: var(--font-family-styrene);
|
|
86
97
|
}
|
|
87
98
|
.xsmall {
|
|
88
99
|
font-size: 16px;
|
|
89
100
|
line-height: 20px;
|
|
90
|
-
font-weight:
|
|
91
|
-
|
|
92
|
-
font-family: var(--font-family-alfasans);
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
font-family: var(--font-family-system);
|
|
93
103
|
}
|
|
94
104
|
.xsmall.font {
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
font-feature-settings: 'ss01';
|
|
107
|
+
font-family: var(--font-family-styrene);
|
|
95
108
|
}
|
|
96
109
|
.regular-xsmall {
|
|
97
110
|
font-size: 16px;
|
|
98
111
|
line-height: 20px;
|
|
99
112
|
font-weight: 400;
|
|
100
|
-
|
|
101
|
-
font-family: var(--font-family-alfasans);
|
|
113
|
+
font-family: var(--font-family-system);
|
|
102
114
|
}
|
|
103
115
|
.regular-xsmall.system {
|
|
116
|
+
font-feature-settings: 'ss01';
|
|
117
|
+
font-family: var(--font-family-styrene);
|
|
104
118
|
}
|
|
105
119
|
.component.margins-xlarge {
|
|
106
120
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
@@ -16,7 +16,10 @@ 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"
|
|
19
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
20
|
+
font: "alfasans";
|
|
21
|
+
systemCompat: boolean;
|
|
22
|
+
};
|
|
20
23
|
defaultMargins?: boolean;
|
|
21
24
|
className?: string;
|
|
22
25
|
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_1up0l {
|
|
24
24
|
color: var(--color-light-text-tertiary);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.typography__disabled_1up0l {
|
|
27
27
|
color: var(--color-light-text-quaternary);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.typography__accent_1up0l {
|
|
30
30
|
color: var(--color-light-accent-primary);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.typography__primary_1up0l {
|
|
33
33
|
color: var(--color-light-text-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.typography__attention_1up0l {
|
|
36
36
|
color: var(--color-light-text-attention);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.typography__positive_1up0l {
|
|
39
39
|
color: var(--color-light-text-positive);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.typography__secondary_1up0l {
|
|
42
42
|
color: var(--color-light-text-secondary);
|
|
43
43
|
}
|
|
44
|
-
.typography__tertiary-
|
|
44
|
+
.typography__tertiary-inverted_1up0l {
|
|
45
45
|
color: var(--color-light-text-tertiary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.typography__primary-
|
|
47
|
+
.typography__primary-inverted_1up0l {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.typography__secondary-
|
|
50
|
+
.typography__secondary-inverted_1up0l {
|
|
51
51
|
color: var(--color-light-text-secondary-inverted);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.typography__link_1up0l {
|
|
54
54
|
color: var(--color-light-text-info);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__negative_1up0l {
|
|
57
57
|
color: var(--color-light-text-negative);
|
|
58
58
|
}
|
|
59
|
-
.typography__static-primary-
|
|
59
|
+
.typography__static-primary-light_1up0l {
|
|
60
60
|
color: var(--color-static-text-primary-light);
|
|
61
61
|
}
|
|
62
|
-
.typography__static-secondary-
|
|
62
|
+
.typography__static-secondary-light_1up0l {
|
|
63
63
|
color: var(--color-static-text-secondary-light);
|
|
64
64
|
}
|
|
65
|
-
.typography__static-tertiary-
|
|
65
|
+
.typography__static-tertiary-light_1up0l {
|
|
66
66
|
color: var(--color-static-text-tertiary-light);
|
|
67
67
|
}
|
|
68
|
-
.typography__static-primary-
|
|
68
|
+
.typography__static-primary-dark_1up0l {
|
|
69
69
|
color: var(--color-static-text-primary-dark);
|
|
70
70
|
}
|
|
71
|
-
.typography__static-secondary-
|
|
71
|
+
.typography__static-secondary-dark_1up0l {
|
|
72
72
|
color: var(--color-static-text-secondary-dark);
|
|
73
73
|
}
|
|
74
|
-
.typography__static-tertiary-
|
|
74
|
+
.typography__static-tertiary-dark_1up0l {
|
|
75
75
|
color: var(--color-static-text-tertiary-dark);
|
|
76
76
|
}
|
|
77
|
-
.typography__static-
|
|
77
|
+
.typography__static-accent_1up0l {
|
|
78
78
|
color: var(--color-static-accent-primary);
|
|
79
79
|
}
|
|
80
|
-
.typography__static-
|
|
80
|
+
.typography__static-positive_1up0l {
|
|
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_1up0l","disabled":"typography__disabled_1up0l","accent":"typography__accent_1up0l","primary":"typography__primary_1up0l","attention":"typography__attention_1up0l","positive":"typography__positive_1up0l","secondary":"typography__secondary_1up0l","tertiary-inverted":"typography__tertiary-inverted_1up0l","primary-inverted":"typography__primary-inverted_1up0l","secondary-inverted":"typography__secondary-inverted_1up0l","link":"typography__link_1up0l","negative":"typography__negative_1up0l","static-primary-light":"typography__static-primary-light_1up0l","static-secondary-light":"typography__static-secondary-light_1up0l","static-tertiary-light":"typography__static-tertiary-light_1up0l","static-primary-dark":"typography__static-primary-dark_1up0l","static-secondary-dark":"typography__static-secondary-dark_1up0l","static-tertiary-dark":"typography__static-tertiary-dark_1up0l","static-accent":"typography__static-accent_1up0l","static-positive":"typography__static-positive_1up0l"};
|
|
4
4
|
|
|
5
5
|
export { colors as default };
|
|
6
6
|
//# sourceMappingURL=colors.module.css.js.map
|
package/esm/text/index.css
CHANGED
|
@@ -1,209 +1,181 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-s: 12px;
|
|
3
2
|
--gap-0: 0px;
|
|
4
|
-
--gap-12:
|
|
3
|
+
--gap-12: 12px;
|
|
5
4
|
}
|
|
6
5
|
:root {
|
|
7
|
-
--font-family-
|
|
8
|
-
|
|
9
|
-
Helvetica, sans-serif;
|
|
6
|
+
--font-family-system:
|
|
7
|
+
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
10
8
|
}
|
|
11
|
-
.
|
|
9
|
+
.typography__transparent_15zcn {
|
|
12
10
|
opacity: 0;
|
|
13
11
|
}
|
|
14
12
|
:root {
|
|
15
13
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
16
14
|
}
|
|
17
|
-
.
|
|
15
|
+
.typography__paragraph_15zcn {
|
|
18
16
|
margin: var(--gap-0);
|
|
19
17
|
padding: var(--gap-0);
|
|
20
18
|
}
|
|
21
|
-
.
|
|
19
|
+
.typography__paragraphWithMargins_15zcn {
|
|
22
20
|
padding: var(--gap-0);
|
|
23
21
|
margin: var(--text-paragraph-margin-bottom);
|
|
24
22
|
}
|
|
25
|
-
.
|
|
23
|
+
.typography__component_15zcn {
|
|
26
24
|
font-size: 16px;
|
|
27
25
|
line-height: 20px;
|
|
28
26
|
font-weight: 400;
|
|
29
|
-
|
|
30
|
-
font-family: var(--font-family-alfasans);
|
|
27
|
+
font-family: var(--font-family-system);
|
|
31
28
|
}
|
|
32
|
-
.
|
|
29
|
+
.typography__component_15zcn.typography__bold_15zcn {
|
|
33
30
|
font-weight: 700;
|
|
34
|
-
letter-spacing: 0.43px;
|
|
35
31
|
}
|
|
36
|
-
.
|
|
32
|
+
.typography__component_15zcn.typography__medium_15zcn {
|
|
37
33
|
font-weight: 500;
|
|
38
|
-
letter-spacing: -0.05px;
|
|
39
34
|
}
|
|
40
|
-
.
|
|
35
|
+
.typography__caps_15zcn {
|
|
41
36
|
font-size: 12px;
|
|
42
37
|
line-height: 16px;
|
|
43
38
|
font-weight: 400;
|
|
44
39
|
letter-spacing: 1.25px;
|
|
45
40
|
text-transform: uppercase;
|
|
46
|
-
font-family: var(--font-family-
|
|
41
|
+
font-family: var(--font-family-system);
|
|
47
42
|
}
|
|
48
|
-
.
|
|
43
|
+
.typography__caps_15zcn.typography__bold_15zcn {
|
|
49
44
|
font-weight: 700;
|
|
50
45
|
}
|
|
51
|
-
.
|
|
46
|
+
.typography__caps_15zcn.typography__medium_15zcn {
|
|
52
47
|
font-weight: 500;
|
|
53
48
|
}
|
|
54
|
-
.
|
|
49
|
+
.typography__tagline_15zcn {
|
|
55
50
|
font-size: 12px;
|
|
56
51
|
line-height: 16px;
|
|
57
52
|
font-weight: 400;
|
|
58
53
|
letter-spacing: 1.25px;
|
|
59
54
|
text-transform: uppercase;
|
|
60
|
-
font-family: var(--font-family-
|
|
55
|
+
font-family: var(--font-family-system);
|
|
61
56
|
}
|
|
62
|
-
.
|
|
57
|
+
.typography__tagline_15zcn.typography__bold_15zcn {
|
|
63
58
|
font-weight: 700;
|
|
64
59
|
}
|
|
65
|
-
.
|
|
60
|
+
.typography__tagline_15zcn.typography__medium_15zcn {
|
|
66
61
|
font-weight: 500;
|
|
67
62
|
}
|
|
68
|
-
.typography__primary-
|
|
63
|
+
.typography__primary-large_15zcn {
|
|
69
64
|
font-size: 18px;
|
|
70
65
|
line-height: 24px;
|
|
71
66
|
font-weight: 400;
|
|
72
|
-
|
|
73
|
-
font-family: var(--font-family-alfasans);
|
|
67
|
+
font-family: var(--font-family-system);
|
|
74
68
|
}
|
|
75
|
-
.typography__primary-
|
|
69
|
+
.typography__primary-large_15zcn.typography__bold_15zcn {
|
|
76
70
|
font-weight: 700;
|
|
77
|
-
letter-spacing: 0.38px;
|
|
78
71
|
}
|
|
79
|
-
.typography__primary-
|
|
72
|
+
.typography__primary-large_15zcn.typography__medium_15zcn {
|
|
80
73
|
font-weight: 500;
|
|
81
|
-
letter-spacing: -0.17px;
|
|
82
74
|
}
|
|
83
|
-
.typography__primary-
|
|
75
|
+
.typography__primary-medium_15zcn {
|
|
84
76
|
font-size: 16px;
|
|
85
77
|
line-height: 24px;
|
|
86
78
|
font-weight: 400;
|
|
87
|
-
|
|
88
|
-
font-family: var(--font-family-alfasans);
|
|
79
|
+
font-family: var(--font-family-system);
|
|
89
80
|
}
|
|
90
|
-
.typography__primary-
|
|
81
|
+
.typography__primary-medium_15zcn.typography__bold_15zcn {
|
|
91
82
|
font-weight: 700;
|
|
92
|
-
letter-spacing: 0.43px;
|
|
93
83
|
}
|
|
94
|
-
.typography__primary-
|
|
84
|
+
.typography__primary-medium_15zcn.typography__medium_15zcn {
|
|
95
85
|
font-weight: 500;
|
|
96
|
-
letter-spacing: -0.05px;
|
|
97
86
|
}
|
|
98
|
-
.typography__primary-
|
|
87
|
+
.typography__primary-small_15zcn {
|
|
99
88
|
font-size: 14px;
|
|
100
89
|
line-height: 20px;
|
|
101
90
|
font-weight: 400;
|
|
102
|
-
|
|
103
|
-
font-family: var(--font-family-alfasans);
|
|
91
|
+
font-family: var(--font-family-system);
|
|
104
92
|
}
|
|
105
|
-
.typography__primary-
|
|
93
|
+
.typography__primary-small_15zcn.typography__bold_15zcn {
|
|
106
94
|
font-weight: 700;
|
|
107
|
-
letter-spacing: 0.47px;
|
|
108
95
|
}
|
|
109
|
-
.typography__primary-
|
|
96
|
+
.typography__primary-small_15zcn.typography__medium_15zcn {
|
|
110
97
|
font-weight: 500;
|
|
111
|
-
letter-spacing: 0.07px;
|
|
112
98
|
}
|
|
113
|
-
.typography__component-
|
|
99
|
+
.typography__component-primary_15zcn {
|
|
114
100
|
font-size: 16px;
|
|
115
101
|
line-height: 20px;
|
|
116
102
|
font-weight: 400;
|
|
117
|
-
|
|
118
|
-
font-family: var(--font-family-alfasans);
|
|
103
|
+
font-family: var(--font-family-system);
|
|
119
104
|
}
|
|
120
|
-
.typography__component-
|
|
105
|
+
.typography__component-primary_15zcn.typography__bold_15zcn {
|
|
121
106
|
font-weight: 700;
|
|
122
|
-
letter-spacing: 0.43px;
|
|
123
107
|
}
|
|
124
|
-
.typography__component-
|
|
108
|
+
.typography__component-primary_15zcn.typography__medium_15zcn {
|
|
125
109
|
font-weight: 500;
|
|
126
|
-
letter-spacing: -0.05px;
|
|
127
110
|
}
|
|
128
|
-
.typography__secondary-
|
|
111
|
+
.typography__secondary-large_15zcn {
|
|
129
112
|
font-size: 13px;
|
|
130
113
|
line-height: 16px;
|
|
131
114
|
font-weight: 400;
|
|
132
|
-
font-family: var(--font-family-
|
|
115
|
+
font-family: var(--font-family-system);
|
|
133
116
|
}
|
|
134
|
-
.typography__secondary-
|
|
117
|
+
.typography__secondary-large_15zcn.typography__bold_15zcn {
|
|
135
118
|
font-weight: 700;
|
|
136
|
-
letter-spacing: 0.54px;
|
|
137
119
|
}
|
|
138
|
-
.typography__secondary-
|
|
120
|
+
.typography__secondary-large_15zcn.typography__medium_15zcn {
|
|
139
121
|
font-weight: 500;
|
|
140
|
-
letter-spacing: 0.13px;
|
|
141
122
|
}
|
|
142
|
-
.typography__secondary-
|
|
123
|
+
.typography__secondary-medium_15zcn {
|
|
143
124
|
font-size: 12px;
|
|
144
125
|
line-height: 16px;
|
|
145
126
|
font-weight: 400;
|
|
146
|
-
|
|
147
|
-
font-family: var(--font-family-alfasans);
|
|
127
|
+
font-family: var(--font-family-system);
|
|
148
128
|
}
|
|
149
|
-
.typography__secondary-
|
|
129
|
+
.typography__secondary-medium_15zcn.typography__bold_15zcn {
|
|
150
130
|
font-weight: 700;
|
|
151
|
-
letter-spacing: 0.57px;
|
|
152
131
|
}
|
|
153
|
-
.typography__secondary-
|
|
132
|
+
.typography__secondary-medium_15zcn.typography__medium_15zcn {
|
|
154
133
|
font-weight: 500;
|
|
155
|
-
letter-spacing: 0.19px;
|
|
156
134
|
}
|
|
157
|
-
.typography__secondary-
|
|
135
|
+
.typography__secondary-small_15zcn {
|
|
158
136
|
font-size: 11px;
|
|
159
137
|
line-height: 16px;
|
|
160
138
|
font-weight: 400;
|
|
161
|
-
|
|
162
|
-
font-family: var(--font-family-alfasans);
|
|
139
|
+
font-family: var(--font-family-system);
|
|
163
140
|
}
|
|
164
|
-
.typography__secondary-
|
|
141
|
+
.typography__secondary-small_15zcn.typography__bold_15zcn {
|
|
165
142
|
font-weight: 700;
|
|
166
|
-
letter-spacing: 0.54px;
|
|
167
143
|
}
|
|
168
|
-
.typography__secondary-
|
|
144
|
+
.typography__secondary-small_15zcn.typography__medium_15zcn {
|
|
169
145
|
font-weight: 500;
|
|
170
|
-
letter-spacing: 0.24px;
|
|
171
146
|
}
|
|
172
|
-
.typography__component-
|
|
147
|
+
.typography__component-secondary_15zcn {
|
|
173
148
|
font-size: 14px;
|
|
174
149
|
line-height: 18px;
|
|
175
150
|
font-weight: 400;
|
|
176
|
-
|
|
177
|
-
font-family: var(--font-family-alfasans);
|
|
151
|
+
font-family: var(--font-family-system);
|
|
178
152
|
}
|
|
179
|
-
.typography__component-
|
|
153
|
+
.typography__component-secondary_15zcn.typography__bold_15zcn {
|
|
180
154
|
font-weight: 700;
|
|
181
|
-
letter-spacing: 0.47px;
|
|
182
155
|
}
|
|
183
|
-
.typography__component-
|
|
156
|
+
.typography__component-secondary_15zcn.typography__medium_15zcn {
|
|
184
157
|
font-weight: 500;
|
|
185
|
-
letter-spacing: 0.07px;
|
|
186
158
|
}
|
|
187
|
-
.
|
|
159
|
+
.typography__rowLimit1_15zcn {
|
|
188
160
|
-webkit-line-clamp: 1;
|
|
189
161
|
display: -webkit-box;
|
|
190
162
|
-webkit-box-orient: vertical;
|
|
191
163
|
overflow: hidden;
|
|
192
164
|
word-break: break-all;
|
|
193
165
|
}
|
|
194
|
-
.
|
|
166
|
+
.typography__rowLimit2_15zcn {
|
|
195
167
|
-webkit-line-clamp: 2;
|
|
196
168
|
display: -webkit-box;
|
|
197
169
|
-webkit-box-orient: vertical;
|
|
198
170
|
overflow: hidden;
|
|
199
171
|
}
|
|
200
|
-
.
|
|
172
|
+
.typography__rowLimit3_15zcn {
|
|
201
173
|
-webkit-line-clamp: 3;
|
|
202
174
|
display: -webkit-box;
|
|
203
175
|
-webkit-box-orient: vertical;
|
|
204
176
|
overflow: hidden;
|
|
205
177
|
}
|
|
206
|
-
.
|
|
178
|
+
.typography__monospace_15zcn {
|
|
207
179
|
font-feature-settings: "tnum";
|
|
208
180
|
font-variant-numeric: tabular-nums;
|
|
209
181
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"transparent":"
|
|
3
|
+
var styles = {"transparent":"typography__transparent_15zcn","paragraph":"typography__paragraph_15zcn","paragraphWithMargins":"typography__paragraphWithMargins_15zcn","component":"typography__component_15zcn","bold":"typography__bold_15zcn","medium":"typography__medium_15zcn","caps":"typography__caps_15zcn","tagline":"typography__tagline_15zcn","primary-large":"typography__primary-large_15zcn","primary-medium":"typography__primary-medium_15zcn","primary-small":"typography__primary-small_15zcn","component-primary":"typography__component-primary_15zcn","secondary-large":"typography__secondary-large_15zcn","secondary-medium":"typography__secondary-medium_15zcn","secondary-small":"typography__secondary-small_15zcn","component-secondary":"typography__component-secondary_15zcn","rowLimit1":"typography__rowLimit1_15zcn","rowLimit2":"typography__rowLimit2_15zcn","rowLimit3":"typography__rowLimit3_15zcn","monospace":"typography__monospace_15zcn"};
|
|
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_gne53 {
|
|
5
5
|
opacity: 0;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.typography__component_gne53 {
|
|
8
8
|
margin: var(--gap-0);
|
|
9
9
|
padding: var(--gap-0);
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.typography__rowLimit1_gne53 {
|
|
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_gne53 {
|
|
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_gne53 {
|
|
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_gne53","component":"typography__component_gne53","rowLimit1":"typography__rowLimit1_gne53","rowLimit2":"typography__rowLimit2_gne53","rowLimit3":"typography__rowLimit3_gne53"};
|
|
4
4
|
|
|
5
5
|
export { commonStyles as default };
|
|
6
6
|
//# sourceMappingURL=common.module.css.js.map
|
package/esm/title/component.d.ts
CHANGED
|
@@ -22,7 +22,10 @@ export type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
22
22
|
/**
|
|
23
23
|
* Шрифт текста
|
|
24
24
|
*/
|
|
25
|
-
font?: 'styrene' | 'system'
|
|
25
|
+
font?: 'styrene' | 'system' | 'alfasans' | {
|
|
26
|
+
font: 'alfasans';
|
|
27
|
+
systemCompat: boolean;
|
|
28
|
+
};
|
|
26
29
|
/**
|
|
27
30
|
* Добавляет отступы
|
|
28
31
|
*/
|
|
@@ -83,7 +86,10 @@ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps
|
|
|
83
86
|
/**
|
|
84
87
|
* Шрифт текста
|
|
85
88
|
*/
|
|
86
|
-
font?: "styrene" | "system"
|
|
89
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
90
|
+
font: "alfasans";
|
|
91
|
+
systemCompat: boolean;
|
|
92
|
+
};
|
|
87
93
|
/**
|
|
88
94
|
* Добавляет отступы
|
|
89
95
|
*/
|
package/esm/title/component.js
CHANGED
|
@@ -2,14 +2,16 @@ 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';
|
|
5
6
|
import { useSkeleton } from '@alfalab/core-components-skeleton/esm';
|
|
7
|
+
import { getDefaultWeight } from './utils.js';
|
|
6
8
|
import colors from '../colors.module.css.js';
|
|
7
9
|
import commonStyles from './common.module.css.js';
|
|
8
10
|
|
|
9
11
|
var TitleBase = forwardRef(function (_a, ref) {
|
|
10
12
|
var _b;
|
|
11
|
-
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d
|
|
12
|
-
var
|
|
13
|
+
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 ? getDefaultWeight(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 = __rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
|
|
14
|
+
var _h = useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
|
|
13
15
|
var skeleton = renderSkeleton({
|
|
14
16
|
wrapperClassName: cn(defaultMargins && styles["margins-".concat(view)]),
|
|
15
17
|
dataTestId: dataTestId,
|
|
@@ -20,6 +22,7 @@ var TitleBase = forwardRef(function (_a, ref) {
|
|
|
20
22
|
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 = {},
|
|
21
23
|
_b[commonStyles["rowLimit".concat(rowLimit)]] = rowLimit,
|
|
22
24
|
_b[commonStyles.transparent] = showSkeleton,
|
|
25
|
+
_b[styles.font] = (isObject(font) && !font.systemCompat) || !(font === 'system'),
|
|
23
26
|
_b)), "data-test-id": dataTestId, ref: mergeRefs([ref, textRef]) }, restProps), children));
|
|
24
27
|
});
|
|
25
28
|
|