@alfalab/core-components-typography 4.13.1 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors.css +21 -21
- package/colors.module-75d911c2.js +6 -0
- package/common.module-23cd82b6.js +6 -0
- package/cssm/text/alfasans-index.module.css +16 -0
- package/cssm/text/component.d.ts +2 -1
- package/cssm/text/component.js +2 -2
- package/cssm/title/alfasans-index.module.css +0 -10
- package/cssm/title/component.d.ts +1 -1
- package/cssm/title/component.js +2 -2
- package/cssm/title/index.d.ts +1 -1
- package/cssm/title-mobile/component.d.ts +1 -1
- package/cssm/title-responsive/component.d.ts +1 -1
- package/cssm/types.d.ts +1 -20
- package/esm/colors.css +21 -21
- package/esm/colors.module-4059b326.js +4 -0
- package/esm/common.module-6cbe43bf.js +4 -0
- package/esm/text/alfasans-index.css +30 -30
- package/esm/text/component.d.ts +2 -1
- package/esm/text/component.js +4 -4
- package/esm/text/index.css +22 -22
- package/esm/title/alfasans-index.css +11 -11
- package/esm/title/common.css +9 -9
- package/esm/title/component.d.ts +1 -1
- package/esm/title/component.js +2 -2
- package/esm/title/index.css +17 -17
- package/esm/title/index.d.ts +1 -1
- package/esm/title/index.js +3 -3
- package/esm/title-mobile/alfasans-index.css +11 -11
- package/esm/title-mobile/component.d.ts +1 -1
- package/esm/title-mobile/component.js +3 -3
- package/esm/title-mobile/index.css +16 -16
- package/esm/title-responsive/component.d.ts +1 -1
- package/esm/types.d.ts +1 -20
- package/modern/colors.css +21 -21
- package/modern/colors.module-fb170d72.js +4 -0
- package/modern/common.module-82ebec0f.js +4 -0
- package/modern/text/alfasans-index.css +30 -30
- package/modern/text/component.d.ts +2 -1
- package/modern/text/component.js +4 -4
- package/modern/text/index.css +22 -22
- package/modern/title/alfasans-index.css +11 -11
- package/modern/title/common.css +9 -9
- package/modern/title/component.d.ts +1 -1
- package/modern/title/component.js +2 -2
- package/modern/title/index.css +17 -17
- package/modern/title/index.d.ts +1 -1
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/alfasans-index.css +11 -11
- package/modern/title-mobile/component.d.ts +1 -1
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +16 -16
- package/modern/title-responsive/component.d.ts +1 -1
- package/modern/types.d.ts +1 -20
- package/moderncssm/text/alfasans-index.module.css +16 -0
- package/moderncssm/text/component.d.ts +2 -1
- package/moderncssm/text/component.js +1 -1
- package/moderncssm/title/alfasans-index.module.css +0 -10
- package/moderncssm/title/component.d.ts +1 -1
- package/moderncssm/title/component.js +1 -1
- package/moderncssm/title/index.d.ts +1 -1
- package/moderncssm/title-mobile/component.d.ts +1 -1
- package/moderncssm/title-responsive/component.d.ts +1 -1
- package/moderncssm/types.d.ts +1 -20
- package/package.json +2 -2
- package/src/text/component.tsx +3 -2
- package/src/title/component.tsx +1 -2
- package/src/types.ts +0 -24
- package/text/alfasans-index.css +30 -30
- package/text/component.d.ts +2 -1
- package/text/component.js +5 -5
- package/text/index.css +22 -22
- package/title/alfasans-index.css +11 -11
- package/title/common.css +9 -9
- package/title/component.d.ts +1 -1
- package/title/component.js +3 -3
- package/title/index.css +17 -17
- package/title/index.d.ts +1 -1
- package/title/index.js +3 -3
- package/title-mobile/alfasans-index.css +11 -11
- package/title-mobile/component.d.ts +1 -1
- package/title-mobile/component.js +3 -3
- package/title-mobile/index.css +16 -16
- package/title-responsive/component.d.ts +1 -1
- package/types.d.ts +1 -20
- package/colors.module-94b64d8e.js +0 -6
- package/common.module-38b50dd1.js +0 -6
- package/cssm/hooks/index.d.ts +0 -1
- package/cssm/hooks/index.js +0 -9
- package/cssm/hooks/use-skeleton.d.ts +0 -12
- package/cssm/hooks/use-skeleton.js +0 -61
- package/cssm/hooks/use-skeleton.module.css +0 -33
- package/esm/colors.module-5fa27b46.js +0 -4
- package/esm/common.module-7645bb09.js +0 -4
- package/esm/hooks/index.d.ts +0 -1
- package/esm/hooks/index.js +0 -1
- package/esm/hooks/use-skeleton.css +0 -34
- package/esm/hooks/use-skeleton.d.ts +0 -12
- package/esm/hooks/use-skeleton.js +0 -53
- package/hooks/index.d.ts +0 -1
- package/hooks/index.js +0 -9
- package/hooks/use-skeleton.css +0 -34
- package/hooks/use-skeleton.d.ts +0 -12
- package/hooks/use-skeleton.js +0 -62
- package/modern/colors.module-3cedc3fb.js +0 -4
- package/modern/common.module-d04ff6fc.js +0 -4
- package/modern/hooks/index.d.ts +0 -1
- package/modern/hooks/index.js +0 -1
- package/modern/hooks/use-skeleton.css +0 -34
- package/modern/hooks/use-skeleton.d.ts +0 -12
- package/modern/hooks/use-skeleton.js +0 -52
- package/moderncssm/hooks/index.d.ts +0 -1
- package/moderncssm/hooks/index.js +0 -1
- package/moderncssm/hooks/use-skeleton.d.ts +0 -12
- package/moderncssm/hooks/use-skeleton.js +0 -50
- package/moderncssm/hooks/use-skeleton.module.css +0 -17
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-skeleton.module.css +0 -17
- package/src/hooks/use-skeleton.tsx +0 -86
package/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1knwx */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -41,44 +41,44 @@
|
|
|
41
41
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
42
42
|
} :root {
|
|
43
43
|
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
44
|
-
} /* сбрасывает синюю подсветку при нажатии */ /* colors */ .
|
|
44
|
+
} /* сбрасывает синюю подсветку при нажатии */ /* colors */ .typography__tertiary_m2k95 {
|
|
45
45
|
color: var(--color-light-text-tertiary);
|
|
46
|
-
} .
|
|
46
|
+
} .typography__disabled_m2k95 {
|
|
47
47
|
color: var(--color-light-text-quaternary);
|
|
48
|
-
} .
|
|
48
|
+
} .typography__accent_m2k95 {
|
|
49
49
|
color: var(--color-light-accent-primary);
|
|
50
|
-
} .
|
|
50
|
+
} .typography__primary_m2k95 {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
|
-
} .
|
|
52
|
+
} .typography__attention_m2k95 {
|
|
53
53
|
color: var(--color-light-text-attention);
|
|
54
|
-
} .
|
|
54
|
+
} .typography__positive_m2k95 {
|
|
55
55
|
color: var(--color-light-text-positive);
|
|
56
|
-
} .
|
|
56
|
+
} .typography__secondary_m2k95 {
|
|
57
57
|
color: var(--color-light-text-secondary);
|
|
58
|
-
} .typography__tertiary-
|
|
58
|
+
} .typography__tertiary-inverted_m2k95 {
|
|
59
59
|
color: var(--color-light-text-tertiary-inverted);
|
|
60
|
-
} .typography__primary-
|
|
60
|
+
} .typography__primary-inverted_m2k95 {
|
|
61
61
|
color: var(--color-light-text-primary-inverted);
|
|
62
|
-
} .typography__secondary-
|
|
62
|
+
} .typography__secondary-inverted_m2k95 {
|
|
63
63
|
color: var(--color-light-text-secondary-inverted);
|
|
64
|
-
} .
|
|
64
|
+
} .typography__link_m2k95 {
|
|
65
65
|
color: var(--color-light-text-info);
|
|
66
|
-
} .
|
|
66
|
+
} .typography__negative_m2k95 {
|
|
67
67
|
color: var(--color-light-text-negative);
|
|
68
|
-
} .typography__static-primary-
|
|
68
|
+
} .typography__static-primary-light_m2k95 {
|
|
69
69
|
color: var(--color-static-text-primary-light);
|
|
70
|
-
} .typography__static-secondary-
|
|
70
|
+
} .typography__static-secondary-light_m2k95 {
|
|
71
71
|
color: var(--color-static-text-secondary-light);
|
|
72
|
-
} .typography__static-tertiary-
|
|
72
|
+
} .typography__static-tertiary-light_m2k95 {
|
|
73
73
|
color: var(--color-static-text-tertiary-light);
|
|
74
|
-
} .typography__static-primary-
|
|
74
|
+
} .typography__static-primary-dark_m2k95 {
|
|
75
75
|
color: var(--color-static-text-primary-dark);
|
|
76
|
-
} .typography__static-secondary-
|
|
76
|
+
} .typography__static-secondary-dark_m2k95 {
|
|
77
77
|
color: var(--color-static-text-secondary-dark);
|
|
78
|
-
} .typography__static-tertiary-
|
|
78
|
+
} .typography__static-tertiary-dark_m2k95 {
|
|
79
79
|
color: var(--color-static-text-tertiary-dark);
|
|
80
|
-
} .typography__static-
|
|
80
|
+
} .typography__static-accent_m2k95 {
|
|
81
81
|
color: var(--color-static-accent-primary);
|
|
82
|
-
} .typography__static-
|
|
82
|
+
} .typography__static-positive_m2k95 {
|
|
83
83
|
color: var(--color-static-text-positive);
|
|
84
84
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var colors = {"tertiary":"typography__tertiary_m2k95","disabled":"typography__disabled_m2k95","accent":"typography__accent_m2k95","primary":"typography__primary_m2k95","attention":"typography__attention_m2k95","positive":"typography__positive_m2k95","secondary":"typography__secondary_m2k95","tertiary-inverted":"typography__tertiary-inverted_m2k95","primary-inverted":"typography__primary-inverted_m2k95","secondary-inverted":"typography__secondary-inverted_m2k95","link":"typography__link_m2k95","negative":"typography__negative_m2k95","static-primary-light":"typography__static-primary-light_m2k95","static-secondary-light":"typography__static-secondary-light_m2k95","static-tertiary-light":"typography__static-tertiary-light_m2k95","static-primary-dark":"typography__static-primary-dark_m2k95","static-secondary-dark":"typography__static-secondary-dark_m2k95","static-tertiary-dark":"typography__static-tertiary-dark_m2k95","static-accent":"typography__static-accent_m2k95","static-positive":"typography__static-positive_m2k95"};
|
|
4
|
+
require('./colors.css')
|
|
5
|
+
|
|
6
|
+
exports.colors = colors;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"typography__component_13tlv","bold":"typography__bold_13tlv","semibold":"typography__semibold_13tlv","medium":"typography__medium_13tlv","regular":"typography__regular_13tlv","rowLimit1":"typography__rowLimit1_13tlv","rowLimit2":"typography__rowLimit2_13tlv","rowLimit3":"typography__rowLimit3_13tlv"};
|
|
4
|
+
require('./title/common.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
letter-spacing: -0.36px;
|
|
51
51
|
font-family: var(--font-family-alfasans)
|
|
52
52
|
} .text.primary-large.bold {
|
|
53
|
+
letter-spacing: 0.38px;
|
|
53
54
|
} .text.primary-large.medium {
|
|
55
|
+
letter-spacing: 0.17px;
|
|
54
56
|
} .text.primary-medium {
|
|
55
57
|
/* prettier-ignore */
|
|
56
58
|
font-size: 16px;
|
|
@@ -59,7 +61,9 @@
|
|
|
59
61
|
letter-spacing: -0.24px;
|
|
60
62
|
font-family: var(--font-family-alfasans)
|
|
61
63
|
} .text.primary-medium.bold {
|
|
64
|
+
letter-spacing: 0.43px;
|
|
62
65
|
} .text.primary-medium.medium {
|
|
66
|
+
letter-spacing: 0.17px;
|
|
63
67
|
} .text.primary-small {
|
|
64
68
|
/* prettier-ignore */
|
|
65
69
|
font-size: 14px;
|
|
@@ -68,7 +72,9 @@
|
|
|
68
72
|
letter-spacing: -0.08px;
|
|
69
73
|
font-family: var(--font-family-alfasans)
|
|
70
74
|
} .text.primary-small.bold {
|
|
75
|
+
letter-spacing: 0.47px;
|
|
71
76
|
} .text.primary-small.medium {
|
|
77
|
+
letter-spacing: 0.27px;
|
|
72
78
|
} .text.component-primary {
|
|
73
79
|
font-size: 16px;
|
|
74
80
|
line-height: 20px;
|
|
@@ -76,7 +82,9 @@
|
|
|
76
82
|
letter-spacing: -0.24px;
|
|
77
83
|
font-family: var(--font-family-alfasans)
|
|
78
84
|
} .text.component-primary.bold {
|
|
85
|
+
letter-spacing: 0.43px;
|
|
79
86
|
} .text.component-primary.medium {
|
|
87
|
+
letter-spacing: 0.17px;
|
|
80
88
|
} .text.secondary-large {
|
|
81
89
|
/* prettier-ignore */
|
|
82
90
|
font-size: 13px;
|
|
@@ -85,7 +93,9 @@
|
|
|
85
93
|
letter-spacing: 0;
|
|
86
94
|
font-family: var(--font-family-alfasans)
|
|
87
95
|
} .text.secondary-large.bold {
|
|
96
|
+
letter-spacing: 0.54px;
|
|
88
97
|
} .text.secondary-large.medium {
|
|
98
|
+
letter-spacing: 0.33px;
|
|
89
99
|
} .text.secondary-medium {
|
|
90
100
|
/* prettier-ignore */
|
|
91
101
|
font-size: 12px;
|
|
@@ -94,7 +104,9 @@
|
|
|
94
104
|
letter-spacing: 0.06px;
|
|
95
105
|
font-family: var(--font-family-alfasans)
|
|
96
106
|
} .text.secondary-medium.bold {
|
|
107
|
+
letter-spacing: 0.57px;
|
|
97
108
|
} .text.secondary-medium.medium {
|
|
109
|
+
letter-spacing: 0.38px;
|
|
98
110
|
} .text.secondary-small {
|
|
99
111
|
/* prettier-ignore */
|
|
100
112
|
font-size: 11px;
|
|
@@ -103,7 +115,9 @@
|
|
|
103
115
|
letter-spacing: 0.15px;
|
|
104
116
|
font-family: var(--font-family-alfasans)
|
|
105
117
|
} .text.secondary-small.bold {
|
|
118
|
+
letter-spacing: 0.54px;
|
|
106
119
|
} .text.secondary-small.medium {
|
|
120
|
+
letter-spacing: 0.41px;
|
|
107
121
|
} .text.component-secondary {
|
|
108
122
|
font-size: 14px;
|
|
109
123
|
line-height: 18px;
|
|
@@ -111,7 +125,9 @@
|
|
|
111
125
|
letter-spacing: -0.08px;
|
|
112
126
|
font-family: var(--font-family-alfasans)
|
|
113
127
|
} .text.component-secondary.bold {
|
|
128
|
+
letter-spacing: 0.47px;
|
|
114
129
|
} .text.component-secondary.medium {
|
|
130
|
+
letter-spacing: 0.27px;
|
|
115
131
|
} .text.bold {
|
|
116
132
|
font-weight: 700;
|
|
117
133
|
} .text.medium {
|
package/cssm/text/component.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
|
+
import { TextSkeletonProps } from "@alfalab/core-components-skeleton";
|
|
4
5
|
import { Color } from "../colors";
|
|
5
|
-
import { TextElementType
|
|
6
|
+
import { TextElementType } from "../types";
|
|
6
7
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
7
8
|
type TextBaseProps = {
|
|
8
9
|
/**
|
package/cssm/text/component.js
CHANGED
|
@@ -6,7 +6,7 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mergeRefs = require('react-merge-refs');
|
|
8
8
|
var cn = require('classnames');
|
|
9
|
-
var
|
|
9
|
+
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton/cssm');
|
|
10
10
|
var colors = require('../colors.module.css');
|
|
11
11
|
var alfasansStyles = require('./alfasans-index.module.css');
|
|
12
12
|
var styles = require('./index.module.css');
|
|
@@ -39,7 +39,7 @@ var Text = React.forwardRef(function (_a, ref) {
|
|
|
39
39
|
if (view === 'component') {
|
|
40
40
|
logWarning(view);
|
|
41
41
|
}
|
|
42
|
-
var _h =
|
|
42
|
+
var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
|
|
43
43
|
var skeleton = renderSkeleton({
|
|
44
44
|
wrapperClassName: cn__default.default((_b = {},
|
|
45
45
|
_b[styles__default.default.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
letter-spacing: 0.1px;
|
|
30
30
|
font-family: var(--font-family-alfasans)
|
|
31
31
|
} .alfasans-xlarge.systemCompat {
|
|
32
|
-
line-height: 52px;
|
|
33
32
|
} .alfasans-large {
|
|
34
33
|
font-size: 40px;
|
|
35
34
|
line-height: 48px;
|
|
@@ -44,9 +43,6 @@
|
|
|
44
43
|
letter-spacing: 0.3px;
|
|
45
44
|
font-family: var(--font-family-alfasans)
|
|
46
45
|
} .alfasans-medium.systemCompat {
|
|
47
|
-
font-size: 30px;
|
|
48
|
-
line-height: 36px;
|
|
49
|
-
letter-spacing: 0.1px;
|
|
50
46
|
} .alfasans-small {
|
|
51
47
|
font-size: 24px;
|
|
52
48
|
line-height: 32px;
|
|
@@ -54,9 +50,6 @@
|
|
|
54
50
|
letter-spacing: 0.39px;
|
|
55
51
|
font-family: var(--font-family-alfasans)
|
|
56
52
|
} .alfasans-small.systemCompat {
|
|
57
|
-
font-size: 22px;
|
|
58
|
-
line-height: 26px;
|
|
59
|
-
letter-spacing: 0.2px;
|
|
60
53
|
} .alfasans-xsmall {
|
|
61
54
|
font-size: 20px;
|
|
62
55
|
line-height: 24px;
|
|
@@ -64,7 +57,4 @@
|
|
|
64
57
|
letter-spacing: 0.33px;
|
|
65
58
|
font-family: var(--font-family-alfasans)
|
|
66
59
|
} .alfasans-xsmall.systemCompat {
|
|
67
|
-
font-size: 18px;
|
|
68
|
-
line-height: 22px;
|
|
69
|
-
letter-spacing: 0.38px;
|
|
70
60
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
|
+
import { TextSkeletonProps } from "@alfalab/core-components-skeleton";
|
|
4
5
|
import { Color } from "../colors";
|
|
5
|
-
import { TextSkeletonProps } from "../types";
|
|
6
6
|
type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
7
7
|
type TitleProps = Omit<NativeProps, 'color'> & {
|
|
8
8
|
/**
|
package/cssm/title/component.js
CHANGED
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var mergeRefs = require('react-merge-refs');
|
|
8
8
|
var cn = require('classnames');
|
|
9
9
|
var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
|
|
10
|
-
var
|
|
10
|
+
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton/cssm');
|
|
11
11
|
var title_utils = require('./utils.js');
|
|
12
12
|
var colors = require('../colors.module.css');
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
|
|
|
21
21
|
var TitleBase = React.forwardRef(function (_a, ref) {
|
|
22
22
|
var _b;
|
|
23
23
|
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, fontProp = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? title_utils.getDefaultWeight(coreComponentsShared.isObject(fontProp) ? fontProp.font : fontProp, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
|
|
24
|
-
var _h =
|
|
24
|
+
var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
|
|
25
25
|
var skeleton = renderSkeleton({
|
|
26
26
|
wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
|
|
27
27
|
dataTestId: dataTestId,
|
package/cssm/title/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<H
|
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
rowLimit?: 2 | 1 | 3 | undefined;
|
|
18
18
|
showSkeleton?: boolean | undefined;
|
|
19
|
-
skeletonProps?: import("
|
|
19
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
|
|
20
20
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
22
22
|
export { Title };
|
|
@@ -15,7 +15,7 @@ declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTMLAttrib
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
rowLimit?: 2 | 1 | 3 | undefined;
|
|
17
17
|
showSkeleton?: boolean | undefined;
|
|
18
|
-
skeletonProps?: import("
|
|
18
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
|
|
19
19
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
20
20
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
21
21
|
export { TitleMobile };
|
|
@@ -27,7 +27,7 @@ declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAt
|
|
|
27
27
|
children?: React.ReactNode;
|
|
28
28
|
rowLimit?: 2 | 1 | 3 | undefined;
|
|
29
29
|
showSkeleton?: boolean | undefined;
|
|
30
|
-
skeletonProps?: import("
|
|
30
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
|
|
31
31
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
/**
|
package/cssm/types.d.ts
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
-
|
|
3
|
-
type TextSkeletonProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Кол-во строк текста
|
|
6
|
-
*/
|
|
7
|
-
rows?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Ширина строки
|
|
10
|
-
*/
|
|
11
|
-
width?: WidthUnit | WidthUnit[];
|
|
12
|
-
/**
|
|
13
|
-
* Выравнивание элементов по горизонтали
|
|
14
|
-
*/
|
|
15
|
-
align?: 'left' | 'center' | 'right';
|
|
16
|
-
/**
|
|
17
|
-
* Класс для обертки скелетона
|
|
18
|
-
*/
|
|
19
|
-
wrapperClassName?: string;
|
|
20
|
-
};
|
|
21
|
-
export { TextElementType, TextSkeletonProps };
|
|
2
|
+
export { TextElementType };
|
package/esm/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1knwx */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
@@ -41,44 +41,44 @@
|
|
|
41
41
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
42
42
|
} :root {
|
|
43
43
|
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
44
|
-
} /* сбрасывает синюю подсветку при нажатии */ /* colors */ .
|
|
44
|
+
} /* сбрасывает синюю подсветку при нажатии */ /* colors */ .typography__tertiary_m2k95 {
|
|
45
45
|
color: var(--color-light-text-tertiary);
|
|
46
|
-
} .
|
|
46
|
+
} .typography__disabled_m2k95 {
|
|
47
47
|
color: var(--color-light-text-quaternary);
|
|
48
|
-
} .
|
|
48
|
+
} .typography__accent_m2k95 {
|
|
49
49
|
color: var(--color-light-accent-primary);
|
|
50
|
-
} .
|
|
50
|
+
} .typography__primary_m2k95 {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
|
-
} .
|
|
52
|
+
} .typography__attention_m2k95 {
|
|
53
53
|
color: var(--color-light-text-attention);
|
|
54
|
-
} .
|
|
54
|
+
} .typography__positive_m2k95 {
|
|
55
55
|
color: var(--color-light-text-positive);
|
|
56
|
-
} .
|
|
56
|
+
} .typography__secondary_m2k95 {
|
|
57
57
|
color: var(--color-light-text-secondary);
|
|
58
|
-
} .typography__tertiary-
|
|
58
|
+
} .typography__tertiary-inverted_m2k95 {
|
|
59
59
|
color: var(--color-light-text-tertiary-inverted);
|
|
60
|
-
} .typography__primary-
|
|
60
|
+
} .typography__primary-inverted_m2k95 {
|
|
61
61
|
color: var(--color-light-text-primary-inverted);
|
|
62
|
-
} .typography__secondary-
|
|
62
|
+
} .typography__secondary-inverted_m2k95 {
|
|
63
63
|
color: var(--color-light-text-secondary-inverted);
|
|
64
|
-
} .
|
|
64
|
+
} .typography__link_m2k95 {
|
|
65
65
|
color: var(--color-light-text-info);
|
|
66
|
-
} .
|
|
66
|
+
} .typography__negative_m2k95 {
|
|
67
67
|
color: var(--color-light-text-negative);
|
|
68
|
-
} .typography__static-primary-
|
|
68
|
+
} .typography__static-primary-light_m2k95 {
|
|
69
69
|
color: var(--color-static-text-primary-light);
|
|
70
|
-
} .typography__static-secondary-
|
|
70
|
+
} .typography__static-secondary-light_m2k95 {
|
|
71
71
|
color: var(--color-static-text-secondary-light);
|
|
72
|
-
} .typography__static-tertiary-
|
|
72
|
+
} .typography__static-tertiary-light_m2k95 {
|
|
73
73
|
color: var(--color-static-text-tertiary-light);
|
|
74
|
-
} .typography__static-primary-
|
|
74
|
+
} .typography__static-primary-dark_m2k95 {
|
|
75
75
|
color: var(--color-static-text-primary-dark);
|
|
76
|
-
} .typography__static-secondary-
|
|
76
|
+
} .typography__static-secondary-dark_m2k95 {
|
|
77
77
|
color: var(--color-static-text-secondary-dark);
|
|
78
|
-
} .typography__static-tertiary-
|
|
78
|
+
} .typography__static-tertiary-dark_m2k95 {
|
|
79
79
|
color: var(--color-static-text-tertiary-dark);
|
|
80
|
-
} .typography__static-
|
|
80
|
+
} .typography__static-accent_m2k95 {
|
|
81
81
|
color: var(--color-static-accent-primary);
|
|
82
|
-
} .typography__static-
|
|
82
|
+
} .typography__static-positive_m2k95 {
|
|
83
83
|
color: var(--color-static-text-positive);
|
|
84
84
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var colors = {"tertiary":"typography__tertiary_m2k95","disabled":"typography__disabled_m2k95","accent":"typography__accent_m2k95","primary":"typography__primary_m2k95","attention":"typography__attention_m2k95","positive":"typography__positive_m2k95","secondary":"typography__secondary_m2k95","tertiary-inverted":"typography__tertiary-inverted_m2k95","primary-inverted":"typography__primary-inverted_m2k95","secondary-inverted":"typography__secondary-inverted_m2k95","link":"typography__link_m2k95","negative":"typography__negative_m2k95","static-primary-light":"typography__static-primary-light_m2k95","static-secondary-light":"typography__static-secondary-light_m2k95","static-tertiary-light":"typography__static-tertiary-light_m2k95","static-primary-dark":"typography__static-primary-dark_m2k95","static-secondary-dark":"typography__static-secondary-dark_m2k95","static-tertiary-dark":"typography__static-tertiary-dark_m2k95","static-accent":"typography__static-accent_m2k95","static-positive":"typography__static-positive_m2k95"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"typography__component_13tlv","bold":"typography__bold_13tlv","semibold":"typography__semibold_13tlv","medium":"typography__medium_13tlv","regular":"typography__regular_13tlv","rowLimit1":"typography__rowLimit1_13tlv","rowLimit2":"typography__rowLimit2_13tlv","rowLimit3":"typography__rowLimit3_13tlv"};
|
|
2
|
+
require('./title/common.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ocvb */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -23,114 +23,114 @@
|
|
|
23
23
|
--font-family-alfasans: 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
24
24
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
25
25
|
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
26
|
-
} /* сбрасывает синюю подсветку при нажатии */ .
|
|
26
|
+
} /* сбрасывает синюю подсветку при нажатии */ .typography__text_1pcuw.typography__component_1pcuw {
|
|
27
27
|
font-size: 16px;
|
|
28
28
|
line-height: 20px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
letter-spacing: -0.24px;
|
|
31
31
|
font-family: var(--font-family-alfasans);
|
|
32
|
-
} .
|
|
32
|
+
} .typography__text_1pcuw.typography__caps_1pcuw {
|
|
33
33
|
font-size: 12px;
|
|
34
34
|
line-height: 16px;
|
|
35
35
|
font-weight: 400;
|
|
36
36
|
letter-spacing: 1.25px;
|
|
37
37
|
text-transform: uppercase;
|
|
38
38
|
font-family: var(--font-family-alfasans);
|
|
39
|
-
} .
|
|
39
|
+
} .typography__text_1pcuw.typography__tagline_1pcuw {
|
|
40
40
|
font-size: 12px;
|
|
41
41
|
line-height: 16px;
|
|
42
42
|
font-weight: 400;
|
|
43
43
|
letter-spacing: 1.25px;
|
|
44
44
|
text-transform: uppercase;
|
|
45
45
|
font-family: var(--font-family-alfasans);
|
|
46
|
-
} .
|
|
46
|
+
} .typography__text_1pcuw.typography__primary-large_1pcuw {
|
|
47
47
|
/* prettier-ignore */
|
|
48
48
|
font-size: 18px;
|
|
49
49
|
line-height: 24px;
|
|
50
50
|
font-weight: 400;
|
|
51
51
|
letter-spacing: -0.36px;
|
|
52
52
|
font-family: var(--font-family-alfasans)
|
|
53
|
-
} .
|
|
53
|
+
} .typography__text_1pcuw.typography__primary-large_1pcuw.typography__bold_1pcuw {
|
|
54
54
|
letter-spacing: 0.38px;
|
|
55
|
-
} .
|
|
55
|
+
} .typography__text_1pcuw.typography__primary-large_1pcuw.typography__medium_1pcuw {
|
|
56
56
|
letter-spacing: 0.17px;
|
|
57
|
-
} .
|
|
57
|
+
} .typography__text_1pcuw.typography__primary-medium_1pcuw {
|
|
58
58
|
/* prettier-ignore */
|
|
59
59
|
font-size: 16px;
|
|
60
60
|
line-height: 24px;
|
|
61
61
|
font-weight: 400;
|
|
62
62
|
letter-spacing: -0.24px;
|
|
63
63
|
font-family: var(--font-family-alfasans)
|
|
64
|
-
} .
|
|
64
|
+
} .typography__text_1pcuw.typography__primary-medium_1pcuw.typography__bold_1pcuw {
|
|
65
65
|
letter-spacing: 0.43px;
|
|
66
|
-
} .
|
|
66
|
+
} .typography__text_1pcuw.typography__primary-medium_1pcuw.typography__medium_1pcuw {
|
|
67
67
|
letter-spacing: 0.17px;
|
|
68
|
-
} .
|
|
68
|
+
} .typography__text_1pcuw.typography__primary-small_1pcuw {
|
|
69
69
|
/* prettier-ignore */
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 400;
|
|
73
73
|
letter-spacing: -0.08px;
|
|
74
74
|
font-family: var(--font-family-alfasans)
|
|
75
|
-
} .
|
|
75
|
+
} .typography__text_1pcuw.typography__primary-small_1pcuw.typography__bold_1pcuw {
|
|
76
76
|
letter-spacing: 0.47px;
|
|
77
|
-
} .
|
|
77
|
+
} .typography__text_1pcuw.typography__primary-small_1pcuw.typography__medium_1pcuw {
|
|
78
78
|
letter-spacing: 0.27px;
|
|
79
|
-
} .
|
|
79
|
+
} .typography__text_1pcuw.typography__component-primary_1pcuw {
|
|
80
80
|
font-size: 16px;
|
|
81
81
|
line-height: 20px;
|
|
82
82
|
font-weight: 400;
|
|
83
83
|
letter-spacing: -0.24px;
|
|
84
84
|
font-family: var(--font-family-alfasans)
|
|
85
|
-
} .
|
|
85
|
+
} .typography__text_1pcuw.typography__component-primary_1pcuw.typography__bold_1pcuw {
|
|
86
86
|
letter-spacing: 0.43px;
|
|
87
|
-
} .
|
|
87
|
+
} .typography__text_1pcuw.typography__component-primary_1pcuw.typography__medium_1pcuw {
|
|
88
88
|
letter-spacing: 0.17px;
|
|
89
|
-
} .
|
|
89
|
+
} .typography__text_1pcuw.typography__secondary-large_1pcuw {
|
|
90
90
|
/* prettier-ignore */
|
|
91
91
|
font-size: 13px;
|
|
92
92
|
line-height: 16px;
|
|
93
93
|
font-weight: 400;
|
|
94
94
|
letter-spacing: 0;
|
|
95
95
|
font-family: var(--font-family-alfasans)
|
|
96
|
-
} .
|
|
96
|
+
} .typography__text_1pcuw.typography__secondary-large_1pcuw.typography__bold_1pcuw {
|
|
97
97
|
letter-spacing: 0.54px;
|
|
98
|
-
} .
|
|
98
|
+
} .typography__text_1pcuw.typography__secondary-large_1pcuw.typography__medium_1pcuw {
|
|
99
99
|
letter-spacing: 0.33px;
|
|
100
|
-
} .
|
|
100
|
+
} .typography__text_1pcuw.typography__secondary-medium_1pcuw {
|
|
101
101
|
/* prettier-ignore */
|
|
102
102
|
font-size: 12px;
|
|
103
103
|
line-height: 16px;
|
|
104
104
|
font-weight: 400;
|
|
105
105
|
letter-spacing: 0.06px;
|
|
106
106
|
font-family: var(--font-family-alfasans)
|
|
107
|
-
} .
|
|
107
|
+
} .typography__text_1pcuw.typography__secondary-medium_1pcuw.typography__bold_1pcuw {
|
|
108
108
|
letter-spacing: 0.57px;
|
|
109
|
-
} .
|
|
109
|
+
} .typography__text_1pcuw.typography__secondary-medium_1pcuw.typography__medium_1pcuw {
|
|
110
110
|
letter-spacing: 0.38px;
|
|
111
|
-
} .
|
|
111
|
+
} .typography__text_1pcuw.typography__secondary-small_1pcuw {
|
|
112
112
|
/* prettier-ignore */
|
|
113
113
|
font-size: 11px;
|
|
114
114
|
line-height: 16px;
|
|
115
115
|
font-weight: 400;
|
|
116
116
|
letter-spacing: 0.15px;
|
|
117
117
|
font-family: var(--font-family-alfasans)
|
|
118
|
-
} .
|
|
118
|
+
} .typography__text_1pcuw.typography__secondary-small_1pcuw.typography__bold_1pcuw {
|
|
119
119
|
letter-spacing: 0.54px;
|
|
120
|
-
} .
|
|
120
|
+
} .typography__text_1pcuw.typography__secondary-small_1pcuw.typography__medium_1pcuw {
|
|
121
121
|
letter-spacing: 0.41px;
|
|
122
|
-
} .
|
|
122
|
+
} .typography__text_1pcuw.typography__component-secondary_1pcuw {
|
|
123
123
|
font-size: 14px;
|
|
124
124
|
line-height: 18px;
|
|
125
125
|
font-weight: 400;
|
|
126
126
|
letter-spacing: -0.08px;
|
|
127
127
|
font-family: var(--font-family-alfasans)
|
|
128
|
-
} .
|
|
128
|
+
} .typography__text_1pcuw.typography__component-secondary_1pcuw.typography__bold_1pcuw {
|
|
129
129
|
letter-spacing: 0.47px;
|
|
130
|
-
} .
|
|
130
|
+
} .typography__text_1pcuw.typography__component-secondary_1pcuw.typography__medium_1pcuw {
|
|
131
131
|
letter-spacing: 0.27px;
|
|
132
|
-
} .
|
|
132
|
+
} .typography__text_1pcuw.typography__bold_1pcuw {
|
|
133
133
|
font-weight: 700;
|
|
134
|
-
} .
|
|
134
|
+
} .typography__text_1pcuw.typography__medium_1pcuw {
|
|
135
135
|
font-weight: 500;
|
|
136
136
|
}
|
package/esm/text/component.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
|
+
import { TextSkeletonProps } from "@alfalab/core-components-skeleton";
|
|
4
5
|
import { Color } from "../colors";
|
|
5
|
-
import { TextElementType
|
|
6
|
+
import { TextElementType } from "../types";
|
|
6
7
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
7
8
|
type TextBaseProps = {
|
|
8
9
|
/**
|