@alfalab/core-components-table 2.3.5 → 2.3.7

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 (85) hide show
  1. package/{modern/component-2abb571d.d.ts → component-1a4fbd11.d.ts} +1 -1
  2. package/components/pagination/Component.js +1 -1
  3. package/components/pagination/index.css +8 -8
  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.js +1 -1
  13. package/components/texpandable-row/index.css +5 -5
  14. package/components/thead/Component.js +1 -1
  15. package/components/thead/index.css +6 -6
  16. package/components/thead-cell/Component.js +1 -1
  17. package/components/thead-cell/index.css +9 -9
  18. package/components/trow/Component.js +1 -1
  19. package/components/trow/index.css +8 -8
  20. package/components/tsortable-head-cell/Component.js +1 -1
  21. package/components/tsortable-head-cell/index.css +8 -8
  22. package/{component-2abb571d.d.ts → cssm/component-1a4fbd11.d.ts} +1 -1
  23. package/cssm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  24. package/cssm/index-c76d6398.d.ts +1 -1
  25. package/cssm/index-f12ee135.d.ts +2 -2
  26. package/cssm/{types-92653002.d.ts → types-b0ff398d.d.ts} +5 -0
  27. package/esm/{component-2abb571d.d.ts → component-1a4fbd11.d.ts} +1 -1
  28. package/esm/components/pagination/Component.js +1 -1
  29. package/esm/components/pagination/index.css +8 -8
  30. package/esm/components/pagination/select-field/index.css +4 -4
  31. package/esm/components/pagination/select-field/index.js +1 -1
  32. package/esm/components/table/Component.js +1 -1
  33. package/esm/components/table/index.css +7 -7
  34. package/esm/components/tbody/Component.js +1 -1
  35. package/esm/components/tbody/index.css +2 -2
  36. package/esm/components/tcell/Component.js +1 -1
  37. package/esm/components/tcell/index.css +6 -6
  38. package/esm/components/texpandable-row/Component.js +1 -1
  39. package/esm/components/texpandable-row/index.css +5 -5
  40. package/esm/components/thead/Component.js +1 -1
  41. package/esm/components/thead/index.css +6 -6
  42. package/esm/components/thead-cell/Component.js +1 -1
  43. package/esm/components/thead-cell/index.css +9 -9
  44. package/esm/components/trow/Component.js +1 -1
  45. package/esm/components/trow/index.css +8 -8
  46. package/esm/components/tsortable-head-cell/Component.js +1 -1
  47. package/esm/components/tsortable-head-cell/index.css +8 -8
  48. package/esm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  49. package/esm/index-c76d6398.d.ts +1 -1
  50. package/esm/index-f12ee135.d.ts +2 -2
  51. package/esm/{types-92653002.d.ts → types-b0ff398d.d.ts} +5 -0
  52. package/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  53. package/index-c76d6398.d.ts +1 -1
  54. package/index-f12ee135.d.ts +2 -2
  55. package/{cssm/component-2abb571d.d.ts → modern/component-1a4fbd11.d.ts} +1 -1
  56. package/modern/components/pagination/Component.js +1 -1
  57. package/modern/components/pagination/index.css +8 -8
  58. package/modern/components/pagination/select-field/index.css +4 -4
  59. package/modern/components/pagination/select-field/index.js +1 -1
  60. package/modern/components/table/Component.js +1 -1
  61. package/modern/components/table/index.css +7 -7
  62. package/modern/components/tbody/Component.js +1 -1
  63. package/modern/components/tbody/index.css +2 -2
  64. package/modern/components/tcell/Component.js +1 -1
  65. package/modern/components/tcell/index.css +6 -6
  66. package/modern/components/texpandable-row/Component.js +1 -1
  67. package/modern/components/texpandable-row/index.css +5 -5
  68. package/modern/components/thead/Component.js +1 -1
  69. package/modern/components/thead/index.css +6 -6
  70. package/modern/components/thead-cell/Component.js +1 -1
  71. package/modern/components/thead-cell/index.css +9 -9
  72. package/modern/components/trow/Component.js +1 -1
  73. package/modern/components/trow/index.css +8 -8
  74. package/modern/components/tsortable-head-cell/Component.js +1 -1
  75. package/modern/components/tsortable-head-cell/index.css +8 -8
  76. package/modern/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  77. package/modern/index-c76d6398.d.ts +1 -1
  78. package/modern/index-f12ee135.d.ts +2 -2
  79. package/modern/{types-92653002.d.ts → types-b0ff398d.d.ts} +5 -0
  80. package/package.json +3 -3
  81. package/{types-92653002.d.ts → types-b0ff398d.d.ts} +5 -0
  82. /package/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  83. /package/cssm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  84. /package/esm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  85. /package/modern/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TRow } from '../trow/Component.js';
4
4
 
5
- const styles = {"row":"table__row_1fqx6","selected":"table__selected_1fqx6","expanded":"table__expanded_1fqx6","expandable":"table__expandable_1fqx6"};
5
+ const styles = {"row":"table__row_5t844","selected":"table__selected_5t844","expanded":"table__expanded_5t844","expandable":"table__expandable_5t844"};
6
6
  require('./index.css')
7
7
 
8
8
  const TExpandableRow = ({ className, selected, expanded, defaultExpanded = false, onToggle = () => null, renderContent = () => null, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1u4d4 */
1
+ /* hash: 10yh8 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -14,13 +14,13 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .table__row_1fqx6 {
17
+ } .table__row_5t844 {
18
18
  cursor: pointer;
19
- } .table__selected_1fqx6.table__expanded_1fqx6 {
19
+ } .table__selected_5t844.table__expanded_5t844 {
20
20
  background-color: inherit;
21
- } .table__expanded_1fqx6:hover {
21
+ } .table__expanded_5t844:hover {
22
22
  background-color: inherit;
23
- } .table__expandable_1fqx6 td {
23
+ } .table__expandable_5t844 td {
24
24
  margin: 0;
25
25
  padding-top: 0;
26
26
  padding-bottom: 0;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_1f6fc","row":"table__row_1f6fc"};
4
+ const styles = {"component":"table__component_1yhu6","row":"table__row_1yhu6"};
5
5
  require('./index.css')
6
6
 
7
7
  const THead = ({ className, rowClassName, children, dataTestId, ...restProps }) => (React.createElement("thead", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps },
@@ -1,4 +1,4 @@
1
- /* hash: 1xyqf */
1
+ /* hash: s3i8v */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-quaternary: #dcdcdd; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,11 +16,11 @@
16
16
  --gap-xs: 8px;
17
17
  } :root {
18
18
  } :root {
19
- } .table__component_1f6fc {
19
+ } .table__component_1yhu6 {
20
20
  position: relative;
21
21
  width: 100%;
22
22
  box-sizing: border-box
23
- } .table__component_1f6fc th:not(:last-child):not(:empty):after {
23
+ } .table__component_1yhu6 th:not(:last-child):not(:empty):after {
24
24
  transition: opacity 0.2s;
25
25
  position: absolute;
26
26
  content: '';
@@ -31,10 +31,10 @@
31
31
  top: var(--gap-xs);
32
32
  bottom: var(--gap-xs);
33
33
  background-color: var(--color-light-graphic-quaternary);
34
- } .table__component_1f6fc th:after {
34
+ } .table__component_1yhu6 th:after {
35
35
  opacity: 0;
36
- } .table__component_1f6fc:hover th:after {
36
+ } .table__component_1yhu6:hover th:after {
37
37
  opacity: 1;
38
- } .table__row_1f6fc {
38
+ } .table__row_1yhu6 {
39
39
  height: 72px;
40
40
  }
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TableContext } from '../table-context/index.js';
4
4
 
5
- const styles = {"component":"table__component_aetr9","stickyHeader":"table__stickyHeader_aetr9","sortable":"table__sortable_aetr9","sorted":"table__sorted_aetr9","compactHorizontal":"table__compactHorizontal_aetr9"};
5
+ const styles = {"component":"table__component_15gl4","stickyHeader":"table__stickyHeader_15gl4","sortable":"table__sortable_15gl4","sorted":"table__sorted_15gl4","compactHorizontal":"table__compactHorizontal_15gl4"};
6
6
  require('./index.css')
7
7
 
8
8
  const THeadCell = ({ children, className, dataTestId, style, width, textAlign, hidden, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1sgrt */
1
+ /* hash: evp0y */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -21,7 +21,7 @@
21
21
  --gap-2xl: 32px;
22
22
  } :root {
23
23
  } :root {
24
- } .table__component_aetr9 {
24
+ } .table__component_15gl4 {
25
25
  font-size: 12px;
26
26
  line-height: 16px;
27
27
  font-weight: 500;
@@ -36,23 +36,23 @@
36
36
  background: var(--color-light-bg-primary);
37
37
  vertical-align: top;
38
38
  box-sizing: border-box
39
- } .table__component_aetr9:first-child {
39
+ } .table__component_15gl4:first-child {
40
40
  padding-left: var(--gap-m);
41
- } .table__component_aetr9:last-child {
41
+ } .table__component_15gl4:last-child {
42
42
  padding-right: var(--gap-m);
43
- } .table__component_aetr9:not(.table__stickyHeader_aetr9) {
43
+ } .table__component_15gl4:not(.table__stickyHeader_15gl4) {
44
44
  position: relative;
45
- } .table__sortable_aetr9 {
45
+ } .table__sortable_15gl4 {
46
46
  cursor: pointer;
47
- } .table__sorted_aetr9 {
47
+ } .table__sorted_15gl4 {
48
48
  color: var(--color-light-text-primary);
49
- } .table__stickyHeader_aetr9 {
49
+ } .table__stickyHeader_15gl4 {
50
50
  top: 0;
51
51
  position: sticky;
52
52
  box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
53
53
  border: none;
54
54
  z-index: 1;
55
- } .table__compactHorizontal_aetr9 {
55
+ } .table__compactHorizontal_15gl4 {
56
56
  padding-left: 6px;
57
57
  padding-right: 6px;
58
58
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_1koy6","withoutBorder":"table__withoutBorder_1koy6","clickable":"table__clickable_1koy6","selected":"table__selected_1koy6"};
4
+ const styles = {"component":"table__component_ar94f","withoutBorder":"table__withoutBorder_ar94f","clickable":"table__clickable_ar94f","selected":"table__selected_ar94f"};
5
5
  require('./index.css')
6
6
 
7
7
  const TRow = ({ children, className, selected, withoutBorder, dataTestId, ...restProps }) => (React.createElement("tr", { className: cn(styles.component, className, {
@@ -1,4 +1,4 @@
1
- /* hash: 1hjcw */
1
+ /* hash: 1ol01 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -17,22 +17,22 @@
17
17
  } :root {
18
18
  } :root {
19
19
  } :root {
20
- } .table__component_1koy6 {
20
+ } .table__component_ar94f {
21
21
  padding-top: 1px;
22
22
  width: 100%;
23
23
  transition: background-color 0.2s;
24
24
  box-sizing: border-box;
25
25
  background: var(--color-light-bg-primary)
26
- } .table__component_1koy6:first-child td {
26
+ } .table__component_ar94f:first-child td {
27
27
  border-top: 0;
28
- } .table__withoutBorder_1koy6 td {
28
+ } .table__withoutBorder_ar94f td {
29
29
  border: none;
30
- } .table__clickable_1koy6 {
30
+ } .table__clickable_ar94f {
31
31
  cursor: pointer
32
- } .table__clickable_1koy6:hover {
32
+ } .table__clickable_ar94f:hover {
33
33
  background-color: var(--color-light-bg-secondary);
34
- } .table__selected_1koy6 {
34
+ } .table__selected_ar94f {
35
35
  background-color: #f2f8ff /* нет цвета в палитре */
36
- } .table__selected_1koy6:hover {
36
+ } .table__selected_ar94f:hover {
37
37
  background-color: var(--color-static-graphic-solitude);
38
38
  }
@@ -6,7 +6,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
6
6
  import { SortIconUnset } from './sort-icon-unset.js';
7
7
  import '../table-context/index.js';
8
8
 
9
- const styles = {"content":"table__content_1guvo","icon":"table__icon_1guvo","reverse":"table__reverse_1guvo","sorted":"table__sorted_1guvo"};
9
+ const styles = {"content":"table__content_xjgv2","icon":"table__icon_xjgv2","reverse":"table__reverse_xjgv2","sorted":"table__sorted_xjgv2"};
10
10
  require('./index.css')
11
11
 
12
12
  const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1gecy */
1
+ /* hash: n8h3j */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-link: #0072ef;
@@ -18,10 +18,10 @@
18
18
  --gap-xs: 8px;
19
19
  } :root {
20
20
  } :root {
21
- } .table__content_1guvo {
21
+ } .table__content_xjgv2 {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
- } .table__icon_1guvo {
24
+ } .table__icon_xjgv2 {
25
25
  cursor: pointer;
26
26
  margin-left: var(--gap-xs);
27
27
 
@@ -33,15 +33,15 @@
33
33
  color: var(--color-light-graphic-secondary);
34
34
  transition: color 0.2s ease;
35
35
  flex-shrink: 0
36
- } .table__icon_1guvo:hover {
36
+ } .table__icon_xjgv2:hover {
37
37
  color: var(--color-light-graphic-primary);
38
- } .table__reverse_1guvo {
38
+ } .table__reverse_xjgv2 {
39
39
  flex-direction: row-reverse
40
- } .table__reverse_1guvo .table__icon_1guvo {
40
+ } .table__reverse_xjgv2 .table__icon_xjgv2 {
41
41
  margin-left: 0;
42
42
  margin-right: var(--gap-xs);
43
- } .table__sorted_1guvo {
43
+ } .table__sorted_xjgv2 {
44
44
  color: var(--color-light-graphic-link)
45
- } .table__sorted_1guvo:hover {
45
+ } .table__sorted_xjgv2:hover {
46
46
  color: var(--color-light-graphic-link);
47
47
  }
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
12
12
  declare const inputUtils: {
13
13
  disableUserInput: typeof disableUserInput;
14
14
  };
15
- export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils };
15
+ /**
16
+ * Возвращает true, если значение равно null или undefined
17
+ */
18
+ declare function isNil(value: unknown): boolean;
19
+ declare const fnUtils: {
20
+ isNil: typeof isNil;
21
+ };
22
+ export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils, fnUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-2abb571d";
1
+ export * from "./Component-1a4fbd11";
2
2
  export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-2abb571d";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-92653002";
1
+ export * from "./component-1a4fbd11";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-b0ff398d";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,9 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается для событий touchend and mouseup.
269
+ */
270
+ onTouchEnd?: (event: HandledEvents) => void;
266
271
  };
267
272
  export { BottomSheetTitleAlign, BottomSheetProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-table",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,9 +15,9 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-button": "^9.0.3",
18
+ "@alfalab/core-components-button": "^9.0.4",
19
19
  "@alfalab/core-components-pagination": "^2.1.2",
20
- "@alfalab/core-components-select": "^15.1.0",
20
+ "@alfalab/core-components-select": "^15.1.2",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"
23
23
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,9 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается для событий touchend and mouseup.
269
+ */
270
+ onTouchEnd?: (event: HandledEvents) => void;
266
271
  };
267
272
  export { BottomSheetTitleAlign, BottomSheetProps };