@alfalab/core-components-table 2.2.13 → 2.2.15
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.js +1 -1
- package/components/index.js +1 -1
- package/components/pagination/Component.js +2 -2
- package/components/pagination/index.css +16 -19
- package/components/pagination/index.js +1 -1
- package/components/pagination/select-field/index.css +12 -8
- package/components/pagination/select-field/index.js +2 -2
- package/components/table/Component.js +2 -2
- package/components/table/index.css +16 -20
- package/components/table/index.js +1 -1
- package/components/table/utils.js +1 -1
- package/components/tbody/Component.js +2 -2
- package/components/tbody/index.css +10 -3
- package/components/tbody/index.js +1 -1
- package/components/tcell/Component.js +2 -2
- package/components/tcell/index.css +14 -15
- package/components/tcell/index.js +1 -1
- package/components/texpandable-row/Component.js +2 -2
- package/components/texpandable-row/index.css +13 -9
- package/components/texpandable-row/index.js +1 -1
- package/components/thead/Component.js +2 -2
- package/components/thead/index.css +14 -15
- package/components/thead/index.js +1 -1
- package/components/thead-cell/Component.js +2 -2
- package/components/thead-cell/index.css +16 -19
- package/components/thead-cell/index.js +1 -1
- package/components/trow/Component.js +2 -2
- package/components/trow/index.css +17 -20
- package/components/trow/index.js +1 -1
- package/components/tsortable-head-cell/Component.js +2 -2
- package/components/tsortable-head-cell/index.css +17 -21
- package/components/tsortable-head-cell/index.js +1 -1
- package/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/cssm/components/pagination/index.module.css +15 -18
- package/cssm/components/pagination/select-field/index.module.css +10 -6
- package/cssm/components/table/index.module.css +15 -19
- package/cssm/components/tbody/index.module.css +9 -2
- package/cssm/components/tcell/index.module.css +13 -14
- package/cssm/components/texpandable-row/index.module.css +12 -8
- package/cssm/components/thead/index.module.css +13 -14
- package/cssm/components/thead-cell/index.module.css +15 -18
- package/cssm/components/trow/index.module.css +16 -19
- package/cssm/components/tsortable-head-cell/index.module.css +16 -20
- package/esm/component.js +1 -1
- package/esm/components/index.js +1 -1
- package/esm/components/pagination/Component.js +2 -2
- package/esm/components/pagination/index.css +16 -19
- package/esm/components/pagination/index.js +1 -1
- package/esm/components/pagination/select-field/index.css +12 -8
- package/esm/components/pagination/select-field/index.js +2 -2
- package/esm/components/table/Component.js +2 -2
- package/esm/components/table/index.css +16 -20
- package/esm/components/table/index.js +1 -1
- package/esm/components/table/utils.js +1 -1
- package/esm/components/tbody/Component.js +2 -2
- package/esm/components/tbody/index.css +10 -3
- package/esm/components/tbody/index.js +1 -1
- package/esm/components/tcell/Component.js +2 -2
- package/esm/components/tcell/index.css +14 -15
- package/esm/components/tcell/index.js +1 -1
- package/esm/components/texpandable-row/Component.js +2 -2
- package/esm/components/texpandable-row/index.css +13 -9
- package/esm/components/texpandable-row/index.js +1 -1
- package/esm/components/thead/Component.js +2 -2
- package/esm/components/thead/index.css +14 -15
- package/esm/components/thead/index.js +1 -1
- package/esm/components/thead-cell/Component.js +2 -2
- package/esm/components/thead-cell/index.css +16 -19
- package/esm/components/thead-cell/index.js +1 -1
- package/esm/components/trow/Component.js +2 -2
- package/esm/components/trow/index.css +17 -20
- package/esm/components/trow/index.js +1 -1
- package/esm/components/tsortable-head-cell/Component.js +2 -2
- package/esm/components/tsortable-head-cell/index.css +17 -21
- package/esm/components/tsortable-head-cell/index.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/esm/index.js +1 -1
- package/esm/{tslib.es6-bd5f37d4.d.ts → tslib.es6-41061aee.d.ts} +0 -0
- package/esm/{tslib.es6-bd5f37d4.js → tslib.es6-41061aee.js} +0 -0
- package/index.js +1 -1
- package/modern/components/pagination/Component.js +1 -1
- package/modern/components/pagination/index.css +16 -19
- package/modern/components/pagination/select-field/index.css +12 -8
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +1 -1
- package/modern/components/table/index.css +16 -20
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +10 -3
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +14 -15
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +13 -9
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +14 -15
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +16 -19
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +17 -20
- package/modern/components/tsortable-head-cell/Component.js +1 -1
- package/modern/components/tsortable-head-cell/index.css +17 -21
- package/package.json +2 -2
- /package/{tslib.es6-de317aa5.d.ts → tslib.es6-0d8c9c3a.d.ts} +0 -0
- /package/{tslib.es6-de317aa5.js → tslib.es6-0d8c9c3a.js} +0 -0
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 560t5 */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
5
|
--color-light-border-primary: #dbdee1;
|
|
5
6
|
--color-light-text-primary: #0b1f35;
|
|
6
|
-
}
|
|
7
|
-
:root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
9
|
+
} :root {
|
|
8
10
|
|
|
9
11
|
/* Hard */
|
|
10
12
|
|
|
11
13
|
/* Up */
|
|
12
14
|
|
|
13
15
|
/* Hard up */
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
16
18
|
--gap-2xs: 4px;
|
|
17
19
|
--gap-s: 12px;
|
|
18
20
|
--gap-m: 16px;
|
|
19
21
|
--gap-2xl: 32px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
+
} :root {
|
|
23
|
+
} :root {
|
|
24
|
+
} .table__component_1sulo {
|
|
22
25
|
font-size: 12px;
|
|
23
26
|
line-height: 16px;
|
|
24
27
|
font-weight: 500;
|
|
@@ -34,27 +37,21 @@
|
|
|
34
37
|
background: var(--color-light-bg-primary);
|
|
35
38
|
vertical-align: top;
|
|
36
39
|
box-sizing: border-box
|
|
37
|
-
}
|
|
38
|
-
.table__component_1xlxi:first-child {
|
|
40
|
+
} .table__component_1sulo:first-child {
|
|
39
41
|
padding-left: var(--gap-m);
|
|
40
|
-
}
|
|
41
|
-
.table__component_1xlxi:last-child {
|
|
42
|
+
} .table__component_1sulo:last-child {
|
|
42
43
|
padding-right: var(--gap-m);
|
|
43
|
-
}
|
|
44
|
-
.table__sortable_1xlxi {
|
|
44
|
+
} .table__sortable_1sulo {
|
|
45
45
|
cursor: pointer;
|
|
46
|
-
}
|
|
47
|
-
.table__sorted_1xlxi {
|
|
46
|
+
} .table__sorted_1sulo {
|
|
48
47
|
color: var(--color-light-text-primary);
|
|
49
|
-
}
|
|
50
|
-
.table__stickyHeader_1xlxi {
|
|
48
|
+
} .table__stickyHeader_1sulo {
|
|
51
49
|
top: 0;
|
|
52
50
|
position: sticky;
|
|
53
51
|
box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
|
|
54
52
|
border: none;
|
|
55
53
|
z-index: 1;
|
|
56
|
-
}
|
|
57
|
-
.table__compactHorizontal_1xlxi {
|
|
54
|
+
} .table__compactHorizontal_1sulo {
|
|
58
55
|
padding-left: 6px;
|
|
59
56
|
padding-right: 6px;
|
|
60
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"
|
|
4
|
+
const styles = {"component":"table__component_1u4k9","withoutBorder":"table__withoutBorder_1u4k9","clickable":"table__clickable_1u4k9","selected":"table__selected_1u4k9"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TRow = ({ children, className, selected, withoutBorder, dataTestId, ...restProps }) => (React.createElement("tr", { className: cn(styles.component, className, {
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
3
|
-
--color-static-graphic-solitude: #e8f2fe;
|
|
4
|
-
}
|
|
1
|
+
/* hash: dmzb9 */
|
|
5
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
6
4
|
--color-light-bg-primary: #fff;
|
|
7
5
|
--color-light-bg-secondary: #f3f4f5;
|
|
8
|
-
}
|
|
9
|
-
:
|
|
6
|
+
} :root {
|
|
7
|
+
--color-static-graphic-solitude: #e8f2fe;
|
|
8
|
+
} :root {
|
|
9
|
+
} :root {
|
|
10
10
|
|
|
11
11
|
/* Hard */
|
|
12
12
|
|
|
13
13
|
/* Up */
|
|
14
14
|
|
|
15
15
|
/* Hard up */
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} .table__component_1u4k9 {
|
|
18
21
|
padding-top: 1px;
|
|
19
22
|
width: 100%;
|
|
20
23
|
transition: background-color 0.2s;
|
|
21
24
|
box-sizing: border-box;
|
|
22
25
|
background: var(--color-light-bg-primary)
|
|
23
|
-
}
|
|
24
|
-
.table__component_raasj:first-child td {
|
|
26
|
+
} .table__component_1u4k9:first-child td {
|
|
25
27
|
border-top: 0;
|
|
26
|
-
}
|
|
27
|
-
.table__withoutBorder_raasj td {
|
|
28
|
+
} .table__withoutBorder_1u4k9 td {
|
|
28
29
|
border: none;
|
|
29
|
-
}
|
|
30
|
-
.table__clickable_raasj {
|
|
30
|
+
} .table__clickable_1u4k9 {
|
|
31
31
|
cursor: pointer
|
|
32
|
-
}
|
|
33
|
-
.table__clickable_raasj:hover {
|
|
32
|
+
} .table__clickable_1u4k9:hover {
|
|
34
33
|
background-color: var(--color-light-bg-secondary);
|
|
35
|
-
}
|
|
36
|
-
.table__selected_raasj {
|
|
34
|
+
} .table__selected_1u4k9 {
|
|
37
35
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
38
|
-
}
|
|
39
|
-
.table__selected_raasj:hover {
|
|
36
|
+
} .table__selected_1u4k9:hover {
|
|
40
37
|
background-color: var(--color-static-graphic-solitude);
|
|
41
38
|
}
|
|
@@ -6,7 +6,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
|
|
|
6
6
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
7
7
|
import '../table-context/index.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"table__component_eekx6","content":"table__content_eekx6","icon":"table__icon_eekx6","reverse":"table__reverse_eekx6","sorted":"table__sorted_eekx6"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1w40f */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-graphic-link: #007aff;
|
|
4
5
|
--color-light-graphic-primary: #0b1f35;
|
|
5
6
|
--color-light-graphic-secondary: #6d7986;
|
|
6
|
-
}
|
|
7
|
-
:root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
9
|
+
} :root {
|
|
8
10
|
|
|
9
11
|
/* Hard */
|
|
10
12
|
|
|
11
13
|
/* Up */
|
|
12
14
|
|
|
13
15
|
/* Hard up */
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
16
18
|
--gap-xs: 8px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} .table__component_eekx6 {
|
|
19
22
|
position: relative;
|
|
20
|
-
}
|
|
21
|
-
.table__content_z431r {
|
|
23
|
+
} .table__content_eekx6 {
|
|
22
24
|
display: flex;
|
|
23
25
|
align-items: flex-start;
|
|
24
|
-
}
|
|
25
|
-
.table__icon_z431r {
|
|
26
|
+
} .table__icon_eekx6 {
|
|
26
27
|
cursor: pointer;
|
|
27
28
|
margin-left: var(--gap-xs);
|
|
28
29
|
|
|
@@ -34,20 +35,15 @@
|
|
|
34
35
|
color: var(--color-light-graphic-secondary);
|
|
35
36
|
transition: color 0.2s ease;
|
|
36
37
|
flex-shrink: 0
|
|
37
|
-
}
|
|
38
|
-
.table__icon_z431r:hover {
|
|
38
|
+
} .table__icon_eekx6:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
|
-
}
|
|
41
|
-
.table__reverse_z431r {
|
|
40
|
+
} .table__reverse_eekx6 {
|
|
42
41
|
flex-direction: row-reverse
|
|
43
|
-
}
|
|
44
|
-
.table__reverse_z431r .table__icon_z431r {
|
|
42
|
+
} .table__reverse_eekx6 .table__icon_eekx6 {
|
|
45
43
|
margin-left: 0;
|
|
46
44
|
margin-right: var(--gap-xs);
|
|
47
|
-
}
|
|
48
|
-
.table__sorted_z431r {
|
|
45
|
+
} .table__sorted_eekx6 {
|
|
49
46
|
color: var(--color-light-graphic-link)
|
|
50
|
-
}
|
|
51
|
-
.table__sorted_z431r:hover {
|
|
47
|
+
} .table__sorted_eekx6:hover {
|
|
52
48
|
color: var(--color-light-graphic-link);
|
|
53
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-table",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@alfalab/core-components-button": "^7.0.3",
|
|
19
19
|
"@alfalab/core-components-pagination": "^2.0.9",
|
|
20
|
-
"@alfalab/core-components-select": "^13.2.
|
|
20
|
+
"@alfalab/core-components-select": "^13.2.9",
|
|
21
21
|
"classnames": "^2.3.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
File without changes
|
|
File without changes
|