@alfalab/core-components-table 1.6.4 → 2.0.2
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/{dist/component.d.ts → component.d.ts} +0 -0
- package/{dist/component.js → component.js} +1 -1
- package/{dist/components → components}/index.d.ts +0 -0
- package/{dist/components → components}/index.js +1 -1
- package/{dist/components → components}/pagination/Component.d.ts +0 -0
- package/{dist/components → components}/pagination/Component.js +2 -2
- package/{dist/esm/components → components}/pagination/index.css +8 -8
- package/{dist/components → components}/pagination/index.d.ts +0 -0
- package/{dist/components → components}/pagination/index.js +1 -1
- package/{dist/esm/components → components}/pagination/select-field/index.css +4 -4
- package/{dist/components → components}/pagination/select-field/index.d.ts +0 -0
- package/{dist/components → components}/pagination/select-field/index.js +2 -2
- package/{dist/components → components}/table/Component.d.ts +0 -0
- package/{dist/components → components}/table/Component.js +2 -2
- package/{dist/modern/components → components}/table/index.css +6 -6
- package/{dist/components → components}/table/index.d.ts +0 -0
- package/{dist/components → components}/table/index.js +1 -1
- package/{dist/components → components}/table/utils.d.ts +0 -0
- package/{dist/components → components}/table/utils.js +1 -1
- package/{dist/components → components}/table-context/index.d.ts +0 -0
- package/{dist/components → components}/table-context/index.js +0 -0
- package/{dist/components → components}/tbody/Component.d.ts +0 -0
- package/{dist/components → components}/tbody/Component.js +2 -2
- package/{dist/modern/components → components}/tbody/index.css +2 -2
- package/{dist/components → components}/tbody/index.d.ts +0 -0
- package/{dist/components → components}/tbody/index.js +1 -1
- package/{dist/components → components}/tcell/Component.d.ts +0 -0
- package/{dist/components → components}/tcell/Component.js +2 -2
- package/{dist/esm/components → components}/tcell/index.css +4 -4
- package/{dist/components → components}/tcell/index.d.ts +0 -0
- package/{dist/components → components}/tcell/index.js +1 -1
- package/{dist/components → components}/texpandable-row/Component.d.ts +0 -0
- package/{dist/components → components}/texpandable-row/Component.js +2 -2
- package/{dist/components → components}/texpandable-row/index.css +5 -5
- package/{dist/components → components}/texpandable-row/index.d.ts +0 -0
- package/{dist/components → components}/texpandable-row/index.js +1 -1
- package/{dist/components → components}/thead/Component.d.ts +0 -0
- package/{dist/components → components}/thead/Component.js +2 -2
- package/{dist/components → components}/thead/index.css +6 -6
- package/{dist/components → components}/thead/index.d.ts +0 -0
- package/{dist/components → components}/thead/index.js +1 -1
- package/{dist/components → components}/thead-cell/Component.d.ts +0 -0
- package/{dist/components → components}/thead-cell/Component.js +2 -2
- package/{dist/components → components}/thead-cell/index.css +5 -5
- package/{dist/components → components}/thead-cell/index.d.ts +0 -0
- package/{dist/components → components}/thead-cell/index.js +1 -1
- package/{dist/components → components}/trow/Component.d.ts +0 -0
- package/{dist/components → components}/trow/Component.js +2 -2
- package/{dist/modern/components → components}/trow/index.css +8 -8
- package/{dist/components → components}/trow/index.d.ts +0 -0
- package/{dist/components → components}/trow/index.js +1 -1
- package/{dist/components → components}/tsortable-head-cell/Component.d.ts +0 -0
- package/{dist/components → components}/tsortable-head-cell/Component.js +2 -2
- package/{dist/esm/components → components}/tsortable-head-cell/index.css +9 -9
- package/{dist/components → components}/tsortable-head-cell/index.d.ts +0 -0
- package/{dist/components → components}/tsortable-head-cell/index.js +1 -1
- package/{dist/components → components}/tsortable-head-cell/sort-icon-asc.d.ts +0 -0
- package/{dist/components → components}/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/{dist/components → components}/tsortable-head-cell/sort-icon-desc.d.ts +0 -0
- package/{dist/components → components}/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/{dist/components → components}/tsortable-head-cell/sort-icon-unset.d.ts +0 -0
- package/{dist/components → components}/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/{dist/cssm → cssm}/component.d.ts +0 -0
- package/{dist/cssm → cssm}/component.js +3 -3
- package/{dist/cssm → cssm}/components/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/index.js +3 -3
- package/{dist/cssm → cssm}/components/pagination/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/pagination/Component.js +3 -3
- package/{dist/cssm → cssm}/components/pagination/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/pagination/index.js +3 -3
- package/{dist/cssm → cssm}/components/pagination/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/pagination/select-field/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/pagination/select-field/index.js +1 -1
- package/{dist/cssm → cssm}/components/pagination/select-field/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/table/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/table/Component.js +0 -0
- package/{dist/cssm → cssm}/components/table/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/table/index.js +0 -0
- package/{dist/cssm → cssm}/components/table/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/table/utils.d.ts +0 -0
- package/{dist/cssm → cssm}/components/table/utils.js +0 -0
- package/{dist/cssm → cssm}/components/table-context/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/table-context/index.js +0 -0
- package/{dist/cssm → cssm}/components/tbody/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tbody/Component.js +0 -0
- package/{dist/cssm → cssm}/components/tbody/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tbody/index.js +0 -0
- package/{dist/cssm → cssm}/components/tbody/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/tcell/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tcell/Component.js +0 -0
- package/{dist/cssm → cssm}/components/tcell/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tcell/index.js +0 -0
- package/{dist/cssm → cssm}/components/tcell/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/texpandable-row/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/texpandable-row/Component.js +0 -0
- package/{dist/cssm → cssm}/components/texpandable-row/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/texpandable-row/index.js +0 -0
- package/{dist/cssm → cssm}/components/texpandable-row/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/thead/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/thead/Component.js +0 -0
- package/{dist/cssm → cssm}/components/thead/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/thead/index.js +0 -0
- package/{dist/cssm → cssm}/components/thead/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/thead-cell/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/thead-cell/Component.js +0 -0
- package/{dist/cssm → cssm}/components/thead-cell/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/thead-cell/index.js +0 -0
- package/{dist/cssm → cssm}/components/thead-cell/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/trow/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/trow/Component.js +0 -0
- package/{dist/cssm → cssm}/components/trow/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/trow/index.js +0 -0
- package/{dist/cssm → cssm}/components/trow/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/Component.js +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/index.js +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-asc.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-asc.js +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-desc.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-desc.js +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-unset.d.ts +0 -0
- package/{dist/cssm → cssm}/components/tsortable-head-cell/sort-icon-unset.js +0 -0
- package/{dist/cssm → cssm}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/index.js +3 -3
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist/cssm → cssm}/typings.d.ts +0 -0
- package/{dist/cssm → cssm}/typings.js +0 -0
- package/{dist/cssm → cssm}/utils.d.ts +0 -0
- package/{dist/cssm → cssm}/utils.js +0 -0
- package/{dist/esm → esm}/component.d.ts +0 -0
- package/{dist/esm → esm}/component.js +4 -4
- package/{dist/esm → esm}/components/index.d.ts +0 -0
- package/{dist/esm → esm}/components/index.js +4 -4
- package/{dist/esm → esm}/components/pagination/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/pagination/Component.js +5 -5
- package/{dist → esm}/components/pagination/index.css +8 -8
- package/{dist/esm → esm}/components/pagination/index.d.ts +0 -0
- package/esm/components/pagination/index.js +9 -0
- package/{dist → esm}/components/pagination/select-field/index.css +4 -4
- package/{dist/esm → esm}/components/pagination/select-field/index.d.ts +0 -0
- package/{dist/esm → esm}/components/pagination/select-field/index.js +3 -3
- package/{dist/esm → esm}/components/table/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/table/Component.js +2 -2
- package/{dist → esm}/components/table/index.css +6 -6
- package/{dist/esm → esm}/components/table/index.d.ts +0 -0
- package/{dist/esm → esm}/components/table/index.js +1 -1
- package/{dist/esm → esm}/components/table/utils.d.ts +0 -0
- package/{dist/esm → esm}/components/table/utils.js +1 -1
- package/{dist/esm → esm}/components/table-context/index.d.ts +0 -0
- package/{dist/esm → esm}/components/table-context/index.js +0 -0
- package/{dist/esm → esm}/components/tbody/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/tbody/Component.js +2 -2
- package/{dist/esm → esm}/components/tbody/index.css +2 -2
- package/{dist/esm → esm}/components/tbody/index.d.ts +0 -0
- package/{dist/esm → esm}/components/tbody/index.js +1 -1
- package/{dist/esm → esm}/components/tcell/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/tcell/Component.js +2 -2
- package/{dist → esm}/components/tcell/index.css +4 -4
- package/{dist/esm → esm}/components/tcell/index.d.ts +0 -0
- package/{dist/esm → esm}/components/tcell/index.js +1 -1
- package/{dist/esm → esm}/components/texpandable-row/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/texpandable-row/Component.js +2 -2
- package/{dist/esm → esm}/components/texpandable-row/index.css +5 -5
- package/{dist/esm → esm}/components/texpandable-row/index.d.ts +0 -0
- package/{dist/esm → esm}/components/texpandable-row/index.js +1 -1
- package/{dist/esm → esm}/components/thead/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/thead/Component.js +2 -2
- package/{dist/modern → esm}/components/thead/index.css +6 -6
- package/{dist/esm → esm}/components/thead/index.d.ts +0 -0
- package/{dist/esm → esm}/components/thead/index.js +1 -1
- package/{dist/esm → esm}/components/thead-cell/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/thead-cell/Component.js +2 -2
- package/{dist/esm → esm}/components/thead-cell/index.css +5 -5
- package/{dist/esm → esm}/components/thead-cell/index.d.ts +0 -0
- package/{dist/esm → esm}/components/thead-cell/index.js +1 -1
- package/{dist/esm → esm}/components/trow/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/trow/Component.js +2 -2
- package/{dist → esm}/components/trow/index.css +8 -8
- package/{dist/esm → esm}/components/trow/index.d.ts +0 -0
- package/{dist/esm → esm}/components/trow/index.js +1 -1
- package/{dist/esm → esm}/components/tsortable-head-cell/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/tsortable-head-cell/Component.js +2 -2
- package/{dist → esm}/components/tsortable-head-cell/index.css +9 -9
- package/{dist/esm → esm}/components/tsortable-head-cell/index.d.ts +0 -0
- package/{dist/esm → esm}/components/tsortable-head-cell/index.js +1 -1
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-asc.d.ts +0 -0
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-asc.js +1 -1
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-desc.d.ts +0 -0
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-desc.js +1 -1
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-unset.d.ts +0 -0
- package/{dist/esm → esm}/components/tsortable-head-cell/sort-icon-unset.js +1 -1
- package/{dist/esm → esm}/index.d.ts +0 -0
- package/{dist/esm → esm}/index.js +4 -4
- package/{dist/esm/tslib.es6-9c7fa967.d.ts → esm/tslib.es6-9eeb595d.d.ts} +0 -0
- package/{dist/esm/tslib.es6-9c7fa967.js → esm/tslib.es6-9eeb595d.js} +0 -0
- package/{dist/esm → esm}/typings.d.ts +0 -0
- package/{dist/esm → esm}/typings.js +0 -0
- package/{dist/esm → esm}/utils.d.ts +0 -0
- package/{dist/esm → esm}/utils.js +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +1 -1
- package/{dist/modern → modern}/component.d.ts +0 -0
- package/{dist/modern → modern}/component.js +3 -3
- package/{dist/modern → modern}/components/index.d.ts +0 -0
- package/{dist/modern → modern}/components/index.js +3 -3
- package/{dist/modern → modern}/components/pagination/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/pagination/Component.js +4 -4
- package/{dist/modern → modern}/components/pagination/index.css +8 -8
- package/{dist/modern → modern}/components/pagination/index.d.ts +0 -0
- package/modern/components/pagination/index.js +8 -0
- package/{dist/modern → modern}/components/pagination/select-field/index.css +4 -4
- package/{dist/modern → modern}/components/pagination/select-field/index.d.ts +0 -0
- package/{dist/modern → modern}/components/pagination/select-field/index.js +2 -2
- package/{dist/modern → modern}/components/table/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/table/Component.js +1 -1
- package/{dist/esm → modern}/components/table/index.css +6 -6
- package/{dist/modern → modern}/components/table/index.d.ts +0 -0
- package/{dist/modern → modern}/components/table/index.js +0 -0
- package/{dist/modern → modern}/components/table/utils.d.ts +0 -0
- package/{dist/modern → modern}/components/table/utils.js +0 -0
- package/{dist/modern → modern}/components/table-context/index.d.ts +0 -0
- package/{dist/modern → modern}/components/table-context/index.js +0 -0
- package/{dist/modern → modern}/components/tbody/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/tbody/Component.js +1 -1
- package/{dist → modern}/components/tbody/index.css +2 -2
- package/{dist/modern → modern}/components/tbody/index.d.ts +0 -0
- package/{dist/modern → modern}/components/tbody/index.js +0 -0
- package/{dist/modern → modern}/components/tcell/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/tcell/Component.js +1 -1
- package/{dist/modern → modern}/components/tcell/index.css +4 -4
- package/{dist/modern → modern}/components/tcell/index.d.ts +0 -0
- package/{dist/modern → modern}/components/tcell/index.js +0 -0
- package/{dist/modern → modern}/components/texpandable-row/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/texpandable-row/Component.js +1 -1
- package/{dist/modern → modern}/components/texpandable-row/index.css +5 -5
- package/{dist/modern → modern}/components/texpandable-row/index.d.ts +0 -0
- package/{dist/modern → modern}/components/texpandable-row/index.js +0 -0
- package/{dist/modern → modern}/components/thead/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/thead/Component.js +1 -1
- package/{dist/esm → modern}/components/thead/index.css +6 -6
- package/{dist/modern → modern}/components/thead/index.d.ts +0 -0
- package/{dist/modern → modern}/components/thead/index.js +0 -0
- package/{dist/modern → modern}/components/thead-cell/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/thead-cell/Component.js +1 -1
- package/{dist/modern → modern}/components/thead-cell/index.css +5 -5
- package/{dist/modern → modern}/components/thead-cell/index.d.ts +0 -0
- package/{dist/modern → modern}/components/thead-cell/index.js +0 -0
- package/{dist/modern → modern}/components/trow/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/trow/Component.js +1 -1
- package/{dist/esm → modern}/components/trow/index.css +8 -8
- package/{dist/modern → modern}/components/trow/index.d.ts +0 -0
- package/{dist/modern → modern}/components/trow/index.js +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/Component.js +1 -1
- package/{dist/modern → modern}/components/tsortable-head-cell/index.css +9 -9
- package/{dist/modern → modern}/components/tsortable-head-cell/index.d.ts +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/index.js +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-asc.d.ts +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-asc.js +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-desc.d.ts +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-desc.js +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-unset.d.ts +0 -0
- package/{dist/modern → modern}/components/tsortable-head-cell/sort-icon-unset.js +0 -0
- package/{dist/modern → modern}/index.d.ts +0 -0
- package/{dist/modern → modern}/index.js +3 -3
- package/{dist/modern → modern}/typings.d.ts +0 -0
- package/{dist/modern → modern}/typings.js +0 -0
- package/{dist/modern → modern}/utils.d.ts +0 -0
- package/{dist/modern → modern}/utils.js +0 -0
- package/package.json +9 -12
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/tslib.es6-b2714866.d.ts → tslib.es6-f2bbdbee.d.ts} +0 -0
- package/{dist/tslib.es6-b2714866.js → tslib.es6-f2bbdbee.js} +0 -0
- package/{dist/typings.d.ts → typings.d.ts} +0 -0
- package/{dist/typings.js → typings.js} +0 -0
- package/{dist/utils.d.ts → utils.d.ts} +0 -0
- package/{dist/utils.js → utils.js} +0 -0
- package/CHANGELOG.md +0 -351
- package/dist/esm/components/pagination/index.js +0 -9
- package/dist/modern/components/pagination/index.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Button } from '@alfalab/core-components-button/
|
|
3
|
+
import { Button } from '@alfalab/core-components-button/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"field":"
|
|
5
|
+
var styles = {"field":"table__field_jk58l","open":"table__open_jk58l"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
|
|
File without changes
|
|
@@ -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_1wq9v","wrapper":"table__wrapper_1wq9v","hasPagination":"table__hasPagination_1wq9v","table":"table__table_1wq9v"};
|
|
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: 1dpac */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__component_1wq9v {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.table__wrapper_1wq9v {
|
|
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
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.table__hasPagination_1wq9v {
|
|
32
32
|
padding-bottom: 0;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__table_1wq9v {
|
|
35
35
|
width: 100%;
|
|
36
36
|
border-collapse: collapse;
|
|
37
37
|
box-sizing: border-box
|
|
38
38
|
|
|
39
39
|
/* TODO: Хак для выравнивания чекбокса */
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__table_1wq9v td:first-child label > *[class^='box'], .table__table_1wq9v th:first-child label > *[class^='box'] {
|
|
42
42
|
margin-top: 0;
|
|
43
43
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_hwki9"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const TBody = ({ className, children, dataTestId, ...restProps }) => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_pxo94","hidden":"table__hidden_pxo94","compact":"table__compact_pxo94"};
|
|
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: bwhg4 */
|
|
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_pxo94 {
|
|
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_pxo94 {
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.table__compact_pxo94 {
|
|
35
35
|
padding-top: var(--gap-xs);
|
|
36
36
|
padding-bottom: var(--gap-xs);
|
|
37
37
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_1uvni","selected":"table__selected_1uvni","expanded":"table__expanded_1uvni","expandable":"table__expandable_1uvni"};
|
|
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: 13jv5 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.table__row_1uvni {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__selected_1uvni.table__expanded_1uvni {
|
|
14
14
|
background-color: inherit;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.table__expanded_1uvni:hover {
|
|
17
17
|
background-color: inherit;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.table__expandable_1uvni td {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
padding-bottom: 0;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_x06h3","row":"table__row_x06h3"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1vz8y */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-quaternary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.table__component_x06h3 {
|
|
14
14
|
position: relative;
|
|
15
15
|
width: 100%;
|
|
16
16
|
box-sizing: border-box
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_x06h3 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-quaternary);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.table__component_x06h3 th:after {
|
|
31
31
|
opacity: 0;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.table__component_x06h3:hover th:after {
|
|
34
34
|
opacity: 1;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.table__row_x06h3 {
|
|
37
37
|
height: 72px;
|
|
38
38
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_z51xx","sortable":"table__sortable_z51xx","sorted":"table__sorted_z51xx","hidden":"table__hidden_z51xx"};
|
|
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: pco7x */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--gap-m: 16px;
|
|
18
18
|
--gap-2xl: 32px;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.table__component_z51xx {
|
|
21
21
|
font-size: 12px;
|
|
22
22
|
line-height: 16px;
|
|
23
23
|
font-weight: 500;
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
vertical-align: top;
|
|
35
35
|
box-sizing: border-box;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.table__sortable_z51xx {
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.table__sorted_z51xx {
|
|
41
41
|
color: var(--color-light-text-primary);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.table__hidden_z51xx {
|
|
44
44
|
display: none;
|
|
45
45
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_w3w3e","withoutBorder":"table__withoutBorder_w3w3e","clickable":"table__clickable_w3w3e","selected":"table__selected_w3w3e"};
|
|
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: s93ii */
|
|
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_w3w3e {
|
|
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_w3w3e:first-child td {
|
|
25
25
|
border-top: 0;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.table__withoutBorder_w3w3e {
|
|
28
28
|
td {
|
|
29
29
|
border: none;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.table__clickable_w3w3e {
|
|
33
33
|
cursor: pointer
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.table__clickable_w3w3e:hover {
|
|
36
36
|
background-color: var(--color-light-bg-secondary);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__selected_w3w3e {
|
|
39
39
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__selected_w3w3e:hover {
|
|
42
42
|
background-color: var(--color-static-graphic-solitude);
|
|
43
43
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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_ymiin","content":"table__content_ymiin","icon":"table__icon_ymiin","reverse":"table__reverse_ymiin","sorted":"table__sorted_ymiin"};
|
|
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: jgk0c */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-link: #007aff;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.table__component_ymiin {
|
|
19
19
|
position: relative;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.table__content_ymiin {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: flex-start;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.table__icon_ymiin {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
margin-left: var(--gap-xs);
|
|
28
28
|
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
transition: color 0.2s ease;
|
|
36
36
|
flex-shrink: 0
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.table__icon_ymiin:hover {
|
|
39
39
|
color: var(--color-light-graphic-primary);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.table__reverse_ymiin {
|
|
42
42
|
flex-direction: row-reverse
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.table__reverse_ymiin .table__icon_ymiin {
|
|
45
45
|
margin-left: 0;
|
|
46
46
|
margin-right: var(--gap-xs);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.table__sorted_ymiin {
|
|
49
49
|
color: var(--color-light-graphic-link)
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.table__sorted_ymiin:hover {
|
|
52
52
|
color: var(--color-light-graphic-link);
|
|
53
53
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,9 +5,9 @@ import './utils.js';
|
|
|
5
5
|
import './components/table/utils.js';
|
|
6
6
|
import './components/table-context/index.js';
|
|
7
7
|
import './components/table/Component.js';
|
|
8
|
-
import '@alfalab/core-components-select/
|
|
9
|
-
import '@alfalab/core-components-pagination/
|
|
10
|
-
import '@alfalab/core-components-button/
|
|
8
|
+
import '@alfalab/core-components-select/modern';
|
|
9
|
+
import '@alfalab/core-components-pagination/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
11
|
import './components/pagination/select-field/index.js';
|
|
12
12
|
import './components/pagination/Component.js';
|
|
13
13
|
import './components/thead-cell/Component.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "./
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
12
9
|
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
10
|
+
"access": "public",
|
|
11
|
+
"directory": "dist"
|
|
14
12
|
},
|
|
15
13
|
"peerDependencies": {
|
|
16
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
|
|
17
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
16
|
},
|
|
19
17
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-button": "^
|
|
21
|
-
"@alfalab/core-components-pagination": "^
|
|
22
|
-
"@alfalab/core-components-select": "^
|
|
18
|
+
"@alfalab/core-components-button": "^6.0.1",
|
|
19
|
+
"@alfalab/core-components-pagination": "^2.0.1",
|
|
20
|
+
"@alfalab/core-components-select": "^12.1.0",
|
|
23
21
|
"classnames": "^2.3.1"
|
|
24
|
-
}
|
|
25
|
-
"gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
|
|
22
|
+
}
|
|
26
23
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|