@alfalab/core-components-table 2.8.4 → 2.9.0

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 (82) hide show
  1. package/component.d.ts +8 -1
  2. package/components/pagination/Component.js +1 -1
  3. package/components/pagination/index.css +9 -9
  4. package/components/pagination/select-field/index.css +4 -4
  5. package/components/pagination/select-field/index.js +1 -1
  6. package/components/table/Component.js +1 -1
  7. package/components/table/index.css +7 -7
  8. package/components/tbody/Component.js +1 -1
  9. package/components/tbody/index.css +2 -2
  10. package/components/tcell/Component.js +1 -1
  11. package/components/tcell/index.css +6 -6
  12. package/components/texpandable-row/Component.d.ts +3 -1
  13. package/components/texpandable-row/Component.js +3 -3
  14. package/components/texpandable-row/index.css +5 -5
  15. package/components/thead/Component.js +1 -1
  16. package/components/thead/index.css +6 -6
  17. package/components/thead-cell/Component.js +1 -1
  18. package/components/thead-cell/index.css +9 -9
  19. package/components/trow/Component.d.ts +22 -1
  20. package/components/trow/Component.js +5 -4
  21. package/components/trow/index.css +8 -8
  22. package/components/tsortable-head-cell/Component.js +1 -1
  23. package/components/tsortable-head-cell/index.css +8 -8
  24. package/cssm/component.d.ts +8 -1
  25. package/cssm/components/texpandable-row/Component.d.ts +3 -1
  26. package/cssm/components/texpandable-row/Component.js +2 -2
  27. package/cssm/components/trow/Component.d.ts +22 -1
  28. package/cssm/components/trow/Component.js +4 -3
  29. package/esm/component.d.ts +8 -1
  30. package/esm/components/pagination/Component.js +1 -1
  31. package/esm/components/pagination/index.css +9 -9
  32. package/esm/components/pagination/select-field/index.css +4 -4
  33. package/esm/components/pagination/select-field/index.js +1 -1
  34. package/esm/components/table/Component.js +1 -1
  35. package/esm/components/table/index.css +7 -7
  36. package/esm/components/tbody/Component.js +1 -1
  37. package/esm/components/tbody/index.css +2 -2
  38. package/esm/components/tcell/Component.js +1 -1
  39. package/esm/components/tcell/index.css +6 -6
  40. package/esm/components/texpandable-row/Component.d.ts +3 -1
  41. package/esm/components/texpandable-row/Component.js +3 -3
  42. package/esm/components/texpandable-row/index.css +5 -5
  43. package/esm/components/thead/Component.js +1 -1
  44. package/esm/components/thead/index.css +6 -6
  45. package/esm/components/thead-cell/Component.js +1 -1
  46. package/esm/components/thead-cell/index.css +9 -9
  47. package/esm/components/trow/Component.d.ts +22 -1
  48. package/esm/components/trow/Component.js +6 -5
  49. package/esm/components/trow/index.css +8 -8
  50. package/esm/components/tsortable-head-cell/Component.js +1 -1
  51. package/esm/components/tsortable-head-cell/index.css +8 -8
  52. package/modern/component.d.ts +8 -1
  53. package/modern/components/pagination/Component.js +1 -1
  54. package/modern/components/pagination/index.css +9 -9
  55. package/modern/components/pagination/select-field/index.css +4 -4
  56. package/modern/components/pagination/select-field/index.js +1 -1
  57. package/modern/components/table/Component.js +1 -1
  58. package/modern/components/table/index.css +7 -7
  59. package/modern/components/tbody/Component.js +1 -1
  60. package/modern/components/tbody/index.css +2 -2
  61. package/modern/components/tcell/Component.js +1 -1
  62. package/modern/components/tcell/index.css +6 -6
  63. package/modern/components/texpandable-row/Component.d.ts +3 -1
  64. package/modern/components/texpandable-row/Component.js +3 -3
  65. package/modern/components/texpandable-row/index.css +5 -5
  66. package/modern/components/thead/Component.js +1 -1
  67. package/modern/components/thead/index.css +6 -6
  68. package/modern/components/thead-cell/Component.js +1 -1
  69. package/modern/components/thead-cell/index.css +9 -9
  70. package/modern/components/trow/Component.d.ts +22 -1
  71. package/modern/components/trow/Component.js +5 -4
  72. package/modern/components/trow/index.css +8 -8
  73. package/modern/components/tsortable-head-cell/Component.js +1 -1
  74. package/modern/components/tsortable-head-cell/index.css +8 -8
  75. package/moderncssm/component.d.ts +8 -1
  76. package/moderncssm/components/texpandable-row/Component.d.ts +3 -1
  77. package/moderncssm/components/texpandable-row/Component.js +2 -2
  78. package/moderncssm/components/trow/Component.d.ts +22 -1
  79. package/moderncssm/components/trow/Component.js +4 -3
  80. package/package.json +2 -2
  81. package/src/components/texpandable-row/Component.tsx +5 -1
  82. package/src/components/trow/Component.tsx +18 -20
@@ -1,4 +1,4 @@
1
- /* hash: o735y */
1
+ /* hash: ev7xr */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-primary: #fff;
@@ -30,7 +30,7 @@
30
30
  --gap-32: var(--gap-2xl);
31
31
  } :root {
32
32
  } :root {
33
- } /* сбрасывает синюю подсветку при нажатии */ .table__component_1lm2l {
33
+ } /* сбрасывает синюю подсветку при нажатии */ .table__component_1wf1u {
34
34
  font-size: 12px;
35
35
  line-height: 16px;
36
36
  font-weight: 500;
@@ -45,23 +45,23 @@
45
45
  background: var(--color-light-base-bg-primary);
46
46
  vertical-align: top;
47
47
  box-sizing: border-box
48
- } .table__component_1lm2l:first-child {
48
+ } .table__component_1wf1u:first-child {
49
49
  padding-left: var(--gap-16);
50
- } .table__component_1lm2l:last-child {
50
+ } .table__component_1wf1u:last-child {
51
51
  padding-right: var(--gap-16);
52
- } .table__component_1lm2l:not(.table__stickyHeader_1lm2l) {
52
+ } .table__component_1wf1u:not(.table__stickyHeader_1wf1u) {
53
53
  position: relative;
54
- } .table__sortable_1lm2l {
54
+ } .table__sortable_1wf1u {
55
55
  cursor: pointer;
56
- } .table__sorted_1lm2l {
56
+ } .table__sorted_1wf1u {
57
57
  color: var(--color-light-text-primary);
58
- } .table__stickyHeader_1lm2l {
58
+ } .table__stickyHeader_1wf1u {
59
59
  top: var(--gap-0);
60
60
  position: sticky;
61
61
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
62
62
  border: none;
63
63
  z-index: 1;
64
- } .table__compactHorizontal_1lm2l {
64
+ } .table__compactHorizontal_1wf1u {
65
65
  padding-left: 6px;
66
66
  padding-right: 6px;
67
67
  }
@@ -25,5 +25,26 @@ type TRowProps = HTMLAttributes<HTMLTableRowElement> & {
25
25
  */
26
26
  dataTestId?: string;
27
27
  };
28
- declare const TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: TRowProps) => React.JSX.Element;
28
+ declare const TRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & {
29
+ /**
30
+ * Компоненты ячеек
31
+ */
32
+ children: TCellElement | TCellElement[];
33
+ /**
34
+ * Дополнительный класс
35
+ */
36
+ className?: string | undefined;
37
+ /**
38
+ * Стиль выбранной строки
39
+ */
40
+ selected?: boolean | undefined;
41
+ /**
42
+ * Убирает нижнюю границу
43
+ */
44
+ withoutBorder?: boolean | undefined;
45
+ /**
46
+ * Идентификатор для систем автоматизированного тестирования
47
+ */
48
+ dataTestId?: string | undefined;
49
+ } & React.RefAttributes<HTMLTableRowElement>>;
29
50
  export { TRowProps, TRow };
@@ -11,17 +11,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"component":"table__component_1uh5s","withoutBorder":"table__withoutBorder_1uh5s","clickable":"table__clickable_1uh5s","selected":"table__selected_1uh5s"};
14
+ var styles = {"component":"table__component_1ch0g","withoutBorder":"table__withoutBorder_1ch0g","clickable":"table__clickable_1ch0g","selected":"table__selected_1ch0g"};
15
15
  require('./index.css')
16
16
 
17
- var TRow = function (_a) {
17
+ var TRow = React.forwardRef(function (_a, ref) {
18
18
  var _b;
19
19
  var children = _a.children, className = _a.className, selected = _a.selected, withoutBorder = _a.withoutBorder, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["children", "className", "selected", "withoutBorder", "dataTestId"]);
20
20
  return (React__default.default.createElement("tr", tslib.__assign({ className: cn__default.default(styles.component, className, (_b = {},
21
21
  _b[styles.clickable] = typeof restProps.onClick !== 'undefined',
22
22
  _b[styles.selected] = selected,
23
23
  _b[styles.withoutBorder] = withoutBorder,
24
- _b)), "data-test-id": dataTestId }, restProps), React__default.default.Children.map(children, function (child, index) { return React__default.default.cloneElement(child, { index: index }); })));
25
- };
24
+ _b)), "data-test-id": dataTestId, ref: ref }, restProps), React__default.default.Children.map(children, function (child, index) { return React__default.default.cloneElement(child, { index: index }); })));
25
+ });
26
+ TRow.displayName = 'TRow';
26
27
 
27
28
  exports.TRow = TRow;
@@ -1,4 +1,4 @@
1
- /* hash: bmvig */
1
+ /* hash: 1vaj8 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-primary: #fff;
@@ -21,22 +21,22 @@
21
21
  /* новые значения, используйте их */
22
22
  } :root {
23
23
  } :root {
24
- } /* сбрасывает синюю подсветку при нажатии */ .table__component_1uh5s {
24
+ } /* сбрасывает синюю подсветку при нажатии */ .table__component_1ch0g {
25
25
  padding-top: 1px;
26
26
  width: 100%;
27
27
  transition: background-color 0.2s;
28
28
  box-sizing: border-box;
29
29
  background: var(--color-light-base-bg-primary)
30
- } .table__component_1uh5s:first-child td {
30
+ } .table__component_1ch0g:first-child td {
31
31
  border-top: 0;
32
- } .table__withoutBorder_1uh5s td {
32
+ } .table__withoutBorder_1ch0g td {
33
33
  border: none;
34
- } .table__clickable_1uh5s {
34
+ } .table__clickable_1ch0g {
35
35
  cursor: pointer
36
- } .table__clickable_1uh5s:hover {
36
+ } .table__clickable_1ch0g:hover {
37
37
  background-color: var(--color-light-base-bg-secondary);
38
- } .table__selected_1uh5s {
38
+ } .table__selected_1ch0g {
39
39
  background-color: #f2f8ff /* нет цвета в палитре */
40
- } .table__selected_1uh5s:hover {
40
+ } .table__selected_1ch0g:hover {
41
41
  background-color: var(--color-static-graphic-solitude);
42
42
  }
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"content":"table__content_1b09f","icon":"table__icon_1b09f","reverse":"table__reverse_1b09f","sorted":"table__sorted_1b09f"};
18
+ var styles = {"content":"table__content_absvz","icon":"table__icon_absvz","reverse":"table__reverse_absvz","sorted":"table__sorted_absvz"};
19
19
  require('./index.css')
20
20
 
21
21
  var TSortableHeadCell = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 131v0 */
1
+ /* hash: ty0ai */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-700: #898991;
@@ -24,10 +24,10 @@
24
24
  --gap-8: var(--gap-xs);
25
25
  } :root {
26
26
  } :root {
27
- } /* сбрасывает синюю подсветку при нажатии */ .table__content_1b09f {
27
+ } /* сбрасывает синюю подсветку при нажатии */ .table__content_absvz {
28
28
  display: flex;
29
29
  align-items: flex-start;
30
- } .table__icon_1b09f {
30
+ } .table__icon_absvz {
31
31
  cursor: pointer;
32
32
  margin-left: var(--gap-8);
33
33
 
@@ -39,15 +39,15 @@
39
39
  color: var(--color-light-neutral-700);
40
40
  transition: color 0.2s ease;
41
41
  flex-shrink: 0
42
- } .table__icon_1b09f:hover {
42
+ } .table__icon_absvz:hover {
43
43
  color: var(--color-light-neutral-translucent-1300);
44
- } .table__reverse_1b09f {
44
+ } .table__reverse_absvz {
45
45
  flex-direction: row-reverse
46
- } .table__reverse_1b09f .table__icon_1b09f {
46
+ } .table__reverse_absvz .table__icon_absvz {
47
47
  margin-left: var(--gap-0);
48
48
  margin-right: var(--gap-8);
49
- } .table__sorted_1b09f {
49
+ } .table__sorted_absvz {
50
50
  color: var(--color-light-status-info)
51
- } .table__sorted_1b09f:hover {
51
+ } .table__sorted_absvz:hover {
52
52
  color: var(--color-light-status-info);
53
53
  }
@@ -14,7 +14,13 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
14
14
  THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: import("./components/index").THeadCellProps) => import("react").JSX.Element | null;
15
15
  TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: import("./components/index").TSortableHeadCellProps) => import("react").JSX.Element;
16
16
  TCell: ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null;
17
- TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: import("./components/index").TRowProps) => import("react").JSX.Element;
17
+ TRow: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableRowElement> & {
18
+ children: import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null> | import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null>[];
19
+ className?: string | undefined;
20
+ selected?: boolean | undefined;
21
+ withoutBorder?: boolean | undefined;
22
+ dataTestId?: string | undefined;
23
+ } & import("react").RefAttributes<HTMLTableRowElement>>;
18
24
  TExpandableRow: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableRowElement> & {
19
25
  children: import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null> | import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null>[];
20
26
  className?: string | undefined;
@@ -26,6 +32,7 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
26
32
  expanded?: boolean | undefined;
27
33
  onToggle?: ((expanded: boolean) => void) | undefined;
28
34
  renderContent: (expanded: boolean) => import("react").ReactNode;
35
+ rowRef?: import("react").Ref<HTMLTableRowElement> | undefined;
29
36
  } & import("react").RefAttributes<HTMLTableRowElement>>;
30
37
  Pagination: import("react").FC<import("./components/index").PaginationProps>;
31
38
  };
@@ -1,12 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ReactNode } from "react";
3
+ import { ReactNode, Ref } from "react";
4
4
  import { TRowProps } from "../trow/index";
5
5
  type TExpandableRowProps = TRowProps & {
6
6
  defaultExpanded?: boolean;
7
7
  expanded?: boolean;
8
8
  onToggle?: (expanded: boolean) => void;
9
9
  renderContent: (expanded: boolean) => ReactNode;
10
+ rowRef?: Ref<HTMLTableRowElement>;
10
11
  };
11
12
  declare const TExpandableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & {
12
13
  children: React.ReactElement<import("../index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("../index").TCellProps) => React.JSX.Element | null> | React.ReactElement<import("../index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("../index").TCellProps) => React.JSX.Element | null>[];
@@ -19,5 +20,6 @@ declare const TExpandableRow: React.ForwardRefExoticComponent<React.HTMLAttribut
19
20
  expanded?: boolean | undefined;
20
21
  onToggle?: ((expanded: boolean) => void) | undefined;
21
22
  renderContent: (expanded: boolean) => ReactNode;
23
+ rowRef?: React.Ref<HTMLTableRowElement> | undefined;
22
24
  } & React.RefAttributes<HTMLTableRowElement>>;
23
25
  export { TExpandableRowProps, TExpandableRow };
@@ -16,7 +16,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
16
16
 
17
17
  var TExpandableRow = React.forwardRef(function (_a, ref) {
18
18
  var _b, _c;
19
- var className = _a.className, selected = _a.selected, expanded = _a.expanded, _d = _a.defaultExpanded, defaultExpanded = _d === void 0 ? false : _d, _e = _a.onToggle, onToggle = _e === void 0 ? function () { return null; } : _e, _f = _a.renderContent, renderContent = _f === void 0 ? function () { return null; } : _f, restProps = tslib.__rest(_a, ["className", "selected", "expanded", "defaultExpanded", "onToggle", "renderContent"]);
19
+ var className = _a.className, selected = _a.selected, expanded = _a.expanded, _d = _a.defaultExpanded, defaultExpanded = _d === void 0 ? false : _d, _e = _a.onToggle, onToggle = _e === void 0 ? function () { return null; } : _e, _f = _a.renderContent, renderContent = _f === void 0 ? function () { return null; } : _f, rowRef = _a.rowRef, restProps = tslib.__rest(_a, ["className", "selected", "expanded", "defaultExpanded", "onToggle", "renderContent", "rowRef"]);
20
20
  var _g = React.useState(defaultExpanded), expandedState = _g[0], setExpandedState = _g[1];
21
21
  var uncontrolled = expanded === undefined;
22
22
  var isExpanded = (uncontrolled ? expandedState : expanded);
@@ -30,7 +30,7 @@ var TExpandableRow = React.forwardRef(function (_a, ref) {
30
30
  React__default.default.createElement(components_trow_Component.TRow, tslib.__assign({ className: cn__default.default(styles__default.default.row, className, (_b = {},
31
31
  _b[styles__default.default.selected] = selected,
32
32
  _b[styles__default.default.expanded] = isExpanded,
33
- _b)), selected: selected, onClick: handleToggle }, restProps)),
33
+ _b)), selected: selected, onClick: handleToggle, ref: rowRef }, restProps)),
34
34
  React__default.default.createElement("tr", { ref: ref, className: cn__default.default(styles__default.default.expandable, (_c = {}, _c[styles__default.default.expanded] = isExpanded, _c)) }, renderContent(isExpanded))));
35
35
  });
36
36
  TExpandableRow.displayName = 'TExpandableRow';
@@ -25,5 +25,26 @@ type TRowProps = HTMLAttributes<HTMLTableRowElement> & {
25
25
  */
26
26
  dataTestId?: string;
27
27
  };
28
- declare const TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: TRowProps) => React.JSX.Element;
28
+ declare const TRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & {
29
+ /**
30
+ * Компоненты ячеек
31
+ */
32
+ children: TCellElement | TCellElement[];
33
+ /**
34
+ * Дополнительный класс
35
+ */
36
+ className?: string | undefined;
37
+ /**
38
+ * Стиль выбранной строки
39
+ */
40
+ selected?: boolean | undefined;
41
+ /**
42
+ * Убирает нижнюю границу
43
+ */
44
+ withoutBorder?: boolean | undefined;
45
+ /**
46
+ * Идентификатор для систем автоматизированного тестирования
47
+ */
48
+ dataTestId?: string | undefined;
49
+ } & React.RefAttributes<HTMLTableRowElement>>;
29
50
  export { TRowProps, TRow };
@@ -13,14 +13,15 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
15
15
 
16
- var TRow = function (_a) {
16
+ var TRow = React.forwardRef(function (_a, ref) {
17
17
  var _b;
18
18
  var children = _a.children, className = _a.className, selected = _a.selected, withoutBorder = _a.withoutBorder, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["children", "className", "selected", "withoutBorder", "dataTestId"]);
19
19
  return (React__default.default.createElement("tr", tslib.__assign({ className: cn__default.default(styles__default.default.component, className, (_b = {},
20
20
  _b[styles__default.default.clickable] = typeof restProps.onClick !== 'undefined',
21
21
  _b[styles__default.default.selected] = selected,
22
22
  _b[styles__default.default.withoutBorder] = withoutBorder,
23
- _b)), "data-test-id": dataTestId }, restProps), React__default.default.Children.map(children, function (child, index) { return React__default.default.cloneElement(child, { index: index }); })));
24
- };
23
+ _b)), "data-test-id": dataTestId, ref: ref }, restProps), React__default.default.Children.map(children, function (child, index) { return React__default.default.cloneElement(child, { index: index }); })));
24
+ });
25
+ TRow.displayName = 'TRow';
25
26
 
26
27
  exports.TRow = TRow;
@@ -14,7 +14,13 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
14
14
  THeadCell: ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }: import("./components/index").THeadCellProps) => import("react").JSX.Element | null;
15
15
  TSortableHeadCell: ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }: import("./components/index").TSortableHeadCellProps) => import("react").JSX.Element;
16
16
  TCell: ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null;
17
- TRow: ({ children, className, selected, withoutBorder, dataTestId, ...restProps }: import("./components/index").TRowProps) => import("react").JSX.Element;
17
+ TRow: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableRowElement> & {
18
+ children: import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null> | import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null>[];
19
+ className?: string | undefined;
20
+ selected?: boolean | undefined;
21
+ withoutBorder?: boolean | undefined;
22
+ dataTestId?: string | undefined;
23
+ } & import("react").RefAttributes<HTMLTableRowElement>>;
18
24
  TExpandableRow: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLTableRowElement> & {
19
25
  children: import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null> | import("react").ReactElement<import("./components/index").TCellProps, ({ className, style, dataTestId, children, index, ...restProps }: import("./components/index").TCellProps) => import("react").JSX.Element | null>[];
20
26
  className?: string | undefined;
@@ -26,6 +32,7 @@ declare const Table: import("react").ForwardRefExoticComponent<import("react").T
26
32
  expanded?: boolean | undefined;
27
33
  onToggle?: ((expanded: boolean) => void) | undefined;
28
34
  renderContent: (expanded: boolean) => import("react").ReactNode;
35
+ rowRef?: import("react").Ref<HTMLTableRowElement> | undefined;
29
36
  } & import("react").RefAttributes<HTMLTableRowElement>>;
30
37
  Pagination: import("react").FC<import("./components/index").PaginationProps>;
31
38
  };
@@ -6,7 +6,7 @@ import { SelectDesktop } from '@alfalab/core-components-select/esm/desktop';
6
6
  import { TableContext } from '../table-context/index.js';
7
7
  import { CustomSelectField } from './select-field/index.js';
8
8
 
9
- var styles = {"component":"table__component_1ybyk","pagesWrapper":"table__pagesWrapper_1ybyk","tag":"table__tag_1ybyk","tagActive":"table__tagActive_1ybyk","pagination":"table__pagination_1ybyk","menu":"table__menu_1ybyk","option":"table__option_1ybyk"};
9
+ var styles = {"component":"table__component_iwbm1","pagesWrapper":"table__pagesWrapper_iwbm1","tag":"table__tag_iwbm1","tagActive":"table__tagActive_iwbm1","pagination":"table__pagination_iwbm1","menu":"table__menu_iwbm1","option":"table__option_iwbm1"};
10
10
  require('./index.css')
11
11
 
12
12
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1su95 */
1
+ /* hash: 8ykxz */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-400: #d2d3d9; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -30,7 +30,7 @@
30
30
  --gap-32: var(--gap-2xl);
31
31
  } :root {
32
32
  } :root {
33
- } /* сбрасывает синюю подсветку при нажатии */ .table__component_1ybyk {
33
+ } /* сбрасывает синюю подсветку при нажатии */ .table__component_iwbm1 {
34
34
  position: sticky;
35
35
  left: var(--gap-0);
36
36
  display: flex;
@@ -40,21 +40,21 @@
40
40
  padding: var(--gap-24) var(--gap-16) var(--gap-32);
41
41
  border-top: 1px solid var(--color-light-neutral-400);
42
42
  box-sizing: border-box;
43
- } .table__pagesWrapper_1ybyk {
43
+ } .table__pagesWrapper_iwbm1 {
44
44
  display: flex;
45
- } .table__tag_1ybyk.table__tag_1ybyk {
45
+ } .table__tag_iwbm1.table__tag_iwbm1 {
46
46
  flex-shrink: 0;
47
47
  margin-right: var(--gap-8);
48
48
  padding: var(--gap-0) var(--gap-8);
49
49
  min-width: 32px
50
- } .table__tag_1ybyk.table__tag_1ybyk:last-child {
50
+ } .table__tag_iwbm1.table__tag_iwbm1:last-child {
51
51
  margin-right: var(--gap-0);
52
- } .table__tag_1ybyk.table__tag_1ybyk.table__tagActive_1ybyk {
52
+ } .table__tag_iwbm1.table__tag_iwbm1.table__tagActive_iwbm1 {
53
53
  cursor: default;
54
- } .table__pagination_1ybyk {
54
+ } .table__pagination_iwbm1 {
55
55
  margin-left: auto;
56
- } .table__menu_1ybyk {
56
+ } .table__menu_iwbm1 {
57
57
  margin: var(--gap-4) var(--gap-0);
58
- } .table__option_1ybyk {
58
+ } .table__option_iwbm1 {
59
59
  min-width: 208px;
60
60
  }
@@ -1,4 +1,4 @@
1
- /* hash: tju3b */
1
+ /* hash: 18p9x */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-200-hover: rgba(15, 25, 55, 0.1); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -19,10 +19,10 @@
19
19
  /* новые значения, используйте их */
20
20
  } :root {
21
21
  } :root {
22
- } /* сбрасывает синюю подсветку при нажатии */ .table__field_1uq1q svg {
22
+ } /* сбрасывает синюю подсветку при нажатии */ .table__field_1ubk2 svg {
23
23
  width: 18px;
24
24
  height: 18px;
25
- } .table__open_1uq1q,
26
- .table__open_1uq1q:hover {
25
+ } .table__open_1ubk2,
26
+ .table__open_1ubk2:hover {
27
27
  background-color: var(--color-light-neutral-translucent-200-hover);
28
28
  }
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { Button } from '@alfalab/core-components-button/esm';
5
5
 
6
- var styles = {"field":"table__field_1uq1q","open":"table__open_1uq1q"};
6
+ var styles = {"field":"table__field_1ubk2","open":"table__open_1ubk2"};
7
7
  require('./index.css')
8
8
 
9
9
  var CustomSelectField = function (_a) {
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { TableContext } from '../table-context/index.js';
5
5
  import { findAllHeadCellsProps } from './utils.js';
6
6
 
7
- var styles = {"component":"table__component_1gqde","wrapper":"table__wrapper_1gqde","stickyHeader":"table__stickyHeader_1gqde","hasPagination":"table__hasPagination_1gqde","table":"table__table_1gqde"};
7
+ var styles = {"component":"table__component_1r5xg","wrapper":"table__wrapper_1r5xg","stickyHeader":"table__stickyHeader_1r5xg","hasPagination":"table__hasPagination_1r5xg","table":"table__table_1r5xg"};
8
8
  require('./index.css')
9
9
 
10
10
  var Table = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 1xalc */
1
+ /* hash: hpm00 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -25,24 +25,24 @@
25
25
  --gap-16: var(--gap-m);
26
26
  } :root {
27
27
  } :root {
28
- } /* сбрасывает синюю подсветку при нажатии */ .table__component_1gqde {
28
+ } /* сбрасывает синюю подсветку при нажатии */ .table__component_1r5xg {
29
29
  box-sizing: border-box;
30
- } .table__wrapper_1gqde {
30
+ } .table__wrapper_1r5xg {
31
31
  padding: var(--gap-0) var(--gap-16) var(--gap-16);
32
32
  background: var(--color-light-base-bg-primary);
33
33
  box-shadow: var(--shadow-xs-hard);
34
34
  border-radius: var(--border-radius-8);
35
35
  overflow: auto;
36
- } .table__stickyHeader_1gqde {
36
+ } .table__stickyHeader_1r5xg {
37
37
  max-height: 100%;
38
- } .table__hasPagination_1gqde {
38
+ } .table__hasPagination_1r5xg {
39
39
  padding-bottom: var(--gap-0);
40
- } .table__table_1gqde {
40
+ } .table__table_1r5xg {
41
41
  width: 100%;
42
42
  border-collapse: collapse;
43
43
  box-sizing: border-box
44
44
 
45
45
  /* TODO: Хак для выравнивания чекбокса */
46
- } .table__table_1gqde td:first-child label > *[class^='box'], .table__table_1gqde th:first-child label > *[class^='box'] {
46
+ } .table__table_1r5xg td:first-child label > *[class^='box'], .table__table_1r5xg th:first-child label > *[class^='box'] {
47
47
  margin-top: var(--gap-0);
48
48
  }
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
 
5
- var styles = {"component":"table__component_1ewtu"};
5
+ var styles = {"component":"table__component_miz72"};
6
6
  require('./index.css')
7
7
 
8
8
  var TBody = function (_a) {