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,33 @@
import { BoxProps, DataAttributes, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core';
import { ControlsGroupSettings, DateStringValue } from '../../types';
import { PickerControlProps } from '../PickerControl';
export type MonthsListStylesNames = 'monthsList' | 'monthsListCell' | 'monthsListRow' | 'monthsListControl';
export interface MonthsListSettings extends ControlsGroupSettings {
/** `dayjs` format for months list */
monthsListFormat?: string;
/** Passes props down month picker control */
getMonthControlProps?: (date: DateStringValue) => Partial<PickerControlProps> & DataAttributes;
/** Determines whether controls should be separated @default `true` */
withCellSpacing?: boolean;
}
export interface MonthsListProps extends BoxProps, MonthsListSettings, StylesApiProps<MonthsListFactory>, ElementProps<'table'> {
__staticSelector?: string;
/** Prevents focus shift when buttons are clicked */
__preventFocus?: boolean;
/** Determines whether propagation for Escape key should be stopped */
__stopPropagation?: boolean;
/** Year for which months list should be displayed */
year: DateStringValue;
/** Component size */
size?: MantineSize;
}
export type MonthsListFactory = Factory<{
props: MonthsListProps;
ref: HTMLTableElement;
stylesNames: MonthsListStylesNames;
}>;
export declare const MonthsList: import("@mantine/core").MantineComponent<{
props: MonthsListProps;
ref: HTMLTableElement;
stylesNames: MonthsListStylesNames;
}>;

View File

@@ -0,0 +1,10 @@
import { DateStringValue } from '../../../types';
import { PickerControlProps } from '../../PickerControl';
interface GetMonthInTabOrderInput {
months: DateStringValue[][];
minDate: DateStringValue | undefined;
maxDate: DateStringValue | undefined;
getMonthControlProps: ((month: DateStringValue) => Partial<PickerControlProps>) | undefined;
}
export declare function getMonthInTabOrder({ months, minDate, maxDate, getMonthControlProps, }: GetMonthInTabOrderInput): string;
export {};

View File

@@ -0,0 +1,2 @@
import { DateStringValue } from '../../../types';
export declare function getMonthsData(year: DateStringValue): string[][];

View File

@@ -0,0 +1,2 @@
export { MonthsList } from './MonthsList';
export type { MonthsListProps, MonthsListFactory, MonthsListSettings, MonthsListStylesNames, } from './MonthsList';

View File

@@ -0,0 +1,8 @@
import { DateStringValue } from '../../../types';
interface IsMonthDisabledInput {
month: DateStringValue;
minDate: DateStringValue | undefined;
maxDate: DateStringValue | undefined;
}
export declare function isMonthDisabled({ month, minDate, maxDate }: IsMonthDisabledInput): boolean;
export {};