@alfalab/core-components-table 2.1.13 → 2.1.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 (143) hide show
  1. package/component.d.ts +1 -1
  2. package/component.js +5 -5
  3. package/components/index.js +5 -5
  4. package/components/pagination/Component.js +3 -3
  5. package/components/pagination/index.css +8 -8
  6. package/components/pagination/index.js +2 -2
  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 +3 -3
  10. package/components/table/Component.js +5 -4
  11. package/components/table/index.css +6 -6
  12. package/components/table/index.js +3 -3
  13. package/components/table/utils.js +2 -2
  14. package/components/tbody/Component.js +2 -2
  15. package/components/tbody/index.css +2 -2
  16. package/components/tbody/index.js +1 -1
  17. package/components/tcell/Component.js +2 -2
  18. package/components/tcell/index.css +6 -6
  19. package/components/tcell/index.js +1 -1
  20. package/components/texpandable-row/Component.js +2 -2
  21. package/components/texpandable-row/index.css +5 -5
  22. package/components/texpandable-row/index.js +1 -1
  23. package/components/thead/Component.js +2 -2
  24. package/components/thead/index.css +6 -6
  25. package/components/thead/index.js +1 -1
  26. package/components/thead-cell/Component.js +2 -2
  27. package/components/thead-cell/index.css +7 -7
  28. package/components/thead-cell/index.js +1 -1
  29. package/components/trow/Component.js +2 -2
  30. package/components/trow/index.css +8 -8
  31. package/components/trow/index.js +1 -1
  32. package/components/tsortable-head-cell/Component.js +2 -2
  33. package/components/tsortable-head-cell/index.css +9 -9
  34. package/components/tsortable-head-cell/index.js +2 -2
  35. package/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  36. package/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  37. package/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  38. package/cssm/component.d.ts +1 -1
  39. package/cssm/component.js +5 -5
  40. package/cssm/components/index.js +5 -5
  41. package/cssm/components/pagination/Component.js +2 -2
  42. package/cssm/components/pagination/index.js +2 -2
  43. package/cssm/components/pagination/select-field/index.js +1 -1
  44. package/cssm/components/table/Component.d.ts +3 -3
  45. package/cssm/components/table/Component.js +4 -3
  46. package/cssm/components/table/index.js +3 -3
  47. package/cssm/components/table/utils.js +2 -2
  48. package/cssm/components/tbody/Component.js +1 -1
  49. package/cssm/components/tbody/index.js +1 -1
  50. package/cssm/components/tcell/Component.js +1 -1
  51. package/cssm/components/tcell/index.js +1 -1
  52. package/cssm/components/texpandable-row/Component.js +1 -1
  53. package/cssm/components/texpandable-row/index.js +1 -1
  54. package/cssm/components/thead/Component.js +1 -1
  55. package/cssm/components/thead/index.js +1 -1
  56. package/cssm/components/thead-cell/Component.js +1 -1
  57. package/cssm/components/thead-cell/index.js +1 -1
  58. package/cssm/components/trow/Component.js +1 -1
  59. package/cssm/components/trow/index.js +1 -1
  60. package/cssm/components/tsortable-head-cell/Component.js +2 -2
  61. package/cssm/components/tsortable-head-cell/index.js +2 -2
  62. package/cssm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  63. package/cssm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  64. package/cssm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  65. package/cssm/index.js +5 -5
  66. package/cssm/{tslib.es6-ce870b46.d.ts → tslib.es6-9682e485.d.ts} +8 -4
  67. package/{tslib.es6-4bb530e9.js → cssm/tslib.es6-9682e485.js} +1 -1
  68. package/esm/component.d.ts +1 -1
  69. package/esm/component.js +5 -5
  70. package/esm/components/index.js +5 -5
  71. package/esm/components/pagination/Component.js +3 -3
  72. package/esm/components/pagination/index.css +8 -8
  73. package/esm/components/pagination/index.js +2 -2
  74. package/esm/components/pagination/select-field/index.css +4 -4
  75. package/esm/components/pagination/select-field/index.js +2 -2
  76. package/esm/components/table/Component.d.ts +3 -3
  77. package/esm/components/table/Component.js +5 -4
  78. package/esm/components/table/index.css +6 -6
  79. package/esm/components/table/index.js +3 -3
  80. package/esm/components/table/utils.js +2 -2
  81. package/esm/components/tbody/Component.js +2 -2
  82. package/esm/components/tbody/index.css +2 -2
  83. package/esm/components/tbody/index.js +1 -1
  84. package/esm/components/tcell/Component.js +2 -2
  85. package/esm/components/tcell/index.css +6 -6
  86. package/esm/components/tcell/index.js +1 -1
  87. package/esm/components/texpandable-row/Component.js +2 -2
  88. package/esm/components/texpandable-row/index.css +5 -5
  89. package/esm/components/texpandable-row/index.js +1 -1
  90. package/esm/components/thead/Component.js +2 -2
  91. package/esm/components/thead/index.css +6 -6
  92. package/esm/components/thead/index.js +1 -1
  93. package/esm/components/thead-cell/Component.js +2 -2
  94. package/esm/components/thead-cell/index.css +7 -7
  95. package/esm/components/thead-cell/index.js +1 -1
  96. package/esm/components/trow/Component.js +2 -2
  97. package/esm/components/trow/index.css +8 -8
  98. package/esm/components/trow/index.js +1 -1
  99. package/esm/components/tsortable-head-cell/Component.js +2 -2
  100. package/esm/components/tsortable-head-cell/index.css +9 -9
  101. package/esm/components/tsortable-head-cell/index.js +2 -2
  102. package/esm/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  103. package/esm/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  104. package/esm/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  105. package/esm/index.js +5 -5
  106. package/{tslib.es6-4bb530e9.d.ts → esm/tslib.es6-de554ff0.d.ts} +8 -4
  107. package/esm/{tslib.es6-6e61193e.js → tslib.es6-de554ff0.js} +1 -1
  108. package/index.js +5 -5
  109. package/modern/component.d.ts +1 -1
  110. package/modern/component.js +4 -4
  111. package/modern/components/index.js +4 -4
  112. package/modern/components/pagination/Component.js +3 -3
  113. package/modern/components/pagination/index.css +8 -8
  114. package/modern/components/pagination/index.js +1 -1
  115. package/modern/components/pagination/select-field/index.css +4 -4
  116. package/modern/components/pagination/select-field/index.js +2 -2
  117. package/modern/components/table/Component.d.ts +3 -3
  118. package/modern/components/table/Component.js +5 -4
  119. package/modern/components/table/index.css +6 -6
  120. package/modern/components/table/index.js +2 -2
  121. package/modern/components/table/utils.js +1 -1
  122. package/modern/components/tbody/Component.js +2 -4
  123. package/modern/components/tbody/index.css +2 -2
  124. package/modern/components/tcell/Component.js +2 -2
  125. package/modern/components/tcell/index.css +6 -6
  126. package/modern/components/texpandable-row/Component.js +3 -3
  127. package/modern/components/texpandable-row/index.css +5 -5
  128. package/modern/components/thead/Component.js +3 -5
  129. package/modern/components/thead/index.css +6 -6
  130. package/modern/components/thead-cell/Component.js +2 -2
  131. package/modern/components/thead-cell/index.css +7 -7
  132. package/modern/components/trow/Component.js +3 -3
  133. package/modern/components/trow/index.css +8 -8
  134. package/modern/components/tsortable-head-cell/Component.js +2 -2
  135. package/modern/components/tsortable-head-cell/index.css +9 -9
  136. package/modern/components/tsortable-head-cell/index.js +1 -1
  137. package/modern/components/tsortable-head-cell/sort-icon-asc.js +1 -1
  138. package/modern/components/tsortable-head-cell/sort-icon-desc.js +1 -1
  139. package/modern/components/tsortable-head-cell/sort-icon-unset.js +1 -1
  140. package/modern/index.js +4 -4
  141. package/package.json +4 -4
  142. package/{esm/tslib.es6-6e61193e.d.ts → tslib.es6-88e029d7.d.ts} +8 -4
  143. package/{cssm/tslib.es6-ce870b46.js → tslib.es6-88e029d7.js} +1 -1
@@ -1,4 +1,4 @@
1
- /* hash: wu1mv */
1
+ /* hash: 14y24 */
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_1a0r4 {
18
+ .table__component_xzgsk {
19
19
  position: relative;
20
20
  }
21
- .table__content_1a0r4 {
21
+ .table__content_xzgsk {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
24
  }
25
- .table__icon_1a0r4 {
25
+ .table__icon_xzgsk {
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_1a0r4:hover {
38
+ .table__icon_xzgsk:hover {
39
39
  color: var(--color-light-graphic-primary);
40
40
  }
41
- .table__reverse_1a0r4 {
41
+ .table__reverse_xzgsk {
42
42
  flex-direction: row-reverse
43
43
  }
44
- .table__reverse_1a0r4 .table__icon_1a0r4 {
44
+ .table__reverse_xzgsk .table__icon_xzgsk {
45
45
  margin-left: 0;
46
46
  margin-right: var(--gap-xs);
47
47
  }
48
- .table__sorted_1a0r4 {
48
+ .table__sorted_xzgsk {
49
49
  color: var(--color-light-graphic-link)
50
50
  }
51
- .table__sorted_1a0r4:hover {
51
+ .table__sorted_xzgsk:hover {
52
52
  color: var(--color-light-graphic-link);
53
53
  }
@@ -1,9 +1,9 @@
1
- import '../../tslib.es6-6e61193e.js';
1
+ import '../../tslib.es6-de554ff0.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../table-context/index.js';
5
5
  import '../thead-cell/Component.js';
6
- export { TSortableHeadCell } from './Component.js';
7
6
  import './sort-icon-asc.js';
8
7
  import './sort-icon-desc.js';
9
8
  import './sort-icon-unset.js';
9
+ export { TSortableHeadCell } from './Component.js';
@@ -1,4 +1,4 @@
1
- import { a as __assign } from '../../tslib.es6-6e61193e.js';
1
+ import { a as __assign } from '../../tslib.es6-de554ff0.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-6e61193e.js';
1
+ import { a as __assign } from '../../tslib.es6-de554ff0.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-6e61193e.js';
1
+ import { a as __assign } from '../../tslib.es6-de554ff0.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,21 +1,21 @@
1
- import './tslib.es6-6e61193e.js';
1
+ import './tslib.es6-de554ff0.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import './components/thead/Component.js';
4
+ import './components/table-context/index.js';
5
5
  import './utils.js';
6
+ import './components/thead/Component.js';
6
7
  import './components/table/utils.js';
7
- import './components/table-context/index.js';
8
8
  import './components/table/Component.js';
9
- import '@alfalab/core-components-select/esm';
10
9
  import '@alfalab/core-components-pagination/esm';
10
+ import '@alfalab/core-components-select/esm';
11
11
  import '@alfalab/core-components-button/esm';
12
12
  import './components/pagination/select-field/index.js';
13
13
  import './components/pagination/Component.js';
14
14
  import './components/thead-cell/Component.js';
15
- import './components/tsortable-head-cell/Component.js';
16
15
  import './components/tsortable-head-cell/sort-icon-asc.js';
17
16
  import './components/tsortable-head-cell/sort-icon-desc.js';
18
17
  import './components/tsortable-head-cell/sort-icon-unset.js';
18
+ import './components/tsortable-head-cell/Component.js';
19
19
  import './components/tbody/Component.js';
20
20
  import './components/tcell/Component.js';
21
21
  import './components/trow/Component.js';
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
12
12
  declare function __exportStar(m: any, o: any): void;
13
13
  declare function __values(o: any): any;
14
14
  declare function __read(o: any, n: any): any;
15
+ /** @deprecated */
15
16
  declare function __spread(...args: any[]): any[];
17
+ /** @deprecated */
16
18
  declare function __spreadArrays(...args: any[]): any[];
17
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
18
21
  declare class __await {
19
22
  constructor(v: any);
20
23
  v: any;
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
25
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
26
29
  declare function __importStar(mod: any): any;
27
30
  declare function __importDefault(mod: any): any;
28
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
29
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
30
34
  declare function __assign(...args: any[]): any;
31
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
32
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
36
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
@@ -1,4 +1,4 @@
1
- /*! *****************************************************************************
1
+ /******************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
package/index.js CHANGED
@@ -2,24 +2,24 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-4bb530e9.js');
5
+ require('./tslib.es6-88e029d7.js');
6
6
  require('react');
7
7
  require('classnames');
8
- require('./components/thead/Component.js');
8
+ require('./components/table-context/index.js');
9
9
  require('./utils.js');
10
+ require('./components/thead/Component.js');
10
11
  require('./components/table/utils.js');
11
- require('./components/table-context/index.js');
12
12
  require('./components/table/Component.js');
13
- require('@alfalab/core-components-select');
14
13
  require('@alfalab/core-components-pagination');
14
+ require('@alfalab/core-components-select');
15
15
  require('@alfalab/core-components-button');
16
16
  require('./components/pagination/select-field/index.js');
17
17
  require('./components/pagination/Component.js');
18
18
  require('./components/thead-cell/Component.js');
19
- require('./components/tsortable-head-cell/Component.js');
20
19
  require('./components/tsortable-head-cell/sort-icon-asc.js');
21
20
  require('./components/tsortable-head-cell/sort-icon-desc.js');
22
21
  require('./components/tsortable-head-cell/sort-icon-unset.js');
22
+ require('./components/tsortable-head-cell/Component.js');
23
23
  require('./components/tbody/Component.js');
24
24
  require('./components/tcell/Component.js');
25
25
  require('./components/trow/Component.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 | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>[];
6
+ children: 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;
@@ -1,20 +1,20 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import { THead } from './components/thead/Component.js';
3
+ import './components/table-context/index.js';
4
4
  import './utils.js';
5
+ import { THead } from './components/thead/Component.js';
5
6
  import './components/table/utils.js';
6
- import './components/table-context/index.js';
7
7
  import { Table as Table$1 } from './components/table/Component.js';
8
- import '@alfalab/core-components-select/modern';
9
8
  import '@alfalab/core-components-pagination/modern';
9
+ import '@alfalab/core-components-select/modern';
10
10
  import '@alfalab/core-components-button/modern';
11
11
  import './components/pagination/select-field/index.js';
12
12
  import { Pagination } from './components/pagination/Component.js';
13
13
  import { THeadCell } from './components/thead-cell/Component.js';
14
- import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
15
14
  import './components/tsortable-head-cell/sort-icon-asc.js';
16
15
  import './components/tsortable-head-cell/sort-icon-desc.js';
17
16
  import './components/tsortable-head-cell/sort-icon-unset.js';
17
+ import { TSortableHeadCell } from './components/tsortable-head-cell/Component.js';
18
18
  import { TBody } from './components/tbody/Component.js';
19
19
  import { TCell } from './components/tcell/Component.js';
20
20
  import { TRow } from './components/trow/Component.js';
@@ -1,20 +1,20 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- export { THead } from './thead/Component.js';
3
+ import './table-context/index.js';
4
4
  import '../utils.js';
5
+ export { THead } from './thead/Component.js';
5
6
  import './table/utils.js';
6
- import './table-context/index.js';
7
7
  export { Table } from './table/Component.js';
8
- import '@alfalab/core-components-select/modern';
9
8
  import '@alfalab/core-components-pagination/modern';
9
+ import '@alfalab/core-components-select/modern';
10
10
  import '@alfalab/core-components-button/modern';
11
11
  import './pagination/select-field/index.js';
12
12
  export { Pagination } from './pagination/Component.js';
13
13
  export { THeadCell } from './thead-cell/Component.js';
14
- export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
15
14
  import './tsortable-head-cell/sort-icon-asc.js';
16
15
  import './tsortable-head-cell/sort-icon-desc.js';
17
16
  import './tsortable-head-cell/sort-icon-unset.js';
17
+ export { TSortableHeadCell } from './tsortable-head-cell/Component.js';
18
18
  export { TBody } from './tbody/Component.js';
19
19
  export { TCell } from './tcell/Component.js';
20
20
  export { TRow } from './trow/Component.js';
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useMemo, useCallback } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TableContext } from '../table-context/index.js';
4
- import { Select } from '@alfalab/core-components-select/modern';
5
4
  import { Pagination as Pagination$1 } from '@alfalab/core-components-pagination/modern';
5
+ import { Select } from '@alfalab/core-components-select/modern';
6
6
  import '@alfalab/core-components-button/modern';
7
7
  import { CustomSelectField } from './select-field/index.js';
8
8
 
9
- var styles = {"component":"table__component_i61qk","pagesWrapper":"table__pagesWrapper_i61qk","tag":"table__tag_i61qk","tagActive":"table__tagActive_i61qk","menu":"table__menu_i61qk","option":"table__option_i61qk"};
9
+ var styles = {"component":"table__component_3ived","pagesWrapper":"table__pagesWrapper_3ived","tag":"table__tag_3ived","tagActive":"table__tagActive_3ived","menu":"table__menu_3ived","option":"table__option_3ived"};
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 }) => {
@@ -30,7 +30,7 @@ const Pagination = ({ perPage = 25, possiblePerPage = [25, 50, 100], onPerPageCh
30
30
  }, [onPageChange, wrapperRef]);
31
31
  return (React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId },
32
32
  React.createElement(Select, { options: options, selected: perPage.toString(), onChange: handlePerPageChange, preventFlip: false, size: 's', className: styles.select, optionsListClassName: styles.menu, optionClassName: styles.option, Field: CustomSelectField }),
33
- pagesCount > 1 && (React.createElement(Pagination$1, Object.assign({ pagesCount: pagesCount, onPageChange: handlePageChange }, restPaginationProps)))));
33
+ pagesCount > 1 && (React.createElement(Pagination$1, { pagesCount: pagesCount, onPageChange: handlePageChange, ...restPaginationProps }))));
34
34
  };
35
35
 
36
36
  export { Pagination };
@@ -1,4 +1,4 @@
1
- /* hash: 1i6yz */
1
+ /* hash: an7dd */
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_i61qk {
20
+ .table__component_3ived {
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_i61qk {
29
+ .table__pagesWrapper_3ived {
30
30
  display: flex;
31
31
  }
32
- .table__tag_i61qk.table__tag_i61qk {
32
+ .table__tag_3ived.table__tag_3ived {
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_i61qk.table__tag_i61qk:last-child {
38
+ .table__tag_3ived.table__tag_3ived:last-child {
39
39
  margin-right: 0;
40
40
  }
41
- .table__tag_i61qk.table__tag_i61qk.table__tagActive_i61qk {
41
+ .table__tag_3ived.table__tag_3ived.table__tagActive_3ived {
42
42
  cursor: default;
43
43
  }
44
- .table__menu_i61qk {
44
+ .table__menu_3ived {
45
45
  margin: var(--gap-2xs) 0;
46
46
  }
47
- .table__option_i61qk {
47
+ .table__option_3ived {
48
48
  min-width: 208px;
49
49
  }
@@ -1,8 +1,8 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '../table-context/index.js';
4
- import '@alfalab/core-components-select/modern';
5
4
  import '@alfalab/core-components-pagination/modern';
5
+ import '@alfalab/core-components-select/modern';
6
6
  import '@alfalab/core-components-button/modern';
7
7
  import './select-field/index.js';
8
8
  export { Pagination } from './Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1wll2 */
1
+ /* hash: p1tfx */
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_x4yxq svg {
13
+ .table__field_ihslj svg {
14
14
  width: 18px;
15
15
  height: 18px;
16
16
  }
17
- .table__open_x4yxq,
18
- .table__open_x4yxq:hover {
17
+ .table__open_ihslj,
18
+ .table__open_ihslj:hover {
19
19
  background-color: var(--color-light-specialbg-component-shade-7);
20
20
  }
@@ -2,13 +2,13 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/modern';
4
4
 
5
- var styles = {"field":"table__field_x4yxq","open":"table__open_x4yxq"};
5
+ var styles = {"field":"table__field_ihslj","open":"table__open_ihslj"};
6
6
  require('./index.css')
7
7
 
8
8
  const CustomSelectField = ({ selected, innerProps, Arrow, open }) => {
9
9
  const { ref, ...restInnerProps } = innerProps;
10
10
  return (React.createElement("div", { ref: ref },
11
- React.createElement(Button, Object.assign({}, restInnerProps, { size: 'xxs', view: 'link', className: cn(styles.field, { [styles.open]: open }), rightAddons: Arrow }), selected?.content)));
11
+ React.createElement(Button, { ...restInnerProps, size: 'xxs', view: 'link', className: cn(styles.field, { [styles.open]: open }), rightAddons: Arrow }, selected?.content)));
12
12
  };
13
13
 
14
14
  export { CustomSelectField };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { TableHTMLAttributes, ReactNode } from "react";
3
+ import { ReactNode, TableHTMLAttributes } from "react";
4
4
  type TableProps = TableHTMLAttributes<HTMLTableElement> & {
5
5
  /**
6
6
  * Компактный вид
@@ -47,7 +47,7 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
47
47
  /**
48
48
  * Дочерние компоненты
49
49
  */
50
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
50
+ children: React.ReactElement[];
51
51
  /**
52
52
  * Оборачивает таблицу в стилизованный контейнер
53
53
  */
@@ -55,7 +55,7 @@ declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<H
55
55
  /**
56
56
  * Слот для пагинации
57
57
  */
58
- pagination?: React.ReactNode;
58
+ pagination?: ReactNode;
59
59
  /**
60
60
  * Идентификатор для систем автоматизированного тестирования
61
61
  */
@@ -1,11 +1,11 @@
1
1
  import React, { forwardRef, useRef, useMemo } from 'react';
2
2
  import cn from 'classnames';
3
- import '../thead/Component.js';
3
+ import { TableContext } from '../table-context/index.js';
4
4
  import '../../utils.js';
5
+ import '../thead/Component.js';
5
6
  import { findAllHeadCellsProps } from './utils.js';
6
- import { TableContext } from '../table-context/index.js';
7
7
 
8
- var styles = {"component":"table__component_93efp","wrapper":"table__wrapper_93efp","hasPagination":"table__hasPagination_93efp","table":"table__table_93efp"};
8
+ var styles = {"component":"table__component_ci4vy","wrapper":"table__wrapper_ci4vy","hasPagination":"table__hasPagination_ci4vy","table":"table__table_ci4vy"};
9
9
  require('./index.css')
10
10
 
11
11
  const Table = forwardRef(({ className, children, compactView = false, compactHorizontal = false, wrapper = true, pagination, dataTestId, ...restProps }, ref) => {
@@ -16,6 +16,7 @@ const Table = forwardRef(({ className, children, compactView = false, compactHor
16
16
  hidden: columnProps.hidden,
17
17
  index,
18
18
  })), [children]);
19
+ /* eslint-disable react/jsx-no-constructed-context-values */
19
20
  return (React.createElement(TableContext.Provider, { value: {
20
21
  columnsConfiguration,
21
22
  compactView,
@@ -26,7 +27,7 @@ const Table = forwardRef(({ className, children, compactView = false, compactHor
26
27
  [styles.wrapper]: wrapper,
27
28
  [styles.hasPagination]: !!pagination,
28
29
  }), "data-test-id": dataTestId },
29
- React.createElement("table", Object.assign({ ref: ref, className: styles.table }, restProps), children),
30
+ React.createElement("table", { ref: ref, className: styles.table, ...restProps }, children),
30
31
  pagination)));
31
32
  });
32
33
 
@@ -1,4 +1,4 @@
1
- /* hash: 1u3ca */
1
+ /* hash: 368qa */
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
- .table__component_93efp {
21
+ .table__component_ci4vy {
22
22
  box-sizing: border-box;
23
23
  }
24
- .table__wrapper_93efp {
24
+ .table__wrapper_ci4vy {
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__hasPagination_93efp {
31
+ .table__hasPagination_ci4vy {
32
32
  padding-bottom: 0;
33
33
  }
34
- .table__table_93efp {
34
+ .table__table_ci4vy {
35
35
  width: 100%;
36
36
  border-collapse: collapse;
37
37
  box-sizing: border-box
38
38
 
39
39
  /* TODO: Хак для выравнивания чекбокса */
40
40
  }
41
- .table__table_93efp td:first-child label > *[class^='box'], .table__table_93efp th:first-child label > *[class^='box'] {
41
+ .table__table_ci4vy td:first-child label > *[class^='box'], .table__table_ci4vy th:first-child label > *[class^='box'] {
42
42
  margin-top: 0;
43
43
  }
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '../thead/Component.js';
3
+ import '../table-context/index.js';
4
4
  import '../../utils.js';
5
+ import '../thead/Component.js';
5
6
  import './utils.js';
6
- import '../table-context/index.js';
7
7
  export { Table } from './Component.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import 'classnames';
3
- import { THead } from '../thead/Component.js';
4
3
  import { isChildInstanceOf } from '../../utils.js';
4
+ import { THead } from '../thead/Component.js';
5
5
 
6
6
  function findAllHeadCellsProps(children) {
7
7
  const result = [];
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"component":"table__component_vhe7e"};
4
+ var styles = {"component":"table__component_asmrb"};
5
5
  require('./index.css')
6
6
 
7
- const TBody = ({ className, children, dataTestId, ...restProps }) => {
8
- return (React.createElement("tbody", Object.assign({ className: cn(styles.component, className), "data-test-id": dataTestId }, restProps), children));
9
- };
7
+ const TBody = ({ className, children, dataTestId, ...restProps }) => (React.createElement("tbody", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps }, children));
10
8
 
11
9
  export { TBody };
@@ -1,4 +1,4 @@
1
- /* hash: 1mty9 */
1
+ /* hash: 1826l */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .table__component_vhe7e {
10
+ .table__component_asmrb {
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
- var styles = {"component":"table__component_11bwv","compactHorizontal":"table__compactHorizontal_11bwv","compact":"table__compact_11bwv"};
5
+ var styles = {"component":"table__component_4jfwm","compactHorizontal":"table__compactHorizontal_4jfwm","compact":"table__compact_4jfwm"};
6
6
  require('./index.css')
7
7
 
8
8
  const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
@@ -13,7 +13,7 @@ const TCell = ({ className, style, dataTestId, children, index, ...restProps })
13
13
  const hidden = column?.hidden || false;
14
14
  if (hidden)
15
15
  return null;
16
- return (React.createElement("td", Object.assign({ className: cn(styles.component, className, compactView && styles.compact, compactHorizontal && styles.compactHorizontal), style: { ...style, width, textAlign }, "data-test-id": dataTestId }, restProps), children));
16
+ return (React.createElement("td", { className: cn(styles.component, className, compactView && styles.compact, compactHorizontal && styles.compactHorizontal), style: { ...style, width, textAlign }, "data-test-id": dataTestId, ...restProps }, children));
17
17
  };
18
18
 
19
19
  export { TCell };
@@ -1,4 +1,4 @@
1
- /* hash: md18p */
1
+ /* hash: wmrf4 */
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_11bwv {
20
+ .table__component_4jfwm {
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_11bwv:first-child {
32
+ .table__component_4jfwm:first-child {
33
33
  padding-left: var(--gap-m);
34
34
  }
35
- .table__component_11bwv:last-child {
35
+ .table__component_4jfwm:last-child {
36
36
  padding-right: var(--gap-m);
37
37
  }
38
- .table__compactHorizontal_11bwv {
38
+ .table__compactHorizontal_4jfwm {
39
39
  padding-left: 6px;
40
40
  padding-right: 6px;
41
41
  }
42
- .table__compact_11bwv {
42
+ .table__compact_4jfwm {
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
- var styles = {"row":"table__row_1nzvw","selected":"table__selected_1nzvw","expanded":"table__expanded_1nzvw","expandable":"table__expandable_1nzvw"};
5
+ var styles = {"row":"table__row_1vip8","selected":"table__selected_1vip8","expanded":"table__expanded_1vip8","expandable":"table__expandable_1vip8"};
6
6
  require('./index.css')
7
7
 
8
8
  const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
@@ -16,10 +16,10 @@ const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false
16
16
  onToggle(isExpanded);
17
17
  };
18
18
  return (React.createElement(React.Fragment, null,
19
- React.createElement(TRow, Object.assign({ className: cn(styles.row, className, {
19
+ React.createElement(TRow, { className: cn(styles.row, className, {
20
20
  [styles.selected]: selected,
21
21
  [styles.expanded]: isExpanded,
22
- }), selected: selected, onClick: handleToggle }, restProps)),
22
+ }), selected: selected, onClick: handleToggle, ...restProps }),
23
23
  React.createElement("tr", { className: cn(styles.expandable, { [styles.expanded]: isExpanded }) }, renderContent(isExpanded))));
24
24
  };
25
25
 
@@ -1,4 +1,4 @@
1
- /* hash: 291jb */
1
+ /* hash: 1t653 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -7,16 +7,16 @@
7
7
 
8
8
  /* Hard up */
9
9
  }
10
- .table__row_1nzvw {
10
+ .table__row_1vip8 {
11
11
  cursor: pointer;
12
12
  }
13
- .table__selected_1nzvw.table__expanded_1nzvw {
13
+ .table__selected_1vip8.table__expanded_1vip8 {
14
14
  background-color: inherit;
15
15
  }
16
- .table__expanded_1nzvw:hover {
16
+ .table__expanded_1vip8:hover {
17
17
  background-color: inherit;
18
18
  }
19
- .table__expandable_1nzvw td {
19
+ .table__expandable_1vip8 td {
20
20
  margin: 0;
21
21
  padding-top: 0;
22
22
  padding-bottom: 0;
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"component":"table__component_13vy2","row":"table__row_13vy2"};
4
+ var styles = {"component":"table__component_x3k0x","row":"table__row_x3k0x"};
5
5
  require('./index.css')
6
6
 
7
- const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => {
8
- return (React.createElement("thead", Object.assign({ className: cn(styles.component, className), "data-test-id": dataTestId }, restProps),
9
- React.createElement("tr", { className: cn(styles.row, rowClassName) }, children)));
10
- };
7
+ const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => (React.createElement("thead", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps },
8
+ React.createElement("tr", { className: cn(styles.row, rowClassName) }, children)));
11
9
 
12
10
  export { THead };