@alfalab/core-components-table 2.2.14 → 2.2.16
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-a679cce6.d.ts → tslib.es6-c0e0b00e.d.ts} +0 -0
- package/esm/{tslib.es6-a679cce6.js → tslib.es6-c0e0b00e.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 +4 -4
- /package/{tslib.es6-06001441.d.ts → tslib.es6-79d63e20.d.ts} +0 -0
- /package/{tslib.es6-06001441.js → tslib.es6-79d63e20.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c0e0b00e.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_1m46e","withoutBorder":"table__withoutBorder_1m46e","clickable":"table__clickable_1m46e","selected":"table__selected_1m46e"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
3
|
-
--color-static-graphic-solitude: #e8f2fe;
|
|
4
|
-
}
|
|
1
|
+
/* hash: uzhw5 */
|
|
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_1m46e {
|
|
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_zaon3:first-child td {
|
|
26
|
+
} .table__component_1m46e:first-child td {
|
|
25
27
|
border-top: 0;
|
|
26
|
-
}
|
|
27
|
-
.table__withoutBorder_zaon3 td {
|
|
28
|
+
} .table__withoutBorder_1m46e td {
|
|
28
29
|
border: none;
|
|
29
|
-
}
|
|
30
|
-
.table__clickable_zaon3 {
|
|
30
|
+
} .table__clickable_1m46e {
|
|
31
31
|
cursor: pointer
|
|
32
|
-
}
|
|
33
|
-
.table__clickable_zaon3:hover {
|
|
32
|
+
} .table__clickable_1m46e:hover {
|
|
34
33
|
background-color: var(--color-light-bg-secondary);
|
|
35
|
-
}
|
|
36
|
-
.table__selected_zaon3 {
|
|
34
|
+
} .table__selected_1m46e {
|
|
37
35
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
38
|
-
}
|
|
39
|
-
.table__selected_zaon3:hover {
|
|
36
|
+
} .table__selected_1m46e:hover {
|
|
40
37
|
background-color: var(--color-static-graphic-solitude);
|
|
41
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-c0e0b00e.js';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { THeadCell } from '../thead-cell/Component.js';
|
|
@@ -7,7 +7,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
|
|
|
7
7
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
8
8
|
import '../table-context/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"table__component_6e72l","content":"table__content_6e72l","icon":"table__icon_6e72l","reverse":"table__reverse_6e72l","sorted":"table__sorted_6e72l"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var TSortableHeadCell = function (_a) {
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5rek6 */
|
|
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_6e72l {
|
|
19
22
|
position: relative;
|
|
20
|
-
}
|
|
21
|
-
.table__content_174gw {
|
|
23
|
+
} .table__content_6e72l {
|
|
22
24
|
display: flex;
|
|
23
25
|
align-items: flex-start;
|
|
24
|
-
}
|
|
25
|
-
.table__icon_174gw {
|
|
26
|
+
} .table__icon_6e72l {
|
|
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_174gw:hover {
|
|
38
|
+
} .table__icon_6e72l:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
|
-
}
|
|
41
|
-
.table__reverse_174gw {
|
|
40
|
+
} .table__reverse_6e72l {
|
|
42
41
|
flex-direction: row-reverse
|
|
43
|
-
}
|
|
44
|
-
.table__reverse_174gw .table__icon_174gw {
|
|
42
|
+
} .table__reverse_6e72l .table__icon_6e72l {
|
|
45
43
|
margin-left: 0;
|
|
46
44
|
margin-right: var(--gap-xs);
|
|
47
|
-
}
|
|
48
|
-
.table__sorted_174gw {
|
|
45
|
+
} .table__sorted_6e72l {
|
|
49
46
|
color: var(--color-light-graphic-link)
|
|
50
|
-
}
|
|
51
|
-
.table__sorted_174gw:hover {
|
|
47
|
+
} .table__sorted_6e72l:hover {
|
|
52
48
|
color: var(--color-light-graphic-link);
|
|
53
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-c0e0b00e.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconAsc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-c0e0b00e.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconDesc = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-c0e0b00e.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
var SortIconUnset = function (props) { return (React.createElement("svg", __assign({ width: '18', height: '18', viewBox: '0 0 18 18', fill: 'currentColor', xmlns: 'http://www.w3.org/2000/svg', focusable: 'false', role: 'img' }, props),
|
package/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { TableContext } from '../table-context/index.js';
|
|
|
6
6
|
import { CustomSelectField } from './select-field/index.js';
|
|
7
7
|
import '@alfalab/core-components-button/modern';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"table__component_1nzfu","pagesWrapper":"table__pagesWrapper_1nzfu","tag":"table__tag_1nzfu","tagActive":"table__tagActive_1nzfu","menu":"table__menu_1nzfu","option":"table__option_1nzfu"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageChange = () => null, pagesCount, onPageChange = () => null, className, dataTestId, ...restPaginationProps }) => {
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1v2ah */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-border-primary: #dbdee1;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-2xs: 4px;
|
|
15
17
|
--gap-xs: 8px;
|
|
16
18
|
--gap-m: 16px;
|
|
17
19
|
--gap-xl: 24px;
|
|
18
20
|
--gap-2xl: 32px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
23
|
+
} .table__component_1nzfu {
|
|
21
24
|
display: flex;
|
|
22
25
|
justify-content: space-between;
|
|
23
26
|
align-items: flex-start;
|
|
@@ -25,25 +28,19 @@
|
|
|
25
28
|
padding: var(--gap-xl) var(--gap-m) var(--gap-2xl);
|
|
26
29
|
border-top: 1px solid var(--color-light-border-primary);
|
|
27
30
|
box-sizing: border-box;
|
|
28
|
-
}
|
|
29
|
-
.table__pagesWrapper_14fx1 {
|
|
31
|
+
} .table__pagesWrapper_1nzfu {
|
|
30
32
|
display: flex;
|
|
31
|
-
}
|
|
32
|
-
.table__tag_14fx1.table__tag_14fx1 {
|
|
33
|
+
} .table__tag_1nzfu.table__tag_1nzfu {
|
|
33
34
|
flex-shrink: 0;
|
|
34
35
|
margin-right: var(--gap-xs);
|
|
35
36
|
padding: 0 var(--gap-xs);
|
|
36
37
|
min-width: 32px
|
|
37
|
-
}
|
|
38
|
-
.table__tag_14fx1.table__tag_14fx1:last-child {
|
|
38
|
+
} .table__tag_1nzfu.table__tag_1nzfu:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
|
-
}
|
|
41
|
-
.table__tag_14fx1.table__tag_14fx1.table__tagActive_14fx1 {
|
|
40
|
+
} .table__tag_1nzfu.table__tag_1nzfu.table__tagActive_1nzfu {
|
|
42
41
|
cursor: default;
|
|
43
|
-
}
|
|
44
|
-
.table__menu_14fx1 {
|
|
42
|
+
} .table__menu_1nzfu {
|
|
45
43
|
margin: var(--gap-2xs) 0;
|
|
46
|
-
}
|
|
47
|
-
.table__option_14fx1 {
|
|
44
|
+
} .table__option_1nzfu {
|
|
48
45
|
min-width: 208px;
|
|
49
46
|
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: afsig */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} .table__field_3x903 svg {
|
|
14
19
|
width: 18px;
|
|
15
20
|
height: 18px;
|
|
16
|
-
}
|
|
17
|
-
.
|
|
18
|
-
.table__open_1jeu8:hover {
|
|
21
|
+
} .table__open_3x903,
|
|
22
|
+
.table__open_3x903:hover {
|
|
19
23
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
24
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"field":"
|
|
5
|
+
const styles = {"field":"table__field_3x903","open":"table__open_3x903"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
|
|
@@ -5,7 +5,7 @@ import { findAllHeadCellsProps } from './utils.js';
|
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
import '../thead/Component.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"
|
|
8
|
+
const styles = {"component":"table__component_12f1n","wrapper":"table__wrapper_12f1n","stickyHeader":"table__stickyHeader_12f1n","hasPagination":"table__hasPagination_12f1n","table":"table__table_12f1n"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const Table = forwardRef(({ className, children, compactView = false, compactHorizontal = false, wrapper = true, pagination, dataTestId, stickyHeader = false, ...restProps }, ref) => {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18vgu */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
--shadow-xs-hard: 0 0 4px rgba(11, 31, 53, 0.02), 0 2px 4px rgba(11, 31, 53, 0.04),
|
|
@@ -11,36 +13,30 @@
|
|
|
11
13
|
/* Up */
|
|
12
14
|
|
|
13
15
|
/* Hard up */
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
16
|
-
--gap-m: 16px;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
16
|
+
} :root {
|
|
19
17
|
--border-radius-m: 8px;
|
|
20
|
-
}
|
|
21
|
-
|
|
18
|
+
} :root {
|
|
19
|
+
--gap-m: 16px;
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
22
|
+
} .table__component_12f1n {
|
|
22
23
|
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
.table__wrapper_ln4zp {
|
|
24
|
+
} .table__wrapper_12f1n {
|
|
25
25
|
padding: 0 var(--gap-m) var(--gap-m);
|
|
26
26
|
background: var(--color-light-bg-primary);
|
|
27
27
|
box-shadow: var(--shadow-xs-hard);
|
|
28
28
|
border-radius: var(--border-radius-m);
|
|
29
29
|
overflow: auto;
|
|
30
|
-
}
|
|
31
|
-
.table__stickyHeader_ln4zp {
|
|
30
|
+
} .table__stickyHeader_12f1n {
|
|
32
31
|
max-height: 100%;
|
|
33
|
-
}
|
|
34
|
-
.table__hasPagination_ln4zp {
|
|
32
|
+
} .table__hasPagination_12f1n {
|
|
35
33
|
padding-bottom: 0;
|
|
36
|
-
}
|
|
37
|
-
.table__table_ln4zp {
|
|
34
|
+
} .table__table_12f1n {
|
|
38
35
|
width: 100%;
|
|
39
36
|
border-collapse: collapse;
|
|
40
37
|
box-sizing: border-box
|
|
41
38
|
|
|
42
39
|
/* TODO: Хак для выравнивания чекбокса */
|
|
43
|
-
}
|
|
44
|
-
.table__table_ln4zp td:first-child label > *[class^='box'], .table__table_ln4zp th:first-child label > *[class^='box'] {
|
|
40
|
+
} .table__table_12f1n td:first-child label > *[class^='box'], .table__table_12f1n th:first-child label > *[class^='box'] {
|
|
45
41
|
margin-top: 0;
|
|
46
42
|
}
|
|
@@ -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_svyid"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TBody = ({ className, children, dataTestId, ...restProps }) => (React.createElement("tbody", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps }, children));
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18zqs */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} .table__component_svyid {
|
|
11
18
|
width: 100%;
|
|
12
19
|
box-sizing: border-box;
|
|
13
20
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TableContext } from '../table-context/index.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"component":"
|
|
5
|
+
const styles = {"component":"table__component_1i0vc","compactHorizontal":"table__compactHorizontal_1i0vc","compact":"table__compact_1i0vc"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: i41ql */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-border-primary: #dbdee1;
|
|
4
5
|
--color-light-text-primary: #0b1f35;
|
|
5
|
-
}
|
|
6
|
-
:root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
9
11
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
15
17
|
--gap-xs: 8px;
|
|
16
18
|
--gap-s: 12px;
|
|
17
19
|
--gap-m: 16px;
|
|
18
20
|
--gap-xl: 24px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
23
|
+
} .table__component_1i0vc {
|
|
21
24
|
font-size: 14px;
|
|
22
25
|
line-height: 20px;
|
|
23
26
|
font-weight: 400;
|
|
@@ -28,18 +31,14 @@
|
|
|
28
31
|
border-top: 1px solid var(--color-light-border-primary);
|
|
29
32
|
vertical-align: top;
|
|
30
33
|
box-sizing: border-box
|
|
31
|
-
}
|
|
32
|
-
.table__component_dog0d:first-child {
|
|
34
|
+
} .table__component_1i0vc:first-child {
|
|
33
35
|
padding-left: var(--gap-m);
|
|
34
|
-
}
|
|
35
|
-
.table__component_dog0d:last-child {
|
|
36
|
+
} .table__component_1i0vc:last-child {
|
|
36
37
|
padding-right: var(--gap-m);
|
|
37
|
-
}
|
|
38
|
-
.table__compactHorizontal_dog0d {
|
|
38
|
+
} .table__compactHorizontal_1i0vc {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
|
-
}
|
|
42
|
-
.table__compact_dog0d {
|
|
41
|
+
} .table__compact_1i0vc {
|
|
43
42
|
padding-top: var(--gap-xs);
|
|
44
43
|
padding-bottom: var(--gap-xs);
|
|
45
44
|
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TRow } from '../trow/Component.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"row":"
|
|
5
|
+
const styles = {"row":"table__row_jll96","selected":"table__selected_jll96","expanded":"table__expanded_jll96","expandable":"table__expandable_jll96"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: z9rhb */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} .table__row_jll96 {
|
|
11
18
|
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
.table__selected_nwlhi.table__expanded_nwlhi {
|
|
19
|
+
} .table__selected_jll96.table__expanded_jll96 {
|
|
14
20
|
background-color: inherit;
|
|
15
|
-
}
|
|
16
|
-
.table__expanded_nwlhi:hover {
|
|
21
|
+
} .table__expanded_jll96:hover {
|
|
17
22
|
background-color: inherit;
|
|
18
|
-
}
|
|
19
|
-
.table__expandable_nwlhi td {
|
|
23
|
+
} .table__expandable_jll96 td {
|
|
20
24
|
margin: 0;
|
|
21
25
|
padding-top: 0;
|
|
22
26
|
padding-bottom: 0;
|
|
@@ -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_1rhqf","row":"table__row_1rhqf"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => (React.createElement("thead", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps },
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: li8d2 */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-xs: 8px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
19
|
+
} .table__component_1rhqf {
|
|
17
20
|
position: relative;
|
|
18
21
|
width: 100%;
|
|
19
22
|
box-sizing: border-box
|
|
20
|
-
}
|
|
21
|
-
.table__component_5ojpo th:not(:last-child):not(:empty):after {
|
|
23
|
+
} .table__component_1rhqf th:not(:last-child):not(:empty):after {
|
|
22
24
|
transition: opacity 0.2s;
|
|
23
25
|
position: absolute;
|
|
24
26
|
content: '';
|
|
@@ -29,13 +31,10 @@
|
|
|
29
31
|
top: var(--gap-xs);
|
|
30
32
|
bottom: var(--gap-xs);
|
|
31
33
|
background-color: var(--color-light-graphic-quaternary);
|
|
32
|
-
}
|
|
33
|
-
.table__component_5ojpo th:after {
|
|
34
|
+
} .table__component_1rhqf th:after {
|
|
34
35
|
opacity: 0;
|
|
35
|
-
}
|
|
36
|
-
.table__component_5ojpo:hover th:after {
|
|
36
|
+
} .table__component_1rhqf:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
|
-
}
|
|
39
|
-
.table__row_5ojpo {
|
|
38
|
+
} .table__row_1rhqf {
|
|
40
39
|
height: 72px;
|
|
41
40
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TableContext } from '../table-context/index.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"component":"
|
|
5
|
+
const styles = {"component":"table__component_1cp1e","sortable":"table__sortable_1cp1e","sorted":"table__sorted_1cp1e","stickyHeader":"table__stickyHeader_1cp1e","compactHorizontal":"table__compactHorizontal_1cp1e"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => {
|