@alfalab/core-components-table 2.2.12 → 2.2.14

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.
Files changed (113) hide show
  1. package/component.d.ts +1 -1
  2. package/component.js +1 -1
  3. package/components/index.js +1 -1
  4. package/components/pagination/Component.js +2 -2
  5. package/components/pagination/index.css +8 -8
  6. package/components/pagination/index.js +1 -1
  7. package/components/pagination/select-field/index.css +4 -4
  8. package/components/pagination/select-field/index.js +2 -2
  9. package/components/table/Component.d.ts +2 -2
  10. package/components/table/Component.js +2 -2
  11. package/components/table/index.css +7 -7
  12. package/components/table/index.js +1 -1
  13. package/components/table/utils.d.ts +1 -1
  14. package/components/table/utils.js +1 -1
  15. package/components/tbody/Component.js +2 -2
  16. package/components/tbody/index.css +2 -2
  17. package/components/tbody/index.js +1 -1
  18. package/components/tcell/Component.js +2 -2
  19. package/components/tcell/index.css +6 -6
  20. package/components/tcell/index.js +1 -1
  21. package/components/texpandable-row/Component.js +2 -2
  22. package/components/texpandable-row/index.css +5 -5
  23. package/components/texpandable-row/index.js +1 -1
  24. package/components/thead/Component.js +2 -2
  25. package/components/thead/index.css +6 -6
  26. package/components/thead/index.js +1 -1
  27. package/components/thead-cell/Component.js +2 -2
  28. package/components/thead-cell/index.css +8 -8
  29. package/components/thead-cell/index.js +1 -1
  30. package/components/trow/Component.d.ts +2 -1
  31. package/components/trow/Component.js +2 -2
  32. package/components/trow/index.css +8 -8
  33. package/components/trow/index.js +1 -1
  34. package/components/tsortable-head-cell/Component.js +2 -2
  35. package/components/tsortable-head-cell/index.css +9 -9
  36. package/components/tsortable-head-cell/index.js +1 -1
  37. package/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  38. package/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  39. package/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  40. package/cssm/component.d.ts +1 -1
  41. package/cssm/components/table/Component.d.ts +2 -2
  42. package/cssm/components/table/utils.d.ts +1 -1
  43. package/cssm/components/trow/Component.d.ts +2 -1
  44. package/esm/component.d.ts +1 -1
  45. package/esm/component.js +1 -1
  46. package/esm/components/index.js +1 -1
  47. package/esm/components/pagination/Component.js +2 -2
  48. package/esm/components/pagination/index.css +8 -8
  49. package/esm/components/pagination/index.js +1 -1
  50. package/esm/components/pagination/select-field/index.css +4 -4
  51. package/esm/components/pagination/select-field/index.js +2 -2
  52. package/esm/components/table/Component.d.ts +2 -2
  53. package/esm/components/table/Component.js +2 -2
  54. package/esm/components/table/index.css +7 -7
  55. package/esm/components/table/index.js +1 -1
  56. package/esm/components/table/utils.d.ts +1 -1
  57. package/esm/components/table/utils.js +1 -1
  58. package/esm/components/tbody/Component.js +2 -2
  59. package/esm/components/tbody/index.css +2 -2
  60. package/esm/components/tbody/index.js +1 -1
  61. package/esm/components/tcell/Component.js +2 -2
  62. package/esm/components/tcell/index.css +6 -6
  63. package/esm/components/tcell/index.js +1 -1
  64. package/esm/components/texpandable-row/Component.js +2 -2
  65. package/esm/components/texpandable-row/index.css +5 -5
  66. package/esm/components/texpandable-row/index.js +1 -1
  67. package/esm/components/thead/Component.js +2 -2
  68. package/esm/components/thead/index.css +6 -6
  69. package/esm/components/thead/index.js +1 -1
  70. package/esm/components/thead-cell/Component.js +2 -2
  71. package/esm/components/thead-cell/index.css +8 -8
  72. package/esm/components/thead-cell/index.js +1 -1
  73. package/esm/components/trow/Component.d.ts +2 -1
  74. package/esm/components/trow/Component.js +2 -2
  75. package/esm/components/trow/index.css +8 -8
  76. package/esm/components/trow/index.js +1 -1
  77. package/esm/components/tsortable-head-cell/Component.js +2 -2
  78. package/esm/components/tsortable-head-cell/index.css +9 -9
  79. package/esm/components/tsortable-head-cell/index.js +1 -1
  80. package/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  81. package/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  82. package/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  83. package/esm/index.js +1 -1
  84. package/esm/{tslib.es6-2857abf8.d.ts → tslib.es6-a679cce6.d.ts} +0 -0
  85. package/esm/{tslib.es6-2857abf8.js → tslib.es6-a679cce6.js} +0 -0
  86. package/index.js +1 -1
  87. package/modern/component.d.ts +1 -1
  88. package/modern/components/pagination/Component.js +1 -1
  89. package/modern/components/pagination/index.css +8 -8
  90. package/modern/components/pagination/select-field/index.css +4 -4
  91. package/modern/components/pagination/select-field/index.js +1 -1
  92. package/modern/components/table/Component.d.ts +2 -2
  93. package/modern/components/table/Component.js +1 -1
  94. package/modern/components/table/index.css +7 -7
  95. package/modern/components/table/utils.d.ts +1 -1
  96. package/modern/components/tbody/Component.js +1 -1
  97. package/modern/components/tbody/index.css +2 -2
  98. package/modern/components/tcell/Component.js +1 -1
  99. package/modern/components/tcell/index.css +6 -6
  100. package/modern/components/texpandable-row/Component.js +1 -1
  101. package/modern/components/texpandable-row/index.css +5 -5
  102. package/modern/components/thead/Component.js +1 -1
  103. package/modern/components/thead/index.css +6 -6
  104. package/modern/components/thead-cell/Component.js +1 -1
  105. package/modern/components/thead-cell/index.css +8 -8
  106. package/modern/components/trow/Component.d.ts +2 -1
  107. package/modern/components/trow/Component.js +1 -1
  108. package/modern/components/trow/index.css +8 -8
  109. package/modern/components/tsortable-head-cell/Component.js +1 -1
  110. package/modern/components/tsortable-head-cell/index.css +9 -9
  111. package/package.json +2 -2
  112. /package/{tslib.es6-36cba480.d.ts → tslib.es6-06001441.d.ts} +0 -0
  113. /package/{tslib.es6-36cba480.js → tslib.es6-06001441.js} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: ojz1w */
1
+ /* hash: 1e8ks */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -18,7 +18,7 @@
18
18
  --gap-m: 16px;
19
19
  --gap-2xl: 32px;
20
20
  }
21
- .table__component_1xqq3 {
21
+ .table__component_eqdqh {
22
22
  font-size: 12px;
23
23
  line-height: 16px;
24
24
  font-weight: 500;
@@ -35,26 +35,26 @@
35
35
  vertical-align: top;
36
36
  box-sizing: border-box
37
37
  }
38
- .table__component_1xqq3:first-child {
38
+ .table__component_eqdqh:first-child {
39
39
  padding-left: var(--gap-m);
40
40
  }
41
- .table__component_1xqq3:last-child {
41
+ .table__component_eqdqh:last-child {
42
42
  padding-right: var(--gap-m);
43
43
  }
44
- .table__sortable_1xqq3 {
44
+ .table__sortable_eqdqh {
45
45
  cursor: pointer;
46
46
  }
47
- .table__sorted_1xqq3 {
47
+ .table__sorted_eqdqh {
48
48
  color: var(--color-light-text-primary);
49
49
  }
50
- .table__stickyHeader_1xqq3 {
50
+ .table__stickyHeader_eqdqh {
51
51
  top: 0;
52
52
  position: sticky;
53
53
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
54
54
  border: none;
55
55
  z-index: 1;
56
56
  }
57
- .table__compactHorizontal_1xqq3 {
57
+ .table__compactHorizontal_eqdqh {
58
58
  padding-left: 6px;
59
59
  padding-right: 6px;
60
60
  }
@@ -1,5 +1,5 @@
1
1
  export { THeadCell } from './Component.js';
2
- import '../../tslib.es6-2857abf8.js';
2
+ import '../../tslib.es6-a679cce6.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import '../table-context/index.js';
@@ -2,11 +2,12 @@
2
2
  import React from 'react';
3
3
  import { HTMLAttributes } from "react";
4
4
  import { TCell, TCellProps } from "../tcell/index";
5
+ type TCellElement = React.ReactElement<TCellProps, typeof TCell>;
5
6
  type TRowProps = HTMLAttributes<HTMLTableRowElement> & {
6
7
  /**
7
8
  * Компоненты ячеек
8
9
  */
9
- children: Array<React.ReactElement<TCellProps, typeof TCell>>;
10
+ children: TCellElement | TCellElement[];
10
11
  /**
11
12
  * Дополнительный класс
12
13
  */
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-2857abf8.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-a679cce6.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
 
5
- var styles = {"component":"table__component_j9wxy","withoutBorder":"table__withoutBorder_j9wxy","clickable":"table__clickable_j9wxy","selected":"table__selected_j9wxy"};
5
+ var styles = {"component":"table__component_zaon3","withoutBorder":"table__withoutBorder_zaon3","clickable":"table__clickable_zaon3","selected":"table__selected_zaon3"};
6
6
  require('./index.css')
7
7
 
8
8
  var TRow = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: s242y */
1
+ /* hash: x2rxj */
2
2
  :root {
3
3
  --color-static-graphic-solitude: #e8f2fe;
4
4
  }
@@ -14,28 +14,28 @@
14
14
 
15
15
  /* Hard up */
16
16
  }
17
- .table__component_j9wxy {
17
+ .table__component_zaon3 {
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
- .table__component_j9wxy:first-child td {
24
+ .table__component_zaon3:first-child td {
25
25
  border-top: 0;
26
26
  }
27
- .table__withoutBorder_j9wxy td {
27
+ .table__withoutBorder_zaon3 td {
28
28
  border: none;
29
29
  }
30
- .table__clickable_j9wxy {
30
+ .table__clickable_zaon3 {
31
31
  cursor: pointer
32
32
  }
33
- .table__clickable_j9wxy:hover {
33
+ .table__clickable_zaon3:hover {
34
34
  background-color: var(--color-light-bg-secondary);
35
35
  }
36
- .table__selected_j9wxy {
36
+ .table__selected_zaon3 {
37
37
  background-color: #f2f8ff /* нет цвета в палитре */
38
38
  }
39
- .table__selected_j9wxy:hover {
39
+ .table__selected_zaon3:hover {
40
40
  background-color: var(--color-static-graphic-solitude);
41
41
  }
@@ -1,4 +1,4 @@
1
1
  export { TRow } from './Component.js';
2
- import '../../tslib.es6-2857abf8.js';
2
+ import '../../tslib.es6-a679cce6.js';
3
3
  import 'react';
4
4
  import 'classnames';
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-2857abf8.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-a679cce6.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":"table__component_r3p77","content":"table__content_r3p77","icon":"table__icon_r3p77","reverse":"table__reverse_r3p77","sorted":"table__sorted_r3p77"};
10
+ var styles = {"component":"table__component_174gw","content":"table__content_174gw","icon":"table__icon_174gw","reverse":"table__reverse_174gw","sorted":"table__sorted_174gw"};
11
11
  require('./index.css')
12
12
 
13
13
  var TSortableHeadCell = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 8osdd */
1
+ /* hash: sf1qg */
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
- .table__component_r3p77 {
18
+ .table__component_174gw {
19
19
  position: relative;
20
20
  }
21
- .table__content_r3p77 {
21
+ .table__content_174gw {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
24
  }
25
- .table__icon_r3p77 {
25
+ .table__icon_174gw {
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
- .table__icon_r3p77:hover {
38
+ .table__icon_174gw:hover {
39
39
  color: var(--color-light-graphic-primary);
40
40
  }
41
- .table__reverse_r3p77 {
41
+ .table__reverse_174gw {
42
42
  flex-direction: row-reverse
43
43
  }
44
- .table__reverse_r3p77 .table__icon_r3p77 {
44
+ .table__reverse_174gw .table__icon_174gw {
45
45
  margin-left: 0;
46
46
  margin-right: var(--gap-xs);
47
47
  }
48
- .table__sorted_r3p77 {
48
+ .table__sorted_174gw {
49
49
  color: var(--color-light-graphic-link)
50
50
  }
51
- .table__sorted_r3p77:hover {
51
+ .table__sorted_174gw:hover {
52
52
  color: var(--color-light-graphic-link);
53
53
  }
@@ -1,5 +1,5 @@
1
1
  export { TSortableHeadCell } from './Component.js';
2
- import '../../tslib.es6-2857abf8.js';
2
+ import '../../tslib.es6-a679cce6.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import '../thead-cell/Component.js';
@@ -1,4 +1,4 @@
1
- import { a as __assign } from '../../tslib.es6-2857abf8.js';
1
+ import { a as __assign } from '../../tslib.es6-a679cce6.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-2857abf8.js';
1
+ import { a as __assign } from '../../tslib.es6-a679cce6.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-2857abf8.js';
1
+ import { a as __assign } from '../../tslib.es6-a679cce6.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
@@ -1,6 +1,6 @@
1
1
  export { Table } from './component.js';
2
2
  import './components/table/Component.js';
3
- import './tslib.es6-2857abf8.js';
3
+ import './tslib.es6-a679cce6.js';
4
4
  import 'react';
5
5
  import 'classnames';
6
6
  import './components/table-context/index.js';
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var component = require('./component.js');
4
4
  require('./components/table/Component.js');
5
- require('./tslib.es6-36cba480.js');
5
+ require('./tslib.es6-06001441.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('./components/table-context/index.js');
@@ -3,7 +3,7 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
3
3
  compactView?: boolean | undefined;
4
4
  compactHorizontal?: boolean | undefined;
5
5
  className?: string | undefined;
6
- children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
6
+ children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
7
7
  wrapper?: boolean | undefined;
8
8
  pagination?: import("react").ReactNode;
9
9
  dataTestId?: string | undefined;
@@ -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":"table__component_1kgoq","pagesWrapper":"table__pagesWrapper_1kgoq","tag":"table__tag_1kgoq","tagActive":"table__tagActive_1kgoq","menu":"table__menu_1kgoq","option":"table__option_1kgoq"};
9
+ const styles = {"component":"table__component_14fx1","pagesWrapper":"table__pagesWrapper_14fx1","tag":"table__tag_14fx1","tagActive":"table__tagActive_14fx1","menu":"table__menu_14fx1","option":"table__option_14fx1"};
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: 1s4wo */
1
+ /* hash: 12gay */
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
- .table__component_1kgoq {
20
+ .table__component_14fx1 {
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
- .table__pagesWrapper_1kgoq {
29
+ .table__pagesWrapper_14fx1 {
30
30
  display: flex;
31
31
  }
32
- .table__tag_1kgoq.table__tag_1kgoq {
32
+ .table__tag_14fx1.table__tag_14fx1 {
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
- .table__tag_1kgoq.table__tag_1kgoq:last-child {
38
+ .table__tag_14fx1.table__tag_14fx1:last-child {
39
39
  margin-right: 0;
40
40
  }
41
- .table__tag_1kgoq.table__tag_1kgoq.table__tagActive_1kgoq {
41
+ .table__tag_14fx1.table__tag_14fx1.table__tagActive_14fx1 {
42
42
  cursor: default;
43
43
  }
44
- .table__menu_1kgoq {
44
+ .table__menu_14fx1 {
45
45
  margin: var(--gap-2xs) 0;
46
46
  }
47
- .table__option_1kgoq {
47
+ .table__option_14fx1 {
48
48
  min-width: 208px;
49
49
  }
@@ -1,4 +1,4 @@
1
- /* hash: 7iepa */
1
+ /* hash: 1gux1 */
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
- .table__field_ehvnn svg {
13
+ .table__field_1jeu8 svg {
14
14
  width: 18px;
15
15
  height: 18px;
16
16
  }
17
- .table__open_ehvnn,
18
- .table__open_ehvnn:hover {
17
+ .table__open_1jeu8,
18
+ .table__open_1jeu8: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/modern';
4
4
 
5
- const styles = {"field":"table__field_ehvnn","open":"table__open_ehvnn"};
5
+ const styles = {"field":"table__field_1jeu8","open":"table__open_1jeu8"};
6
6
  require('./index.css')
7
7
 
8
8
  const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
@@ -17,7 +17,7 @@ type TableProps = TableHTMLAttributes<HTMLTableElement> & {
17
17
  /**
18
18
  * Дочерние компоненты
19
19
  */
20
- children: React.ReactElement[];
20
+ children: React.ReactElement | React.ReactElement[];
21
21
  /**
22
22
  * Оборачивает таблицу в стилизованный контейнер
23
23
  */
@@ -51,7 +51,7 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
51
51
  /**
52
52
  * Дочерние компоненты
53
53
  */
54
- children: React.ReactElement[];
54
+ children: React.ReactElement | React.ReactElement[];
55
55
  /**
56
56
  * Оборачивает таблицу в стилизованный контейнер
57
57
  */
@@ -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":"table__component_5mdak","wrapper":"table__wrapper_5mdak","stickyHeader":"table__stickyHeader_5mdak","hasPagination":"table__hasPagination_5mdak","table":"table__table_5mdak"};
8
+ const styles = {"component":"table__component_ln4zp","wrapper":"table__wrapper_ln4zp","stickyHeader":"table__stickyHeader_ln4zp","hasPagination":"table__hasPagination_ln4zp","table":"table__table_ln4zp"};
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,4 +1,4 @@
1
- /* hash: 15y31 */
1
+ /* hash: 1poce */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -18,29 +18,29 @@
18
18
  :root {
19
19
  --border-radius-m: 8px;
20
20
  }
21
- .table__component_5mdak {
21
+ .table__component_ln4zp {
22
22
  box-sizing: border-box;
23
23
  }
24
- .table__wrapper_5mdak {
24
+ .table__wrapper_ln4zp {
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
- .table__stickyHeader_5mdak {
31
+ .table__stickyHeader_ln4zp {
32
32
  max-height: 100%;
33
33
  }
34
- .table__hasPagination_5mdak {
34
+ .table__hasPagination_ln4zp {
35
35
  padding-bottom: 0;
36
36
  }
37
- .table__table_5mdak {
37
+ .table__table_ln4zp {
38
38
  width: 100%;
39
39
  border-collapse: collapse;
40
40
  box-sizing: border-box
41
41
 
42
42
  /* TODO: Хак для выравнивания чекбокса */
43
43
  }
44
- .table__table_5mdak td:first-child label > *[class^='box'], .table__table_5mdak th:first-child label > *[class^='box'] {
44
+ .table__table_ln4zp td:first-child label > *[class^='box'], .table__table_ln4zp th:first-child label > *[class^='box'] {
45
45
  margin-top: 0;
46
46
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { THeadCellProps } from "../thead-cell/index";
4
- declare function findAllHeadCellsProps(children: React.ReactElement[]): THeadCellProps[];
4
+ declare function findAllHeadCellsProps(children: React.ReactElement | React.ReactElement[]): THeadCellProps[];
5
5
  export { findAllHeadCellsProps };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_1rqg3"};
4
+ const styles = {"component":"table__component_1bpoe"};
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,4 +1,4 @@
1
- /* hash: 162cz */
1
+ /* hash: 1701h */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .table__component_1rqg3 {
10
+ .table__component_1bpoe {
11
11
  width: 100%;
12
12
  box-sizing: border-box;
13
13
  }
@@ -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":"table__component_1wosd","compactHorizontal":"table__compactHorizontal_1wosd","compact":"table__compact_1wosd"};
5
+ const styles = {"component":"table__component_dog0d","compactHorizontal":"table__compactHorizontal_dog0d","compact":"table__compact_dog0d"};
6
6
  require('./index.css')
7
7
 
8
8
  const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: l1fjs */
1
+ /* hash: q23ec */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
4
  --color-light-text-primary: #0b1f35;
@@ -17,7 +17,7 @@
17
17
  --gap-m: 16px;
18
18
  --gap-xl: 24px;
19
19
  }
20
- .table__component_1wosd {
20
+ .table__component_dog0d {
21
21
  font-size: 14px;
22
22
  line-height: 20px;
23
23
  font-weight: 400;
@@ -29,17 +29,17 @@
29
29
  vertical-align: top;
30
30
  box-sizing: border-box
31
31
  }
32
- .table__component_1wosd:first-child {
32
+ .table__component_dog0d:first-child {
33
33
  padding-left: var(--gap-m);
34
34
  }
35
- .table__component_1wosd:last-child {
35
+ .table__component_dog0d:last-child {
36
36
  padding-right: var(--gap-m);
37
37
  }
38
- .table__compactHorizontal_1wosd {
38
+ .table__compactHorizontal_dog0d {
39
39
  padding-left: 6px;
40
40
  padding-right: 6px;
41
41
  }
42
- .table__compact_1wosd {
42
+ .table__compact_dog0d {
43
43
  padding-top: var(--gap-xs);
44
44
  padding-bottom: var(--gap-xs);
45
45
 
@@ -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":"table__row_7vtse","selected":"table__selected_7vtse","expanded":"table__expanded_7vtse","expandable":"table__expandable_7vtse"};
5
+ const styles = {"row":"table__row_nwlhi","selected":"table__selected_nwlhi","expanded":"table__expanded_nwlhi","expandable":"table__expandable_nwlhi"};
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: wcdo5 */
1
+ /* hash: 11d1i */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,16 +7,16 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .table__row_7vtse {
10
+ .table__row_nwlhi {
11
11
  cursor: pointer;
12
12
  }
13
- .table__selected_7vtse.table__expanded_7vtse {
13
+ .table__selected_nwlhi.table__expanded_nwlhi {
14
14
  background-color: inherit;
15
15
  }
16
- .table__expanded_7vtse:hover {
16
+ .table__expanded_nwlhi:hover {
17
17
  background-color: inherit;
18
18
  }
19
- .table__expandable_7vtse td {
19
+ .table__expandable_nwlhi 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
- const styles = {"component":"table__component_lpbet","row":"table__row_lpbet"};
4
+ const styles = {"component":"table__component_5ojpo","row":"table__row_5ojpo"};
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,4 +1,4 @@
1
- /* hash: ikujw */
1
+ /* hash: 1xvp8 */
2
2
  :root {
3
3
  --color-light-graphic-quaternary: #dbdee1;
4
4
  }
@@ -13,12 +13,12 @@
13
13
  :root {
14
14
  --gap-xs: 8px;
15
15
  }
16
- .table__component_lpbet {
16
+ .table__component_5ojpo {
17
17
  position: relative;
18
18
  width: 100%;
19
19
  box-sizing: border-box
20
20
  }
21
- .table__component_lpbet th:not(:last-child):not(:empty):after {
21
+ .table__component_5ojpo th:not(:last-child):not(:empty):after {
22
22
  transition: opacity 0.2s;
23
23
  position: absolute;
24
24
  content: '';
@@ -30,12 +30,12 @@
30
30
  bottom: var(--gap-xs);
31
31
  background-color: var(--color-light-graphic-quaternary);
32
32
  }
33
- .table__component_lpbet th:after {
33
+ .table__component_5ojpo th:after {
34
34
  opacity: 0;
35
35
  }
36
- .table__component_lpbet:hover th:after {
36
+ .table__component_5ojpo:hover th:after {
37
37
  opacity: 1;
38
38
  }
39
- .table__row_lpbet {
39
+ .table__row_5ojpo {
40
40
  height: 72px;
41
41
  }
@@ -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":"table__component_1xqq3","sortable":"table__sortable_1xqq3","sorted":"table__sorted_1xqq3","stickyHeader":"table__stickyHeader_1xqq3","compactHorizontal":"table__compactHorizontal_1xqq3"};
5
+ const styles = {"component":"table__component_eqdqh","sortable":"table__sortable_eqdqh","sorted":"table__sorted_eqdqh","stickyHeader":"table__stickyHeader_eqdqh","compactHorizontal":"table__compactHorizontal_eqdqh"};
6
6
  require('./index.css')
7
7
 
8
8
  const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: ojz1w */
1
+ /* hash: 1e8ks */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -18,7 +18,7 @@
18
18
  --gap-m: 16px;
19
19
  --gap-2xl: 32px;
20
20
  }
21
- .table__component_1xqq3 {
21
+ .table__component_eqdqh {
22
22
  font-size: 12px;
23
23
  line-height: 16px;
24
24
  font-weight: 500;
@@ -35,26 +35,26 @@
35
35
  vertical-align: top;
36
36
  box-sizing: border-box
37
37
  }
38
- .table__component_1xqq3:first-child {
38
+ .table__component_eqdqh:first-child {
39
39
  padding-left: var(--gap-m);
40
40
  }
41
- .table__component_1xqq3:last-child {
41
+ .table__component_eqdqh:last-child {
42
42
  padding-right: var(--gap-m);
43
43
  }
44
- .table__sortable_1xqq3 {
44
+ .table__sortable_eqdqh {
45
45
  cursor: pointer;
46
46
  }
47
- .table__sorted_1xqq3 {
47
+ .table__sorted_eqdqh {
48
48
  color: var(--color-light-text-primary);
49
49
  }
50
- .table__stickyHeader_1xqq3 {
50
+ .table__stickyHeader_eqdqh {
51
51
  top: 0;
52
52
  position: sticky;
53
53
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
54
54
  border: none;
55
55
  z-index: 1;
56
56
  }
57
- .table__compactHorizontal_1xqq3 {
57
+ .table__compactHorizontal_eqdqh {
58
58
  padding-left: 6px;
59
59
  padding-right: 6px;
60
60
  }