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,3 @@
import { DateStringValue } from '../../types';
export declare function assignTime(dateValue: DateStringValue | null, // Date to assign time to
timeString: string): DateStringValue | null;

View File

@@ -0,0 +1,2 @@
import { DateStringValue } from '../../types';
export declare function clampDate(minDate: DateStringValue | Date | undefined, maxDate: DateStringValue | Date | undefined, date: DateStringValue | Date): DateStringValue;

View File

@@ -0,0 +1,7 @@
import { DateStringValue } from '../../types';
interface GetDefaultClampedDate {
minDate: DateStringValue | Date | undefined;
maxDate: DateStringValue | Date | undefined;
}
export declare function getDefaultClampedDate({ minDate, maxDate, }: GetDefaultClampedDate): DateStringValue;
export {};

View File

@@ -0,0 +1,15 @@
import { DatePickerType, DatePickerValue } from '../../types';
interface DateFormatterInput {
type: DatePickerType;
date: DatePickerValue<DatePickerType>;
locale: string;
format: string;
labelSeparator: string;
}
export type DateFormatter = (input: DateFormatterInput) => string;
export declare function defaultDateFormatter({ type, date, locale, format, labelSeparator, }: DateFormatterInput): string;
interface GetFormattedDateInput extends DateFormatterInput {
formatter?: DateFormatter;
}
export declare function getFormattedDate({ formatter, ...others }: GetFormattedDateInput): string;
export {};

View File

@@ -0,0 +1,11 @@
import { RefObject } from 'react';
type ControlsRef = RefObject<HTMLButtonElement[][][]>;
interface HandleControlKeyDownInput {
controlsRef: ControlsRef;
levelIndex: number;
rowIndex: number;
cellIndex: number;
event: React.KeyboardEvent<HTMLButtonElement>;
}
export declare function handleControlKeyDown({ controlsRef, levelIndex, rowIndex, cellIndex, event, }: HandleControlKeyDownInput): void;
export {};

7
node_modules/@mantine/dates/lib/utils/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export { getFormattedDate } from './get-formatted-date/get-formatted-date';
export { handleControlKeyDown } from './handle-control-key-down/handle-control-key-down';
export { assignTime } from './assign-time/assign-time';
export { getDefaultClampedDate } from './get-default-clamped-date/get-default-clamped-date';
export { clampDate } from './clamp-date/clamp-date';
export { toDateString, toDateTimeString } from './to-date-string/to-date-string';
export type { DateFormatter } from './get-formatted-date/get-formatted-date';

View File

@@ -0,0 +1,6 @@
import { Dayjs } from 'dayjs';
import { DateStringValue, DateTimeStringValue } from '../../types';
type ExactOptionalReturn<T, MainType> = T extends undefined ? undefined : T extends null ? null : MainType;
export declare function toDateString<T extends string | number | Date | Dayjs | undefined | null>(value: T): ExactOptionalReturn<T, DateStringValue>;
export declare function toDateTimeString<T extends string | number | Date | Dayjs | undefined | null>(value: T): ExactOptionalReturn<T, DateTimeStringValue>;
export {};