infinity-forge
Version:
54 lines (53 loc) • 5.77 kB
TypeScript
import { Option } from '../../../../../../ui/index.js';
import type { SelectParametersHooks } from '../../types.js';
export declare function useSelectProps({ id, setMenuIsOpen, isLoading, selectPropsInfinityForge, field, menuIsOpen, valueSelect, }: SelectParametersHooks & {
valueSelect: Option[];
}): {
id: string;
name: string;
isLoading: boolean;
menuIsOpen: boolean;
placeholder: string;
isClearable: boolean;
classNamePrefix: string;
isMulti: boolean;
tabSelectsValue: boolean;
backspaceRemovesValue: boolean;
isSearchable: boolean;
openMenuOnClick: boolean;
openMenuOnFocus: boolean;
blurInputOnSelect: boolean;
onFocus: () => void;
onMenuOpen: () => void;
menuPortalTarget: HTMLElement;
className: string;
menuPlacement: "auto" | "bottom" | "top";
closeMenuOnSelect: boolean;
hideSelectedOptions: boolean;
noOptionsMessage: () => string;
isDisabled: boolean;
styles: {
valueContainer: (provided: any) => any;
clearIndicator?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").ClearIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
container?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").ContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
control?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").ControlProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
dropdownIndicator?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
group?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").GroupProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
groupHeading?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").GroupHeadingProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
indicatorsContainer?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").IndicatorsContainerProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
indicatorSeparator?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").IndicatorSeparatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
input?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
loadingIndicator?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").LoadingIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
loadingMessage?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").NoticeProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
menu?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").MenuProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
menuList?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").MenuListProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
menuPortal?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select/dist/declarations/src/components/Menu").PortalStyleArgs) => import("react-select").CSSObjectWithLabel;
multiValue?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").MultiValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
multiValueLabel?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").MultiValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
multiValueRemove?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").MultiValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
noOptionsMessage?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").NoticeProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
option?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").OptionProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
placeholder?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").PlaceholderProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
singleValue?: (base: import("react-select").CSSObjectWithLabel, props: import("react-select").SingleValueProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => import("react-select").CSSObjectWithLabel;
};
};