UNPKG

893 BTypeScriptView Raw
1import * as React from 'react';
2import type { RawValueType, RenderNode } from './BaseSelect';
3import type { BaseOptionType, FieldNames, OnActiveValue, OnInternalSelect, SelectProps } from './Select';
4import type { FlattenOptionData } from './interface';
5export interface SelectContextProps {
6 options: BaseOptionType[];
7 optionRender?: SelectProps['optionRender'];
8 flattenOptions: FlattenOptionData<BaseOptionType>[];
9 onActiveValue: OnActiveValue;
10 defaultActiveFirstOption?: boolean;
11 onSelect: OnInternalSelect;
12 menuItemSelectedIcon?: RenderNode;
13 rawValues: Set<RawValueType>;
14 fieldNames?: FieldNames;
15 virtual?: boolean;
16 direction?: 'ltr' | 'rtl';
17 listHeight?: number;
18 listItemHeight?: number;
19 childrenAsData?: boolean;
20 maxCount?: number;
21}
22declare const SelectContext: React.Context<SelectContextProps>;
23export default SelectContext;