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 YearsListStylesNames = 'yearsListControl' | 'yearsList' | 'yearsListCell' | 'yearsListRow';
export interface YearsListSettings extends ControlsGroupSettings {
/** Prevents focus shift when buttons are clicked */
__preventFocus?: boolean;
/** Determines whether propagation for Escape key should be stopped */
__stopPropagation?: boolean;
/** dayjs format for years list @default `'YYYY'` */
yearsListFormat?: string;
/** Passes props down to year picker control based on date */
getYearControlProps?: (date: DateStringValue) => Partial<PickerControlProps> & DataAttributes;
/** Component size */
size?: MantineSize;
/** Determines whether controls should be separated @default `true` */
withCellSpacing?: boolean;
}
export interface YearsListProps extends BoxProps, YearsListSettings, StylesApiProps<YearsListFactory>, ElementProps<'table'> {
__staticSelector?: string;
/** Decade value to display */
decade: DateStringValue;
}
export type YearsListFactory = Factory<{
props: YearsListProps;
ref: HTMLTableElement;
stylesNames: YearsListStylesNames;
}>;
export declare const YearsList: import("@mantine/core").MantineComponent<{
props: YearsListProps;
ref: HTMLTableElement;
stylesNames: YearsListStylesNames;
}>;

View File

@@ -0,0 +1,10 @@
import { DateStringValue } from '../../../types';
import { PickerControlProps } from '../../PickerControl';
interface GetYearInTabOrderInput {
years: DateStringValue[][];
minDate: DateStringValue | Date | undefined;
maxDate: DateStringValue | Date | undefined;
getYearControlProps: ((year: DateStringValue) => Partial<PickerControlProps>) | undefined;
}
export declare function getYearInTabOrder({ years, minDate, maxDate, getYearControlProps, }: GetYearInTabOrderInput): string;
export {};

View File

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

View File

@@ -0,0 +1,2 @@
export { YearsList } from './YearsList';
export type { YearsListFactory, YearsListProps, YearsListSettings, YearsListStylesNames, } from './YearsList';

View File

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