@alfalab/core-components-select 10.2.4 → 10.4.2
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/CHANGELOG.md +42 -0
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +2 -1
- package/dist/components/arrow/Component.js +1 -1
- package/dist/components/arrow/index.css +3 -3
- package/dist/components/base-select/Component.js +26 -23
- package/dist/components/base-select/index.css +7 -7
- package/dist/components/base-select/index.js +1 -1
- package/dist/components/checkmark/Component.d.ts +1 -1
- package/dist/components/checkmark/Component.js +11 -5
- package/dist/components/checkmark/index.css +21 -9
- package/dist/components/checkmark/index.js +1 -0
- package/dist/components/field/Component.d.ts +1 -1
- package/dist/components/field/Component.js +3 -3
- package/dist/components/field/index.css +9 -9
- package/dist/components/field/index.js +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/native-select/Component.js +1 -1
- package/dist/components/native-select/index.js +1 -1
- package/dist/components/optgroup/Component.js +1 -1
- package/dist/components/optgroup/index.css +6 -6
- package/dist/components/option/Component.js +7 -5
- package/dist/components/option/index.css +20 -20
- package/dist/components/option/index.js +2 -1
- package/dist/components/options-list/Component.js +13 -8
- package/dist/components/options-list/index.css +9 -5
- package/dist/components/options-list/index.js +1 -0
- package/dist/components/virtual-options-list/Component.d.ts +1 -1
- package/dist/components/virtual-options-list/Component.js +22 -18
- package/dist/components/virtual-options-list/index.css +15 -12
- package/dist/components/virtual-options-list/index.js +1 -0
- package/dist/cssm/Component.d.ts +1 -1
- package/dist/cssm/Component.js +1 -0
- package/dist/cssm/components/base-select/Component.js +24 -21
- package/dist/cssm/components/checkmark/Component.d.ts +1 -1
- package/dist/cssm/components/checkmark/Component.js +10 -4
- package/dist/cssm/components/checkmark/index.js +1 -0
- package/dist/cssm/components/checkmark/index.module.css +19 -7
- package/dist/cssm/components/field/Component.d.ts +1 -1
- package/dist/cssm/components/field/Component.js +1 -1
- package/dist/cssm/components/index.js +1 -0
- package/dist/cssm/components/option/Component.js +5 -3
- package/dist/cssm/components/option/index.js +1 -0
- package/dist/cssm/components/options-list/Component.js +12 -7
- package/dist/cssm/components/options-list/index.js +1 -0
- package/dist/cssm/components/options-list/index.module.css +4 -0
- package/dist/cssm/components/virtual-options-list/Component.d.ts +1 -1
- package/dist/cssm/components/virtual-options-list/Component.js +21 -17
- package/dist/cssm/components/virtual-options-list/index.js +1 -0
- package/dist/cssm/components/virtual-options-list/index.module.css +4 -1
- package/dist/cssm/hook-3b9bd559.d.ts +12 -0
- package/dist/cssm/hook-3b9bd559.js +147 -0
- package/dist/cssm/hook-f5b8fe4f.d.ts +61 -0
- package/dist/cssm/index.js +8 -1
- package/dist/cssm/intersection-observer-8c55e13a.d.ts +1 -0
- package/dist/cssm/intersection-observer-8c55e13a.js +893 -0
- package/dist/cssm/presets/index.d.ts +1 -0
- package/dist/cssm/presets/index.js +30 -1
- package/dist/cssm/presets/useLazyLoading/hook.js +2 -892
- package/dist/cssm/presets/useSelectWithApply/hook.d.ts +0 -0
- package/dist/cssm/presets/useSelectWithApply/hook.js +46 -0
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +45 -0
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +45 -0
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +38 -0
- package/dist/cssm/presets/useSelectWithLoading/hook.js +1 -0
- package/dist/cssm/typings.d.ts +55 -6
- package/dist/esm/Component.d.ts +1 -1
- package/dist/esm/Component.js +2 -1
- package/dist/esm/components/arrow/Component.js +1 -1
- package/dist/esm/components/arrow/index.css +3 -3
- package/dist/esm/components/base-select/Component.js +26 -23
- package/dist/esm/components/base-select/index.css +7 -7
- package/dist/esm/components/base-select/index.js +1 -1
- package/dist/esm/components/checkmark/Component.d.ts +1 -1
- package/dist/esm/components/checkmark/Component.js +12 -6
- package/dist/esm/components/checkmark/index.css +21 -9
- package/dist/esm/components/checkmark/index.js +1 -0
- package/dist/esm/components/field/Component.d.ts +1 -1
- package/dist/esm/components/field/Component.js +3 -3
- package/dist/esm/components/field/index.css +9 -9
- package/dist/esm/components/field/index.js +1 -1
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/native-select/Component.js +1 -1
- package/dist/esm/components/native-select/index.js +1 -1
- package/dist/esm/components/optgroup/Component.js +1 -1
- package/dist/esm/components/optgroup/index.css +6 -6
- package/dist/esm/components/option/Component.js +7 -5
- package/dist/esm/components/option/index.css +20 -20
- package/dist/esm/components/option/index.js +2 -1
- package/dist/esm/components/options-list/Component.js +14 -9
- package/dist/esm/components/options-list/index.css +9 -5
- package/dist/esm/components/options-list/index.js +1 -0
- package/dist/esm/components/virtual-options-list/Component.d.ts +1 -1
- package/dist/esm/components/virtual-options-list/Component.js +22 -18
- package/dist/esm/components/virtual-options-list/index.css +15 -12
- package/dist/esm/components/virtual-options-list/index.js +1 -0
- package/dist/esm/hook-29b7502d.d.ts +12 -0
- package/dist/esm/hook-29b7502d.js +131 -0
- package/dist/esm/hook-f5b8fe4f.d.ts +61 -0
- package/dist/esm/index.js +5 -1
- package/dist/esm/intersection-observer-8f21105d.d.ts +1 -0
- package/dist/esm/intersection-observer-8f21105d.js +891 -0
- package/dist/esm/presets/index.d.ts +1 -0
- package/dist/esm/presets/index.js +21 -1
- package/dist/esm/presets/useLazyLoading/hook.js +4 -894
- package/dist/esm/presets/useLazyLoading/index.css +2 -2
- package/dist/esm/presets/useSelectWithApply/hook.d.ts +0 -0
- package/dist/esm/presets/useSelectWithApply/hook.js +26 -0
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +26 -0
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.css +39 -0
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.js +26 -0
- package/dist/esm/presets/useSelectWithLoading/hook.js +3 -2
- package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
- package/dist/esm/{tslib.es6-92952a5b.d.ts → tslib.es6-2a05363e.d.ts} +0 -0
- package/dist/esm/{tslib.es6-92952a5b.js → tslib.es6-2a05363e.js} +0 -0
- package/dist/esm/typings.d.ts +55 -6
- package/dist/hook-79137119.d.ts +12 -0
- package/dist/hook-79137119.js +140 -0
- package/dist/hook-f5b8fe4f.d.ts +61 -0
- package/dist/index.js +7 -1
- package/dist/intersection-observer-23316031.d.ts +1 -0
- package/dist/intersection-observer-23316031.js +893 -0
- package/dist/modern/Component.d.ts +1 -1
- package/dist/modern/Component.js +1 -0
- package/dist/modern/components/arrow/Component.js +1 -1
- package/dist/modern/components/arrow/index.css +3 -3
- package/dist/modern/components/base-select/Component.js +20 -15
- package/dist/modern/components/base-select/index.css +7 -7
- package/dist/modern/components/checkmark/Component.d.ts +1 -1
- package/dist/modern/components/checkmark/Component.js +12 -4
- package/dist/modern/components/checkmark/index.css +21 -9
- package/dist/modern/components/checkmark/index.js +1 -0
- package/dist/modern/components/field/Component.d.ts +1 -1
- package/dist/modern/components/field/Component.js +2 -2
- package/dist/modern/components/field/index.css +9 -9
- package/dist/modern/components/index.js +1 -0
- package/dist/modern/components/optgroup/Component.js +1 -1
- package/dist/modern/components/optgroup/index.css +6 -6
- package/dist/modern/components/option/Component.js +6 -4
- package/dist/modern/components/option/index.css +20 -20
- package/dist/modern/components/option/index.js +1 -0
- package/dist/modern/components/options-list/Component.js +11 -7
- package/dist/modern/components/options-list/index.css +9 -5
- package/dist/modern/components/virtual-options-list/Component.d.ts +1 -1
- package/dist/modern/components/virtual-options-list/Component.js +20 -17
- package/dist/modern/components/virtual-options-list/index.css +15 -12
- package/dist/modern/hook-e4f14d72.d.ts +12 -0
- package/dist/modern/hook-e4f14d72.js +132 -0
- package/dist/modern/hook-f5b8fe4f.d.ts +61 -0
- package/dist/modern/index.js +4 -0
- package/dist/modern/intersection-observer-8f21105d.d.ts +1 -0
- package/dist/modern/intersection-observer-8f21105d.js +891 -0
- package/dist/modern/presets/index.d.ts +1 -0
- package/dist/modern/presets/index.js +20 -0
- package/dist/modern/presets/useLazyLoading/hook.js +3 -893
- package/dist/modern/presets/useLazyLoading/index.css +2 -2
- package/dist/modern/presets/useSelectWithApply/hook.d.ts +0 -0
- package/dist/modern/presets/useSelectWithApply/hook.js +25 -0
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +25 -0
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.css +39 -0
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.js +25 -0
- package/dist/modern/presets/useSelectWithLoading/hook.js +2 -1
- package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
- package/dist/modern/typings.d.ts +55 -6
- package/dist/presets/index.d.ts +1 -0
- package/dist/presets/index.js +23 -1
- package/dist/presets/useLazyLoading/hook.js +4 -894
- package/dist/presets/useLazyLoading/index.css +2 -2
- package/dist/presets/useSelectWithApply/hook.d.ts +0 -0
- package/dist/presets/useSelectWithApply/hook.js +35 -0
- package/dist/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
- package/dist/presets/useSelectWithApply/options-list-with-apply/Component.js +34 -0
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.css +39 -0
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.js +34 -0
- package/dist/presets/useSelectWithLoading/hook.js +3 -2
- package/dist/presets/useSelectWithLoading/index.css +2 -2
- package/dist/{tslib.es6-14b6a04f.d.ts → tslib.es6-8b9e19c1.d.ts} +0 -0
- package/dist/{tslib.es6-14b6a04f.js → tslib.es6-8b9e19c1.js} +0 -0
- package/dist/typings.d.ts +55 -6
- package/package.json +5 -3
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../tslib.es6-8b9e19c1.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('@alfalab/core-components-form-control');
|
|
10
|
+
require('../../utils.js');
|
|
11
|
+
require('../../components/field/Component.js');
|
|
12
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
13
|
+
require('../../components/arrow/Component.js');
|
|
14
|
+
require('react-merge-refs');
|
|
15
|
+
require('../../components/optgroup/Component.js');
|
|
16
|
+
require('../../components/options-list/Component.js');
|
|
17
|
+
require('@alfalab/core-components-checkbox');
|
|
18
|
+
require('../../components/checkmark/Component.js');
|
|
19
|
+
require('../../components/option/Component.js');
|
|
20
|
+
require('resize-observer');
|
|
21
|
+
require('@alfalab/core-components-popover');
|
|
22
|
+
require('downshift');
|
|
23
|
+
require('../../components/native-select/Component.js');
|
|
24
|
+
require('../../components/base-select/Component.js');
|
|
25
|
+
require('../../Component.js');
|
|
26
|
+
require('react-virtual');
|
|
27
|
+
require('@alfalab/core-components-skeleton');
|
|
28
|
+
require('../../intersection-observer-23316031.js');
|
|
29
|
+
require('@alfalab/core-components-button');
|
|
30
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-79137119.js');
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.SELECT_ALL_KEY = presets_useSelectWithApply_optionsListWithApply_Component.SELECT_ALL_KEY;
|
|
35
|
+
exports.useSelectWithApply = presets_useSelectWithApply_optionsListWithApply_Component.useSelectWithApply;
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../tslib.es6-8b9e19c1.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('@alfalab/core-components-form-control');
|
|
10
|
+
require('../../../utils.js');
|
|
11
|
+
require('../../../components/field/Component.js');
|
|
12
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
13
|
+
require('../../../components/arrow/Component.js');
|
|
14
|
+
require('react-merge-refs');
|
|
15
|
+
require('../../../components/optgroup/Component.js');
|
|
16
|
+
require('../../../components/options-list/Component.js');
|
|
17
|
+
require('@alfalab/core-components-checkbox');
|
|
18
|
+
require('../../../components/checkmark/Component.js');
|
|
19
|
+
require('../../../components/option/Component.js');
|
|
20
|
+
require('resize-observer');
|
|
21
|
+
require('@alfalab/core-components-popover');
|
|
22
|
+
require('downshift');
|
|
23
|
+
require('../../../components/native-select/Component.js');
|
|
24
|
+
require('../../../components/base-select/Component.js');
|
|
25
|
+
require('../../../Component.js');
|
|
26
|
+
require('react-virtual');
|
|
27
|
+
require('@alfalab/core-components-skeleton');
|
|
28
|
+
require('../../../intersection-observer-23316031.js');
|
|
29
|
+
require('@alfalab/core-components-button');
|
|
30
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-79137119.js');
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.OptionsListWithApply = presets_useSelectWithApply_optionsListWithApply_Component.OptionsListWithApply;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* hash: 1kcwj */
|
|
2
|
+
:root {
|
|
3
|
+
--color-light-bg-primary: #fff;
|
|
4
|
+
--color-light-border-secondary: #e7e9eb;
|
|
5
|
+
}
|
|
6
|
+
:root {
|
|
7
|
+
|
|
8
|
+
/* Hard */
|
|
9
|
+
|
|
10
|
+
/* Up */
|
|
11
|
+
|
|
12
|
+
/* Hard up */
|
|
13
|
+
}
|
|
14
|
+
:root {
|
|
15
|
+
--gap-xs: 8px;
|
|
16
|
+
--gap-s: 12px;
|
|
17
|
+
--gap-m: 16px;
|
|
18
|
+
}
|
|
19
|
+
:root {
|
|
20
|
+
|
|
21
|
+
/* options list */
|
|
22
|
+
|
|
23
|
+
/* option */
|
|
24
|
+
|
|
25
|
+
/* checkmark */
|
|
26
|
+
|
|
27
|
+
/* optgroup */
|
|
28
|
+
}
|
|
29
|
+
.select__footer_nkjz1 {
|
|
30
|
+
background: var(--color-light-bg-primary);
|
|
31
|
+
padding: var(--gap-s) var(--gap-s) var(--gap-m);
|
|
32
|
+
outline: none
|
|
33
|
+
}
|
|
34
|
+
.select__footer_nkjz1 > * + * {
|
|
35
|
+
margin-left: var(--gap-xs);
|
|
36
|
+
}
|
|
37
|
+
.select__withBorder_nkjz1 {
|
|
38
|
+
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../hook-79137119";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../tslib.es6-8b9e19c1.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('@alfalab/core-components-form-control');
|
|
10
|
+
require('../../../utils.js');
|
|
11
|
+
require('../../../components/field/Component.js');
|
|
12
|
+
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
13
|
+
require('../../../components/arrow/Component.js');
|
|
14
|
+
require('react-merge-refs');
|
|
15
|
+
require('../../../components/optgroup/Component.js');
|
|
16
|
+
require('../../../components/options-list/Component.js');
|
|
17
|
+
require('@alfalab/core-components-checkbox');
|
|
18
|
+
require('../../../components/checkmark/Component.js');
|
|
19
|
+
require('../../../components/option/Component.js');
|
|
20
|
+
require('resize-observer');
|
|
21
|
+
require('@alfalab/core-components-popover');
|
|
22
|
+
require('downshift');
|
|
23
|
+
require('../../../components/native-select/Component.js');
|
|
24
|
+
require('../../../components/base-select/Component.js');
|
|
25
|
+
require('../../../Component.js');
|
|
26
|
+
require('react-virtual');
|
|
27
|
+
require('@alfalab/core-components-skeleton');
|
|
28
|
+
require('../../../intersection-observer-23316031.js');
|
|
29
|
+
require('@alfalab/core-components-button');
|
|
30
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-79137119.js');
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.OptionsListWithApply = presets_useSelectWithApply_optionsListWithApply_Component.OptionsListWithApply;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-8b9e19c1.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
+
require('@alfalab/core-components-checkbox');
|
|
8
9
|
require('../../components/checkmark/Component.js');
|
|
9
10
|
var components_option_Component = require('../../components/option/Component.js');
|
|
10
11
|
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
|
|
@@ -13,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
14
|
|
|
14
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
16
|
|
|
16
|
-
var styles = {"skeleton":"
|
|
17
|
+
var styles = {"skeleton":"select__skeleton_h5txt"};
|
|
17
18
|
require('./index.css')
|
|
18
19
|
|
|
19
20
|
function useSelectWithLoading(_a) {
|
|
File without changes
|
|
File without changes
|
package/dist/typings.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ReactNode, FC, RefAttributes, AriaAttributes, FocusEvent, MouseEvent, ReactElement } from 'react';
|
|
3
2
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
4
3
|
import { InputProps } from "@alfalab/core-components-input";
|
|
@@ -51,6 +50,10 @@ type BaseSelectProps = {
|
|
|
51
50
|
* Дополнительный класс для пункта меню
|
|
52
51
|
*/
|
|
53
52
|
optionClassName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительный класс для поповера
|
|
55
|
+
*/
|
|
56
|
+
popperClassName?: string;
|
|
54
57
|
/**
|
|
55
58
|
* Список вариантов выбора
|
|
56
59
|
*/
|
|
@@ -194,6 +197,7 @@ type BaseSelectProps = {
|
|
|
194
197
|
onChange?: (payload: {
|
|
195
198
|
selected: OptionShape | null;
|
|
196
199
|
selectedMultiple: OptionShape[];
|
|
200
|
+
initiator: OptionShape | null;
|
|
197
201
|
name?: string;
|
|
198
202
|
}) => void;
|
|
199
203
|
/**
|
|
@@ -245,6 +249,14 @@ type FieldProps = {
|
|
|
245
249
|
* Список выбранных пунктов
|
|
246
250
|
*/
|
|
247
251
|
selectedMultiple?: OptionShape[];
|
|
252
|
+
/**
|
|
253
|
+
* Метод для ручной установки выбранных пунктов
|
|
254
|
+
*/
|
|
255
|
+
setSelectedItems: (selected: OptionShape[]) => void;
|
|
256
|
+
/**
|
|
257
|
+
* Метод переключающий видимость выпадающего списка
|
|
258
|
+
*/
|
|
259
|
+
toggleMenu: () => void;
|
|
248
260
|
/**
|
|
249
261
|
* Флаг, можно ли выбрать несколько значений
|
|
250
262
|
*/
|
|
@@ -322,10 +334,31 @@ type OptionsListProps = {
|
|
|
322
334
|
/**
|
|
323
335
|
* Компонент пункта меню
|
|
324
336
|
*/
|
|
325
|
-
Option:
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
337
|
+
Option: FC<OptionProps>;
|
|
338
|
+
/**
|
|
339
|
+
* Функция для получения пропсов для ячейки
|
|
340
|
+
*/
|
|
341
|
+
getOptionProps: (option: OptionShape, index: number) => OptionProps;
|
|
342
|
+
/**
|
|
343
|
+
* Список выбранных пунктов
|
|
344
|
+
*/
|
|
345
|
+
selectedItems?: OptionShape[];
|
|
346
|
+
/**
|
|
347
|
+
* Метод для ручной установки выбранных пунктов
|
|
348
|
+
*/
|
|
349
|
+
setSelectedItems: (selected: OptionShape[]) => void;
|
|
350
|
+
/**
|
|
351
|
+
* Метод переключающий видимость выпадающего списка
|
|
352
|
+
*/
|
|
353
|
+
toggleMenu: () => void;
|
|
354
|
+
/**
|
|
355
|
+
* Контент шапки
|
|
356
|
+
*/
|
|
357
|
+
header?: ReactNode;
|
|
358
|
+
/**
|
|
359
|
+
* Контент футера
|
|
360
|
+
*/
|
|
361
|
+
footer?: ReactNode;
|
|
329
362
|
/**
|
|
330
363
|
* Список вариантов выбора
|
|
331
364
|
*/
|
|
@@ -399,7 +432,7 @@ type OptionProps = {
|
|
|
399
432
|
*/
|
|
400
433
|
option: OptionShape;
|
|
401
434
|
/**
|
|
402
|
-
*
|
|
435
|
+
* Индекс пункта
|
|
403
436
|
*/
|
|
404
437
|
index: number;
|
|
405
438
|
/**
|
|
@@ -414,6 +447,10 @@ type OptionProps = {
|
|
|
414
447
|
* Флаг, заблокирован ли данный пункт
|
|
415
448
|
*/
|
|
416
449
|
disabled?: boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Флаг множественного выбора
|
|
452
|
+
*/
|
|
453
|
+
multiple?: boolean;
|
|
417
454
|
/**
|
|
418
455
|
* Компонент пункта меню
|
|
419
456
|
*/
|
|
@@ -438,5 +475,17 @@ type CheckmarkProps = {
|
|
|
438
475
|
* Флаг, данный пункт выбран
|
|
439
476
|
*/
|
|
440
477
|
selected?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* Дополнительный класс
|
|
480
|
+
*/
|
|
481
|
+
className?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Флаг множественного выбора
|
|
484
|
+
*/
|
|
485
|
+
multiple?: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* Расположение отметки
|
|
488
|
+
*/
|
|
489
|
+
position?: 'before' | 'after';
|
|
441
490
|
};
|
|
442
491
|
export { OptionShape, GroupShape, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-select",
|
|
3
|
-
"version": "10.2
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"description": "Select component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,10 @@
|
|
|
20
20
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@alfalab/core-components-button": "^5.0.5",
|
|
24
|
+
"@alfalab/core-components-checkbox": "^2.4.0",
|
|
23
25
|
"@alfalab/core-components-form-control": "^7.4.0",
|
|
24
|
-
"@alfalab/core-components-input": "^8.0.
|
|
26
|
+
"@alfalab/core-components-input": "^8.0.4",
|
|
25
27
|
"@alfalab/core-components-popover": "^5.6.0",
|
|
26
28
|
"@alfalab/core-components-skeleton": "^3.0.2",
|
|
27
29
|
"@alfalab/hooks": "^1.4.1",
|
|
@@ -31,5 +33,5 @@
|
|
|
31
33
|
"react-virtual": "^2.2.0",
|
|
32
34
|
"resize-observer": "^1.0.0"
|
|
33
35
|
},
|
|
34
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "48cb31b47c9ac5d7ff92314684699edb9d6d68f0"
|
|
35
37
|
}
|