UNPKG

@grafana/ui

Version:
47 lines (46 loc) 2.41 kB
import { SelectableValue } from '@grafana/data'; import { SelectContainer, SelectContainerProps } from './SelectContainer'; import { SelectCommonProps, MultiSelectCommonProps, SelectAsyncProps, VirtualizedSelectProps, VirtualizedSelectAsyncProps } from './types'; /** * @deprecated Use Combobox component instead * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function Select<T, Rest = {}>(props: SelectCommonProps<T> & Rest): import("react/jsx-runtime").JSX.Element; /** * @deprecated Use Combobox component instead * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function MultiSelect<T, Rest = {}>(props: MultiSelectCommonProps<T> & Rest): import("react/jsx-runtime").JSX.Element; export interface AsyncSelectProps<T> extends Omit<SelectCommonProps<T>, 'options'>, SelectAsyncProps<T> { value?: T | SelectableValue<T> | null; } /** * @deprecated Use Combobox component instead * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function AsyncSelect<T, Rest = {}>(props: AsyncSelectProps<T> & Rest): import("react/jsx-runtime").JSX.Element; /** * @deprecated Use Combobox component instead - it's virtualised by default! * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function VirtualizedSelect<T, Rest = {}>(props: VirtualizedSelectProps<T> & Rest): import("react/jsx-runtime").JSX.Element; /** * @deprecated Use Combobox component instead - it's virtualised by default! * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function AsyncVirtualizedSelect<T, Rest = {}>(props: VirtualizedSelectAsyncProps<T> & Rest): import("react/jsx-runtime").JSX.Element; interface AsyncMultiSelectProps<T> extends Omit<MultiSelectCommonProps<T>, 'options'>, SelectAsyncProps<T> { value?: Array<SelectableValue<T>>; } /** * @deprecated Use Combobox component instead * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-select--docs */ export declare function AsyncMultiSelect<T, Rest = {}>(props: AsyncMultiSelectProps<T> & Rest): import("react/jsx-runtime").JSX.Element; export { SelectContainer, type SelectContainerProps };