@alfalab/core-components-typography 4.3.0 → 4.4.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 +20 -20
- package/colors.module-120e4dd7.js +6 -0
- package/common.module-4389487a.js +6 -0
- package/component.js +3 -3
- package/cssm/component.js +1 -1
- package/cssm/hooks/index.d.ts +1 -1
- package/cssm/hooks/index.js +2 -1
- package/cssm/hooks/{useSkeleton.js → use-skeleton.js} +3 -1
- package/cssm/hooks/use-skeleton.module.css +6 -0
- package/cssm/index.js +1 -1
- package/cssm/text/component.js +1 -1
- package/cssm/text/index.js +1 -1
- package/cssm/title/component.js +1 -1
- package/cssm/title/index.js +1 -1
- package/cssm/title-mobile/component.js +1 -1
- package/cssm/title-mobile/index.js +1 -1
- package/cssm/title-responsive/component.js +1 -1
- package/cssm/title-responsive/index.js +1 -1
- package/cssm/types.d.ts +8 -0
- package/esm/colors.css +20 -20
- package/esm/colors.module-3119b191.js +4 -0
- package/esm/common.module-ec992380.js +4 -0
- package/esm/component.js +3 -3
- package/esm/hooks/index.d.ts +1 -1
- package/esm/hooks/index.js +2 -1
- package/esm/hooks/use-skeleton.css +8 -2
- package/esm/hooks/{useSkeleton.js → use-skeleton.js} +3 -2
- package/esm/index.js +3 -3
- package/esm/text/component.js +3 -3
- package/esm/text/index.css +20 -20
- package/esm/text/index.js +2 -2
- package/esm/title/common.css +5 -5
- package/esm/title/component.js +2 -2
- package/esm/title/index.css +19 -19
- package/esm/title/index.js +4 -4
- package/esm/title-mobile/component.js +4 -4
- package/esm/title-mobile/index.css +11 -11
- package/esm/title-mobile/index.js +3 -3
- package/esm/title-responsive/component.js +4 -4
- package/esm/title-responsive/index.css +31 -31
- package/esm/title-responsive/index.js +3 -3
- package/esm/types.d.ts +8 -0
- package/hooks/index.d.ts +1 -1
- package/hooks/index.js +2 -1
- package/hooks/use-skeleton.css +8 -2
- package/hooks/{useSkeleton.js → use-skeleton.js} +4 -2
- package/index.js +3 -3
- package/modern/colors.css +20 -20
- package/modern/colors.module-93e1488b.js +4 -0
- package/modern/common.module-0bb3a173.js +4 -0
- package/modern/component.js +3 -3
- package/modern/hooks/index.d.ts +1 -1
- package/modern/hooks/index.js +2 -1
- package/modern/hooks/use-skeleton.css +8 -2
- package/modern/hooks/{useSkeleton.js → use-skeleton.js} +3 -2
- package/modern/index.js +3 -3
- package/modern/text/component.js +3 -3
- package/modern/text/index.css +20 -20
- package/modern/text/index.js +2 -2
- package/modern/title/common.css +5 -5
- package/modern/title/component.js +2 -2
- package/modern/title/index.css +19 -19
- package/modern/title/index.js +4 -4
- package/modern/title-mobile/component.js +4 -4
- package/modern/title-mobile/index.css +11 -11
- package/modern/title-mobile/index.js +3 -3
- package/modern/title-responsive/component.js +4 -4
- package/modern/title-responsive/index.css +31 -31
- package/modern/title-responsive/index.js +3 -3
- package/modern/types.d.ts +8 -0
- package/package.json +1 -1
- package/src/hooks/index.ts +1 -1
- package/src/hooks/use-skeleton.module.css +12 -0
- package/src/hooks/{useSkeleton.tsx → use-skeleton.tsx} +9 -1
- package/src/types.ts +10 -0
- package/text/component.js +3 -3
- package/text/index.css +20 -20
- package/text/index.js +2 -2
- package/title/common.css +5 -5
- package/title/component.js +2 -2
- package/title/index.css +19 -19
- package/title/index.js +4 -4
- package/title-mobile/component.js +4 -4
- package/title-mobile/index.css +11 -11
- package/title-mobile/index.js +3 -3
- package/title-responsive/component.js +4 -4
- package/title-responsive/index.css +31 -31
- package/title-responsive/index.js +3 -3
- package/types.d.ts +8 -0
- package/colors.module-67e5bcbb.js +0 -6
- package/common.module-e30c567d.js +0 -6
- package/esm/colors.module-f70f33ad.js +0 -4
- package/esm/common.module-a6e9f838.js +0 -4
- package/modern/colors.module-95caa60d.js +0 -4
- package/modern/common.module-592df4cb.js +0 -4
- /package/cssm/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
- /package/esm/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
- /package/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
- /package/modern/hooks/{useSkeleton.d.ts → use-skeleton.d.ts} +0 -0
package/esm/title/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: cenk1 */
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
54
54
|
font-size: 48px;
|
|
55
55
|
line-height: 52px;
|
|
56
56
|
font-weight: 700;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-large_82mz7 {
|
|
58
58
|
font-size: 40px;
|
|
59
59
|
line-height: 48px;
|
|
60
60
|
font-weight: 700;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-medium_82mz7 {
|
|
62
62
|
font-size: 30px;
|
|
63
63
|
line-height: 36px;
|
|
64
64
|
font-weight: 700;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-small_82mz7 {
|
|
66
66
|
font-size: 22px;
|
|
67
67
|
line-height: 26px;
|
|
68
68
|
font-weight: 700;
|
|
69
|
-
} .typography__system-
|
|
69
|
+
} .typography__system-xsmall_82mz7 {
|
|
70
70
|
font-size: 18px;
|
|
71
71
|
line-height: 22px;
|
|
72
72
|
font-weight: 700;
|
|
73
|
-
} .typography__margins-
|
|
73
|
+
} .typography__margins-xlarge_82mz7 {
|
|
74
74
|
margin: 0 0 var(--gap-xl);
|
|
75
|
-
} .typography__margins-
|
|
75
|
+
} .typography__margins-large_82mz7 {
|
|
76
76
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
77
|
-
} .typography__margins-
|
|
77
|
+
} .typography__margins-medium_82mz7 {
|
|
78
78
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
79
|
-
} .typography__margins-
|
|
79
|
+
} .typography__margins-small_82mz7 {
|
|
80
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
81
|
-
} .typography__margins-
|
|
81
|
+
} .typography__margins-xsmall_82mz7 {
|
|
82
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
83
|
-
} .
|
|
83
|
+
} .typography__rowLimit1_82mz7 {
|
|
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_82mz7 {
|
|
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_82mz7 {
|
|
95
95
|
-webkit-line-clamp: 3;
|
|
96
96
|
display: -webkit-box;
|
|
97
97
|
-webkit-box-orient: vertical;
|
package/esm/title/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Title as Title$1 } from './component.js';
|
|
4
|
-
import { c as commonStyles } from '../common.module-
|
|
4
|
+
import { c as commonStyles } from '../common.module-ec992380.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../hooks/
|
|
7
|
+
import '../hooks/use-skeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../colors.module-
|
|
10
|
+
import '../colors.module-3119b191.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
12
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_82mz7","styrene-large":"typography__styrene-large_82mz7","styrene-medium":"typography__styrene-medium_82mz7","styrene-small":"typography__styrene-small_82mz7","styrene-xsmall":"typography__styrene-xsmall_82mz7","system-xlarge":"typography__system-xlarge_82mz7","system-large":"typography__system-large_82mz7","system-medium":"typography__system-medium_82mz7","system-small":"typography__system-small_82mz7","system-xsmall":"typography__system-xsmall_82mz7","margins-xlarge":"typography__margins-xlarge_82mz7","margins-large":"typography__margins-large_82mz7","margins-medium":"typography__margins-medium_82mz7","margins-small":"typography__margins-small_82mz7","margins-xsmall":"typography__margins-xsmall_82mz7","rowLimit1":"typography__rowLimit1_82mz7","rowLimit2":"typography__rowLimit2_82mz7","rowLimit3":"typography__rowLimit3_82mz7"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var Title = forwardRef(function (props, ref) { return (React.createElement(Title$1, __assign({}, props, { styles: Object.assign(commonStyles, styles), ref: ref }))); });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Title } from '../title/component.js';
|
|
4
|
-
import { c as commonStyles } from '../common.module-
|
|
4
|
+
import { c as commonStyles } from '../common.module-ec992380.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../hooks/
|
|
7
|
+
import '../hooks/use-skeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../colors.module-
|
|
10
|
+
import '../colors.module-3119b191.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
12
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_u50uq","styrene-large":"typography__styrene-large_u50uq","styrene-medium":"typography__styrene-medium_u50uq","styrene-small":"typography__styrene-small_u50uq","styrene-xsmall":"typography__styrene-xsmall_u50uq","system-xlarge":"typography__system-xlarge_u50uq","system-large":"typography__system-large_u50uq","system-medium":"typography__system-medium_u50uq","system-small":"typography__system-small_u50uq","system-xsmall":"typography__system-xsmall_u50uq"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var TitleMobile = forwardRef(function (props, ref) { return React.createElement(Title, __assign({}, props, { styles: Object.assign(commonStyles, styles), ref: ref })); });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: p0y1b */
|
|
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_u50uq {
|
|
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_u50uq {
|
|
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_u50uq {
|
|
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_u50uq {
|
|
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_u50uq {
|
|
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_u50uq {
|
|
50
50
|
font-size: 34px;
|
|
51
51
|
line-height: 40px;
|
|
52
52
|
font-weight: 600;
|
|
53
|
-
} .typography__system-
|
|
53
|
+
} .typography__system-large_u50uq {
|
|
54
54
|
font-size: 30px;
|
|
55
55
|
line-height: 36px;
|
|
56
56
|
font-weight: 600;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-medium_u50uq {
|
|
58
58
|
font-size: 26px;
|
|
59
59
|
line-height: 32px;
|
|
60
60
|
font-weight: 600;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-small_u50uq {
|
|
62
62
|
font-size: 20px;
|
|
63
63
|
line-height: 28px;
|
|
64
64
|
font-weight: 600;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-xsmall_u50uq {
|
|
66
66
|
font-size: 16px;
|
|
67
67
|
line-height: 20px;
|
|
68
68
|
font-weight: 600;
|
|
@@ -4,8 +4,8 @@ import 'react';
|
|
|
4
4
|
import '../title/component.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../hooks/
|
|
7
|
+
import '../hooks/use-skeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../colors.module-
|
|
11
|
-
import '../common.module-
|
|
10
|
+
import '../colors.module-3119b191.js';
|
|
11
|
+
import '../common.module-ec992380.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Title } from '../title/component.js';
|
|
4
|
-
import { c as commonStyles } from '../common.module-
|
|
4
|
+
import { c as commonStyles } from '../common.module-ec992380.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../hooks/
|
|
7
|
+
import '../hooks/use-skeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../colors.module-
|
|
10
|
+
import '../colors.module-3119b191.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"styrene-xlarge":"typography__styrene-
|
|
12
|
+
var styles = {"styrene-xlarge":"typography__styrene-xlarge_1vnps","styrene-large":"typography__styrene-large_1vnps","styrene-medium":"typography__styrene-medium_1vnps","styrene-small":"typography__styrene-small_1vnps","styrene-xsmall":"typography__styrene-xsmall_1vnps","system-xlarge":"typography__system-xlarge_1vnps","system-large":"typography__system-large_1vnps","system-medium":"typography__system-medium_1vnps","system-small":"typography__system-small_1vnps","system-xsmall":"typography__system-xsmall_1vnps","margins-xlarge":"typography__margins-xlarge_1vnps","margins-large":"typography__margins-large_1vnps","margins-medium":"typography__margins-medium_1vnps","margins-small":"typography__margins-small_1vnps","margins-xsmall":"typography__margins-xsmall_1vnps"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var TitleResponsive = forwardRef(function (props, ref) { return React.createElement(Title, __assign({}, props, { styles: Object.assign(commonStyles, styles), ref: ref })); });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: d0kkb */
|
|
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,68 +20,68 @@
|
|
|
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
|
-
} /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-
|
|
23
|
+
} /* TODO: поменять медиа-запросы на миксины */ .typography__styrene-xlarge_1vnps {
|
|
24
24
|
font-size: 34px;
|
|
25
25
|
line-height: 40px;
|
|
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_1vnps {
|
|
30
30
|
font-size: 30px;
|
|
31
31
|
line-height: 36px;
|
|
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_1vnps {
|
|
36
36
|
font-size: 26px;
|
|
37
37
|
line-height: 32px;
|
|
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_1vnps {
|
|
42
42
|
font-size: 20px;
|
|
43
43
|
line-height: 28px;
|
|
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_1vnps {
|
|
48
48
|
font-size: 16px;
|
|
49
49
|
line-height: 20px;
|
|
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_1vnps {
|
|
54
54
|
font-size: 34px;
|
|
55
55
|
line-height: 40px;
|
|
56
56
|
font-weight: 600;
|
|
57
|
-
} .typography__system-
|
|
57
|
+
} .typography__system-large_1vnps {
|
|
58
58
|
font-size: 30px;
|
|
59
59
|
line-height: 36px;
|
|
60
60
|
font-weight: 600;
|
|
61
|
-
} .typography__system-
|
|
61
|
+
} .typography__system-medium_1vnps {
|
|
62
62
|
font-size: 26px;
|
|
63
63
|
line-height: 32px;
|
|
64
64
|
font-weight: 600;
|
|
65
|
-
} .typography__system-
|
|
65
|
+
} .typography__system-small_1vnps {
|
|
66
66
|
font-size: 20px;
|
|
67
67
|
line-height: 28px;
|
|
68
68
|
font-weight: 600;
|
|
69
|
-
} .typography__system-
|
|
69
|
+
} .typography__system-xsmall_1vnps {
|
|
70
70
|
font-size: 16px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 600;
|
|
73
|
-
} .typography__margins-
|
|
73
|
+
} .typography__margins-xlarge_1vnps {
|
|
74
74
|
margin: 0 0 var(--gap-xl);
|
|
75
|
-
} .typography__margins-
|
|
75
|
+
} .typography__margins-large_1vnps {
|
|
76
76
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
77
|
-
} .typography__margins-
|
|
77
|
+
} .typography__margins-medium_1vnps {
|
|
78
78
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
79
|
-
} .typography__margins-
|
|
79
|
+
} .typography__margins-small_1vnps {
|
|
80
80
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
81
|
-
} .typography__margins-
|
|
81
|
+
} .typography__margins-xsmall_1vnps {
|
|
82
82
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
83
83
|
} @media screen and (min-width: 1024px) {
|
|
84
|
-
.typography__styrene-
|
|
84
|
+
.typography__styrene-xlarge_1vnps {
|
|
85
85
|
font-size: 48px;
|
|
86
86
|
line-height: 64px;
|
|
87
87
|
font-weight: 500;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
font-family: var(--font-family-styrene);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.typography__styrene-
|
|
92
|
+
.typography__styrene-large_1vnps {
|
|
93
93
|
font-size: 40px;
|
|
94
94
|
line-height: 48px;
|
|
95
95
|
font-weight: 500;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
font-family: var(--font-family-styrene);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.typography__styrene-
|
|
100
|
+
.typography__styrene-medium_1vnps {
|
|
101
101
|
font-size: 32px;
|
|
102
102
|
line-height: 40px;
|
|
103
103
|
font-weight: 500;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
font-family: var(--font-family-styrene);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.typography__styrene-
|
|
108
|
+
.typography__styrene-small_1vnps {
|
|
109
109
|
font-size: 24px;
|
|
110
110
|
line-height: 32px;
|
|
111
111
|
font-weight: 500;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
font-family: var(--font-family-styrene);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.typography__styrene-
|
|
116
|
+
.typography__styrene-xsmall_1vnps {
|
|
117
117
|
font-size: 20px;
|
|
118
118
|
line-height: 24px;
|
|
119
119
|
font-weight: 500;
|
|
@@ -121,53 +121,53 @@
|
|
|
121
121
|
font-family: var(--font-family-styrene);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.typography__system-
|
|
124
|
+
.typography__system-xlarge_1vnps {
|
|
125
125
|
font-size: 48px;
|
|
126
126
|
line-height: 52px;
|
|
127
127
|
font-weight: 700;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.typography__system-
|
|
130
|
+
.typography__system-large_1vnps {
|
|
131
131
|
font-size: 40px;
|
|
132
132
|
line-height: 48px;
|
|
133
133
|
font-weight: 700;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.typography__system-
|
|
136
|
+
.typography__system-medium_1vnps {
|
|
137
137
|
font-size: 30px;
|
|
138
138
|
line-height: 36px;
|
|
139
139
|
font-weight: 700;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.typography__system-
|
|
142
|
+
.typography__system-small_1vnps {
|
|
143
143
|
font-size: 22px;
|
|
144
144
|
line-height: 26px;
|
|
145
145
|
font-weight: 700;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.typography__system-
|
|
148
|
+
.typography__system-xsmall_1vnps {
|
|
149
149
|
font-size: 18px;
|
|
150
150
|
line-height: 22px;
|
|
151
151
|
font-weight: 700;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
.typography__margins-
|
|
154
|
+
.typography__margins-xlarge_1vnps {
|
|
155
155
|
margin: 0 0 var(--gap-xl);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.typography__margins-
|
|
158
|
+
.typography__margins-large_1vnps {
|
|
159
159
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.typography__margins-
|
|
162
|
+
.typography__margins-medium_1vnps {
|
|
163
163
|
margin: var(--gap-4xl) 0 var(--gap-xl);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.typography__margins-
|
|
166
|
+
.typography__margins-small_1vnps {
|
|
167
167
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.typography__margins-
|
|
170
|
+
.typography__margins-xsmall_1vnps {
|
|
171
171
|
margin: var(--gap-3xl) 0 var(--gap-m);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -4,8 +4,8 @@ import 'react';
|
|
|
4
4
|
import '../title/component.js';
|
|
5
5
|
import 'react-merge-refs';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../hooks/
|
|
7
|
+
import '../hooks/use-skeleton.js';
|
|
8
8
|
import '@alfalab/core-components-skeleton/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../colors.module-
|
|
11
|
-
import '../common.module-
|
|
10
|
+
import '../colors.module-3119b191.js';
|
|
11
|
+
import '../common.module-ec992380.js';
|
package/esm/types.d.ts
CHANGED
|
@@ -9,5 +9,13 @@ type TextSkeletonProps = {
|
|
|
9
9
|
* Ширина строки
|
|
10
10
|
*/
|
|
11
11
|
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
/**
|
|
13
|
+
* Выравнивание элементов по горизонтали
|
|
14
|
+
*/
|
|
15
|
+
align?: 'left' | 'center' | 'right';
|
|
16
|
+
/**
|
|
17
|
+
* Класс для обертки скелетона
|
|
18
|
+
*/
|
|
19
|
+
wrapperClassName?: string;
|
|
12
20
|
};
|
|
13
21
|
export { TextElementType, TextSkeletonProps };
|
package/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./use-skeleton";
|
package/hooks/index.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var hooks_useSkeleton = require('./
|
|
5
|
+
var hooks_useSkeleton = require('./use-skeleton.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
+
require('classnames');
|
|
8
9
|
require('@alfalab/core-components-skeleton');
|
|
9
10
|
require('@alfalab/hooks');
|
|
10
11
|
|
package/hooks/use-skeleton.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xr1vg */
|
|
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,12 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .typography__skeletonText_1d750.typography__skeletonText_1d750 {
|
|
19
19
|
border-radius: var(--border-radius-pill);
|
|
20
|
+
} .typography__left_1d750 > div {
|
|
21
|
+
margin-right: auto;
|
|
22
|
+
} .typography__center_1d750 > div {
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
} .typography__right_1d750 > div {
|
|
25
|
+
margin-left: auto;
|
|
20
26
|
}
|
|
@@ -4,14 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var cn = require('classnames');
|
|
7
8
|
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
|
|
8
9
|
var hooks = require('@alfalab/hooks');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
12
|
|
|
12
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
15
|
|
|
14
|
-
var styles = {"skeletonText":"
|
|
16
|
+
var styles = {"skeletonText":"typography__skeletonText_1d750","left":"typography__left_1d750","center":"typography__center_1d750","right":"typography__right_1d750"};
|
|
15
17
|
require('./use-skeleton.css')
|
|
16
18
|
|
|
17
19
|
function useSkeleton(showSkeleton, skeletonProps) {
|
|
@@ -41,7 +43,7 @@ function useSkeleton(showSkeleton, skeletonProps) {
|
|
|
41
43
|
}, [showSkeleton, skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.rows]);
|
|
42
44
|
var renderSkeleton = function (props) {
|
|
43
45
|
if (showSkeleton && skeletonParams) {
|
|
44
|
-
return (React__default.default.createElement("div", { className: props.wrapperClassName, "data-test-id": props.dataTestId }, tslib.__spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
|
|
46
|
+
return (React__default.default.createElement("div", { className: cn__default.default(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.wrapperClassName, props.wrapperClassName, (skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.align) && styles[skeletonProps.align]), "data-test-id": props.dataTestId }, tslib.__spreadArray([], Array(skeletonParams.rows), true).map(function (_, idx) {
|
|
45
47
|
var width = Array.isArray(skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width)
|
|
46
48
|
? skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width[idx]
|
|
47
49
|
: skeletonProps === null || skeletonProps === void 0 ? void 0 : skeletonProps.width;
|
package/index.js
CHANGED
|
@@ -9,13 +9,13 @@ require('tslib');
|
|
|
9
9
|
require('react');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('./hooks/
|
|
12
|
+
require('./hooks/use-skeleton.js');
|
|
13
13
|
require('@alfalab/core-components-skeleton');
|
|
14
14
|
require('@alfalab/hooks');
|
|
15
|
-
require('./colors.module-
|
|
15
|
+
require('./colors.module-120e4dd7.js');
|
|
16
16
|
require('./title/index.js');
|
|
17
17
|
require('./title/component.js');
|
|
18
|
-
require('./common.module-
|
|
18
|
+
require('./common.module-4389487a.js');
|
|
19
19
|
require('./title-mobile/component.js');
|
|
20
20
|
require('./title-responsive/component.js');
|
|
21
21
|
|
package/modern/colors.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1l8lq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-accent: #ef3124;
|
|
@@ -33,42 +33,42 @@
|
|
|
33
33
|
} :root {
|
|
34
34
|
} :root {
|
|
35
35
|
} :root {
|
|
36
|
-
} /* colors */ .
|
|
36
|
+
} /* colors */ .typography__tertiary_y12u3 {
|
|
37
37
|
color: var(--color-light-text-tertiary);
|
|
38
|
-
} .
|
|
38
|
+
} .typography__disabled_y12u3 {
|
|
39
39
|
color: var(--color-light-text-disabled);
|
|
40
|
-
} .
|
|
40
|
+
} .typography__accent_y12u3 {
|
|
41
41
|
color: var(--color-light-text-accent);
|
|
42
|
-
} .
|
|
42
|
+
} .typography__primary_y12u3 {
|
|
43
43
|
color: var(--color-light-text-primary);
|
|
44
|
-
} .
|
|
44
|
+
} .typography__attention_y12u3 {
|
|
45
45
|
color: var(--color-light-text-attention);
|
|
46
|
-
} .
|
|
46
|
+
} .typography__positive_y12u3 {
|
|
47
47
|
color: var(--color-light-text-positive);
|
|
48
|
-
} .
|
|
48
|
+
} .typography__secondary_y12u3 {
|
|
49
49
|
color: var(--color-light-text-secondary);
|
|
50
|
-
} .typography__tertiary-
|
|
50
|
+
} .typography__tertiary-inverted_y12u3 {
|
|
51
51
|
color: var(--color-light-text-tertiary-inverted);
|
|
52
|
-
} .typography__primary-
|
|
52
|
+
} .typography__primary-inverted_y12u3 {
|
|
53
53
|
color: var(--color-light-text-primary-inverted);
|
|
54
|
-
} .typography__secondary-
|
|
54
|
+
} .typography__secondary-inverted_y12u3 {
|
|
55
55
|
color: var(--color-light-text-secondary-inverted);
|
|
56
|
-
} .
|
|
56
|
+
} .typography__link_y12u3 {
|
|
57
57
|
color: var(--color-light-text-link);
|
|
58
|
-
} .
|
|
58
|
+
} .typography__negative_y12u3 {
|
|
59
59
|
color: var(--color-light-text-negative);
|
|
60
|
-
} .typography__static-primary-
|
|
60
|
+
} .typography__static-primary-light_y12u3 {
|
|
61
61
|
color: var(--color-static-text-primary-light);
|
|
62
|
-
} .typography__static-secondary-
|
|
62
|
+
} .typography__static-secondary-light_y12u3 {
|
|
63
63
|
color: var(--color-static-text-secondary-light);
|
|
64
|
-
} .typography__static-tertiary-
|
|
64
|
+
} .typography__static-tertiary-light_y12u3 {
|
|
65
65
|
color: var(--color-static-text-tertiary-light);
|
|
66
|
-
} .typography__static-primary-
|
|
66
|
+
} .typography__static-primary-dark_y12u3 {
|
|
67
67
|
color: var(--color-static-text-primary-dark);
|
|
68
|
-
} .typography__static-secondary-
|
|
68
|
+
} .typography__static-secondary-dark_y12u3 {
|
|
69
69
|
color: var(--color-static-text-secondary-dark);
|
|
70
|
-
} .typography__static-tertiary-
|
|
70
|
+
} .typography__static-tertiary-dark_y12u3 {
|
|
71
71
|
color: var(--color-static-text-tertiary-dark);
|
|
72
|
-
} .typography__static-
|
|
72
|
+
} .typography__static-accent_y12u3 {
|
|
73
73
|
color: var(--color-static-text-accent);
|
|
74
74
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const colors = {"tertiary":"typography__tertiary_y12u3","disabled":"typography__disabled_y12u3","accent":"typography__accent_y12u3","primary":"typography__primary_y12u3","attention":"typography__attention_y12u3","positive":"typography__positive_y12u3","secondary":"typography__secondary_y12u3","tertiary-inverted":"typography__tertiary-inverted_y12u3","primary-inverted":"typography__primary-inverted_y12u3","secondary-inverted":"typography__secondary-inverted_y12u3","link":"typography__link_y12u3","negative":"typography__negative_y12u3","static-primary-light":"typography__static-primary-light_y12u3","static-secondary-light":"typography__static-secondary-light_y12u3","static-tertiary-light":"typography__static-tertiary-light_y12u3","static-primary-dark":"typography__static-primary-dark_y12u3","static-secondary-dark":"typography__static-secondary-dark_y12u3","static-tertiary-dark":"typography__static-tertiary-dark_y12u3","static-accent":"typography__static-accent_y12u3"};
|
|
2
|
+
require('./colors.css')
|
|
3
|
+
|
|
4
|
+
export { colors as c };
|