@alfalab/core-components-table 2.2.42 → 2.3.1
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.
- package/Component-50136800.d.ts +6 -0
- package/Component-5e1b8383.d.ts +5 -0
- package/Component-63dec22f.d.ts +167 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-c76d6398.d.ts +5 -0
- package/Component-ebda875c.d.ts +12 -0
- package/Component.desktop-63dec22f.d.ts +6 -0
- package/Component.desktop-785df74d.d.ts +6 -0
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.responsive-785df74d.d.ts +26 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/component-50136800.d.ts +44 -0
- package/component.js +1 -1
- package/components/index.js +1 -1
- package/components/pagination/Component.js +3 -3
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +1 -1
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +1 -1
- package/components/table/Component.js +1 -1
- package/components/table/index.css +7 -7
- package/components/tbody/Component.js +1 -1
- package/components/tbody/index.css +2 -2
- package/components/tcell/Component.js +1 -1
- package/components/tcell/index.css +6 -6
- package/components/texpandable-row/Component.js +1 -1
- package/components/texpandable-row/index.css +5 -5
- package/components/thead/Component.js +1 -1
- package/components/thead/index.css +6 -6
- package/components/thead-cell/Component.js +1 -1
- package/components/thead-cell/index.css +10 -9
- package/components/trow/Component.js +1 -1
- package/components/trow/index.css +8 -8
- package/components/tsortable-head-cell/Component.js +2 -2
- package/components/tsortable-head-cell/index.css +8 -10
- package/consts-f777ba1a.d.ts +2 -0
- package/createPaddingStyle-72dda473.d.ts +5 -0
- package/cssm/Component-50136800.d.ts +6 -0
- package/cssm/Component-5e1b8383.d.ts +5 -0
- package/cssm/Component-63dec22f.d.ts +167 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-c76d6398.d.ts +5 -0
- package/cssm/Component-ebda875c.d.ts +12 -0
- package/cssm/Component.desktop-63dec22f.d.ts +6 -0
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/cssm/Component.mobile-ebda875c.d.ts +6 -0
- package/cssm/Component.responsive-785df74d.d.ts +26 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/component-50136800.d.ts +44 -0
- package/cssm/component.js +1 -1
- package/cssm/components/index.js +1 -1
- package/cssm/components/pagination/Component.js +2 -2
- package/cssm/components/pagination/index.js +1 -1
- package/cssm/components/thead-cell/index.module.css +2 -1
- package/cssm/components/tsortable-head-cell/Component.js +1 -1
- package/cssm/components/tsortable-head-cell/index.module.css +0 -2
- package/cssm/consts-f777ba1a.d.ts +2 -0
- package/cssm/createPaddingStyle-72dda473.d.ts +5 -0
- package/cssm/desktop-63dec22f.d.ts +6 -0
- package/cssm/hook-5e1b8383.d.ts +75 -0
- package/cssm/hook-ebda875c.d.ts +48 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-3109f463.d.ts +62 -0
- package/cssm/index-50136800.d.ts +8 -0
- package/cssm/index-72dda473.d.ts +12 -0
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-c44170fe.d.ts +21 -0
- package/cssm/index-c76d6398.d.ts +2 -0
- package/cssm/index-ebda875c.d.ts +81 -0
- package/cssm/index-f12ee135.d.ts +3 -0
- package/cssm/index.js +1 -1
- package/cssm/mobile-96988a65.d.ts +2 -0
- package/cssm/types-72dda473.d.ts +259 -0
- package/cssm/types-83e2bd9e.d.ts +113 -0
- package/cssm/typings-5e1b8383.d.ts +550 -0
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/utils-1574ad8b.d.ts +29 -0
- package/cssm/utils-49cc3c24.d.ts +8 -0
- package/cssm/utils-5e1b8383.d.ts +38 -0
- package/desktop-63dec22f.d.ts +6 -0
- package/esm/Component-50136800.d.ts +6 -0
- package/esm/Component-5e1b8383.d.ts +5 -0
- package/esm/Component-63dec22f.d.ts +167 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-c76d6398.d.ts +5 -0
- package/esm/Component-ebda875c.d.ts +12 -0
- package/esm/Component.desktop-63dec22f.d.ts +6 -0
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/component-50136800.d.ts +44 -0
- package/esm/component.js +1 -1
- package/esm/components/index.js +1 -1
- package/esm/components/pagination/Component.js +3 -3
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +1 -1
- package/esm/components/pagination/select-field/index.css +4 -4
- package/esm/components/pagination/select-field/index.js +1 -1
- package/esm/components/table/Component.js +1 -1
- package/esm/components/table/index.css +7 -7
- package/esm/components/tbody/Component.js +1 -1
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tcell/Component.js +1 -1
- package/esm/components/tcell/index.css +6 -6
- package/esm/components/texpandable-row/Component.js +1 -1
- package/esm/components/texpandable-row/index.css +5 -5
- package/esm/components/thead/Component.js +1 -1
- package/esm/components/thead/index.css +6 -6
- package/esm/components/thead-cell/Component.js +1 -1
- package/esm/components/thead-cell/index.css +10 -9
- package/esm/components/trow/Component.js +1 -1
- package/esm/components/trow/index.css +8 -8
- package/esm/components/tsortable-head-cell/Component.js +2 -2
- package/esm/components/tsortable-head-cell/index.css +8 -10
- package/esm/consts-f777ba1a.d.ts +2 -0
- package/esm/createPaddingStyle-72dda473.d.ts +5 -0
- package/esm/desktop-63dec22f.d.ts +6 -0
- package/esm/hook-5e1b8383.d.ts +75 -0
- package/esm/hook-ebda875c.d.ts +48 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-3109f463.d.ts +62 -0
- package/esm/index-50136800.d.ts +8 -0
- package/esm/index-72dda473.d.ts +12 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-c44170fe.d.ts +21 -0
- package/esm/index-c76d6398.d.ts +2 -0
- package/esm/index-ebda875c.d.ts +81 -0
- package/esm/index-f12ee135.d.ts +3 -0
- package/esm/index.js +1 -1
- package/esm/mobile-96988a65.d.ts +2 -0
- package/esm/types-72dda473.d.ts +259 -0
- package/esm/types-83e2bd9e.d.ts +113 -0
- package/esm/typings-5e1b8383.d.ts +550 -0
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/utils-1574ad8b.d.ts +29 -0
- package/esm/utils-49cc3c24.d.ts +8 -0
- package/esm/utils-5e1b8383.d.ts +38 -0
- package/hook-5e1b8383.d.ts +75 -0
- package/hook-ebda875c.d.ts +48 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-3109f463.d.ts +62 -0
- package/index-50136800.d.ts +8 -0
- package/index-72dda473.d.ts +12 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-c44170fe.d.ts +21 -0
- package/index-c76d6398.d.ts +2 -0
- package/index-ebda875c.d.ts +81 -0
- package/index-f12ee135.d.ts +3 -0
- package/index.js +1 -1
- package/mobile-96988a65.d.ts +2 -0
- package/modern/Component-50136800.d.ts +6 -0
- package/modern/Component-5e1b8383.d.ts +5 -0
- package/modern/Component-63dec22f.d.ts +167 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-c76d6398.d.ts +5 -0
- package/modern/Component-ebda875c.d.ts +12 -0
- package/modern/Component.desktop-63dec22f.d.ts +6 -0
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/component-50136800.d.ts +44 -0
- package/modern/component.js +1 -1
- package/modern/components/index.js +1 -1
- package/modern/components/pagination/Component.js +3 -3
- package/modern/components/pagination/index.css +8 -8
- package/modern/components/pagination/index.js +1 -1
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +1 -1
- package/modern/components/table/index.css +7 -7
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +10 -9
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/tsortable-head-cell/Component.js +2 -2
- package/modern/components/tsortable-head-cell/index.css +8 -10
- package/modern/consts-f777ba1a.d.ts +2 -0
- package/modern/createPaddingStyle-72dda473.d.ts +5 -0
- package/modern/desktop-63dec22f.d.ts +6 -0
- package/modern/hook-5e1b8383.d.ts +75 -0
- package/modern/hook-ebda875c.d.ts +48 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-3109f463.d.ts +62 -0
- package/modern/index-50136800.d.ts +8 -0
- package/modern/index-72dda473.d.ts +12 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-c44170fe.d.ts +21 -0
- package/modern/index-c76d6398.d.ts +2 -0
- package/modern/index-ebda875c.d.ts +81 -0
- package/modern/index-f12ee135.d.ts +3 -0
- package/modern/index.js +1 -1
- package/modern/mobile-96988a65.d.ts +2 -0
- package/modern/types-72dda473.d.ts +259 -0
- package/modern/types-83e2bd9e.d.ts +113 -0
- package/modern/typings-5e1b8383.d.ts +550 -0
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/utils-1574ad8b.d.ts +29 -0
- package/modern/utils-49cc3c24.d.ts +8 -0
- package/modern/utils-5e1b8383.d.ts +38 -0
- package/package.json +4 -4
- package/src/component.tsx +22 -0
- package/src/components/index.ts +9 -0
- package/src/components/pagination/Component.tsx +104 -0
- package/src/components/pagination/index.module.css +38 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/select-field/index.module.css +13 -0
- package/src/components/pagination/select-field/index.tsx +25 -0
- package/src/components/table/Component.tsx +109 -0
- package/src/components/table/index.module.css +35 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/utils.ts +19 -0
- package/src/components/table-context/index.tsx +28 -0
- package/src/components/tbody/Component.tsx +22 -0
- package/src/components/tbody/index.module.css +6 -0
- package/src/components/tbody/index.ts +1 -0
- package/src/components/tcell/Component.tsx +56 -0
- package/src/components/tcell/index.module.css +35 -0
- package/src/components/tcell/index.ts +1 -0
- package/src/components/texpandable-row/Component.tsx +58 -0
- package/src/components/texpandable-row/index.module.css +25 -0
- package/src/components/texpandable-row/index.ts +1 -0
- package/src/components/thead/Component.tsx +33 -0
- package/src/components/thead/index.module.css +32 -0
- package/src/components/thead/index.ts +1 -0
- package/src/components/thead-cell/Component.tsx +67 -0
- package/src/components/thead-cell/index.module.css +47 -0
- package/src/components/thead-cell/index.ts +1 -0
- package/src/components/trow/Component.tsx +56 -0
- package/src/components/trow/index.module.css +35 -0
- package/src/components/trow/index.ts +1 -0
- package/src/components/tsortable-head-cell/Component.tsx +50 -0
- package/src/components/tsortable-head-cell/index.module.css +41 -0
- package/src/components/tsortable-head-cell/index.ts +1 -0
- package/src/components/tsortable-head-cell/sort-icon-asc.tsx +16 -0
- package/src/components/tsortable-head-cell/sort-icon-desc.tsx +16 -0
- package/src/components/tsortable-head-cell/sort-icon-unset.tsx +16 -0
- package/src/index.ts +1 -0
- package/src/typings.ts +8 -0
- package/src/utils.ts +6 -0
- package/types-72dda473.d.ts +259 -0
- package/types-83e2bd9e.d.ts +113 -0
- package/typings-5e1b8383.d.ts +550 -0
- package/typings-9211a437.d.ts +95 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-49cc3c24.d.ts +8 -0
- package/utils-5e1b8383.d.ts +38 -0
|
@@ -3,7 +3,7 @@ import 'tslib';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-pagination/esm';
|
|
6
|
-
import '@alfalab/core-components-select/esm';
|
|
6
|
+
import '@alfalab/core-components-select/esm/desktop';
|
|
7
7
|
import '../table-context/index.js';
|
|
8
8
|
import './select-field/index.js';
|
|
9
9
|
import '@alfalab/core-components-button/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 97o4b */
|
|
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
|
--color-light-specialbg-component-shade-7: rgba(10, 29, 49, 0.1351);
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .table__field_1mbka svg {
|
|
19
19
|
width: 18px;
|
|
20
20
|
height: 18px;
|
|
21
|
-
} .
|
|
22
|
-
.
|
|
21
|
+
} .table__open_1mbka,
|
|
22
|
+
.table__open_1mbka:hover {
|
|
23
23
|
background-color: var(--color-light-specialbg-component-shade-7);
|
|
24
24
|
}
|
|
@@ -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":"
|
|
6
|
+
var styles = {"field":"table__field_1mbka","open":"table__open_1mbka"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var CustomSelectField = function (_a) {
|
|
@@ -6,7 +6,7 @@ import { findAllHeadCellsProps } from './utils.js';
|
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
import '../thead/Component.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"table__component_1o85k","wrapper":"table__wrapper_1o85k","stickyHeader":"table__stickyHeader_1o85k","hasPagination":"table__hasPagination_1o85k","table":"table__table_1o85k"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var Table = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1peiz */
|
|
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
|
-
} .
|
|
21
|
+
} .table__component_1o85k {
|
|
22
22
|
box-sizing: border-box;
|
|
23
|
-
} .
|
|
23
|
+
} .table__wrapper_1o85k {
|
|
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
|
-
} .
|
|
29
|
+
} .table__stickyHeader_1o85k {
|
|
30
30
|
max-height: 100%;
|
|
31
|
-
} .
|
|
31
|
+
} .table__hasPagination_1o85k {
|
|
32
32
|
padding-bottom: 0;
|
|
33
|
-
} .
|
|
33
|
+
} .table__table_1o85k {
|
|
34
34
|
width: 100%;
|
|
35
35
|
border-collapse: collapse;
|
|
36
36
|
box-sizing: border-box
|
|
37
37
|
|
|
38
38
|
/* TODO: Хак для выравнивания чекбокса */
|
|
39
|
-
} .
|
|
39
|
+
} .table__table_1o85k td:first-child label > *[class^='box'], .table__table_1o85k th:first-child label > *[class^='box'] {
|
|
40
40
|
margin-top: 0;
|
|
41
41
|
}
|
|
@@ -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":"
|
|
5
|
+
var styles = {"component":"table__component_16icd"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TBody = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1f36f */
|
|
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
|
-
} .
|
|
17
|
+
} .table__component_16icd {
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
@@ -3,7 +3,7 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"
|
|
6
|
+
var styles = {"component":"table__component_q1yqh","compactHorizontal":"table__compactHorizontal_q1yqh","compact":"table__compact_q1yqh"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mfb4 */
|
|
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
|
-
} .
|
|
23
|
+
} .table__component_q1yqh {
|
|
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
|
-
} .
|
|
34
|
+
} .table__component_q1yqh:first-child {
|
|
35
35
|
padding-left: var(--gap-m);
|
|
36
|
-
} .
|
|
36
|
+
} .table__component_q1yqh:last-child {
|
|
37
37
|
padding-right: var(--gap-m);
|
|
38
|
-
} .
|
|
38
|
+
} .table__compactHorizontal_q1yqh {
|
|
39
39
|
padding-left: 6px;
|
|
40
40
|
padding-right: 6px;
|
|
41
|
-
} .
|
|
41
|
+
} .table__compact_q1yqh {
|
|
42
42
|
padding-top: var(--gap-xs);
|
|
43
43
|
padding-bottom: var(--gap-xs);
|
|
44
44
|
|
|
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TRow } from '../trow/Component.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"row":"
|
|
6
|
+
var styles = {"row":"table__row_1d71z","selected":"table__selected_1d71z","expanded":"table__expanded_1d71z","expandable":"table__expandable_1d71z"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var TExpandableRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gbtd8 */
|
|
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
|
-
} .
|
|
17
|
+
} .table__row_1d71z {
|
|
18
18
|
cursor: pointer;
|
|
19
|
-
} .
|
|
19
|
+
} .table__selected_1d71z.table__expanded_1d71z {
|
|
20
20
|
background-color: inherit;
|
|
21
|
-
} .
|
|
21
|
+
} .table__expanded_1d71z:hover {
|
|
22
22
|
background-color: inherit;
|
|
23
|
-
} .
|
|
23
|
+
} .table__expandable_1d71z td {
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding-top: 0;
|
|
26
26
|
padding-bottom: 0;
|
|
@@ -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":"
|
|
5
|
+
var styles = {"component":"table__component_q7b0m","row":"table__row_q7b0m"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var THead = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: k66ot */
|
|
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
|
-
} .
|
|
19
|
+
} .table__component_q7b0m {
|
|
20
20
|
position: relative;
|
|
21
21
|
width: 100%;
|
|
22
22
|
box-sizing: border-box
|
|
23
|
-
} .
|
|
23
|
+
} .table__component_q7b0m 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
|
-
} .
|
|
34
|
+
} .table__component_q7b0m th:after {
|
|
35
35
|
opacity: 0;
|
|
36
|
-
} .
|
|
36
|
+
} .table__component_q7b0m:hover th:after {
|
|
37
37
|
opacity: 1;
|
|
38
|
-
} .
|
|
38
|
+
} .table__row_q7b0m {
|
|
39
39
|
height: 72px;
|
|
40
40
|
}
|
|
@@ -3,7 +3,7 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TableContext } from '../table-context/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"
|
|
6
|
+
var styles = {"component":"table__component_cnkqb","stickyHeader":"table__stickyHeader_cnkqb","sortable":"table__sortable_cnkqb","sorted":"table__sorted_cnkqb","compactHorizontal":"table__compactHorizontal_cnkqb"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var THeadCell = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: n112z */
|
|
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
|
-
} .
|
|
24
|
+
} .table__component_cnkqb {
|
|
25
25
|
font-size: 12px;
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
font-weight: 500;
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
text-transform: uppercase;
|
|
30
30
|
|
|
31
31
|
line-height: 20px;
|
|
32
|
-
position: relative;
|
|
33
32
|
text-align: left;
|
|
34
33
|
color: var(--color-light-text-primary);
|
|
35
34
|
padding: var(--gap-2xl) var(--gap-s) var(--gap-2xs);
|
|
@@ -37,21 +36,23 @@
|
|
|
37
36
|
background: var(--color-light-bg-primary);
|
|
38
37
|
vertical-align: top;
|
|
39
38
|
box-sizing: border-box
|
|
40
|
-
} .
|
|
39
|
+
} .table__component_cnkqb:first-child {
|
|
41
40
|
padding-left: var(--gap-m);
|
|
42
|
-
} .
|
|
41
|
+
} .table__component_cnkqb:last-child {
|
|
43
42
|
padding-right: var(--gap-m);
|
|
44
|
-
} .
|
|
43
|
+
} .table__component_cnkqb:not(.table__stickyHeader_cnkqb) {
|
|
44
|
+
position: relative;
|
|
45
|
+
} .table__sortable_cnkqb {
|
|
45
46
|
cursor: pointer;
|
|
46
|
-
} .
|
|
47
|
+
} .table__sorted_cnkqb {
|
|
47
48
|
color: var(--color-light-text-primary);
|
|
48
|
-
} .
|
|
49
|
+
} .table__stickyHeader_cnkqb {
|
|
49
50
|
top: 0;
|
|
50
51
|
position: sticky;
|
|
51
52
|
box-shadow: inset 0 -1px 0 0 rgba(11, 31, 53, 0.16);
|
|
52
53
|
border: none;
|
|
53
54
|
z-index: 1;
|
|
54
|
-
} .
|
|
55
|
+
} .table__compactHorizontal_cnkqb {
|
|
55
56
|
padding-left: 6px;
|
|
56
57
|
padding-right: 6px;
|
|
57
58
|
}
|
|
@@ -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":"
|
|
5
|
+
var styles = {"component":"table__component_2xtwn","withoutBorder":"table__withoutBorder_2xtwn","clickable":"table__clickable_2xtwn","selected":"table__selected_2xtwn"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TRow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3qt5b */
|
|
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
|
-
} .
|
|
20
|
+
} .table__component_2xtwn {
|
|
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
|
-
} .
|
|
26
|
+
} .table__component_2xtwn:first-child td {
|
|
27
27
|
border-top: 0;
|
|
28
|
-
} .
|
|
28
|
+
} .table__withoutBorder_2xtwn td {
|
|
29
29
|
border: none;
|
|
30
|
-
} .
|
|
30
|
+
} .table__clickable_2xtwn {
|
|
31
31
|
cursor: pointer
|
|
32
|
-
} .
|
|
32
|
+
} .table__clickable_2xtwn:hover {
|
|
33
33
|
background-color: var(--color-light-bg-secondary);
|
|
34
|
-
} .
|
|
34
|
+
} .table__selected_2xtwn {
|
|
35
35
|
background-color: #f2f8ff /* нет цвета в палитре */
|
|
36
|
-
} .
|
|
36
|
+
} .table__selected_2xtwn:hover {
|
|
37
37
|
background-color: var(--color-static-graphic-solitude);
|
|
38
38
|
}
|
|
@@ -7,7 +7,7 @@ import { SortIconDesc } from './sort-icon-desc.js';
|
|
|
7
7
|
import { SortIconUnset } from './sort-icon-unset.js';
|
|
8
8
|
import '../table-context/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"
|
|
10
|
+
var styles = {"content":"table__content_1jeqv","icon":"table__icon_1jeqv","reverse":"table__reverse_1jeqv","sorted":"table__sorted_1jeqv"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var TSortableHeadCell = function (_a) {
|
|
@@ -21,7 +21,7 @@ var TSortableHeadCell = function (_a) {
|
|
|
21
21
|
return value ? SortIconDesc : SortIconAsc;
|
|
22
22
|
return SortIconUnset;
|
|
23
23
|
}, [defaultIsSortedDesc, isSortedDesc]);
|
|
24
|
-
return (React.createElement(THeadCell, __assign({ className:
|
|
24
|
+
return (React.createElement(THeadCell, __assign({ className: className }, restProps),
|
|
25
25
|
React.createElement("div", { className: cn(styles.content, (_b = {}, _b[styles.reverse] = textAlign === 'right', _b)) },
|
|
26
26
|
children,
|
|
27
27
|
React.createElement(SortIcon, { onClick: onSort, className: cn(styles.icon, (_c = {},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: v5snl */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-link: #0072ef;
|
|
@@ -18,12 +18,10 @@
|
|
|
18
18
|
--gap-xs: 8px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .
|
|
22
|
-
position: relative;
|
|
23
|
-
} .table__content_17a0m {
|
|
21
|
+
} .table__content_1jeqv {
|
|
24
22
|
display: flex;
|
|
25
23
|
align-items: flex-start;
|
|
26
|
-
} .
|
|
24
|
+
} .table__icon_1jeqv {
|
|
27
25
|
cursor: pointer;
|
|
28
26
|
margin-left: var(--gap-xs);
|
|
29
27
|
|
|
@@ -35,15 +33,15 @@
|
|
|
35
33
|
color: var(--color-light-graphic-secondary);
|
|
36
34
|
transition: color 0.2s ease;
|
|
37
35
|
flex-shrink: 0
|
|
38
|
-
} .
|
|
36
|
+
} .table__icon_1jeqv:hover {
|
|
39
37
|
color: var(--color-light-graphic-primary);
|
|
40
|
-
} .
|
|
38
|
+
} .table__reverse_1jeqv {
|
|
41
39
|
flex-direction: row-reverse
|
|
42
|
-
} .
|
|
40
|
+
} .table__reverse_1jeqv .table__icon_1jeqv {
|
|
43
41
|
margin-left: 0;
|
|
44
42
|
margin-right: var(--gap-xs);
|
|
45
|
-
} .
|
|
43
|
+
} .table__sorted_1jeqv {
|
|
46
44
|
color: var(--color-light-graphic-link)
|
|
47
|
-
} .
|
|
45
|
+
} .table__sorted_1jeqv:hover {
|
|
48
46
|
color: var(--color-light-graphic-link);
|
|
49
47
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings-5e1b8383";
|
|
3
|
+
type UseSelectWithApplyProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Список выбранных пунктов
|
|
6
|
+
*/
|
|
7
|
+
selected: BaseSelectProps['selected'];
|
|
8
|
+
/**
|
|
9
|
+
* Список вариантов выбора
|
|
10
|
+
*/
|
|
11
|
+
options: BaseSelectProps['options'];
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик выбора
|
|
14
|
+
*/
|
|
15
|
+
onChange: BaseSelectProps['onChange'];
|
|
16
|
+
/**
|
|
17
|
+
* Компонент выпадающего меню
|
|
18
|
+
*/
|
|
19
|
+
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
|
+
*/
|
|
23
|
+
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
24
|
+
/**
|
|
25
|
+
* Показывать кнопку очистки
|
|
26
|
+
*/
|
|
27
|
+
showClear?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Показывать пункт "Выбрать все"
|
|
30
|
+
*/
|
|
31
|
+
showSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
34
|
+
*/
|
|
35
|
+
showHeaderWithSelectAll?: boolean;
|
|
36
|
+
};
|
|
37
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
38
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
39
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-5e1b8383").OptionsListProps & {
|
|
40
|
+
showClear?: boolean | undefined;
|
|
41
|
+
onClose?: (() => void) | undefined;
|
|
42
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
43
|
+
OptionsList?: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
44
|
+
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined; /**
|
|
47
|
+
* Показывать кнопку очистки
|
|
48
|
+
*/
|
|
49
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
50
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
|
+
optionsListProps: {
|
|
52
|
+
OptionsList: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
53
|
+
showClear: boolean;
|
|
54
|
+
onClear: () => void;
|
|
55
|
+
onApply: () => void;
|
|
56
|
+
onClose: () => void;
|
|
57
|
+
selectedDraft: OptionShape[];
|
|
58
|
+
showHeaderWithSelectAll: boolean;
|
|
59
|
+
headerProps: {
|
|
60
|
+
indeterminate: boolean;
|
|
61
|
+
checked: boolean;
|
|
62
|
+
onChange: () => void;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
allowUnselect: boolean;
|
|
66
|
+
multiple: boolean;
|
|
67
|
+
options: (OptionShape | import("./typings-5e1b8383").GroupShape | {
|
|
68
|
+
key: string;
|
|
69
|
+
content: string;
|
|
70
|
+
})[];
|
|
71
|
+
onChange: (payload: import("./typings-5e1b8383").BaseSelectChangePayload) => void;
|
|
72
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
73
|
+
};
|
|
74
|
+
export * from "./Component-ebda875c";
|
|
75
|
+
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
4
|
+
type OptionsFetcherResponse = {
|
|
5
|
+
options: OptionShape[];
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
};
|
|
8
|
+
type useLazyLoadingProps = {
|
|
9
|
+
/** Количество элементов на "странице" */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Начальный номер "страницы" */
|
|
12
|
+
initialOffset?: number;
|
|
13
|
+
/** Скелетон загружаемых элементов */
|
|
14
|
+
skeleton?: React.ReactNode;
|
|
15
|
+
/** Компонент пункта меню */
|
|
16
|
+
Option?: React.FC<OptionProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Функция-загрузчик опций.
|
|
19
|
+
* @param offset - текущая страница
|
|
20
|
+
* @param limit - количество элементов на странице
|
|
21
|
+
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
22
|
+
* @returns Promise<{
|
|
23
|
+
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
24
|
+
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
25
|
+
* }>
|
|
26
|
+
*/
|
|
27
|
+
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
28
|
+
};
|
|
29
|
+
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option, }: useLazyLoadingProps): {
|
|
30
|
+
optionsProps: {
|
|
31
|
+
Option: (props: OptionProps) => React.JSX.Element;
|
|
32
|
+
options: OptionShape[];
|
|
33
|
+
optionsListProps: {
|
|
34
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
35
|
+
inputProps: {
|
|
36
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
37
|
+
value: string;
|
|
38
|
+
}) => void;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
onOpen: (payload: {
|
|
43
|
+
open?: boolean;
|
|
44
|
+
}) => void;
|
|
45
|
+
};
|
|
46
|
+
reset: () => void;
|
|
47
|
+
};
|
|
48
|
+
export { useLazyLoading };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|