@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
23 lines (22 loc) • 678 B
TypeScript
export type TimePickerFormat = '12h' | '24h';
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[];