@alfalab/core-components-pure-cell 4.4.7 → 4.4.9
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-5a229016.d.ts +3 -2
- package/{component-95b9ffca.js → component-942c64bb.js} +4 -4
- package/component.js +1 -1
- package/components/addon/component.js +1 -1
- package/components/addon/index.css +10 -10
- package/components/amount/component.js +1 -1
- package/components/amount/index.css +2 -2
- package/components/amount-title/component.d.ts +6 -1
- package/components/amount-title/component.js +4 -3
- package/components/amount-title/index.css +3 -3
- package/components/category/component.js +1 -1
- package/components/category/index.css +6 -6
- 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 +4 -4
- package/components/footer-button/component.js +1 -1
- package/components/footer-button/index.css +2 -2
- package/components/graphics/component.js +1 -1
- package/components/graphics/index.css +5 -5
- package/components/main/component.js +1 -1
- package/components/main/index.css +4 -4
- 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 +7 -7
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +1 -1
- package/cssm/component-5a229016.d.ts +1 -0
- package/cssm/components/amount-title/component.d.ts +6 -1
- package/cssm/components/amount-title/component.js +3 -2
- package/cssm/components/category/index.module.css +1 -1
- package/cssm/index.module.css +1 -1
- package/esm/{component-e11c44d3.js → component-0311d685.js} +4 -4
- package/esm/component-5a229016.d.ts +1 -0
- package/esm/component.js +1 -1
- package/esm/components/addon/component.js +1 -1
- package/esm/components/addon/index.css +10 -10
- package/esm/components/amount/component.js +1 -1
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount-title/component.d.ts +6 -1
- package/esm/components/amount-title/component.js +4 -3
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/category/component.js +1 -1
- package/esm/components/category/index.css +6 -6
- 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 +4 -4
- package/esm/components/footer-button/component.js +1 -1
- package/esm/components/footer-button/index.css +2 -2
- package/esm/components/graphics/component.js +1 -1
- package/esm/components/graphics/index.css +5 -5
- package/esm/components/main/component.js +1 -1
- package/esm/components/main/index.css +4 -4
- 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 +7 -7
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +1 -1
- package/esm/index.css +22 -22
- package/esm/index.js +1 -1
- package/index.css +22 -22
- package/index.js +1 -1
- package/modern/{component-68901684.js → component-03861c53.js} +4 -4
- package/modern/component-5a229016.d.ts +1 -0
- package/modern/component.js +1 -1
- package/modern/components/addon/component.js +1 -1
- package/modern/components/addon/index.css +10 -10
- package/modern/components/amount/component.js +1 -1
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount-title/component.d.ts +6 -1
- package/modern/components/amount-title/component.js +11 -3
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/category/component.js +1 -1
- package/modern/components/category/index.css +6 -6
- 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 +4 -4
- package/modern/components/footer-button/component.js +1 -1
- package/modern/components/footer-button/index.css +2 -2
- package/modern/components/graphics/component.js +1 -1
- package/modern/components/graphics/index.css +5 -5
- package/modern/components/main/component.js +1 -1
- package/modern/components/main/index.css +4 -4
- 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 +7 -7
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +1 -1
- package/modern/index.css +22 -22
- package/modern/index.js +1 -1
- package/package.json +5 -5
- package/src/components/amount-title/component.tsx +32 -18
- /package/{component-95b9ffca.d.ts → component-942c64bb.d.ts} +0 -0
- /package/esm/{component-e11c44d3.d.ts → component-0311d685.d.ts} +0 -0
- /package/modern/{component-68901684.d.ts → component-03861c53.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fdg0v */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
--gap-3xs: 2px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .pure-
|
|
18
|
+
} .pure-cell__component_1vdhv {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
align-self: center;
|
|
22
22
|
|
|
23
23
|
/* can use /r/n */
|
|
24
24
|
white-space: pre-line
|
|
25
|
-
} .pure-
|
|
25
|
+
} .pure-cell__component_1vdhv.pure-cell__vertical_1vdhv {
|
|
26
26
|
grid-row-gap: var(--gap-3xs);
|
|
27
27
|
justify-content: center;
|
|
28
28
|
align-items: center;
|
|
29
29
|
|
|
30
30
|
/* for button */
|
|
31
31
|
text-align: center;
|
|
32
|
-
} .pure-
|
|
32
|
+
} .pure-cell__component_1vdhv.pure-cell__reverse_1vdhv {
|
|
33
33
|
flex-direction: column-reverse;
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-03861c53";
|
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '@alfalab/core-components-shared/modern';
|
|
4
4
|
import '@alfalab/core-components-typography/modern';
|
|
5
|
-
export { T as Text } from '../../component-
|
|
5
|
+
export { T as Text } from '../../component-03861c53.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import '@alfalab/core-components-comment/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x6z04 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .pure-
|
|
19
|
+
} .pure-cell__horizontal_rocfi {
|
|
20
20
|
padding: var(--gap-3xs) 0;
|
|
21
|
-
} .pure-
|
|
21
|
+
} .pure-cell__rowLimit1_rocfi {
|
|
22
22
|
-webkit-line-clamp: 1;
|
|
23
23
|
display: -webkit-box;
|
|
24
24
|
-webkit-box-orient: vertical;
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
word-break: break-all;
|
|
27
|
-
} .pure-
|
|
27
|
+
} .pure-cell__rowLimit2_rocfi {
|
|
28
28
|
-webkit-line-clamp: 2;
|
|
29
29
|
display: -webkit-box;
|
|
30
30
|
-webkit-box-orient: vertical;
|
|
31
31
|
overflow: hidden;
|
|
32
|
-
} .pure-
|
|
32
|
+
} .pure-cell__component_rocfi {
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: row;
|
|
35
35
|
flex-wrap: nowrap;
|
|
36
36
|
justify-content: space-between;
|
|
37
37
|
margin: var(--gap-3xs) 0;
|
|
38
38
|
word-break: break-word;
|
|
39
|
-
} .pure-
|
|
39
|
+
} .pure-cell__component_rocfi .pure-cell__vertical_rocfi {
|
|
40
40
|
justify-content: center;
|
|
41
|
-
} .pure-
|
|
41
|
+
} .pure-cell__title_rocfi + .pure-cell__value_rocfi {
|
|
42
42
|
margin-left: var(--gap-m);
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-03861c53";
|
package/modern/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: jwx7v */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-border-link: #
|
|
4
|
+
--color-light-border-link: #2288fa; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
|
-
} .pure-
|
|
23
|
+
} .pure-cell__component_xotgn {
|
|
24
24
|
text-align: unset;
|
|
25
25
|
box-sizing: border-box;
|
|
26
|
-
} .pure-
|
|
26
|
+
} .pure-cell__horizontal_xotgn {
|
|
27
27
|
display: flex;
|
|
28
28
|
width: 100%
|
|
29
|
-
} .pure-
|
|
29
|
+
} .pure-cell__horizontal_xotgn > section:not(:last-child) {
|
|
30
30
|
margin-right: var(--gap-m);
|
|
31
|
-
} .pure-
|
|
31
|
+
} .pure-cell__vertical_xotgn {
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
flex-direction: column
|
|
35
|
-
} .pure-
|
|
35
|
+
} .pure-cell__vertical_xotgn > section:not(:last-child) {
|
|
36
36
|
margin-bottom: var(--gap-s);
|
|
37
|
-
} .pure-
|
|
37
|
+
} .pure-cell__button_xotgn {
|
|
38
38
|
font-family: inherit;
|
|
39
39
|
background: none;
|
|
40
40
|
border: 0;
|
|
@@ -42,37 +42,37 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
transition: opacity 0.15s ease-in-out;
|
|
44
44
|
padding: 0
|
|
45
|
-
} .pure-
|
|
45
|
+
} .pure-cell__button_xotgn:hover {
|
|
46
46
|
opacity: 0.8;
|
|
47
|
-
} .pure-
|
|
47
|
+
} .pure-cell__button_xotgn:active {
|
|
48
48
|
opacity: 0.6;
|
|
49
|
-
} .pure-
|
|
49
|
+
} .pure-cell__link_xotgn {
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
color: inherit;
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
transition: opacity 0.15s ease-in-out
|
|
54
|
-
} .pure-
|
|
54
|
+
} .pure-cell__link_xotgn:hover {
|
|
55
55
|
opacity: 0.8;
|
|
56
|
-
} .pure-
|
|
56
|
+
} .pure-cell__link_xotgn:active {
|
|
57
57
|
opacity: 0.6;
|
|
58
|
-
} .pure-
|
|
58
|
+
} .pure-cell__none_xotgn {
|
|
59
59
|
padding: 0;
|
|
60
|
-
} .pure-
|
|
60
|
+
} .pure-cell__airy_xotgn {
|
|
61
61
|
padding: var(--gap-m) 0;
|
|
62
|
-
} .pure-
|
|
62
|
+
} .pure-cell__defaultPadding_xotgn {
|
|
63
63
|
padding: var(--gap-s) 0;
|
|
64
|
-
} .pure-
|
|
64
|
+
} .pure-cell__compact_xotgn {
|
|
65
65
|
padding: var(--gap-xs) 0;
|
|
66
|
-
} .pure-
|
|
66
|
+
} .pure-cell__tiny_xotgn {
|
|
67
67
|
padding: var(--gap-2xs) 0;
|
|
68
|
-
} .pure-
|
|
68
|
+
} .pure-cell__left_xotgn {
|
|
69
69
|
padding-left: var(--gap-m);
|
|
70
|
-
} .pure-
|
|
70
|
+
} .pure-cell__right_xotgn {
|
|
71
71
|
padding-right: var(--gap-m);
|
|
72
|
-
} .pure-
|
|
72
|
+
} .pure-cell__both_xotgn {
|
|
73
73
|
padding-right: var(--gap-m);
|
|
74
74
|
padding-left: var(--gap-m);
|
|
75
|
-
} .pure-
|
|
75
|
+
} .pure-cell__focused_xotgn {
|
|
76
76
|
outline: 2px solid var(--focus-color);
|
|
77
77
|
outline-offset: 2px;
|
|
78
78
|
}
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pure-cell",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@alfalab/core-components-amount": "^3.3.0",
|
|
19
|
-
"@alfalab/core-components-button": "^
|
|
20
|
-
"@alfalab/core-components-typography": "^4.
|
|
21
|
-
"@alfalab/core-components-comment": "^2.2.
|
|
22
|
-
"@alfalab/core-components-shared": "^0.
|
|
19
|
+
"@alfalab/core-components-button": "^10.0.0",
|
|
20
|
+
"@alfalab/core-components-typography": "^4.2.0",
|
|
21
|
+
"@alfalab/core-components-comment": "^2.2.2",
|
|
22
|
+
"@alfalab/core-components-shared": "^0.8.0",
|
|
23
23
|
"@alfalab/hooks": "^1.13.0",
|
|
24
24
|
"@alfalab/data": "^1.6.0",
|
|
25
25
|
"classnames": "^2.3.1",
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
|
|
4
4
|
import { Amount as CoreAmount } from '@alfalab/core-components-amount';
|
|
5
5
|
import { getDataTestId } from '@alfalab/core-components-shared';
|
|
6
|
-
import { Color, Typography } from '@alfalab/core-components-typography';
|
|
6
|
+
import { Color, TitleProps, Typography } from '@alfalab/core-components-typography';
|
|
7
7
|
|
|
8
8
|
import { AmountProps as AmountType } from '../typesProps';
|
|
9
9
|
|
|
@@ -12,8 +12,14 @@ import styles from './index.module.css';
|
|
|
12
12
|
type Props = {
|
|
13
13
|
/**
|
|
14
14
|
* Цвет денежного значения
|
|
15
|
+
* @deprecated Используйте titleProps.color
|
|
15
16
|
*/
|
|
16
17
|
color?: Color;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Пропсы, которые будут прокинуты в компонент типографики
|
|
21
|
+
*/
|
|
22
|
+
titleProps?: TitleProps;
|
|
17
23
|
} & AmountType;
|
|
18
24
|
|
|
19
25
|
export const AmountTitle: React.FC<Props> = ({
|
|
@@ -22,21 +28,29 @@ export const AmountTitle: React.FC<Props> = ({
|
|
|
22
28
|
className,
|
|
23
29
|
color = 'primary',
|
|
24
30
|
dataTestId,
|
|
31
|
+
titleProps = {},
|
|
25
32
|
...restProps
|
|
26
|
-
}) =>
|
|
27
|
-
|
|
28
|
-
tag
|
|
29
|
-
view
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
dataTestId={getDataTestId(dataTestId, '
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
)
|
|
33
|
+
}) => {
|
|
34
|
+
const titleDefaultProps = {
|
|
35
|
+
tag: 'h4',
|
|
36
|
+
view: 'small',
|
|
37
|
+
color,
|
|
38
|
+
...titleProps,
|
|
39
|
+
} as Omit<TitleProps, 'className' | 'dataTestId'>;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<Typography.Title
|
|
43
|
+
{...titleDefaultProps}
|
|
44
|
+
dataTestId={getDataTestId(dataTestId, 'amount-title')}
|
|
45
|
+
className={cn(styles.component, titleProps.className)}
|
|
46
|
+
>
|
|
47
|
+
<CoreAmount
|
|
48
|
+
minority={minority || minorUnits}
|
|
49
|
+
className={cn(styles.weight, className)}
|
|
50
|
+
dataTestId={getDataTestId(dataTestId, 'core-amount-title')}
|
|
51
|
+
{...restProps}
|
|
52
|
+
bold='none'
|
|
53
|
+
/>
|
|
54
|
+
</Typography.Title>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|