@alfalab/core-components-typography 4.1.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors.css +33 -33
- package/colors.module-4e4b7d12.js +6 -0
- package/common.module-b3f0cfca.js +6 -0
- package/component.js +2 -2
- package/cssm/colors.module.css +13 -13
- package/cssm/text/component.d.ts +2 -2
- package/cssm/text/component.js +16 -0
- package/cssm/text/index.module.css +8 -0
- package/cssm/title/component.d.ts +2 -2
- package/esm/colors.css +33 -33
- package/esm/colors.module-ca4c7711.js +4 -0
- package/esm/common.module-936e59c9.js +4 -0
- package/esm/component.js +2 -2
- package/esm/hooks/use-skeleton.css +2 -2
- package/esm/hooks/useSkeleton.js +1 -1
- package/esm/index.js +2 -2
- package/esm/text/component.d.ts +2 -2
- package/esm/text/component.js +18 -2
- package/esm/text/index.css +26 -18
- package/esm/text/index.js +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/component.d.ts +2 -2
- package/esm/title/component.js +1 -1
- package/esm/title/index.css +19 -19
- package/esm/title/index.js +3 -3
- package/esm/title-mobile/component.js +3 -3
- package/esm/title-mobile/index.css +11 -11
- package/esm/title-mobile/index.js +2 -2
- package/esm/title-responsive/component.js +3 -3
- package/esm/title-responsive/index.css +31 -31
- package/esm/title-responsive/index.js +2 -2
- package/hooks/use-skeleton.css +2 -2
- package/hooks/useSkeleton.js +1 -1
- package/index.js +2 -2
- package/modern/colors.css +33 -33
- package/modern/colors.module-62b0790b.js +4 -0
- package/modern/common.module-d91f4ff7.js +4 -0
- package/modern/component.js +2 -2
- package/modern/hooks/use-skeleton.css +2 -2
- package/modern/hooks/useSkeleton.js +1 -1
- package/modern/index.js +2 -2
- package/modern/text/component.d.ts +2 -2
- package/modern/text/component.js +18 -2
- package/modern/text/index.css +26 -18
- package/modern/text/index.js +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/component.d.ts +2 -2
- package/modern/title/component.js +1 -1
- package/modern/title/index.css +19 -19
- package/modern/title/index.js +3 -3
- package/modern/title-mobile/component.js +3 -3
- package/modern/title-mobile/index.css +11 -11
- package/modern/title-mobile/index.js +2 -2
- package/modern/title-responsive/component.js +3 -3
- package/modern/title-responsive/index.css +31 -31
- package/modern/title-responsive/index.js +2 -2
- package/package.json +2 -2
- package/src/text/component.tsx +24 -1
- package/src/text/index.module.css +8 -0
- package/src/title/component.tsx +1 -1
- package/text/component.d.ts +2 -2
- package/text/component.js +18 -2
- package/text/index.css +26 -18
- package/text/index.js +1 -1
- package/title/common.css +5 -5
- package/title/component.d.ts +2 -2
- package/title/component.js +1 -1
- package/title/index.css +19 -19
- package/title/index.js +3 -3
- package/title-mobile/component.js +3 -3
- package/title-mobile/index.css +11 -11
- package/title-mobile/index.js +2 -2
- package/title-responsive/component.js +3 -3
- package/title-responsive/index.css +31 -31
- package/title-responsive/index.js +2 -2
- package/colors.module-69def6bf.js +0 -6
- package/common.module-59cc11ca.js +0 -6
- package/esm/colors.module-64858915.js +0 -4
- package/esm/common.module-a0a4a875.js +0 -4
- package/modern/colors.module-58e8caae.js +0 -4
- package/modern/common.module-3d6095da.js +0 -4
package/modern/component.js
CHANGED
|
@@ -8,9 +8,9 @@ import 'classnames';
|
|
|
8
8
|
import './hooks/useSkeleton.js';
|
|
9
9
|
import '@alfalab/core-components-skeleton/modern';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
-
import './colors.module-
|
|
11
|
+
import './colors.module-62b0790b.js';
|
|
12
12
|
import './title/component.js';
|
|
13
|
-
import './common.module-
|
|
13
|
+
import './common.module-d91f4ff7.js';
|
|
14
14
|
|
|
15
15
|
const Typography = {
|
|
16
16
|
Title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7pfjn */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .typography__skeletonText_395pe.typography__skeletonText_395pe {
|
|
19
19
|
border-radius: var(--border-radius-pill);
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useState, useRef } from 'react';
|
|
|
2
2
|
import { Skeleton } from '@alfalab/core-components-skeleton/modern';
|
|
3
3
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
4
4
|
|
|
5
|
-
const styles = {"skeletonText":"
|
|
5
|
+
const styles = {"skeletonText":"typography__skeletonText_395pe"};
|
|
6
6
|
require('./use-skeleton.css')
|
|
7
7
|
|
|
8
8
|
function useSkeleton(showSkeleton, skeletonProps) {
|
package/modern/index.js
CHANGED
|
@@ -7,9 +7,9 @@ import 'classnames';
|
|
|
7
7
|
import './hooks/useSkeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/modern';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import './colors.module-
|
|
10
|
+
import './colors.module-62b0790b.js';
|
|
11
11
|
import './title/index.js';
|
|
12
12
|
import './title/component.js';
|
|
13
|
-
import './common.module-
|
|
13
|
+
import './common.module-d91f4ff7.js';
|
|
14
14
|
import './title-mobile/component.js';
|
|
15
15
|
import './title-responsive/component.js';
|
|
@@ -8,7 +8,7 @@ type TextBaseProps = {
|
|
|
8
8
|
/**
|
|
9
9
|
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
10
10
|
*/
|
|
11
|
-
view?: 'primary-large' | 'primary-medium' | 'primary-small' | 'secondary-large' | 'secondary-medium' | 'secondary-small' | 'component' | 'caps';
|
|
11
|
+
view?: 'primary-large' | 'primary-medium' | 'primary-small' | 'secondary-large' | 'secondary-medium' | 'secondary-small' | 'component' | 'component-primary' | 'component-secondary' | 'caps';
|
|
12
12
|
/**
|
|
13
13
|
* Цвет текста
|
|
14
14
|
*/
|
|
@@ -42,7 +42,7 @@ type TextBaseProps = {
|
|
|
42
42
|
*/
|
|
43
43
|
defaultMargins?: never;
|
|
44
44
|
/**
|
|
45
|
-
* Количество строк
|
|
45
|
+
* Количество строк
|
|
46
46
|
*/
|
|
47
47
|
rowLimit?: 1 | 2 | 3;
|
|
48
48
|
/**
|
package/modern/text/component.js
CHANGED
|
@@ -2,14 +2,30 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useSkeleton } from '../hooks/useSkeleton.js';
|
|
5
|
-
import { c as colors } from '../colors.module-
|
|
5
|
+
import { c as colors } from '../colors.module-62b0790b.js';
|
|
6
6
|
import '@alfalab/core-components-skeleton/modern';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
|
|
9
|
-
const styles = {"paragraph":"
|
|
9
|
+
const styles = {"paragraph":"typography__paragraph_1v3aj","paragraphWithMargins":"typography__paragraphWithMargins_1v3aj","primary-large":"typography__primary-large_1v3aj","primary-medium":"typography__primary-medium_1v3aj","primary-small":"typography__primary-small_1v3aj","secondary-large":"typography__secondary-large_1v3aj","secondary-medium":"typography__secondary-medium_1v3aj","secondary-small":"typography__secondary-small_1v3aj","component":"typography__component_1v3aj","component-primary":"typography__component-primary_1v3aj","component-secondary":"typography__component-secondary_1v3aj","caps":"typography__caps_1v3aj","bold":"typography__bold_1v3aj","medium":"typography__medium_1v3aj","regular":"typography__regular_1v3aj","monospace":"typography__monospace_1v3aj","rowLimit1":"typography__rowLimit1_1v3aj","rowLimit2":"typography__rowLimit2_1v3aj","rowLimit3":"typography__rowLimit3_1v3aj"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
|
+
const logWarning = (view) => {
|
|
13
|
+
if (process.env.NODE_ENV !== 'development') {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const viewsMap = {
|
|
17
|
+
component: 'component-primary',
|
|
18
|
+
};
|
|
19
|
+
// eslint-disable-next-line no-console
|
|
20
|
+
console.warn(
|
|
21
|
+
// eslint-disable-next-line prefer-template
|
|
22
|
+
`@alfalab/core-components/typography: view='${view}' будет удален в следующих мажорных версиях. ` +
|
|
23
|
+
`Используйте view='${viewsMap[view]}'.`);
|
|
24
|
+
};
|
|
12
25
|
const Text = forwardRef(({ view = 'primary-medium', tag: Component = 'span', weight, monospaceNumbers = false, defaultMargins = true, color, className, dataTestId, children, rowLimit, showSkeleton, skeletonProps, ...restProps }, ref) => {
|
|
26
|
+
if (view === 'component') {
|
|
27
|
+
logWarning(view);
|
|
28
|
+
}
|
|
13
29
|
const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);
|
|
14
30
|
const skeleton = renderSkeleton({
|
|
15
31
|
wrapperClassName: cn({
|
package/modern/text/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7mago */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -17,66 +17,74 @@
|
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
19
|
--text-paragraph-margin-bottom: 0 0 var(--gap-s);
|
|
20
|
-
} .
|
|
20
|
+
} .typography__paragraph_1v3aj {
|
|
21
21
|
margin: 0;
|
|
22
22
|
padding: 0;
|
|
23
|
-
} .
|
|
23
|
+
} .typography__paragraphWithMargins_1v3aj {
|
|
24
24
|
padding: 0;
|
|
25
25
|
margin: var(--text-paragraph-margin-bottom);
|
|
26
|
-
} .typography__primary-
|
|
26
|
+
} .typography__primary-large_1v3aj {
|
|
27
27
|
font-size: 18px;
|
|
28
28
|
line-height: 24px;
|
|
29
29
|
font-weight: 400;
|
|
30
|
-
} .typography__primary-
|
|
30
|
+
} .typography__primary-medium_1v3aj {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 24px;
|
|
33
33
|
font-weight: 400;
|
|
34
|
-
} .typography__primary-
|
|
34
|
+
} .typography__primary-small_1v3aj {
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
37
|
font-weight: 400;
|
|
38
|
-
} .typography__secondary-
|
|
38
|
+
} .typography__secondary-large_1v3aj {
|
|
39
39
|
font-size: 13px;
|
|
40
40
|
line-height: 16px;
|
|
41
41
|
font-weight: 400;
|
|
42
|
-
} .typography__secondary-
|
|
42
|
+
} .typography__secondary-medium_1v3aj {
|
|
43
43
|
font-size: 12px;
|
|
44
44
|
line-height: 16px;
|
|
45
45
|
font-weight: 400;
|
|
46
|
-
} .typography__secondary-
|
|
46
|
+
} .typography__secondary-small_1v3aj {
|
|
47
47
|
font-size: 11px;
|
|
48
48
|
line-height: 16px;
|
|
49
49
|
font-weight: 400;
|
|
50
|
-
} .
|
|
50
|
+
} .typography__component_1v3aj {
|
|
51
51
|
font-size: 16px;
|
|
52
52
|
line-height: 20px;
|
|
53
53
|
font-weight: 400;
|
|
54
|
-
} .
|
|
54
|
+
} .typography__component-primary_1v3aj {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 20px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
} .typography__component-secondary_1v3aj {
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
} .typography__caps_1v3aj {
|
|
55
63
|
font-size: 12px;
|
|
56
64
|
line-height: 16px;
|
|
57
65
|
font-weight: 500;
|
|
58
66
|
letter-spacing: 1.25px;
|
|
59
67
|
text-transform: uppercase;
|
|
60
|
-
} .
|
|
68
|
+
} .typography__bold_1v3aj {
|
|
61
69
|
font-weight: bold;
|
|
62
|
-
} .
|
|
70
|
+
} .typography__medium_1v3aj {
|
|
63
71
|
font-weight: 500;
|
|
64
|
-
} .
|
|
72
|
+
} .typography__regular_1v3aj {
|
|
65
73
|
font-weight: normal;
|
|
66
|
-
} .
|
|
74
|
+
} .typography__monospace_1v3aj {
|
|
67
75
|
font-variant-numeric: tabular-nums;
|
|
68
|
-
} .
|
|
76
|
+
} .typography__rowLimit1_1v3aj {
|
|
69
77
|
-webkit-line-clamp: 1;
|
|
70
78
|
display: -webkit-box;
|
|
71
79
|
-webkit-box-orient: vertical;
|
|
72
80
|
overflow: hidden;
|
|
73
81
|
word-break: break-all;
|
|
74
|
-
} .
|
|
82
|
+
} .typography__rowLimit2_1v3aj {
|
|
75
83
|
-webkit-line-clamp: 2;
|
|
76
84
|
display: -webkit-box;
|
|
77
85
|
-webkit-box-orient: vertical;
|
|
78
86
|
overflow: hidden;
|
|
79
|
-
} .
|
|
87
|
+
} .typography__rowLimit3_1v3aj {
|
|
80
88
|
-webkit-line-clamp: 3;
|
|
81
89
|
display: -webkit-box;
|
|
82
90
|
-webkit-box-orient: vertical;
|
package/modern/text/index.js
CHANGED
package/modern/title/common.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: amyct */
|
|
2
|
+
.typography__component_thq70 {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
.typography__component_thq70.typography__bold_thq70 {
|
|
7
7
|
font-weight: bold;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.typography__component_thq70.typography__medium_thq70 {
|
|
10
10
|
font-weight: 500;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.typography__component_thq70.typography__regular_thq70 {
|
|
13
13
|
font-weight: normal;
|
|
14
14
|
}
|
|
@@ -42,7 +42,7 @@ type TitleProps = Omit<NativeProps, 'color'> & {
|
|
|
42
42
|
*/
|
|
43
43
|
children?: React.ReactNode;
|
|
44
44
|
/**
|
|
45
|
-
* Количество строк
|
|
45
|
+
* Количество строк
|
|
46
46
|
*/
|
|
47
47
|
rowLimit?: 1 | 2 | 3;
|
|
48
48
|
/**
|
|
@@ -98,7 +98,7 @@ declare const Title: React.ForwardRefExoticComponent<Omit<NativeProps, "color">
|
|
|
98
98
|
*/
|
|
99
99
|
children?: React.ReactNode;
|
|
100
100
|
/**
|
|
101
|
-
* Количество строк
|
|
101
|
+
* Количество строк
|
|
102
102
|
*/
|
|
103
103
|
rowLimit?: 1 | 2 | 3 | undefined;
|
|
104
104
|
/**
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useSkeleton } from '../hooks/useSkeleton.js';
|
|
5
|
-
import { c as colors } from '../colors.module-
|
|
5
|
+
import { c as colors } from '../colors.module-62b0790b.js';
|
|
6
6
|
import '@alfalab/core-components-skeleton/modern';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
|
package/modern/title/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5mz29 */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -20,78 +20,78 @@
|
|
|
20
20
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
21
21
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
22
22
|
} :root {
|
|
23
|
-
} .typography__styrene-
|
|
23
|
+
} .typography__styrene-xlarge_fy252 {
|
|
24
24
|
font-size: 48px;
|
|
25
25
|
line-height: 64px;
|
|
26
26
|
font-weight: 500;
|
|
27
27
|
font-feature-settings: 'ss01';
|
|
28
28
|
font-family: var(--font-family-styrene);
|
|
29
|
-
} .typography__styrene-
|
|
29
|
+
} .typography__styrene-large_fy252 {
|
|
30
30
|
font-size: 40px;
|
|
31
31
|
line-height: 48px;
|
|
32
32
|
font-weight: 500;
|
|
33
33
|
font-feature-settings: 'ss01';
|
|
34
34
|
font-family: var(--font-family-styrene);
|
|
35
|
-
} .typography__styrene-
|
|
35
|
+
} .typography__styrene-medium_fy252 {
|
|
36
36
|
font-size: 32px;
|
|
37
37
|
line-height: 40px;
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
font-feature-settings: 'ss01';
|
|
40
40
|
font-family: var(--font-family-styrene);
|
|
41
|
-
} .typography__styrene-
|
|
41
|
+
} .typography__styrene-small_fy252 {
|
|
42
42
|
font-size: 24px;
|
|
43
43
|
line-height: 32px;
|
|
44
44
|
font-weight: 500;
|
|
45
45
|
font-feature-settings: 'ss01';
|
|
46
46
|
font-family: var(--font-family-styrene);
|
|
47
|
-
} .typography__styrene-
|
|
47
|
+
} .typography__styrene-xsmall_fy252 {
|
|
48
48
|
font-size: 20px;
|
|
49
49
|
line-height: 24px;
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
font-feature-settings: 'ss01';
|
|
52
52
|
font-family: var(--font-family-styrene);
|
|
53
|
-
} .typography__system-
|
|
53
|
+
} .typography__system-xlarge_fy252 {
|
|
54
54
|
font-size: 48px;
|
|
55
55
|
line-height: 52px;
|
|
56
56
|
font-weight: 700;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-large_fy252 {
|
|
58
58
|
font-size: 40px;
|
|
59
59
|
line-height: 48px;
|
|
60
60
|
font-weight: 700;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-medium_fy252 {
|
|
62
62
|
font-size: 30px;
|
|
63
63
|
line-height: 36px;
|
|
64
64
|
font-weight: 700;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-small_fy252 {
|
|
66
66
|
font-size: 22px;
|
|
67
67
|
line-height: 26px;
|
|
68
68
|
font-weight: 700;
|
|
69
|
-
} .typography__system-
|
|
69
|
+
} .typography__system-xsmall_fy252 {
|
|
70
70
|
font-size: 18px;
|
|
71
71
|
line-height: 22px;
|
|
72
72
|
font-weight: 700;
|
|
73
|
-
} .typography__margins-
|
|
73
|
+
} .typography__margins-xlarge_fy252 {
|
|
74
74
|
margin: 0 0 var(--gap-xl);
|
|
75
|
-
} .typography__margins-
|
|
75
|
+
} .typography__margins-large_fy252 {
|
|
76
76
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
77
|
-
} .typography__margins-
|
|
77
|
+
} .typography__margins-medium_fy252 {
|
|
78
78
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
79
|
-
} .typography__margins-
|
|
79
|
+
} .typography__margins-small_fy252 {
|
|
80
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
81
|
-
} .typography__margins-
|
|
81
|
+
} .typography__margins-xsmall_fy252 {
|
|
82
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
83
|
-
} .
|
|
83
|
+
} .typography__rowLimit1_fy252 {
|
|
84
84
|
-webkit-line-clamp: 1;
|
|
85
85
|
display: -webkit-box;
|
|
86
86
|
-webkit-box-orient: vertical;
|
|
87
87
|
overflow: hidden;
|
|
88
88
|
word-break: break-all;
|
|
89
|
-
} .
|
|
89
|
+
} .typography__rowLimit2_fy252 {
|
|
90
90
|
-webkit-line-clamp: 2;
|
|
91
91
|
display: -webkit-box;
|
|
92
92
|
-webkit-box-orient: vertical;
|
|
93
93
|
overflow: hidden;
|
|
94
|
-
} .
|
|
94
|
+
} .typography__rowLimit3_fy252 {
|
|
95
95
|
-webkit-line-clamp: 3;
|
|
96
96
|
display: -webkit-box;
|
|
97
97
|
-webkit-box-orient: vertical;
|
package/modern/title/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Title as Title$1 } from './component.js';
|
|
3
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-d91f4ff7.js';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../hooks/useSkeleton.js';
|
|
7
7
|
import '@alfalab/core-components-skeleton/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '../colors.module-
|
|
9
|
+
import '../colors.module-62b0790b.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"styrene-xlarge":"typography__styrene-
|
|
11
|
+
const styles = {"styrene-xlarge":"typography__styrene-xlarge_fy252","styrene-large":"typography__styrene-large_fy252","styrene-medium":"typography__styrene-medium_fy252","styrene-small":"typography__styrene-small_fy252","styrene-xsmall":"typography__styrene-xsmall_fy252","system-xlarge":"typography__system-xlarge_fy252","system-large":"typography__system-large_fy252","system-medium":"typography__system-medium_fy252","system-small":"typography__system-small_fy252","system-xsmall":"typography__system-xsmall_fy252","margins-xlarge":"typography__margins-xlarge_fy252","margins-large":"typography__margins-large_fy252","margins-medium":"typography__margins-medium_fy252","margins-small":"typography__margins-small_fy252","margins-xsmall":"typography__margins-xsmall_fy252","rowLimit1":"typography__rowLimit1_fy252","rowLimit2":"typography__rowLimit2_fy252","rowLimit3":"typography__rowLimit3_fy252"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const Title = (props) => (
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Title } from '../title/component.js';
|
|
3
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-d91f4ff7.js';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../hooks/useSkeleton.js';
|
|
7
7
|
import '@alfalab/core-components-skeleton/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '../colors.module-
|
|
9
|
+
import '../colors.module-62b0790b.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"styrene-xlarge":"typography__styrene-
|
|
11
|
+
const styles = {"styrene-xlarge":"typography__styrene-xlarge_1oc5t","styrene-large":"typography__styrene-large_1oc5t","styrene-medium":"typography__styrene-medium_1oc5t","styrene-small":"typography__styrene-small_1oc5t","styrene-xsmall":"typography__styrene-xsmall_1oc5t","system-xlarge":"typography__system-xlarge_1oc5t","system-large":"typography__system-large_1oc5t","system-medium":"typography__system-medium_1oc5t","system-small":"typography__system-small_1oc5t","system-xsmall":"typography__system-xsmall_1oc5t"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const TitleMobile = (props) => (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vsmj3 */
|
|
2
2
|
:root {
|
|
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 */
|
|
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 */
|
|
@@ -16,53 +16,53 @@
|
|
|
16
16
|
--font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
17
17
|
'Helvetica Neue', Helvetica, sans-serif;
|
|
18
18
|
} :root {
|
|
19
|
-
} .typography__styrene-
|
|
19
|
+
} .typography__styrene-xlarge_1oc5t {
|
|
20
20
|
font-size: 34px;
|
|
21
21
|
line-height: 40px;
|
|
22
22
|
font-weight: 500;
|
|
23
23
|
font-feature-settings: 'ss01';
|
|
24
24
|
font-family: var(--font-family-styrene);
|
|
25
|
-
} .typography__styrene-
|
|
25
|
+
} .typography__styrene-large_1oc5t {
|
|
26
26
|
font-size: 30px;
|
|
27
27
|
line-height: 36px;
|
|
28
28
|
font-weight: 500;
|
|
29
29
|
font-feature-settings: 'ss01';
|
|
30
30
|
font-family: var(--font-family-styrene);
|
|
31
|
-
} .typography__styrene-
|
|
31
|
+
} .typography__styrene-medium_1oc5t {
|
|
32
32
|
font-size: 26px;
|
|
33
33
|
line-height: 32px;
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
font-feature-settings: 'ss01';
|
|
36
36
|
font-family: var(--font-family-styrene);
|
|
37
|
-
} .typography__styrene-
|
|
37
|
+
} .typography__styrene-small_1oc5t {
|
|
38
38
|
font-size: 20px;
|
|
39
39
|
line-height: 28px;
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
font-feature-settings: 'ss01';
|
|
42
42
|
font-family: var(--font-family-styrene);
|
|
43
|
-
} .typography__styrene-
|
|
43
|
+
} .typography__styrene-xsmall_1oc5t {
|
|
44
44
|
font-size: 16px;
|
|
45
45
|
line-height: 20px;
|
|
46
46
|
font-weight: 500;
|
|
47
47
|
font-feature-settings: 'ss01';
|
|
48
48
|
font-family: var(--font-family-styrene);
|
|
49
|
-
} .typography__system-
|
|
49
|
+
} .typography__system-xlarge_1oc5t {
|
|
50
50
|
font-size: 34px;
|
|
51
51
|
line-height: 40px;
|
|
52
52
|
font-weight: 600;
|
|
53
|
-
} .typography__system-
|
|
53
|
+
} .typography__system-large_1oc5t {
|
|
54
54
|
font-size: 30px;
|
|
55
55
|
line-height: 36px;
|
|
56
56
|
font-weight: 600;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-medium_1oc5t {
|
|
58
58
|
font-size: 26px;
|
|
59
59
|
line-height: 32px;
|
|
60
60
|
font-weight: 600;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-small_1oc5t {
|
|
62
62
|
font-size: 20px;
|
|
63
63
|
line-height: 28px;
|
|
64
64
|
font-weight: 600;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-xsmall_1oc5t {
|
|
66
66
|
font-size: 16px;
|
|
67
67
|
line-height: 20px;
|
|
68
68
|
font-weight: 600;
|
|
@@ -6,5 +6,5 @@ import 'classnames';
|
|
|
6
6
|
import '../hooks/useSkeleton.js';
|
|
7
7
|
import '@alfalab/core-components-skeleton/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '../colors.module-
|
|
10
|
-
import '../common.module-
|
|
9
|
+
import '../colors.module-62b0790b.js';
|
|
10
|
+
import '../common.module-d91f4ff7.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Title } from '../title/component.js';
|
|
3
|
-
import { c as commonStyles } from '../common.module-
|
|
3
|
+
import { c as commonStyles } from '../common.module-d91f4ff7.js';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../hooks/useSkeleton.js';
|
|
7
7
|
import '@alfalab/core-components-skeleton/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '../colors.module-
|
|
9
|
+
import '../colors.module-62b0790b.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"styrene-xlarge":"typography__styrene-
|
|
11
|
+
const styles = {"styrene-xlarge":"typography__styrene-xlarge_lmdod","styrene-large":"typography__styrene-large_lmdod","styrene-medium":"typography__styrene-medium_lmdod","styrene-small":"typography__styrene-small_lmdod","styrene-xsmall":"typography__styrene-xsmall_lmdod","system-xlarge":"typography__system-xlarge_lmdod","system-large":"typography__system-large_lmdod","system-medium":"typography__system-medium_lmdod","system-small":"typography__system-small_lmdod","system-xsmall":"typography__system-xsmall_lmdod","margins-xlarge":"typography__margins-xlarge_lmdod","margins-large":"typography__margins-large_lmdod","margins-medium":"typography__margins-medium_lmdod","margins-small":"typography__margins-small_lmdod","margins-xsmall":"typography__margins-xsmall_lmdod"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const TitleResponsive = (props) => (
|