@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
24 lines (23 loc) • 728 B
TypeScript
export type TimePickerFormat = '12h' | '24h';
export type TimePickerType = 'time' | 'duration';
export interface TimePickerAmPmLabels {
am: string;
pm: string;
}
export interface TimePickerPasteSplitInput {
time: string;
format: TimePickerFormat;
amPmLabels: TimePickerAmPmLabels;
}
export interface TimePickerPasteSplitReturnType {
hours: number | null;
minutes: number | null;
seconds: number | null;
amPm: string | null;
}
export type TimePickerPasteSplit = (input: TimePickerPasteSplitInput) => TimePickerPasteSplitReturnType;
export interface TimePickerPresetGroup {
label: React.ReactNode;
values: string[];
}
export type TimePickerPresets = string[] | TimePickerPresetGroup[];