@alfalab/core-components-table 1.2.1 → 1.2.4
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/CHANGELOG.md +27 -0
- package/dist/component.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/pagination/Component.js +2 -2
- package/dist/components/pagination/index.css +8 -8
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/select-field/index.css +4 -4
- package/dist/components/pagination/select-field/index.js +2 -2
- package/dist/components/table/Component.js +2 -2
- package/dist/components/table/index.css +6 -5
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/utils.js +1 -1
- package/dist/components/tbody/Component.js +2 -2
- package/dist/components/tbody/index.css +2 -2
- package/dist/components/tbody/index.js +1 -1
- package/dist/components/tcell/Component.js +2 -2
- package/dist/components/tcell/index.css +4 -4
- package/dist/components/tcell/index.js +1 -1
- package/dist/components/texpandable-row/Component.js +2 -2
- package/dist/components/texpandable-row/index.css +5 -5
- package/dist/components/texpandable-row/index.js +1 -1
- package/dist/components/thead/Component.js +2 -2
- package/dist/components/thead/index.css +6 -6
- package/dist/components/thead/index.js +1 -1
- package/dist/components/thead-cell/Component.js +2 -2
- package/dist/components/thead-cell/index.css +7 -6
- package/dist/components/thead-cell/index.js +1 -1
- package/dist/components/trow/Component.js +2 -2
- package/dist/components/trow/index.css +8 -8
- package/dist/components/trow/index.js +1 -1
- package/dist/components/tsortable-head-cell/Component.js +2 -2
- package/dist/components/tsortable-head-cell/index.css +18 -11
- package/dist/components/tsortable-head-cell/index.js +1 -1
- package/dist/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/dist/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/dist/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/dist/cssm/components/table/index.module.css +1 -0
- package/dist/cssm/components/thead-cell/index.module.css +2 -1
- package/dist/cssm/components/tsortable-head-cell/index.module.css +9 -2
- package/dist/esm/component.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/pagination/Component.js +2 -2
- package/dist/esm/components/pagination/index.css +8 -8
- package/dist/esm/components/pagination/index.js +1 -1
- package/dist/esm/components/pagination/select-field/index.css +4 -4
- package/dist/esm/components/pagination/select-field/index.js +2 -2
- package/dist/esm/components/table/Component.js +2 -2
- package/dist/esm/components/table/index.css +6 -5
- package/dist/esm/components/table/index.js +1 -1
- package/dist/esm/components/table/utils.js +1 -1
- package/dist/esm/components/tbody/Component.js +2 -2
- package/dist/esm/components/tbody/index.css +2 -2
- package/dist/esm/components/tbody/index.js +1 -1
- package/dist/esm/components/tcell/Component.js +2 -2
- package/dist/esm/components/tcell/index.css +4 -4
- package/dist/esm/components/tcell/index.js +1 -1
- package/dist/esm/components/texpandable-row/Component.js +2 -2
- package/dist/esm/components/texpandable-row/index.css +5 -5
- package/dist/esm/components/texpandable-row/index.js +1 -1
- package/dist/esm/components/thead/Component.js +2 -2
- package/dist/esm/components/thead/index.css +6 -6
- package/dist/esm/components/thead/index.js +1 -1
- package/dist/esm/components/thead-cell/Component.js +2 -2
- package/dist/esm/components/thead-cell/index.css +7 -6
- package/dist/esm/components/thead-cell/index.js +1 -1
- package/dist/esm/components/trow/Component.js +2 -2
- package/dist/esm/components/trow/index.css +8 -8
- package/dist/esm/components/trow/index.js +1 -1
- package/dist/esm/components/tsortable-head-cell/Component.js +2 -2
- package/dist/esm/components/tsortable-head-cell/index.css +18 -11
- package/dist/esm/components/tsortable-head-cell/index.js +1 -1
- package/dist/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/dist/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/dist/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{tslib.es6-6ff5573b.d.ts → tslib.es6-8b364a0e.d.ts} +0 -0
- package/dist/esm/{tslib.es6-6ff5573b.js → tslib.es6-8b364a0e.js} +0 -0
- package/dist/index.js +1 -1
- package/dist/modern/components/pagination/Component.js +1 -1
- package/dist/modern/components/pagination/index.css +8 -8
- package/dist/modern/components/pagination/select-field/index.css +4 -4
- package/dist/modern/components/pagination/select-field/index.js +1 -1
- package/dist/modern/components/table/Component.js +1 -1
- package/dist/modern/components/table/index.css +6 -5
- package/dist/modern/components/tbody/Component.js +1 -1
- package/dist/modern/components/tbody/index.css +2 -2
- package/dist/modern/components/tcell/Component.js +1 -1
- package/dist/modern/components/tcell/index.css +4 -4
- package/dist/modern/components/texpandable-row/Component.js +1 -1
- package/dist/modern/components/texpandable-row/index.css +5 -5
- package/dist/modern/components/thead/Component.js +1 -1
- package/dist/modern/components/thead/index.css +6 -6
- package/dist/modern/components/thead-cell/Component.js +1 -1
- package/dist/modern/components/thead-cell/index.css +7 -6
- package/dist/modern/components/trow/Component.js +1 -1
- package/dist/modern/components/trow/index.css +8 -8
- package/dist/modern/components/tsortable-head-cell/Component.js +1 -1
- package/dist/modern/components/tsortable-head-cell/index.css +18 -11
- package/dist/{tslib.es6-42658389.d.ts → tslib.es6-e6526bd6.d.ts} +0 -0
- package/dist/{tslib.es6-42658389.js → tslib.es6-e6526bd6.js} +0 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-8b364a0e.js';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { THeadCell } from '../thead-cell/Component.js';
|
|
@@ -6,7 +6,7 @@ import { SortIconAsc } from './sort-icon-asc.js';
|
|
|
6
6
|
import { SortIconDesc } from './sort-icon-desc.js';
|
|
7
7
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_13opi","content":"table__content_13opi","icon":"table__icon_13opi","reverse":"table__reverse_13opi","sorted":"table__sorted_13opi"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var TSortableHeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: exjef */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-link: #007aff;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -15,32 +15,39 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_13opi {
|
|
19
19
|
position: relative;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__content_13opi {
|
|
22
22
|
display: flex;
|
|
23
|
-
align-items:
|
|
23
|
+
align-items: flex-start;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.table__icon_13opi {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
margin-left: var(--gap-xs);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* иконка сортировки должна быть выровнена по верхнему краю,
|
|
31
|
+
* т.к. текст может быть в две строки
|
|
32
|
+
*/
|
|
33
|
+
margin-top: 1px;
|
|
28
34
|
color: var(--color-light-graphic-secondary);
|
|
29
|
-
transition: color 0.2s ease
|
|
35
|
+
transition: color 0.2s ease;
|
|
36
|
+
flex-shrink: 0
|
|
30
37
|
}
|
|
31
|
-
.
|
|
38
|
+
.table__icon_13opi:hover {
|
|
32
39
|
color: var(--color-light-graphic-primary);
|
|
33
40
|
}
|
|
34
|
-
.
|
|
41
|
+
.table__reverse_13opi {
|
|
35
42
|
flex-direction: row-reverse
|
|
36
43
|
}
|
|
37
|
-
.
|
|
44
|
+
.table__reverse_13opi .table__icon_13opi {
|
|
38
45
|
margin-left: 0;
|
|
39
46
|
margin-right: var(--gap-xs);
|
|
40
47
|
}
|
|
41
|
-
.
|
|
48
|
+
.table__sorted_13opi {
|
|
42
49
|
color: var(--color-light-graphic-link)
|
|
43
50
|
}
|
|
44
|
-
.
|
|
51
|
+
.table__sorted_13opi:hover {
|
|
45
52
|
color: var(--color-light-graphic-link);
|
|
46
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-8b364a0e.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-8b364a0e.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-8b364a0e.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/dist/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/
|
|
|
6
6
|
import '@alfalab/core-components-button/dist/modern';
|
|
7
7
|
import { CustomSelectField } from './select-field/index.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_1rh74","pagesWrapper":"table__pagesWrapper_1rh74","tag":"table__tag_1rh74","tagActive":"table__tagActive_1rh74","menu":"table__menu_1rh74","option":"table__option_1rh74"};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1kyqj */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--gap-xl: 24px;
|
|
18
18
|
--gap-2xl: 32px;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.table__component_1rh74 {
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: space-between;
|
|
23
23
|
align-items: flex-start;
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
border-top: 1px solid var(--color-light-border-primary);
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.table__pagesWrapper_1rh74 {
|
|
30
30
|
display: flex;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__tag_1rh74.table__tag_1rh74 {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
35
|
padding: 0 var(--gap-xs);
|
|
36
36
|
min-width: 32px
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__tag_1rh74.table__tag_1rh74:last-child {
|
|
39
39
|
margin-right: 0;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__tag_1rh74.table__tag_1rh74.table__tagActive_1rh74 {
|
|
42
42
|
cursor: default;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__menu_1rh74 {
|
|
45
45
|
margin: var(--gap-2xs) 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.table__option_1rh74 {
|
|
48
48
|
min-width: 208px;
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 63f78 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
4
4
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__field_7f09n svg {
|
|
14
14
|
width: 18px;
|
|
15
15
|
height: 18px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
.table__open_7f09n,
|
|
18
|
+
.table__open_7f09n:hover {
|
|
19
19
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Button } from '@alfalab/core-components-button/dist/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"field":"
|
|
5
|
+
var styles = {"field":"table__field_7f09n","open":"table__open_7f09n"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
|
|
@@ -5,7 +5,7 @@ import '../../utils.js';
|
|
|
5
5
|
import { findAllHeadCellsProps } from './utils.js';
|
|
6
6
|
import { TableContext } from '../table-context/index.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"table__component_og1su","wrapper":"table__wrapper_og1su","hasPagination":"table__hasPagination_og1su","table":"table__table_og1su"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const Table = forwardRef(({ className, children, compactView = false, wrapper = true, pagination, dataTestId, ...restProps }, ref) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1969q */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,19 +18,20 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_og1su {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_og1su {
|
|
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
|
+
overflow: auto;
|
|
29
30
|
}
|
|
30
|
-
.
|
|
31
|
+
.table__hasPagination_og1su {
|
|
31
32
|
padding-bottom: 0;
|
|
32
33
|
}
|
|
33
|
-
.
|
|
34
|
+
.table__table_og1su {
|
|
34
35
|
width: 100%;
|
|
35
36
|
border-collapse: collapse;
|
|
36
37
|
box-sizing: border-box
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"table__component_1wohj"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TBody = ({ className, children, dataTestId, ...restProps }) => {
|
|
@@ -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
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"table__component_uwmij","hidden":"table__hidden_uwmij","compact":"table__compact_uwmij"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 108pi */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-m: 16px;
|
|
17
17
|
--gap-xl: 24px;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__component_uwmij {
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
line-height: 20px;
|
|
22
22
|
font-weight: 400;
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
vertical-align: top;
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.table__hidden_uwmij {
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__compact_uwmij {
|
|
35
35
|
padding-top: var(--gap-xs);
|
|
36
36
|
padding-bottom: var(--gap-xs);
|
|
37
37
|
|
|
@@ -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
|
-
var styles = {"row":"
|
|
5
|
+
var styles = {"row":"table__row_1idhv","selected":"table__selected_1idhv","expanded":"table__expanded_1idhv","expandable":"table__expandable_1idhv"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sbqzn */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_1idhv {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_1idhv.table__expanded_1idhv {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_1idhv:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_1idhv td {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
padding-bottom: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"table__component_9v2ae","row":"table__row_9v2ae"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8692f */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-neutral: #dbdee1;
|
|
4
4
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__component_9v2ae {
|
|
14
14
|
position: relative;
|
|
15
15
|
width: 100%;
|
|
16
16
|
box-sizing: border-box
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_9v2ae th:not(:last-child):not(:empty):after {
|
|
19
19
|
transition: opacity 0.2s;
|
|
20
20
|
position: absolute;
|
|
21
21
|
content: '';
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
bottom: 8px;
|
|
28
28
|
background-color: var(--color-light-graphic-neutral);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.table__component_9v2ae th:after {
|
|
31
31
|
opacity: 0;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.table__component_9v2ae:hover th:after {
|
|
34
34
|
opacity: 1;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__row_9v2ae {
|
|
37
37
|
height: 72px;
|
|
38
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"table__component_dovgt","sortable":"table__sortable_dovgt","sorted":"table__sorted_dovgt","hidden":"table__hidden_dovgt"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => (React.createElement("th", Object.assign({ className: cn(styles.component, className, hidden && styles.hidden), style: { ...style, width, textAlign }, "data-test-id": dataTestId }, restProps), children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9c6yd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
/* Hard up */
|
|
14
14
|
}
|
|
15
15
|
:root {
|
|
16
|
+
--gap-2xs: 4px;
|
|
16
17
|
--gap-m: 16px;
|
|
17
18
|
--gap-2xl: 32px;
|
|
18
19
|
}
|
|
19
|
-
.
|
|
20
|
+
.table__component_dovgt {
|
|
20
21
|
font-size: 12px;
|
|
21
22
|
line-height: 16px;
|
|
22
23
|
font-weight: 500;
|
|
@@ -27,18 +28,18 @@
|
|
|
27
28
|
position: relative;
|
|
28
29
|
text-align: left;
|
|
29
30
|
color: var(--color-light-text-primary);
|
|
30
|
-
padding: var(--gap-2xl) var(--gap-m)
|
|
31
|
+
padding: var(--gap-2xl) var(--gap-m) var(--gap-2xs);
|
|
31
32
|
border-bottom: 1px solid var(--color-light-border-primary);
|
|
32
33
|
background: var(--color-light-bg-primary);
|
|
33
34
|
vertical-align: top;
|
|
34
35
|
box-sizing: border-box;
|
|
35
36
|
}
|
|
36
|
-
.
|
|
37
|
+
.table__sortable_dovgt {
|
|
37
38
|
cursor: pointer;
|
|
38
39
|
}
|
|
39
|
-
.
|
|
40
|
+
.table__sorted_dovgt {
|
|
40
41
|
color: var(--color-light-text-primary);
|
|
41
42
|
}
|
|
42
|
-
.
|
|
43
|
+
.table__hidden_dovgt {
|
|
43
44
|
display: none;
|
|
44
45
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"table__component_yzxkr","withoutBorder":"table__withoutBorder_yzxkr","clickable":"table__clickable_yzxkr","selected":"table__selected_yzxkr"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TRow = ({ children, className, selected, withoutBorder, dataTestId, ...restProps }) => (React.createElement("tr", Object.assign({ className: cn(styles.component, className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1glbl */
|
|
2
2
|
:root {
|
|
3
3
|
--color-static-graphic-solitude: #e8f2fe;
|
|
4
4
|
}
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* Hard up */
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.table__component_yzxkr {
|
|
18
18
|
padding-top: 1px;
|
|
19
19
|
width: 100%;
|
|
20
20
|
transition: background-color 0.2s;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
background: var(--color-light-bg-primary)
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__component_yzxkr:first-child td {
|
|
25
25
|
border-top: 0;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.table__withoutBorder_yzxkr {
|
|
28
28
|
td {
|
|
29
29
|
border: none;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__clickable_yzxkr {
|
|
33
33
|
cursor: pointer
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__clickable_yzxkr:hover {
|
|
36
36
|
background-color: var(--color-light-bg-secondary);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__selected_yzxkr {
|
|
39
39
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__selected_yzxkr:hover {
|
|
42
42
|
background-color: var(--color-static-graphic-solitude);
|
|
43
43
|
}
|
|
@@ -5,7 +5,7 @@ import { SortIconAsc } from './sort-icon-asc.js';
|
|
|
5
5
|
import { SortIconDesc } from './sort-icon-desc.js';
|
|
6
6
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"table__component_13opi","content":"table__content_13opi","icon":"table__icon_13opi","reverse":"table__reverse_13opi","sorted":"table__sorted_13opi"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: exjef */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-link: #007aff;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -15,32 +15,39 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_13opi {
|
|
19
19
|
position: relative;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__content_13opi {
|
|
22
22
|
display: flex;
|
|
23
|
-
align-items:
|
|
23
|
+
align-items: flex-start;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.table__icon_13opi {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
margin-left: var(--gap-xs);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* иконка сортировки должна быть выровнена по верхнему краю,
|
|
31
|
+
* т.к. текст может быть в две строки
|
|
32
|
+
*/
|
|
33
|
+
margin-top: 1px;
|
|
28
34
|
color: var(--color-light-graphic-secondary);
|
|
29
|
-
transition: color 0.2s ease
|
|
35
|
+
transition: color 0.2s ease;
|
|
36
|
+
flex-shrink: 0
|
|
30
37
|
}
|
|
31
|
-
.
|
|
38
|
+
.table__icon_13opi:hover {
|
|
32
39
|
color: var(--color-light-graphic-primary);
|
|
33
40
|
}
|
|
34
|
-
.
|
|
41
|
+
.table__reverse_13opi {
|
|
35
42
|
flex-direction: row-reverse
|
|
36
43
|
}
|
|
37
|
-
.
|
|
44
|
+
.table__reverse_13opi .table__icon_13opi {
|
|
38
45
|
margin-left: 0;
|
|
39
46
|
margin-right: var(--gap-xs);
|
|
40
47
|
}
|
|
41
|
-
.
|
|
48
|
+
.table__sorted_13opi {
|
|
42
49
|
color: var(--color-light-graphic-link)
|
|
43
50
|
}
|
|
44
|
-
.
|
|
51
|
+
.table__sorted_13opi:hover {
|
|
45
52
|
color: var(--color-light-graphic-link);
|
|
46
53
|
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-table",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@alfalab/core-components-button": "^5.1.1",
|
|
21
|
-
"@alfalab/core-components-pagination": "^1.
|
|
22
|
-
"@alfalab/core-components-select": "^10.6.
|
|
21
|
+
"@alfalab/core-components-pagination": "^1.2.0",
|
|
22
|
+
"@alfalab/core-components-select": "^10.6.3",
|
|
23
23
|
"classnames": "^2.2.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "72b4794c38921aa1b04e2fae5f2c178095621968"
|
|
26
26
|
}
|