@alfalab/core-components-pure-cell 3.0.3 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{component-7b340665.d.ts → component-2bda6d29.d.ts} +0 -0
- package/{component-7b340665.js → component-2bda6d29.js} +13 -11
- package/{cssm/component-3f45f3c4.d.ts → component-c49f24a8.d.ts} +9 -9
- package/component.js +6 -5
- 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 +7 -7
- package/components/amount/index.css +2 -2
- package/components/amount/index.js +3 -2
- package/components/amount-title/component.d.ts +1 -9
- package/components/amount-title/component.js +6 -6
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.js +3 -2
- 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 +6 -5
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +6 -5
- 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 +6 -5
- package/components/main/index.css +4 -4
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +6 -5
- package/components/text/component.js +6 -5
- package/components/text/index.css +10 -8
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +6 -5
- package/components/typesProps.d.ts +3 -3
- package/{component-3f45f3c4.d.ts → cssm/component-c49f24a8.d.ts} +10 -10
- package/cssm/{component-d3306cf3.d.ts → component-c4e268e7.d.ts} +0 -0
- package/cssm/{component-d3306cf3.js → component-c4e268e7.js} +8 -6
- package/cssm/component.js +5 -4
- 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 +5 -5
- package/cssm/components/amount/index.js +2 -1
- package/cssm/components/amount-title/component.d.ts +1 -9
- package/cssm/components/amount-title/component.js +4 -4
- package/cssm/components/amount-title/index.js +2 -1
- 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 +5 -4
- package/cssm/components/content/index.d.ts +1 -1
- package/cssm/components/content/index.js +5 -4
- 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 +5 -4
- package/cssm/components/main/index.d.ts +1 -1
- package/cssm/components/main/index.js +5 -4
- package/cssm/components/text/component.js +5 -4
- package/cssm/components/text/index.d.ts +1 -1
- package/cssm/components/text/index.js +5 -4
- package/cssm/components/text/index.module.css +4 -2
- package/cssm/components/typesProps.d.ts +3 -3
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +5 -4
- package/{esm/component-ef452835.d.ts → cssm/tslib.es6-9682e485.d.ts} +8 -8
- package/{component-80973026.js → cssm/tslib.es6-9682e485.js} +1 -18
- package/esm/{component-922dd03a.d.ts → component-831effc0.d.ts} +0 -0
- package/esm/{component-922dd03a.js → component-831effc0.js} +10 -8
- package/esm/{component-3f45f3c4.d.ts → component-c49f24a8.d.ts} +10 -10
- package/esm/component.js +6 -5
- 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 +7 -7
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount/index.js +3 -2
- package/esm/components/amount-title/component.d.ts +1 -9
- package/esm/components/amount-title/component.js +6 -6
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/amount-title/index.js +3 -2
- 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 +6 -5
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +6 -5
- 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 +6 -5
- package/esm/components/main/index.css +4 -4
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +6 -5
- package/esm/components/text/component.js +6 -5
- package/esm/components/text/index.css +10 -8
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +6 -5
- package/esm/components/typesProps.d.ts +3 -3
- package/esm/{getDataTestId-181163b5.d.ts → getDataTestId-56acaf74.d.ts} +0 -0
- package/esm/{getDataTestId-181163b5.js → getDataTestId-56acaf74.js} +0 -0
- package/esm/index.css +19 -19
- package/esm/index.d.ts +1 -1
- package/esm/index.js +6 -5
- package/{cssm/component-22ece846.d.ts → esm/tslib.es6-daf5d84d.d.ts} +8 -8
- package/esm/{component-ef452835.js → tslib.es6-daf5d84d.js} +2 -14
- package/{getDataTestId-3a7e2404.d.ts → getDataTestId-da1ddd99.d.ts} +0 -0
- package/{getDataTestId-3a7e2404.js → getDataTestId-da1ddd99.js} +0 -0
- package/index.css +19 -19
- package/index.d.ts +1 -1
- package/index.js +6 -5
- package/modern/{component-99f95ea2.d.ts → component-b7f322e4.d.ts} +0 -0
- package/modern/{component-99f95ea2.js → component-b7f322e4.js} +11 -9
- package/modern/{component-3f45f3c4.d.ts → component-c49f24a8.d.ts} +10 -10
- package/modern/component.js +4 -4
- 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 -8
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount/index.js +2 -2
- package/modern/components/amount-title/component.d.ts +1 -9
- package/modern/components/amount-title/component.js +5 -8
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/amount-title/index.js +2 -2
- 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 +4 -4
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/index.d.ts +1 -1
- package/modern/components/content/index.js +4 -4
- 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 +3 -3
- 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 +3 -5
- package/modern/components/graphics/index.css +2 -2
- package/modern/components/graphics/index.js +1 -1
- package/modern/components/main/component.js +4 -4
- package/modern/components/main/index.css +4 -4
- package/modern/components/main/index.d.ts +1 -1
- package/modern/components/main/index.js +4 -4
- package/modern/components/text/component.js +4 -4
- package/modern/components/text/index.css +10 -8
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +4 -4
- package/modern/components/typesProps.d.ts +3 -3
- package/modern/{getDataTestId-60d7e355.d.ts → getDataTestId-e8cc70ab.d.ts} +0 -0
- package/modern/{getDataTestId-60d7e355.js → getDataTestId-e8cc70ab.js} +0 -0
- package/modern/index.css +19 -19
- package/modern/index.d.ts +1 -1
- package/modern/index.js +4 -4
- package/package.json +3 -3
- package/{component-80973026.d.ts → tslib.es6-bb39d27e.d.ts} +8 -8
- package/{cssm/component-22ece846.js → tslib.es6-bb39d27e.js} +1 -17
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var getDataTestId = require('./getDataTestId-3a7e2404.js');
|
|
5
|
-
var coreComponentsButton = require('@alfalab/core-components-button');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
|
|
11
|
-
/*! *****************************************************************************
|
|
3
|
+
/******************************************************************************
|
|
12
4
|
Copyright (c) Microsoft Corporation.
|
|
13
5
|
|
|
14
6
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -47,13 +39,4 @@ function __rest(s, e) {
|
|
|
47
39
|
return t;
|
|
48
40
|
}
|
|
49
41
|
|
|
50
|
-
var styles = {"component":"pure-cell__component_1cy0p"};
|
|
51
|
-
require('./components/footer-button/index.css')
|
|
52
|
-
|
|
53
|
-
var FooterButton = function (_a) {
|
|
54
|
-
var children = _a.children, dataTestId = _a.dataTestId, props = __rest(_a, ["children", "dataTestId"]);
|
|
55
|
-
return (React__default['default'].createElement(coreComponentsButton.Button, exports.__assign({}, props, { size: 'xxs', dataTestId: getDataTestId.getDataTestId(dataTestId, 'button'), className: styles.component }), children));
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
exports.FooterButton = FooterButton;
|
|
59
42
|
exports.__rest = __rest;
|
|
File without changes
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-daf5d84d.js';
|
|
2
2
|
import React, { useContext, forwardRef, useRef } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
5
|
-
import { useFocus } from '@alfalab/hooks';
|
|
6
5
|
import { Comment } from '@alfalab/core-components-comment/esm';
|
|
7
|
-
import {
|
|
6
|
+
import { useFocus } from '@alfalab/hooks';
|
|
7
|
+
import { g as getDataTestId } from './getDataTestId-56acaf74.js';
|
|
8
8
|
import { Addon } from './components/addon/component.js';
|
|
9
9
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
10
10
|
import { Amount } from './components/amount/component.js';
|
|
11
11
|
import { AmountTitle } from './components/amount-title/component.js';
|
|
12
12
|
import { Category } from './components/category/component.js';
|
|
13
13
|
import { Footer } from './components/footer/component.js';
|
|
14
|
+
import { FooterButton } from './components/footer-button/component.js';
|
|
14
15
|
import { FooterText } from './components/footer-text/component.js';
|
|
15
16
|
import { Graphics } from './components/graphics/component.js';
|
|
16
17
|
|
|
17
|
-
var styles = {"component":"pure-
|
|
18
|
+
var styles = {"component":"pure-cell__component_1n24j","horizontal":"pure-cell__horizontal_1n24j"};
|
|
18
19
|
require('./components/content/index.css')
|
|
19
20
|
|
|
20
21
|
var Content = function (_a) {
|
|
@@ -24,7 +25,7 @@ var Content = function (_a) {
|
|
|
24
25
|
return (React.createElement("section", { className: cn(styles.component, (_b = {}, _b[styles.horizontal] = direction === 'horizontal', _b)), "data-test-id": getDataTestId(dataTestId, 'content') }, children));
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
var styles$1 = {"component":"pure-
|
|
28
|
+
var styles$1 = {"component":"pure-cell__component_ti7om","vertical":"pure-cell__vertical_ti7om","reverse":"pure-cell__reverse_ti7om"};
|
|
28
29
|
require('./components/main/index.css')
|
|
29
30
|
|
|
30
31
|
var Main = function (_a) {
|
|
@@ -36,7 +37,7 @@ var Main = function (_a) {
|
|
|
36
37
|
_b)), "data-test-id": getDataTestId(dataTestId, 'main') }, children));
|
|
37
38
|
};
|
|
38
39
|
|
|
39
|
-
var styles$2 = {"horizontal":"pure-
|
|
40
|
+
var styles$2 = {"horizontal":"pure-cell__horizontal_zjarl","rowLimit1":"pure-cell__rowLimit1_zjarl","rowLimit2":"pure-cell__rowLimit2_zjarl","component":"pure-cell__component_zjarl","vertical":"pure-cell__vertical_zjarl","title":"pure-cell__title_zjarl","value":"pure-cell__value_zjarl"};
|
|
40
41
|
require('./components/text/index.css')
|
|
41
42
|
|
|
42
43
|
var Text = function (_a) {
|
|
@@ -48,12 +49,13 @@ var Text = function (_a) {
|
|
|
48
49
|
_b[styles$2.vertical] = direction !== 'horizontal',
|
|
49
50
|
_b)) },
|
|
50
51
|
React.createElement("span", { className: styles$2.title }, typeof children === 'string' ? (React.createElement(Typography.Text, { view: view, color: titleColor, className: className, "data-test-id": getDataTestId(dataTestId, 'text') }, children)) : (children)),
|
|
51
|
-
React.createElement("span",
|
|
52
|
+
value !== undefined && (React.createElement("span", { className: styles$2.value }, typeof value === 'string' ? (React.createElement(Typography.Text, { view: view, color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId, 'text') }, value)) : (value)))));
|
|
52
53
|
};
|
|
53
54
|
|
|
54
|
-
var styles$3 = {"component":"pure-
|
|
55
|
+
var styles$3 = {"component":"pure-cell__component_exj34","horizontal":"pure-cell__horizontal_exj34","vertical":"pure-cell__vertical_exj34","button":"pure-cell__button_exj34","link":"pure-cell__link_exj34","none":"pure-cell__none_exj34","airy":"pure-cell__airy_exj34","defaultPadding":"pure-cell__defaultPadding_exj34","compact":"pure-cell__compact_exj34","tiny":"pure-cell__tiny_exj34","left":"pure-cell__left_exj34","right":"pure-cell__right_exj34","both":"pure-cell__both_exj34","focused":"pure-cell__focused_exj34"};
|
|
55
56
|
require('./index.css')
|
|
56
57
|
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
57
59
|
var PureCellContext = React.createContext({});
|
|
58
60
|
var PureCellComponent = forwardRef(function (_a, ref) {
|
|
59
61
|
var _b, _c;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { ButtonProps } from "@alfalab/core-components-button";
|
|
4
5
|
import { PureCellElement } from "./components/types";
|
|
5
6
|
type PureCellContext = {
|
|
6
7
|
/** Направление */
|
|
@@ -44,12 +45,13 @@ type PureCellProps = {
|
|
|
44
45
|
type AnchorPureCellProps = PureCellProps & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
45
46
|
type ButtonPureCellProps = PureCellProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
46
47
|
type ElementPureCellProps = PureCellProps & HTMLAttributes<HTMLElement>;
|
|
48
|
+
type PureProps = Partial<AnchorPureCellProps | ButtonPureCellProps | ElementPureCellProps>;
|
|
47
49
|
/**
|
|
48
50
|
* Универсальный конструктор для сборки любой ячейки.
|
|
49
51
|
*
|
|
50
52
|
* [Макет](https://www.figma.com/file/KlFOLLkKO8rtvvQE3RXuhq/Click-Library?node-id=43525%3A240018)
|
|
51
53
|
*/
|
|
52
|
-
declare const PureCell: React.ForwardRefExoticComponent<
|
|
54
|
+
declare const PureCell: React.ForwardRefExoticComponent<PureProps & React.RefAttributes<HTMLElement>> & {
|
|
53
55
|
Main: React.FC<{
|
|
54
56
|
children: import("./components/types").MainElement;
|
|
55
57
|
isReverse?: boolean | undefined;
|
|
@@ -63,26 +65,23 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
|
|
|
63
65
|
Text: React.FC<{
|
|
64
66
|
children?: React.ReactNode;
|
|
65
67
|
rowLimit?: 1 | 2 | undefined;
|
|
66
|
-
view: "
|
|
68
|
+
view: "component" | "primary-small";
|
|
67
69
|
titleColor: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative";
|
|
68
70
|
value?: React.ReactNode;
|
|
69
71
|
valueColor?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
70
72
|
dataTestId?: string | undefined;
|
|
71
73
|
}>;
|
|
72
74
|
Amount: React.FC<{
|
|
73
|
-
amount: import("./components/typesProps").AmountProps;
|
|
74
75
|
weight?: "bold" | "normal" | undefined;
|
|
75
|
-
|
|
76
|
+
textView?: "component" | "primary-small" | undefined;
|
|
76
77
|
color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
77
78
|
dataTestId?: string | undefined;
|
|
78
|
-
}>;
|
|
79
|
+
} & import("./components/typesProps").AmountProps>;
|
|
79
80
|
AmountTitle: React.FC<{
|
|
80
|
-
amount: import("./components/typesProps").AmountProps;
|
|
81
81
|
color?: "link" | "primary" | "secondary" | "tertiary" | "disabled" | "accent" | "attention" | "positive" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "negative" | undefined;
|
|
82
|
-
|
|
83
|
-
}>;
|
|
82
|
+
} & import("./components/typesProps").AmountProps>;
|
|
84
83
|
Addon: React.FC<{
|
|
85
|
-
verticalAlign?: "center" | undefined;
|
|
84
|
+
verticalAlign?: "top" | "center" | "bottom" | undefined;
|
|
86
85
|
addonPadding?: "default" | "none" | undefined;
|
|
87
86
|
children: import("./components/types").AddonElement;
|
|
88
87
|
dataTestId?: string | undefined;
|
|
@@ -93,11 +92,12 @@ declare const PureCell: React.ForwardRefExoticComponent<(Partial<AnchorPureCellP
|
|
|
93
92
|
dataTestId?: string | undefined;
|
|
94
93
|
}>;
|
|
95
94
|
ExtraSubtitle: React.FC<import("./components/footer-text/index").Props>;
|
|
96
|
-
FooterButton: React.FC<
|
|
95
|
+
FooterButton: React.FC<ButtonProps>;
|
|
97
96
|
Comment: React.FC<import("@alfalab/core-components-comment").CommentProps>;
|
|
98
97
|
Category: React.FC<{
|
|
99
98
|
categoryName: string;
|
|
100
99
|
categoryPercent?: number | undefined;
|
|
100
|
+
rightAddons?: React.ReactNode;
|
|
101
101
|
dataTestId?: string | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
};
|
package/esm/component.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './tslib.es6-daf5d84d.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '@alfalab/hooks';
|
|
6
5
|
import '@alfalab/core-components-comment/esm';
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import './getDataTestId-56acaf74.js';
|
|
8
8
|
import './components/addon/component.js';
|
|
9
|
-
import '@alfalab/core-components-typography/esm';
|
|
10
9
|
import '@alfalab/core-components-amount/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
11
|
import './components/amount/component.js';
|
|
12
12
|
import './components/amount-title/component.js';
|
|
13
13
|
import './components/category/component.js';
|
|
14
|
-
export { P as PureCell, a as PureCellContext } from './component-
|
|
14
|
+
export { P as PureCell, a as PureCellContext } from './component-831effc0.js';
|
|
15
15
|
import './components/footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
|
+
import './components/footer-button/component.js';
|
|
17
18
|
import './components/footer-text/component.js';
|
|
18
19
|
import './components/graphics/component.js';
|
|
@@ -1,16 +1,13 @@
|
|
|
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-56acaf74.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_1bg3s","none":"pure-cell__none_1bg3s","default":"pure-cell__default_1bg3s","addonPadding":"pure-cell__addonPadding_1bg3s","top":"pure-cell__top_1bg3s","center":"pure-cell__center_1bg3s","bottom":"pure-cell__bottom_1bg3s"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Addon = function (_a) {
|
|
9
|
-
var _b;
|
|
10
|
-
|
|
11
|
-
return (React.createElement("section", { className: cn(styles.component, styles[addonPadding], (_b = {},
|
|
12
|
-
_b[styles.center] = verticalAlign,
|
|
13
|
-
_b)), "data-test-id": getDataTestId(dataTestId, 'addon') }, children));
|
|
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));
|
|
14
11
|
};
|
|
15
12
|
|
|
16
13
|
export { Addon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kmgdr */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,22 +10,29 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-m: 16px;
|
|
12
12
|
}
|
|
13
|
-
.pure-
|
|
13
|
+
.pure-cell__component_1bg3s {
|
|
14
14
|
display: flex;
|
|
15
|
-
flex-direction: column
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-end
|
|
16
17
|
}
|
|
17
|
-
.pure-
|
|
18
|
+
.pure-cell__component_1bg3s > * {
|
|
18
19
|
justify-content: flex-end;
|
|
19
20
|
}
|
|
20
|
-
.pure-
|
|
21
|
+
.pure-cell__component_1bg3s.pure-cell__none_1bg3s {
|
|
21
22
|
padding-left: 0;
|
|
22
23
|
}
|
|
23
|
-
.pure-
|
|
24
|
+
.pure-cell__component_1bg3s.pure-cell__default_1bg3s {
|
|
24
25
|
padding-left: var(--gap-m);
|
|
25
26
|
}
|
|
26
|
-
.pure-
|
|
27
|
+
.pure-cell__component_1bg3s.pure-cell__addonPadding_1bg3s {
|
|
27
28
|
padding-left: var(--gap-m);
|
|
28
29
|
}
|
|
29
|
-
.pure-
|
|
30
|
+
.pure-cell__component_1bg3s.pure-cell__top_1bg3s {
|
|
31
|
+
align-self: flex-start;
|
|
32
|
+
}
|
|
33
|
+
.pure-cell__component_1bg3s.pure-cell__center_1bg3s {
|
|
30
34
|
align-self: center;
|
|
31
35
|
}
|
|
36
|
+
.pure-cell__component_1bg3s.pure-cell__bottom_1bg3s {
|
|
37
|
+
align-self: flex-end;
|
|
38
|
+
}
|
|
@@ -3,10 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { Color } from "@alfalab/core-components-typography";
|
|
4
4
|
import { AmountProps as AmountType } from "../typesProps";
|
|
5
5
|
type Props = {
|
|
6
|
-
/**
|
|
7
|
-
* Props свойственные для компонента Amount
|
|
8
|
-
*/
|
|
9
|
-
amount: AmountType;
|
|
10
6
|
/**
|
|
11
7
|
* Начертание шрифта денежного значения
|
|
12
8
|
*/
|
|
@@ -14,7 +10,7 @@ type Props = {
|
|
|
14
10
|
/**
|
|
15
11
|
* Размер денежного значения
|
|
16
12
|
*/
|
|
17
|
-
|
|
13
|
+
textView?: 'component' | 'primary-small';
|
|
18
14
|
/**
|
|
19
15
|
* Цвет денежного значения
|
|
20
16
|
*/
|
|
@@ -23,6 +19,6 @@ type Props = {
|
|
|
23
19
|
* Идентификатор для систем автоматизированного тестирования
|
|
24
20
|
*/
|
|
25
21
|
dataTestId?: string;
|
|
26
|
-
};
|
|
22
|
+
} & AmountType;
|
|
27
23
|
declare const Amount: React.FC<Props>;
|
|
28
24
|
export { Amount };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-daf5d84d.js';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import cn from 'classnames';
|
|
3
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
4
|
-
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
4
|
+
import { g as getDataTestId } from '../../getDataTestId-56acaf74.js';
|
|
5
5
|
import { Amount as Amount$1 } from '@alfalab/core-components-amount/esm';
|
|
6
|
+
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
6
7
|
|
|
7
|
-
var styles = {"component":"pure-
|
|
8
|
+
var styles = {"component":"pure-cell__component_1dkc1"};
|
|
8
9
|
require('./index.css')
|
|
9
10
|
|
|
10
11
|
var Amount = function (_a) {
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
React.createElement(Amount$1, { minority: minority === undefined ? minorUnits : minority, value: value, transparentMinor: transparentMinor, bold: weight === 'bold' ? 'full' : 'none', rightAddons: rightAddons, showPlus: showPlus, className: className, currency: currency, dataTestId: getDataTestId(dataTestId, 'amount'), view: viewAmount })));
|
|
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
15
|
};
|
|
16
16
|
|
|
17
17
|
export { Amount };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import '../../tslib.es6-daf5d84d.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
|
-
import '../../getDataTestId-
|
|
4
|
-
import '@alfalab/core-components-typography/esm';
|
|
4
|
+
import '../../getDataTestId-56acaf74.js';
|
|
5
5
|
import '@alfalab/core-components-amount/esm';
|
|
6
|
+
import '@alfalab/core-components-typography/esm';
|
|
6
7
|
export { Amount } from './component.js';
|
|
@@ -3,18 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { Color } from "@alfalab/core-components-typography";
|
|
4
4
|
import { AmountProps as AmountType } from "../typesProps";
|
|
5
5
|
type Props = {
|
|
6
|
-
/**
|
|
7
|
-
* Props свойственные для компонента Amount
|
|
8
|
-
*/
|
|
9
|
-
amount: AmountType;
|
|
10
6
|
/**
|
|
11
7
|
* Цвет денежного значения
|
|
12
8
|
*/
|
|
13
9
|
color?: Color;
|
|
14
|
-
|
|
15
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
16
|
-
*/
|
|
17
|
-
dataTestId?: string;
|
|
18
|
-
};
|
|
10
|
+
} & AmountType;
|
|
19
11
|
declare const AmountTitle: React.FC<Props>;
|
|
20
12
|
export { AmountTitle };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-daf5d84d.js';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import cn from 'classnames';
|
|
3
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
4
|
-
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
4
|
+
import { g as getDataTestId } from '../../getDataTestId-56acaf74.js';
|
|
5
5
|
import { Amount } from '@alfalab/core-components-amount/esm';
|
|
6
|
+
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
6
7
|
|
|
7
|
-
var styles = {"component":"pure-
|
|
8
|
+
var styles = {"component":"pure-cell__component_1t8xx","weight":"pure-cell__weight_1t8xx"};
|
|
8
9
|
require('./index.css')
|
|
9
10
|
|
|
10
11
|
var AmountTitle = function (_a) {
|
|
11
|
-
var
|
|
12
|
-
var value = amount.value, currency = amount.currency, minority = amount.minority, minorUnits = amount.minorUnits, rightAddons = amount.rightAddons, showPlus = amount.showPlus, className = amount.className;
|
|
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, restProps = __rest(_a, ["minority", "minorUnits", "className", "color", "dataTestId"]);
|
|
13
13
|
return (React.createElement(Typography.Title, { tag: 'h4', view: 'small', dataTestId: getDataTestId(dataTestId, 'amount-title'), className: styles.component, color: color },
|
|
14
|
-
React.createElement(Amount, { minority: minority
|
|
14
|
+
React.createElement(Amount, __assign({ minority: minority || minorUnits, className: cn(styles.weight, className), dataTestId: getDataTestId(dataTestId, 'core-amount-title') }, restProps, { bold: 'none' }))));
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export { AmountTitle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rczbs */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.pure-
|
|
10
|
+
.pure-cell__component_1t8xx {
|
|
11
11
|
display: flex;
|
|
12
12
|
}
|
|
13
|
-
.pure-
|
|
13
|
+
.pure-cell__weight_1t8xx {
|
|
14
14
|
font-weight: inherit;
|
|
15
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import '../../tslib.es6-daf5d84d.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
|
-
import '../../getDataTestId-
|
|
4
|
-
import '@alfalab/core-components-typography/esm';
|
|
4
|
+
import '../../getDataTestId-56acaf74.js';
|
|
5
5
|
import '@alfalab/core-components-amount/esm';
|
|
6
|
+
import '@alfalab/core-components-typography/esm';
|
|
6
7
|
export { AmountTitle } from './component.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
type Props = {
|
|
4
5
|
/**
|
|
5
6
|
* Наименование категории
|
|
@@ -9,6 +10,10 @@ type Props = {
|
|
|
9
10
|
* Процент категории
|
|
10
11
|
*/
|
|
11
12
|
categoryPercent?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Слот справа
|
|
15
|
+
*/
|
|
16
|
+
rightAddons?: ReactNode;
|
|
12
17
|
/**
|
|
13
18
|
* Идентификатор для систем автоматизированного тестирования
|
|
14
19
|
*/
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
2
|
+
import { g as getDataTestId } from '../../getDataTestId-56acaf74.js';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_6ei5t","categoryName":"pure-cell__categoryName_6ei5t","categoryPercent":"pure-cell__categoryPercent_6ei5t","rightAddon":"pure-cell__rightAddon_6ei5t"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Category = function (_a) {
|
|
9
|
-
var categoryName = _a.categoryName, categoryPercent = _a.categoryPercent, dataTestId = _a.dataTestId;
|
|
9
|
+
var categoryName = _a.categoryName, categoryPercent = _a.categoryPercent, rightAddons = _a.rightAddons, dataTestId = _a.dataTestId;
|
|
10
10
|
return (React.createElement("div", { className: styles.component, "data-test-id": 'cell-pure-category' },
|
|
11
11
|
React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary', dataTestId: getDataTestId(dataTestId, 'category-name'), className: styles.categoryName }, categoryName),
|
|
12
12
|
categoryPercent !== undefined && (React.createElement(Typography.Text, { tag: 'div', view: 'primary-small', color: 'secondary', className: styles.categoryPercent, dataTestId: getDataTestId(dataTestId, 'category-percent') },
|
|
13
13
|
categoryPercent,
|
|
14
|
-
"%"))
|
|
14
|
+
"%")),
|
|
15
|
+
rightAddons !== undefined && (React.createElement("div", { className: styles.rightAddon, "data-test-id": getDataTestId(dataTestId, 'category-right-addon') }, rightAddons))));
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export { Category };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4odrk */
|
|
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_6ei5t {
|
|
22
22
|
display: flex;
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
padding: var(--gap-3xs) 0;
|
|
25
25
|
}
|
|
26
|
-
.pure-
|
|
26
|
+
.pure-cell__categoryName_6ei5t {
|
|
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_6ei5t {
|
|
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_6ei5t {
|
|
40
|
+
margin-left: var(--gap-2xs);
|
|
41
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import '../../
|
|
1
|
+
import '../../tslib.es6-daf5d84d.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '@alfalab/hooks';
|
|
6
5
|
import '@alfalab/core-components-comment/esm';
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import '../../getDataTestId-56acaf74.js';
|
|
8
8
|
import '../addon/component.js';
|
|
9
|
-
import '@alfalab/core-components-typography/esm';
|
|
10
9
|
import '@alfalab/core-components-amount/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
11
|
import '../amount/component.js';
|
|
12
12
|
import '../amount-title/component.js';
|
|
13
13
|
import '../category/component.js';
|
|
14
|
-
export { C as Content } from '../../component-
|
|
14
|
+
export { C as Content } from '../../component-831effc0.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
|
+
import '../footer-button/component.js';
|
|
17
18
|
import '../footer-text/component.js';
|
|
18
19
|
import '../graphics/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13l38 */
|
|
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_1n24j {
|
|
11
11
|
flex-basis: 100%;
|
|
12
12
|
display: grid;
|
|
13
13
|
grid-template-columns: 1fr auto
|
|
14
14
|
}
|
|
15
|
-
.pure-
|
|
15
|
+
.pure-cell__component_1n24j.pure-cell__horizontal_1n24j {
|
|
16
16
|
/* for button */
|
|
17
17
|
align-self: stretch;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-831effc0";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import '../../
|
|
1
|
+
import '../../tslib.es6-daf5d84d.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '@alfalab/hooks';
|
|
6
5
|
import '@alfalab/core-components-comment/esm';
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import '../../getDataTestId-56acaf74.js';
|
|
8
8
|
import '../addon/component.js';
|
|
9
|
-
import '@alfalab/core-components-typography/esm';
|
|
10
9
|
import '@alfalab/core-components-amount/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
11
|
import '../amount/component.js';
|
|
12
12
|
import '../amount-title/component.js';
|
|
13
13
|
import '../category/component.js';
|
|
14
|
-
export { C as Content } from '../../component-
|
|
14
|
+
export { C as Content } from '../../component-831effc0.js';
|
|
15
15
|
import '../footer/component.js';
|
|
16
16
|
import '@alfalab/core-components-button/esm';
|
|
17
|
+
import '../footer-button/component.js';
|
|
17
18
|
import '../footer-text/component.js';
|
|
18
19
|
import '../graphics/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-56acaf74.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"pure-
|
|
5
|
+
var styles = {"component":"pure-cell__component_otj4i","none":"pure-cell__none_otj4i","default":"pure-cell__default_otj4i"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 29yj5 */
|
|
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_otj4i {
|
|
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_otj4i.pure-cell__none_otj4i {
|
|
19
19
|
margin-top: 0;
|
|
20
20
|
}
|
|
21
|
-
.pure-
|
|
21
|
+
.pure-cell__component_otj4i.pure-cell__default_otj4i {
|
|
22
22
|
margin-top: var(--gap-xs);
|
|
23
23
|
}
|