chowa
Version:
UI component library based on React
20 lines (19 loc) • 1.15 kB
TypeScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
import { Options, Option } from './select';
export declare function transformReactNodeToOptions(children: React.ReactNode): Options;
export declare function compileValue(value: any[] | any): any[];
export declare function compileSelectedOptions(values: any[], options: Options): Option[];
export declare function getOptionLabel(option: Option): React.ReactNode;
export declare function isSearchOption(searchValue: string, option: Option): boolean;
export declare function filterOptions(options: Options, searchValue: string, onFilter?: (searchValue: string, option: Option) => boolean): Options;
export declare function transformRenderOptionsToRealOptions(options: Options): Option[];
export declare function getNextOption(options: Options, searchValue: string, option: Option): Option;
export declare function getPreOption(options: Options, searchValue: string, option: Option): Option;