@alfalab/core-components-pure-cell 6.0.5 → 6.0.6
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.d.ts +1 -0
- package/components/addon/index.css +12 -12
- package/components/addon/index.module.css.js +1 -1
- package/components/amount/index.css +3 -3
- package/components/amount/index.module.css.js +1 -1
- package/components/amount-title/index.css +13 -13
- package/components/amount-title/index.module.css.js +1 -1
- package/components/category/index.css +4 -4
- package/components/category/index.module.css.js +1 -1
- package/components/content/index.css +2 -2
- package/components/content/index.module.css.js +1 -1
- package/components/footer/component.d.ts +4 -0
- package/components/footer/component.js +2 -2
- package/components/footer/component.js.map +1 -1
- package/components/footer/index.css +3 -3
- package/components/footer/index.module.css.js +1 -1
- package/components/footer-button/index.css +1 -1
- package/components/footer-button/index.module.css.js +1 -1
- package/components/graphics/index.css +19 -19
- package/components/graphics/index.module.css.js +1 -1
- package/components/main/index.css +6 -6
- package/components/main/index.module.css.js +1 -1
- package/components/text/index.css +6 -6
- package/components/text/index.module.css.js +1 -1
- package/cssm/component.d.ts +1 -0
- package/cssm/components/footer/component.d.ts +4 -0
- package/cssm/components/footer/component.js +2 -2
- package/cssm/components/footer/component.js.map +1 -1
- package/esm/component.d.ts +1 -0
- package/esm/components/addon/index.css +12 -12
- package/esm/components/addon/index.module.css.js +1 -1
- package/esm/components/amount/index.css +3 -3
- package/esm/components/amount/index.module.css.js +1 -1
- package/esm/components/amount-title/index.css +13 -13
- package/esm/components/amount-title/index.module.css.js +1 -1
- package/esm/components/category/index.css +4 -4
- package/esm/components/category/index.module.css.js +1 -1
- package/esm/components/content/index.css +2 -2
- package/esm/components/content/index.module.css.js +1 -1
- package/esm/components/footer/component.d.ts +4 -0
- package/esm/components/footer/component.js +2 -2
- package/esm/components/footer/component.js.map +1 -1
- package/esm/components/footer/index.css +3 -3
- package/esm/components/footer/index.module.css.js +1 -1
- package/esm/components/footer-button/index.css +1 -1
- package/esm/components/footer-button/index.module.css.js +1 -1
- package/esm/components/graphics/index.css +19 -19
- package/esm/components/graphics/index.module.css.js +1 -1
- package/esm/components/main/index.css +6 -6
- package/esm/components/main/index.module.css.js +1 -1
- package/esm/components/text/index.css +6 -6
- package/esm/components/text/index.module.css.js +1 -1
- package/esm/index.css +28 -28
- package/esm/index.module.css.js +1 -1
- package/index.css +28 -28
- package/index.module.css.js +1 -1
- package/modern/component.d.ts +1 -0
- package/modern/components/addon/index.css +12 -12
- package/modern/components/addon/index.module.css.js +1 -1
- package/modern/components/amount/index.css +3 -3
- package/modern/components/amount/index.module.css.js +1 -1
- package/modern/components/amount-title/index.css +13 -13
- package/modern/components/amount-title/index.module.css.js +1 -1
- package/modern/components/category/index.css +4 -4
- package/modern/components/category/index.module.css.js +1 -1
- package/modern/components/content/index.css +2 -2
- package/modern/components/content/index.module.css.js +1 -1
- package/modern/components/footer/component.d.ts +4 -0
- package/modern/components/footer/component.js +2 -2
- package/modern/components/footer/component.js.map +1 -1
- package/modern/components/footer/index.css +3 -3
- package/modern/components/footer/index.module.css.js +1 -1
- package/modern/components/footer-button/index.css +1 -1
- package/modern/components/footer-button/index.module.css.js +1 -1
- package/modern/components/graphics/index.css +19 -19
- package/modern/components/graphics/index.module.css.js +1 -1
- package/modern/components/main/index.css +6 -6
- package/modern/components/main/index.module.css.js +1 -1
- package/modern/components/text/index.css +6 -6
- package/modern/components/text/index.module.css.js +1 -1
- package/modern/index.css +28 -28
- package/modern/index.module.css.js +1 -1
- package/moderncssm/component.d.ts +1 -0
- package/moderncssm/components/footer/component.d.ts +4 -0
- package/moderncssm/components/footer/component.js +2 -2
- package/moderncssm/components/footer/component.js.map +1 -1
- package/package.json +2 -2
- package/src/components/footer/component.tsx +12 -2
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
--gap-2: var(--gap-3xs);
|
|
6
6
|
--gap-16: var(--gap-m);
|
|
7
7
|
}
|
|
8
|
-
.pure-
|
|
8
|
+
.pure-cell__horizontal_qhgxg {
|
|
9
9
|
padding: var(--gap-2) var(--gap-0);
|
|
10
10
|
}
|
|
11
|
-
.pure-
|
|
11
|
+
.pure-cell__rowLimit1_qhgxg {
|
|
12
12
|
-webkit-line-clamp: 1;
|
|
13
13
|
display: -webkit-box;
|
|
14
14
|
-webkit-box-orient: vertical;
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
word-break: break-all;
|
|
17
17
|
}
|
|
18
|
-
.pure-
|
|
18
|
+
.pure-cell__rowLimit2_qhgxg {
|
|
19
19
|
-webkit-line-clamp: 2;
|
|
20
20
|
display: -webkit-box;
|
|
21
21
|
-webkit-box-orient: vertical;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
}
|
|
24
|
-
.pure-
|
|
24
|
+
.pure-cell__component_qhgxg {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: row;
|
|
27
27
|
flex-wrap: nowrap;
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
margin: var(--gap-2) var(--gap-0);
|
|
30
30
|
word-break: break-word;
|
|
31
31
|
}
|
|
32
|
-
.pure-
|
|
32
|
+
.pure-cell__component_qhgxg .pure-cell__vertical_qhgxg {
|
|
33
33
|
justify-content: center;
|
|
34
34
|
}
|
|
35
|
-
.pure-
|
|
35
|
+
.pure-cell__title_qhgxg + .pure-cell__value_qhgxg {
|
|
36
36
|
margin-left: var(--gap-16);
|
|
37
37
|
flex-shrink: 0;
|
|
38
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"horizontal":"pure-
|
|
3
|
+
const styles = {"horizontal":"pure-cell__horizontal_qhgxg","rowLimit1":"pure-cell__rowLimit1_qhgxg","rowLimit2":"pure-cell__rowLimit2_qhgxg","component":"pure-cell__component_qhgxg","vertical":"pure-cell__vertical_qhgxg","title":"pure-cell__title_qhgxg","value":"pure-cell__value_qhgxg"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
package/modern/index.css
CHANGED
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--focus-color: var(--color-light-status-info);
|
|
20
20
|
}
|
|
21
|
-
.pure-
|
|
21
|
+
.pure-cell__component_d7f57 {
|
|
22
22
|
text-align: inherit;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
|
-
.pure-
|
|
25
|
+
.pure-cell__horizontal_d7f57 {
|
|
26
26
|
display: flex;
|
|
27
27
|
width: 100%;
|
|
28
28
|
}
|
|
29
|
-
.pure-
|
|
29
|
+
.pure-cell__vertical_d7f57 {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
}
|
|
34
|
-
.pure-
|
|
34
|
+
.pure-cell__button_d7f57 {
|
|
35
35
|
font-family: inherit;
|
|
36
36
|
background: none;
|
|
37
37
|
border: 0;
|
|
@@ -40,80 +40,80 @@
|
|
|
40
40
|
transition: opacity 0.15s ease-in-out;
|
|
41
41
|
padding: var(--gap-0);
|
|
42
42
|
}
|
|
43
|
-
.pure-
|
|
43
|
+
.pure-cell__button_d7f57.pure-cell__hover_d7f57 {
|
|
44
44
|
opacity: 0.8;
|
|
45
45
|
}
|
|
46
|
-
.pure-
|
|
46
|
+
.pure-cell__button_d7f57.pure-cell__active_d7f57 {
|
|
47
47
|
opacity: 0.6;
|
|
48
48
|
}
|
|
49
|
-
.pure-
|
|
49
|
+
.pure-cell__link_d7f57 {
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
color: inherit;
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
transition: opacity 0.15s ease-in-out;
|
|
54
54
|
}
|
|
55
|
-
.pure-
|
|
55
|
+
.pure-cell__link_d7f57.pure-cell__hover_d7f57 {
|
|
56
56
|
opacity: 0.8;
|
|
57
57
|
}
|
|
58
|
-
.pure-
|
|
58
|
+
.pure-cell__link_d7f57.pure-cell__active_d7f57 {
|
|
59
59
|
opacity: 0.6;
|
|
60
60
|
}
|
|
61
|
-
.pure-
|
|
61
|
+
.pure-cell__none_d7f57 {
|
|
62
62
|
padding: var(--gap-0);
|
|
63
63
|
}
|
|
64
|
-
.pure-
|
|
64
|
+
.pure-cell__airy_d7f57 {
|
|
65
65
|
padding: var(--gap-16) var(--gap-0);
|
|
66
66
|
}
|
|
67
|
-
.pure-
|
|
67
|
+
.pure-cell__default_d7f57 {
|
|
68
68
|
padding: var(--gap-12) var(--gap-0);
|
|
69
69
|
}
|
|
70
|
-
.pure-
|
|
70
|
+
.pure-cell__compact_d7f57 {
|
|
71
71
|
padding: var(--gap-8) var(--gap-0);
|
|
72
72
|
}
|
|
73
|
-
.pure-
|
|
73
|
+
.pure-cell__tiny_d7f57 {
|
|
74
74
|
padding: var(--gap-4) var(--gap-0);
|
|
75
75
|
}
|
|
76
|
-
.pure-
|
|
76
|
+
.pure-cell__noneTop_d7f57 {
|
|
77
77
|
padding-top: var(--gap-0);
|
|
78
78
|
}
|
|
79
|
-
.pure-
|
|
79
|
+
.pure-cell__airyTop_d7f57 {
|
|
80
80
|
padding-top: var(--gap-16);
|
|
81
81
|
}
|
|
82
|
-
.pure-
|
|
82
|
+
.pure-cell__defaultTop_d7f57 {
|
|
83
83
|
padding-top: var(--gap-12);
|
|
84
84
|
}
|
|
85
|
-
.pure-
|
|
85
|
+
.pure-cell__compactTop_d7f57 {
|
|
86
86
|
padding-top: var(--gap-8);
|
|
87
87
|
}
|
|
88
|
-
.pure-
|
|
88
|
+
.pure-cell__tinyTop_d7f57 {
|
|
89
89
|
padding-top: var(--gap-4);
|
|
90
90
|
}
|
|
91
|
-
.pure-
|
|
91
|
+
.pure-cell__noneBottom_d7f57 {
|
|
92
92
|
padding-bottom: var(--gap-0);
|
|
93
93
|
}
|
|
94
|
-
.pure-
|
|
94
|
+
.pure-cell__airyBottom_d7f57 {
|
|
95
95
|
padding-bottom: var(--gap-16);
|
|
96
96
|
}
|
|
97
|
-
.pure-
|
|
97
|
+
.pure-cell__defaultBottom_d7f57 {
|
|
98
98
|
padding-bottom: var(--gap-12);
|
|
99
99
|
}
|
|
100
|
-
.pure-
|
|
100
|
+
.pure-cell__compactBottom_d7f57 {
|
|
101
101
|
padding-bottom: var(--gap-8);
|
|
102
102
|
}
|
|
103
|
-
.pure-
|
|
103
|
+
.pure-cell__tinyBottom_d7f57 {
|
|
104
104
|
padding-bottom: var(--gap-4);
|
|
105
105
|
}
|
|
106
|
-
.pure-
|
|
106
|
+
.pure-cell__left_d7f57 {
|
|
107
107
|
padding-left: var(--gap-16);
|
|
108
108
|
}
|
|
109
|
-
.pure-
|
|
109
|
+
.pure-cell__right_d7f57 {
|
|
110
110
|
padding-right: var(--gap-16);
|
|
111
111
|
}
|
|
112
|
-
.pure-
|
|
112
|
+
.pure-cell__both_d7f57 {
|
|
113
113
|
padding-right: var(--gap-16);
|
|
114
114
|
padding-left: var(--gap-16);
|
|
115
115
|
}
|
|
116
|
-
.pure-
|
|
116
|
+
.pure-cell__focused_d7f57 {
|
|
117
117
|
outline: 2px solid var(--focus-color);
|
|
118
118
|
outline-offset: 2px;
|
|
119
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"pure-
|
|
3
|
+
const styles = {"component":"pure-cell__component_d7f57","horizontal":"pure-cell__horizontal_d7f57","vertical":"pure-cell__vertical_d7f57","button":"pure-cell__button_d7f57","hover":"pure-cell__hover_d7f57","active":"pure-cell__active_d7f57","link":"pure-cell__link_d7f57","none":"pure-cell__none_d7f57","airy":"pure-cell__airy_d7f57","default":"pure-cell__default_d7f57","compact":"pure-cell__compact_d7f57","tiny":"pure-cell__tiny_d7f57","noneTop":"pure-cell__noneTop_d7f57","airyTop":"pure-cell__airyTop_d7f57","defaultTop":"pure-cell__defaultTop_d7f57","compactTop":"pure-cell__compactTop_d7f57","tinyTop":"pure-cell__tinyTop_d7f57","noneBottom":"pure-cell__noneBottom_d7f57","airyBottom":"pure-cell__airyBottom_d7f57","defaultBottom":"pure-cell__defaultBottom_d7f57","compactBottom":"pure-cell__compactBottom_d7f57","tinyBottom":"pure-cell__tinyBottom_d7f57","left":"pure-cell__left_d7f57","right":"pure-cell__right_d7f57","both":"pure-cell__both_d7f57","focused":"pure-cell__focused_d7f57"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -113,6 +113,7 @@ declare const PureCell: React.ForwardRefExoticComponent<PureCellProps & React.Re
|
|
|
113
113
|
children: import("./components/types").FooterElement;
|
|
114
114
|
footerPadding?: "default" | "none";
|
|
115
115
|
dataTestId?: string;
|
|
116
|
+
className?: string;
|
|
116
117
|
}>;
|
|
117
118
|
ExtraSubtitle: React.FC<import("./components/footer-text").FooterTextProps>;
|
|
118
119
|
FooterButton: React.ForwardRefExoticComponent<(Omit<import("@alfalab/core-components-button").ButtonProps, "dataTestId"> & {
|
|
@@ -4,9 +4,9 @@ import { getDataTestId } from '@alfalab/core-components-shared/moderncssm';
|
|
|
4
4
|
import { PureCellContext } from '../../context.js';
|
|
5
5
|
import styles from './index.module.css';
|
|
6
6
|
|
|
7
|
-
const Footer = ({ children, footerPadding = 'default', dataTestId }) => {
|
|
7
|
+
const Footer = ({ children, footerPadding = 'default', dataTestId, className, }) => {
|
|
8
8
|
const pureCellContext = useContext(PureCellContext);
|
|
9
|
-
return (React.createElement("footer", { className: cn(styles.component, styles[footerPadding]), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
|
|
9
|
+
return (React.createElement("footer", { className: cn(styles.component, styles[footerPadding], className), "data-test-id": getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer') }, children));
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { Footer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n};\n\nexport const Footer: React.FC<Props> = ({
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../src/components/footer/component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { PureCellContext } from '../../context';\nimport { type FooterElement } from '../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n /**\n * Компоненты\n */\n children: FooterElement;\n\n /**\n * Вертикальные отступы\n */\n footerPadding?: 'default' | 'none';\n\n /**\n * Идентификатор для систем автоматизированного тестирования.\n * Используется модификатор -footer\n */\n dataTestId?: string;\n\n /**\n * Дополнительный класс\n */\n className?: string;\n};\n\nexport const Footer: React.FC<Props> = ({\n children,\n footerPadding = 'default',\n dataTestId,\n className,\n}) => {\n const pureCellContext = useContext(PureCellContext);\n\n return (\n <footer\n className={cn(styles.component, styles[footerPadding], className)}\n data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}\n >\n {children}\n </footer>\n );\n};\n"],"names":[],"mappings":";;;;;;AAiCa,MAAA,MAAM,GAAoB,CAAC,EACpC,QAAQ,EACR,aAAa,GAAG,SAAS,EACzB,UAAU,EACV,SAAS,GACZ,KAAI;AACD,IAAA,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,EAAA,cAAA,EACnD,aAAa,CAAC,UAAU,IAAI,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAA,EAE9E,QAAQ,CACJ;AAEjB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pure-cell",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"access": "public",
|
|
30
30
|
"directory": "dist"
|
|
31
31
|
},
|
|
32
|
-
"themesVersion": "15.0.
|
|
32
|
+
"themesVersion": "15.0.4",
|
|
33
33
|
"varsVersion": "11.0.2"
|
|
34
34
|
}
|
|
@@ -24,14 +24,24 @@ type Props = {
|
|
|
24
24
|
* Используется модификатор -footer
|
|
25
25
|
*/
|
|
26
26
|
dataTestId?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Дополнительный класс
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
27
32
|
};
|
|
28
33
|
|
|
29
|
-
export const Footer: React.FC<Props> = ({
|
|
34
|
+
export const Footer: React.FC<Props> = ({
|
|
35
|
+
children,
|
|
36
|
+
footerPadding = 'default',
|
|
37
|
+
dataTestId,
|
|
38
|
+
className,
|
|
39
|
+
}) => {
|
|
30
40
|
const pureCellContext = useContext(PureCellContext);
|
|
31
41
|
|
|
32
42
|
return (
|
|
33
43
|
<footer
|
|
34
|
-
className={cn(styles.component, styles[footerPadding])}
|
|
44
|
+
className={cn(styles.component, styles[footerPadding], className)}
|
|
35
45
|
data-test-id={getDataTestId(dataTestId || pureCellContext.dataTestId, 'footer')}
|
|
36
46
|
>
|
|
37
47
|
{children}
|