@alfalab/core-components-pure-cell 4.5.1 → 4.6.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-8ae5e9f0.d.ts +211 -0
- package/component-8ae5e9f0.js +200 -0
- package/{modern/component-5a229016.d.ts → component-fd7196d2.d.ts} +1 -0
- package/component.js +3 -15
- package/components/addon/component.d.ts +0 -24
- package/components/addon/component.js +5 -15
- package/components/addon/index.css +10 -10
- package/components/addon/index.d.ts +1 -1
- package/components/addon/index.js +1 -4
- package/components/amount/component.d.ts +0 -25
- package/components/amount/component.js +8 -19
- package/components/amount/index.css +2 -2
- package/components/amount/index.d.ts +1 -1
- package/components/amount/index.js +2 -8
- package/components/amount-title/component.d.ts +0 -22
- package/components/amount-title/component.js +8 -20
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.d.ts +1 -1
- package/components/amount-title/index.js +2 -8
- package/components/category/component.d.ts +0 -25
- package/components/category/component.js +5 -19
- package/components/category/index.css +5 -5
- package/components/category/index.d.ts +1 -1
- package/components/category/index.js +2 -5
- package/components/content/component.js +2 -17
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +2 -20
- package/components/footer/component.d.ts +0 -20
- package/components/footer/component.js +5 -15
- package/components/footer/index.css +4 -4
- package/components/footer/index.d.ts +1 -1
- package/components/footer/index.js +2 -5
- package/components/footer-button/component.d.ts +0 -14
- package/components/footer-button/component.js +6 -15
- package/components/footer-button/index.css +2 -2
- package/components/footer-button/index.d.ts +1 -1
- package/components/footer-button/index.js +2 -6
- package/components/footer-text/component.d.ts +0 -21
- package/components/footer-text/component.js +5 -11
- package/components/footer-text/index.d.ts +1 -1
- package/components/footer-text/index.js +2 -5
- package/components/graphics/component.d.ts +0 -20
- package/components/graphics/component.js +5 -15
- package/components/graphics/index.css +5 -5
- package/components/graphics/index.d.ts +1 -1
- package/components/graphics/index.js +2 -5
- package/components/main/component.js +2 -17
- package/components/main/index.css +4 -4
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +2 -20
- package/components/text/component.js +2 -16
- package/components/text/index.css +7 -7
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +2 -20
- package/cssm/component-4445c77d.d.ts +211 -0
- package/cssm/component-4445c77d.js +189 -0
- package/{esm/component-5a229016.d.ts → cssm/component-fd7196d2.d.ts} +1 -0
- package/cssm/component.js +3 -25
- package/cssm/components/addon/component.d.ts +0 -24
- package/cssm/components/addon/component.js +6 -14
- package/cssm/components/addon/index.d.ts +1 -1
- package/cssm/components/addon/index.js +1 -5
- package/cssm/components/amount/component.d.ts +0 -25
- package/cssm/components/amount/component.js +9 -18
- package/cssm/components/amount/index.d.ts +1 -1
- package/cssm/components/amount/index.js +2 -9
- package/cssm/components/amount-title/component.d.ts +0 -22
- package/cssm/components/amount-title/component.js +9 -19
- package/cssm/components/amount-title/index.d.ts +1 -1
- package/cssm/components/amount-title/index.js +2 -9
- package/cssm/components/category/component.d.ts +0 -25
- package/cssm/components/category/component.js +6 -18
- package/cssm/components/category/index.d.ts +1 -1
- package/cssm/components/category/index.js +2 -6
- package/cssm/components/content/component.js +2 -27
- package/cssm/components/content/index.d.ts +1 -1
- package/cssm/components/content/index.js +2 -31
- package/cssm/components/footer/component.d.ts +0 -20
- package/cssm/components/footer/component.js +6 -14
- package/cssm/components/footer/index.d.ts +1 -1
- package/cssm/components/footer/index.js +2 -6
- package/cssm/components/footer-button/component.d.ts +0 -14
- package/cssm/components/footer-button/component.js +7 -14
- package/cssm/components/footer-button/index.d.ts +1 -1
- package/cssm/components/footer-button/index.js +2 -7
- package/cssm/components/footer-text/component.d.ts +0 -21
- package/cssm/components/footer-text/component.js +5 -11
- package/cssm/components/footer-text/index.d.ts +1 -1
- package/cssm/components/footer-text/index.js +2 -5
- package/cssm/components/graphics/component.d.ts +0 -20
- package/cssm/components/graphics/component.js +6 -14
- package/cssm/components/graphics/index.d.ts +1 -1
- package/cssm/components/graphics/index.js +2 -6
- package/cssm/components/main/component.js +2 -27
- package/cssm/components/main/index.d.ts +1 -1
- package/cssm/components/main/index.js +2 -31
- package/cssm/components/text/component.js +2 -26
- package/cssm/components/text/index.d.ts +1 -1
- package/cssm/components/text/index.js +2 -31
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +2 -31
- package/cssm/shared/index.d.ts +1 -0
- package/cssm/shared/index.js +9 -0
- package/cssm/utils.d.ts +20 -0
- package/cssm/utils.js +29 -0
- package/esm/component-7bedc2d7.d.ts +211 -0
- package/esm/component-7bedc2d7.js +180 -0
- package/{component-5a229016.d.ts → esm/component-fd7196d2.d.ts} +1 -0
- package/esm/component.js +1 -13
- package/esm/components/addon/component.d.ts +0 -24
- package/esm/components/addon/component.js +4 -13
- package/esm/components/addon/index.css +10 -10
- package/esm/components/addon/index.d.ts +1 -1
- package/esm/components/addon/index.js +1 -4
- package/esm/components/amount/component.d.ts +0 -25
- package/esm/components/amount/component.js +7 -17
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount/index.d.ts +1 -1
- package/esm/components/amount/index.js +1 -7
- package/esm/components/amount-title/component.d.ts +0 -22
- package/esm/components/amount-title/component.js +7 -18
- 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 -7
- package/esm/components/category/component.d.ts +0 -25
- package/esm/components/category/component.js +4 -18
- package/esm/components/category/index.css +5 -5
- package/esm/components/category/index.d.ts +1 -1
- package/esm/components/category/index.js +1 -4
- package/esm/components/content/component.js +1 -16
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +1 -19
- package/esm/components/footer/component.d.ts +0 -20
- package/esm/components/footer/component.js +4 -13
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/index.d.ts +1 -1
- package/esm/components/footer/index.js +1 -4
- package/esm/components/footer-button/component.d.ts +0 -14
- package/esm/components/footer-button/component.js +5 -14
- 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 -5
- package/esm/components/footer-text/component.d.ts +0 -21
- package/esm/components/footer-text/component.js +4 -10
- package/esm/components/footer-text/index.d.ts +1 -1
- package/esm/components/footer-text/index.js +1 -4
- package/esm/components/graphics/component.d.ts +0 -20
- package/esm/components/graphics/component.js +4 -13
- package/esm/components/graphics/index.css +5 -5
- package/esm/components/graphics/index.d.ts +1 -1
- package/esm/components/graphics/index.js +1 -4
- package/esm/components/main/component.js +1 -16
- package/esm/components/main/index.css +4 -4
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +1 -19
- package/esm/components/text/component.js +1 -15
- package/esm/components/text/index.css +7 -7
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +1 -19
- package/esm/index.css +21 -21
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -19
- package/esm/shared/index.d.ts +1 -0
- package/esm/shared/index.js +1 -0
- package/esm/utils.d.ts +20 -0
- package/esm/utils.js +25 -0
- package/index.css +21 -21
- package/index.d.ts +1 -1
- package/index.js +2 -20
- package/modern/component-edffa17d.d.ts +211 -0
- package/modern/component-edffa17d.js +169 -0
- package/{cssm/component-5a229016.d.ts → modern/component-fd7196d2.d.ts} +1 -0
- package/modern/component.js +1 -13
- package/modern/components/addon/component.d.ts +0 -24
- package/modern/components/addon/component.js +4 -10
- package/modern/components/addon/index.css +10 -10
- package/modern/components/addon/index.d.ts +1 -1
- package/modern/components/addon/index.js +1 -4
- package/modern/components/amount/component.d.ts +0 -25
- package/modern/components/amount/component.js +6 -13
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount/index.d.ts +1 -1
- package/modern/components/amount/index.js +1 -6
- package/modern/components/amount-title/component.d.ts +0 -22
- package/modern/components/amount-title/component.js +6 -21
- 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 -6
- package/modern/components/category/component.d.ts +0 -25
- package/modern/components/category/component.js +4 -15
- package/modern/components/category/index.css +5 -5
- package/modern/components/category/index.d.ts +1 -1
- package/modern/components/category/index.js +1 -4
- package/modern/components/content/component.js +1 -15
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/index.d.ts +1 -1
- package/modern/components/content/index.js +1 -18
- package/modern/components/footer/component.d.ts +0 -20
- package/modern/components/footer/component.js +4 -10
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/index.d.ts +1 -1
- package/modern/components/footer/index.js +1 -4
- package/modern/components/footer-button/component.d.ts +0 -14
- package/modern/components/footer-button/component.js +4 -10
- 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 -4
- package/modern/components/footer-text/component.d.ts +0 -21
- package/modern/components/footer-text/component.js +4 -7
- package/modern/components/footer-text/index.d.ts +1 -1
- package/modern/components/footer-text/index.js +1 -4
- package/modern/components/graphics/component.d.ts +0 -20
- package/modern/components/graphics/component.js +4 -10
- package/modern/components/graphics/index.css +5 -5
- package/modern/components/graphics/index.d.ts +1 -1
- package/modern/components/graphics/index.js +1 -4
- package/modern/components/main/component.js +1 -15
- package/modern/components/main/index.css +4 -4
- package/modern/components/main/index.d.ts +1 -1
- package/modern/components/main/index.js +1 -18
- package/modern/components/text/component.js +1 -14
- package/modern/components/text/index.css +7 -7
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +1 -18
- package/modern/index.css +21 -21
- package/modern/index.d.ts +1 -1
- package/modern/index.js +1 -18
- package/modern/shared/index.d.ts +1 -0
- package/modern/shared/index.js +1 -0
- package/modern/utils.d.ts +20 -0
- package/modern/utils.js +25 -0
- package/package.json +5 -5
- package/shared/index.d.ts +1 -0
- package/shared/index.js +9 -0
- package/shared/package.json +3 -0
- package/src/component.tsx +4 -3
- package/src/components/addon/component.tsx +14 -9
- package/src/components/amount/component.tsx +21 -16
- package/src/components/amount-title/component.tsx +9 -3
- package/src/components/category/component.tsx +42 -27
- package/src/components/content/component.tsx +2 -2
- package/src/components/footer/component.tsx +14 -9
- package/src/components/footer-button/component.tsx +18 -12
- package/src/components/footer-text/component.tsx +16 -10
- package/src/components/graphics/component.tsx +14 -9
- package/src/components/main/component.tsx +2 -2
- package/src/components/text/component.tsx +3 -3
- package/src/shared/index.ts +1 -0
- package/src/shared/package.json +3 -0
- package/src/utils.ts +23 -0
- package/utils.d.ts +20 -0
- package/utils.js +29 -0
- package/component-1cf5c515.d.ts +0 -74
- package/component-1cf5c515.js +0 -121
- package/cssm/component-3ca297e4.d.ts +0 -74
- package/cssm/component-3ca297e4.js +0 -117
- package/esm/component-674e9ea3.d.ts +0 -74
- package/esm/component-674e9ea3.js +0 -109
- package/modern/component-4d708178.d.ts +0 -74
- package/modern/component-4d708178.js +0 -101
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { useContext, forwardRef, useRef } from 'react';
|
|
3
|
+
import mergeRefs from 'react-merge-refs';
|
|
4
|
+
import cn from 'classnames';
|
|
5
|
+
import { Comment } from '@alfalab/core-components-comment/esm';
|
|
6
|
+
import { useFocus } from '@alfalab/hooks';
|
|
7
|
+
import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
8
|
+
import { Amount as Amount$1 } from '@alfalab/core-components-amount/esm';
|
|
9
|
+
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
10
|
+
import { Button } from '@alfalab/core-components-button/esm';
|
|
11
|
+
|
|
12
|
+
var styles$a = {"component":"pure-cell__component_11qo8","none":"pure-cell__none_11qo8","default":"pure-cell__default_11qo8","addonPadding":"pure-cell__addonPadding_11qo8","auto":"pure-cell__auto_11qo8","top":"pure-cell__top_11qo8","center":"pure-cell__center_11qo8","bottom":"pure-cell__bottom_11qo8"};
|
|
13
|
+
require('./components/addon/index.css')
|
|
14
|
+
|
|
15
|
+
var Addon = function (_a) {
|
|
16
|
+
var children = _a.children, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? 'top' : _b, _c = _a.addonPadding, addonPadding = _c === void 0 ? 'default' : _c, dataTestId = _a.dataTestId;
|
|
17
|
+
var pureCellContext = useContext(PureCellContext);
|
|
18
|
+
return (React.createElement("section", { className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon') }, children));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var styles$9 = {"component":"pure-cell__component_tkfh7"};
|
|
22
|
+
require('./components/amount/index.css')
|
|
23
|
+
|
|
24
|
+
var Amount = function (_a) {
|
|
25
|
+
var _b = _a.weight, weight = _b === void 0 ? 'normal' : _b, _c = _a.textView, textView = _c === void 0 ? 'component' : _c, _d = _a.color, color = _d === void 0 ? 'primary' : _d, minority = _a.minority, _e = _a.minorUnits, minorUnits = _e === void 0 ? 100 : _e, dataTestId = _a.dataTestId, restProps = __rest(_a, ["weight", "textView", "color", "minority", "minorUnits", "dataTestId"]);
|
|
26
|
+
var pureCellContext = useContext(PureCellContext);
|
|
27
|
+
return (React.createElement(Typography.Text, { view: textView, dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-text'), className: cn(styles$9.component), color: color },
|
|
28
|
+
React.createElement(Amount$1, __assign({ minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount') }, restProps))));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var styles$8 = {"component":"pure-cell__component_9j08u","weight":"pure-cell__weight_9j08u"};
|
|
32
|
+
require('./components/amount-title/index.css')
|
|
33
|
+
|
|
34
|
+
var AmountTitle = function (_a) {
|
|
35
|
+
var minority = _a.minority, _b = _a.minorUnits, minorUnits = _b === void 0 ? 100 : _b, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, dataTestId = _a.dataTestId, _d = _a.titleProps, titleProps = _d === void 0 ? {} : _d, restProps = __rest(_a, ["minority", "minorUnits", "className", "color", "dataTestId", "titleProps"]);
|
|
36
|
+
var pureCellContext = useContext(PureCellContext);
|
|
37
|
+
var titleDefaultProps = __assign({ tag: 'h4', view: 'small', color: color }, titleProps);
|
|
38
|
+
return (React.createElement(Typography.Title, __assign({}, titleDefaultProps, { dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) }),
|
|
39
|
+
React.createElement(Amount$1, __assign({ minority: minority || minorUnits, className: cn(styles$8.weight, className), dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'core-amount-title') }, restProps, { bold: 'none' }))));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var styles$7 = {"component":"pure-cell__component_g9byr","categoryName":"pure-cell__categoryName_g9byr","categoryPercent":"pure-cell__categoryPercent_g9byr","rightAddon":"pure-cell__rightAddon_g9byr"};
|
|
43
|
+
require('./components/category/index.css')
|
|
44
|
+
|
|
45
|
+
var Category = function (_a) {
|
|
46
|
+
var categoryName = _a.categoryName, categoryPercent = _a.categoryPercent, rightAddons = _a.rightAddons, dataTestId = _a.dataTestId;
|
|
47
|
+
var pureCellContext = useContext(PureCellContext);
|
|
48
|
+
return (React.createElement("div", { className: styles$7.component, "data-test-id": 'cell-pure-category' },
|
|
49
|
+
React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-name'), className: styles$7.categoryName }, categoryName),
|
|
50
|
+
categoryPercent !== undefined && (React.createElement(Typography.Text, { tag: 'div', view: 'primary-small', color: 'secondary', className: styles$7.categoryPercent, dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-percent') },
|
|
51
|
+
categoryPercent,
|
|
52
|
+
"%")),
|
|
53
|
+
rightAddons !== undefined && (React.createElement("div", { className: styles$7.rightAddon, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-right-addon') }, rightAddons))));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var styles$6 = {"component":"pure-cell__component_3m4d1","horizontal":"pure-cell__horizontal_3m4d1"};
|
|
57
|
+
require('./components/content/index.css')
|
|
58
|
+
|
|
59
|
+
var Content = function (_a) {
|
|
60
|
+
var _b;
|
|
61
|
+
var children = _a.children, dataTestId = _a.dataTestId;
|
|
62
|
+
var _c = useContext(PureCellContext), direction = _c.direction, contextDataTestId = _c.dataTestId;
|
|
63
|
+
return (React.createElement("section", { className: cn(styles$6.component, (_b = {}, _b[styles$6.horizontal] = direction === 'horizontal', _b)), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'content') }, children));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var styles$5 = {"component":"pure-cell__component_q31rg","none":"pure-cell__none_q31rg","default":"pure-cell__default_q31rg"};
|
|
67
|
+
require('./components/footer/index.css')
|
|
68
|
+
|
|
69
|
+
var Footer = function (_a) {
|
|
70
|
+
var children = _a.children, _b = _a.footerPadding, footerPadding = _b === void 0 ? 'default' : _b, dataTestId = _a.dataTestId;
|
|
71
|
+
var pureCellContext = useContext(PureCellContext);
|
|
72
|
+
return (React.createElement("footer", { className: cn(styles$5.component, styles$5[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
var styles$4 = {"component":"pure-cell__component_i0599"};
|
|
76
|
+
require('./components/footer-button/index.css')
|
|
77
|
+
|
|
78
|
+
var FooterButton = forwardRef(function (_a, ref) {
|
|
79
|
+
var children = _a.children, dataTestId = _a.dataTestId, props = __rest(_a, ["children", "dataTestId"]);
|
|
80
|
+
var pureCellContext = useContext(PureCellContext);
|
|
81
|
+
return (React.createElement(Button, __assign({}, props, { size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref }), children));
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
var FooterText = function (_a) {
|
|
85
|
+
var children = _a.children, _b = _a.color, color = _b === void 0 ? 'secondary' : _b, dataTestId = _a.dataTestId;
|
|
86
|
+
var pureCellContext = useContext(PureCellContext);
|
|
87
|
+
return (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title') }, children));
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
var styles$3 = {"component":"pure-cell__component_1s05n","top":"pure-cell__top_1s05n","center":"pure-cell__center_1s05n","bottom":"pure-cell__bottom_1s05n"};
|
|
91
|
+
require('./components/graphics/index.css')
|
|
92
|
+
|
|
93
|
+
var Graphics = function (_a) {
|
|
94
|
+
var children = _a.children, dataTestId = _a.dataTestId, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? 'top' : _b;
|
|
95
|
+
var pureCellContext = useContext(PureCellContext);
|
|
96
|
+
return (React.createElement("section", { className: cn(styles$3.component, styles$3[verticalAlign]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics') }, children));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
var styles$2 = {"component":"pure-cell__component_2wu4y","vertical":"pure-cell__vertical_2wu4y","reverse":"pure-cell__reverse_2wu4y"};
|
|
100
|
+
require('./components/main/index.css')
|
|
101
|
+
|
|
102
|
+
var Main = function (_a) {
|
|
103
|
+
var _b;
|
|
104
|
+
var children = _a.children, isReverse = _a.isReverse, className = _a.className, dataTestId = _a.dataTestId;
|
|
105
|
+
var _c = useContext(PureCellContext), _d = _c.direction, direction = _d === void 0 ? 'horizontal' : _d, contextDataTestId = _c.dataTestId;
|
|
106
|
+
return (React.createElement("div", { className: cn(styles$2.component, styles$2[direction], (_b = {},
|
|
107
|
+
_b[styles$2.reverse] = isReverse,
|
|
108
|
+
_b), className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main') }, children));
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var styles$1 = {"horizontal":"pure-cell__horizontal_10ste","rowLimit1":"pure-cell__rowLimit1_10ste","rowLimit2":"pure-cell__rowLimit2_10ste","component":"pure-cell__component_10ste","vertical":"pure-cell__vertical_10ste","title":"pure-cell__title_10ste","value":"pure-cell__value_10ste"};
|
|
112
|
+
require('./components/text/index.css')
|
|
113
|
+
|
|
114
|
+
var Text = function (_a) {
|
|
115
|
+
var _b;
|
|
116
|
+
var children = _a.children, value = _a.value, rowLimit = _a.rowLimit, _c = _a.view, view = _c === void 0 ? 'component-primary' : _c, titleWeight = _a.titleWeight, titleColor = _a.titleColor, valueColor = _a.valueColor, dataTestId = _a.dataTestId;
|
|
117
|
+
var _d = useContext(PureCellContext), _e = _d.direction, direction = _e === void 0 ? 'horizontal' : _e, contextDataTestId = _d.dataTestId;
|
|
118
|
+
var className = rowLimit && styles$1["rowLimit".concat(rowLimit)];
|
|
119
|
+
return (React.createElement("div", { className: cn(styles$1.component, (_b = {},
|
|
120
|
+
_b[styles$1.vertical] = direction !== 'horizontal',
|
|
121
|
+
_b)) },
|
|
122
|
+
React.createElement("div", { className: styles$1.title },
|
|
123
|
+
React.createElement(Typography.Text, { view: view, weight: titleWeight, tag: 'div', color: titleColor, className: className, "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'text_content') }, children)),
|
|
124
|
+
value && (React.createElement("div", { className: styles$1.value },
|
|
125
|
+
React.createElement(Typography.Text, { view: view, tag: 'div', color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'text_value') }, value)))));
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
var styles = {"component":"pure-cell__component_1q7ju","horizontal":"pure-cell__horizontal_1q7ju","vertical":"pure-cell__vertical_1q7ju","button":"pure-cell__button_1q7ju","link":"pure-cell__link_1q7ju","none":"pure-cell__none_1q7ju","airy":"pure-cell__airy_1q7ju","defaultPadding":"pure-cell__defaultPadding_1q7ju","compact":"pure-cell__compact_1q7ju","tiny":"pure-cell__tiny_1q7ju","left":"pure-cell__left_1q7ju","right":"pure-cell__right_1q7ju","both":"pure-cell__both_1q7ju","focused":"pure-cell__focused_1q7ju"};
|
|
129
|
+
require('./index.css')
|
|
130
|
+
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
132
|
+
var PureCellContext = React.createContext({});
|
|
133
|
+
var PureCellComponent = forwardRef(function (_a, ref) {
|
|
134
|
+
var _b, _c;
|
|
135
|
+
var className = _a.className, dataTestId = _a.dataTestId, onClick = _a.onClick, href = _a.href, _d = _a.tag, Component = _d === void 0 ? (href && 'a') || (onClick && 'button') || 'section' : _d, children = _a.children, _e = _a.horizontalPadding, horizontalPadding = _e === void 0 ? 'none' : _e, _f = _a.verticalPadding, verticalPadding = _f === void 0 ? 'none' : _f, _g = _a.direction, direction = _g === void 0 ? 'horizontal' : _g, restProps = __rest(_a, ["className", "dataTestId", "onClick", "href", "tag", "children", "horizontalPadding", "verticalPadding", "direction"]);
|
|
136
|
+
var cellRef = useRef(null);
|
|
137
|
+
var focused = useFocus(cellRef, 'keyboard')[0];
|
|
138
|
+
var addClasses = (_b = {},
|
|
139
|
+
_b[styles.component] = true,
|
|
140
|
+
_b[styles.focused] = focused,
|
|
141
|
+
_b[styles[direction]] = true,
|
|
142
|
+
_b[styles.defaultPadding] = verticalPadding === 'default',
|
|
143
|
+
_b[styles[verticalPadding]] = verticalPadding !== 'default',
|
|
144
|
+
_b[styles[horizontalPadding]] = true,
|
|
145
|
+
_b);
|
|
146
|
+
if (href) {
|
|
147
|
+
var target = restProps.target;
|
|
148
|
+
// Для совместимости с react-router-dom, меняем href на to
|
|
149
|
+
var hrefProps = (_c = {}, _c[typeof Component === 'string' ? 'href' : 'to'] = href, _c);
|
|
150
|
+
return (React.createElement(Component, __assign({ rel: target === '_blank' ? 'noreferrer noopener' : undefined }, restProps, hrefProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
|
|
151
|
+
React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
|
|
152
|
+
}
|
|
153
|
+
if (onClick) {
|
|
154
|
+
return (React.createElement(Component, __assign({}, restProps, { ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick }),
|
|
155
|
+
React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
|
|
156
|
+
}
|
|
157
|
+
return (React.createElement(Component, __assign({}, restProps, { ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId }),
|
|
158
|
+
React.createElement(PureCellContext.Provider, { value: { direction: direction, dataTestId: dataTestId } }, children)));
|
|
159
|
+
});
|
|
160
|
+
/**
|
|
161
|
+
* Универсальный конструктор для сборки любой ячейки.
|
|
162
|
+
*
|
|
163
|
+
* [Макет](https://www.figma.com/file/KlFOLLkKO8rtvvQE3RXuhq/Click-Library?node-id=43525%3A240018)
|
|
164
|
+
*/
|
|
165
|
+
var PureCell = Object.assign(PureCellComponent, {
|
|
166
|
+
Main: Main,
|
|
167
|
+
Graphics: Graphics,
|
|
168
|
+
Content: Content,
|
|
169
|
+
Text: Text,
|
|
170
|
+
Amount: Amount,
|
|
171
|
+
AmountTitle: AmountTitle,
|
|
172
|
+
Addon: Addon,
|
|
173
|
+
Footer: Footer,
|
|
174
|
+
ExtraSubtitle: FooterText,
|
|
175
|
+
FooterButton: FooterButton,
|
|
176
|
+
Comment: Comment,
|
|
177
|
+
Category: Category,
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
export { Addon as A, Category as C, Footer as F, Graphics as G, Main as M, PureCell as P, Text as T, Amount as a, AmountTitle as b, Content as c, FooterButton as d, FooterText as e, PureCellContext as f };
|
package/esm/component.js
CHANGED
|
@@ -4,16 +4,4 @@ import 'react-merge-refs';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-comment/esm';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
|
-
|
|
8
|
-
import './components/amount/component.js';
|
|
9
|
-
import './components/amount-title/component.js';
|
|
10
|
-
import './components/category/component.js';
|
|
11
|
-
export { P as PureCell, a as PureCellContext } from './component-674e9ea3.js';
|
|
12
|
-
import './components/footer/component.js';
|
|
13
|
-
import './components/footer-button/component.js';
|
|
14
|
-
import './components/footer-text/component.js';
|
|
15
|
-
import './components/graphics/component.js';
|
|
16
|
-
import '@alfalab/core-components-shared/esm';
|
|
17
|
-
import '@alfalab/core-components-amount/esm';
|
|
18
|
-
import '@alfalab/core-components-typography/esm';
|
|
19
|
-
import '@alfalab/core-components-button/esm';
|
|
7
|
+
export { P as PureCell, f as PureCellContext } from './component-7bedc2d7.js';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AddonElement } from "../types";
|
|
4
|
-
type Props = {
|
|
5
|
-
/**
|
|
6
|
-
* Вертикальное выравнивание
|
|
7
|
-
*/
|
|
8
|
-
verticalAlign?: 'auto' | 'top' | 'center' | 'bottom';
|
|
9
|
-
/**
|
|
10
|
-
* Горизонтальные отступы
|
|
11
|
-
*/
|
|
12
|
-
addonPadding?: 'default' | 'none';
|
|
13
|
-
/**
|
|
14
|
-
* Компоненты
|
|
15
|
-
*/
|
|
16
|
-
children: AddonElement;
|
|
17
|
-
/**
|
|
18
|
-
* Идентификатор для систем автоматизированного тестирования.
|
|
19
|
-
* Используется модификатор -addon
|
|
20
|
-
*/
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
};
|
|
23
|
-
declare const Addon: React.FC<Props>;
|
|
24
|
-
export { Addon };
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
var styles = {"component":"pure-cell__component_1xuz7","none":"pure-cell__none_1xuz7","default":"pure-cell__default_1xuz7","addonPadding":"pure-cell__addonPadding_1xuz7","auto":"pure-cell__auto_1xuz7","top":"pure-cell__top_1xuz7","center":"pure-cell__center_1xuz7","bottom":"pure-cell__bottom_1xuz7"};
|
|
6
|
-
require('./index.css')
|
|
7
|
-
|
|
8
|
-
var Addon = function (_a) {
|
|
9
|
-
var children = _a.children, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? 'top' : _b, _c = _a.addonPadding, addonPadding = _c === void 0 ? 'default' : _c, dataTestId = _a.dataTestId;
|
|
10
|
-
return (React.createElement("section", { className: cn(styles.component, styles[addonPadding], styles[verticalAlign]), "data-test-id": getDataTestId(dataTestId, 'addon') }, children));
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { Addon };
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '@alfalab/core-components-shared/esm';
|
|
4
|
+
export { A as Addon } from '../../component-7bedc2d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: johjy */
|
|
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,24 +15,24 @@
|
|
|
15
15
|
--gap-m: 16px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .pure-
|
|
18
|
+
} .pure-cell__component_11qo8 {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
align-items: flex-end
|
|
22
|
-
} .pure-
|
|
22
|
+
} .pure-cell__component_11qo8 > * {
|
|
23
23
|
justify-content: flex-end;
|
|
24
|
-
} .pure-
|
|
24
|
+
} .pure-cell__component_11qo8.pure-cell__none_11qo8 {
|
|
25
25
|
padding-left: 0;
|
|
26
|
-
} .pure-
|
|
26
|
+
} .pure-cell__component_11qo8.pure-cell__default_11qo8 {
|
|
27
27
|
padding-left: var(--gap-m);
|
|
28
|
-
} .pure-
|
|
28
|
+
} .pure-cell__component_11qo8.pure-cell__addonPadding_11qo8 {
|
|
29
29
|
padding-left: var(--gap-m);
|
|
30
|
-
} .pure-
|
|
30
|
+
} .pure-cell__component_11qo8.pure-cell__auto_11qo8 {
|
|
31
31
|
align-self: auto;
|
|
32
|
-
} .pure-
|
|
32
|
+
} .pure-cell__component_11qo8.pure-cell__top_11qo8 {
|
|
33
33
|
align-self: flex-start;
|
|
34
|
-
} .pure-
|
|
34
|
+
} .pure-cell__component_11qo8.pure-cell__center_11qo8 {
|
|
35
35
|
align-self: center;
|
|
36
|
-
} .pure-
|
|
36
|
+
} .pure-cell__component_11qo8.pure-cell__bottom_11qo8 {
|
|
37
37
|
align-self: flex-end;
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "../../component-7bedc2d7";
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
* Начертание шрифта денежного значения
|
|
8
|
-
*/
|
|
9
|
-
weight?: 'bold' | 'normal';
|
|
10
|
-
/**
|
|
11
|
-
* Размер денежного значения
|
|
12
|
-
*/
|
|
13
|
-
textView?: 'component' | 'primary-small';
|
|
14
|
-
/**
|
|
15
|
-
* Цвет денежного значения
|
|
16
|
-
*/
|
|
17
|
-
color?: Color;
|
|
18
|
-
/**
|
|
19
|
-
* Идентификатор для систем автоматизированного тестирования.
|
|
20
|
-
* Для typography используется модификатор -amount-text, для компонента Amount -amount
|
|
21
|
-
*/
|
|
22
|
-
dataTestId?: string;
|
|
23
|
-
} & Omit<AmountType, 'dataTestId'>;
|
|
24
|
-
declare const Amount: React.FC<Props>;
|
|
25
|
-
export { Amount };
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
var styles = {"component":"pure-cell__component_ksfhx"};
|
|
9
|
-
require('./index.css')
|
|
10
|
-
|
|
11
|
-
var Amount = function (_a) {
|
|
12
|
-
var _b = _a.weight, weight = _b === void 0 ? 'normal' : _b, _c = _a.textView, textView = _c === void 0 ? 'component' : _c, _d = _a.color, color = _d === void 0 ? 'primary' : _d, minority = _a.minority, _e = _a.minorUnits, minorUnits = _e === void 0 ? 100 : _e, dataTestId = _a.dataTestId, restProps = __rest(_a, ["weight", "textView", "color", "minority", "minorUnits", "dataTestId"]);
|
|
13
|
-
return (React.createElement(Typography.Text, { view: textView, dataTestId: getDataTestId(dataTestId, 'amount-text'), className: cn(styles.component), color: color },
|
|
14
|
-
React.createElement(Amount$1, __assign({ minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId, 'amount') }, restProps))));
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { Amount };
|
|
1
|
+
import 'tslib';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-amount/esm';
|
|
5
|
+
import '@alfalab/core-components-shared/esm';
|
|
6
|
+
import '@alfalab/core-components-typography/esm';
|
|
7
|
+
export { a as Amount } from '../../component-7bedc2d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ohq2d */
|
|
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,7 +15,7 @@
|
|
|
15
15
|
--gap-3xs: 2px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .pure-
|
|
18
|
+
} .pure-cell__component_tkfh7 {
|
|
19
19
|
padding: var(--gap-3xs) 0;
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "../../component-7bedc2d7";
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export { Amount } from '
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-amount/esm';
|
|
6
|
-
import '@alfalab/core-components-shared/esm';
|
|
7
|
-
import '@alfalab/core-components-typography/esm';
|
|
1
|
+
export { a as Amount } from '../../component-7bedc2d7.js';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Color, TitleProps } from "@alfalab/core-components-typography";
|
|
4
|
-
import { AmountProps as AmountType } from "../typesProps";
|
|
5
|
-
type Props = {
|
|
6
|
-
/**
|
|
7
|
-
* Цвет денежного значения
|
|
8
|
-
* @deprecated Используйте titleProps.color
|
|
9
|
-
*/
|
|
10
|
-
color?: Color;
|
|
11
|
-
/**
|
|
12
|
-
* Пропсы, которые будут прокинуты в компонент типографики
|
|
13
|
-
*/
|
|
14
|
-
titleProps?: TitleProps;
|
|
15
|
-
/**
|
|
16
|
-
* Идентификатор для систем автоматизированного тестирования.
|
|
17
|
-
* Для typography используется модификатор -amount-title, для компонента Amount -core-amount-title
|
|
18
|
-
*/
|
|
19
|
-
dataTestId?: string;
|
|
20
|
-
} & Omit<AmountType, 'dataTestId'>;
|
|
21
|
-
declare const AmountTitle: React.FC<Props>;
|
|
22
|
-
export { AmountTitle };
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
var styles = {"component":"pure-cell__component_1s8za","weight":"pure-cell__weight_1s8za"};
|
|
9
|
-
require('./index.css')
|
|
10
|
-
|
|
11
|
-
var AmountTitle = function (_a) {
|
|
12
|
-
var minority = _a.minority, _b = _a.minorUnits, minorUnits = _b === void 0 ? 100 : _b, className = _a.className, _c = _a.color, color = _c === void 0 ? 'primary' : _c, dataTestId = _a.dataTestId, _d = _a.titleProps, titleProps = _d === void 0 ? {} : _d, restProps = __rest(_a, ["minority", "minorUnits", "className", "color", "dataTestId", "titleProps"]);
|
|
13
|
-
var titleDefaultProps = __assign({ tag: 'h4', view: 'small', color: color }, titleProps);
|
|
14
|
-
return (React.createElement(Typography.Title, __assign({}, titleDefaultProps, { dataTestId: getDataTestId(dataTestId, 'amount-title'), className: cn(styles.component, titleProps.className) }),
|
|
15
|
-
React.createElement(Amount, __assign({ minority: minority || minorUnits, className: cn(styles.weight, className), dataTestId: getDataTestId(dataTestId, 'core-amount-title') }, restProps, { bold: 'none' }))));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { AmountTitle };
|
|
1
|
+
import 'tslib';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/core-components-amount/esm';
|
|
5
|
+
import '@alfalab/core-components-shared/esm';
|
|
6
|
+
import '@alfalab/core-components-typography/esm';
|
|
7
|
+
export { b as AmountTitle } from '../../component-7bedc2d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4rltj */
|
|
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 */
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .pure-
|
|
17
|
+
} .pure-cell__component_9j08u {
|
|
18
18
|
display: flex;
|
|
19
|
-
} .pure-
|
|
19
|
+
} .pure-cell__weight_9j08u {
|
|
20
20
|
font-weight: inherit;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "../../component-7bedc2d7";
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export { AmountTitle } from '
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-amount/esm';
|
|
6
|
-
import '@alfalab/core-components-shared/esm';
|
|
7
|
-
import '@alfalab/core-components-typography/esm';
|
|
1
|
+
export { b as AmountTitle } from '../../component-7bedc2d7.js';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
type Props = {
|
|
5
|
-
/**
|
|
6
|
-
* Наименование категории
|
|
7
|
-
*/
|
|
8
|
-
categoryName: string;
|
|
9
|
-
/**
|
|
10
|
-
* Процент категории
|
|
11
|
-
*/
|
|
12
|
-
categoryPercent?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Слот справа
|
|
15
|
-
*/
|
|
16
|
-
rightAddons?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Идентификатор для систем автоматизированного тестирования.
|
|
19
|
-
* Для наименования категории используется модификатор -category-name,
|
|
20
|
-
* процент категории -category-percent, слота справа -category-right-addon
|
|
21
|
-
*/
|
|
22
|
-
dataTestId?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const Category: React.FC<Props>;
|
|
25
|
-
export { Category };
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
var styles = {"component":"pure-cell__component_ipucn","categoryName":"pure-cell__categoryName_ipucn","categoryPercent":"pure-cell__categoryPercent_ipucn","rightAddon":"pure-cell__rightAddon_ipucn"};
|
|
6
|
-
require('./index.css')
|
|
7
|
-
|
|
8
|
-
var Category = function (_a) {
|
|
9
|
-
var categoryName = _a.categoryName, categoryPercent = _a.categoryPercent, rightAddons = _a.rightAddons, dataTestId = _a.dataTestId;
|
|
10
|
-
return (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
|
|
11
|
-
React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary', dataTestId: getDataTestId(dataTestId, 'category-name'), className: styles.categoryName }, categoryName),
|
|
12
|
-
categoryPercent !== undefined && (React.createElement(Typography.Text, { tag: 'div', view: 'primary-small', color: 'secondary', className: styles.categoryPercent, dataTestId: getDataTestId(dataTestId, 'category-percent') },
|
|
13
|
-
categoryPercent,
|
|
14
|
-
"%")),
|
|
15
|
-
rightAddons !== undefined && (React.createElement("div", { className: styles.rightAddon, "data-test-id": getDataTestId(dataTestId, 'category-right-addon') }, rightAddons))));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { Category };
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@alfalab/core-components-shared/esm';
|
|
3
|
+
import '@alfalab/core-components-typography/esm';
|
|
4
|
+
export { C as Category } from '../../component-7bedc2d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1k75z */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-secondary: #f2f3f5; /* 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 */
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
--gap-xs: 8px;
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} .pure-
|
|
22
|
+
} .pure-cell__component_g9byr {
|
|
23
23
|
display: flex;
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
padding: var(--gap-3xs) 0;
|
|
26
|
-
} .pure-
|
|
26
|
+
} .pure-cell__categoryName_g9byr {
|
|
27
27
|
display: -webkit-box;
|
|
28
28
|
-webkit-line-clamp: 1;
|
|
29
29
|
-webkit-box-orient: vertical;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
word-break: break-all;
|
|
32
|
-
} .pure-
|
|
32
|
+
} .pure-cell__categoryPercent_g9byr {
|
|
33
33
|
padding: 0 var(--gap-xs);
|
|
34
34
|
background-color: var(--color-light-bg-secondary);
|
|
35
35
|
border-radius: var(--border-radius-xl);
|
|
36
36
|
margin-left: var(--gap-2xs);
|
|
37
|
-
} .pure-
|
|
37
|
+
} .pure-cell__rightAddon_g9byr {
|
|
38
38
|
margin-left: var(--gap-2xs);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "../../component-7bedc2d7";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '@alfalab/core-components-shared/esm';
|
|
4
|
-
export {
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import 'react-merge-refs';
|
|
7
|
-
import '@alfalab/core-components-comment/esm';
|
|
8
|
-
import '@alfalab/hooks';
|
|
9
|
-
import '../addon/component.js';
|
|
10
|
-
import '../amount/component.js';
|
|
11
|
-
import '@alfalab/core-components-amount/esm';
|
|
12
|
-
import '@alfalab/core-components-typography/esm';
|
|
13
|
-
import '../amount-title/component.js';
|
|
14
|
-
import '../category/component.js';
|
|
15
|
-
import '../footer/component.js';
|
|
16
|
-
import '../footer-button/component.js';
|
|
17
|
-
import '@alfalab/core-components-button/esm';
|
|
18
|
-
import '../footer-text/component.js';
|
|
19
|
-
import '../graphics/component.js';
|
|
4
|
+
export { c as Content } from '../../component-7bedc2d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m8yot */
|
|
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 */
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .pure-
|
|
17
|
+
} .pure-cell__component_3m4d1 {
|
|
18
18
|
flex-basis: 100%;
|
|
19
19
|
display: grid;
|
|
20
20
|
grid-template-columns: 1fr auto
|
|
21
|
-
} .pure-
|
|
21
|
+
} .pure-cell__component_3m4d1.pure-cell__horizontal_3m4d1 {
|
|
22
22
|
/* for button */
|
|
23
23
|
align-self: stretch;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-7bedc2d7";
|