UNPKG

@totalsoft/rocket-ui

Version:

A set of reusable and composable React components built on top of Material UI core for developing fast and friendly web applications interfaces.

9 lines (8 loc) 997 B
import { AutocompleteValue, FilterOptionsState } from '@mui/material'; export declare const findFirstNotNil: (propNames: string[], option: any) => unknown; export declare const isStringOrNumber: (option: unknown) => option is string | number; export declare const filterOptions: (labelKey: string, valueKey: string, creatable: boolean) => (options: unknown[], params: FilterOptionsState<unknown>) => unknown[]; export declare const getSimpleValue: <T extends Record<string, unknown>>(readonlyOptions: readonly T[], value: unknown, valueKey: string, isMultiSelection: boolean) => unknown; export declare const computeChangedMultiValue: <T, Multiple, DisableClearable, FreeSolo>(input: any, simpleValue: boolean, valueKey: string, labelKey: string) => AutocompleteValue<T, Multiple, DisableClearable, FreeSolo>; export declare const computeChangedSingleValue: (input: any, simpleValue: boolean, valueKey: string, labelKey: string) => any; export declare const stopPropagation: (event: any) => void;