@alfalab/core-components-typography 6.0.14 → 6.0.15
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.js.map +1 -1
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/component.js +8 -8
- package/component.js.map +1 -1
- package/cssm/colors.js.map +1 -1
- package/cssm/component.js +8 -8
- package/cssm/component.js.map +1 -1
- package/cssm/index.js +8 -8
- package/cssm/presets.js.map +1 -1
- package/cssm/text/component.js.map +1 -1
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.js.map +1 -1
- package/cssm/title/utils.js.map +1 -1
- package/cssm/title-mobile/component.js.map +1 -1
- package/cssm/title-responsive/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.js.map +1 -1
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/component.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/presets.js.map +1 -1
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +42 -42
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +7 -7
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +25 -25
- package/esm/title/index.js.map +1 -1
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title/utils.js.map +1 -1
- package/esm/title-mobile/component.js.map +1 -1
- package/esm/title-mobile/index.css +25 -25
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-mobile/index.module.css.js.map +1 -1
- package/esm/title-responsive/component.js.map +1 -1
- package/index.js +8 -8
- package/modern/colors.css +20 -20
- package/modern/colors.js.map +1 -1
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/component.js.map +1 -1
- package/modern/index.js +1 -1
- package/modern/presets.js.map +1 -1
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +42 -42
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +7 -7
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +25 -25
- package/modern/title/index.js.map +1 -1
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title/utils.js.map +1 -1
- package/modern/title-mobile/component.js.map +1 -1
- package/modern/title-mobile/index.css +25 -25
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-mobile/index.module.css.js.map +1 -1
- package/modern/title-responsive/component.js.map +1 -1
- package/moderncssm/colors.js.map +1 -1
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/index.js +1 -1
- package/moderncssm/presets.js.map +1 -1
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.js.map +1 -1
- package/moderncssm/title/utils.js.map +1 -1
- package/moderncssm/title-mobile/component.js.map +1 -1
- package/moderncssm/title-responsive/component.js.map +1 -1
- package/package.json +3 -3
- package/presets.js.map +1 -1
- package/src/text/index.module.css +5 -4
- package/text/component.js.map +1 -1
- package/text/index.css +42 -42
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +7 -7
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.js.map +1 -1
- package/title/index.css +25 -25
- package/title/index.js.map +1 -1
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title/utils.js.map +1 -1
- package/title-mobile/component.js.map +1 -1
- package/title-mobile/index.css +25 -25
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.js.map +1 -1
|
@@ -11,123 +11,123 @@
|
|
|
11
11
|
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
12
12
|
sans-serif;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.typography__xlarge_vsa37 {
|
|
15
15
|
font-size: 34px;
|
|
16
16
|
line-height: 40px;
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
font-family: var(--font-family-system);
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.typography__xlarge_vsa37.typography__font_vsa37 {
|
|
21
21
|
font-weight: 500;
|
|
22
22
|
font-feature-settings: 'ss01';
|
|
23
23
|
font-family: var(--font-family-styrene);
|
|
24
24
|
}
|
|
25
|
-
.typography__regular-
|
|
25
|
+
.typography__regular-xlarge_vsa37 {
|
|
26
26
|
font-size: 34px;
|
|
27
27
|
line-height: 40px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
font-family: var(--font-family-system);
|
|
30
30
|
}
|
|
31
|
-
.typography__regular-
|
|
31
|
+
.typography__regular-xlarge_vsa37.typography__system_vsa37 {
|
|
32
32
|
font-feature-settings: 'ss01';
|
|
33
33
|
font-family: var(--font-family-styrene);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.typography__large_vsa37 {
|
|
36
36
|
font-size: 30px;
|
|
37
37
|
line-height: 36px;
|
|
38
38
|
font-weight: 600;
|
|
39
39
|
font-family: var(--font-family-system);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.typography__large_vsa37.typography__font_vsa37 {
|
|
42
42
|
font-weight: 500;
|
|
43
43
|
font-feature-settings: 'ss01';
|
|
44
44
|
font-family: var(--font-family-styrene);
|
|
45
45
|
}
|
|
46
|
-
.typography__regular-
|
|
46
|
+
.typography__regular-large_vsa37 {
|
|
47
47
|
font-size: 30px;
|
|
48
48
|
line-height: 36px;
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
font-family: var(--font-family-system);
|
|
51
51
|
}
|
|
52
|
-
.typography__regular-
|
|
52
|
+
.typography__regular-large_vsa37.typography__system_vsa37 {
|
|
53
53
|
font-feature-settings: 'ss01';
|
|
54
54
|
font-family: var(--font-family-styrene);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__medium_vsa37 {
|
|
57
57
|
font-size: 26px;
|
|
58
58
|
line-height: 32px;
|
|
59
59
|
font-weight: 600;
|
|
60
60
|
font-family: var(--font-family-system);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.typography__medium_vsa37.typography__font_vsa37 {
|
|
63
63
|
font-weight: 500;
|
|
64
64
|
font-feature-settings: 'ss01';
|
|
65
65
|
font-family: var(--font-family-styrene);
|
|
66
66
|
}
|
|
67
|
-
.typography__regular-
|
|
67
|
+
.typography__regular-medium_vsa37 {
|
|
68
68
|
font-size: 26px;
|
|
69
69
|
line-height: 32px;
|
|
70
70
|
font-weight: 400;
|
|
71
71
|
font-family: var(--font-family-system);
|
|
72
72
|
}
|
|
73
|
-
.typography__regular-
|
|
73
|
+
.typography__regular-medium_vsa37.typography__system_vsa37 {
|
|
74
74
|
font-feature-settings: 'ss01';
|
|
75
75
|
font-family: var(--font-family-styrene);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.typography__small_vsa37 {
|
|
78
78
|
font-size: 20px;
|
|
79
79
|
line-height: 28px;
|
|
80
80
|
font-weight: 600;
|
|
81
81
|
font-family: var(--font-family-system);
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.typography__small_vsa37.typography__font_vsa37 {
|
|
84
84
|
font-weight: 500;
|
|
85
85
|
font-feature-settings: 'ss01';
|
|
86
86
|
font-family: var(--font-family-styrene);
|
|
87
87
|
}
|
|
88
|
-
.typography__regular-
|
|
88
|
+
.typography__regular-small_vsa37 {
|
|
89
89
|
font-size: 20px;
|
|
90
90
|
line-height: 28px;
|
|
91
91
|
font-weight: 400;
|
|
92
92
|
font-family: var(--font-family-system);
|
|
93
93
|
}
|
|
94
|
-
.typography__regular-
|
|
94
|
+
.typography__regular-small_vsa37.typography__system_vsa37 {
|
|
95
95
|
font-feature-settings: 'ss01';
|
|
96
96
|
font-family: var(--font-family-styrene);
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.typography__xsmall_vsa37 {
|
|
99
99
|
font-size: 16px;
|
|
100
100
|
line-height: 20px;
|
|
101
101
|
font-weight: 600;
|
|
102
102
|
font-family: var(--font-family-system);
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.typography__xsmall_vsa37.typography__font_vsa37 {
|
|
105
105
|
font-weight: 500;
|
|
106
106
|
font-feature-settings: 'ss01';
|
|
107
107
|
font-family: var(--font-family-styrene);
|
|
108
108
|
}
|
|
109
|
-
.typography__regular-
|
|
109
|
+
.typography__regular-xsmall_vsa37 {
|
|
110
110
|
font-size: 16px;
|
|
111
111
|
line-height: 20px;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
}
|
|
115
|
-
.typography__regular-
|
|
115
|
+
.typography__regular-xsmall_vsa37.typography__system_vsa37 {
|
|
116
116
|
font-feature-settings: 'ss01';
|
|
117
117
|
font-family: var(--font-family-styrene);
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.typography__component_vsa37.typography__margins-xlarge_vsa37 {
|
|
120
120
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
121
121
|
}
|
|
122
|
-
.
|
|
122
|
+
.typography__component_vsa37.typography__margins-large_vsa37 {
|
|
123
123
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.typography__component_vsa37.typography__margins-medium_vsa37 {
|
|
126
126
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
.typography__component_vsa37.typography__margins-small_vsa37 {
|
|
129
129
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
130
130
|
}
|
|
131
|
-
.
|
|
131
|
+
.typography__component_vsa37 .typography__margins-xsmall_vsa37 {
|
|
132
132
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
133
133
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"xlarge":"
|
|
3
|
+
var styles = {"xlarge":"typography__xlarge_vsa37","font":"typography__font_vsa37","regular-xlarge":"typography__regular-xlarge_vsa37","system":"typography__system_vsa37","large":"typography__large_vsa37","regular-large":"typography__regular-large_vsa37","medium":"typography__medium_vsa37","regular-medium":"typography__regular-medium_vsa37","small":"typography__small_vsa37","regular-small":"typography__regular-small_vsa37","xsmall":"typography__xsmall_vsa37","regular-xsmall":"typography__regular-xsmall_vsa37","component":"typography__component_vsa37","margins-xlarge":"typography__margins-xlarge_vsa37","margins-large":"typography__margins-large_vsa37","margins-medium":"typography__margins-medium_vsa37","margins-small":"typography__margins-small_vsa37","margins-xsmall":"typography__margins-xsmall_vsa37"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":[],"mappings":";;;;;;IAoBa,eAAe,GAAG,UAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":[],"mappings":";;;;;;IAoBa,eAAe,GAAG,UAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAA,MAAA,CAAA,EAAA,EAAlC,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,WAAW;IAEjD,OAAO,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,QAAA,CAAA,EAAA,EAAK,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;"}
|
package/index.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var component = require('./component.js');
|
|
5
|
+
var component$3 = require('./component.js');
|
|
6
6
|
var presets = require('./presets.js');
|
|
7
|
-
var component
|
|
7
|
+
var component = require('./text/component.js');
|
|
8
8
|
var index = require('./title/index.js');
|
|
9
|
+
var component$1 = require('./title-mobile/component.js');
|
|
9
10
|
var component$2 = require('./title-responsive/component.js');
|
|
10
|
-
var component$3 = require('./title-mobile/component.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.Typography = component.Typography;
|
|
14
|
+
exports.Typography = component$3.Typography;
|
|
15
15
|
exports.typographyPresets = presets.typographyPresets;
|
|
16
|
-
exports.Text = component
|
|
17
|
-
exports.TypographyText = component
|
|
16
|
+
exports.Text = component.Text;
|
|
17
|
+
exports.TypographyText = component.Text;
|
|
18
18
|
exports.TitleDesktop = index.Title;
|
|
19
19
|
exports.TypographyTitle = index.Title;
|
|
20
|
+
exports.TitleMobile = component$1.TitleMobile;
|
|
21
|
+
exports.TypographyTitleMobile = component$1.TitleMobile;
|
|
20
22
|
exports.TitleResponsive = component$2.TitleResponsive;
|
|
21
23
|
exports.TypographyTitleResponsive = component$2.TitleResponsive;
|
|
22
|
-
exports.TitleMobile = component$3.TitleMobile;
|
|
23
|
-
exports.TypographyTitleMobile = component$3.TitleMobile;
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/modern/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_1ocx5 {
|
|
24
24
|
color: var(--color-light-text-tertiary);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.typography__disabled_1ocx5 {
|
|
27
27
|
color: var(--color-light-text-quaternary);
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.typography__accent_1ocx5 {
|
|
30
30
|
color: var(--color-light-accent-primary);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.typography__primary_1ocx5 {
|
|
33
33
|
color: var(--color-light-text-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.typography__attention_1ocx5 {
|
|
36
36
|
color: var(--color-light-text-attention);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.typography__positive_1ocx5 {
|
|
39
39
|
color: var(--color-light-text-positive);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.typography__secondary_1ocx5 {
|
|
42
42
|
color: var(--color-light-text-secondary);
|
|
43
43
|
}
|
|
44
|
-
.typography__tertiary-
|
|
44
|
+
.typography__tertiary-inverted_1ocx5 {
|
|
45
45
|
color: var(--color-light-text-tertiary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.typography__primary-
|
|
47
|
+
.typography__primary-inverted_1ocx5 {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.typography__secondary-
|
|
50
|
+
.typography__secondary-inverted_1ocx5 {
|
|
51
51
|
color: var(--color-light-text-secondary-inverted);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.typography__link_1ocx5 {
|
|
54
54
|
color: var(--color-light-text-info);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__negative_1ocx5 {
|
|
57
57
|
color: var(--color-light-text-negative);
|
|
58
58
|
}
|
|
59
|
-
.typography__static-primary-
|
|
59
|
+
.typography__static-primary-light_1ocx5 {
|
|
60
60
|
color: var(--color-static-text-primary-light);
|
|
61
61
|
}
|
|
62
|
-
.typography__static-secondary-
|
|
62
|
+
.typography__static-secondary-light_1ocx5 {
|
|
63
63
|
color: var(--color-static-text-secondary-light);
|
|
64
64
|
}
|
|
65
|
-
.typography__static-tertiary-
|
|
65
|
+
.typography__static-tertiary-light_1ocx5 {
|
|
66
66
|
color: var(--color-static-text-tertiary-light);
|
|
67
67
|
}
|
|
68
|
-
.typography__static-primary-
|
|
68
|
+
.typography__static-primary-dark_1ocx5 {
|
|
69
69
|
color: var(--color-static-text-primary-dark);
|
|
70
70
|
}
|
|
71
|
-
.typography__static-secondary-
|
|
71
|
+
.typography__static-secondary-dark_1ocx5 {
|
|
72
72
|
color: var(--color-static-text-secondary-dark);
|
|
73
73
|
}
|
|
74
|
-
.typography__static-tertiary-
|
|
74
|
+
.typography__static-tertiary-dark_1ocx5 {
|
|
75
75
|
color: var(--color-static-text-tertiary-dark);
|
|
76
76
|
}
|
|
77
|
-
.typography__static-
|
|
77
|
+
.typography__static-accent_1ocx5 {
|
|
78
78
|
color: var(--color-static-accent-primary);
|
|
79
79
|
}
|
|
80
|
-
.typography__static-
|
|
80
|
+
.typography__static-positive_1ocx5 {
|
|
81
81
|
color: var(--color-static-text-positive);
|
|
82
82
|
}
|
package/modern/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sources":["../src/colors.ts"],"sourcesContent":["export const colors = [\n 'tertiary',\n 'disabled',\n 'accent',\n 'primary',\n 'attention',\n 'positive',\n 'secondary',\n 'tertiary-inverted',\n 'primary-inverted',\n 'secondary-inverted',\n 'link',\n 'negative',\n 'static-primary-light',\n 'static-secondary-light',\n 'static-tertiary-light',\n 'static-primary-dark',\n 'static-secondary-dark',\n 'static-tertiary-dark',\n 'static-accent',\n 'static-positive',\n] as const;\n\nexport type Color = (typeof colors)[number];\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../src/colors.ts"],"sourcesContent":["export const colors = [\n 'tertiary',\n 'disabled',\n 'accent',\n 'primary',\n 'attention',\n 'positive',\n 'secondary',\n 'tertiary-inverted',\n 'primary-inverted',\n 'secondary-inverted',\n 'link',\n 'negative',\n 'static-primary-light',\n 'static-secondary-light',\n 'static-tertiary-light',\n 'static-primary-dark',\n 'static-secondary-dark',\n 'static-tertiary-dark',\n 'static-accent',\n 'static-positive',\n] as const;\n\nexport type Color = (typeof colors)[number];\n"],"names":[],"mappings":"AAAO,MAAM,MAAM,GAAG;IAClB,UAAU;IACV,UAAU;IACV,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;IACpB,MAAM;IACN,UAAU;IACV,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,qBAAqB;IACrB,uBAAuB;IACvB,sBAAsB;IACtB,eAAe;IACf,iBAAiB;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './colors.css';
|
|
2
2
|
|
|
3
|
-
const colors = {"tertiary":"
|
|
3
|
+
const colors = {"tertiary":"typography__tertiary_1ocx5","disabled":"typography__disabled_1ocx5","accent":"typography__accent_1ocx5","primary":"typography__primary_1ocx5","attention":"typography__attention_1ocx5","positive":"typography__positive_1ocx5","secondary":"typography__secondary_1ocx5","tertiary-inverted":"typography__tertiary-inverted_1ocx5","primary-inverted":"typography__primary-inverted_1ocx5","secondary-inverted":"typography__secondary-inverted_1ocx5","link":"typography__link_1ocx5","negative":"typography__negative_1ocx5","static-primary-light":"typography__static-primary-light_1ocx5","static-secondary-light":"typography__static-secondary-light_1ocx5","static-tertiary-light":"typography__static-tertiary-light_1ocx5","static-primary-dark":"typography__static-primary-dark_1ocx5","static-secondary-dark":"typography__static-secondary-dark_1ocx5","static-tertiary-dark":"typography__static-tertiary-dark_1ocx5","static-accent":"typography__static-accent_1ocx5","static-positive":"typography__static-positive_1ocx5"};
|
|
4
4
|
|
|
5
5
|
export { colors as default };
|
|
6
6
|
//# sourceMappingURL=colors.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.module.css.js","sources":["src/colors.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n/* colors */\n\n.tertiary {\n color: var(--color-light-text-tertiary);\n}\n\n.disabled {\n color: var(--color-light-text-quaternary);\n}\n\n.accent {\n color: var(--color-light-accent-primary);\n}\n\n.primary {\n color: var(--color-light-text-primary);\n}\n\n.attention {\n color: var(--color-light-text-attention);\n}\n\n.positive {\n color: var(--color-light-text-positive);\n}\n\n.secondary {\n color: var(--color-light-text-secondary);\n}\n\n.tertiary-inverted {\n color: var(--color-light-text-tertiary-inverted);\n}\n\n.primary-inverted {\n color: var(--color-light-text-primary-inverted);\n}\n\n.secondary-inverted {\n color: var(--color-light-text-secondary-inverted);\n}\n\n.link {\n color: var(--color-light-text-info);\n}\n\n.negative {\n color: var(--color-light-text-negative);\n}\n\n.static-primary-light {\n color: var(--color-static-text-primary-light);\n}\n\n.static-secondary-light {\n color: var(--color-static-text-secondary-light);\n}\n\n.static-tertiary-light {\n color: var(--color-static-text-tertiary-light);\n}\n\n.static-primary-dark {\n color: var(--color-static-text-primary-dark);\n}\n\n.static-secondary-dark {\n color: var(--color-static-text-secondary-dark);\n}\n\n.static-tertiary-dark {\n color: var(--color-static-text-tertiary-dark);\n}\n\n.static-accent {\n color: var(--color-static-accent-primary);\n}\n\n.static-positive {\n color: var(--color-static-text-positive);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,UAAU,CAAC,4BAA4B,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC
|
|
1
|
+
{"version":3,"file":"colors.module.css.js","sources":["src/colors.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n/* colors */\n\n.tertiary {\n color: var(--color-light-text-tertiary);\n}\n\n.disabled {\n color: var(--color-light-text-quaternary);\n}\n\n.accent {\n color: var(--color-light-accent-primary);\n}\n\n.primary {\n color: var(--color-light-text-primary);\n}\n\n.attention {\n color: var(--color-light-text-attention);\n}\n\n.positive {\n color: var(--color-light-text-positive);\n}\n\n.secondary {\n color: var(--color-light-text-secondary);\n}\n\n.tertiary-inverted {\n color: var(--color-light-text-tertiary-inverted);\n}\n\n.primary-inverted {\n color: var(--color-light-text-primary-inverted);\n}\n\n.secondary-inverted {\n color: var(--color-light-text-secondary-inverted);\n}\n\n.link {\n color: var(--color-light-text-info);\n}\n\n.negative {\n color: var(--color-light-text-negative);\n}\n\n.static-primary-light {\n color: var(--color-static-text-primary-light);\n}\n\n.static-secondary-light {\n color: var(--color-static-text-secondary-light);\n}\n\n.static-tertiary-light {\n color: var(--color-static-text-tertiary-light);\n}\n\n.static-primary-dark {\n color: var(--color-static-text-primary-dark);\n}\n\n.static-secondary-dark {\n color: var(--color-static-text-secondary-dark);\n}\n\n.static-tertiary-dark {\n color: var(--color-static-text-tertiary-dark);\n}\n\n.static-accent {\n color: var(--color-static-accent-primary);\n}\n\n.static-positive {\n color: var(--color-static-text-positive);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,UAAU,CAAC,4BAA4B,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;"}
|
package/modern/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/component.ts"],"sourcesContent":["import { type FC, type ForwardRefExoticComponent, type RefAttributes } from 'react';\n\nimport { Text, type TextProps } from './text';\nimport { Title, type TitleProps } from './title';\nimport { TitleMobile, type TitleMobileProps } from './title-mobile';\nimport { TitleResponsive, type TitleResponsiveProps } from './title-responsive';\nimport { type TextElementType } from './types';\n\nexport const Typography: {\n Title: FC<TitleProps>;\n Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;\n TitleResponsive: FC<TitleResponsiveProps>;\n TitleMobile: FC<TitleMobileProps>;\n} = {\n Title,\n Text,\n TitleResponsive,\n TitleMobile,\n};\n\nexport {\n Text as TypographyText,\n Title as TypographyTitle,\n TitleResponsive as TypographyTitleResponsive,\n TitleMobile as TypographyTitleMobile,\n};\nexport { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/component.ts"],"sourcesContent":["import { type FC, type ForwardRefExoticComponent, type RefAttributes } from 'react';\n\nimport { Text, type TextProps } from './text';\nimport { Title, type TitleProps } from './title';\nimport { TitleMobile, type TitleMobileProps } from './title-mobile';\nimport { TitleResponsive, type TitleResponsiveProps } from './title-responsive';\nimport { type TextElementType } from './types';\n\nexport const Typography: {\n Title: FC<TitleProps>;\n Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;\n TitleResponsive: FC<TitleResponsiveProps>;\n TitleMobile: FC<TitleMobileProps>;\n} = {\n Title,\n Text,\n TitleResponsive,\n TitleMobile,\n};\n\nexport {\n Text as TypographyText,\n Title as TypographyTitle,\n TitleResponsive as TypographyTitleResponsive,\n TitleMobile as TypographyTitleMobile,\n};\nexport { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };\n"],"names":[],"mappings":";;;;;AAQO,MAAM,UAAU,GAKnB;IACA,KAAK;IACL,IAAI;IACJ,eAAe;IACf,WAAW;;;"}
|
package/modern/index.js
CHANGED
|
@@ -2,6 +2,6 @@ export { Typography } from './component.js';
|
|
|
2
2
|
export { typographyPresets } from './presets.js';
|
|
3
3
|
export { Text, Text as TypographyText } from './text/component.js';
|
|
4
4
|
export { Title as TitleDesktop, Title as TypographyTitle } from './title/index.js';
|
|
5
|
-
export { TitleResponsive, TitleResponsive as TypographyTitleResponsive } from './title-responsive/component.js';
|
|
6
5
|
export { TitleMobile, TitleMobile as TypographyTitleMobile } from './title-mobile/component.js';
|
|
6
|
+
export { TitleResponsive, TitleResponsive as TypographyTitleResponsive } from './title-responsive/component.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/modern/presets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.js","sources":["../src/presets.ts"],"sourcesContent":["export const typographyPresets = {\n mobile: {\n list: {\n text: {\n primary: {\n tag: 'div',\n view: 'primary-medium',\n },\n secondary: {\n tag: 'div',\n color: 'secondary',\n view: 'primary-small',\n },\n },\n },\n },\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presets.js","sources":["../src/presets.ts"],"sourcesContent":["export const typographyPresets = {\n mobile: {\n list: {\n text: {\n primary: {\n tag: 'div',\n view: 'primary-medium',\n },\n secondary: {\n tag: 'div',\n color: 'secondary',\n view: 'primary-small',\n },\n },\n },\n },\n};\n"],"names":[],"mappings":"AAAO,MAAM,iBAAiB,GAAG;AAC7B,IAAA,MAAM,EAAE;AACJ,QAAA,IAAI,EAAE;AACF,YAAA,IAAI,EAAE;AACF,gBAAA,OAAO,EAAE;AACL,oBAAA,GAAG,EAAE,KAAK;AACV,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;AACD,gBAAA,SAAS,EAAE;AACP,oBAAA,GAAG,EAAE,KAAK;AACV,oBAAA,KAAK,EAAE,WAAW;AAClB,oBAAA,IAAI,EAAE,eAAe;AACxB,iBAAA;AACJ,aAAA;AACJ,SAAA;AACJ,KAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/text/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(styles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n !showSkeleton && className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={styles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;MAoGa,IAAI,GAAG,UAAU,CAC1B,CACI,EACI,IAAI,GAAG,gBAAgB,EACvB,GAAG,EAAE,SAAS,GAAG,MAAM,EACvB,MAAM,EACN,gBAAgB,GAAG,KAAK,EACxB,cAAc,GAAG,IAAI,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAC5E,MAAM,IAAI,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ;IAC5C,MAAM,SAAS,GAAgC;AAC3C,UAAE,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;UACvC,EAAE;AAER,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAA,GAAK,SAAS,EAAA;AACf,QAAA,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,SAAS,EAAE,EAAE,CACT;gBACI,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,KAAK,GAAG,IAAI,CAAC,cAAc;gBACxD,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AAClE,gBAAA,CAAC,MAAM,CAAC,SAAS,GAAG,gBAAgB;gBACpC,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../src/text/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(styles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n !showSkeleton && className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={styles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;MAoGa,IAAI,GAAG,UAAU,CAC1B,CACI,EACI,IAAI,GAAG,gBAAgB,EACvB,GAAG,EAAE,SAAS,GAAG,MAAM,EACvB,MAAM,EACN,gBAAgB,GAAG,KAAK,EACxB,cAAc,GAAG,IAAI,EACrB,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,IAAI,EACJ,GAAG,SAAS,EACf,EACD,GAAG,KACH;AACA,IAAA,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,aAAa,CAAC;IAC5E,MAAM,IAAI,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ;IAC5C,MAAM,SAAS,GAAgC;AAC3C,UAAE,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;UACvC,EAAE;AAER,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAA,GAAK,SAAS,EAAA;AACf,QAAA,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACN,SAAS,EAAE,EAAE,CACT;gBACI,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,KAAK,GAAG,IAAI,CAAC,cAAc;gBACxD,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AAClE,gBAAA,CAAC,MAAM,CAAC,SAAS,GAAG,gBAAgB;gBACpC,CAAC,MAAM,CAAC,CAAA,QAAA,EAAW,QAAQ,EAAE,CAAC,GAAG,QAAQ;AACzC,gBAAA,CAAC,MAAM,CAAC,WAAW,GAAG,YAAY;AACrC,aAAA,EACD,CAAC,YAAY,IAAI,SAAS,EAC1B,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,EACtB,MAAM,CAAC,IAAI,CAAC,EACZ,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAC3B,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,KAC1B,SAAS,EAAA,EAEZ,QAAQ,CACD;QACX,YAAY,KACT,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAA,EAC1B,cAAc,CAAC;YACZ,gBAAgB,EAAE,EAAE,CAAC;gBACjB,CAAC,MAAM,CAAC,oBAAoB,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;aACrE,CAAC;YACF,UAAU;AACb,SAAA,CAAC,CACA,CACT,CACE;AAEf,CAAC;;"}
|
package/modern/text/index.css
CHANGED
|
@@ -6,40 +6,40 @@
|
|
|
6
6
|
--font-family-system:
|
|
7
7
|
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.typography__transparent_979px {
|
|
10
10
|
visibility: hidden;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.typography__skeleton_979px {
|
|
13
13
|
position: absolute;
|
|
14
14
|
inset: 0;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.typography__root_979px {
|
|
17
17
|
position: relative;
|
|
18
18
|
}
|
|
19
19
|
:root {
|
|
20
20
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.typography__paragraph_979px {
|
|
23
23
|
margin: var(--gap-0);
|
|
24
24
|
padding: var(--gap-0);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.typography__paragraphWithMargins_979px {
|
|
27
27
|
padding: var(--gap-0);
|
|
28
28
|
margin: var(--text-paragraph-margin-bottom);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.typography__component_979px {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
font-family: var(--font-family-system);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.typography__component_979px.typography__bold_979px {
|
|
37
37
|
font-weight: 700;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.typography__component_979px.typography__medium_979px {
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.typography__caps_979px {
|
|
43
43
|
font-size: 12px;
|
|
44
44
|
line-height: 16px;
|
|
45
45
|
font-weight: 400;
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
text-transform: uppercase;
|
|
48
48
|
font-family: var(--font-family-system);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.typography__caps_979px.typography__bold_979px {
|
|
51
51
|
font-weight: 700;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.typography__caps_979px.typography__medium_979px {
|
|
54
54
|
font-weight: 500;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__tagline_979px {
|
|
57
57
|
font-size: 12px;
|
|
58
58
|
line-height: 16px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -61,128 +61,128 @@
|
|
|
61
61
|
text-transform: uppercase;
|
|
62
62
|
font-family: var(--font-family-system);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.typography__tagline_979px.typography__bold_979px {
|
|
65
65
|
font-weight: 700;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.typography__tagline_979px.typography__medium_979px {
|
|
68
68
|
font-weight: 500;
|
|
69
69
|
}
|
|
70
|
-
.typography__primary-
|
|
70
|
+
.typography__primary-large_979px {
|
|
71
71
|
font-size: 18px;
|
|
72
72
|
line-height: 24px;
|
|
73
73
|
font-weight: 400;
|
|
74
74
|
font-family: var(--font-family-system);
|
|
75
75
|
}
|
|
76
|
-
.typography__primary-
|
|
76
|
+
.typography__primary-large_979px.typography__bold_979px {
|
|
77
77
|
font-weight: 700;
|
|
78
78
|
}
|
|
79
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_979px.typography__medium_979px {
|
|
80
80
|
font-weight: 500;
|
|
81
81
|
}
|
|
82
|
-
.typography__primary-
|
|
82
|
+
.typography__primary-medium_979px {
|
|
83
83
|
font-size: 16px;
|
|
84
84
|
line-height: 24px;
|
|
85
85
|
font-weight: 400;
|
|
86
86
|
font-family: var(--font-family-system);
|
|
87
87
|
}
|
|
88
|
-
.typography__primary-
|
|
88
|
+
.typography__primary-medium_979px.typography__bold_979px {
|
|
89
89
|
font-weight: 700;
|
|
90
90
|
}
|
|
91
|
-
.typography__primary-
|
|
91
|
+
.typography__primary-medium_979px.typography__medium_979px {
|
|
92
92
|
font-weight: 500;
|
|
93
93
|
}
|
|
94
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-small_979px {
|
|
95
95
|
font-size: 14px;
|
|
96
96
|
line-height: 20px;
|
|
97
97
|
font-weight: 400;
|
|
98
98
|
font-family: var(--font-family-system);
|
|
99
99
|
}
|
|
100
|
-
.typography__primary-
|
|
100
|
+
.typography__primary-small_979px.typography__bold_979px {
|
|
101
101
|
font-weight: 700;
|
|
102
102
|
}
|
|
103
|
-
.typography__primary-
|
|
103
|
+
.typography__primary-small_979px.typography__medium_979px {
|
|
104
104
|
font-weight: 500;
|
|
105
105
|
}
|
|
106
|
-
.typography__component-
|
|
106
|
+
.typography__component-primary_979px {
|
|
107
107
|
font-size: 16px;
|
|
108
108
|
line-height: 20px;
|
|
109
109
|
font-weight: 400;
|
|
110
110
|
font-family: var(--font-family-system);
|
|
111
111
|
}
|
|
112
|
-
.typography__component-
|
|
112
|
+
.typography__component-primary_979px.typography__bold_979px {
|
|
113
113
|
font-weight: 700;
|
|
114
114
|
}
|
|
115
|
-
.typography__component-
|
|
115
|
+
.typography__component-primary_979px.typography__medium_979px {
|
|
116
116
|
font-weight: 500;
|
|
117
117
|
}
|
|
118
|
-
.typography__secondary-
|
|
118
|
+
.typography__secondary-large_979px {
|
|
119
119
|
font-size: 13px;
|
|
120
120
|
line-height: 16px;
|
|
121
121
|
font-weight: 400;
|
|
122
122
|
font-family: var(--font-family-system);
|
|
123
123
|
}
|
|
124
|
-
.typography__secondary-
|
|
124
|
+
.typography__secondary-large_979px.typography__bold_979px {
|
|
125
125
|
font-weight: 700;
|
|
126
126
|
}
|
|
127
|
-
.typography__secondary-
|
|
127
|
+
.typography__secondary-large_979px.typography__medium_979px {
|
|
128
128
|
font-weight: 500;
|
|
129
129
|
}
|
|
130
|
-
.typography__secondary-
|
|
130
|
+
.typography__secondary-medium_979px {
|
|
131
131
|
font-size: 12px;
|
|
132
132
|
line-height: 16px;
|
|
133
133
|
font-weight: 400;
|
|
134
134
|
font-family: var(--font-family-system);
|
|
135
135
|
}
|
|
136
|
-
.typography__secondary-
|
|
136
|
+
.typography__secondary-medium_979px.typography__bold_979px {
|
|
137
137
|
font-weight: 700;
|
|
138
138
|
}
|
|
139
|
-
.typography__secondary-
|
|
139
|
+
.typography__secondary-medium_979px.typography__medium_979px {
|
|
140
140
|
font-weight: 500;
|
|
141
141
|
}
|
|
142
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-small_979px {
|
|
143
143
|
font-size: 11px;
|
|
144
144
|
line-height: 16px;
|
|
145
145
|
font-weight: 400;
|
|
146
146
|
font-family: var(--font-family-system);
|
|
147
147
|
}
|
|
148
|
-
.typography__secondary-
|
|
148
|
+
.typography__secondary-small_979px.typography__bold_979px {
|
|
149
149
|
font-weight: 700;
|
|
150
150
|
}
|
|
151
|
-
.typography__secondary-
|
|
151
|
+
.typography__secondary-small_979px.typography__medium_979px {
|
|
152
152
|
font-weight: 500;
|
|
153
153
|
}
|
|
154
|
-
.typography__component-
|
|
154
|
+
.typography__component-secondary_979px {
|
|
155
155
|
font-size: 14px;
|
|
156
156
|
line-height: 18px;
|
|
157
157
|
font-weight: 400;
|
|
158
158
|
font-family: var(--font-family-system);
|
|
159
159
|
}
|
|
160
|
-
.typography__component-
|
|
160
|
+
.typography__component-secondary_979px.typography__bold_979px {
|
|
161
161
|
font-weight: 700;
|
|
162
162
|
}
|
|
163
|
-
.typography__component-
|
|
163
|
+
.typography__component-secondary_979px.typography__medium_979px {
|
|
164
164
|
font-weight: 500;
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
.typography__rowLimit1_979px {
|
|
167
167
|
-webkit-line-clamp: 1;
|
|
168
168
|
display: -webkit-box;
|
|
169
169
|
-webkit-box-orient: vertical;
|
|
170
170
|
overflow: hidden;
|
|
171
171
|
word-break: break-all;
|
|
172
172
|
}
|
|
173
|
-
.
|
|
173
|
+
.typography__rowLimit2_979px {
|
|
174
174
|
-webkit-line-clamp: 2;
|
|
175
175
|
display: -webkit-box;
|
|
176
176
|
-webkit-box-orient: vertical;
|
|
177
177
|
overflow: hidden;
|
|
178
178
|
}
|
|
179
|
-
.
|
|
179
|
+
.typography__rowLimit3_979px {
|
|
180
180
|
-webkit-line-clamp: 3;
|
|
181
181
|
display: -webkit-box;
|
|
182
182
|
-webkit-box-orient: vertical;
|
|
183
183
|
overflow: hidden;
|
|
184
184
|
}
|
|
185
|
-
.
|
|
185
|
+
.typography__monospace_979px {
|
|
186
186
|
font-feature-settings: "tnum";
|
|
187
187
|
font-variant-numeric: tabular-nums;
|
|
188
188
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"transparent":"
|
|
3
|
+
const styles = {"transparent":"typography__transparent_979px","skeleton":"typography__skeleton_979px","root":"typography__root_979px","paragraph":"typography__paragraph_979px","paragraphWithMargins":"typography__paragraphWithMargins_979px","component":"typography__component_979px","bold":"typography__bold_979px","medium":"typography__medium_979px","caps":"typography__caps_979px","tagline":"typography__tagline_979px","primary-large":"typography__primary-large_979px","primary-medium":"typography__primary-medium_979px","primary-small":"typography__primary-small_979px","component-primary":"typography__component-primary_979px","secondary-large":"typography__secondary-large_979px","secondary-medium":"typography__secondary-medium_979px","secondary-small":"typography__secondary-small_979px","component-secondary":"typography__component-secondary_979px","rowLimit1":"typography__rowLimit1_979px","rowLimit2":"typography__rowLimit2_979px","rowLimit3":"typography__rowLimit3_979px","monospace":"typography__monospace_979px"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|