@alfalab/core-components-typography 3.1.0 → 3.2.0
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 +42 -28
- package/colors.d.ts +1 -1
- package/colors.js +7 -0
- package/colors.module-15de3c41.js +6 -0
- package/common.module-f948e7d5.js +6 -0
- package/component.js +3 -2
- package/cssm/colors.d.ts +1 -1
- package/cssm/colors.js +7 -0
- package/cssm/colors.module.css +41 -27
- package/cssm/component.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/text/component.js +3 -3
- package/cssm/text/index.js +1 -1
- package/cssm/text/index.module.css +26 -38
- package/cssm/title/component.d.ts +1 -1
- package/cssm/title/component.js +3 -3
- package/cssm/title/index.js +2 -2
- package/cssm/title/index.module.css +26 -40
- package/cssm/title-mobile/component.js +2 -2
- package/cssm/title-mobile/index.js +1 -1
- package/cssm/title-mobile/index.module.css +18 -22
- package/cssm/title-responsive/component.js +2 -2
- package/cssm/title-responsive/index.js +1 -1
- package/cssm/title-responsive/index.module.css +25 -39
- package/esm/colors.css +42 -28
- package/esm/colors.d.ts +1 -1
- package/esm/colors.js +7 -0
- package/esm/colors.module-308e84a9.js +4 -0
- package/esm/common.module-a19344da.js +4 -0
- package/esm/component.js +3 -2
- package/esm/index.js +3 -2
- package/esm/text/component.js +3 -2
- package/esm/text/index.css +27 -39
- package/esm/text/index.js +2 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +1 -1
- package/esm/title/component.js +2 -1
- package/esm/title/index.css +27 -41
- package/esm/title/index.js +4 -3
- package/esm/title-mobile/component.js +4 -3
- package/esm/title-mobile/index.css +19 -23
- package/esm/title-mobile/index.js +3 -2
- package/esm/title-responsive/component.js +4 -3
- package/esm/title-responsive/index.css +51 -65
- package/esm/title-responsive/index.js +3 -2
- package/index.js +3 -2
- package/modern/colors.css +42 -28
- package/modern/colors.d.ts +1 -1
- package/modern/colors.js +7 -0
- package/modern/colors.module-c327b974.js +4 -0
- package/modern/common.module-41281fe7.js +4 -0
- package/modern/component.js +2 -2
- package/modern/index.js +2 -2
- package/modern/text/component.js +2 -2
- package/modern/text/index.css +27 -39
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +1 -1
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +27 -41
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +19 -23
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +3 -3
- package/modern/title-responsive/index.css +51 -65
- package/modern/title-responsive/index.js +2 -2
- package/package.json +3 -2
- package/text/component.js +5 -4
- package/text/index.css +27 -39
- package/text/index.js +2 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +1 -1
- package/title/component.js +4 -3
- package/title/index.css +27 -41
- package/title/index.js +5 -4
- package/title-mobile/component.js +5 -4
- package/title-mobile/index.css +19 -23
- package/title-mobile/index.js +3 -2
- package/title-responsive/component.js +5 -4
- package/title-responsive/index.css +51 -65
- package/title-responsive/index.js +3 -2
- package/colors.module-bc993287.d.ts +0 -36
- package/colors.module-bc993287.js +0 -46
- package/common.module-0a9ad0fb.js +0 -6
- package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
- package/cssm/tslib.es6-bbd6cd2a.js +0 -42
- package/esm/colors.module-42065957.d.ts +0 -36
- package/esm/colors.module-42065957.js +0 -43
- package/esm/common.module-cc423fc9.js +0 -4
- package/modern/colors.module-cbb33ea7.js +0 -4
- package/modern/common.module-13ae7781.js +0 -4
|
@@ -1,71 +1,67 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
10
15
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
11
16
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
12
|
-
}
|
|
13
|
-
.styrene-xlarge {
|
|
17
|
+
} :root {
|
|
18
|
+
} .styrene-xlarge {
|
|
14
19
|
font-size: 34px;
|
|
15
20
|
line-height: 40px;
|
|
16
21
|
font-weight: 500;
|
|
17
22
|
font-feature-settings: 'ss01';
|
|
18
23
|
font-family: var(--font-family-styrene);
|
|
19
|
-
}
|
|
20
|
-
.styrene-large {
|
|
24
|
+
} .styrene-large {
|
|
21
25
|
font-size: 30px;
|
|
22
26
|
line-height: 36px;
|
|
23
27
|
font-weight: 500;
|
|
24
28
|
font-feature-settings: 'ss01';
|
|
25
29
|
font-family: var(--font-family-styrene);
|
|
26
|
-
}
|
|
27
|
-
.styrene-medium {
|
|
30
|
+
} .styrene-medium {
|
|
28
31
|
font-size: 26px;
|
|
29
32
|
line-height: 32px;
|
|
30
33
|
font-weight: 500;
|
|
31
34
|
font-feature-settings: 'ss01';
|
|
32
35
|
font-family: var(--font-family-styrene);
|
|
33
|
-
}
|
|
34
|
-
.styrene-small {
|
|
36
|
+
} .styrene-small {
|
|
35
37
|
font-size: 20px;
|
|
36
38
|
line-height: 28px;
|
|
37
39
|
font-weight: 500;
|
|
38
40
|
font-feature-settings: 'ss01';
|
|
39
41
|
font-family: var(--font-family-styrene);
|
|
40
|
-
}
|
|
41
|
-
.styrene-xsmall {
|
|
42
|
+
} .styrene-xsmall {
|
|
42
43
|
font-size: 16px;
|
|
43
44
|
line-height: 20px;
|
|
44
45
|
font-weight: 500;
|
|
45
46
|
font-feature-settings: 'ss01';
|
|
46
47
|
font-family: var(--font-family-styrene);
|
|
47
|
-
}
|
|
48
|
-
.system-xlarge {
|
|
48
|
+
} .system-xlarge {
|
|
49
49
|
font-size: 34px;
|
|
50
50
|
line-height: 40px;
|
|
51
51
|
font-weight: 600;
|
|
52
|
-
}
|
|
53
|
-
.system-large {
|
|
52
|
+
} .system-large {
|
|
54
53
|
font-size: 30px;
|
|
55
54
|
line-height: 36px;
|
|
56
55
|
font-weight: 600;
|
|
57
|
-
}
|
|
58
|
-
.system-medium {
|
|
56
|
+
} .system-medium {
|
|
59
57
|
font-size: 26px;
|
|
60
58
|
line-height: 32px;
|
|
61
59
|
font-weight: 600;
|
|
62
|
-
}
|
|
63
|
-
.system-small {
|
|
60
|
+
} .system-small {
|
|
64
61
|
font-size: 20px;
|
|
65
62
|
line-height: 28px;
|
|
66
63
|
font-weight: 600;
|
|
67
|
-
}
|
|
68
|
-
.system-xsmall {
|
|
64
|
+
} .system-xsmall {
|
|
69
65
|
font-size: 16px;
|
|
70
66
|
line-height: 20px;
|
|
71
67
|
font-weight: 600;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var title_component = require('../title/component.js');
|
|
6
6
|
var commonStyles = require('../title/common.module.css');
|
|
@@ -19,6 +19,6 @@ var TitleResponsive = function (props) { return (
|
|
|
19
19
|
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
20
20
|
* Видимо, это особенность работы jest и css-modules.
|
|
21
21
|
*/
|
|
22
|
-
React__default.default.createElement(title_component.Title,
|
|
22
|
+
React__default.default.createElement(title_component.Title, tslib.__assign({}, props, { styles: Object.assign(commonStyles__default.default, styles__default.default) }))); };
|
|
23
23
|
|
|
24
24
|
exports.TitleResponsive = TitleResponsive;
|
|
@@ -1,98 +1,85 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-m: 16px;
|
|
11
15
|
--gap-xl: 24px;
|
|
12
16
|
--gap-3xl: 40px;
|
|
13
17
|
--gap-4xl: 48px;
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
18
|
+
} :root {
|
|
16
19
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
17
20
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
18
|
-
}
|
|
19
|
-
/* TODO: поменять медиа-запросы на миксины */
|
|
20
|
-
.styrene-xlarge {
|
|
21
|
+
} :root {
|
|
22
|
+
} /* TODO: поменять медиа-запросы на миксины */ .styrene-xlarge {
|
|
21
23
|
font-size: 34px;
|
|
22
24
|
line-height: 40px;
|
|
23
25
|
font-weight: 500;
|
|
24
26
|
font-feature-settings: 'ss01';
|
|
25
27
|
font-family: var(--font-family-styrene);
|
|
26
|
-
}
|
|
27
|
-
.styrene-large {
|
|
28
|
+
} .styrene-large {
|
|
28
29
|
font-size: 30px;
|
|
29
30
|
line-height: 36px;
|
|
30
31
|
font-weight: 500;
|
|
31
32
|
font-feature-settings: 'ss01';
|
|
32
33
|
font-family: var(--font-family-styrene);
|
|
33
|
-
}
|
|
34
|
-
.styrene-medium {
|
|
34
|
+
} .styrene-medium {
|
|
35
35
|
font-size: 26px;
|
|
36
36
|
line-height: 32px;
|
|
37
37
|
font-weight: 500;
|
|
38
38
|
font-feature-settings: 'ss01';
|
|
39
39
|
font-family: var(--font-family-styrene);
|
|
40
|
-
}
|
|
41
|
-
.styrene-small {
|
|
40
|
+
} .styrene-small {
|
|
42
41
|
font-size: 20px;
|
|
43
42
|
line-height: 28px;
|
|
44
43
|
font-weight: 500;
|
|
45
44
|
font-feature-settings: 'ss01';
|
|
46
45
|
font-family: var(--font-family-styrene);
|
|
47
|
-
}
|
|
48
|
-
.styrene-xsmall {
|
|
46
|
+
} .styrene-xsmall {
|
|
49
47
|
font-size: 16px;
|
|
50
48
|
line-height: 20px;
|
|
51
49
|
font-weight: 500;
|
|
52
50
|
font-feature-settings: 'ss01';
|
|
53
51
|
font-family: var(--font-family-styrene);
|
|
54
|
-
}
|
|
55
|
-
.system-xlarge {
|
|
52
|
+
} .system-xlarge {
|
|
56
53
|
font-size: 30px;
|
|
57
54
|
line-height: 36px;
|
|
58
55
|
font-weight: 700;
|
|
59
|
-
}
|
|
60
|
-
.system-large {
|
|
56
|
+
} .system-large {
|
|
61
57
|
font-size: 22px;
|
|
62
58
|
line-height: 26px;
|
|
63
59
|
font-weight: 700;
|
|
64
|
-
}
|
|
65
|
-
.system-medium {
|
|
60
|
+
} .system-medium {
|
|
66
61
|
font-size: 18px;
|
|
67
62
|
line-height: 22px;
|
|
68
63
|
font-weight: 700;
|
|
69
|
-
}
|
|
70
|
-
.system-small {
|
|
64
|
+
} .system-small {
|
|
71
65
|
font-size: 18px;
|
|
72
66
|
line-height: 22px;
|
|
73
67
|
font-weight: 700;
|
|
74
|
-
}
|
|
75
|
-
.system-xsmall {
|
|
68
|
+
} .system-xsmall {
|
|
76
69
|
font-size: 18px;
|
|
77
70
|
line-height: 22px;
|
|
78
71
|
font-weight: 700;
|
|
79
|
-
}
|
|
80
|
-
.margins-xlarge {
|
|
72
|
+
} .margins-xlarge {
|
|
81
73
|
margin: 0 0 var(--gap-xl);
|
|
82
|
-
}
|
|
83
|
-
.margins-large {
|
|
74
|
+
} .margins-large {
|
|
84
75
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
85
|
-
}
|
|
86
|
-
.margins-medium {
|
|
76
|
+
} .margins-medium {
|
|
87
77
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
88
|
-
}
|
|
89
|
-
.margins-small {
|
|
78
|
+
} .margins-small {
|
|
90
79
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
91
|
-
}
|
|
92
|
-
.margins-xsmall {
|
|
80
|
+
} .margins-xsmall {
|
|
93
81
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
|
-
}
|
|
95
|
-
@media screen and (min-width: 600px) {
|
|
82
|
+
} @media screen and (min-width: 600px) {
|
|
96
83
|
.system-xlarge {
|
|
97
84
|
font-size: 40px;
|
|
98
85
|
line-height: 48px;
|
|
@@ -142,8 +129,7 @@
|
|
|
142
129
|
.margins-xsmall {
|
|
143
130
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
144
131
|
}
|
|
145
|
-
}
|
|
146
|
-
@media screen and (min-width: 1024px) {
|
|
132
|
+
} @media screen and (min-width: 1024px) {
|
|
147
133
|
.styrene-xlarge {
|
|
148
134
|
font-size: 48px;
|
|
149
135
|
line-height: 64px;
|
package/esm/colors.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1bc7p */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-text-accent: #ef3124;
|
|
4
5
|
--color-light-text-attention: #de6a00;
|
|
5
6
|
--color-light-text-disabled: rgba(11, 31, 53, 0.15);
|
|
@@ -12,49 +13,62 @@
|
|
|
12
13
|
--color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
|
|
13
14
|
--color-light-text-tertiary: rgba(11, 31, 53, 0.3);
|
|
14
15
|
--color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
|
|
15
|
-
|
|
16
|
-
:
|
|
16
|
+
--color-static-text-accent: #ef3124;
|
|
17
|
+
--color-static-text-primary-dark: #0b1f35;
|
|
18
|
+
--color-static-text-primary-light: #fff;
|
|
19
|
+
--color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
|
|
20
|
+
--color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
|
|
21
|
+
--color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
|
|
22
|
+
--color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
|
|
23
|
+
} :root {
|
|
24
|
+
} :root {
|
|
25
|
+
} :root {
|
|
17
26
|
|
|
18
27
|
/* Hard */
|
|
19
28
|
|
|
20
29
|
/* Up */
|
|
21
30
|
|
|
22
31
|
/* Hard up */
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
} :root {
|
|
33
|
+
} :root {
|
|
34
|
+
} :root {
|
|
35
|
+
} :root {
|
|
36
|
+
} /* colors */ .typography__tertiary_1m791 {
|
|
26
37
|
color: var(--color-light-text-tertiary);
|
|
27
|
-
}
|
|
28
|
-
.typography__disabled_5mg9e {
|
|
38
|
+
} .typography__disabled_1m791 {
|
|
29
39
|
color: var(--color-light-text-disabled);
|
|
30
|
-
}
|
|
31
|
-
.typography__accent_5mg9e {
|
|
40
|
+
} .typography__accent_1m791 {
|
|
32
41
|
color: var(--color-light-text-accent);
|
|
33
|
-
}
|
|
34
|
-
.typography__primary_5mg9e {
|
|
42
|
+
} .typography__primary_1m791 {
|
|
35
43
|
color: var(--color-light-text-primary);
|
|
36
|
-
}
|
|
37
|
-
.typography__attention_5mg9e {
|
|
44
|
+
} .typography__attention_1m791 {
|
|
38
45
|
color: var(--color-light-text-attention);
|
|
39
|
-
}
|
|
40
|
-
.typography__positive_5mg9e {
|
|
46
|
+
} .typography__positive_1m791 {
|
|
41
47
|
color: var(--color-light-text-positive);
|
|
42
|
-
}
|
|
43
|
-
.typography__secondary_5mg9e {
|
|
48
|
+
} .typography__secondary_1m791 {
|
|
44
49
|
color: var(--color-light-text-secondary);
|
|
45
|
-
}
|
|
46
|
-
.typography__tertiary-inverted_5mg9e {
|
|
50
|
+
} .typography__tertiary-inverted_1m791 {
|
|
47
51
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
|
-
}
|
|
49
|
-
.typography__primary-inverted_5mg9e {
|
|
52
|
+
} .typography__primary-inverted_1m791 {
|
|
50
53
|
color: var(--color-light-text-primary-inverted);
|
|
51
|
-
}
|
|
52
|
-
.typography__secondary-inverted_5mg9e {
|
|
54
|
+
} .typography__secondary-inverted_1m791 {
|
|
53
55
|
color: var(--color-light-text-secondary-inverted);
|
|
54
|
-
}
|
|
55
|
-
.typography__link_5mg9e {
|
|
56
|
+
} .typography__link_1m791 {
|
|
56
57
|
color: var(--color-light-text-link);
|
|
57
|
-
}
|
|
58
|
-
.typography__negative_5mg9e {
|
|
58
|
+
} .typography__negative_1m791 {
|
|
59
59
|
color: var(--color-light-text-negative);
|
|
60
|
+
} .typography__static-primary-light_1m791 {
|
|
61
|
+
color: var(--color-static-text-primary-light);
|
|
62
|
+
} .typography__static-secondary-light_1m791 {
|
|
63
|
+
color: var(--color-static-text-secondary-light);
|
|
64
|
+
} .typography__static-tertiary-light_1m791 {
|
|
65
|
+
color: var(--color-static-text-tertiary-light);
|
|
66
|
+
} .typography__static-primary-dark_1m791 {
|
|
67
|
+
color: var(--color-static-text-primary-dark);
|
|
68
|
+
} .typography__static-secondary-dark_1m791 {
|
|
69
|
+
color: var(--color-static-text-secondary-dark);
|
|
70
|
+
} .typography__static-tertiary-dark_1m791 {
|
|
71
|
+
color: var(--color-static-text-tertiary-dark);
|
|
72
|
+
} .typography__static-accent_1m791 {
|
|
73
|
+
color: var(--color-static-text-accent);
|
|
60
74
|
}
|
package/esm/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative"];
|
|
1
|
+
declare const colors: readonly ["tertiary", "disabled", "accent", "primary", "attention", "positive", "secondary", "tertiary-inverted", "primary-inverted", "secondary-inverted", "link", "negative", "static-primary-light", "static-secondary-light", "static-tertiary-light", "static-primary-dark", "static-secondary-dark", "static-tertiary-dark", "static-accent"];
|
|
2
2
|
type Color = typeof colors[number];
|
|
3
3
|
export { colors, Color };
|
package/esm/colors.js
CHANGED
|
@@ -11,6 +11,13 @@ var colors = [
|
|
|
11
11
|
'secondary-inverted',
|
|
12
12
|
'link',
|
|
13
13
|
'negative',
|
|
14
|
+
'static-primary-light',
|
|
15
|
+
'static-secondary-light',
|
|
16
|
+
'static-tertiary-light',
|
|
17
|
+
'static-primary-dark',
|
|
18
|
+
'static-secondary-dark',
|
|
19
|
+
'static-tertiary-dark',
|
|
20
|
+
'static-accent',
|
|
14
21
|
];
|
|
15
22
|
|
|
16
23
|
export { colors };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var colors = {"tertiary":"typography__tertiary_1m791","disabled":"typography__disabled_1m791","accent":"typography__accent_1m791","primary":"typography__primary_1m791","attention":"typography__attention_1m791","positive":"typography__positive_1m791","secondary":"typography__secondary_1m791","tertiary-inverted":"typography__tertiary-inverted_1m791","primary-inverted":"typography__primary-inverted_1m791","secondary-inverted":"typography__secondary-inverted_1m791","link":"typography__link_1m791","negative":"typography__negative_1m791","static-primary-light":"typography__static-primary-light_1m791","static-secondary-light":"typography__static-secondary-light_1m791","static-tertiary-light":"typography__static-tertiary-light_1m791","static-primary-dark":"typography__static-primary-dark_1m791","static-secondary-dark":"typography__static-secondary-dark_1m791","static-tertiary-dark":"typography__static-tertiary-dark_1m791","static-accent":"typography__static-accent_1m791"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|
package/esm/component.js
CHANGED
|
@@ -2,11 +2,12 @@ import { Text } from './text/component.js';
|
|
|
2
2
|
import { Title } from './title/index.js';
|
|
3
3
|
import { TitleMobile } from './title-mobile/component.js';
|
|
4
4
|
import { TitleResponsive } from './title-responsive/component.js';
|
|
5
|
-
import '
|
|
5
|
+
import 'tslib';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'classnames';
|
|
8
|
+
import './colors.module-308e84a9.js';
|
|
8
9
|
import './title/component.js';
|
|
9
|
-
import './common.module-
|
|
10
|
+
import './common.module-a19344da.js';
|
|
10
11
|
|
|
11
12
|
var Typography = {
|
|
12
13
|
Title: Title,
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { Typography } from './component.js';
|
|
2
2
|
export { typographyPresets } from './presets.js';
|
|
3
3
|
import './text/component.js';
|
|
4
|
-
import '
|
|
4
|
+
import 'tslib';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'classnames';
|
|
7
|
+
import './colors.module-308e84a9.js';
|
|
7
8
|
import './title/index.js';
|
|
8
9
|
import './title/component.js';
|
|
9
|
-
import './common.module-
|
|
10
|
+
import './common.module-a19344da.js';
|
|
10
11
|
import './title-mobile/component.js';
|
|
11
12
|
import './title-responsive/component.js';
|
package/esm/text/component.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { c as colors } from '../colors.module-308e84a9.js';
|
|
4
5
|
|
|
5
|
-
var styles = {"paragraph":"
|
|
6
|
+
var styles = {"paragraph":"typography__paragraph_vffdo","paragraphWithMargins":"typography__paragraphWithMargins_vffdo","primary-large":"typography__primary-large_vffdo","primary-medium":"typography__primary-medium_vffdo","primary-small":"typography__primary-small_vffdo","secondary-large":"typography__secondary-large_vffdo","secondary-medium":"typography__secondary-medium_vffdo","secondary-small":"typography__secondary-small_vffdo","component":"typography__component_vffdo","caps":"typography__caps_vffdo","bold":"typography__bold_vffdo","medium":"typography__medium_vffdo","regular":"typography__regular_vffdo","monospace":"typography__monospace_vffdo","rowLimit1":"typography__rowLimit1_vffdo","rowLimit2":"typography__rowLimit2_vffdo","rowLimit3":"typography__rowLimit3_vffdo"};
|
|
6
7
|
require('./index.css')
|
|
7
8
|
|
|
8
9
|
var Text = forwardRef(function (_a, ref) {
|
package/esm/text/index.css
CHANGED
|
@@ -1,95 +1,83 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1889g */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
11
15
|
--gap-s: 12px;
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
|
-
}
|
|
16
|
-
.typography__paragraph_9xfoj {
|
|
20
|
+
} .typography__paragraph_vffdo {
|
|
17
21
|
margin: 0;
|
|
18
22
|
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
.typography__paragraphWithMargins_9xfoj {
|
|
23
|
+
} .typography__paragraphWithMargins_vffdo {
|
|
21
24
|
padding: 0;
|
|
22
25
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
|
-
}
|
|
24
|
-
.typography__primary-large_9xfoj {
|
|
26
|
+
} .typography__primary-large_vffdo {
|
|
25
27
|
font-size: 18px;
|
|
26
28
|
line-height: 24px;
|
|
27
29
|
font-weight: 400;
|
|
28
|
-
}
|
|
29
|
-
.typography__primary-medium_9xfoj {
|
|
30
|
+
} .typography__primary-medium_vffdo {
|
|
30
31
|
font-size: 16px;
|
|
31
32
|
line-height: 24px;
|
|
32
33
|
font-weight: 400;
|
|
33
|
-
}
|
|
34
|
-
.typography__primary-small_9xfoj {
|
|
34
|
+
} .typography__primary-small_vffdo {
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
37
|
font-weight: 400;
|
|
38
|
-
}
|
|
39
|
-
.typography__secondary-large_9xfoj {
|
|
38
|
+
} .typography__secondary-large_vffdo {
|
|
40
39
|
font-size: 13px;
|
|
41
40
|
line-height: 16px;
|
|
42
41
|
font-weight: 400;
|
|
43
|
-
}
|
|
44
|
-
.typography__secondary-medium_9xfoj {
|
|
42
|
+
} .typography__secondary-medium_vffdo {
|
|
45
43
|
font-size: 12px;
|
|
46
44
|
line-height: 16px;
|
|
47
45
|
font-weight: 400;
|
|
48
|
-
}
|
|
49
|
-
.typography__secondary-small_9xfoj {
|
|
46
|
+
} .typography__secondary-small_vffdo {
|
|
50
47
|
font-size: 11px;
|
|
51
48
|
line-height: 16px;
|
|
52
49
|
font-weight: 400;
|
|
53
|
-
}
|
|
54
|
-
.typography__component_9xfoj {
|
|
50
|
+
} .typography__component_vffdo {
|
|
55
51
|
font-size: 16px;
|
|
56
52
|
line-height: 20px;
|
|
57
53
|
font-weight: 400;
|
|
58
|
-
}
|
|
59
|
-
.typography__caps_9xfoj {
|
|
54
|
+
} .typography__caps_vffdo {
|
|
60
55
|
font-size: 12px;
|
|
61
56
|
line-height: 16px;
|
|
62
57
|
font-weight: 500;
|
|
63
58
|
letter-spacing: 1.25px;
|
|
64
59
|
text-transform: uppercase;
|
|
65
|
-
}
|
|
66
|
-
.typography__bold_9xfoj {
|
|
60
|
+
} .typography__bold_vffdo {
|
|
67
61
|
font-weight: bold;
|
|
68
|
-
}
|
|
69
|
-
.typography__medium_9xfoj {
|
|
62
|
+
} .typography__medium_vffdo {
|
|
70
63
|
font-weight: 500;
|
|
71
|
-
}
|
|
72
|
-
.typography__regular_9xfoj {
|
|
64
|
+
} .typography__regular_vffdo {
|
|
73
65
|
font-weight: normal;
|
|
74
|
-
}
|
|
75
|
-
.typography__monospace_9xfoj {
|
|
66
|
+
} .typography__monospace_vffdo {
|
|
76
67
|
font-feature-settings: "tnum";
|
|
77
68
|
font-variant-numeric: tabular-nums;
|
|
78
|
-
}
|
|
79
|
-
.typography__rowLimit1_9xfoj {
|
|
69
|
+
} .typography__rowLimit1_vffdo {
|
|
80
70
|
-webkit-line-clamp: 1;
|
|
81
71
|
display: -webkit-box;
|
|
82
72
|
-webkit-box-orient: vertical;
|
|
83
73
|
overflow: hidden;
|
|
84
74
|
word-break: break-all;
|
|
85
|
-
}
|
|
86
|
-
.typography__rowLimit2_9xfoj {
|
|
75
|
+
} .typography__rowLimit2_vffdo {
|
|
87
76
|
-webkit-line-clamp: 2;
|
|
88
77
|
display: -webkit-box;
|
|
89
78
|
-webkit-box-orient: vertical;
|
|
90
79
|
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
.typography__rowLimit3_9xfoj {
|
|
80
|
+
} .typography__rowLimit3_vffdo {
|
|
93
81
|
-webkit-line-clamp: 3;
|
|
94
82
|
display: -webkit-box;
|
|
95
83
|
-webkit-box-orient: vertical;
|
package/esm/text/index.js
CHANGED
package/esm/title/common.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 15rx7 */
|
|
2
|
+
.typography__component_a3ydv {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
.typography__component_a3ydv.typography__bold_a3ydv {
|
|
7
7
|
font-weight: bold;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.typography__component_a3ydv.typography__medium_a3ydv {
|
|
10
10
|
font-weight: 500;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.typography__component_a3ydv.typography__regular_a3ydv {
|
|
13
13
|
font-weight: normal;
|
|
14
14
|
}
|
package/esm/title/component.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
|
|
|
63
63
|
/**
|
|
64
64
|
* Цвет текста
|
|
65
65
|
*/
|
|
66
|
-
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
66
|
+
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* Толщина шрифта
|
|
69
69
|
*/
|
package/esm/title/component.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { c as colors } from '../colors.module-308e84a9.js';
|
|
4
5
|
|
|
5
6
|
var Title = forwardRef(function (_a, ref) {
|
|
6
7
|
var _b;
|