@alfalab/core-components-pure-cell 4.8.1 → 4.10.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/{esm/component-6a644022.d.ts → component-1b03bea6.d.ts} +12 -0
- package/{component-81e75437.js → component-1b03bea6.js} +134 -28
- package/{component-21d7b687.d.ts → component-6a954af1.d.ts} +4 -0
- package/component.js +1 -1
- package/components/addon/component.js +2 -1
- package/components/addon/index.css +35 -10
- package/components/addon/index.d.ts +1 -1
- package/components/addon/index.js +1 -1
- package/components/amount/component.js +1 -1
- package/components/amount/index.css +2 -2
- package/components/amount/index.d.ts +1 -1
- package/components/amount/index.js +1 -1
- package/components/amount-title/component.js +1 -1
- package/components/amount-title/index.css +3 -3
- package/components/amount-title/index.d.ts +1 -1
- package/components/amount-title/index.js +1 -1
- package/components/category/component.js +1 -1
- package/components/category/index.css +5 -5
- package/components/category/index.d.ts +1 -1
- package/components/category/index.js +1 -1
- package/components/content/component.js +1 -1
- package/components/content/index.css +3 -3
- package/components/content/index.d.ts +1 -1
- package/components/content/index.js +1 -1
- package/components/footer/component.js +1 -1
- package/components/footer/index.css +4 -4
- package/components/footer/index.d.ts +1 -1
- package/components/footer/index.js +1 -1
- package/components/footer-button/component.js +1 -1
- package/components/footer-button/index.css +2 -2
- package/components/footer-button/index.d.ts +1 -1
- package/components/footer-button/index.js +1 -1
- package/components/footer-text/component.js +1 -1
- package/components/footer-text/index.d.ts +1 -1
- package/components/footer-text/index.js +1 -1
- package/components/graphics/component.js +2 -1
- package/components/graphics/index.css +41 -15
- package/components/graphics/index.d.ts +1 -1
- package/components/graphics/index.js +1 -1
- package/components/main/component.js +2 -1
- package/components/main/index.css +31 -5
- package/components/main/index.d.ts +1 -1
- package/components/main/index.js +1 -1
- package/components/text/component.js +1 -1
- package/components/text/index.css +7 -7
- package/components/text/index.d.ts +1 -1
- package/components/text/index.js +1 -1
- package/{esm/component-21d7b687.d.ts → cssm/component-6a954af1.d.ts} +4 -0
- package/{component-81e75437.d.ts → cssm/component-e3105fca.d.ts} +12 -0
- package/cssm/{component-063660c0.js → component-e3105fca.js} +123 -17
- package/cssm/component.js +1 -1
- package/cssm/components/addon/component.js +2 -1
- package/cssm/components/addon/index.d.ts +1 -1
- package/cssm/components/addon/index.js +1 -1
- package/cssm/components/addon/index.module.css +25 -0
- package/cssm/components/amount/component.js +1 -1
- package/cssm/components/amount/index.d.ts +1 -1
- package/cssm/components/amount/index.js +1 -1
- package/cssm/components/amount-title/component.js +1 -1
- package/cssm/components/amount-title/index.d.ts +1 -1
- package/cssm/components/amount-title/index.js +1 -1
- package/cssm/components/category/component.js +1 -1
- package/cssm/components/category/index.d.ts +1 -1
- package/cssm/components/category/index.js +1 -1
- package/cssm/components/content/component.js +1 -1
- package/cssm/components/content/index.d.ts +1 -1
- package/cssm/components/content/index.js +1 -1
- package/cssm/components/footer/component.js +1 -1
- package/cssm/components/footer/index.d.ts +1 -1
- package/cssm/components/footer/index.js +1 -1
- package/cssm/components/footer-button/component.js +1 -1
- package/cssm/components/footer-button/index.d.ts +1 -1
- package/cssm/components/footer-button/index.js +1 -1
- package/cssm/components/footer-text/component.js +1 -1
- package/cssm/components/footer-text/index.d.ts +1 -1
- package/cssm/components/footer-text/index.js +1 -1
- package/cssm/components/graphics/component.js +2 -1
- package/cssm/components/graphics/index.d.ts +1 -1
- package/cssm/components/graphics/index.js +1 -1
- package/cssm/components/graphics/index.module.css +26 -0
- package/cssm/components/main/component.js +2 -1
- package/cssm/components/main/index.d.ts +1 -1
- package/cssm/components/main/index.js +1 -1
- package/cssm/components/main/index.module.css +27 -1
- package/cssm/components/text/component.js +1 -1
- package/cssm/components/text/index.d.ts +1 -1
- package/cssm/components/text/index.js +1 -1
- package/cssm/index.d.ts +2 -2
- package/cssm/index.js +1 -1
- package/cssm/index.module.css +4 -4
- package/cssm/vars.css +17 -0
- package/{modern/component-ef65ce67.d.ts → esm/component-02d56ae7.d.ts} +12 -0
- package/esm/{component-6a644022.js → component-02d56ae7.js} +136 -30
- package/{cssm/component-21d7b687.d.ts → esm/component-6a954af1.d.ts} +4 -0
- package/esm/component.js +1 -1
- package/esm/components/addon/component.js +2 -1
- package/esm/components/addon/index.css +35 -10
- package/esm/components/addon/index.d.ts +1 -1
- package/esm/components/addon/index.js +1 -1
- package/esm/components/amount/component.js +1 -1
- package/esm/components/amount/index.css +2 -2
- package/esm/components/amount/index.d.ts +1 -1
- package/esm/components/amount/index.js +1 -1
- package/esm/components/amount-title/component.js +1 -1
- package/esm/components/amount-title/index.css +3 -3
- package/esm/components/amount-title/index.d.ts +1 -1
- package/esm/components/amount-title/index.js +1 -1
- package/esm/components/category/component.js +1 -1
- package/esm/components/category/index.css +5 -5
- package/esm/components/category/index.d.ts +1 -1
- package/esm/components/category/index.js +1 -1
- package/esm/components/content/component.js +1 -1
- package/esm/components/content/index.css +3 -3
- package/esm/components/content/index.d.ts +1 -1
- package/esm/components/content/index.js +1 -1
- package/esm/components/footer/component.js +1 -1
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/index.d.ts +1 -1
- package/esm/components/footer/index.js +1 -1
- package/esm/components/footer-button/component.js +1 -1
- package/esm/components/footer-button/index.css +2 -2
- package/esm/components/footer-button/index.d.ts +1 -1
- package/esm/components/footer-button/index.js +1 -1
- package/esm/components/footer-text/component.js +1 -1
- package/esm/components/footer-text/index.d.ts +1 -1
- package/esm/components/footer-text/index.js +1 -1
- package/esm/components/graphics/component.js +2 -1
- package/esm/components/graphics/index.css +41 -15
- package/esm/components/graphics/index.d.ts +1 -1
- package/esm/components/graphics/index.js +1 -1
- package/esm/components/main/component.js +2 -1
- package/esm/components/main/index.css +31 -5
- package/esm/components/main/index.d.ts +1 -1
- package/esm/components/main/index.js +1 -1
- package/esm/components/text/component.js +1 -1
- package/esm/components/text/index.css +7 -7
- package/esm/components/text/index.d.ts +1 -1
- package/esm/components/text/index.js +1 -1
- package/esm/index.css +29 -29
- package/esm/index.d.ts +2 -2
- package/esm/index.js +1 -1
- package/index.css +29 -29
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/modern/{component-21d7b687.d.ts → component-6a954af1.d.ts} +4 -0
- package/{cssm/component-063660c0.d.ts → modern/component-766c0ee4.d.ts} +12 -0
- package/modern/{component-ef65ce67.js → component-766c0ee4.js} +126 -28
- package/modern/component.js +1 -1
- package/modern/components/addon/component.js +1 -1
- package/modern/components/addon/index.css +35 -10
- package/modern/components/addon/index.d.ts +1 -1
- package/modern/components/addon/index.js +1 -1
- package/modern/components/amount/component.js +1 -1
- package/modern/components/amount/index.css +2 -2
- package/modern/components/amount/index.d.ts +1 -1
- package/modern/components/amount/index.js +1 -1
- package/modern/components/amount-title/component.js +1 -1
- package/modern/components/amount-title/index.css +3 -3
- package/modern/components/amount-title/index.d.ts +1 -1
- package/modern/components/amount-title/index.js +1 -1
- package/modern/components/category/component.js +1 -1
- package/modern/components/category/index.css +5 -5
- package/modern/components/category/index.d.ts +1 -1
- package/modern/components/category/index.js +1 -1
- package/modern/components/content/component.js +1 -1
- package/modern/components/content/index.css +3 -3
- package/modern/components/content/index.d.ts +1 -1
- package/modern/components/content/index.js +1 -1
- package/modern/components/footer/component.js +1 -1
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/index.d.ts +1 -1
- package/modern/components/footer/index.js +1 -1
- package/modern/components/footer-button/component.js +1 -1
- package/modern/components/footer-button/index.css +2 -2
- package/modern/components/footer-button/index.d.ts +1 -1
- package/modern/components/footer-button/index.js +1 -1
- package/modern/components/footer-text/component.js +1 -1
- package/modern/components/footer-text/index.d.ts +1 -1
- package/modern/components/footer-text/index.js +1 -1
- package/modern/components/graphics/component.js +1 -1
- package/modern/components/graphics/index.css +41 -15
- package/modern/components/graphics/index.d.ts +1 -1
- package/modern/components/graphics/index.js +1 -1
- package/modern/components/main/component.js +1 -1
- package/modern/components/main/index.css +31 -5
- package/modern/components/main/index.d.ts +1 -1
- package/modern/components/main/index.js +1 -1
- package/modern/components/text/component.js +1 -1
- package/modern/components/text/index.css +7 -7
- package/modern/components/text/index.d.ts +1 -1
- package/modern/components/text/index.js +1 -1
- package/modern/index.css +29 -29
- package/modern/index.d.ts +2 -2
- package/modern/index.js +1 -1
- package/package.json +3 -3
- package/src/component.tsx +33 -5
- package/src/components/addon/component.tsx +35 -3
- package/src/components/addon/index.module.css +15 -1
- package/src/components/amount-title/component.tsx +2 -2
- package/src/components/footer-button/component.tsx +32 -1
- package/src/components/graphics/component.tsx +33 -2
- package/src/components/graphics/index.module.css +16 -1
- package/src/components/main/component.tsx +39 -4
- package/src/components/main/index.module.css +16 -1
- package/src/index.module.css +4 -4
- package/src/vars.css +6 -0
package/index.js
CHANGED
|
@@ -7,6 +7,8 @@ type PureCellContext = {
|
|
|
7
7
|
/** Направление */
|
|
8
8
|
direction?: 'horizontal' | 'vertical';
|
|
9
9
|
dataTestId?: string;
|
|
10
|
+
setMainHover?: () => void;
|
|
11
|
+
unsetMainHover?: () => void;
|
|
10
12
|
};
|
|
11
13
|
declare const PureCellContext: React.Context<PureCellContext>;
|
|
12
14
|
type BasePureCellProps = {
|
|
@@ -67,6 +69,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
|
|
|
67
69
|
isReverse?: boolean | undefined;
|
|
68
70
|
className?: string | undefined;
|
|
69
71
|
dataTestId?: string | undefined;
|
|
72
|
+
onClick?: (() => void) | undefined;
|
|
70
73
|
}>;
|
|
71
74
|
Graphics: React.FC<import("./components/graphics/index").Props>;
|
|
72
75
|
Content: React.FC<{
|
|
@@ -99,6 +102,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
|
|
|
99
102
|
addonPadding?: "none" | "default" | undefined;
|
|
100
103
|
children: import("./components/types").AddonElement;
|
|
101
104
|
dataTestId?: string | undefined;
|
|
105
|
+
onClick?: (() => void) | undefined;
|
|
102
106
|
}>;
|
|
103
107
|
Footer: React.FC<{
|
|
104
108
|
children: import("./components/types").FooterElement;
|
|
@@ -23,6 +23,10 @@ type Props = {
|
|
|
23
23
|
* Используется модификатор -main
|
|
24
24
|
*/
|
|
25
25
|
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Клик по контенту.
|
|
28
|
+
*/
|
|
29
|
+
onClick?: () => void;
|
|
26
30
|
};
|
|
27
31
|
declare const Main: React.FC<Props>;
|
|
28
32
|
type Props$0 = {
|
|
@@ -43,6 +47,10 @@ type Props$0 = {
|
|
|
43
47
|
* Отступ от графики
|
|
44
48
|
*/
|
|
45
49
|
graphicPadding?: "airy" | "default" | "compact" | "tiny" | "none";
|
|
50
|
+
/**
|
|
51
|
+
* Клик по контенту графики.
|
|
52
|
+
*/
|
|
53
|
+
onClick?: () => void;
|
|
46
54
|
};
|
|
47
55
|
declare const Graphics: React.FC<Props$0>;
|
|
48
56
|
type Props$1 = {
|
|
@@ -174,6 +182,10 @@ type Props$7 = {
|
|
|
174
182
|
* Используется модификатор -addon
|
|
175
183
|
*/
|
|
176
184
|
dataTestId?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Клик по контенту аддона.
|
|
187
|
+
*/
|
|
188
|
+
onClick?: () => void;
|
|
177
189
|
};
|
|
178
190
|
declare const Addon: React.FC<Props$7>;
|
|
179
191
|
type Props$8 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext, forwardRef, useRef } from 'react';
|
|
1
|
+
import React, { useContext, forwardRef, useRef, useState } from 'react';
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Comment } from '@alfalab/core-components-comment/modern';
|
|
@@ -8,15 +8,37 @@ import { Amount as Amount$1 } from '@alfalab/core-components-amount/modern';
|
|
|
8
8
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
9
9
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
10
10
|
|
|
11
|
-
const styles$a = {"component":"pure-
|
|
11
|
+
const styles$a = {"component":"pure-cell__component_10lw5","none":"pure-cell__none_10lw5","default":"pure-cell__default_10lw5","addonPadding":"pure-cell__addonPadding_10lw5","auto":"pure-cell__auto_10lw5","top":"pure-cell__top_10lw5","center":"pure-cell__center_10lw5","bottom":"pure-cell__bottom_10lw5","button":"pure-cell__button_10lw5"};
|
|
12
12
|
require('./components/addon/index.css')
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const ADDON_COMPONENT = {
|
|
15
|
+
button: 'button',
|
|
16
|
+
section: 'section',
|
|
17
|
+
};
|
|
18
|
+
const Addon = ({ children, verticalAlign = 'top', addonPadding = 'default', dataTestId, onClick, }) => {
|
|
15
19
|
const pureCellContext = useContext(PureCellContext);
|
|
16
|
-
|
|
20
|
+
const Component = onClick ? ADDON_COMPONENT.button : ADDON_COMPONENT.section;
|
|
21
|
+
const onMouseEvents = {
|
|
22
|
+
onClick: (e) => {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
onClick?.();
|
|
25
|
+
},
|
|
26
|
+
onMouseEnter: () => {
|
|
27
|
+
pureCellContext.unsetMainHover?.();
|
|
28
|
+
},
|
|
29
|
+
onMouseLeave: () => {
|
|
30
|
+
pureCellContext.setMainHover?.();
|
|
31
|
+
},
|
|
32
|
+
onMouseDown: (e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
return (React.createElement(Component, { className: cn(styles$a.component, styles$a[addonPadding], styles$a[verticalAlign], {
|
|
37
|
+
[styles$a.button]: onClick,
|
|
38
|
+
}), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'addon'), ...(onClick && onMouseEvents) }, children));
|
|
17
39
|
};
|
|
18
40
|
|
|
19
|
-
const styles$9 = {"component":"pure-
|
|
41
|
+
const styles$9 = {"component":"pure-cell__component_3ozhf"};
|
|
20
42
|
require('./components/amount/index.css')
|
|
21
43
|
|
|
22
44
|
const Amount = ({ weight = 'normal', textView = 'component', color = 'primary', minority, minorUnits = 100, dataTestId, ...restProps }) => {
|
|
@@ -25,7 +47,7 @@ const Amount = ({ weight = 'normal', textView = 'component', color = 'primary',
|
|
|
25
47
|
React.createElement(Amount$1, { minority: minority || minorUnits, bold: weight === 'bold' ? 'full' : 'none', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount'), ...restProps })));
|
|
26
48
|
};
|
|
27
49
|
|
|
28
|
-
const styles$8 = {"component":"pure-
|
|
50
|
+
const styles$8 = {"component":"pure-cell__component_15g1c","weight":"pure-cell__weight_15g1c"};
|
|
29
51
|
require('./components/amount-title/index.css')
|
|
30
52
|
|
|
31
53
|
const AmountTitle = ({ minority, minorUnits = 100, className, color = 'primary', dataTestId, titleProps = {}, ...restProps }) => {
|
|
@@ -36,11 +58,11 @@ const AmountTitle = ({ minority, minorUnits = 100, className, color = 'primary',
|
|
|
36
58
|
color,
|
|
37
59
|
...titleProps,
|
|
38
60
|
};
|
|
39
|
-
return (React.createElement(Typography.
|
|
61
|
+
return (React.createElement(Typography.TitleResponsive, { ...titleDefaultProps, dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount-title'), className: cn(styles$8.component, titleProps.className) },
|
|
40
62
|
React.createElement(Amount$1, { minority: minority || minorUnits, className: cn(styles$8.weight, className), dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'core-amount-title'), ...restProps, bold: 'none' })));
|
|
41
63
|
};
|
|
42
64
|
|
|
43
|
-
const styles$7 = {"component":"pure-
|
|
65
|
+
const styles$7 = {"component":"pure-cell__component_r9n5z","categoryName":"pure-cell__categoryName_r9n5z","categoryPercent":"pure-cell__categoryPercent_r9n5z","rightAddon":"pure-cell__rightAddon_r9n5z"};
|
|
44
66
|
require('./components/category/index.css')
|
|
45
67
|
|
|
46
68
|
const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) => {
|
|
@@ -53,7 +75,7 @@ const Category = ({ categoryName, categoryPercent, rightAddons, dataTestId, }) =
|
|
|
53
75
|
rightAddons !== undefined && (React.createElement("div", { className: styles$7.rightAddon, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'category-right-addon') }, rightAddons))));
|
|
54
76
|
};
|
|
55
77
|
|
|
56
|
-
const styles$6 = {"component":"pure-
|
|
78
|
+
const styles$6 = {"component":"pure-cell__component_3ubiy","horizontal":"pure-cell__horizontal_3ubiy"};
|
|
57
79
|
require('./components/content/index.css')
|
|
58
80
|
|
|
59
81
|
const Content = ({ children, dataTestId }) => {
|
|
@@ -61,7 +83,7 @@ const Content = ({ children, dataTestId }) => {
|
|
|
61
83
|
return (React.createElement("section", { className: cn(styles$6.component, { [styles$6.horizontal]: direction === 'horizontal' }), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'content') }, children));
|
|
62
84
|
};
|
|
63
85
|
|
|
64
|
-
const styles$5 = {"component":"pure-
|
|
86
|
+
const styles$5 = {"component":"pure-cell__component_uyhv6","none":"pure-cell__none_uyhv6","default":"pure-cell__default_uyhv6"};
|
|
65
87
|
require('./components/footer/index.css')
|
|
66
88
|
|
|
67
89
|
const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
|
|
@@ -69,12 +91,28 @@ const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
|
|
|
69
91
|
return (React.createElement("footer", { className: cn(styles$5.component, styles$5[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
|
|
70
92
|
};
|
|
71
93
|
|
|
72
|
-
const styles$4 = {"component":"pure-
|
|
94
|
+
const styles$4 = {"component":"pure-cell__component_1l487"};
|
|
73
95
|
require('./components/footer-button/index.css')
|
|
74
96
|
|
|
75
|
-
const FooterButton = forwardRef(({ children, dataTestId, ...props }, ref) => {
|
|
97
|
+
const FooterButton = forwardRef(({ children, dataTestId, onClick, onMouseDown, onMouseEnter, onMouseLeave, ...props }, ref) => {
|
|
76
98
|
const pureCellContext = useContext(PureCellContext);
|
|
77
|
-
|
|
99
|
+
const handleClick = (e) => {
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
onClick?.(e);
|
|
102
|
+
};
|
|
103
|
+
const handleMouseEnter = (e) => {
|
|
104
|
+
onMouseEnter?.(e);
|
|
105
|
+
pureCellContext.unsetMainHover?.();
|
|
106
|
+
};
|
|
107
|
+
const handleMouseLeave = (e) => {
|
|
108
|
+
onMouseLeave?.(e);
|
|
109
|
+
pureCellContext.setMainHover?.();
|
|
110
|
+
};
|
|
111
|
+
const handleMouseDown = (e) => {
|
|
112
|
+
onMouseDown?.(e);
|
|
113
|
+
e.stopPropagation();
|
|
114
|
+
};
|
|
115
|
+
return (React.createElement(Button, { ...props, size: 'xxs', dataTestId: getDataTestId(dataTestId || pureCellContext.dataTestId, 'button'), className: styles$4.component, ref: ref, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseDown: handleMouseDown }, children));
|
|
78
116
|
});
|
|
79
117
|
|
|
80
118
|
const FooterText = ({ children, color = 'secondary', dataTestId }) => {
|
|
@@ -82,26 +120,66 @@ const FooterText = ({ children, color = 'secondary', dataTestId }) => {
|
|
|
82
120
|
return (React.createElement(Typography.Text, { view: 'primary-small', color: color, "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer-title') }, children));
|
|
83
121
|
};
|
|
84
122
|
|
|
85
|
-
const styles$3 = {"component":"pure-
|
|
123
|
+
const styles$3 = {"component":"pure-cell__component_1ywkt","top":"pure-cell__top_1ywkt","center":"pure-cell__center_1ywkt","bottom":"pure-cell__bottom_1ywkt","horizontal":"pure-cell__horizontal_1ywkt","none":"pure-cell__none_1ywkt","airy":"pure-cell__airy_1ywkt","default":"pure-cell__default_1ywkt","compact":"pure-cell__compact_1ywkt","tiny":"pure-cell__tiny_1ywkt","vertical":"pure-cell__vertical_1ywkt","button":"pure-cell__button_1ywkt"};
|
|
86
124
|
require('./components/graphics/index.css')
|
|
87
125
|
|
|
88
|
-
const
|
|
126
|
+
const GRAPHICS_COMPONENT = {
|
|
127
|
+
button: 'button',
|
|
128
|
+
section: 'section',
|
|
129
|
+
};
|
|
130
|
+
const Graphics = ({ children, dataTestId, verticalAlign = 'top', graphicPadding, onClick, }) => {
|
|
89
131
|
const pureCellContext = useContext(PureCellContext);
|
|
132
|
+
const Component = onClick ? GRAPHICS_COMPONENT.button : GRAPHICS_COMPONENT.section;
|
|
90
133
|
const defaultGraphicPadding = pureCellContext.direction === 'horizontal' ? 'airy' : 'default';
|
|
91
|
-
|
|
134
|
+
const onMouseEvents = {
|
|
135
|
+
onClick: (e) => {
|
|
136
|
+
e.stopPropagation();
|
|
137
|
+
onClick?.();
|
|
138
|
+
},
|
|
139
|
+
onMouseEnter: () => {
|
|
140
|
+
pureCellContext.unsetMainHover?.();
|
|
141
|
+
},
|
|
142
|
+
onMouseLeave: () => {
|
|
143
|
+
pureCellContext.setMainHover?.();
|
|
144
|
+
},
|
|
145
|
+
onMouseDown: (e) => {
|
|
146
|
+
e.stopPropagation();
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
return (React.createElement(Component, { className: cn(styles$3.component, styles$3[verticalAlign], styles$3[pureCellContext.direction || 'horizontal'], styles$3[graphicPadding || defaultGraphicPadding], { [styles$3.button]: onClick }), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'graphics'), ...(onClick && onMouseEvents) }, children));
|
|
92
150
|
};
|
|
93
151
|
|
|
94
|
-
const styles$2 = {"component":"pure-
|
|
152
|
+
const styles$2 = {"component":"pure-cell__component_351av","vertical":"pure-cell__vertical_351av","reverse":"pure-cell__reverse_351av","button":"pure-cell__button_351av"};
|
|
95
153
|
require('./components/main/index.css')
|
|
96
154
|
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
155
|
+
const MAIN_COMPONENT = {
|
|
156
|
+
button: 'button',
|
|
157
|
+
section: 'section',
|
|
158
|
+
};
|
|
159
|
+
const Main = ({ children, isReverse, className, dataTestId, onClick }) => {
|
|
160
|
+
const { direction = 'horizontal', dataTestId: contextDataTestId, setMainHover, unsetMainHover, } = useContext(PureCellContext);
|
|
161
|
+
const Component = onClick ? MAIN_COMPONENT.button : MAIN_COMPONENT.section;
|
|
162
|
+
const onMouseEvents = {
|
|
163
|
+
onClick: (e) => {
|
|
164
|
+
e.stopPropagation();
|
|
165
|
+
onClick?.();
|
|
166
|
+
},
|
|
167
|
+
onMouseEnter: () => {
|
|
168
|
+
unsetMainHover?.();
|
|
169
|
+
},
|
|
170
|
+
onMouseLeave: () => {
|
|
171
|
+
setMainHover?.();
|
|
172
|
+
},
|
|
173
|
+
onMouseDown: (e) => {
|
|
174
|
+
e.stopPropagation();
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
return (React.createElement(Component, { className: cn(styles$2.component, styles$2[direction], {
|
|
100
178
|
[styles$2.reverse]: isReverse,
|
|
101
|
-
}, className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main') }, children));
|
|
179
|
+
}, { [styles$2.button]: onClick }, className), "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'main'), ...(onClick && onMouseEvents) }, children));
|
|
102
180
|
};
|
|
103
181
|
|
|
104
|
-
const styles$1 = {"horizontal":"pure-
|
|
182
|
+
const styles$1 = {"horizontal":"pure-cell__horizontal_g10oe","rowLimit1":"pure-cell__rowLimit1_g10oe","rowLimit2":"pure-cell__rowLimit2_g10oe","component":"pure-cell__component_g10oe","vertical":"pure-cell__vertical_g10oe","title":"pure-cell__title_g10oe","value":"pure-cell__value_g10oe"};
|
|
105
183
|
require('./components/text/index.css')
|
|
106
184
|
|
|
107
185
|
const Text = ({ children, value, rowLimit, view = 'component-primary', titleWeight, titleColor, valueColor, dataTestId, }) => {
|
|
@@ -116,7 +194,7 @@ const Text = ({ children, value, rowLimit, view = 'component-primary', titleWeig
|
|
|
116
194
|
React.createElement(Typography.Text, { view: view, tag: 'div', color: valueColor, className: className, "data-test-id": getDataTestId(dataTestId || contextDataTestId, 'text_value') }, value)))));
|
|
117
195
|
};
|
|
118
196
|
|
|
119
|
-
const styles = {"component":"pure-
|
|
197
|
+
const styles = {"component":"pure-cell__component_8dxyc","horizontal":"pure-cell__horizontal_8dxyc","vertical":"pure-cell__vertical_8dxyc","button":"pure-cell__button_8dxyc","hover":"pure-cell__hover_8dxyc","active":"pure-cell__active_8dxyc","link":"pure-cell__link_8dxyc","none":"pure-cell__none_8dxyc","airy":"pure-cell__airy_8dxyc","default":"pure-cell__default_8dxyc","compact":"pure-cell__compact_8dxyc","tiny":"pure-cell__tiny_8dxyc","noneTop":"pure-cell__noneTop_8dxyc","airyTop":"pure-cell__airyTop_8dxyc","defaultTop":"pure-cell__defaultTop_8dxyc","compactTop":"pure-cell__compactTop_8dxyc","tinyTop":"pure-cell__tinyTop_8dxyc","noneBottom":"pure-cell__noneBottom_8dxyc","airyBottom":"pure-cell__airyBottom_8dxyc","defaultBottom":"pure-cell__defaultBottom_8dxyc","compactBottom":"pure-cell__compactBottom_8dxyc","tinyBottom":"pure-cell__tinyBottom_8dxyc","left":"pure-cell__left_8dxyc","right":"pure-cell__right_8dxyc","both":"pure-cell__both_8dxyc","focused":"pure-cell__focused_8dxyc"};
|
|
120
198
|
require('./index.css')
|
|
121
199
|
|
|
122
200
|
/* eslint-disable react/jsx-no-constructed-context-values */
|
|
@@ -125,11 +203,31 @@ const PureCellContext = React.createContext({});
|
|
|
125
203
|
const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, tag: Component = (href && 'a') || (onClick && 'button') || 'section', children, horizontalPadding = 'none', verticalPadding = 'none', direction = 'horizontal', ...restProps }, ref) => {
|
|
126
204
|
const cellRef = useRef(null);
|
|
127
205
|
const [focused] = useFocus(cellRef, 'keyboard');
|
|
206
|
+
const [hoverState, setHoverState] = useState(false);
|
|
207
|
+
const [activeState, setActiveState] = useState(false);
|
|
208
|
+
const setHover = () => setHoverState(true);
|
|
209
|
+
const unsetHover = () => setHoverState(false);
|
|
210
|
+
const setActive = () => setActiveState(true);
|
|
211
|
+
const unsetActive = () => setActiveState(false);
|
|
212
|
+
const mouseEvents = {
|
|
213
|
+
onMouseEnter: setHover,
|
|
214
|
+
onMouseLeave: unsetHover,
|
|
215
|
+
onMouseDown: setActive,
|
|
216
|
+
onMouseUp: unsetActive,
|
|
217
|
+
};
|
|
128
218
|
const addClasses = {
|
|
129
219
|
[styles.component]: true,
|
|
130
220
|
[styles.focused]: focused,
|
|
131
221
|
[styles[direction]]: true,
|
|
132
222
|
[styles[horizontalPadding]]: true,
|
|
223
|
+
[styles.hover]: hoverState,
|
|
224
|
+
[styles.active]: activeState,
|
|
225
|
+
};
|
|
226
|
+
const contextState = {
|
|
227
|
+
direction,
|
|
228
|
+
dataTestId,
|
|
229
|
+
setMainHover: setHover,
|
|
230
|
+
unsetMainHover: unsetHover,
|
|
133
231
|
};
|
|
134
232
|
if (typeof verticalPadding === 'string') {
|
|
135
233
|
addClasses[styles[verticalPadding]] = typeof verticalPadding === 'string';
|
|
@@ -142,15 +240,15 @@ const PureCellComponent = forwardRef(({ className, dataTestId, onClick, href, ta
|
|
|
142
240
|
const { target } = restProps;
|
|
143
241
|
// Для совместимости с react-router-dom, меняем href на to
|
|
144
242
|
const hrefProps = { [typeof Component === 'string' ? 'href' : 'to']: href };
|
|
145
|
-
return (React.createElement(Component, { rel: target === '_blank' ? 'noreferrer noopener' : undefined, ...restProps, ...hrefProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick },
|
|
146
|
-
React.createElement(PureCellContext.Provider, { value:
|
|
243
|
+
return (React.createElement(Component, { rel: target === '_blank' ? 'noreferrer noopener' : undefined, ...restProps, ...hrefProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.link, addClasses, className), "data-test-id": dataTestId, onClick: onClick, ...mouseEvents },
|
|
244
|
+
React.createElement(PureCellContext.Provider, { value: contextState }, children)));
|
|
147
245
|
}
|
|
148
246
|
if (onClick) {
|
|
149
|
-
return (React.createElement(Component, { ...restProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick },
|
|
150
|
-
React.createElement(PureCellContext.Provider, { value:
|
|
247
|
+
return (React.createElement(Component, { ...restProps, ref: mergeRefs([cellRef, ref]), className: cn(styles.button, addClasses, className), "data-test-id": dataTestId, onClick: onClick, ...mouseEvents },
|
|
248
|
+
React.createElement(PureCellContext.Provider, { value: contextState }, children)));
|
|
151
249
|
}
|
|
152
250
|
return (React.createElement(Component, { ...restProps, ref: ref, tabIndex: 0, className: cn(addClasses, className), "data-test-id": dataTestId },
|
|
153
|
-
React.createElement(PureCellContext.Provider, { value:
|
|
251
|
+
React.createElement(PureCellContext.Provider, { value: contextState }, children)));
|
|
154
252
|
});
|
|
155
253
|
/**
|
|
156
254
|
* Универсальный конструктор для сборки любой ячейки.
|
package/modern/component.js
CHANGED
|
@@ -3,4 +3,4 @@ import 'react-merge-refs';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-comment/modern';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
|
-
export { P as PureCell, f as PureCellContext } from './component-
|
|
6
|
+
export { P as PureCell, f as PureCellContext } from './component-766c0ee4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8ebll */
|
|
2
2
|
: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 */ /* 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 */
|
|
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,49 @@
|
|
|
15
15
|
--gap-m: 16px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
}
|
|
18
|
+
} :root {
|
|
19
|
+
--pure-cell-clickable-area-hover-opacity: 1;
|
|
20
|
+
--pure-cell-clickable-area-active-opacity: 1;
|
|
21
|
+
} .pure-cell__component_10lw5 {
|
|
19
22
|
display: flex;
|
|
20
23
|
flex-direction: column;
|
|
21
24
|
align-items: flex-end
|
|
22
|
-
} .pure-
|
|
25
|
+
} .pure-cell__component_10lw5 > * {
|
|
23
26
|
justify-content: flex-end;
|
|
24
|
-
} .pure-
|
|
27
|
+
} .pure-cell__component_10lw5.pure-cell__none_10lw5 {
|
|
25
28
|
padding-left: 0;
|
|
26
|
-
} .pure-
|
|
29
|
+
} .pure-cell__component_10lw5.pure-cell__default_10lw5 {
|
|
27
30
|
padding-left: var(--gap-m);
|
|
28
|
-
} .pure-
|
|
31
|
+
} .pure-cell__component_10lw5.pure-cell__addonPadding_10lw5 {
|
|
29
32
|
padding-left: var(--gap-m);
|
|
30
|
-
} .pure-
|
|
33
|
+
} .pure-cell__component_10lw5.pure-cell__auto_10lw5 {
|
|
31
34
|
align-self: auto;
|
|
32
|
-
} .pure-
|
|
35
|
+
} .pure-cell__component_10lw5.pure-cell__top_10lw5 {
|
|
33
36
|
align-self: flex-start;
|
|
34
|
-
} .pure-
|
|
37
|
+
} .pure-cell__component_10lw5.pure-cell__center_10lw5 {
|
|
35
38
|
align-self: center;
|
|
36
|
-
} .pure-
|
|
39
|
+
} .pure-cell__component_10lw5.pure-cell__bottom_10lw5 {
|
|
37
40
|
align-self: flex-end;
|
|
41
|
+
} .pure-cell__button_10lw5 {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
-webkit-tap-highlight-color: transparent;
|
|
45
|
+
outline: none;
|
|
46
|
+
border: 0;
|
|
47
|
+
margin: 0;
|
|
48
|
+
box-shadow: none;
|
|
49
|
+
border-radius: 0;
|
|
50
|
+
-webkit-user-select: none;
|
|
51
|
+
user-select: none;
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
appearance: none;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
padding: 0;
|
|
58
|
+
transition: opacity 0.15s ease-in-out
|
|
59
|
+
} .pure-cell__button_10lw5:hover {
|
|
60
|
+
opacity: var(--pure-cell-clickable-area-hover-opacity);
|
|
61
|
+
} .pure-cell__button_10lw5:active {
|
|
62
|
+
opacity: var(--pure-cell-clickable-area-active-opacity);
|
|
38
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-766c0ee4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as Addon } from '../../component-
|
|
1
|
+
export { A as Addon } from '../../component-766c0ee4.js';
|
|
@@ -3,4 +3,4 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/core-components-amount/modern';
|
|
4
4
|
import '@alfalab/core-components-shared/modern';
|
|
5
5
|
import '@alfalab/core-components-typography/modern';
|
|
6
|
-
export { a as Amount } from '../../component-
|
|
6
|
+
export { a as Amount } from '../../component-766c0ee4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wm8p4 */
|
|
2
2
|
: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 */ /* 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 */
|
|
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_3ozhf {
|
|
19
19
|
padding: var(--gap-3xs) 0;
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-766c0ee4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Amount } from '../../component-
|
|
1
|
+
export { a as Amount } from '../../component-766c0ee4.js';
|
|
@@ -3,4 +3,4 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/core-components-amount/modern';
|
|
4
4
|
import '@alfalab/core-components-shared/modern';
|
|
5
5
|
import '@alfalab/core-components-typography/modern';
|
|
6
|
-
export { b as AmountTitle } from '../../component-
|
|
6
|
+
export { b as AmountTitle } from '../../component-766c0ee4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4icg4 */
|
|
2
2
|
: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 */ /* 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 */
|
|
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_15g1c {
|
|
18
18
|
display: flex;
|
|
19
|
-
} .pure-
|
|
19
|
+
} .pure-cell__weight_15g1c {
|
|
20
20
|
font-weight: inherit;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-766c0ee4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as AmountTitle } from '../../component-
|
|
1
|
+
export { b as AmountTitle } from '../../component-766c0ee4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jxwm */
|
|
2
2
|
: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 */ /* 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 */
|
|
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_r9n5z {
|
|
23
23
|
display: flex;
|
|
24
24
|
overflow: hidden;
|
|
25
25
|
padding: var(--gap-3xs) 0;
|
|
26
|
-
} .pure-
|
|
26
|
+
} .pure-cell__categoryName_r9n5z {
|
|
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_r9n5z {
|
|
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_r9n5z {
|
|
38
38
|
margin-left: var(--gap-2xs);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-766c0ee4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as Category } from '../../component-
|
|
1
|
+
export { C as Category } from '../../component-766c0ee4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ncof */
|
|
2
2
|
: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 */ /* 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 */
|
|
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_3ubiy {
|
|
18
18
|
flex-basis: 100%;
|
|
19
19
|
display: grid;
|
|
20
20
|
grid-template-columns: 1fr auto
|
|
21
|
-
} .pure-
|
|
21
|
+
} .pure-cell__component_3ubiy.pure-cell__horizontal_3ubiy {
|
|
22
22
|
/* for button */
|
|
23
23
|
align-self: stretch;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-766c0ee4";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as Content } from '../../component-
|
|
1
|
+
export { c as Content } from '../../component-766c0ee4.js';
|