Files
emaui/node_modules/@mantine/dates/lib/components/WeekdaysRow/WeekdaysRow.d.ts
2026-05-29 15:23:46 +03:00

34 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core';
import type { DateLabelFormat, DayOfWeek } from '../../types';
export type WeekdaysRowStylesNames = 'weekday' | 'weekdaysRow';
export type WeekdaysRowCssVariables = {
weekdaysRow: '--wr-fz' | '--wr-spacing';
};
export interface WeekdaysRowProps extends BoxProps, StylesApiProps<WeekdaysRowFactory>, ElementProps<'tr'> {
__staticSelector?: string;
/** Controls size */
size?: MantineSize;
/** dayjs locale */
locale?: string;
/** Number 0-6, 0 Sunday, 6 Saturday @default `1` Monday */
firstDayOfWeek?: DayOfWeek;
/** dayjs format to get weekday name @default `'dd'` */
weekdayFormat?: DateLabelFormat;
/** Sets cell type that is used for weekdays @default `'th'` */
cellComponent?: 'td' | 'th';
/** If set, heading for week numbers is displayed */
withWeekNumbers?: boolean;
}
export type WeekdaysRowFactory = Factory<{
props: WeekdaysRowProps;
ref: HTMLTableRowElement;
stylesNames: WeekdaysRowStylesNames;
vars: WeekdaysRowCssVariables;
}>;
export declare const WeekdaysRow: import("@mantine/core").MantineComponent<{
props: WeekdaysRowProps;
ref: HTMLTableRowElement;
stylesNames: WeekdaysRowStylesNames;
vars: WeekdaysRowCssVariables;
}>;