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

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

@@ -0,0 +1,3 @@
export { useDatesState } from './use-dates-state/use-dates-state';
export { useDatesInput } from './use-dates-input/use-dates-input';
export { useUncontrolledDates } from './use-uncontrolled-dates/use-uncontrolled-dates';

View File

@@ -0,0 +1,24 @@
import { DatePickerType, DatePickerValue } from '../../types';
import { DateFormatter } from '../../utils';
interface UseDatesInput<Type extends DatePickerType = 'default'> {
type: Type;
value: DatePickerValue<Type> | undefined;
defaultValue: DatePickerValue<Type> | undefined;
onChange: ((value: DatePickerValue<Type>) => void) | undefined;
locale: string | undefined;
format: string | undefined;
closeOnChange: boolean | undefined;
sortDates: boolean | undefined;
labelSeparator: string | undefined;
valueFormatter: DateFormatter | undefined;
}
export declare function useDatesInput<Type extends DatePickerType = 'default'>({ type, value, defaultValue, onChange, locale, format, closeOnChange, sortDates, labelSeparator, valueFormatter, }: UseDatesInput<Type>): {
_value: any;
setValue: (val: any) => void;
onClear: () => void;
shouldClear: boolean;
formattedValue: string;
dropdownOpened: boolean;
dropdownHandlers: import("@mantine/hooks").UseDisclosureHandlers;
};
export {};

View File

@@ -0,0 +1,2 @@
import { DateStringValue } from '../../../types';
export declare function isInRange(date: DateStringValue, range: [DateStringValue, DateStringValue]): boolean;

View File

@@ -0,0 +1,27 @@
import { DatePickerType, DateStringValue, PickerBaseProps } from '../../types';
interface UseDatesRangeInput<Type extends DatePickerType = 'default'> extends PickerBaseProps<Type> {
level: 'year' | 'month' | 'day';
type: Type;
onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void;
}
export declare function useDatesState<Type extends DatePickerType = 'default'>({ type, level, value, defaultValue, onChange, allowSingleDateInRange, allowDeselect, onMouseLeave, }: UseDatesRangeInput<Type>): {
onDateChange: (date: DateStringValue) => void;
onRootMouseLeave: ((event: React.MouseEvent<HTMLDivElement>) => void) | undefined;
onHoveredDateChange: import("react").Dispatch<import("react").SetStateAction<string | null>>;
getControlProps: (date: DateStringValue) => {
selected: any;
inRange: boolean;
firstInRange: boolean;
lastInRange: boolean;
'data-autofocus': true | undefined;
} | {
selected: any;
'data-autofocus': true | undefined;
inRange?: undefined;
firstInRange?: undefined;
lastInRange?: undefined;
};
_value: any;
setValue: any;
};
export {};

View File

@@ -0,0 +1,11 @@
import { DatePickerType, DatePickerValue, DateStringValue } from '../../types';
interface UseUncontrolledDates<Type extends DatePickerType = 'default'> {
type: Type;
value: DatePickerValue<Type> | undefined;
defaultValue: DatePickerValue<Type> | undefined;
onChange: ((value: DatePickerValue<Type, DateStringValue>) => void) | undefined;
withTime?: boolean;
}
export declare const convertDatesValue: (value: any, withTime: boolean) => string | (string | null | undefined)[] | null | undefined;
export declare function useUncontrolledDates<Type extends DatePickerType = 'default'>({ type, value, defaultValue, onChange, withTime, }: UseUncontrolledDates<Type>): any[];
export {};