@alfalab/core-components-pure-cell 3.0.2 → 4.0.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/component-3f45f3c4.d.ts +5 -7
- package/{component-e370ba4a.d.ts → component-e81848a4.d.ts} +0 -0
- package/{component-e370ba4a.js → component-e81848a4.js} +11 -10
- package/component.js +4 -3
- package/components/addon/component.d.ts +1 -1
- package/components/addon/component.js +4 -7
- package/components/addon/index.css +15 -8
- package/components/addon/index.js +1 -1
- package/components/amount/component.d.ts +2 -6
- package/components/amount/component.js +6 -6
- package/components/amount/index.css +2 -2
- package/components/amount/index.js +2 -1
- package/components/amount-title/component.d.ts +1 -9
- package/components/amount-title/component.js +5 -5
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.js +2 -1
- package/components/category/component.d.ts +5 -0
- package/components/category/component.js +5 -4
- package/components/category/index.css +8 -4
- package/components/category/index.js +1 -1
- package/components/content/component.js +4 -3
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +4 -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.d.ts +5 -0
- package/components/footer-button/component.js +15 -5
- package/components/footer-button/index.css +2 -2
- package/components/footer-button/index.d.ts +1 -1
- package/components/footer-button/index.js +3 -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 +4 -3
- package/components/main/index.css +4 -4
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +4 -3
- package/components/text/component.js +4 -3
- package/components/text/index.css +10 -8
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +4 -3
- package/components/typesProps.d.ts +2 -2
- package/cssm/{component-d3306cf3.d.ts → component-0839382a.d.ts} +0 -0
- package/cssm/{component-d3306cf3.js → component-0839382a.js} +6 -5
- package/cssm/component-3f45f3c4.d.ts +5 -7
- package/cssm/component.js +3 -2
- package/cssm/components/addon/component.d.ts +1 -1
- package/cssm/components/addon/component.js +2 -5
- package/cssm/components/addon/index.module.css +8 -1
- package/cssm/components/amount/component.d.ts +2 -6
- package/cssm/components/amount/component.js +4 -4
- package/cssm/components/amount/index.js +1 -0
- package/cssm/components/amount-title/component.d.ts +1 -9
- package/cssm/components/amount-title/component.js +3 -3
- package/cssm/components/amount-title/index.js +1 -0
- package/cssm/components/category/component.d.ts +5 -0
- package/cssm/components/category/component.js +3 -2
- package/cssm/components/category/index.module.css +4 -0
- package/cssm/components/content/component.js +3 -2
- package/cssm/components/content/index.d.ts +1 -1
- package/cssm/components/content/index.js +3 -2
- package/cssm/components/footer-button/component.d.ts +5 -0
- package/cssm/components/footer-button/component.js +14 -6
- package/cssm/components/footer-button/index.d.ts +1 -1
- package/cssm/components/footer-button/index.js +2 -1
- package/cssm/components/main/component.js +3 -2
- package/cssm/components/main/index.d.ts +1 -1
- package/cssm/components/main/index.js +3 -2
- package/cssm/components/text/component.js +3 -2
- package/cssm/components/text/index.d.ts +1 -1
- package/cssm/components/text/index.js +3 -2
- package/cssm/components/text/index.module.css +4 -2
- package/cssm/components/typesProps.d.ts +2 -2
- package/cssm/index.js +3 -2
- package/{component-44707ae5.d.ts → cssm/tslib.es6-ce870b46.d.ts} +1 -5
- package/{component-44707ae5.js → cssm/tslib.es6-ce870b46.js} +0 -17
- package/esm/component-3f45f3c4.d.ts +5 -7
- package/esm/{component-6954d6a5.d.ts → component-92010732.d.ts} +0 -0
- package/esm/{component-6954d6a5.js → component-92010732.js} +8 -7
- package/esm/component.js +4 -3
- package/esm/components/addon/component.d.ts +1 -1
- package/esm/components/addon/component.js +4 -7
- package/esm/components/addon/index.css +15 -8
- package/esm/components/addon/index.js +1 -1
- package/esm/components/amount/component.d.ts +2 -6
- package/esm/components/amount/component.js +6 -6
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount/index.js +2 -1
- package/esm/components/amount-title/component.d.ts +1 -9
- package/esm/components/amount-title/component.js +5 -5
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/amount-title/index.js +2 -1
- package/esm/components/category/component.d.ts +5 -0
- package/esm/components/category/component.js +5 -4
- package/esm/components/category/index.css +8 -4
- package/esm/components/category/index.js +1 -1
- package/esm/components/content/component.js +4 -3
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +4 -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.d.ts +5 -0
- package/esm/components/footer-button/component.js +14 -4
- 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 +3 -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 +4 -3
- package/esm/components/main/index.css +4 -4
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +4 -3
- package/esm/components/text/component.js +4 -3
- package/esm/components/text/index.css +10 -8
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +4 -3
- package/esm/components/typesProps.d.ts +2 -2
- package/esm/{getDataTestId-0192477a.d.ts → getDataTestId-a5ad08de.d.ts} +0 -0
- package/esm/{getDataTestId-0192477a.js → getDataTestId-a5ad08de.js} +0 -0
- package/esm/index.css +19 -19
- package/esm/index.js +4 -3
- package/esm/{component-700187d7.d.ts → tslib.es6-1c2475cc.d.ts} +1 -5
- package/esm/{component-700187d7.js → tslib.es6-1c2475cc.js} +1 -13
- package/{getDataTestId-6d196b22.d.ts → getDataTestId-874edbee.d.ts} +0 -0
- package/{getDataTestId-6d196b22.js → getDataTestId-874edbee.js} +0 -0
- package/index.css +19 -19
- package/index.js +4 -3
- package/modern/{component-57adeea3.d.ts → component-0aebd563.d.ts} +0 -0
- package/modern/{component-57adeea3.js → component-0aebd563.js} +6 -6
- package/modern/component-3f45f3c4.d.ts +5 -7
- package/modern/component.js +2 -2
- package/modern/components/addon/component.d.ts +1 -1
- package/modern/components/addon/component.js +3 -5
- package/modern/components/addon/index.css +15 -8
- package/modern/components/addon/index.js +1 -1
- package/modern/components/amount/component.d.ts +2 -6
- package/modern/components/amount/component.js +5 -6
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount/index.js +1 -1
- package/modern/components/amount-title/component.d.ts +1 -9
- package/modern/components/amount-title/component.js +4 -5
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/amount-title/index.js +1 -1
- package/modern/components/category/component.d.ts +5 -0
- package/modern/components/category/component.js +5 -4
- package/modern/components/category/index.css +8 -4
- package/modern/components/category/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 +10 -8
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +2 -2
- package/modern/components/typesProps.d.ts +2 -2
- package/modern/{getDataTestId-bcfbe2e1.d.ts → getDataTestId-997a290e.d.ts} +0 -0
- package/modern/{getDataTestId-bcfbe2e1.js → getDataTestId-997a290e.js} +0 -0
- package/modern/index.css +19 -19
- package/modern/index.js +2 -2
- package/package.json +4 -4
- package/{cssm/component-22ece846.d.ts → tslib.es6-37028810.d.ts} +1 -5
- package/{cssm/component-22ece846.js → tslib.es6-37028810.js} +0 -16
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
2
|
+
import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_zpzi0","categoryName":"pure-cell__categoryName_zpzi0","categoryPercent":"pure-cell__categoryPercent_zpzi0","rightAddon":"pure-cell__rightAddon_zpzi0"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
|
-
const Category = ({ categoryName, categoryPercent, dataTestId }) => (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
|
|
8
|
+
const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) => (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
|
|
9
9
|
React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary', dataTestId: getDataTestId(dataTestId, 'category-name'), className: styles.categoryName }, categoryName),
|
|
10
10
|
categoryPercent !== undefined && (React.createElement(Typography.Text, { tag: 'div', view: 'primary-small', color: 'secondary', className: styles.categoryPercent, dataTestId: getDataTestId(dataTestId, 'category-percent') },
|
|
11
11
|
categoryPercent,
|
|
12
|
-
"%"))
|
|
12
|
+
"%")),
|
|
13
|
+
rightAddons !== undefined && (React.createElement("div", { className: styles.rightAddon, "data-test-id": getDataTestId(dataTestId, 'category-right-addon') }, rightAddons))));
|
|
13
14
|
|
|
14
15
|
export { Category };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mf1c */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-secondary: #f3f4f5;
|
|
4
4
|
}
|
|
@@ -18,20 +18,24 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-xl: 16px;
|
|
20
20
|
}
|
|
21
|
-
.pure-
|
|
21
|
+
.pure-cell__component_zpzi0 {
|
|
22
22
|
display: flex;
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
padding: var(--gap-3xs) 0;
|
|
25
25
|
}
|
|
26
|
-
.pure-
|
|
26
|
+
.pure-cell__categoryName_zpzi0 {
|
|
27
27
|
display: -webkit-box;
|
|
28
28
|
-webkit-line-clamp: 1;
|
|
29
29
|
-webkit-box-orient: vertical;
|
|
30
30
|
overflow: hidden;
|
|
31
|
+
word-break: break-all;
|
|
31
32
|
}
|
|
32
|
-
.pure-
|
|
33
|
+
.pure-cell__categoryPercent_zpzi0 {
|
|
33
34
|
padding: 0 var(--gap-xs);
|
|
34
35
|
background-color: var(--color-light-bg-secondary);
|
|
35
36
|
border-radius: var(--border-radius-xl);
|
|
36
37
|
margin-left: var(--gap-2xs);
|
|
37
38
|
}
|
|
39
|
+
.pure-cell__rightAddon_zpzi0 {
|
|
40
|
+
margin-left: var(--gap-2xs);
|
|
41
|
+
}
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { C as Content } from '../../component-
|
|
13
|
+
export { C as Content } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../footer-button/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2117i */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.pure-
|
|
10
|
+
.pure-cell__component_1s3xh {
|
|
11
11
|
flex-basis: 100%;
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: 1fr auto
|
|
14
14
|
}
|
|
15
|
-
.pure-
|
|
15
|
+
.pure-cell__component_1s3xh.pure-cell__horizontal_1s3xh {
|
|
16
16
|
/* for button */
|
|
17
17
|
align-self: stretch;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0aebd563";
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { C as Content } from '../../component-
|
|
13
|
+
export { C as Content } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../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-997a290e.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_1kl8c","none":"pure-cell__none_1kl8c","default":"pure-cell__default_1kl8c"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Footer = ({ children, footerPadding = 'default', dataTestId }) => (React.createElement("footer", { className: cn(styles.component, styles[footerPadding]), "data-test-id": getDataTestId(dataTestId, 'footer') }, children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tovw */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.pure-
|
|
13
|
+
.pure-cell__component_1kl8c {
|
|
14
14
|
grid-column: 1/3;
|
|
15
15
|
display: grid;
|
|
16
16
|
grid-row-gap: var(--gap-xs)
|
|
17
17
|
}
|
|
18
|
-
.pure-
|
|
18
|
+
.pure-cell__component_1kl8c.pure-cell__none_1kl8c {
|
|
19
19
|
margin-top: 0;
|
|
20
20
|
}
|
|
21
|
-
.pure-
|
|
21
|
+
.pure-cell__component_1kl8c.pure-cell__default_1kl8c {
|
|
22
22
|
margin-top: var(--gap-xs);
|
|
23
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
2
|
+
import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
|
|
3
3
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_ork4a"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const FooterButton = ({ children, dataTestId, ...props }) => (React.createElement(Button, Object.assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId, 'button'), className: styles.component }), children));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
2
|
+
import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
5
|
const FooterText = ({ children, color = 'secondary', dataTestId }) => (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId, 'footer-title') }, children));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
2
|
+
import { g as getDataTestId } from '../../getDataTestId-997a290e.js';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"pure-
|
|
4
|
+
var styles = {"component":"pure-cell__component_111dx"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Graphics = ({ children, dataTestId }) => {
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { M as Main } from '../../component-
|
|
13
|
+
export { M as Main } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../footer-button/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sxozn */
|
|
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_ikr9m {
|
|
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_ikr9m.pure-cell__vertical_ikr9m {
|
|
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_ikr9m.pure-cell__reverse_ikr9m {
|
|
30
30
|
flex-direction: column-reverse;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0aebd563";
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { M as Main } from '../../component-
|
|
13
|
+
export { M as Main } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../footer-button/component.js';
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { T as Text } from '../../component-
|
|
13
|
+
export { T as Text } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../footer-button/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5qrb6 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -11,31 +11,33 @@
|
|
|
11
11
|
--gap-3xs: 2px;
|
|
12
12
|
--gap-m: 16px;
|
|
13
13
|
}
|
|
14
|
-
.pure-
|
|
14
|
+
.pure-cell__horizontal_1vazz {
|
|
15
15
|
padding: var(--gap-3xs) 0;
|
|
16
16
|
}
|
|
17
|
-
.pure-
|
|
17
|
+
.pure-cell__rowLimit1_1vazz {
|
|
18
18
|
display: -webkit-box;
|
|
19
19
|
-webkit-line-clamp: 1;
|
|
20
20
|
-webkit-box-orient: vertical;
|
|
21
21
|
overflow: hidden;
|
|
22
|
+
word-break: break-all;
|
|
22
23
|
}
|
|
23
|
-
.pure-
|
|
24
|
+
.pure-cell__rowLimit2_1vazz {
|
|
24
25
|
display: -webkit-box;
|
|
25
26
|
-webkit-line-clamp: 2;
|
|
26
27
|
-webkit-box-orient: vertical;
|
|
27
28
|
overflow: hidden;
|
|
28
29
|
}
|
|
29
|
-
.pure-
|
|
30
|
+
.pure-cell__component_1vazz {
|
|
30
31
|
display: flex;
|
|
31
32
|
flex-direction: row;
|
|
32
33
|
flex-wrap: nowrap;
|
|
33
34
|
justify-content: space-between;
|
|
34
35
|
margin: var(--gap-3xs) 0;
|
|
35
36
|
}
|
|
36
|
-
.pure-
|
|
37
|
+
.pure-cell__component_1vazz .pure-cell__vertical_1vazz {
|
|
37
38
|
justify-content: center;
|
|
38
39
|
}
|
|
39
|
-
.pure-
|
|
40
|
-
margin-
|
|
40
|
+
.pure-cell__title_1vazz + .pure-cell__value_1vazz {
|
|
41
|
+
margin-left: var(--gap-m);
|
|
42
|
+
flex-shrink: 0;
|
|
41
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-0aebd563";
|
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import '../../getDataTestId-
|
|
6
|
+
import '../../getDataTestId-997a290e.js';
|
|
7
7
|
import '../addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import '../amount/component.js';
|
|
11
11
|
import '../amount-title/component.js';
|
|
12
12
|
import '../category/component.js';
|
|
13
|
-
export { T as Text } from '../../component-
|
|
13
|
+
export { T as Text } from '../../component-0aebd563.js';
|
|
14
14
|
import '../footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import '../footer-button/component.js';
|
|
@@ -16,7 +16,7 @@ type AmountProps = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Количество минорных единиц в валюте
|
|
18
18
|
*/
|
|
19
|
-
minority
|
|
19
|
+
minority?: number;
|
|
20
20
|
/**
|
|
21
21
|
* Делает минорную часть полупрозрачной
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ type AmountProps = {
|
|
|
24
24
|
/**
|
|
25
25
|
* Количество минорных единиц в валюте для Клика
|
|
26
26
|
*/
|
|
27
|
-
minorUnits
|
|
27
|
+
minorUnits?: number;
|
|
28
28
|
/**
|
|
29
29
|
* default - не отображаем копейки, если их значение 0
|
|
30
30
|
* withZeroMinorPart - отображаем копейки, даже если их значение равно 0
|
|
File without changes
|
|
File without changes
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1u4gi */
|
|
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_15qoi {
|
|
23
23
|
text-align: unset;
|
|
24
24
|
}
|
|
25
|
-
.pure-
|
|
25
|
+
.pure-cell__horizontal_15qoi {
|
|
26
26
|
display: flex;
|
|
27
27
|
width: 100%;
|
|
28
28
|
grid-column-gap: var(--gap-m);
|
|
29
29
|
}
|
|
30
|
-
.pure-
|
|
30
|
+
.pure-cell__vertical_15qoi {
|
|
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_15qoi {
|
|
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_15qoi:hover {
|
|
46
46
|
opacity: 0.8;
|
|
47
47
|
}
|
|
48
|
-
.pure-
|
|
48
|
+
.pure-cell__button_15qoi:active {
|
|
49
49
|
opacity: 0.6;
|
|
50
50
|
}
|
|
51
|
-
.pure-
|
|
51
|
+
.pure-cell__link_15qoi {
|
|
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_15qoi:hover {
|
|
58
58
|
opacity: 0.8;
|
|
59
59
|
}
|
|
60
|
-
.pure-
|
|
60
|
+
.pure-cell__link_15qoi:active {
|
|
61
61
|
opacity: 0.6;
|
|
62
62
|
}
|
|
63
|
-
.pure-
|
|
63
|
+
.pure-cell__none_15qoi {
|
|
64
64
|
padding: 0;
|
|
65
65
|
}
|
|
66
|
-
.pure-
|
|
66
|
+
.pure-cell__airy_15qoi {
|
|
67
67
|
padding: var(--gap-m) 0;
|
|
68
68
|
}
|
|
69
|
-
.pure-
|
|
69
|
+
.pure-cell__defaultPadding_15qoi {
|
|
70
70
|
padding: var(--gap-s) 0;
|
|
71
71
|
}
|
|
72
|
-
.pure-
|
|
72
|
+
.pure-cell__compact_15qoi {
|
|
73
73
|
padding: var(--gap-xs) 0;
|
|
74
74
|
}
|
|
75
|
-
.pure-
|
|
75
|
+
.pure-cell__tiny_15qoi {
|
|
76
76
|
padding: var(--gap-2xs) 0;
|
|
77
77
|
}
|
|
78
|
-
.pure-
|
|
78
|
+
.pure-cell__left_15qoi {
|
|
79
79
|
padding-left: var(--gap-m);
|
|
80
80
|
}
|
|
81
|
-
.pure-
|
|
81
|
+
.pure-cell__right_15qoi {
|
|
82
82
|
padding-right: var(--gap-m);
|
|
83
83
|
}
|
|
84
|
-
.pure-
|
|
84
|
+
.pure-cell__both_15qoi {
|
|
85
85
|
padding-right: var(--gap-m);
|
|
86
86
|
padding-left: var(--gap-m);
|
|
87
87
|
}
|
|
88
|
-
.pure-
|
|
88
|
+
.pure-cell__focused_15qoi {
|
|
89
89
|
outline: 2px solid var(--focus-color);
|
|
90
90
|
outline-offset: 2px;
|
|
91
91
|
}
|
package/modern/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import '@alfalab/core-components-comment/modern';
|
|
6
|
-
import './getDataTestId-
|
|
6
|
+
import './getDataTestId-997a290e.js';
|
|
7
7
|
import './components/addon/component.js';
|
|
8
8
|
import '@alfalab/core-components-typography/modern';
|
|
9
9
|
import '@alfalab/core-components-amount/modern';
|
|
10
10
|
import './components/amount/component.js';
|
|
11
11
|
import './components/amount-title/component.js';
|
|
12
12
|
import './components/category/component.js';
|
|
13
|
-
export { P as PureCell } from './component-
|
|
13
|
+
export { P as PureCell } from './component-0aebd563.js';
|
|
14
14
|
import './components/footer/component.js';
|
|
15
15
|
import '@alfalab/core-components-button/modern';
|
|
16
16
|
import './components/footer-button/component.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pure-cell",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-amount": "^3.0.
|
|
22
|
-
"@alfalab/core-components-button": "^6.1.
|
|
21
|
+
"@alfalab/core-components-amount": "^3.0.4",
|
|
22
|
+
"@alfalab/core-components-button": "^6.1.2",
|
|
23
23
|
"@alfalab/core-components-typography": "^3.0.2",
|
|
24
|
-
"@alfalab/core-components-comment": "^2.0
|
|
24
|
+
"@alfalab/core-components-comment": "^2.1.0",
|
|
25
25
|
"@alfalab/hooks": "^1.4.1",
|
|
26
26
|
"classnames": "^2.3.1",
|
|
27
27
|
"react-merge-refs": "1.1.0"
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonProps } from "@alfalab/core-components-button";
|
|
4
1
|
declare function __extends(d: any, b: any): void;
|
|
5
2
|
declare function __rest(s: any, e: any): {};
|
|
6
3
|
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
@@ -32,5 +29,4 @@ declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
|
|
|
32
29
|
declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
|
|
33
30
|
declare function __assign(...args: any[]): any;
|
|
34
31
|
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
35
|
-
|
|
36
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, FooterButton };
|
|
32
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var getDataTestId = require('./getDataTestId-12a31ec3.js');
|
|
5
|
-
var coreComponentsButton = require('@alfalab/core-components-button/cssm');
|
|
6
|
-
var styles = require('./components/footer-button/index.module.css');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
12
|
-
|
|
13
3
|
/*! *****************************************************************************
|
|
14
4
|
Copyright (c) Microsoft Corporation.
|
|
15
5
|
|
|
@@ -49,10 +39,4 @@ function __rest(s, e) {
|
|
|
49
39
|
return t;
|
|
50
40
|
}
|
|
51
41
|
|
|
52
|
-
var FooterButton = function (_a) {
|
|
53
|
-
var children = _a.children, dataTestId = _a.dataTestId, props = __rest(_a, ["children", "dataTestId"]);
|
|
54
|
-
return (React__default['default'].createElement(coreComponentsButton.Button, exports.__assign({}, props, { size: 'xxs', dataTestId: getDataTestId.getDataTestId(dataTestId, 'button'), className: styles__default['default'].component }), children));
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
exports.FooterButton = FooterButton;
|
|
58
42
|
exports.__rest = __rest;
|