@alfalab/core-components-typography 2.2.0 → 2.4.1
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/CHANGELOG.md +34 -0
- package/dist/colors.css +13 -13
- package/dist/{colors.module-7d312c25.d.ts → colors.module-45b4d802.d.ts} +0 -0
- package/dist/{colors.module-7d312c25.js → colors.module-45b4d802.js} +1 -1
- package/dist/common.module-adb3fff7.js +6 -0
- package/dist/component.d.ts +2 -0
- package/dist/component.js +4 -2
- package/dist/cssm/component.d.ts +2 -0
- package/dist/cssm/component.js +3 -0
- package/dist/cssm/index.d.ts +2 -0
- package/dist/cssm/index.js +2 -0
- package/dist/cssm/title-mobile/component.d.ts +5 -0
- package/dist/cssm/title-mobile/component.js +27 -0
- package/dist/cssm/title-mobile/index.d.ts +1 -0
- package/dist/cssm/title-mobile/index.js +16 -0
- package/dist/cssm/title-mobile/index.module.css +81 -0
- package/dist/cssm/title-responsive/index.module.css +7 -47
- package/dist/esm/colors.css +13 -13
- package/dist/esm/{colors.module-c988507f.d.ts → colors.module-75191c3e.d.ts} +0 -0
- package/dist/esm/{colors.module-c988507f.js → colors.module-75191c3e.js} +1 -1
- package/dist/esm/common.module-21808f5a.js +4 -0
- package/dist/esm/component.d.ts +2 -0
- package/dist/esm/component.js +4 -2
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/text/component.js +2 -2
- package/dist/esm/text/index.css +14 -14
- package/dist/esm/text/index.js +1 -1
- package/dist/esm/title/common.css +5 -5
- package/dist/esm/title/component.js +1 -1
- package/dist/esm/title/index.css +19 -19
- package/dist/esm/title/index.js +3 -3
- package/dist/esm/title-mobile/component.d.ts +5 -0
- package/dist/esm/title-mobile/component.js +18 -0
- package/dist/esm/title-mobile/index.css +82 -0
- package/dist/esm/title-mobile/index.d.ts +1 -0
- package/dist/esm/title-mobile/index.js +6 -0
- package/dist/esm/title-responsive/component.js +3 -3
- package/dist/esm/title-responsive/index.css +48 -88
- package/dist/esm/title-responsive/index.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/modern/colors.css +13 -13
- package/dist/modern/colors.module-fc3a89e7.js +4 -0
- package/dist/modern/common.module-21808f5a.js +4 -0
- package/dist/modern/component.d.ts +2 -0
- package/dist/modern/component.js +4 -2
- package/dist/modern/index.d.ts +2 -0
- package/dist/modern/index.js +3 -2
- package/dist/modern/text/component.js +2 -2
- package/dist/modern/text/index.css +14 -14
- package/dist/modern/text/index.js +1 -1
- package/dist/modern/title/common.css +5 -5
- package/dist/modern/title/component.js +1 -1
- package/dist/modern/title/index.css +19 -19
- package/dist/modern/title/index.js +3 -3
- package/dist/modern/title-mobile/component.d.ts +5 -0
- package/dist/modern/title-mobile/component.js +18 -0
- package/dist/modern/title-mobile/index.css +82 -0
- package/dist/modern/title-mobile/index.d.ts +1 -0
- package/dist/modern/title-mobile/index.js +6 -0
- package/dist/modern/title-responsive/component.js +3 -3
- package/dist/modern/title-responsive/index.css +48 -88
- package/dist/modern/title-responsive/index.js +2 -2
- package/dist/text/component.js +2 -2
- package/dist/text/index.css +14 -14
- package/dist/text/index.js +1 -1
- package/dist/title/common.css +5 -5
- package/dist/title/component.js +1 -1
- package/dist/title/index.css +19 -19
- package/dist/title/index.js +3 -3
- package/dist/title-mobile/component.d.ts +5 -0
- package/dist/title-mobile/component.js +26 -0
- package/dist/title-mobile/index.css +82 -0
- package/dist/title-mobile/index.d.ts +1 -0
- package/dist/title-mobile/index.js +14 -0
- package/dist/title-responsive/component.js +3 -3
- package/dist/title-responsive/index.css +48 -88
- package/dist/title-responsive/index.js +2 -2
- package/package.json +2 -2
- package/dist/common.module-c6130e05.js +0 -6
- package/dist/esm/common.module-15dfca9d.js +0 -4
- package/dist/modern/colors.module-3f74b55a.js +0 -4
- package/dist/modern/common.module-15dfca9d.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.4.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.4.0...@alfalab/core-components-typography@2.4.1) (2022-03-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **typography:** changed styrene font styles for title responsive ([#1017](https://github.com/alfa-laboratory/core-components/issues/1017)) ([540b0b5](https://github.com/alfa-laboratory/core-components/commit/540b0b59cf99a4cee0798f50b94e6449be4aa3c6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.4.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.3.0...@alfalab/core-components-typography@2.4.0) (2022-03-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/alfa-laboratory/core-components/issues/1003)) ([9b03cf9](https://github.com/alfa-laboratory/core-components/commit/9b03cf90422b05cc927ed98959708430812d1a50))
|
|
23
|
+
* Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# [2.3.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.2.0...@alfalab/core-components-typography@2.3.0) (2022-01-17)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **typography:** export types ([#940](https://github.com/alfa-laboratory/core-components/issues/940)) ([498227c](https://github.com/alfa-laboratory/core-components/commit/498227c272659a1ebf890eee61c6fecdd110faee))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
6
40
|
# [2.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.1.0...@alfalab/core-components-typography@2.2.0) (2021-09-14)
|
|
7
41
|
|
|
8
42
|
|
package/dist/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gwiym */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-accent: #ef3124;
|
|
4
4
|
--color-light-text-attention: #de6a00;
|
|
@@ -22,39 +22,39 @@
|
|
|
22
22
|
/* Hard up */
|
|
23
23
|
}
|
|
24
24
|
/* colors */
|
|
25
|
-
.
|
|
25
|
+
.typography__tertiary_1i58d {
|
|
26
26
|
color: var(--color-light-text-tertiary);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.typography__disabled_1i58d {
|
|
29
29
|
color: var(--color-light-text-disabled);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__accent_1i58d {
|
|
32
32
|
color: var(--color-light-text-accent);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.typography__primary_1i58d {
|
|
35
35
|
color: var(--color-light-text-primary);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.typography__attention_1i58d {
|
|
38
38
|
color: var(--color-light-text-attention);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.typography__positive_1i58d {
|
|
41
41
|
color: var(--color-light-text-positive);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.typography__secondary_1i58d {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.typography__tertiary-
|
|
46
|
+
.typography__tertiary-inverted_1i58d {
|
|
47
47
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
48
|
}
|
|
49
|
-
.typography__primary-
|
|
49
|
+
.typography__primary-inverted_1i58d {
|
|
50
50
|
color: var(--color-light-text-primary-inverted);
|
|
51
51
|
}
|
|
52
|
-
.typography__secondary-
|
|
52
|
+
.typography__secondary-inverted_1i58d {
|
|
53
53
|
color: var(--color-light-text-secondary-inverted);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__link_1i58d {
|
|
56
56
|
color: var(--color-light-text-link);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.typography__negative_1i58d {
|
|
59
59
|
color: var(--color-light-text-negative);
|
|
60
60
|
}
|
|
File without changes
|
|
@@ -39,7 +39,7 @@ function __rest(s, e) {
|
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
var colors = {"tertiary":"
|
|
42
|
+
var colors = {"tertiary":"typography__tertiary_1i58d","disabled":"typography__disabled_1i58d","accent":"typography__accent_1i58d","primary":"typography__primary_1i58d","attention":"typography__attention_1i58d","positive":"typography__positive_1i58d","secondary":"typography__secondary_1i58d","tertiary-inverted":"typography__tertiary-inverted_1i58d","primary-inverted":"typography__primary-inverted_1i58d","secondary-inverted":"typography__secondary-inverted_1i58d","link":"typography__link_1i58d","negative":"typography__negative_1i58d"};
|
|
43
43
|
require('./colors.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
package/dist/component.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { TitleProps } from "./title/index";
|
|
3
3
|
import { TextProps } from "./text/index";
|
|
4
|
+
import { TitleMobileProps } from "./title-mobile/index";
|
|
4
5
|
declare const Typography: {
|
|
5
6
|
Title: FC<TitleProps>;
|
|
6
7
|
Text: FC<TextProps>;
|
|
7
8
|
TitleResponsive: FC<TitleProps>;
|
|
9
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
8
10
|
};
|
|
9
11
|
export { Typography };
|
package/dist/component.js
CHANGED
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./colors.module-
|
|
5
|
+
require('./colors.module-45b4d802.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('./title/component.js');
|
|
9
|
-
require('./common.module-
|
|
9
|
+
require('./common.module-adb3fff7.js');
|
|
10
10
|
var title_index = require('./title/index.js');
|
|
11
11
|
var text_component = require('./text/component.js');
|
|
12
12
|
var titleResponsive_component = require('./title-responsive/component.js');
|
|
13
|
+
var titleMobile_component = require('./title-mobile/component.js');
|
|
13
14
|
|
|
14
15
|
var Typography = {
|
|
15
16
|
Title: title_index.Title,
|
|
16
17
|
Text: text_component.Text,
|
|
17
18
|
TitleResponsive: titleResponsive_component.TitleResponsive,
|
|
19
|
+
TitleMobile: titleMobile_component.TitleMobile,
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
exports.Typography = Typography;
|
package/dist/cssm/component.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { TitleProps } from "./title/index";
|
|
3
3
|
import { TextProps } from "./text/index";
|
|
4
|
+
import { TitleMobileProps } from "./title-mobile/index";
|
|
4
5
|
declare const Typography: {
|
|
5
6
|
Title: FC<TitleProps>;
|
|
6
7
|
Text: FC<TextProps>;
|
|
7
8
|
TitleResponsive: FC<TitleProps>;
|
|
9
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
8
10
|
};
|
|
9
11
|
export { Typography };
|
package/dist/cssm/component.js
CHANGED
|
@@ -14,11 +14,14 @@ require('./text/index.module.css');
|
|
|
14
14
|
var text_component = require('./text/component.js');
|
|
15
15
|
require('./title-responsive/index.module.css');
|
|
16
16
|
var titleResponsive_component = require('./title-responsive/component.js');
|
|
17
|
+
require('./title-mobile/index.module.css');
|
|
18
|
+
var titleMobile_component = require('./title-mobile/component.js');
|
|
17
19
|
|
|
18
20
|
var Typography = {
|
|
19
21
|
Title: title_index.Title,
|
|
20
22
|
Text: text_component.Text,
|
|
21
23
|
TitleResponsive: titleResponsive_component.TitleResponsive,
|
|
24
|
+
TitleMobile: titleMobile_component.TitleMobile,
|
|
22
25
|
};
|
|
23
26
|
|
|
24
27
|
exports.Typography = Typography;
|
package/dist/cssm/index.d.ts
CHANGED
package/dist/cssm/index.js
CHANGED
|
@@ -14,6 +14,8 @@ require('./text/index.module.css');
|
|
|
14
14
|
require('./text/component.js');
|
|
15
15
|
require('./title-responsive/index.module.css');
|
|
16
16
|
require('./title-responsive/component.js');
|
|
17
|
+
require('./title-mobile/index.module.css');
|
|
18
|
+
require('./title-mobile/component.js');
|
|
17
19
|
var component = require('./component.js');
|
|
18
20
|
|
|
19
21
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../colors.module.css');
|
|
9
|
+
var title_component = require('../title/component.js');
|
|
10
|
+
var commonStyles = require('../title/common.module.css');
|
|
11
|
+
var styles = require('./index.module.css');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
+
var commonStyles__default = /*#__PURE__*/_interopDefaultLegacy(commonStyles);
|
|
17
|
+
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
18
|
+
|
|
19
|
+
var TitleMobile = function (props) {
|
|
20
|
+
/**
|
|
21
|
+
* Если поменять Object.assign на деструктуризацию, то упадут тесты.
|
|
22
|
+
* Видимо, это особенность работы jest и css-modules.
|
|
23
|
+
*/
|
|
24
|
+
return React__default['default'].createElement(title_component.Title, tslib_es6.__assign({}, props, { styles: Object.assign(commonStyles__default['default'], styles__default['default']) }));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.TitleMobile = TitleMobile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../tslib.es6-ce870b46.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('../colors.module.css');
|
|
9
|
+
require('../title/component.js');
|
|
10
|
+
require('../title/common.module.css');
|
|
11
|
+
require('./index.module.css');
|
|
12
|
+
var titleMobile_component = require('./component.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.TitleMobile = titleMobile_component.TitleMobile;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
|
|
3
|
+
/* Hard */
|
|
4
|
+
|
|
5
|
+
/* Up */
|
|
6
|
+
|
|
7
|
+
/* Hard up */
|
|
8
|
+
}
|
|
9
|
+
:root {
|
|
10
|
+
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
11
|
+
'Helvetica Neue', Helvetica, sans-serif;
|
|
12
|
+
}
|
|
13
|
+
.styrene-xlarge {
|
|
14
|
+
font-size: 34px;
|
|
15
|
+
line-height: 40px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
font-feature-settings: 'ss01';
|
|
18
|
+
font-family: var(--font-family-styrene);
|
|
19
|
+
}
|
|
20
|
+
.styrene-large {
|
|
21
|
+
font-size: 30px;
|
|
22
|
+
line-height: 36px;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
font-feature-settings: 'ss01';
|
|
25
|
+
font-family: var(--font-family-styrene);
|
|
26
|
+
}
|
|
27
|
+
.styrene-medium {
|
|
28
|
+
font-size: 26px;
|
|
29
|
+
line-height: 32px;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
font-feature-settings: 'ss01';
|
|
32
|
+
font-family: var(--font-family-styrene);
|
|
33
|
+
}
|
|
34
|
+
.styrene-small {
|
|
35
|
+
font-size: 20px;
|
|
36
|
+
line-height: 28px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
font-feature-settings: 'ss01';
|
|
39
|
+
font-family: var(--font-family-styrene);
|
|
40
|
+
}
|
|
41
|
+
.styrene-xsmall {
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
line-height: 24px;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
font-feature-settings: 'ss01';
|
|
46
|
+
font-family: var(--font-family-styrene);
|
|
47
|
+
}
|
|
48
|
+
.system-xlarge {
|
|
49
|
+
font-size: 34px;
|
|
50
|
+
line-height: 40px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
.system-large {
|
|
54
|
+
font-size: 30px;
|
|
55
|
+
line-height: 36px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
}
|
|
58
|
+
.system-medium {
|
|
59
|
+
font-size: 26px;
|
|
60
|
+
line-height: 32px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
}
|
|
63
|
+
.system-small {
|
|
64
|
+
font-size: 20px;
|
|
65
|
+
line-height: 28px;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
}
|
|
68
|
+
.system-xsmall {
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
line-height: 24px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
}
|
|
73
|
+
.bold {
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
}
|
|
76
|
+
.medium {
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
}
|
|
79
|
+
.regular {
|
|
80
|
+
font-weight: normal;
|
|
81
|
+
}
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
}
|
|
19
19
|
/* TODO: поменять медиа-запросы на миксины */
|
|
20
20
|
.styrene-xlarge {
|
|
21
|
-
font-size:
|
|
21
|
+
font-size: 34px;
|
|
22
22
|
line-height: 40px;
|
|
23
23
|
font-weight: 500;
|
|
24
24
|
font-feature-settings: 'ss01';
|
|
25
25
|
font-family: var(--font-family-styrene);
|
|
26
26
|
}
|
|
27
27
|
.styrene-large {
|
|
28
|
-
font-size:
|
|
29
|
-
line-height:
|
|
28
|
+
font-size: 30px;
|
|
29
|
+
line-height: 36px;
|
|
30
30
|
font-weight: 500;
|
|
31
31
|
font-feature-settings: 'ss01';
|
|
32
32
|
font-family: var(--font-family-styrene);
|
|
33
33
|
}
|
|
34
34
|
.styrene-medium {
|
|
35
|
-
font-size:
|
|
36
|
-
line-height:
|
|
35
|
+
font-size: 26px;
|
|
36
|
+
line-height: 32px;
|
|
37
37
|
font-weight: 500;
|
|
38
38
|
font-feature-settings: 'ss01';
|
|
39
39
|
font-family: var(--font-family-styrene);
|
|
40
40
|
}
|
|
41
41
|
.styrene-small {
|
|
42
42
|
font-size: 20px;
|
|
43
|
-
line-height:
|
|
43
|
+
line-height: 28px;
|
|
44
44
|
font-weight: 500;
|
|
45
45
|
font-feature-settings: 'ss01';
|
|
46
46
|
font-family: var(--font-family-styrene);
|
|
47
47
|
}
|
|
48
48
|
.styrene-xsmall {
|
|
49
|
-
font-size:
|
|
49
|
+
font-size: 16px;
|
|
50
50
|
line-height: 24px;
|
|
51
51
|
font-weight: 500;
|
|
52
52
|
font-feature-settings: 'ss01';
|
|
@@ -93,46 +93,6 @@
|
|
|
93
93
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
94
94
|
}
|
|
95
95
|
@media screen and (min-width: 600px) {
|
|
96
|
-
.styrene-xlarge {
|
|
97
|
-
font-size: 40px;
|
|
98
|
-
line-height: 48px;
|
|
99
|
-
font-weight: 500;
|
|
100
|
-
font-feature-settings: 'ss01';
|
|
101
|
-
font-family: var(--font-family-styrene);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.styrene-large {
|
|
105
|
-
font-size: 32px;
|
|
106
|
-
line-height: 40px;
|
|
107
|
-
font-weight: 500;
|
|
108
|
-
font-feature-settings: 'ss01';
|
|
109
|
-
font-family: var(--font-family-styrene);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.styrene-medium {
|
|
113
|
-
font-size: 24px;
|
|
114
|
-
line-height: 32px;
|
|
115
|
-
font-weight: 500;
|
|
116
|
-
font-feature-settings: 'ss01';
|
|
117
|
-
font-family: var(--font-family-styrene);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.styrene-small {
|
|
121
|
-
font-size: 24px;
|
|
122
|
-
line-height: 32px;
|
|
123
|
-
font-weight: 500;
|
|
124
|
-
font-feature-settings: 'ss01';
|
|
125
|
-
font-family: var(--font-family-styrene);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.styrene-xsmall {
|
|
129
|
-
font-size: 20px;
|
|
130
|
-
line-height: 24px;
|
|
131
|
-
font-weight: 500;
|
|
132
|
-
font-feature-settings: 'ss01';
|
|
133
|
-
font-family: var(--font-family-styrene);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
96
|
.system-xlarge {
|
|
137
97
|
font-size: 40px;
|
|
138
98
|
line-height: 48px;
|
package/dist/esm/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gwiym */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-accent: #ef3124;
|
|
4
4
|
--color-light-text-attention: #de6a00;
|
|
@@ -22,39 +22,39 @@
|
|
|
22
22
|
/* Hard up */
|
|
23
23
|
}
|
|
24
24
|
/* colors */
|
|
25
|
-
.
|
|
25
|
+
.typography__tertiary_1i58d {
|
|
26
26
|
color: var(--color-light-text-tertiary);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.typography__disabled_1i58d {
|
|
29
29
|
color: var(--color-light-text-disabled);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__accent_1i58d {
|
|
32
32
|
color: var(--color-light-text-accent);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.typography__primary_1i58d {
|
|
35
35
|
color: var(--color-light-text-primary);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.typography__attention_1i58d {
|
|
38
38
|
color: var(--color-light-text-attention);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.typography__positive_1i58d {
|
|
41
41
|
color: var(--color-light-text-positive);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.typography__secondary_1i58d {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.typography__tertiary-
|
|
46
|
+
.typography__tertiary-inverted_1i58d {
|
|
47
47
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
48
|
}
|
|
49
|
-
.typography__primary-
|
|
49
|
+
.typography__primary-inverted_1i58d {
|
|
50
50
|
color: var(--color-light-text-primary-inverted);
|
|
51
51
|
}
|
|
52
|
-
.typography__secondary-
|
|
52
|
+
.typography__secondary-inverted_1i58d {
|
|
53
53
|
color: var(--color-light-text-secondary-inverted);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__link_1i58d {
|
|
56
56
|
color: var(--color-light-text-link);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.typography__negative_1i58d {
|
|
59
59
|
color: var(--color-light-text-negative);
|
|
60
60
|
}
|
|
File without changes
|
|
@@ -37,7 +37,7 @@ function __rest(s, e) {
|
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var colors = {"tertiary":"
|
|
40
|
+
var colors = {"tertiary":"typography__tertiary_1i58d","disabled":"typography__disabled_1i58d","accent":"typography__accent_1i58d","primary":"typography__primary_1i58d","attention":"typography__attention_1i58d","positive":"typography__positive_1i58d","secondary":"typography__secondary_1i58d","tertiary-inverted":"typography__tertiary-inverted_1i58d","primary-inverted":"typography__primary-inverted_1i58d","secondary-inverted":"typography__secondary-inverted_1i58d","link":"typography__link_1i58d","negative":"typography__negative_1i58d"};
|
|
41
41
|
require('./colors.css')
|
|
42
42
|
|
|
43
43
|
export { __assign as _, __rest as a, colors as c };
|
package/dist/esm/component.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { TitleProps } from "./title/index";
|
|
3
3
|
import { TextProps } from "./text/index";
|
|
4
|
+
import { TitleMobileProps } from "./title-mobile/index";
|
|
4
5
|
declare const Typography: {
|
|
5
6
|
Title: FC<TitleProps>;
|
|
6
7
|
Text: FC<TextProps>;
|
|
7
8
|
TitleResponsive: FC<TitleProps>;
|
|
9
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
8
10
|
};
|
|
9
11
|
export { Typography };
|
package/dist/esm/component.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import './colors.module-
|
|
1
|
+
import './colors.module-75191c3e.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
5
|
+
import './common.module-21808f5a.js';
|
|
6
6
|
import { Title } from './title/index.js';
|
|
7
7
|
import { Text } from './text/component.js';
|
|
8
8
|
import { TitleResponsive } from './title-responsive/component.js';
|
|
9
|
+
import { TitleMobile } from './title-mobile/component.js';
|
|
9
10
|
|
|
10
11
|
var Typography = {
|
|
11
12
|
Title: Title,
|
|
12
13
|
Text: Text,
|
|
13
14
|
TitleResponsive: TitleResponsive,
|
|
15
|
+
TitleMobile: TitleMobile,
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
export { Typography };
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import './colors.module-
|
|
1
|
+
import './colors.module-75191c3e.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
5
|
+
import './common.module-21808f5a.js';
|
|
6
6
|
import './title/index.js';
|
|
7
7
|
import './text/component.js';
|
|
8
8
|
import './title-responsive/component.js';
|
|
9
|
+
import './title-mobile/component.js';
|
|
9
10
|
export { Typography } from './component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign, c as colors } from '../colors.module-
|
|
1
|
+
import { a as __rest, _ as __assign, c as colors } from '../colors.module-75191c3e.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"paragraph":"
|
|
5
|
+
var styles = {"paragraph":"typography__paragraph_1w8ug","primary-large":"typography__primary-large_1w8ug","primary-medium":"typography__primary-medium_1w8ug","primary-small":"typography__primary-small_1w8ug","secondary-large":"typography__secondary-large_1w8ug","secondary-medium":"typography__secondary-medium_1w8ug","secondary-small":"typography__secondary-small_1w8ug","component":"typography__component_1w8ug","caps":"typography__caps_1w8ug","bold":"typography__bold_1w8ug","medium":"typography__medium_1w8ug","regular":"typography__regular_1w8ug","monospace":"typography__monospace_1w8ug"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Text = forwardRef(function (_a, ref) {
|
package/dist/esm/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fkots */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -13,62 +13,62 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.typography__paragraph_1w8ug {
|
|
17
17
|
margin: var(--text-paragraph-margin-bottom);
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
|
-
.typography__primary-
|
|
20
|
+
.typography__primary-large_1w8ug {
|
|
21
21
|
font-size: 18px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
24
|
}
|
|
25
|
-
.typography__primary-
|
|
25
|
+
.typography__primary-medium_1w8ug {
|
|
26
26
|
font-size: 16px;
|
|
27
27
|
line-height: 24px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
}
|
|
30
|
-
.typography__primary-
|
|
30
|
+
.typography__primary-small_1w8ug {
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
}
|
|
35
|
-
.typography__secondary-
|
|
35
|
+
.typography__secondary-large_1w8ug {
|
|
36
36
|
font-size: 13px;
|
|
37
37
|
line-height: 16px;
|
|
38
38
|
font-weight: 400;
|
|
39
39
|
}
|
|
40
|
-
.typography__secondary-
|
|
40
|
+
.typography__secondary-medium_1w8ug {
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
line-height: 16px;
|
|
43
43
|
font-weight: 400;
|
|
44
44
|
}
|
|
45
|
-
.typography__secondary-
|
|
45
|
+
.typography__secondary-small_1w8ug {
|
|
46
46
|
font-size: 11px;
|
|
47
47
|
line-height: 16px;
|
|
48
48
|
font-weight: 400;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.typography__component_1w8ug {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 400;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__caps_1w8ug {
|
|
56
56
|
font-size: 12px;
|
|
57
57
|
line-height: 16px;
|
|
58
58
|
font-weight: 500;
|
|
59
59
|
letter-spacing: 1.25px;
|
|
60
60
|
text-transform: uppercase;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.typography__bold_1w8ug {
|
|
63
63
|
font-weight: bold;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.typography__medium_1w8ug {
|
|
66
66
|
font-weight: 500;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
.typography__regular_1w8ug {
|
|
69
69
|
font-weight: normal;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.typography__monospace_1w8ug {
|
|
72
72
|
font-feature-settings: "tnum";
|
|
73
73
|
font-variant-numeric: tabular-nums;
|
|
74
74
|
}
|