Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
export declare function clampTime(time: string, min: string | undefined, max: string | undefined): {
timeString: string;
hours: number;
minutes: number;
seconds: number;
};

View File

@@ -0,0 +1,35 @@
import { TimePickerAmPmLabels, TimePickerFormat } from '../../TimePicker.types';
interface GetParsedTimeInput {
time: string;
format: TimePickerFormat;
amPmLabels: TimePickerAmPmLabels;
}
interface ConvertTimeTo12HourFormatInput {
hours: number | null;
minutes: number | null;
seconds: number | null;
amPmLabels: TimePickerAmPmLabels;
}
export declare function convertTimeTo12HourFormat({ hours, minutes, seconds, amPmLabels, }: ConvertTimeTo12HourFormatInput): {
hours: null;
minutes: null;
seconds: null;
amPm: null;
} | {
hours: number;
minutes: number | null;
seconds: number | null;
amPm: string;
};
export declare function getParsedTime({ time, format, amPmLabels }: GetParsedTimeInput): {
hours: number;
minutes: number | null;
seconds: number | null;
amPm: string;
} | {
amPm: null;
hours: number | null;
minutes: number | null;
seconds: number | null;
};
export {};

View File

@@ -0,0 +1,7 @@
interface GetTimeRangeInput {
startTime: string;
endTime: string;
interval: string;
}
export declare function getTimeRange({ startTime, endTime, interval }: GetTimeRangeInput): string[];
export {};

View File

@@ -0,0 +1,15 @@
import { TimePickerAmPmLabels, TimePickerFormat } from '../../TimePicker.types';
interface GetTimeStringInput {
hours: number | null;
minutes: number | null;
seconds: number | null;
format: TimePickerFormat;
withSeconds: boolean;
amPm: string | null;
amPmLabels: TimePickerAmPmLabels;
}
export declare function getTimeString({ hours, minutes, seconds, format, withSeconds, amPm, amPmLabels, }: GetTimeStringInput): {
valid: boolean;
value: string;
};
export {};

View File

@@ -0,0 +1,7 @@
interface IsSameTimeInput {
time: string;
compare: string;
withSeconds: boolean;
}
export declare function isSameTime({ time, compare, withSeconds }: IsSameTimeInput): boolean;
export {};

View File

@@ -0,0 +1 @@
export declare function padTime(value: number): string;

View File

@@ -0,0 +1,5 @@
export declare function splitTimeString(timeString: string): {
hours: number | null;
minutes: number | null;
seconds: number | null;
};

View File

@@ -0,0 +1,7 @@
export declare function timeToSeconds(timeStr: string): number;
export declare function secondsToTime(seconds: number): {
timeString: string;
hours: number;
minutes: number;
seconds: number;
};