@alfalab/core-components-table 2.3.2 → 2.3.4

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 (77) hide show
  1. package/Component-63dec22f.d.ts +18 -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-63dec22f.d.ts +18 -1
  23. package/cssm/types-1b036d4b.d.ts +13 -0
  24. package/cssm/types-72dda473.d.ts +9 -1
  25. package/cssm/useSkeleton-ebda875c.d.ts +12 -0
  26. package/esm/Component-63dec22f.d.ts +18 -1
  27. package/esm/components/pagination/Component.js +1 -1
  28. package/esm/components/pagination/index.css +8 -8
  29. package/esm/components/pagination/select-field/index.css +4 -4
  30. package/esm/components/pagination/select-field/index.js +1 -1
  31. package/esm/components/table/Component.js +1 -1
  32. package/esm/components/table/index.css +7 -7
  33. package/esm/components/tbody/Component.js +1 -1
  34. package/esm/components/tbody/index.css +2 -2
  35. package/esm/components/tcell/Component.js +1 -1
  36. package/esm/components/tcell/index.css +6 -6
  37. package/esm/components/texpandable-row/Component.js +1 -1
  38. package/esm/components/texpandable-row/index.css +5 -5
  39. package/esm/components/thead/Component.js +1 -1
  40. package/esm/components/thead/index.css +6 -6
  41. package/esm/components/thead-cell/Component.js +1 -1
  42. package/esm/components/thead-cell/index.css +9 -9
  43. package/esm/components/trow/Component.js +1 -1
  44. package/esm/components/trow/index.css +8 -8
  45. package/esm/components/tsortable-head-cell/Component.js +1 -1
  46. package/esm/components/tsortable-head-cell/index.css +8 -8
  47. package/esm/types-1b036d4b.d.ts +13 -0
  48. package/esm/types-72dda473.d.ts +9 -1
  49. package/esm/useSkeleton-ebda875c.d.ts +12 -0
  50. package/modern/Component-63dec22f.d.ts +18 -1
  51. package/modern/components/pagination/Component.js +1 -1
  52. package/modern/components/pagination/index.css +8 -8
  53. package/modern/components/pagination/select-field/index.css +4 -4
  54. package/modern/components/pagination/select-field/index.js +1 -1
  55. package/modern/components/table/Component.js +1 -1
  56. package/modern/components/table/index.css +7 -7
  57. package/modern/components/tbody/Component.js +1 -1
  58. package/modern/components/tbody/index.css +2 -2
  59. package/modern/components/tcell/Component.js +1 -1
  60. package/modern/components/tcell/index.css +6 -6
  61. package/modern/components/texpandable-row/Component.js +1 -1
  62. package/modern/components/texpandable-row/index.css +5 -5
  63. package/modern/components/thead/Component.js +1 -1
  64. package/modern/components/thead/index.css +6 -6
  65. package/modern/components/thead-cell/Component.js +1 -1
  66. package/modern/components/thead-cell/index.css +9 -9
  67. package/modern/components/trow/Component.js +1 -1
  68. package/modern/components/trow/index.css +8 -8
  69. package/modern/components/tsortable-head-cell/Component.js +1 -1
  70. package/modern/components/tsortable-head-cell/index.css +8 -8
  71. package/modern/types-1b036d4b.d.ts +13 -0
  72. package/modern/types-72dda473.d.ts +9 -1
  73. package/modern/useSkeleton-ebda875c.d.ts +12 -0
  74. package/package.json +3 -3
  75. package/types-1b036d4b.d.ts +13 -0
  76. package/types-72dda473.d.ts +9 -1
  77. package/useSkeleton-ebda875c.d.ts +12 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1cn58 */
1
+ /* hash: jh9do */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-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 */
@@ -18,24 +18,24 @@
18
18
  --gap-m: 16px;
19
19
  } :root {
20
20
  } :root {
21
- } .table__component_12t87 {
21
+ } .table__component_usucm {
22
22
  box-sizing: border-box;
23
- } .table__wrapper_12t87 {
23
+ } .table__wrapper_usucm {
24
24
  padding: 0 var(--gap-m) var(--gap-m);
25
25
  background: var(--color-light-bg-primary);
26
26
  box-shadow: var(--shadow-xs-hard);
27
27
  border-radius: var(--border-radius-m);
28
28
  overflow: auto;
29
- } .table__stickyHeader_12t87 {
29
+ } .table__stickyHeader_usucm {
30
30
  max-height: 100%;
31
- } .table__hasPagination_12t87 {
31
+ } .table__hasPagination_usucm {
32
32
  padding-bottom: 0;
33
- } .table__table_12t87 {
33
+ } .table__table_usucm {
34
34
  width: 100%;
35
35
  border-collapse: collapse;
36
36
  box-sizing: border-box
37
37
 
38
38
  /* TODO: Хак для выравнивания чекбокса */
39
- } .table__table_12t87 td:first-child label > *[class^='box'], .table__table_12t87 th:first-child label > *[class^='box'] {
39
+ } .table__table_usucm td:first-child label > *[class^='box'], .table__table_usucm th:first-child label > *[class^='box'] {
40
40
  margin-top: 0;
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"table__component_s8327"};
4
+ const styles = {"component":"table__component_18dnb"};
5
5
  require('./index.css')
6
6
 
7
7
  const TBody = ({ className, children, dataTestId, ...restProps }) => (React.createElement("tbody", { className: cn(styles.component, className), "data-test-id": dataTestId, ...restProps }, children));
@@ -1,4 +1,4 @@
1
- /* hash: 166v9 */
1
+ /* hash: 6d86n */
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,7 +14,7 @@
14
14
  } :root {
15
15
  } :root {
16
16
  } :root {
17
- } .table__component_s8327 {
17
+ } .table__component_18dnb {
18
18
  width: 100%;
19
19
  box-sizing: border-box;
20
20
  }
@@ -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_xf1ax","compactHorizontal":"table__compactHorizontal_xf1ax","compact":"table__compact_xf1ax"};
5
+ const styles = {"component":"table__component_pengd","compactHorizontal":"table__compactHorizontal_pengd","compact":"table__compact_pengd"};
6
6
  require('./index.css')
7
7
 
8
8
  const TCell = ({ className, style, dataTestId, children, index, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 13pl1 */
1
+ /* hash: 1ar86 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dcdcdd;
@@ -20,7 +20,7 @@
20
20
  --gap-xl: 24px;
21
21
  } :root {
22
22
  } :root {
23
- } .table__component_xf1ax {
23
+ } .table__component_pengd {
24
24
  font-size: 14px;
25
25
  line-height: 20px;
26
26
  font-weight: 400;
@@ -31,14 +31,14 @@
31
31
  border-top: 1px solid var(--color-light-border-primary);
32
32
  vertical-align: top;
33
33
  box-sizing: border-box
34
- } .table__component_xf1ax:first-child {
34
+ } .table__component_pengd:first-child {
35
35
  padding-left: var(--gap-m);
36
- } .table__component_xf1ax:last-child {
36
+ } .table__component_pengd:last-child {
37
37
  padding-right: var(--gap-m);
38
- } .table__compactHorizontal_xf1ax {
38
+ } .table__compactHorizontal_pengd {
39
39
  padding-left: 6px;
40
40
  padding-right: 6px;
41
- } .table__compact_xf1ax {
41
+ } .table__compact_pengd {
42
42
  padding-top: var(--gap-xs);
43
43
  padding-bottom: var(--gap-xs);
44
44
 
@@ -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_5cvgt","selected":"table__selected_5cvgt","expanded":"table__expanded_5cvgt","expandable":"table__expandable_5cvgt"};
5
+ const styles = {"row":"table__row_dd9bd","selected":"table__selected_dd9bd","expanded":"table__expanded_dd9bd","expandable":"table__expandable_dd9bd"};
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: t373s */
1
+ /* hash: 1yyfa */
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_5cvgt {
17
+ } .table__row_dd9bd {
18
18
  cursor: pointer;
19
- } .table__selected_5cvgt.table__expanded_5cvgt {
19
+ } .table__selected_dd9bd.table__expanded_dd9bd {
20
20
  background-color: inherit;
21
- } .table__expanded_5cvgt:hover {
21
+ } .table__expanded_dd9bd:hover {
22
22
  background-color: inherit;
23
- } .table__expandable_5cvgt td {
23
+ } .table__expandable_dd9bd 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_1y1hi","row":"table__row_1y1hi"};
4
+ const styles = {"component":"table__component_1q13o","row":"table__row_1q13o"};
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: 7esya */
1
+ /* hash: 10kot */
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_1y1hi {
19
+ } .table__component_1q13o {
20
20
  position: relative;
21
21
  width: 100%;
22
22
  box-sizing: border-box
23
- } .table__component_1y1hi th:not(:last-child):not(:empty):after {
23
+ } .table__component_1q13o 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_1y1hi th:after {
34
+ } .table__component_1q13o th:after {
35
35
  opacity: 0;
36
- } .table__component_1y1hi:hover th:after {
36
+ } .table__component_1q13o:hover th:after {
37
37
  opacity: 1;
38
- } .table__row_1y1hi {
38
+ } .table__row_1q13o {
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_1508g","stickyHeader":"table__stickyHeader_1508g","sortable":"table__sortable_1508g","sorted":"table__sorted_1508g","compactHorizontal":"table__compactHorizontal_1508g"};
5
+ const styles = {"component":"table__component_ouo75","stickyHeader":"table__stickyHeader_ouo75","sortable":"table__sortable_ouo75","sorted":"table__sorted_ouo75","compactHorizontal":"table__compactHorizontal_ouo75"};
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: 11vol */
1
+ /* hash: 2o7mm */
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_1508g {
24
+ } .table__component_ouo75 {
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_1508g:first-child {
39
+ } .table__component_ouo75:first-child {
40
40
  padding-left: var(--gap-m);
41
- } .table__component_1508g:last-child {
41
+ } .table__component_ouo75:last-child {
42
42
  padding-right: var(--gap-m);
43
- } .table__component_1508g:not(.table__stickyHeader_1508g) {
43
+ } .table__component_ouo75:not(.table__stickyHeader_ouo75) {
44
44
  position: relative;
45
- } .table__sortable_1508g {
45
+ } .table__sortable_ouo75 {
46
46
  cursor: pointer;
47
- } .table__sorted_1508g {
47
+ } .table__sorted_ouo75 {
48
48
  color: var(--color-light-text-primary);
49
- } .table__stickyHeader_1508g {
49
+ } .table__stickyHeader_ouo75 {
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_1508g {
55
+ } .table__compactHorizontal_ouo75 {
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_aawh3","withoutBorder":"table__withoutBorder_aawh3","clickable":"table__clickable_aawh3","selected":"table__selected_aawh3"};
4
+ const styles = {"component":"table__component_2aimj","withoutBorder":"table__withoutBorder_2aimj","clickable":"table__clickable_2aimj","selected":"table__selected_2aimj"};
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: 1k273 */
1
+ /* hash: 1r3u8 */
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_aawh3 {
20
+ } .table__component_2aimj {
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_aawh3:first-child td {
26
+ } .table__component_2aimj:first-child td {
27
27
  border-top: 0;
28
- } .table__withoutBorder_aawh3 td {
28
+ } .table__withoutBorder_2aimj td {
29
29
  border: none;
30
- } .table__clickable_aawh3 {
30
+ } .table__clickable_2aimj {
31
31
  cursor: pointer
32
- } .table__clickable_aawh3:hover {
32
+ } .table__clickable_2aimj:hover {
33
33
  background-color: var(--color-light-bg-secondary);
34
- } .table__selected_aawh3 {
34
+ } .table__selected_2aimj {
35
35
  background-color: #f2f8ff /* нет цвета в палитре */
36
- } .table__selected_aawh3:hover {
36
+ } .table__selected_2aimj: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_xztid","icon":"table__icon_xztid","reverse":"table__reverse_xztid","sorted":"table__sorted_xztid"};
9
+ const styles = {"content":"table__content_pzfnt","icon":"table__icon_pzfnt","reverse":"table__reverse_pzfnt","sorted":"table__sorted_pzfnt"};
10
10
  require('./index.css')
11
11
 
12
12
  const TSortableHeadCell = ({ children, className, defaultIsSortedDesc, isSortedDesc, textAlign, onSort, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: ieex2 */
1
+ /* hash: 1o9n3 */
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_xztid {
21
+ } .table__content_pzfnt {
22
22
  display: flex;
23
23
  align-items: flex-start;
24
- } .table__icon_xztid {
24
+ } .table__icon_pzfnt {
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_xztid:hover {
36
+ } .table__icon_pzfnt:hover {
37
37
  color: var(--color-light-graphic-primary);
38
- } .table__reverse_xztid {
38
+ } .table__reverse_pzfnt {
39
39
  flex-direction: row-reverse
40
- } .table__reverse_xztid .table__icon_xztid {
40
+ } .table__reverse_pzfnt .table__icon_pzfnt {
41
41
  margin-left: 0;
42
42
  margin-right: var(--gap-xs);
43
- } .table__sorted_xztid {
43
+ } .table__sorted_pzfnt {
44
44
  color: var(--color-light-graphic-link)
45
- } .table__sorted_xztid:hover {
45
+ } .table__sorted_pzfnt:hover {
46
46
  color: var(--color-light-graphic-link);
47
47
  }
@@ -0,0 +1,13 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ };
13
+ export { TextElementType, TextSkeletonProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react-transition-group" />
2
- import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
3
  import { TransitionProps } from 'react-transition-group/Transition';
4
4
  import { BaseModalProps } from "./index-bdb4c6b9";
5
5
  import { NavigationBarProps } from "./index-c76d6398";
@@ -88,6 +88,14 @@ type BottomSheetProps = {
88
88
  * Дополнительный класс для обертки модального окна
89
89
  */
90
90
  modalWrapperClassName?: string;
91
+ /**
92
+ * Дополнительный класс для маркера
93
+ */
94
+ swipeableMarkerClassName?: string;
95
+ /**
96
+ * Кастомный маркер
97
+ */
98
+ swipeableMarker?: ReactElement;
91
99
  /**
92
100
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
93
101
  */
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TextSkeletonProps } from "./types-1b036d4b";
4
+ type SkeletonProps = {
5
+ wrapperClassName?: string;
6
+ dataTestId?: string;
7
+ };
8
+ declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
9
+ renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
10
+ textRef: React.RefObject<HTMLElement>;
11
+ };
12
+ export { useSkeleton };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-table",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@alfalab/core-components-button": "^9.0.2",
19
- "@alfalab/core-components-pagination": "^2.1.0",
20
- "@alfalab/core-components-select": "^15.0.2",
19
+ "@alfalab/core-components-pagination": "^2.1.2",
20
+ "@alfalab/core-components-select": "^15.0.4",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"
23
23
  }
@@ -0,0 +1,13 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ };
13
+ export { TextElementType, TextSkeletonProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react-transition-group" />
2
- import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
3
  import { TransitionProps } from 'react-transition-group/Transition';
4
4
  import { BaseModalProps } from "./index-bdb4c6b9";
5
5
  import { NavigationBarProps } from "./index-c76d6398";
@@ -88,6 +88,14 @@ type BottomSheetProps = {
88
88
  * Дополнительный класс для обертки модального окна
89
89
  */
90
90
  modalWrapperClassName?: string;
91
+ /**
92
+ * Дополнительный класс для маркера
93
+ */
94
+ swipeableMarkerClassName?: string;
95
+ /**
96
+ * Кастомный маркер
97
+ */
98
+ swipeableMarker?: ReactElement;
91
99
  /**
92
100
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
93
101
  */
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TextSkeletonProps } from "./types-1b036d4b";
4
+ type SkeletonProps = {
5
+ wrapperClassName?: string;
6
+ dataTestId?: string;
7
+ };
8
+ declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
9
+ renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
10
+ textRef: React.RefObject<HTMLElement>;
11
+ };
12
+ export { useSkeleton };