@alfalab/core-components-table 2.3.7 → 2.3.8

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 (73) hide show
  1. package/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/cssm/component-1a4fbd11.d.ts +1 -1
  23. package/cssm/index-f12ee135.d.ts +1 -1
  24. package/cssm/{types-b0ff398d.d.ts → types-e40becc7.d.ts} +6 -2
  25. package/esm/component-1a4fbd11.d.ts +1 -1
  26. package/esm/components/pagination/Component.js +1 -1
  27. package/esm/components/pagination/index.css +8 -8
  28. package/esm/components/pagination/select-field/index.css +4 -4
  29. package/esm/components/pagination/select-field/index.js +1 -1
  30. package/esm/components/table/Component.js +1 -1
  31. package/esm/components/table/index.css +7 -7
  32. package/esm/components/tbody/Component.js +1 -1
  33. package/esm/components/tbody/index.css +2 -2
  34. package/esm/components/tcell/Component.js +1 -1
  35. package/esm/components/tcell/index.css +6 -6
  36. package/esm/components/texpandable-row/Component.js +1 -1
  37. package/esm/components/texpandable-row/index.css +5 -5
  38. package/esm/components/thead/Component.js +1 -1
  39. package/esm/components/thead/index.css +6 -6
  40. package/esm/components/thead-cell/Component.js +1 -1
  41. package/esm/components/thead-cell/index.css +9 -9
  42. package/esm/components/trow/Component.js +1 -1
  43. package/esm/components/trow/index.css +8 -8
  44. package/esm/components/tsortable-head-cell/Component.js +1 -1
  45. package/esm/components/tsortable-head-cell/index.css +8 -8
  46. package/esm/index-f12ee135.d.ts +1 -1
  47. package/esm/{types-b0ff398d.d.ts → types-e40becc7.d.ts} +6 -2
  48. package/index-f12ee135.d.ts +1 -1
  49. package/modern/component-1a4fbd11.d.ts +1 -1
  50. package/modern/components/pagination/Component.js +1 -1
  51. package/modern/components/pagination/index.css +8 -8
  52. package/modern/components/pagination/select-field/index.css +4 -4
  53. package/modern/components/pagination/select-field/index.js +1 -1
  54. package/modern/components/table/Component.js +1 -1
  55. package/modern/components/table/index.css +7 -7
  56. package/modern/components/tbody/Component.js +1 -1
  57. package/modern/components/tbody/index.css +2 -2
  58. package/modern/components/tcell/Component.js +1 -1
  59. package/modern/components/tcell/index.css +6 -6
  60. package/modern/components/texpandable-row/Component.js +1 -1
  61. package/modern/components/texpandable-row/index.css +5 -5
  62. package/modern/components/thead/Component.js +1 -1
  63. package/modern/components/thead/index.css +6 -6
  64. package/modern/components/thead-cell/Component.js +1 -1
  65. package/modern/components/thead-cell/index.css +9 -9
  66. package/modern/components/trow/Component.js +1 -1
  67. package/modern/components/trow/index.css +8 -8
  68. package/modern/components/tsortable-head-cell/Component.js +1 -1
  69. package/modern/components/tsortable-head-cell/index.css +8 -8
  70. package/modern/index-f12ee135.d.ts +1 -1
  71. package/modern/{types-b0ff398d.d.ts → types-e40becc7.d.ts} +6 -2
  72. package/package.json +2 -2
  73. package/{types-b0ff398d.d.ts → types-e40becc7.d.ts} +6 -2
@@ -1,4 +1,4 @@
1
- /* hash: s3i8v */
1
+ /* hash: fc4ib */
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_1yhu6 {
19
+ } .table__component_1k8nz {
20
20
  position: relative;
21
21
  width: 100%;
22
22
  box-sizing: border-box
23
- } .table__component_1yhu6 th:not(:last-child):not(:empty):after {
23
+ } .table__component_1k8nz 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_1yhu6 th:after {
34
+ } .table__component_1k8nz th:after {
35
35
  opacity: 0;
36
- } .table__component_1yhu6:hover th:after {
36
+ } .table__component_1k8nz:hover th:after {
37
37
  opacity: 1;
38
- } .table__row_1yhu6 {
38
+ } .table__row_1k8nz {
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_15gl4","stickyHeader":"table__stickyHeader_15gl4","sortable":"table__sortable_15gl4","sorted":"table__sorted_15gl4","compactHorizontal":"table__compactHorizontal_15gl4"};
5
+ const styles = {"component":"table__component_185oq","stickyHeader":"table__stickyHeader_185oq","sortable":"table__sortable_185oq","sorted":"table__sorted_185oq","compactHorizontal":"table__compactHorizontal_185oq"};
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: evp0y */
1
+ /* hash: 1ggrd */
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_15gl4 {
24
+ } .table__component_185oq {
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_15gl4:first-child {
39
+ } .table__component_185oq:first-child {
40
40
  padding-left: var(--gap-m);
41
- } .table__component_15gl4:last-child {
41
+ } .table__component_185oq:last-child {
42
42
  padding-right: var(--gap-m);
43
- } .table__component_15gl4:not(.table__stickyHeader_15gl4) {
43
+ } .table__component_185oq:not(.table__stickyHeader_185oq) {
44
44
  position: relative;
45
- } .table__sortable_15gl4 {
45
+ } .table__sortable_185oq {
46
46
  cursor: pointer;
47
- } .table__sorted_15gl4 {
47
+ } .table__sorted_185oq {
48
48
  color: var(--color-light-text-primary);
49
- } .table__stickyHeader_15gl4 {
49
+ } .table__stickyHeader_185oq {
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_15gl4 {
55
+ } .table__compactHorizontal_185oq {
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_ar94f","withoutBorder":"table__withoutBorder_ar94f","clickable":"table__clickable_ar94f","selected":"table__selected_ar94f"};
4
+ const styles = {"component":"table__component_1j3vs","withoutBorder":"table__withoutBorder_1j3vs","clickable":"table__clickable_1j3vs","selected":"table__selected_1j3vs"};
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: 1ol01 */
1
+ /* hash: 15v9x */
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_ar94f {
20
+ } .table__component_1j3vs {
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_ar94f:first-child td {
26
+ } .table__component_1j3vs:first-child td {
27
27
  border-top: 0;
28
- } .table__withoutBorder_ar94f td {
28
+ } .table__withoutBorder_1j3vs td {
29
29
  border: none;
30
- } .table__clickable_ar94f {
30
+ } .table__clickable_1j3vs {
31
31
  cursor: pointer
32
- } .table__clickable_ar94f:hover {
32
+ } .table__clickable_1j3vs:hover {
33
33
  background-color: var(--color-light-bg-secondary);
34
- } .table__selected_ar94f {
34
+ } .table__selected_1j3vs {
35
35
  background-color: #f2f8ff /* нет цвета в палитре */
36
- } .table__selected_ar94f:hover {
36
+ } .table__selected_1j3vs: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_xjgv2","icon":"table__icon_xjgv2","reverse":"table__reverse_xjgv2","sorted":"table__sorted_xjgv2"};
9
+ const styles = {"content":"table__content_90p68","icon":"table__icon_90p68","reverse":"table__reverse_90p68","sorted":"table__sorted_90p68"};
10
10
  require('./index.css')
11
11
 
12
12
  const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: n8h3j */
1
+ /* hash: ah3d0 */
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_xjgv2 {
21
+ } .table__content_90p68 {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
- } .table__icon_xjgv2 {
24
+ } .table__icon_90p68 {
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_xjgv2:hover {
36
+ } .table__icon_90p68:hover {
37
37
  color: var(--color-light-graphic-primary);
38
- } .table__reverse_xjgv2 {
38
+ } .table__reverse_90p68 {
39
39
  flex-direction: row-reverse
40
- } .table__reverse_xjgv2 .table__icon_xjgv2 {
40
+ } .table__reverse_90p68 .table__icon_90p68 {
41
41
  margin-left: 0;
42
42
  margin-right: var(--gap-xs);
43
- } .table__sorted_xjgv2 {
43
+ } .table__sorted_90p68 {
44
44
  color: var(--color-light-graphic-link)
45
- } .table__sorted_xjgv2:hover {
45
+ } .table__sorted_90p68:hover {
46
46
  color: var(--color-light-graphic-link);
47
47
  }
@@ -1,3 +1,3 @@
1
1
  export * from "./component-1a4fbd11";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-b0ff398d";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -265,8 +265,12 @@ type BottomSheetProps = {
265
265
  */
266
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
267
  /**
268
- * Вызывается для событий touchend and mouseup.
268
+ * Вызывается в начале свайпа
269
269
  */
270
- onTouchEnd?: (event: HandledEvents) => void;
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
271
275
  };
272
276
  export { BottomSheetTitleAlign, BottomSheetProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-table",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@alfalab/core-components-button": "^9.0.4",
19
19
  "@alfalab/core-components-pagination": "^2.1.2",
20
- "@alfalab/core-components-select": "^15.1.2",
20
+ "@alfalab/core-components-select": "^15.1.3",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"
23
23
  }
@@ -265,8 +265,12 @@ type BottomSheetProps = {
265
265
  */
266
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
267
  /**
268
- * Вызывается для событий touchend and mouseup.
268
+ * Вызывается в начале свайпа
269
269
  */
270
- onTouchEnd?: (event: HandledEvents) => void;
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
271
275
  };
272
276
  export { BottomSheetTitleAlign, BottomSheetProps };