@alfalab/core-components-pure-cell 1.1.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/CHANGELOG.md +22 -0
- package/dist/component-6a05fa6a.d.ts +36 -0
- package/dist/component-6a05fa6a.js +59 -0
- package/dist/component-7b7f28f3.d.ts +107 -0
- package/dist/component-f199efcf.d.ts +62 -0
- package/dist/component-f199efcf.js +120 -0
- package/dist/component.d.ts +0 -0
- package/dist/component.js +27 -0
- package/dist/components/addon/component.d.ts +23 -0
- package/dist/components/addon/component.js +25 -0
- package/dist/components/addon/index.css +28 -0
- package/dist/components/addon/index.d.ts +1 -0
- package/dist/components/addon/index.js +12 -0
- package/dist/components/amount/component.d.ts +28 -0
- package/dist/components/amount/component.js +26 -0
- package/dist/components/amount/index.css +16 -0
- package/dist/components/amount/index.d.ts +1 -0
- package/dist/components/amount/index.js +14 -0
- package/dist/components/amount-title/component.d.ts +20 -0
- package/dist/components/amount-title/component.js +26 -0
- package/dist/components/amount-title/index.css +15 -0
- package/dist/components/amount-title/index.d.ts +1 -0
- package/dist/components/amount-title/index.js +14 -0
- package/dist/components/category/component.d.ts +18 -0
- package/dist/components/category/component.js +25 -0
- package/dist/components/category/index.css +36 -0
- package/dist/components/category/index.d.ts +1 -0
- package/dist/components/category/index.js +12 -0
- package/dist/components/comment/component.d.ts +15 -0
- package/dist/components/comment/component.js +22 -0
- package/dist/components/comment/index.css +34 -0
- package/dist/components/comment/index.d.ts +1 -0
- package/dist/components/comment/index.js +12 -0
- package/dist/components/content/component.d.ts +0 -0
- package/dist/components/content/component.js +26 -0
- package/dist/components/content/index.css +17 -0
- package/dist/components/content/index.d.ts +1 -0
- package/dist/components/content/index.js +26 -0
- package/dist/components/footer/component.d.ts +19 -0
- package/dist/components/footer/component.js +22 -0
- package/dist/components/footer/index.css +23 -0
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/footer/index.js +12 -0
- package/dist/components/footer-button/component.d.ts +0 -0
- package/dist/components/footer-button/component.js +12 -0
- package/dist/components/footer-button/index.css +12 -0
- package/dist/components/footer-button/index.d.ts +1 -0
- package/dist/components/footer-button/index.js +12 -0
- package/dist/components/footer-text/component.d.ts +15 -0
- package/dist/components/footer-text/component.js +18 -0
- package/dist/components/footer-text/index.d.ts +1 -0
- package/dist/components/footer-text/index.js +12 -0
- package/dist/components/graphics/component.d.ts +15 -0
- package/dist/components/graphics/component.js +20 -0
- package/dist/components/graphics/index.css +12 -0
- package/dist/components/graphics/index.d.ts +1 -0
- package/dist/components/graphics/index.js +11 -0
- package/dist/components/main/component.d.ts +0 -0
- package/dist/components/main/component.js +26 -0
- package/dist/components/main/index.css +31 -0
- package/dist/components/main/index.d.ts +1 -0
- package/dist/components/main/index.js +26 -0
- package/dist/components/text/component.d.ts +0 -0
- package/dist/components/text/component.js +26 -0
- package/dist/components/text/index.css +47 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +26 -0
- package/dist/components/types.d.ts +21 -0
- package/dist/components/types.js +2 -0
- package/dist/components/typesProps.d.ts +46 -0
- package/dist/components/typesProps.js +2 -0
- package/dist/cssm/component-22ece846.d.ts +36 -0
- package/dist/cssm/component-22ece846.js +58 -0
- package/dist/cssm/component-7b7f28f3.d.ts +107 -0
- package/dist/cssm/component-a5914e3d.d.ts +62 -0
- package/dist/cssm/component-a5914e3d.js +116 -0
- package/dist/cssm/component.d.ts +0 -0
- package/dist/cssm/component.js +39 -0
- package/dist/cssm/components/addon/component.d.ts +23 -0
- package/dist/cssm/components/addon/component.js +24 -0
- package/dist/cssm/components/addon/index.d.ts +1 -0
- package/dist/cssm/components/addon/index.js +13 -0
- package/dist/cssm/components/addon/index.module.css +27 -0
- package/dist/cssm/components/amount/component.d.ts +28 -0
- package/dist/cssm/components/amount/component.js +25 -0
- package/dist/cssm/components/amount/index.d.ts +1 -0
- package/dist/cssm/components/amount/index.js +15 -0
- package/dist/cssm/components/amount/index.module.css +15 -0
- package/dist/cssm/components/amount-title/component.d.ts +20 -0
- package/dist/cssm/components/amount-title/component.js +25 -0
- package/dist/cssm/components/amount-title/index.d.ts +1 -0
- package/dist/cssm/components/amount-title/index.js +15 -0
- package/dist/cssm/components/amount-title/index.module.css +14 -0
- package/dist/cssm/components/category/component.d.ts +18 -0
- package/dist/cssm/components/category/component.js +24 -0
- package/dist/cssm/components/category/index.d.ts +1 -0
- package/dist/cssm/components/category/index.js +13 -0
- package/dist/cssm/components/category/index.module.css +35 -0
- package/dist/cssm/components/comment/component.d.ts +15 -0
- package/dist/cssm/components/comment/component.js +21 -0
- package/dist/cssm/components/comment/index.d.ts +1 -0
- package/dist/cssm/components/comment/index.js +13 -0
- package/dist/cssm/components/comment/index.module.css +33 -0
- package/dist/cssm/components/content/component.d.ts +0 -0
- package/dist/cssm/components/content/component.js +38 -0
- package/dist/cssm/components/content/index.d.ts +1 -0
- package/dist/cssm/components/content/index.js +38 -0
- package/dist/cssm/components/content/index.module.css +16 -0
- package/dist/cssm/components/footer/component.d.ts +19 -0
- package/dist/cssm/components/footer/component.js +21 -0
- package/dist/cssm/components/footer/index.d.ts +1 -0
- package/dist/cssm/components/footer/index.js +13 -0
- package/dist/cssm/components/footer/index.module.css +22 -0
- package/dist/cssm/components/footer-button/component.d.ts +0 -0
- package/dist/cssm/components/footer-button/component.js +13 -0
- package/dist/cssm/components/footer-button/index.d.ts +1 -0
- package/dist/cssm/components/footer-button/index.js +13 -0
- package/dist/cssm/components/footer-button/index.module.css +11 -0
- package/dist/cssm/components/footer-text/component.d.ts +15 -0
- package/dist/cssm/components/footer-text/component.js +18 -0
- package/dist/cssm/components/footer-text/index.d.ts +1 -0
- package/dist/cssm/components/footer-text/index.js +12 -0
- package/dist/cssm/components/graphics/component.d.ts +15 -0
- package/dist/cssm/components/graphics/component.js +19 -0
- package/dist/cssm/components/graphics/index.d.ts +1 -0
- package/dist/cssm/components/graphics/index.js +12 -0
- package/dist/cssm/components/graphics/index.module.css +11 -0
- package/dist/cssm/components/main/component.d.ts +0 -0
- package/dist/cssm/components/main/component.js +38 -0
- package/dist/cssm/components/main/index.d.ts +1 -0
- package/dist/cssm/components/main/index.js +38 -0
- package/dist/cssm/components/main/index.module.css +30 -0
- package/dist/cssm/components/text/component.d.ts +0 -0
- package/dist/cssm/components/text/component.js +38 -0
- package/dist/cssm/components/text/index.d.ts +1 -0
- package/dist/cssm/components/text/index.js +38 -0
- package/dist/cssm/components/text/index.module.css +46 -0
- package/dist/cssm/components/types.d.ts +21 -0
- package/dist/cssm/components/types.js +2 -0
- package/dist/cssm/components/typesProps.d.ts +46 -0
- package/dist/cssm/components/typesProps.js +2 -0
- package/dist/cssm/getDataTestId-12a31ec3.d.ts +2 -0
- package/dist/cssm/getDataTestId-12a31ec3.js +8 -0
- package/dist/cssm/index.d.ts +1 -0
- package/dist/cssm/index.js +38 -0
- package/dist/cssm/index.module.css +87 -0
- package/dist/esm/component-0a200d52.d.ts +62 -0
- package/dist/esm/component-0a200d52.js +108 -0
- package/dist/esm/component-7afaa00b.d.ts +36 -0
- package/dist/esm/component-7afaa00b.js +52 -0
- package/dist/esm/component-7b7f28f3.d.ts +107 -0
- package/dist/esm/component.d.ts +0 -0
- package/dist/esm/component.js +18 -0
- package/dist/esm/components/addon/component.d.ts +23 -0
- package/dist/esm/components/addon/component.js +16 -0
- package/dist/esm/components/addon/index.css +28 -0
- package/dist/esm/components/addon/index.d.ts +1 -0
- package/dist/esm/components/addon/index.js +4 -0
- package/dist/esm/components/amount/component.d.ts +28 -0
- package/dist/esm/components/amount/component.js +17 -0
- package/dist/esm/components/amount/index.css +16 -0
- package/dist/esm/components/amount/index.d.ts +1 -0
- package/dist/esm/components/amount/index.js +6 -0
- package/dist/esm/components/amount-title/component.d.ts +20 -0
- package/dist/esm/components/amount-title/component.js +17 -0
- package/dist/esm/components/amount-title/index.css +15 -0
- package/dist/esm/components/amount-title/index.d.ts +1 -0
- package/dist/esm/components/amount-title/index.js +6 -0
- package/dist/esm/components/category/component.d.ts +18 -0
- package/dist/esm/components/category/component.js +17 -0
- package/dist/esm/components/category/index.css +36 -0
- package/dist/esm/components/category/index.d.ts +1 -0
- package/dist/esm/components/category/index.js +4 -0
- package/dist/esm/components/comment/component.d.ts +15 -0
- package/dist/esm/components/comment/component.js +14 -0
- package/dist/esm/components/comment/index.css +34 -0
- package/dist/esm/components/comment/index.d.ts +1 -0
- package/dist/esm/components/comment/index.js +4 -0
- package/dist/esm/components/content/component.d.ts +0 -0
- package/dist/esm/components/content/component.js +18 -0
- package/dist/esm/components/content/index.css +17 -0
- package/dist/esm/components/content/index.d.ts +1 -0
- package/dist/esm/components/content/index.js +18 -0
- package/dist/esm/components/footer/component.d.ts +19 -0
- package/dist/esm/components/footer/component.js +13 -0
- package/dist/esm/components/footer/index.css +23 -0
- package/dist/esm/components/footer/index.d.ts +1 -0
- package/dist/esm/components/footer/index.js +4 -0
- package/dist/esm/components/footer-button/component.d.ts +0 -0
- package/dist/esm/components/footer-button/component.js +4 -0
- package/dist/esm/components/footer-button/index.css +12 -0
- package/dist/esm/components/footer-button/index.d.ts +1 -0
- package/dist/esm/components/footer-button/index.js +4 -0
- package/dist/esm/components/footer-text/component.d.ts +15 -0
- package/dist/esm/components/footer-text/component.js +10 -0
- package/dist/esm/components/footer-text/index.d.ts +1 -0
- package/dist/esm/components/footer-text/index.js +4 -0
- package/dist/esm/components/graphics/component.d.ts +15 -0
- package/dist/esm/components/graphics/component.js +12 -0
- package/dist/esm/components/graphics/index.css +12 -0
- package/dist/esm/components/graphics/index.d.ts +1 -0
- package/dist/esm/components/graphics/index.js +3 -0
- package/dist/esm/components/main/component.d.ts +0 -0
- package/dist/esm/components/main/component.js +18 -0
- package/dist/esm/components/main/index.css +31 -0
- package/dist/esm/components/main/index.d.ts +1 -0
- package/dist/esm/components/main/index.js +18 -0
- package/dist/esm/components/text/component.d.ts +0 -0
- package/dist/esm/components/text/component.js +18 -0
- package/dist/esm/components/text/index.css +47 -0
- package/dist/esm/components/text/index.d.ts +1 -0
- package/dist/esm/components/text/index.js +18 -0
- package/dist/esm/components/types.d.ts +21 -0
- package/dist/esm/components/types.js +1 -0
- package/dist/esm/components/typesProps.d.ts +46 -0
- package/dist/esm/components/typesProps.js +1 -0
- package/dist/esm/getDataTestId-babf3783.d.ts +2 -0
- package/dist/esm/getDataTestId-babf3783.js +6 -0
- package/dist/esm/index.css +88 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/getDataTestId-00d7409e.d.ts +2 -0
- package/dist/getDataTestId-00d7409e.js +8 -0
- package/dist/index.css +88 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -0
- package/dist/modern/component-7b7f28f3.d.ts +107 -0
- package/dist/modern/component-9c1fe763.d.ts +62 -0
- package/dist/modern/component-9c1fe763.js +100 -0
- package/dist/modern/component.d.ts +0 -0
- package/dist/modern/component.js +18 -0
- package/dist/modern/components/addon/component.d.ts +23 -0
- package/dist/modern/components/addon/component.js +12 -0
- package/dist/modern/components/addon/index.css +28 -0
- package/dist/modern/components/addon/index.d.ts +1 -0
- package/dist/modern/components/addon/index.js +4 -0
- package/dist/modern/components/amount/component.d.ts +28 -0
- package/dist/modern/components/amount/component.js +16 -0
- package/dist/modern/components/amount/index.css +16 -0
- package/dist/modern/components/amount/index.d.ts +1 -0
- package/dist/modern/components/amount/index.js +6 -0
- package/dist/modern/components/amount-title/component.d.ts +20 -0
- package/dist/modern/components/amount-title/component.js +16 -0
- package/dist/modern/components/amount-title/index.css +15 -0
- package/dist/modern/components/amount-title/index.d.ts +1 -0
- package/dist/modern/components/amount-title/index.js +6 -0
- package/dist/modern/components/category/component.d.ts +18 -0
- package/dist/modern/components/category/component.js +14 -0
- package/dist/modern/components/category/index.css +36 -0
- package/dist/modern/components/category/index.d.ts +1 -0
- package/dist/modern/components/category/index.js +4 -0
- package/dist/modern/components/comment/component.d.ts +15 -0
- package/dist/modern/components/comment/component.js +11 -0
- package/dist/modern/components/comment/index.css +34 -0
- package/dist/modern/components/comment/index.d.ts +1 -0
- package/dist/modern/components/comment/index.js +4 -0
- package/dist/modern/components/content/component.d.ts +0 -0
- package/dist/modern/components/content/component.js +18 -0
- package/dist/modern/components/content/index.css +17 -0
- package/dist/modern/components/content/index.d.ts +1 -0
- package/dist/modern/components/content/index.js +18 -0
- package/dist/modern/components/footer/component.d.ts +19 -0
- package/dist/modern/components/footer/component.js +10 -0
- package/dist/modern/components/footer/index.css +23 -0
- package/dist/modern/components/footer/index.d.ts +1 -0
- package/dist/modern/components/footer/index.js +4 -0
- package/dist/modern/components/footer-button/component.d.ts +5 -0
- package/dist/modern/components/footer-button/component.js +10 -0
- package/dist/modern/components/footer-button/index.css +12 -0
- package/dist/modern/components/footer-button/index.d.ts +1 -0
- package/dist/modern/components/footer-button/index.js +4 -0
- package/dist/modern/components/footer-text/component.d.ts +15 -0
- package/dist/modern/components/footer-text/component.js +7 -0
- package/dist/modern/components/footer-text/index.d.ts +1 -0
- package/dist/modern/components/footer-text/index.js +4 -0
- package/dist/modern/components/graphics/component.d.ts +15 -0
- package/dist/modern/components/graphics/component.js +11 -0
- package/dist/modern/components/graphics/index.css +12 -0
- package/dist/modern/components/graphics/index.d.ts +1 -0
- package/dist/modern/components/graphics/index.js +3 -0
- package/dist/modern/components/main/component.d.ts +0 -0
- package/dist/modern/components/main/component.js +18 -0
- package/dist/modern/components/main/index.css +31 -0
- package/dist/modern/components/main/index.d.ts +1 -0
- package/dist/modern/components/main/index.js +18 -0
- package/dist/modern/components/text/component.d.ts +0 -0
- package/dist/modern/components/text/component.js +18 -0
- package/dist/modern/components/text/index.css +47 -0
- package/dist/modern/components/text/index.d.ts +1 -0
- package/dist/modern/components/text/index.js +18 -0
- package/dist/modern/components/types.d.ts +21 -0
- package/dist/modern/components/types.js +1 -0
- package/dist/modern/components/typesProps.d.ts +46 -0
- package/dist/modern/components/typesProps.js +1 -0
- package/dist/modern/getDataTestId-0bb060c4.d.ts +2 -0
- package/dist/modern/getDataTestId-0bb060c4.js +6 -0
- package/dist/modern/index.css +88 -0
- package/dist/modern/index.d.ts +1 -0
- package/dist/modern/index.js +18 -0
- package/dist/send-stats.js +82 -0
- package/package.json +31 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* hash: 19s8b */
|
|
2
|
+
.pure-cell__component_7do4h {
|
|
3
|
+
text-align: unset;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pure-cell__horizontal_7do4h {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
grid-column-gap: var(--gap-m);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pure-cell__vertical_7do4h {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
grid-row-gap: var(--gap-s);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pure-cell__button_7do4h {
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
background: none;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: opacity 0.15s ease-in-out;
|
|
26
|
+
padding: 0
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pure-cell__button_7do4h:hover {
|
|
30
|
+
opacity: 0.8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pure-cell__button_7do4h:active {
|
|
34
|
+
opacity: 0.6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pure-cell__link_7do4h {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: opacity 0.15s ease-in-out
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pure-cell__link_7do4h:hover {
|
|
45
|
+
opacity: 0.8;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pure-cell__link_7do4h:active {
|
|
49
|
+
opacity: 0.6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pure-cell__none_7do4h {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pure-cell__airy_7do4h {
|
|
57
|
+
padding: var(--gap-m) 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pure-cell__default_7do4h {
|
|
61
|
+
padding: var(--gap-s) 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pure-cell__compact_7do4h {
|
|
65
|
+
padding: var(--gap-xs) 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pure-cell__tiny_7do4h {
|
|
69
|
+
padding: var(--gap-2xs) 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pure-cell__left_7do4h {
|
|
73
|
+
padding-left: var(--gap-m);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pure-cell__right_7do4h {
|
|
77
|
+
padding-right: var(--gap-m);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pure-cell__both_7do4h {
|
|
81
|
+
padding-right: var(--gap-m);
|
|
82
|
+
padding-left: var(--gap-m);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pure-cell__focused_7do4h {
|
|
86
|
+
outline: 2px solid var(--focus-color);
|
|
87
|
+
outline-offset: 2px;
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PureCell } from "./component-7b7f28f3";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './component-7afaa00b.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react-merge-refs';
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '@alfalab/hooks';
|
|
6
|
+
import './getDataTestId-babf3783.js';
|
|
7
|
+
import './components/addon/component.js';
|
|
8
|
+
import '@alfalab/core-components-typography/dist/esm';
|
|
9
|
+
import '@alfalab/core-components-amount/dist/esm';
|
|
10
|
+
import './components/amount/component.js';
|
|
11
|
+
import './components/amount-title/component.js';
|
|
12
|
+
import './components/category/component.js';
|
|
13
|
+
import './components/comment/component.js';
|
|
14
|
+
export { P as PureCell } from './component-0a200d52.js';
|
|
15
|
+
import './components/footer/component.js';
|
|
16
|
+
import '@alfalab/core-components-button/dist/esm';
|
|
17
|
+
import './components/footer-text/component.js';
|
|
18
|
+
import './components/graphics/component.js';
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* hash: 19s8b */
|
|
2
|
+
.pure-cell__component_7do4h {
|
|
3
|
+
text-align: unset;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pure-cell__horizontal_7do4h {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
grid-column-gap: var(--gap-m);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pure-cell__vertical_7do4h {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
grid-row-gap: var(--gap-s);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pure-cell__button_7do4h {
|
|
20
|
+
font-family: inherit;
|
|
21
|
+
background: none;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: opacity 0.15s ease-in-out;
|
|
26
|
+
padding: 0
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pure-cell__button_7do4h:hover {
|
|
30
|
+
opacity: 0.8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pure-cell__button_7do4h:active {
|
|
34
|
+
opacity: 0.6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pure-cell__link_7do4h {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: opacity 0.15s ease-in-out
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.pure-cell__link_7do4h:hover {
|
|
45
|
+
opacity: 0.8;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pure-cell__link_7do4h:active {
|
|
49
|
+
opacity: 0.6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pure-cell__none_7do4h {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pure-cell__airy_7do4h {
|
|
57
|
+
padding: var(--gap-m) 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pure-cell__default_7do4h {
|
|
61
|
+
padding: var(--gap-s) 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pure-cell__compact_7do4h {
|
|
65
|
+
padding: var(--gap-xs) 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pure-cell__tiny_7do4h {
|
|
69
|
+
padding: var(--gap-2xs) 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pure-cell__left_7do4h {
|
|
73
|
+
padding-left: var(--gap-m);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pure-cell__right_7do4h {
|
|
77
|
+
padding-right: var(--gap-m);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.pure-cell__both_7do4h {
|
|
81
|
+
padding-right: var(--gap-m);
|
|
82
|
+
padding-left: var(--gap-m);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pure-cell__focused_7do4h {
|
|
86
|
+
outline: 2px solid var(--focus-color);
|
|
87
|
+
outline-offset: 2px;
|
|
88
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PureCell } from "./component-7b7f28f3";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./component-6a05fa6a.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('react-merge-refs');
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/hooks');
|
|
10
|
+
require('./getDataTestId-00d7409e.js');
|
|
11
|
+
require('./components/addon/component.js');
|
|
12
|
+
require('@alfalab/core-components-typography');
|
|
13
|
+
require('@alfalab/core-components-amount');
|
|
14
|
+
require('./components/amount/component.js');
|
|
15
|
+
require('./components/amount-title/component.js');
|
|
16
|
+
require('./components/category/component.js');
|
|
17
|
+
require('./components/comment/component.js');
|
|
18
|
+
var components_content_component = require('./component-f199efcf.js');
|
|
19
|
+
require('./components/footer/component.js');
|
|
20
|
+
require('@alfalab/core-components-button');
|
|
21
|
+
require('./components/footer-text/component.js');
|
|
22
|
+
require('./components/graphics/component.js');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.PureCell = components_content_component.PureCell;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { PureCellElement } from "./components/types";
|
|
5
|
+
type PureCellContext = {
|
|
6
|
+
/** Направление */
|
|
7
|
+
direction?: 'horizontal' | 'vertical';
|
|
8
|
+
};
|
|
9
|
+
declare const PureCellContext: React.Context<PureCellContext>;
|
|
10
|
+
type PureCellProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Направление
|
|
13
|
+
*/
|
|
14
|
+
direction?: 'horizontal' | 'vertical';
|
|
15
|
+
/**
|
|
16
|
+
* Сss класс для стилизации общей обёртки
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Выводит ссылку в виде ячейки
|
|
21
|
+
*/
|
|
22
|
+
href?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Вертикальные отступы
|
|
25
|
+
*/
|
|
26
|
+
verticalPadding?: 'airy' | 'default' | 'compact' | 'tiny' | 'none';
|
|
27
|
+
/**
|
|
28
|
+
* Горизонтальные отступы
|
|
29
|
+
*/
|
|
30
|
+
horizontalPadding?: 'left' | 'right' | 'both' | 'none';
|
|
31
|
+
/**
|
|
32
|
+
* Позволяет использовать кастомный компонент для кнопки (например Link из роутера)
|
|
33
|
+
*/
|
|
34
|
+
tag?: ElementType;
|
|
35
|
+
/**
|
|
36
|
+
* Компоненты
|
|
37
|
+
*/
|
|
38
|
+
children: PureCellElement;
|
|
39
|
+
/**
|
|
40
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
41
|
+
*/
|
|
42
|
+
dataTestId?: string;
|
|
43
|
+
};
|
|
44
|
+
type AnchorPureCellProps = PureCellProps & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
45
|
+
type ButtonPureCellProps = PureCellProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
46
|
+
type ElementPureCellProps = PureCellProps & HTMLAttributes<HTMLElement>;
|
|
47
|
+
/**
|
|
48
|
+
* Универсальный конструктор для сборки любой ячейки.
|
|
49
|
+
*
|
|
50
|
+
* [Макет](https://www.figma.com/file/KlFOLLkKO8rtvvQE3RXuhq/Click-Library?node-id=43525%3A240018)
|
|
51
|
+
*/
|
|
52
|
+
declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellProps> & React.RefAttributes<HTMLElement>) | (Partial<ButtonPureCellProps> & React.RefAttributes<HTMLElement>) | (Partial<ElementPureCellProps> & React.RefAttributes<HTMLElement>)> & {
|
|
53
|
+
Main: React.FC<{
|
|
54
|
+
children: import("./components/types").MainElement;
|
|
55
|
+
isReverse?: boolean | undefined;
|
|
56
|
+
dataTestId?: string | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
Graphics: React.FC<import("./components/graphics/index").Props>;
|
|
59
|
+
Content: React.FC<{
|
|
60
|
+
children: import("./components/types").ContentElement;
|
|
61
|
+
dataTestId?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
Text: React.FC<{
|
|
64
|
+
rowLimit?: 1 | 2 | undefined;
|
|
65
|
+
isMultiline?: boolean | undefined;
|
|
66
|
+
view: "primary-small" | "component";
|
|
67
|
+
titleColor: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative";
|
|
68
|
+
value?: string | undefined;
|
|
69
|
+
valueColor?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
70
|
+
dataTestId?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
Amount: React.FC<{
|
|
73
|
+
amount: import("./components/typesProps").AmountProps;
|
|
74
|
+
weight?: "bold" | "normal" | undefined;
|
|
75
|
+
view?: "primary-small" | "component" | undefined;
|
|
76
|
+
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
77
|
+
dataTestId?: string | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
AmountTitle: React.FC<{
|
|
80
|
+
amount: import("./components/typesProps").AmountProps;
|
|
81
|
+
color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | undefined;
|
|
82
|
+
dataTestId?: string | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
Addon: React.FC<{
|
|
85
|
+
verticalAlign?: "center" | undefined;
|
|
86
|
+
addonPadding?: "none" | "default" | undefined;
|
|
87
|
+
children: import("./components/types").AddonElement;
|
|
88
|
+
dataTestId?: string | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
Footer: React.FC<{
|
|
91
|
+
children: import("./components/types").FooterElement;
|
|
92
|
+
footerPadding?: "none" | "default" | undefined;
|
|
93
|
+
dataTestId?: string | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
ExtraSubtitle: React.FC<import("./components/footer-text/index").Props>;
|
|
96
|
+
FooterButton: React.FC<Partial<import("packages/button/src").ComponentProps & React.AnchorHTMLAttributes<HTMLAnchorElement>> | Partial<import("packages/button/src").ComponentProps & React.ButtonHTMLAttributes<HTMLButtonElement>>>;
|
|
97
|
+
Comment: React.FC<{
|
|
98
|
+
children: import("./components/types").CommentElement;
|
|
99
|
+
dataTestId?: string | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
Category: React.FC<{
|
|
102
|
+
categoryName: string;
|
|
103
|
+
categoryPercent?: number | undefined;
|
|
104
|
+
dataTestId?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
export { PureCellContext, PureCellProps, PureCell };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { MainElement, ContentElement } from "./components/types";
|
|
4
|
+
import { Color } from "@alfalab/core-components-typography";
|
|
5
|
+
type Props = {
|
|
6
|
+
/**
|
|
7
|
+
* Компоненты
|
|
8
|
+
*/
|
|
9
|
+
children: MainElement;
|
|
10
|
+
/**
|
|
11
|
+
* Позволяет изменить расположение блоков внутри main
|
|
12
|
+
*/
|
|
13
|
+
isReverse?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
16
|
+
*/
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const Main: React.FC<Props>;
|
|
20
|
+
type Props$0 = {
|
|
21
|
+
/**
|
|
22
|
+
* Компоненты
|
|
23
|
+
*/
|
|
24
|
+
children: ContentElement;
|
|
25
|
+
/**
|
|
26
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
27
|
+
*/
|
|
28
|
+
dataTestId?: string;
|
|
29
|
+
};
|
|
30
|
+
declare const Content: React.FC<Props$0>;
|
|
31
|
+
type Props$1 = {
|
|
32
|
+
/**
|
|
33
|
+
* Количество строк
|
|
34
|
+
*/
|
|
35
|
+
rowLimit?: 1 | 2;
|
|
36
|
+
/**
|
|
37
|
+
* Многострочный ли компонент
|
|
38
|
+
*/
|
|
39
|
+
isMultiline?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Размер текста
|
|
42
|
+
*/
|
|
43
|
+
view: 'primary-small' | 'component';
|
|
44
|
+
/**
|
|
45
|
+
* Цвет title
|
|
46
|
+
*/
|
|
47
|
+
titleColor: Color;
|
|
48
|
+
/**
|
|
49
|
+
* Value ячейки
|
|
50
|
+
*/
|
|
51
|
+
value?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Цвет value
|
|
54
|
+
*/
|
|
55
|
+
valueColor?: Color;
|
|
56
|
+
/**
|
|
57
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
58
|
+
*/
|
|
59
|
+
dataTestId?: string;
|
|
60
|
+
};
|
|
61
|
+
declare const Text: React.FC<Props$1>;
|
|
62
|
+
export { Main, Content, Text };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { useContext, forwardRef, useRef } from 'react';
|
|
2
|
+
import mergeRefs from 'react-merge-refs';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { useFocus } from '@alfalab/hooks';
|
|
5
|
+
import { g as getDataTestId } from './getDataTestId-0bb060c4.js';
|
|
6
|
+
import { Addon } from './components/addon/component.js';
|
|
7
|
+
import { Typography } from '@alfalab/core-components-typography/dist/modern';
|
|
8
|
+
import { Amount } from './components/amount/component.js';
|
|
9
|
+
import { AmountTitle } from './components/amount-title/component.js';
|
|
10
|
+
import { Category } from './components/category/component.js';
|
|
11
|
+
import { Comment } from './components/comment/component.js';
|
|
12
|
+
import { Footer } from './components/footer/component.js';
|
|
13
|
+
import { FooterButton } from './components/footer-button/component.js';
|
|
14
|
+
import { FooterText } from './components/footer-text/component.js';
|
|
15
|
+
import { Graphics } from './components/graphics/component.js';
|
|
16
|
+
|
|
17
|
+
var styles = {"component":"pure-cell__component_1vkg3","horizontal":"pure-cell__horizontal_1vkg3"};
|
|
18
|
+
require('./components/content/index.css')
|
|
19
|
+
|
|
20
|
+
const Content = ({ children, dataTestId }) => {
|
|
21
|
+
const { direction } = useContext(PureCellContext);
|
|
22
|
+
return (React.createElement("section", { className: cn(styles.component, { [styles.horizontal]: direction === 'horizontal' }), "data-test-id": getDataTestId(dataTestId, 'content') }, children));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var styles$1 = {"component":"pure-cell__component_raiu9","vertical":"pure-cell__vertical_raiu9","reverse":"pure-cell__reverse_raiu9"};
|
|
26
|
+
require('./components/main/index.css')
|
|
27
|
+
|
|
28
|
+
const Main = ({ children, isReverse, dataTestId }) => {
|
|
29
|
+
const { direction = 'horizontal' } = useContext(PureCellContext);
|
|
30
|
+
return (React.createElement("main", { className: cn(styles$1.component, styles$1[direction], {
|
|
31
|
+
[styles$1.reverse]: isReverse,
|
|
32
|
+
}), "data-test-id": getDataTestId(dataTestId, 'main') }, children));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var styles$2 = {"horizontal":"pure-cell__horizontal_ndofp","rowLimit1":"pure-cell__rowLimit1_ndofp","rowLimit2":"pure-cell__rowLimit2_ndofp","component":"pure-cell__component_ndofp","multiline":"pure-cell__multiline_ndofp","vertical":"pure-cell__vertical_ndofp","title":"pure-cell__title_ndofp"};
|
|
36
|
+
require('./components/text/index.css')
|
|
37
|
+
|
|
38
|
+
const Text = ({ children, value, rowLimit, isMultiline, view = 'component', titleColor, valueColor, dataTestId, }) => {
|
|
39
|
+
const { direction = 'horizontal' } = useContext(PureCellContext);
|
|
40
|
+
return (React.createElement("div", { className: cn(styles$2.component, {
|
|
41
|
+
[styles$2.vertical]: direction !== 'horizontal',
|
|
42
|
+
}) },
|
|
43
|
+
React.createElement("span", { className: cn(styles$2.title) },
|
|
44
|
+
React.createElement(Typography.Text, { view: view, color: titleColor, className: cn(rowLimit && styles$2[`rowLimit${rowLimit}`], {
|
|
45
|
+
[styles$2.rowLimit1]: !isMultiline,
|
|
46
|
+
}), "data-test-id": getDataTestId(dataTestId, 'text') }, children)),
|
|
47
|
+
React.createElement("span", null,
|
|
48
|
+
React.createElement(Typography.Text, { view: view, color: valueColor, className: cn({
|
|
49
|
+
[styles$2[`rowLimit${rowLimit}`]]: rowLimit,
|
|
50
|
+
[styles$2.multiline]: isMultiline,
|
|
51
|
+
}), "data-test-id": getDataTestId(dataTestId, 'text') }, value))));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var styles$3 = {"component":"pure-cell__component_7do4h","horizontal":"pure-cell__horizontal_7do4h","vertical":"pure-cell__vertical_7do4h","button":"pure-cell__button_7do4h","link":"pure-cell__link_7do4h","none":"pure-cell__none_7do4h","airy":"pure-cell__airy_7do4h","default":"pure-cell__default_7do4h","compact":"pure-cell__compact_7do4h","tiny":"pure-cell__tiny_7do4h","left":"pure-cell__left_7do4h","right":"pure-cell__right_7do4h","both":"pure-cell__both_7do4h","focused":"pure-cell__focused_7do4h"};
|
|
55
|
+
require('./index.css')
|
|
56
|
+
|
|
57
|
+
const PureCellContext = React.createContext({});
|
|
58
|
+
const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, tag: Component = (href && 'a') || (onClick && 'button') || 'section', children, horizontalPadding = 'default', verticalPadding = 'none', direction = 'horizontal', ...restProps }, ref) => {
|
|
59
|
+
const cellRef = useRef(null);
|
|
60
|
+
const [focused] = useFocus(cellRef, 'keyboard');
|
|
61
|
+
const addClasses = {
|
|
62
|
+
[styles$3.component]: true,
|
|
63
|
+
[styles$3.focused]: focused,
|
|
64
|
+
[styles$3[direction]]: true,
|
|
65
|
+
};
|
|
66
|
+
if (href) {
|
|
67
|
+
const { target } = restProps;
|
|
68
|
+
// Для совместимости с react-router-dom, меняем href на to
|
|
69
|
+
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, styles$3[horizontalPadding], styles$3[verticalPadding]), "data-test-id": dataTestId }),
|
|
71
|
+
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
72
|
+
}
|
|
73
|
+
if (onClick) {
|
|
74
|
+
return (React.createElement(Component, Object.assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles$3.button, addClasses, styles$3[horizontalPadding], styles$3[verticalPadding], className), "data-test-id": dataTestId, onClick: onClick }),
|
|
75
|
+
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
76
|
+
}
|
|
77
|
+
return (React.createElement(Component, { ref: ref, tabIndex: 0, className: cn(addClasses, styles$3[horizontalPadding], styles$3[verticalPadding], className), "data-test-id": dataTestId },
|
|
78
|
+
React.createElement(PureCellContext.Provider, { value: { direction } }, children)));
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* Универсальный конструктор для сборки любой ячейки.
|
|
82
|
+
*
|
|
83
|
+
* [Макет](https://www.figma.com/file/KlFOLLkKO8rtvvQE3RXuhq/Click-Library?node-id=43525%3A240018)
|
|
84
|
+
*/
|
|
85
|
+
const PureCell = Object.assign(PureCellComponent, {
|
|
86
|
+
Main,
|
|
87
|
+
Graphics,
|
|
88
|
+
Content,
|
|
89
|
+
Text,
|
|
90
|
+
Amount,
|
|
91
|
+
AmountTitle,
|
|
92
|
+
Addon,
|
|
93
|
+
Footer,
|
|
94
|
+
ExtraSubtitle: FooterText,
|
|
95
|
+
FooterButton,
|
|
96
|
+
Comment,
|
|
97
|
+
Category,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export { Content as C, Main as M, PureCell as P, Text as T, PureCellContext as a };
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'react-merge-refs';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import './getDataTestId-0bb060c4.js';
|
|
6
|
+
import './components/addon/component.js';
|
|
7
|
+
import '@alfalab/core-components-typography/dist/modern';
|
|
8
|
+
import '@alfalab/core-components-amount/dist/modern';
|
|
9
|
+
import './components/amount/component.js';
|
|
10
|
+
import './components/amount-title/component.js';
|
|
11
|
+
import './components/category/component.js';
|
|
12
|
+
import './components/comment/component.js';
|
|
13
|
+
export { P as PureCell, a as PureCellContext } from './component-9c1fe763.js';
|
|
14
|
+
import './components/footer/component.js';
|
|
15
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
16
|
+
import './components/footer-button/component.js';
|
|
17
|
+
import './components/footer-text/component.js';
|
|
18
|
+
import './components/graphics/component.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AddonElement } from "../types";
|
|
4
|
+
type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Вертикальное выравнивание
|
|
7
|
+
*/
|
|
8
|
+
verticalAlign?: 'center';
|
|
9
|
+
/**
|
|
10
|
+
* Горизонтальные отступы
|
|
11
|
+
*/
|
|
12
|
+
addonPadding?: 'default' | 'none';
|
|
13
|
+
/**
|
|
14
|
+
* Компоненты
|
|
15
|
+
*/
|
|
16
|
+
children: AddonElement;
|
|
17
|
+
/**
|
|
18
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
19
|
+
*/
|
|
20
|
+
dataTestId?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const Addon: React.FC<Props>;
|
|
23
|
+
export { Addon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { g as getDataTestId } from '../../getDataTestId-0bb060c4.js';
|
|
4
|
+
|
|
5
|
+
var styles = {"component":"pure-cell__component_1tjhn","none":"pure-cell__none_1tjhn","default":"pure-cell__default_1tjhn","center":"pure-cell__center_1tjhn"};
|
|
6
|
+
require('./index.css')
|
|
7
|
+
|
|
8
|
+
const Addon = ({ children, verticalAlign, addonPadding = 'default', dataTestId, }) => (React.createElement("section", { className: cn(styles.component, styles[addonPadding], {
|
|
9
|
+
[styles.center]: verticalAlign,
|
|
10
|
+
}), "data-test-id": getDataTestId(dataTestId, 'addon') }, children));
|
|
11
|
+
|
|
12
|
+
export { Addon };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* hash: 10dx6 */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--gap-m: 16px;
|
|
12
|
+
}
|
|
13
|
+
.pure-cell__component_1tjhn {
|
|
14
|
+
grid-column: 2/3;
|
|
15
|
+
padding-left: var(--gap-m)
|
|
16
|
+
}
|
|
17
|
+
.pure-cell__component_1tjhn > * {
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
}
|
|
20
|
+
.pure-cell__component_1tjhn.pure-cell__none_1tjhn {
|
|
21
|
+
padding-left: 0;
|
|
22
|
+
}
|
|
23
|
+
.pure-cell__component_1tjhn.pure-cell__default_1tjhn {
|
|
24
|
+
padding-left: var(--gap-m);
|
|
25
|
+
}
|
|
26
|
+
.pure-cell__component_1tjhn.pure-cell__center_1tjhn {
|
|
27
|
+
align-self: center;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Color } from "@alfalab/core-components-typography";
|
|
4
|
+
import { AmountProps as AmountType } from "../typesProps";
|
|
5
|
+
type Props = {
|
|
6
|
+
/**
|
|
7
|
+
* Props свойственные для компонента Amount
|
|
8
|
+
*/
|
|
9
|
+
amount: AmountType;
|
|
10
|
+
/**
|
|
11
|
+
* Начертание шрифта денежного значения
|
|
12
|
+
*/
|
|
13
|
+
weight?: 'bold' | 'normal';
|
|
14
|
+
/**
|
|
15
|
+
* Размер денежного значения
|
|
16
|
+
*/
|
|
17
|
+
view?: 'component' | 'primary-small';
|
|
18
|
+
/**
|
|
19
|
+
* Цвет денежного значения
|
|
20
|
+
*/
|
|
21
|
+
color?: Color;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
};
|
|
27
|
+
declare const Amount: React.FC<Props>;
|
|
28
|
+
export { Amount };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { g as getDataTestId } from '../../getDataTestId-0bb060c4.js';
|
|
4
|
+
import { Typography } from '@alfalab/core-components-typography/dist/modern';
|
|
5
|
+
import { Amount as Amount$1 } from '@alfalab/core-components-amount/dist/modern';
|
|
6
|
+
|
|
7
|
+
var styles = {"component":"pure-cell__component_1plik"};
|
|
8
|
+
require('./index.css')
|
|
9
|
+
|
|
10
|
+
const Amount = ({ amount, weight = 'normal', view = 'component', color = 'primary', dataTestId, }) => {
|
|
11
|
+
const { value, currency, minority, minorUnits, rightAddons, showPlus, className, transparentMinor, view: viewAmount, } = amount;
|
|
12
|
+
return (React.createElement(Typography.Text, { view: view, dataTestId: getDataTestId(dataTestId, 'amount-text'), className: cn(styles.component), color: color },
|
|
13
|
+
React.createElement(Amount$1, { minority: minority === undefined ? minorUnits : minority, value: value, transparentMinor: transparentMinor, bold: weight === 'bold' ? 'full' : 'none', rightAddons: rightAddons, showPlus: showPlus, className: className, currency: currency, dataTestId: getDataTestId(dataTestId, 'amount'), view: viewAmount })));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Amount };
|