@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
38 lines (37 loc) • 1.16 kB
TypeScript
import * as React from 'react';
import { BaseProps } from "../../../utils/types";
import { OptionSchema } from "../../atoms/dropdown/option";
declare type fetchOptionsFunction = (searchTerm: string) => Promise<{
count: number;
searchTerm?: string;
scrollToIndex?: number;
options: OptionSchema[];
}>;
export declare type TimeFormat = '12-Hour' | '24-Hour';
export interface TimePickerDropdownProps extends BaseProps {
withSearch?: boolean;
startTime?: string;
endTime?: string;
interval: number;
timeFormat: TimeFormat;
open?: boolean;
noResultMessage?: string;
showDuration?: boolean;
disabledSlotList?: string[];
onChange?: (selected: any[] | any, name?: string | number) => void;
fetchTimeOptions?: fetchOptionsFunction;
id?: string;
error?: boolean;
'aria-label'?: string;
optionsAriaLabel?: string;
}
export declare const TimePickerWithSearch: {
(props: TimePickerDropdownProps): React.JSX.Element;
defaultProps: {
timeFormat: string;
interval: number;
optionsAriaLabel: string;
};
displayName: string;
};
export default TimePickerWithSearch;