@alfalab/core-components-select 17.20.14 → 17.21.0
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/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +5 -5
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +6 -6
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +15 -15
- package/components/base-select/Component.js +4 -3
- package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/components/base-select/index.css +11 -11
- package/components/base-select/mobile.css +12 -12
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/clear-button/Component.js +2 -2
- package/components/clear-button/index.css +7 -13
- package/components/field/Component.js +1 -1
- package/components/field/index.css +14 -14
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/desktop/Component.js +1 -1
- package/components/option/desktop/index.css +22 -22
- package/components/option/mobile/Component.js +1 -1
- package/components/option/mobile/index.css +19 -19
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +11 -11
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/components/base-select/Component.js +2 -1
- package/cssm/components/clear-button/Component.js +1 -1
- package/cssm/components/clear-button/index.module.css +2 -8
- package/{modern/hook-94ef1330.d.ts → cssm/hook-35edf585.d.ts} +13 -1
- package/cssm/{hook-928265a3.js → hook-42ec365f.js} +11 -9
- package/cssm/mobile/Component.mobile.js +1 -1
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +1 -1
- package/cssm/presets/useSelectWithApply/hook.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/cssm/shared/index.js +1 -1
- package/cssm/typings.d.ts +1 -1
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +5 -5
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +15 -15
- package/esm/components/base-select/Component.js +4 -3
- package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/mobile.css +12 -12
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/clear-button/Component.js +2 -2
- package/esm/components/clear-button/index.css +7 -13
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +14 -14
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/desktop/Component.js +1 -1
- package/esm/components/option/desktop/index.css +22 -22
- package/esm/components/option/mobile/Component.js +1 -1
- package/esm/components/option/mobile/index.css +19 -19
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +11 -11
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/{hook-94ef1330.d.ts → hook-35edf585.d.ts} +13 -1
- package/esm/{hook-533933bf.js → hook-ee34f771.js} +11 -9
- package/esm/{list-popover-desktop-bc081a7b.js → list-popover-desktop-094defa1.js} +1 -1
- package/esm/mobile/Component.mobile.js +1 -1
- package/esm/mobile.module-562947d3.js +4 -0
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +1 -1
- package/esm/presets/useSelectWithApply/hook.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +1 -1
- package/esm/typings.d.ts +1 -1
- package/{cssm/hook-94ef1330.d.ts → hook-35edf585.d.ts} +13 -1
- package/{hook-3d329889.js → hook-9bc01ecf.js} +11 -9
- package/{list-popover-desktop-4068f50c.js → list-popover-desktop-fedb3b18.js} +1 -1
- package/mobile/Component.mobile.js +1 -1
- package/mobile.module-dbef7169.js +6 -0
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +5 -5
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +15 -15
- package/modern/components/base-select/Component.js +4 -3
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/mobile.css +12 -12
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/clear-button/Component.js +2 -2
- package/modern/components/clear-button/index.css +7 -13
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +14 -14
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/desktop/Component.js +1 -1
- package/modern/components/option/desktop/index.css +22 -22
- package/modern/components/option/mobile/Component.js +1 -1
- package/modern/components/option/mobile/index.css +19 -19
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +11 -11
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +15 -15
- package/{hook-94ef1330.d.ts → modern/hook-35edf585.d.ts} +13 -1
- package/{moderncssm/hook-0c8b8277.js → modern/hook-8eb495d7.js} +5 -3
- package/modern/{list-popover-desktop-737f5b39.js → list-popover-desktop-437459c4.js} +1 -1
- package/modern/mobile/Component.mobile.js +1 -1
- package/modern/mobile.module-ab022eab.js +4 -0
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +1 -1
- package/modern/presets/useSelectWithApply/hook.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +1 -1
- package/modern/typings.d.ts +1 -1
- package/moderncssm/components/base-select/Component.js +2 -1
- package/moderncssm/components/clear-button/Component.js +1 -1
- package/moderncssm/components/clear-button/index.module.css +0 -8
- package/moderncssm/hook-35edf585.d.ts +123 -0
- package/{modern/hook-5dbd42bd.js → moderncssm/hook-54090d24.js} +5 -3
- package/moderncssm/mobile/Component.mobile.js +1 -1
- package/moderncssm/presets/index.d.ts +1 -1
- package/moderncssm/presets/index.js +1 -1
- package/moderncssm/presets/useSelectWithApply/hook.js +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/moderncssm/shared/index.js +1 -1
- package/moderncssm/typings.d.ts +1 -1
- package/package.json +8 -8
- package/presets/index.d.ts +1 -1
- package/presets/index.js +1 -1
- package/presets/useSelectWithApply/hook.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +1 -1
- package/src/components/base-select/Component.tsx +2 -1
- package/src/components/clear-button/Component.tsx +1 -1
- package/src/components/clear-button/index.module.css +0 -12
- package/src/presets/useSelectWithApply/hook.tsx +18 -2
- package/typings.d.ts +1 -1
- package/esm/mobile.module-0cd99801.js +0 -4
- package/mobile.module-da499302.js +0 -6
- package/modern/mobile.module-d95c2b3b.js +0 -4
- package/moderncssm/hook-94ef1330.d.ts +0 -111
- /package/cssm/{hook-928265a3.d.ts → hook-42ec365f.d.ts} +0 -0
- /package/esm/{hook-533933bf.d.ts → hook-ee34f771.d.ts} +0 -0
- /package/esm/{list-popover-desktop-bc081a7b.d.ts → list-popover-desktop-094defa1.d.ts} +0 -0
- /package/{hook-3d329889.d.ts → hook-9bc01ecf.d.ts} +0 -0
- /package/{list-popover-desktop-4068f50c.d.ts → list-popover-desktop-fedb3b18.d.ts} +0 -0
- /package/modern/{hook-5dbd42bd.d.ts → hook-8eb495d7.d.ts} +0 -0
- /package/modern/{list-popover-desktop-737f5b39.d.ts → list-popover-desktop-437459c4.d.ts} +0 -0
- /package/moderncssm/{hook-0c8b8277.d.ts → hook-54090d24.d.ts} +0 -0
|
@@ -402,7 +402,8 @@ export const BaseSelect = forwardRef<unknown, ComponentProps>(
|
|
|
402
402
|
!autocomplete &&
|
|
403
403
|
!nativeSelect &&
|
|
404
404
|
(event.target as HTMLElement).tagName !== 'INPUT' &&
|
|
405
|
-
(event.target as HTMLElement).tagName !== 'BUTTON'
|
|
405
|
+
(event.target as HTMLElement).tagName !== 'BUTTON' &&
|
|
406
|
+
(event.target as HTMLElement).tagName !== 'TEXTAREA'
|
|
406
407
|
) {
|
|
407
408
|
// Открываем\закрываем меню по нажатию enter или пробела
|
|
408
409
|
event.preventDefault();
|
|
@@ -18,7 +18,7 @@ export const ClearButton = ({ disabled, onClick, dataTestId, size }: ClearButton
|
|
|
18
18
|
view='text'
|
|
19
19
|
disabled={disabled}
|
|
20
20
|
aria-label='Очистить'
|
|
21
|
-
className={cn(styles.clearButton
|
|
21
|
+
className={cn(styles.clearButton)}
|
|
22
22
|
onClick={onClick}
|
|
23
23
|
tabIndex={-1}
|
|
24
24
|
dataTestId={dataTestId}
|
|
@@ -67,6 +67,18 @@ export type UseSelectWithApplyProps = {
|
|
|
67
67
|
* Показывать пункт "Выбрать все" в заголовке списка
|
|
68
68
|
*/
|
|
69
69
|
showHeaderWithSelectAll?: boolean;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Значение name при применении выбора
|
|
73
|
+
* @default 'apply-footer'
|
|
74
|
+
*/
|
|
75
|
+
applyName?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Значение name при сбросе выбора
|
|
79
|
+
* @default 'reset-footer'
|
|
80
|
+
*/
|
|
81
|
+
resetName?: string;
|
|
70
82
|
};
|
|
71
83
|
|
|
72
84
|
export const SELECT_ALL_KEY = 'select_all';
|
|
@@ -85,6 +97,8 @@ export function useSelectWithApply({
|
|
|
85
97
|
showHeaderWithSelectAll = false,
|
|
86
98
|
showSearch = false,
|
|
87
99
|
searchProps = {},
|
|
100
|
+
applyName = 'apply-footer',
|
|
101
|
+
resetName = 'reset-footer',
|
|
88
102
|
}: UseSelectWithApplyProps) {
|
|
89
103
|
const [searchState, setSearchState] = useState('');
|
|
90
104
|
|
|
@@ -131,7 +145,7 @@ export function useSelectWithApply({
|
|
|
131
145
|
selected: selectedDraft[0],
|
|
132
146
|
selectedMultiple: selectedDraft,
|
|
133
147
|
initiator: null,
|
|
134
|
-
name:
|
|
148
|
+
name: applyName,
|
|
135
149
|
});
|
|
136
150
|
};
|
|
137
151
|
|
|
@@ -141,7 +155,7 @@ export function useSelectWithApply({
|
|
|
141
155
|
selected: null,
|
|
142
156
|
selectedMultiple: [],
|
|
143
157
|
initiator: null,
|
|
144
|
-
name:
|
|
158
|
+
name: resetName,
|
|
145
159
|
});
|
|
146
160
|
};
|
|
147
161
|
|
|
@@ -246,6 +260,8 @@ export function useSelectWithApply({
|
|
|
246
260
|
showHeaderWithSelectAll,
|
|
247
261
|
showSearch,
|
|
248
262
|
searchProps,
|
|
263
|
+
applyName,
|
|
264
|
+
resetName,
|
|
249
265
|
},
|
|
250
266
|
};
|
|
251
267
|
}
|
package/typings.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InputProps } from "@alfalab/core-components-input";
|
|
|
6
6
|
import { ModalProps } from "@alfalab/core-components-modal";
|
|
7
7
|
import { ModalFooterProps, ModalHeaderProps } from "@alfalab/core-components-modal/shared";
|
|
8
8
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
9
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
9
|
+
import { UseSelectWithApplyProps } from "./hook-35edf585";
|
|
10
10
|
type AnyObject = Record<string, any>;
|
|
11
11
|
type OptionShape = {
|
|
12
12
|
/**
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
|
|
4
|
-
require('./components/base-select/mobile.css')
|
|
5
|
-
|
|
6
|
-
exports.mobileStyles = mobileStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const mobileStyles = {"sheet":"select__sheet_10wrb","sheetContent":"select__sheetContent_10wrb","modalContent":"select__modalContent_10wrb","sheetContainer":"select__sheetContainer_10wrb","optionsListWrapper":"select__optionsListWrapper_10wrb","optionsList":"select__optionsList_10wrb","scrollbar":"select__scrollbar_10wrb","search":"select__search_10wrb","option":"select__option_10wrb","optionGroup":"select__optionGroup_10wrb"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings";
|
|
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
|
-
onSelectAllClick?: (selectedMultiple: OptionShape[]) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Компонент выпадающего меню
|
|
22
|
-
*/
|
|
23
|
-
OptionsList?: BaseSelectProps['OptionsList'];
|
|
24
|
-
/**
|
|
25
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
26
|
-
*/
|
|
27
|
-
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
28
|
-
/**
|
|
29
|
-
* Включает отображение поиска
|
|
30
|
-
*/
|
|
31
|
-
showSearch?: BaseSelectProps['showSearch'];
|
|
32
|
-
/**
|
|
33
|
-
* Настройки поиска
|
|
34
|
-
*/
|
|
35
|
-
searchProps?: BaseSelectProps['searchProps'];
|
|
36
|
-
/**
|
|
37
|
-
* Показывать кнопку очистки
|
|
38
|
-
*/
|
|
39
|
-
showClear?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Показывать пункт "Выбрать все"
|
|
42
|
-
*/
|
|
43
|
-
showSelectAll?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
46
|
-
*/
|
|
47
|
-
showHeaderWithSelectAll?: boolean;
|
|
48
|
-
};
|
|
49
|
-
declare const SELECT_ALL_KEY = "select_all";
|
|
50
|
-
declare function useSelectWithApply({ options, selected, onChange, onSelectAllClick, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
51
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings").OptionsListProps & {
|
|
52
|
-
showClear?: boolean | undefined;
|
|
53
|
-
onClose?: (() => void) | undefined;
|
|
54
|
-
selectedDraft?: OptionShape[] | undefined;
|
|
55
|
-
OptionsList?: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
56
|
-
Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
|
|
57
|
-
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
58
|
-
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
59
|
-
showHeaderWithSelectAll?: boolean | undefined;
|
|
60
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
61
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
62
|
-
optionsListProps: {
|
|
63
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
64
|
-
showClear: boolean;
|
|
65
|
-
onClear: () => void;
|
|
66
|
-
onApply: () => void;
|
|
67
|
-
onClose: () => void;
|
|
68
|
-
selectedDraft: OptionShape[];
|
|
69
|
-
setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
|
|
70
|
-
showHeaderWithSelectAll: boolean;
|
|
71
|
-
headerProps: any;
|
|
72
|
-
};
|
|
73
|
-
multiple: boolean;
|
|
74
|
-
options: (OptionShape | import("./typings").GroupShape | {
|
|
75
|
-
key: string;
|
|
76
|
-
content: string;
|
|
77
|
-
})[];
|
|
78
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
79
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
80
|
-
showSearch: boolean;
|
|
81
|
-
searchProps: {
|
|
82
|
-
value: string;
|
|
83
|
-
onChange: ((value: string) => void) | undefined;
|
|
84
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
85
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
86
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
87
|
-
filterGroup?: boolean | undefined;
|
|
88
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
originalProps: {
|
|
91
|
-
options: (OptionShape | import("./typings").GroupShape)[];
|
|
92
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
93
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
94
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
95
|
-
optionsListProps: unknown;
|
|
96
|
-
showClear: boolean;
|
|
97
|
-
showSelectAll: boolean;
|
|
98
|
-
showHeaderWithSelectAll: boolean;
|
|
99
|
-
showSearch: boolean;
|
|
100
|
-
searchProps: {
|
|
101
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
102
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
103
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
104
|
-
value?: string | undefined;
|
|
105
|
-
onChange?: ((value: string) => void) | undefined;
|
|
106
|
-
filterGroup?: boolean | undefined;
|
|
107
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|