@alfalab/core-components-pure-cell 4.11.6 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{component-50cf799c.js → component-317da0eb.js} +11 -11
- package/component.js +1 -1
- package/components/addon/component.js +1 -1
- package/components/addon/index.css +17 -16
- package/components/addon/index.d.ts +1 -1
- package/components/addon/index.js +1 -1
- package/components/amount/component.js +1 -1
- package/components/amount/index.css +4 -3
- package/components/amount/index.d.ts +1 -1
- package/components/amount/index.js +1 -1
- package/components/amount-title/component.js +1 -1
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.d.ts +1 -1
- package/components/amount-title/index.js +1 -1
- package/components/category/component.js +1 -1
- package/components/category/index.css +10 -8
- package/components/category/index.d.ts +1 -1
- package/components/category/index.js +1 -1
- package/components/content/component.js +1 -1
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +1 -1
- package/components/footer/component.js +1 -1
- package/components/footer/index.css +6 -5
- package/components/footer/index.d.ts +1 -1
- package/components/footer/index.js +1 -1
- package/components/footer-button/component.js +1 -1
- package/components/footer-button/index.css +2 -2
- package/components/footer-button/index.d.ts +1 -1
- package/components/footer-button/index.js +1 -1
- package/components/footer-text/component.js +1 -1
- package/components/footer-text/index.d.ts +1 -1
- package/components/footer-text/index.js +1 -1
- package/components/graphics/component.js +1 -1
- package/components/graphics/index.css +23 -22
- package/components/graphics/index.d.ts +1 -1
- package/components/graphics/index.js +1 -1
- package/components/main/component.js +1 -1
- package/components/main/index.css +10 -9
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +1 -1
- package/components/text/component.js +1 -1
- package/components/text/index.css +10 -9
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +1 -1
- package/cssm/components/addon/index.module.css +4 -3
- package/cssm/components/amount/index.module.css +2 -1
- package/cssm/components/category/index.module.css +5 -3
- package/cssm/components/footer/index.module.css +2 -1
- package/cssm/components/graphics/index.module.css +5 -4
- package/cssm/components/main/index.module.css +3 -2
- package/cssm/components/text/index.module.css +3 -2
- package/cssm/index.module.css +9 -8
- package/esm/{component-7d6886c9.js → component-9671f3bb.js} +11 -11
- package/esm/component.js +1 -1
- package/esm/components/addon/component.js +1 -1
- package/esm/components/addon/index.css +17 -16
- package/esm/components/addon/index.d.ts +1 -1
- package/esm/components/addon/index.js +1 -1
- package/esm/components/amount/component.js +1 -1
- package/esm/components/amount/index.css +4 -3
- package/esm/components/amount/index.d.ts +1 -1
- package/esm/components/amount/index.js +1 -1
- package/esm/components/amount-title/component.js +1 -1
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/amount-title/index.d.ts +1 -1
- package/esm/components/amount-title/index.js +1 -1
- package/esm/components/category/component.js +1 -1
- package/esm/components/category/index.css +10 -8
- package/esm/components/category/index.d.ts +1 -1
- package/esm/components/category/index.js +1 -1
- package/esm/components/content/component.js +1 -1
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +1 -1
- package/esm/components/footer/component.js +1 -1
- package/esm/components/footer/index.css +6 -5
- package/esm/components/footer/index.d.ts +1 -1
- package/esm/components/footer/index.js +1 -1
- package/esm/components/footer-button/component.js +1 -1
- 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 +1 -1
- package/esm/components/footer-text/component.js +1 -1
- package/esm/components/footer-text/index.d.ts +1 -1
- package/esm/components/footer-text/index.js +1 -1
- package/esm/components/graphics/component.js +1 -1
- package/esm/components/graphics/index.css +23 -22
- package/esm/components/graphics/index.d.ts +1 -1
- package/esm/components/graphics/index.js +1 -1
- package/esm/components/main/component.js +1 -1
- package/esm/components/main/index.css +10 -9
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +1 -1
- package/esm/components/text/component.js +1 -1
- package/esm/components/text/index.css +10 -9
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +1 -1
- package/esm/index.css +38 -37
- package/esm/index.js +1 -1
- package/index.css +38 -37
- package/index.js +1 -1
- package/modern/{component-f5e0c9cb.js → component-792615ae.js} +11 -11
- package/modern/component.js +1 -1
- package/modern/components/addon/component.js +1 -1
- package/modern/components/addon/index.css +17 -16
- package/modern/components/addon/index.d.ts +1 -1
- package/modern/components/addon/index.js +1 -1
- package/modern/components/amount/component.js +1 -1
- package/modern/components/amount/index.css +4 -3
- package/modern/components/amount/index.d.ts +1 -1
- package/modern/components/amount/index.js +1 -1
- package/modern/components/amount-title/component.js +1 -1
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/amount-title/index.d.ts +1 -1
- package/modern/components/amount-title/index.js +1 -1
- package/modern/components/category/component.js +1 -1
- package/modern/components/category/index.css +10 -8
- package/modern/components/category/index.d.ts +1 -1
- package/modern/components/category/index.js +1 -1
- package/modern/components/content/component.js +1 -1
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/index.d.ts +1 -1
- package/modern/components/content/index.js +1 -1
- package/modern/components/footer/component.js +1 -1
- package/modern/components/footer/index.css +6 -5
- package/modern/components/footer/index.d.ts +1 -1
- package/modern/components/footer/index.js +1 -1
- package/modern/components/footer-button/component.js +1 -1
- package/modern/components/footer-button/index.css +2 -2
- package/modern/components/footer-button/index.d.ts +1 -1
- package/modern/components/footer-button/index.js +1 -1
- package/modern/components/footer-text/component.js +1 -1
- package/modern/components/footer-text/index.d.ts +1 -1
- package/modern/components/footer-text/index.js +1 -1
- package/modern/components/graphics/component.js +1 -1
- package/modern/components/graphics/index.css +23 -22
- package/modern/components/graphics/index.d.ts +1 -1
- package/modern/components/graphics/index.js +1 -1
- package/modern/components/main/component.js +1 -1
- package/modern/components/main/index.css +10 -9
- package/modern/components/main/index.d.ts +1 -1
- package/modern/components/main/index.js +1 -1
- package/modern/components/text/component.js +1 -1
- package/modern/components/text/index.css +10 -9
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +1 -1
- package/modern/index.css +38 -37
- package/modern/index.js +1 -1
- package/moderncssm/component-511ba1c0.d.ts +227 -0
- package/moderncssm/component-511ba1c0.js +252 -0
- package/moderncssm/component-8c83a9ca.d.ts +125 -0
- package/moderncssm/component.d.ts +0 -0
- package/moderncssm/component.js +7 -0
- package/moderncssm/components/addon/component.d.ts +0 -0
- package/moderncssm/components/addon/component.js +5 -0
- package/moderncssm/components/addon/index.d.ts +1 -0
- package/moderncssm/components/addon/index.js +1 -0
- package/moderncssm/components/addon/index.module.css +72 -0
- package/moderncssm/components/amount/component.d.ts +0 -0
- package/moderncssm/components/amount/component.js +7 -0
- package/moderncssm/components/amount/index.d.ts +1 -0
- package/moderncssm/components/amount/index.js +1 -0
- package/moderncssm/components/amount/index.module.css +6 -0
- package/moderncssm/components/amount-title/component.d.ts +0 -0
- package/moderncssm/components/amount-title/component.js +7 -0
- package/moderncssm/components/amount-title/index.d.ts +1 -0
- package/moderncssm/components/amount-title/index.js +1 -0
- package/moderncssm/components/amount-title/index.module.css +9 -0
- package/moderncssm/components/category/component.d.ts +0 -0
- package/moderncssm/components/category/component.js +5 -0
- package/moderncssm/components/category/index.d.ts +1 -0
- package/moderncssm/components/category/index.js +1 -0
- package/moderncssm/components/category/index.module.css +26 -0
- package/moderncssm/components/content/component.d.ts +0 -0
- package/moderncssm/components/content/component.js +5 -0
- package/moderncssm/components/content/index.d.ts +1 -0
- package/moderncssm/components/content/index.js +1 -0
- package/moderncssm/components/content/index.module.css +12 -0
- package/moderncssm/components/footer/component.d.ts +0 -0
- package/moderncssm/components/footer/component.js +5 -0
- package/moderncssm/components/footer/index.d.ts +1 -0
- package/moderncssm/components/footer/index.js +1 -0
- package/moderncssm/components/footer/index.module.css +15 -0
- package/moderncssm/components/footer-button/component.d.ts +0 -0
- package/moderncssm/components/footer-button/component.js +5 -0
- package/moderncssm/components/footer-button/index.d.ts +1 -0
- package/moderncssm/components/footer-button/index.js +1 -0
- package/moderncssm/components/footer-button/index.module.css +5 -0
- package/moderncssm/components/footer-text/component.d.ts +0 -0
- package/moderncssm/components/footer-text/component.js +4 -0
- package/moderncssm/components/footer-text/index.d.ts +1 -0
- package/moderncssm/components/footer-text/index.js +1 -0
- package/moderncssm/components/graphics/component.d.ts +0 -0
- package/moderncssm/components/graphics/component.js +5 -0
- package/moderncssm/components/graphics/index.d.ts +1 -0
- package/moderncssm/components/graphics/index.js +1 -0
- package/moderncssm/components/graphics/index.module.css +92 -0
- package/moderncssm/components/main/component.d.ts +0 -0
- package/moderncssm/components/main/component.js +5 -0
- package/moderncssm/components/main/index.d.ts +1 -0
- package/moderncssm/components/main/index.js +1 -0
- package/moderncssm/components/main/index.module.css +57 -0
- package/moderncssm/components/text/component.d.ts +0 -0
- package/moderncssm/components/text/component.js +6 -0
- package/moderncssm/components/text/index.d.ts +1 -0
- package/moderncssm/components/text/index.js +1 -0
- package/moderncssm/components/text/index.module.css +38 -0
- package/moderncssm/components/types.d.ts +21 -0
- package/moderncssm/components/types.js +1 -0
- package/moderncssm/components/typesProps.d.ts +46 -0
- package/moderncssm/components/typesProps.js +1 -0
- package/moderncssm/index.d.ts +2 -0
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.module.css +128 -0
- package/moderncssm/shared/index.d.ts +1 -0
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/utils.d.ts +20 -0
- package/moderncssm/utils.js +25 -0
- package/moderncssm/vars.css +2 -0
- package/package.json +8 -8
- package/src/components/addon/index.module.css +2 -2
- package/src/components/amount/index.module.css +2 -2
- package/src/components/amount-title/index.module.css +1 -1
- package/src/components/category/index.module.css +4 -4
- package/src/components/content/index.module.css +1 -1
- package/src/components/footer/index.module.css +2 -2
- package/src/components/footer-button/index.module.css +1 -1
- package/src/components/graphics/index.module.css +3 -3
- package/src/components/main/index.module.css +1 -1
- package/src/components/text/index.module.css +3 -3
- package/src/index.module.css +9 -9
- package/src/vars.css +1 -1
- /package/{component-50cf799c.d.ts → component-317da0eb.d.ts} +0 -0
- /package/esm/{component-7d6886c9.d.ts → component-9671f3bb.d.ts} +0 -0
- /package/modern/{component-f5e0c9cb.d.ts → component-792615ae.d.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* */
|
|
2
|
+
|
|
3
|
+
.horizontal {
|
|
4
|
+
padding: var(--gap-2) var(--gap-0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.rowLimit1 {
|
|
8
|
+
-webkit-line-clamp: 1;
|
|
9
|
+
display: -webkit-box;
|
|
10
|
+
-webkit-box-orient: vertical;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
word-break: break-all;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rowLimit2 {
|
|
16
|
+
-webkit-line-clamp: 2;
|
|
17
|
+
display: -webkit-box;
|
|
18
|
+
-webkit-box-orient: vertical;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.component {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
flex-wrap: nowrap;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
margin: var(--gap-2) var(--gap-0);
|
|
28
|
+
word-break: break-word;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.component .vertical {
|
|
32
|
+
justify-content: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.title + .value {
|
|
36
|
+
margin-left: var(--gap-16);
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Comment } from "@alfalab/core-components-comment";
|
|
3
|
+
import { Amount } from "./amount/index";
|
|
4
|
+
import { AmountTitle } from "./amount-title/index";
|
|
5
|
+
import { FooterButton } from "./footer-button/index";
|
|
6
|
+
import { FooterText } from "./footer-text/index";
|
|
7
|
+
import { Graphics } from "./graphics/index";
|
|
8
|
+
import { Text } from "./text/index";
|
|
9
|
+
type TextElement = ReactElement<typeof Text>;
|
|
10
|
+
type GraphicsElement = ReactElement<typeof Graphics> | boolean | null;
|
|
11
|
+
type AmountElement = ReactElement<typeof Amount>;
|
|
12
|
+
type AmountTitleElement = ReactElement<typeof AmountTitle>;
|
|
13
|
+
type CommentElement = ReactElement<typeof Comment>;
|
|
14
|
+
type FooterButtonElement = ReactElement<typeof FooterButton>;
|
|
15
|
+
type FooterTitleElement = ReactElement<typeof FooterText>;
|
|
16
|
+
type FooterElement = Array<ReactElement<FooterButtonElement> | FooterTitleElement | boolean | null> | CommentElement | boolean | null;
|
|
17
|
+
type MainElement = Array<undefined | '' | boolean | null | TextElement | AmountElement | AmountTitleElement> | (TextElement | AmountElement | AmountTitleElement | boolean | null);
|
|
18
|
+
type ContentElement = Array<MainElement | AddonElement | FooterElement> | MainElement;
|
|
19
|
+
type AddonElement = Array<TextElement | ReactNode> | TextElement | ReactNode;
|
|
20
|
+
type PureCellElement = Array<GraphicsElement | ContentElement> | ContentElement;
|
|
21
|
+
export { GraphicsElement, CommentElement, FooterElement, MainElement, ContentElement, AddonElement, PureCellElement };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CurrencyCodes } from '@alfalab/data';
|
|
3
|
+
type AmountProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Денежное значение в минорных единицах
|
|
6
|
+
*/
|
|
7
|
+
value: number;
|
|
8
|
+
/**
|
|
9
|
+
* Валюта
|
|
10
|
+
*/
|
|
11
|
+
currency?: CurrencyCodes;
|
|
12
|
+
/**
|
|
13
|
+
* Слот справа
|
|
14
|
+
*/
|
|
15
|
+
rightAddons?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Количество минорных единиц в валюте
|
|
18
|
+
*/
|
|
19
|
+
minority?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Делает минорную часть полупрозрачной
|
|
22
|
+
*/
|
|
23
|
+
transparentMinor?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Количество минорных единиц в валюте для Клика
|
|
26
|
+
*/
|
|
27
|
+
minorUnits?: number;
|
|
28
|
+
/**
|
|
29
|
+
* default - не отображаем копейки, если их значение 0
|
|
30
|
+
* withZeroMinorPart - отображаем копейки, даже если их значение равно 0
|
|
31
|
+
*/
|
|
32
|
+
view?: 'default' | 'withZeroMinorPart';
|
|
33
|
+
/**
|
|
34
|
+
* Показывать значок + для положительных значений
|
|
35
|
+
*/
|
|
36
|
+
showPlus?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Дополнительный класс
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
43
|
+
*/
|
|
44
|
+
dataTestId?: string;
|
|
45
|
+
};
|
|
46
|
+
export { AmountProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { P as PureCell } from './component-511ba1c0.js';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* */
|
|
2
|
+
|
|
3
|
+
.component {
|
|
4
|
+
text-align: unset;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.horizontal {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.vertical {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.button {
|
|
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: var(--gap-0)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.button.hover {
|
|
30
|
+
opacity: 0.8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.button.active {
|
|
34
|
+
opacity: 0.6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.link {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: opacity 0.15s ease-in-out
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.link.hover {
|
|
45
|
+
opacity: 0.8;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.link.active {
|
|
49
|
+
opacity: 0.6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.none {
|
|
53
|
+
padding: var(--gap-0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.airy {
|
|
57
|
+
padding: var(--gap-16) var(--gap-0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.default {
|
|
61
|
+
padding: var(--gap-12) var(--gap-0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.compact {
|
|
65
|
+
padding: var(--gap-8) var(--gap-0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tiny {
|
|
69
|
+
padding: var(--gap-4) var(--gap-0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.noneTop {
|
|
73
|
+
padding-top: var(--gap-0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.airyTop {
|
|
77
|
+
padding-top: var(--gap-16);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.defaultTop {
|
|
81
|
+
padding-top: var(--gap-12);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.compactTop {
|
|
85
|
+
padding-top: var(--gap-8);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tinyTop {
|
|
89
|
+
padding-top: var(--gap-4);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.noneBottom {
|
|
93
|
+
padding-bottom: var(--gap-0);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.airyBottom {
|
|
97
|
+
padding-bottom: var(--gap-16);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.defaultBottom {
|
|
101
|
+
padding-bottom: var(--gap-12);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.compactBottom {
|
|
105
|
+
padding-bottom: var(--gap-8);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tinyBottom {
|
|
109
|
+
padding-bottom: var(--gap-4);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.left {
|
|
113
|
+
padding-left: var(--gap-16);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.right {
|
|
117
|
+
padding-right: var(--gap-16);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.both {
|
|
121
|
+
padding-right: var(--gap-16);
|
|
122
|
+
padding-left: var(--gap-16);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.focused {
|
|
126
|
+
outline: 2px solid var(--focus-color);
|
|
127
|
+
outline-offset: 2px;
|
|
128
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getPureCellTestIds } from "../utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getPureCellTestIds } from '../utils.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare function getPureCellTestIds(dataTestId: string): {
|
|
2
|
+
pureCell: string;
|
|
3
|
+
addon: string;
|
|
4
|
+
amount: string;
|
|
5
|
+
amountText: string;
|
|
6
|
+
amountTitle: string;
|
|
7
|
+
coreAmountTitle: string;
|
|
8
|
+
categoryName: string;
|
|
9
|
+
categoryPercent: string;
|
|
10
|
+
categoryRightAddon: string;
|
|
11
|
+
content: string;
|
|
12
|
+
footer: string;
|
|
13
|
+
footerButton: string;
|
|
14
|
+
extraSubtitle: string;
|
|
15
|
+
graphics: string;
|
|
16
|
+
main: string;
|
|
17
|
+
textContent: string;
|
|
18
|
+
textValue: string;
|
|
19
|
+
};
|
|
20
|
+
export { getPureCellTestIds };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getDataTestId } from '@alfalab/core-components-shared/moderncssm';
|
|
2
|
+
|
|
3
|
+
function getPureCellTestIds(dataTestId) {
|
|
4
|
+
return {
|
|
5
|
+
pureCell: dataTestId,
|
|
6
|
+
addon: getDataTestId(dataTestId, 'addon'),
|
|
7
|
+
amount: getDataTestId(dataTestId, 'amount'),
|
|
8
|
+
amountText: getDataTestId(dataTestId, 'amount-text'),
|
|
9
|
+
amountTitle: getDataTestId(dataTestId, 'amount-title'),
|
|
10
|
+
coreAmountTitle: getDataTestId(dataTestId, 'core-amount-title'),
|
|
11
|
+
categoryName: getDataTestId(dataTestId, 'category-name'),
|
|
12
|
+
categoryPercent: getDataTestId(dataTestId, 'category-percent'),
|
|
13
|
+
categoryRightAddon: getDataTestId(dataTestId, 'category-right-addon'),
|
|
14
|
+
content: getDataTestId(dataTestId, 'content'),
|
|
15
|
+
footer: getDataTestId(dataTestId, 'footer'),
|
|
16
|
+
footerButton: getDataTestId(dataTestId, 'button'),
|
|
17
|
+
extraSubtitle: getDataTestId(dataTestId, 'footer-title'),
|
|
18
|
+
graphics: getDataTestId(dataTestId, 'graphics'),
|
|
19
|
+
main: getDataTestId(dataTestId, 'main'),
|
|
20
|
+
textContent: getDataTestId(dataTestId, 'text_content'),
|
|
21
|
+
textValue: getDataTestId(dataTestId, 'text_value'),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { getPureCellTestIds };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pure-cell",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-amount": "^3.
|
|
19
|
-
"@alfalab/core-components-button": "^11.
|
|
20
|
-
"@alfalab/core-components-typography": "^4.
|
|
21
|
-
"@alfalab/core-components-comment": "^2.
|
|
22
|
-
"@alfalab/core-components-shared": "^0.12.
|
|
18
|
+
"@alfalab/core-components-amount": "^3.7.0",
|
|
19
|
+
"@alfalab/core-components-button": "^11.7.0",
|
|
20
|
+
"@alfalab/core-components-typography": "^4.10.1",
|
|
21
|
+
"@alfalab/core-components-comment": "^2.4.1",
|
|
22
|
+
"@alfalab/core-components-shared": "^0.12.1",
|
|
23
23
|
"@alfalab/hooks": "^1.13.0",
|
|
24
24
|
"@alfalab/data": "^1.8.0",
|
|
25
25
|
"classnames": "^2.3.1",
|
|
26
26
|
"react-merge-refs": "1.1.0",
|
|
27
27
|
"tslib": "^2.4.0"
|
|
28
28
|
},
|
|
29
|
-
"themesVersion": "13.0
|
|
30
|
-
"varsVersion": "9.
|
|
29
|
+
"themesVersion": "13.2.0",
|
|
30
|
+
"varsVersion": "9.13.0"
|
|
31
31
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&.none {
|
|
13
|
-
padding-left: 0;
|
|
13
|
+
padding-left: var(--gap-0);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&.default {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
.button {
|
|
42
42
|
@mixin button-reset;
|
|
43
|
-
padding: 0;
|
|
43
|
+
padding: var(--gap-0);
|
|
44
44
|
transition: opacity 0.15s ease-in-out;
|
|
45
45
|
|
|
46
46
|
&:hover {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@import '@alfalab/core-components-
|
|
1
|
+
@import '@alfalab/core-components-vars/src/index.css';
|
|
2
2
|
|
|
3
3
|
.component {
|
|
4
4
|
display: flex;
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
padding: var(--gap-2) 0;
|
|
6
|
+
padding: var(--gap-2) var(--gap-0);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.categoryName {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.categoryPercent {
|
|
18
|
-
padding: 0 var(--gap-8);
|
|
18
|
+
padding: var(--gap-0) var(--gap-8);
|
|
19
19
|
background-color: var(--color-light-base-bg-secondary);
|
|
20
|
-
border-radius: var(--border-radius-
|
|
20
|
+
border-radius: var(--border-radius-16);
|
|
21
21
|
margin-left: var(--gap-4);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '@alfalab/core-components-
|
|
1
|
+
@import '@alfalab/core-components-vars/src/index.css';
|
|
2
2
|
|
|
3
3
|
.component {
|
|
4
4
|
grid-column: 1/3;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
grid-row-gap: var(--gap-8);
|
|
7
7
|
|
|
8
8
|
&.none {
|
|
9
|
-
margin-top: 0;
|
|
9
|
+
margin-top: var(--gap-0);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&.default {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
.horizontal:not(:last-child) {
|
|
21
21
|
&.none {
|
|
22
|
-
margin-right: 0;
|
|
22
|
+
margin-right: var(--gap-0);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&.airy {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
.vertical:not(:last-child) {
|
|
43
43
|
&.none {
|
|
44
|
-
margin-bottom: 0;
|
|
44
|
+
margin-bottom: var(--gap-0);
|
|
45
45
|
}
|
|
46
46
|
&.airy {
|
|
47
47
|
margin-bottom: var(--gap-16);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
.button {
|
|
64
64
|
@mixin button-reset;
|
|
65
|
-
padding: 0;
|
|
65
|
+
padding: var(--gap-0);
|
|
66
66
|
transition: opacity 0.15s ease-in-out;
|
|
67
67
|
min-width: auto;
|
|
68
68
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '@alfalab/core-components-
|
|
1
|
+
@import '@alfalab/core-components-vars/src/index.css';
|
|
2
2
|
|
|
3
3
|
.horizontal {
|
|
4
|
-
padding: var(--gap-2) 0;
|
|
4
|
+
padding: var(--gap-2) var(--gap-0);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.rowLimit1 {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
flex-direction: row;
|
|
19
19
|
flex-wrap: nowrap;
|
|
20
20
|
justify-content: space-between;
|
|
21
|
-
margin: var(--gap-2) 0;
|
|
21
|
+
margin: var(--gap-2) var(--gap-0);
|
|
22
22
|
word-break: break-word;
|
|
23
23
|
}
|
|
24
24
|
|
package/src/index.module.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '@alfalab/core-components-
|
|
1
|
+
@import '@alfalab/core-components-vars/src/index.css';
|
|
2
2
|
|
|
3
3
|
.component {
|
|
4
4
|
text-align: unset;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
border-radius: 0;
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
transition: opacity 0.15s ease-in-out;
|
|
26
|
-
padding: 0;
|
|
26
|
+
padding: var(--gap-0);
|
|
27
27
|
|
|
28
28
|
&.hover {
|
|
29
29
|
opacity: 0.8;
|
|
@@ -49,27 +49,27 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
.none {
|
|
52
|
-
padding: 0;
|
|
52
|
+
padding: var(--gap-0);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.airy {
|
|
56
|
-
padding: var(--gap-16) 0;
|
|
56
|
+
padding: var(--gap-16) var(--gap-0);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.default {
|
|
60
|
-
padding: var(--gap-12) 0;
|
|
60
|
+
padding: var(--gap-12) var(--gap-0);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.compact {
|
|
64
|
-
padding: var(--gap-8) 0;
|
|
64
|
+
padding: var(--gap-8) var(--gap-0);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.tiny {
|
|
68
|
-
padding: var(--gap-4) 0;
|
|
68
|
+
padding: var(--gap-4) var(--gap-0);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.noneTop {
|
|
72
|
-
padding-top: 0;
|
|
72
|
+
padding-top: var(--gap-0);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.airyTop {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.noneBottom {
|
|
92
|
-
padding-bottom: 0;
|
|
92
|
+
padding-bottom: var(--gap-0);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.airyBottom {
|
package/src/vars.css
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|