UNPKG

@commercetools-uikit/select-utils

Version:

Utilities for working with select components.

29 lines (28 loc) 1.18 kB
import { OptionProps } from 'react-select'; import { SELECT_DROPDOWN_OPTION_TYPES } from "./constants.js"; export type TData = { label?: string; key?: string; id?: string; }; export type TSelectDropdownOptionTypesKeys = keyof typeof SELECT_DROPDOWN_OPTION_TYPES; export type TDoublePropertySelectInputOptionProps = { data?: TData; noValueFallback?: string; optionType?: (typeof SELECT_DROPDOWN_OPTION_TYPES)[TSelectDropdownOptionTypesKeys]; } & OptionProps; export declare const MultiplePropertiesSelectInputOption: { (props: TDoublePropertySelectInputOptionProps): import("@emotion/react/jsx-runtime").JSX.Element; displayName: string; }; export declare const DoublePropertySelectInputOption: { (props: TDoublePropertySelectInputOptionProps): import("@emotion/react/jsx-runtime").JSX.Element; displayName: string; }; export type TCustomSelectInputOptionProps = { optionInnerProps: TDoublePropertySelectInputOptionProps; } & TDoublePropertySelectInputOptionProps; export declare const CustomSelectInputOption: { (props: TCustomSelectInputOptionProps): import("@emotion/react/jsx-runtime").JSX.Element; displayName: string; };