@alfalab/core-components-pure-cell 2.0.3 → 2.0.6
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/{component-117bbc7b.d.ts → component-04c6d9c4.d.ts} +0 -0
- package/{component-117bbc7b.js → component-04c6d9c4.js} +2 -2
- package/{modern/component-45177723.d.ts → component-3f80589a.d.ts} +1 -1
- package/{component-1fa3509f.js → component-3f80589a.js} +20 -19
- package/{component-3b03b872.d.ts → component-cf0927a9.d.ts} +8 -8
- package/component.js +3 -3
- package/components/addon/component.js +2 -2
- package/components/addon/index.css +10 -8
- package/components/addon/index.js +1 -1
- package/components/amount/component.js +2 -2
- package/components/amount/index.css +2 -2
- package/components/amount/index.js +1 -1
- package/components/amount-title/component.js +2 -2
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.js +1 -1
- package/components/category/component.js +2 -2
- package/components/category/index.css +4 -4
- package/components/category/index.js +1 -1
- package/components/comment/component.js +2 -2
- package/components/comment/index.css +3 -3
- package/components/comment/index.js +1 -1
- package/components/content/component.js +3 -3
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +3 -3
- package/components/footer/component.js +2 -2
- package/components/footer/index.css +4 -4
- package/components/footer/index.js +1 -1
- package/components/footer-button/component.js +2 -2
- package/components/footer-button/index.css +2 -2
- package/components/footer-button/index.d.ts +1 -1
- package/components/footer-button/index.js +2 -2
- package/components/footer-text/component.js +1 -1
- package/components/footer-text/index.js +1 -1
- package/components/graphics/component.js +2 -2
- package/components/graphics/index.css +2 -2
- package/components/graphics/index.js +1 -1
- package/components/main/component.js +3 -3
- package/components/main/index.css +4 -4
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +3 -3
- package/components/text/component.js +3 -3
- package/components/text/index.css +8 -8
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +3 -3
- package/cssm/{component-3b03b872.d.ts → component-cf0927a9.d.ts} +8 -8
- package/{esm/component-441f32d6.d.ts → cssm/component-f60efddd.d.ts} +1 -1
- package/cssm/{component-1338a186.js → component-f60efddd.js} +14 -13
- package/cssm/component.js +1 -1
- package/cssm/components/addon/index.module.css +4 -2
- package/cssm/components/content/component.js +1 -1
- package/cssm/components/content/index.d.ts +1 -1
- package/cssm/components/content/index.js +1 -1
- package/cssm/components/main/component.js +1 -1
- package/cssm/components/main/index.d.ts +1 -1
- package/cssm/components/main/index.js +1 -1
- package/cssm/components/text/component.js +1 -1
- package/cssm/components/text/index.d.ts +1 -1
- package/cssm/components/text/index.js +1 -1
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +1 -1
- package/cssm/index.module.css +1 -1
- package/{component-1fa3509f.d.ts → esm/component-cc5a30ff.d.ts} +1 -1
- package/esm/{component-441f32d6.js → component-cc5a30ff.js} +20 -19
- package/{modern/component-3b03b872.d.ts → esm/component-cf0927a9.d.ts} +8 -8
- package/esm/{component-97507715.d.ts → component-d1a6702b.d.ts} +0 -0
- package/esm/{component-97507715.js → component-d1a6702b.js} +2 -2
- package/esm/component.js +3 -3
- package/esm/components/addon/component.js +2 -2
- package/esm/components/addon/index.css +10 -8
- package/esm/components/addon/index.js +1 -1
- package/esm/components/amount/component.js +2 -2
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount/index.js +1 -1
- package/esm/components/amount-title/component.js +2 -2
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/amount-title/index.js +1 -1
- package/esm/components/category/component.js +2 -2
- package/esm/components/category/index.css +4 -4
- package/esm/components/category/index.js +1 -1
- package/esm/components/comment/component.js +2 -2
- package/esm/components/comment/index.css +3 -3
- package/esm/components/comment/index.js +1 -1
- package/esm/components/content/component.js +3 -3
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +3 -3
- package/esm/components/footer/component.js +2 -2
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/index.js +1 -1
- package/esm/components/footer-button/component.js +2 -2
- package/esm/components/footer-button/index.css +2 -2
- package/esm/components/footer-button/index.d.ts +1 -1
- package/esm/components/footer-button/index.js +2 -2
- package/esm/components/footer-text/component.js +1 -1
- package/esm/components/footer-text/index.js +1 -1
- package/esm/components/graphics/component.js +2 -2
- package/esm/components/graphics/index.css +2 -2
- package/esm/components/graphics/index.js +1 -1
- package/esm/components/main/component.js +3 -3
- package/esm/components/main/index.css +4 -4
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +3 -3
- package/esm/components/text/component.js +3 -3
- package/esm/components/text/index.css +8 -8
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +3 -3
- package/esm/{getDataTestId-9d99176e.d.ts → getDataTestId-84bfcaab.d.ts} +0 -0
- package/esm/{getDataTestId-9d99176e.js → getDataTestId-84bfcaab.js} +0 -0
- package/esm/index.css +19 -19
- package/esm/index.d.ts +1 -1
- package/esm/index.js +3 -3
- package/{getDataTestId-e68fb1ee.d.ts → getDataTestId-49bb5c39.d.ts} +0 -0
- package/{getDataTestId-e68fb1ee.js → getDataTestId-49bb5c39.js} +0 -0
- package/index.css +19 -19
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/{cssm/component-1338a186.d.ts → modern/component-2ad59c5c.d.ts} +1 -1
- package/modern/{component-45177723.js → component-2ad59c5c.js} +19 -18
- package/{esm/component-3b03b872.d.ts → modern/component-cf0927a9.d.ts} +8 -8
- package/modern/component.js +2 -2
- package/modern/components/addon/component.js +2 -2
- package/modern/components/addon/index.css +10 -8
- package/modern/components/addon/index.js +1 -1
- package/modern/components/amount/component.js +2 -2
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount/index.js +1 -1
- package/modern/components/amount-title/component.js +2 -2
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/amount-title/index.js +1 -1
- package/modern/components/category/component.js +2 -2
- package/modern/components/category/index.css +4 -4
- package/modern/components/category/index.js +1 -1
- package/modern/components/comment/component.js +2 -2
- package/modern/components/comment/index.css +3 -3
- package/modern/components/comment/index.js +1 -1
- package/modern/components/content/component.js +2 -2
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/index.d.ts +1 -1
- package/modern/components/content/index.js +2 -2
- package/modern/components/footer/component.js +2 -2
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/index.js +1 -1
- package/modern/components/footer-button/component.js +2 -2
- package/modern/components/footer-button/index.css +2 -2
- package/modern/components/footer-button/index.js +1 -1
- package/modern/components/footer-text/component.js +1 -1
- package/modern/components/footer-text/index.js +1 -1
- package/modern/components/graphics/component.js +2 -2
- package/modern/components/graphics/index.css +2 -2
- package/modern/components/graphics/index.js +1 -1
- package/modern/components/main/component.js +2 -2
- package/modern/components/main/index.css +4 -4
- package/modern/components/main/index.d.ts +1 -1
- package/modern/components/main/index.js +2 -2
- package/modern/components/text/component.js +2 -2
- package/modern/components/text/index.css +8 -8
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +2 -2
- package/modern/{getDataTestId-7307cc73.d.ts → getDataTestId-8debaee9.d.ts} +0 -0
- package/modern/{getDataTestId-7307cc73.js → getDataTestId-8debaee9.js} +0 -0
- package/modern/index.css +19 -19
- package/modern/index.d.ts +1 -1
- package/modern/index.js +2 -2
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../component-
|
|
1
|
+
import '../../component-d1a6702b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-84bfcaab.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/esm';
|
|
9
9
|
import '@alfalab/core-components-amount/esm';
|
|
@@ -11,7 +11,7 @@ import '../amount/component.js';
|
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
13
|
import '../comment/component.js';
|
|
14
|
-
export { M as Main } from '../../component-
|
|
14
|
+
export { M as Main } from '../../component-cc5a30ff.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
17
|
import '../footer-text/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 58slw */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-3xs: 2px;
|
|
12
12
|
}
|
|
13
|
-
.pure-
|
|
13
|
+
.pure-cell__component_1q2xz {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-self: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/* can use /r/n */
|
|
19
19
|
white-space: pre-line
|
|
20
20
|
}
|
|
21
|
-
.pure-
|
|
21
|
+
.pure-cell__component_1q2xz.pure-cell__vertical_1q2xz {
|
|
22
22
|
grid-row-gap: var(--gap-3xs);
|
|
23
23
|
justify-content: center;
|
|
24
24
|
align-items: center;
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
/* for button */
|
|
27
27
|
text-align: center;
|
|
28
28
|
}
|
|
29
|
-
.pure-
|
|
29
|
+
.pure-cell__component_1q2xz.pure-cell__reverse_1q2xz {
|
|
30
30
|
flex-direction: column-reverse;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-cc5a30ff";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../component-
|
|
1
|
+
import '../../component-d1a6702b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-84bfcaab.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/esm';
|
|
9
9
|
import '@alfalab/core-components-amount/esm';
|
|
@@ -11,7 +11,7 @@ import '../amount/component.js';
|
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
13
|
import '../comment/component.js';
|
|
14
|
-
export { M as Main } from '../../component-
|
|
14
|
+
export { M as Main } from '../../component-cc5a30ff.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
17
|
import '../footer-text/component.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../component-
|
|
1
|
+
import '../../component-d1a6702b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-84bfcaab.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/esm';
|
|
9
9
|
import '@alfalab/core-components-amount/esm';
|
|
@@ -11,7 +11,7 @@ import '../amount/component.js';
|
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
13
|
import '../comment/component.js';
|
|
14
|
-
export { T as Text } from '../../component-
|
|
14
|
+
export { T as Text } from '../../component-cc5a30ff.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
17
|
import '../footer-text/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r334g */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -11,37 +11,37 @@
|
|
|
11
11
|
--gap-3xs: 2px;
|
|
12
12
|
--gap-m: 16px;
|
|
13
13
|
}
|
|
14
|
-
.pure-
|
|
14
|
+
.pure-cell__horizontal_1dq04 {
|
|
15
15
|
padding: var(--gap-3xs) 0;
|
|
16
16
|
}
|
|
17
|
-
.pure-
|
|
17
|
+
.pure-cell__rowLimit1_1dq04 {
|
|
18
18
|
display: -webkit-box;
|
|
19
19
|
-webkit-line-clamp: 1;
|
|
20
20
|
-webkit-box-orient: vertical;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
}
|
|
23
|
-
.pure-
|
|
23
|
+
.pure-cell__rowLimit2_1dq04 {
|
|
24
24
|
display: -webkit-box;
|
|
25
25
|
-webkit-line-clamp: 2;
|
|
26
26
|
-webkit-box-orient: vertical;
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
}
|
|
29
|
-
.pure-
|
|
29
|
+
.pure-cell__component_1dq04 {
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: row;
|
|
32
32
|
flex-wrap: nowrap;
|
|
33
33
|
justify-content: space-between;
|
|
34
34
|
margin: var(--gap-3xs) 0;
|
|
35
35
|
}
|
|
36
|
-
.pure-
|
|
36
|
+
.pure-cell__component_1dq04 .pure-cell__multiline_1dq04 {
|
|
37
37
|
display: -webkit-box;
|
|
38
38
|
-webkit-line-clamp: 5;
|
|
39
39
|
-webkit-box-orient: vertical;
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
}
|
|
42
|
-
.pure-
|
|
42
|
+
.pure-cell__component_1dq04 .pure-cell__vertical_1dq04 {
|
|
43
43
|
justify-content: center;
|
|
44
44
|
}
|
|
45
|
-
.pure-
|
|
45
|
+
.pure-cell__title_1dq04 {
|
|
46
46
|
margin-right: var(--gap-m);
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-cc5a30ff";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../component-
|
|
1
|
+
import '../../component-d1a6702b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-84bfcaab.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/esm';
|
|
9
9
|
import '@alfalab/core-components-amount/esm';
|
|
@@ -11,7 +11,7 @@ import '../amount/component.js';
|
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
13
|
import '../comment/component.js';
|
|
14
|
-
export { T as Text } from '../../component-
|
|
14
|
+
export { T as Text } from '../../component-cc5a30ff.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
17
|
import '../footer-text/component.js';
|
|
File without changes
|
|
File without changes
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hgn7 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
}
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
:root {
|
|
20
20
|
--focus-color: var(--color-light-border-link);
|
|
21
21
|
}
|
|
22
|
-
.pure-
|
|
22
|
+
.pure-cell__component_iwfp2 {
|
|
23
23
|
text-align: unset;
|
|
24
24
|
}
|
|
25
|
-
.pure-
|
|
25
|
+
.pure-cell__horizontal_iwfp2 {
|
|
26
26
|
display: flex;
|
|
27
27
|
width: 100%;
|
|
28
28
|
grid-column-gap: var(--gap-m);
|
|
29
29
|
}
|
|
30
|
-
.pure-
|
|
30
|
+
.pure-cell__vertical_iwfp2 {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
grid-row-gap: var(--gap-s);
|
|
35
35
|
}
|
|
36
|
-
.pure-
|
|
36
|
+
.pure-cell__button_iwfp2 {
|
|
37
37
|
font-family: inherit;
|
|
38
38
|
background: none;
|
|
39
39
|
border: 0;
|
|
@@ -42,50 +42,50 @@
|
|
|
42
42
|
transition: opacity 0.15s ease-in-out;
|
|
43
43
|
padding: 0
|
|
44
44
|
}
|
|
45
|
-
.pure-
|
|
45
|
+
.pure-cell__button_iwfp2:hover {
|
|
46
46
|
opacity: 0.8;
|
|
47
47
|
}
|
|
48
|
-
.pure-
|
|
48
|
+
.pure-cell__button_iwfp2:active {
|
|
49
49
|
opacity: 0.6;
|
|
50
50
|
}
|
|
51
|
-
.pure-
|
|
51
|
+
.pure-cell__link_iwfp2 {
|
|
52
52
|
text-decoration: none;
|
|
53
53
|
color: inherit;
|
|
54
54
|
cursor: pointer;
|
|
55
55
|
transition: opacity 0.15s ease-in-out
|
|
56
56
|
}
|
|
57
|
-
.pure-
|
|
57
|
+
.pure-cell__link_iwfp2:hover {
|
|
58
58
|
opacity: 0.8;
|
|
59
59
|
}
|
|
60
|
-
.pure-
|
|
60
|
+
.pure-cell__link_iwfp2:active {
|
|
61
61
|
opacity: 0.6;
|
|
62
62
|
}
|
|
63
|
-
.pure-
|
|
63
|
+
.pure-cell__none_iwfp2 {
|
|
64
64
|
padding: 0;
|
|
65
65
|
}
|
|
66
|
-
.pure-
|
|
66
|
+
.pure-cell__airy_iwfp2 {
|
|
67
67
|
padding: var(--gap-m) 0;
|
|
68
68
|
}
|
|
69
|
-
.pure-
|
|
69
|
+
.pure-cell__defaultPadding_iwfp2 {
|
|
70
70
|
padding: var(--gap-s) 0;
|
|
71
71
|
}
|
|
72
|
-
.pure-
|
|
72
|
+
.pure-cell__compact_iwfp2 {
|
|
73
73
|
padding: var(--gap-xs) 0;
|
|
74
74
|
}
|
|
75
|
-
.pure-
|
|
75
|
+
.pure-cell__tiny_iwfp2 {
|
|
76
76
|
padding: var(--gap-2xs) 0;
|
|
77
77
|
}
|
|
78
|
-
.pure-
|
|
78
|
+
.pure-cell__left_iwfp2 {
|
|
79
79
|
padding-left: var(--gap-m);
|
|
80
80
|
}
|
|
81
|
-
.pure-
|
|
81
|
+
.pure-cell__right_iwfp2 {
|
|
82
82
|
padding-right: var(--gap-m);
|
|
83
83
|
}
|
|
84
|
-
.pure-
|
|
84
|
+
.pure-cell__both_iwfp2 {
|
|
85
85
|
padding-right: var(--gap-m);
|
|
86
86
|
padding-left: var(--gap-m);
|
|
87
87
|
}
|
|
88
|
-
.pure-
|
|
88
|
+
.pure-cell__focused_iwfp2 {
|
|
89
89
|
outline: 2px solid var(--focus-color);
|
|
90
90
|
outline-offset: 2px;
|
|
91
91
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PureCell } from "./component-
|
|
1
|
+
export { PureCell } from "./component-cf0927a9";
|
package/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './component-
|
|
1
|
+
import './component-d1a6702b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
import './getDataTestId-
|
|
6
|
+
import './getDataTestId-84bfcaab.js';
|
|
7
7
|
import './components/addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/esm';
|
|
9
9
|
import '@alfalab/core-components-amount/esm';
|
|
@@ -11,7 +11,7 @@ import './components/amount/component.js';
|
|
|
11
11
|
import './components/amount-title/component.js';
|
|
12
12
|
import './components/category/component.js';
|
|
13
13
|
import './components/comment/component.js';
|
|
14
|
-
export { P as PureCell } from './component-
|
|
14
|
+
export { P as PureCell } from './component-cc5a30ff.js';
|
|
15
15
|
import './components/footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
17
|
import './components/footer-text/component.js';
|
|
File without changes
|
|
File without changes
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hgn7 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
}
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
:root {
|
|
20
20
|
--focus-color: var(--color-light-border-link);
|
|
21
21
|
}
|
|
22
|
-
.pure-
|
|
22
|
+
.pure-cell__component_iwfp2 {
|
|
23
23
|
text-align: unset;
|
|
24
24
|
}
|
|
25
|
-
.pure-
|
|
25
|
+
.pure-cell__horizontal_iwfp2 {
|
|
26
26
|
display: flex;
|
|
27
27
|
width: 100%;
|
|
28
28
|
grid-column-gap: var(--gap-m);
|
|
29
29
|
}
|
|
30
|
-
.pure-
|
|
30
|
+
.pure-cell__vertical_iwfp2 {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
grid-row-gap: var(--gap-s);
|
|
35
35
|
}
|
|
36
|
-
.pure-
|
|
36
|
+
.pure-cell__button_iwfp2 {
|
|
37
37
|
font-family: inherit;
|
|
38
38
|
background: none;
|
|
39
39
|
border: 0;
|
|
@@ -42,50 +42,50 @@
|
|
|
42
42
|
transition: opacity 0.15s ease-in-out;
|
|
43
43
|
padding: 0
|
|
44
44
|
}
|
|
45
|
-
.pure-
|
|
45
|
+
.pure-cell__button_iwfp2:hover {
|
|
46
46
|
opacity: 0.8;
|
|
47
47
|
}
|
|
48
|
-
.pure-
|
|
48
|
+
.pure-cell__button_iwfp2:active {
|
|
49
49
|
opacity: 0.6;
|
|
50
50
|
}
|
|
51
|
-
.pure-
|
|
51
|
+
.pure-cell__link_iwfp2 {
|
|
52
52
|
text-decoration: none;
|
|
53
53
|
color: inherit;
|
|
54
54
|
cursor: pointer;
|
|
55
55
|
transition: opacity 0.15s ease-in-out
|
|
56
56
|
}
|
|
57
|
-
.pure-
|
|
57
|
+
.pure-cell__link_iwfp2:hover {
|
|
58
58
|
opacity: 0.8;
|
|
59
59
|
}
|
|
60
|
-
.pure-
|
|
60
|
+
.pure-cell__link_iwfp2:active {
|
|
61
61
|
opacity: 0.6;
|
|
62
62
|
}
|
|
63
|
-
.pure-
|
|
63
|
+
.pure-cell__none_iwfp2 {
|
|
64
64
|
padding: 0;
|
|
65
65
|
}
|
|
66
|
-
.pure-
|
|
66
|
+
.pure-cell__airy_iwfp2 {
|
|
67
67
|
padding: var(--gap-m) 0;
|
|
68
68
|
}
|
|
69
|
-
.pure-
|
|
69
|
+
.pure-cell__defaultPadding_iwfp2 {
|
|
70
70
|
padding: var(--gap-s) 0;
|
|
71
71
|
}
|
|
72
|
-
.pure-
|
|
72
|
+
.pure-cell__compact_iwfp2 {
|
|
73
73
|
padding: var(--gap-xs) 0;
|
|
74
74
|
}
|
|
75
|
-
.pure-
|
|
75
|
+
.pure-cell__tiny_iwfp2 {
|
|
76
76
|
padding: var(--gap-2xs) 0;
|
|
77
77
|
}
|
|
78
|
-
.pure-
|
|
78
|
+
.pure-cell__left_iwfp2 {
|
|
79
79
|
padding-left: var(--gap-m);
|
|
80
80
|
}
|
|
81
|
-
.pure-
|
|
81
|
+
.pure-cell__right_iwfp2 {
|
|
82
82
|
padding-right: var(--gap-m);
|
|
83
83
|
}
|
|
84
|
-
.pure-
|
|
84
|
+
.pure-cell__both_iwfp2 {
|
|
85
85
|
padding-right: var(--gap-m);
|
|
86
86
|
padding-left: var(--gap-m);
|
|
87
87
|
}
|
|
88
|
-
.pure-
|
|
88
|
+
.pure-cell__focused_iwfp2 {
|
|
89
89
|
outline: 2px solid var(--focus-color);
|
|
90
90
|
outline-offset: 2px;
|
|
91
91
|
}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PureCell } from "./component-
|
|
1
|
+
export { PureCell } from "./component-cf0927a9";
|
package/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./component-
|
|
5
|
+
require('./component-04c6d9c4.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-merge-refs');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('@alfalab/hooks');
|
|
10
|
-
require('./getDataTestId-
|
|
10
|
+
require('./getDataTestId-49bb5c39.js');
|
|
11
11
|
require('./components/addon/component.js');
|
|
12
12
|
require('@alfalab/core-components-typography');
|
|
13
13
|
require('@alfalab/core-components-amount');
|
|
@@ -15,7 +15,7 @@ require('./components/amount/component.js');
|
|
|
15
15
|
require('./components/amount-title/component.js');
|
|
16
16
|
require('./components/category/component.js');
|
|
17
17
|
require('./components/comment/component.js');
|
|
18
|
-
var components_content_component = require('./component-
|
|
18
|
+
var components_content_component = require('./component-3f80589a.js');
|
|
19
19
|
require('./components/footer/component.js');
|
|
20
20
|
require('@alfalab/core-components-button');
|
|
21
21
|
require('./components/footer-text/component.js');
|
|
@@ -2,7 +2,7 @@ import React, { useContext, forwardRef, useRef } from 'react';
|
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
|
-
import { g as getDataTestId } from './getDataTestId-
|
|
5
|
+
import { g as getDataTestId } from './getDataTestId-8debaee9.js';
|
|
6
6
|
import { Addon } from './components/addon/component.js';
|
|
7
7
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
8
8
|
import { Amount } from './components/amount/component.js';
|
|
@@ -14,7 +14,7 @@ import { FooterButton } from './components/footer-button/component.js';
|
|
|
14
14
|
import { FooterText } from './components/footer-text/component.js';
|
|
15
15
|
import { Graphics } from './components/graphics/component.js';
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"pure-
|
|
17
|
+
var styles = {"component":"pure-cell__component_klqs4","horizontal":"pure-cell__horizontal_klqs4"};
|
|
18
18
|
require('./components/content/index.css')
|
|
19
19
|
|
|
20
20
|
const Content = ({ children, dataTestId }) => {
|
|
@@ -22,7 +22,7 @@ const Content = ({ children, dataTestId }) => {
|
|
|
22
22
|
return (React.createElement("section", { className: cn(styles.component, { [styles.horizontal]: direction === 'horizontal' }), "data-test-id": getDataTestId(dataTestId, 'content') }, children));
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var styles$1 = {"component":"pure-
|
|
25
|
+
var styles$1 = {"component":"pure-cell__component_1q2xz","vertical":"pure-cell__vertical_1q2xz","reverse":"pure-cell__reverse_1q2xz"};
|
|
26
26
|
require('./components/main/index.css')
|
|
27
27
|
|
|
28
28
|
const Main = ({ children, isReverse, dataTestId }) => {
|
|
@@ -32,7 +32,7 @@ const Main = ({ children, isReverse, dataTestId }) => {
|
|
|
32
32
|
}), "data-test-id": getDataTestId(dataTestId, 'main') }, children));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var styles$2 = {"horizontal":"pure-
|
|
35
|
+
var styles$2 = {"horizontal":"pure-cell__horizontal_1dq04","rowLimit1":"pure-cell__rowLimit1_1dq04","rowLimit2":"pure-cell__rowLimit2_1dq04","component":"pure-cell__component_1dq04","multiline":"pure-cell__multiline_1dq04","vertical":"pure-cell__vertical_1dq04","title":"pure-cell__title_1dq04"};
|
|
36
36
|
require('./components/text/index.css')
|
|
37
37
|
|
|
38
38
|
const Text = ({ children, value, rowLimit, isMultiline, view = 'component', titleColor, valueColor, dataTestId, }) => {
|
|
@@ -40,41 +40,42 @@ const Text = ({ children, value, rowLimit, isMultiline, view = 'component', titl
|
|
|
40
40
|
return (React.createElement("div", { className: cn(styles$2.component, {
|
|
41
41
|
[styles$2.vertical]: direction !== 'horizontal',
|
|
42
42
|
}) },
|
|
43
|
-
React.createElement("span", { className: cn(styles$2.title) },
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
[styles$2.multiline]: isMultiline,
|
|
51
|
-
}), "data-test-id": getDataTestId(dataTestId, 'text') }, value))));
|
|
43
|
+
React.createElement("span", { className: cn(styles$2.title) }, typeof children === 'string' ? (React.createElement(Typography.Text, { view: view, color: titleColor, className: cn(rowLimit && styles$2[`rowLimit${rowLimit}`], {
|
|
44
|
+
[styles$2.rowLimit1]: !isMultiline,
|
|
45
|
+
}), "data-test-id": getDataTestId(dataTestId, 'text') }, children)) : (children)),
|
|
46
|
+
React.createElement("span", null, typeof value === 'string' ? (React.createElement(Typography.Text, { view: view, color: valueColor, className: cn({
|
|
47
|
+
[styles$2[`rowLimit${rowLimit}`]]: rowLimit,
|
|
48
|
+
[styles$2.multiline]: isMultiline,
|
|
49
|
+
}), "data-test-id": getDataTestId(dataTestId, 'text') }, value)) : (value))));
|
|
52
50
|
};
|
|
53
51
|
|
|
54
|
-
var styles$3 = {"component":"pure-
|
|
52
|
+
var styles$3 = {"component":"pure-cell__component_iwfp2","horizontal":"pure-cell__horizontal_iwfp2","vertical":"pure-cell__vertical_iwfp2","button":"pure-cell__button_iwfp2","link":"pure-cell__link_iwfp2","none":"pure-cell__none_iwfp2","airy":"pure-cell__airy_iwfp2","defaultPadding":"pure-cell__defaultPadding_iwfp2","compact":"pure-cell__compact_iwfp2","tiny":"pure-cell__tiny_iwfp2","left":"pure-cell__left_iwfp2","right":"pure-cell__right_iwfp2","both":"pure-cell__both_iwfp2","focused":"pure-cell__focused_iwfp2"};
|
|
55
53
|
require('./index.css')
|
|
56
54
|
|
|
57
55
|
const PureCellContext = React.createContext({});
|
|
58
|
-
const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, tag: Component = (href && 'a') || (onClick && 'button') || 'section', children, horizontalPadding = '
|
|
56
|
+
const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, tag: Component = (href && 'a') || (onClick && 'button') || 'section', children, horizontalPadding = 'none', verticalPadding = 'none', direction = 'horizontal', ...restProps }, ref) => {
|
|
59
57
|
const cellRef = useRef(null);
|
|
60
58
|
const [focused] = useFocus(cellRef, 'keyboard');
|
|
61
59
|
const addClasses = {
|
|
62
60
|
[styles$3.component]: true,
|
|
63
61
|
[styles$3.focused]: focused,
|
|
64
62
|
[styles$3[direction]]: true,
|
|
63
|
+
[styles$3.defaultPadding]: verticalPadding === 'default',
|
|
64
|
+
[styles$3[verticalPadding]]: verticalPadding !== 'default',
|
|
65
|
+
[styles$3[horizontalPadding]]: true,
|
|
65
66
|
};
|
|
66
67
|
if (href) {
|
|
67
68
|
const { target } = restProps;
|
|
68
69
|
// Для совместимости с react-router-dom, меняем href на to
|
|
69
70
|
const hrefProps = { [typeof Component === 'string' ? 'href' : 'to']: href };
|
|
70
|
-
return (React.createElement(Component, Object.assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.link, addClasses, className
|
|
71
|
+
return (React.createElement(Component, Object.assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
|
|
71
72
|
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
72
73
|
}
|
|
73
74
|
if (onClick) {
|
|
74
|
-
return (React.createElement(Component, Object.assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.button, addClasses,
|
|
75
|
+
return (React.createElement(Component, Object.assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
|
|
75
76
|
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
76
77
|
}
|
|
77
|
-
return (React.createElement(Component, { ref: ref, tabIndex: 0, className: cn(addClasses,
|
|
78
|
+
return (React.createElement(Component, { ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId },
|
|
78
79
|
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
79
80
|
});
|
|
80
81
|
/**
|
|
@@ -64,9 +64,9 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
|
|
|
64
64
|
rowLimit?: 1 | 2 | undefined;
|
|
65
65
|
isMultiline?: boolean | undefined;
|
|
66
66
|
view: "primary-small" | "component";
|
|
67
|
-
titleColor: "
|
|
68
|
-
value?:
|
|
69
|
-
valueColor?: "
|
|
67
|
+
titleColor: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative";
|
|
68
|
+
value?: React.ReactNode;
|
|
69
|
+
valueColor?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
70
70
|
dataTestId?: string | undefined;
|
|
71
71
|
children?: React.ReactNode;
|
|
72
72
|
}>;
|
|
@@ -74,27 +74,27 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
|
|
|
74
74
|
amount: import("./components/typesProps").AmountProps;
|
|
75
75
|
weight?: "bold" | "normal" | undefined;
|
|
76
76
|
view?: "primary-small" | "component" | undefined;
|
|
77
|
-
color?: "
|
|
77
|
+
color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
78
78
|
dataTestId?: string | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
AmountTitle: React.FC<{
|
|
81
81
|
amount: import("./components/typesProps").AmountProps;
|
|
82
|
-
color?: "
|
|
82
|
+
color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
83
83
|
dataTestId?: string | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
Addon: React.FC<{
|
|
86
86
|
verticalAlign?: "center" | undefined;
|
|
87
|
-
addonPadding?: "
|
|
87
|
+
addonPadding?: "default" | "none" | undefined;
|
|
88
88
|
children: import("./components/types").AddonElement;
|
|
89
89
|
dataTestId?: string | undefined;
|
|
90
90
|
}>;
|
|
91
91
|
Footer: React.FC<{
|
|
92
92
|
children: import("./components/types").FooterElement;
|
|
93
|
-
footerPadding?: "
|
|
93
|
+
footerPadding?: "default" | "none" | undefined;
|
|
94
94
|
dataTestId?: string | undefined;
|
|
95
95
|
}>;
|
|
96
96
|
ExtraSubtitle: React.FC<import("./components/footer-text/index").Props>;
|
|
97
|
-
FooterButton: React.FC<Partial<import("
|
|
97
|
+
FooterButton: React.FC<Partial<import("@alfalab/core-components-button").AnchorButtonProps> | Partial<import("@alfalab/core-components-button").NativeButtonProps>>;
|
|
98
98
|
Comment: React.FC<{
|
|
99
99
|
children: import("./components/types").CommentElement;
|
|
100
100
|
dataTestId?: string | undefined;
|
package/modern/component.js
CHANGED
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
import 'react-merge-refs';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
|
-
import './getDataTestId-
|
|
5
|
+
import './getDataTestId-8debaee9.js';
|
|
6
6
|
import './components/addon/component.js';
|
|
7
7
|
import '@alfalab/core-components-typography/modern';
|
|
8
8
|
import '@alfalab/core-components-amount/modern';
|
|
@@ -10,7 +10,7 @@ import './components/amount/component.js';
|
|
|
10
10
|
import './components/amount-title/component.js';
|
|
11
11
|
import './components/category/component.js';
|
|
12
12
|
import './components/comment/component.js';
|
|
13
|
-
export { P as PureCell, a as PureCellContext } from './component-
|
|
13
|
+
export { P as PureCell, a as PureCellContext } from './component-2ad59c5c.js';
|
|
14
14
|
import './components/footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import './components/footer-button/component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
3
|
+
import { g as getDataTestId } from '../../getDataTestId-8debaee9.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_1xt1b","none":"pure-cell__none_1xt1b","default":"pure-cell__default_1xt1b","addonPadding":"pure-cell__addonPadding_1xt1b","center":"pure-cell__center_1xt1b"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Addon = ({ children, verticalAlign, addonPadding = 'default', dataTestId, }) => (React.createElement("section", { className: cn(styles.component, styles[addonPadding], {
|