@alfalab/core-components-typography 2.5.0 → 2.5.3
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 +27 -27
- package/dist/colors.css +13 -13
- package/dist/{colors.module-14ced997.d.ts → colors.module-b38fb1e2.d.ts} +0 -0
- package/dist/{colors.module-14ced997.js → colors.module-b38fb1e2.js} +1 -1
- package/dist/common.module-349e8d6d.js +6 -0
- package/dist/component.js +2 -2
- package/dist/cssm/text/component.js +2 -2
- package/dist/esm/colors.css +13 -13
- package/dist/esm/{colors.module-fef377ec.d.ts → colors.module-9ba992f7.d.ts} +0 -0
- package/dist/esm/{colors.module-fef377ec.js → colors.module-9ba992f7.js} +1 -1
- package/dist/esm/common.module-95653ede.js +4 -0
- package/dist/esm/component.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/text/component.d.ts +1 -1
- package/dist/esm/text/component.js +4 -4
- 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.d.ts +1 -1
- 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.js +3 -3
- package/dist/esm/title-mobile/index.css +14 -14
- package/dist/esm/title-mobile/index.js +2 -2
- package/dist/esm/title-responsive/component.js +3 -3
- package/dist/esm/title-responsive/index.css +41 -41
- package/dist/esm/title-responsive/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/modern/colors.css +13 -13
- package/dist/modern/colors.module-daa94b23.js +4 -0
- package/dist/modern/common.module-95653ede.js +4 -0
- package/dist/modern/component.js +2 -2
- package/dist/modern/index.js +2 -2
- package/dist/modern/text/component.js +3 -3
- 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.js +3 -3
- package/dist/modern/title-mobile/index.css +14 -14
- package/dist/modern/title-mobile/index.js +2 -2
- package/dist/modern/title-responsive/component.js +3 -3
- package/dist/modern/title-responsive/index.css +41 -41
- package/dist/modern/title-responsive/index.js +2 -2
- package/dist/text/component.js +4 -4
- 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.js +3 -3
- package/dist/title-mobile/index.css +14 -14
- package/dist/title-mobile/index.js +2 -2
- package/dist/title-responsive/component.js +3 -3
- package/dist/title-responsive/index.css +41 -41
- package/dist/title-responsive/index.js +2 -2
- package/package.json +3 -3
- package/dist/common.module-01d90d2d.js +0 -6
- package/dist/esm/common.module-f9c1ed2c.js +0 -4
- package/dist/modern/colors.module-b724016d.js +0 -4
- package/dist/modern/common.module-f9c1ed2c.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,74 +3,74 @@
|
|
|
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.5.0](https://github.com/
|
|
6
|
+
# [2.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.4.1...@alfalab/core-components-typography@2.5.0) (2022-03-30)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
* **list:** added list & typography presets ([#1047](https://github.com/
|
|
11
|
+
* **list:** added list & typography presets ([#1047](https://github.com/core-ds/core-components/issues/1047)) ([67b6a77](https://github.com/core-ds/core-components/commit/67b6a77d1327b090b010eb061f83a2e6a0cb67b9))
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
## [2.4.1](https://github.com/
|
|
17
|
+
## [2.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.4.0...@alfalab/core-components-typography@2.4.1) (2022-03-03)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
### Bug Fixes
|
|
21
21
|
|
|
22
|
-
* **typography:** changed styrene font styles for title responsive ([#1017](https://github.com/
|
|
22
|
+
* **typography:** changed styrene font styles for title responsive ([#1017](https://github.com/core-ds/core-components/issues/1017)) ([540b0b5](https://github.com/core-ds/core-components/commit/540b0b59cf99a4cee0798f50b94e6449be4aa3c6))
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
# [2.4.0](https://github.com/
|
|
28
|
+
# [2.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.3.0...@alfalab/core-components-typography@2.4.0) (2022-03-01)
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
### Features
|
|
32
32
|
|
|
33
|
-
* **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/
|
|
34
|
-
* Исправить импорты в сторях. ([#998](https://github.com/
|
|
33
|
+
* **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/core-ds/core-components/issues/1003)) ([9b03cf9](https://github.com/core-ds/core-components/commit/9b03cf90422b05cc927ed98959708430812d1a50))
|
|
34
|
+
* Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
# [2.3.0](https://github.com/
|
|
40
|
+
# [2.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.2.0...@alfalab/core-components-typography@2.3.0) (2022-01-17)
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
### Features
|
|
44
44
|
|
|
45
|
-
* **typography:** export types ([#940](https://github.com/
|
|
45
|
+
* **typography:** export types ([#940](https://github.com/core-ds/core-components/issues/940)) ([498227c](https://github.com/core-ds/core-components/commit/498227c272659a1ebf890eee61c6fecdd110faee))
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
# [2.2.0](https://github.com/
|
|
51
|
+
# [2.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.1.0...@alfalab/core-components-typography@2.2.0) (2021-09-14)
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
### Features
|
|
55
55
|
|
|
56
|
-
* **typography:** add ref ([#834](https://github.com/
|
|
56
|
+
* **typography:** add ref ([#834](https://github.com/core-ds/core-components/issues/834)) ([976b16d](https://github.com/core-ds/core-components/commit/976b16dd9ae68c31999bffb3506623db05033ad4))
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
# [2.1.0](https://github.com/
|
|
62
|
+
# [2.1.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.0.1...@alfalab/core-components-typography@2.1.0) (2021-07-19)
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
### Features
|
|
66
66
|
|
|
67
|
-
* **typography:** monospaceNumbers prop (PDS-255) ([#697](https://github.com/
|
|
67
|
+
* **typography:** monospaceNumbers prop (PDS-255) ([#697](https://github.com/core-ds/core-components/issues/697)) ([42d16a6](https://github.com/core-ds/core-components/commit/42d16a62f6d0781eba44dc1e0b76b28cae37d89a))
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
## [2.0.1](https://github.com/
|
|
73
|
+
## [2.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.0.0...@alfalab/core-components-typography@2.0.1) (2021-07-09)
|
|
74
74
|
|
|
75
75
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
|
76
76
|
|
|
@@ -78,36 +78,36 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
# [2.0.0](https://github.com/
|
|
81
|
+
# [2.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.5.1...@alfalab/core-components-typography@2.0.0) (2021-07-08)
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
### Features
|
|
85
85
|
|
|
86
|
-
* upgrade storybook ([#696](https://github.com/
|
|
86
|
+
* upgrade storybook ([#696](https://github.com/core-ds/core-components/issues/696))
|
|
87
87
|
|
|
88
|
-
## [1.5.1](https://github.com/
|
|
88
|
+
## [1.5.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.5.0...@alfalab/core-components-typography@1.5.1) (2021-06-28)
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
### Bug Fixes
|
|
92
92
|
|
|
93
|
-
* **typography:** add missing weight styles ([#719](https://github.com/
|
|
93
|
+
* **typography:** add missing weight styles ([#719](https://github.com/core-ds/core-components/issues/719)) ([6b855aa](https://github.com/core-ds/core-components/commit/6b855aa97eff918e0e16f957c4c05bb7f2d8f4fe))
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
# [1.5.0](https://github.com/
|
|
99
|
+
# [1.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.7...@alfalab/core-components-typography@1.5.0) (2021-06-04)
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
### Features
|
|
103
103
|
|
|
104
|
-
* **typography:** add rest props ([#682](https://github.com/
|
|
104
|
+
* **typography:** add rest props ([#682](https://github.com/core-ds/core-components/issues/682)) ([51e1cf8](https://github.com/core-ds/core-components/commit/51e1cf89028c788bfcdbc21ea16acbbe190b5db9))
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
## [1.4.7](https://github.com/
|
|
110
|
+
## [1.4.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.6...@alfalab/core-components-typography@1.4.7) (2021-04-26)
|
|
111
111
|
|
|
112
112
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
|
113
113
|
|
|
@@ -115,7 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
## [1.4.6](https://github.com/
|
|
118
|
+
## [1.4.6](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.5...@alfalab/core-components-typography@1.4.6) (2021-04-01)
|
|
119
119
|
|
|
120
120
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
|
121
121
|
|
|
@@ -123,18 +123,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
## [1.4.5](https://github.com/
|
|
126
|
+
## [1.4.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.3...@alfalab/core-components-typography@1.4.5) (2021-03-18)
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
### Bug Fixes
|
|
130
130
|
|
|
131
|
-
* one more sborka bug ([#579](https://github.com/
|
|
131
|
+
* one more sborka bug ([#579](https://github.com/core-ds/core-components/issues/579)) ([9fbe0be](https://github.com/core-ds/core-components/commit/9fbe0beca56ec5971de78b3f6cda25305b260efc))
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
## [1.4.3](https://github.com/
|
|
137
|
+
## [1.4.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.2...@alfalab/core-components-typography@1.4.3) (2021-03-14)
|
|
138
138
|
|
|
139
139
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
|
140
140
|
|
|
@@ -142,7 +142,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
## [1.4.2](https://github.com/
|
|
145
|
+
## [1.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.1...@alfalab/core-components-typography@1.4.2) (2021-03-04)
|
|
146
146
|
|
|
147
147
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
|
148
148
|
|
|
@@ -150,6 +150,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
## [1.4.1](https://github.com/
|
|
153
|
+
## [1.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.0...@alfalab/core-components-typography@1.4.1) (2021-03-03)
|
|
154
154
|
|
|
155
155
|
**Note:** Version bump only for package @alfalab/core-components-typography
|
package/dist/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: q0afy */
|
|
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_11nyf {
|
|
26
26
|
color: var(--color-light-text-tertiary);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.typography__disabled_11nyf {
|
|
29
29
|
color: var(--color-light-text-disabled);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__accent_11nyf {
|
|
32
32
|
color: var(--color-light-text-accent);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.typography__primary_11nyf {
|
|
35
35
|
color: var(--color-light-text-primary);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.typography__attention_11nyf {
|
|
38
38
|
color: var(--color-light-text-attention);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.typography__positive_11nyf {
|
|
41
41
|
color: var(--color-light-text-positive);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.typography__secondary_11nyf {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.typography__tertiary-
|
|
46
|
+
.typography__tertiary-inverted_11nyf {
|
|
47
47
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
48
|
}
|
|
49
|
-
.typography__primary-
|
|
49
|
+
.typography__primary-inverted_11nyf {
|
|
50
50
|
color: var(--color-light-text-primary-inverted);
|
|
51
51
|
}
|
|
52
|
-
.typography__secondary-
|
|
52
|
+
.typography__secondary-inverted_11nyf {
|
|
53
53
|
color: var(--color-light-text-secondary-inverted);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__link_11nyf {
|
|
56
56
|
color: var(--color-light-text-link);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.typography__negative_11nyf {
|
|
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_11nyf","disabled":"typography__disabled_11nyf","accent":"typography__accent_11nyf","primary":"typography__primary_11nyf","attention":"typography__attention_11nyf","positive":"typography__positive_11nyf","secondary":"typography__secondary_11nyf","tertiary-inverted":"typography__tertiary-inverted_11nyf","primary-inverted":"typography__primary-inverted_11nyf","secondary-inverted":"typography__secondary-inverted_11nyf","link":"typography__link_11nyf","negative":"typography__negative_11nyf"};
|
|
43
43
|
require('./colors.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
package/dist/component.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./colors.module-
|
|
5
|
+
require('./colors.module-b38fb1e2.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('./title/component.js');
|
|
9
|
-
require('./common.module-
|
|
9
|
+
require('./common.module-349e8d6d.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');
|
|
@@ -17,8 +17,8 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
|
17
17
|
|
|
18
18
|
var Text = React.forwardRef(function (_a, ref) {
|
|
19
19
|
var _b;
|
|
20
|
-
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d,
|
|
21
|
-
return (React__default['default'].createElement(Component, tslib_es6.__assign({ className: cn__default['default']((_b = {}, _b[styles__default['default'].paragraph] = Component === 'p', _b[styles__default['default'].monospace] = monospaceNumbers, _b), className, color && colors__default['default'][color], styles__default['default'][view], styles__default['default'][weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
20
|
+
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d, weight = _a.weight, _e = _a.monospaceNumbers, monospaceNumbers = _e === void 0 ? false : _e, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, restProps = tslib_es6.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "color", "className", "dataTestId", "children"]);
|
|
21
|
+
return (React__default['default'].createElement(Component, tslib_es6.__assign({ className: cn__default['default']((_b = {}, _b[styles__default['default'].paragraph] = Component === 'p', _b[styles__default['default'].monospace] = monospaceNumbers, _b), className, color && colors__default['default'][color], styles__default['default'][view], weight && styles__default['default'][weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
exports.Text = Text;
|
package/dist/esm/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: q0afy */
|
|
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_11nyf {
|
|
26
26
|
color: var(--color-light-text-tertiary);
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.typography__disabled_11nyf {
|
|
29
29
|
color: var(--color-light-text-disabled);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.typography__accent_11nyf {
|
|
32
32
|
color: var(--color-light-text-accent);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.typography__primary_11nyf {
|
|
35
35
|
color: var(--color-light-text-primary);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.typography__attention_11nyf {
|
|
38
38
|
color: var(--color-light-text-attention);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.typography__positive_11nyf {
|
|
41
41
|
color: var(--color-light-text-positive);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.typography__secondary_11nyf {
|
|
44
44
|
color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.typography__tertiary-
|
|
46
|
+
.typography__tertiary-inverted_11nyf {
|
|
47
47
|
color: var(--color-light-text-tertiary-inverted);
|
|
48
48
|
}
|
|
49
|
-
.typography__primary-
|
|
49
|
+
.typography__primary-inverted_11nyf {
|
|
50
50
|
color: var(--color-light-text-primary-inverted);
|
|
51
51
|
}
|
|
52
|
-
.typography__secondary-
|
|
52
|
+
.typography__secondary-inverted_11nyf {
|
|
53
53
|
color: var(--color-light-text-secondary-inverted);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__link_11nyf {
|
|
56
56
|
color: var(--color-light-text-link);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.typography__negative_11nyf {
|
|
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_11nyf","disabled":"typography__disabled_11nyf","accent":"typography__accent_11nyf","primary":"typography__primary_11nyf","attention":"typography__attention_11nyf","positive":"typography__positive_11nyf","secondary":"typography__secondary_11nyf","tertiary-inverted":"typography__tertiary-inverted_11nyf","primary-inverted":"typography__primary-inverted_11nyf","secondary-inverted":"typography__secondary-inverted_11nyf","link":"typography__link_11nyf","negative":"typography__negative_11nyf"};
|
|
41
41
|
require('./colors.css')
|
|
42
42
|
|
|
43
43
|
export { __assign as _, __rest as a, colors as c };
|
package/dist/esm/component.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './colors.module-
|
|
1
|
+
import './colors.module-9ba992f7.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
5
|
+
import './common.module-95653ede.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';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './colors.module-
|
|
1
|
+
import './colors.module-9ba992f7.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import './title/component.js';
|
|
5
|
-
import './common.module-
|
|
5
|
+
import './common.module-95653ede.js';
|
|
6
6
|
import './title/index.js';
|
|
7
7
|
import './text/component.js';
|
|
8
8
|
import './title-responsive/component.js';
|
|
@@ -42,7 +42,7 @@ declare const Text: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultCh
|
|
|
42
42
|
/**
|
|
43
43
|
* [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
|
|
44
44
|
*/
|
|
45
|
-
view?: "primary-
|
|
45
|
+
view?: "primary-medium" | "primary-small" | "primary-large" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps" | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Цвет текста
|
|
48
48
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
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-9ba992f7.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_dp0cp","primary-large":"typography__primary-large_dp0cp","primary-medium":"typography__primary-medium_dp0cp","primary-small":"typography__primary-small_dp0cp","secondary-large":"typography__secondary-large_dp0cp","secondary-medium":"typography__secondary-medium_dp0cp","secondary-small":"typography__secondary-small_dp0cp","component":"typography__component_dp0cp","caps":"typography__caps_dp0cp","bold":"typography__bold_dp0cp","medium":"typography__medium_dp0cp","regular":"typography__regular_dp0cp","monospace":"typography__monospace_dp0cp"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Text = forwardRef(function (_a, ref) {
|
|
9
9
|
var _b;
|
|
10
|
-
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d,
|
|
11
|
-
return (React.createElement(Component, __assign({ className: cn((_b = {}, _b[styles.paragraph] = Component === 'p', _b[styles.monospace] = monospaceNumbers, _b), className, color && colors[color], styles[view], styles[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
10
|
+
var _c = _a.view, view = _c === void 0 ? 'primary-medium' : _c, _d = _a.tag, Component = _d === void 0 ? 'span' : _d, weight = _a.weight, _e = _a.monospaceNumbers, monospaceNumbers = _e === void 0 ? false : _e, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, restProps = __rest(_a, ["view", "tag", "weight", "monospaceNumbers", "color", "className", "dataTestId", "children"]);
|
|
11
|
+
return (React.createElement(Component, __assign({ className: cn((_b = {}, _b[styles.paragraph] = Component === 'p', _b[styles.monospace] = monospaceNumbers, _b), className, color && colors[color], styles[view], weight && styles[weight]), "data-test-id": dataTestId, ref: ref }, restProps), children));
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
export { Text };
|
package/dist/esm/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1e7kh */
|
|
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_dp0cp {
|
|
17
17
|
margin: var(--text-paragraph-margin-bottom);
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
|
-
.typography__primary-
|
|
20
|
+
.typography__primary-large_dp0cp {
|
|
21
21
|
font-size: 18px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
24
|
}
|
|
25
|
-
.typography__primary-
|
|
25
|
+
.typography__primary-medium_dp0cp {
|
|
26
26
|
font-size: 16px;
|
|
27
27
|
line-height: 24px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
}
|
|
30
|
-
.typography__primary-
|
|
30
|
+
.typography__primary-small_dp0cp {
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
}
|
|
35
|
-
.typography__secondary-
|
|
35
|
+
.typography__secondary-large_dp0cp {
|
|
36
36
|
font-size: 13px;
|
|
37
37
|
line-height: 16px;
|
|
38
38
|
font-weight: 400;
|
|
39
39
|
}
|
|
40
|
-
.typography__secondary-
|
|
40
|
+
.typography__secondary-medium_dp0cp {
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
line-height: 16px;
|
|
43
43
|
font-weight: 400;
|
|
44
44
|
}
|
|
45
|
-
.typography__secondary-
|
|
45
|
+
.typography__secondary-small_dp0cp {
|
|
46
46
|
font-size: 11px;
|
|
47
47
|
line-height: 16px;
|
|
48
48
|
font-weight: 400;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.typography__component_dp0cp {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 400;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.typography__caps_dp0cp {
|
|
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_dp0cp {
|
|
63
63
|
font-weight: bold;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.typography__medium_dp0cp {
|
|
66
66
|
font-weight: 500;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
.typography__regular_dp0cp {
|
|
69
69
|
font-weight: normal;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.typography__monospace_dp0cp {
|
|
72
72
|
font-feature-settings: "tnum";
|
|
73
73
|
font-variant-numeric: tabular-nums;
|
|
74
74
|
}
|
package/dist/esm/text/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: eo0lm */
|
|
2
|
+
.typography__component_1m4fm {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.typography__bold_1m4fm {
|
|
8
8
|
font-weight: bold;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.typography__medium_1m4fm {
|
|
12
12
|
font-weight: 500;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.typography__regular_1m4fm {
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
}
|
|
@@ -51,7 +51,7 @@ declare const Title: React.ForwardRefExoticComponent<Pick<NativeProps, "defaultC
|
|
|
51
51
|
/**
|
|
52
52
|
* HTML тег
|
|
53
53
|
*/
|
|
54
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
54
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
55
55
|
/**
|
|
56
56
|
* [Вариант начертания](https://alfa-laboratory.github.io/core-components/master/?path=/docs/гайдлайны-типографика--page)
|
|
57
57
|
*/
|