@vurilo/nepali-date-picker
Version:
Nepali Calendars, date and time pickers based on Mantine components
34 lines (33 loc) • 1.68 kB
TypeScript
import React from "react";
import { BoxProps, StylesApiProps, ElementProps, Factory } from "@mantine/core";
import { MonthSettings, MonthStylesNames } from "../Month";
import { CalendarHeaderSettings, CalendarHeaderStylesNames } from "../CalendarHeader";
export type MonthLevelStylesNames = MonthStylesNames | CalendarHeaderStylesNames;
export interface MonthLevelBaseSettings extends MonthSettings {
/** dayjs label format to display month label or a function that returns month label based on month value, defaults to "MMMM YYYY" */
monthLabelFormat?: string | ((month: Date) => React.ReactNode);
}
export interface MonthLevelSettings extends MonthLevelBaseSettings, CalendarHeaderSettings {
}
export interface MonthLevelProps extends BoxProps, MonthLevelSettings, Omit<StylesApiProps<MonthLevelFactory>, "classNames" | "styles">, ElementProps<"div"> {
classNames?: Partial<Record<string, string>>;
styles?: Partial<Record<string, React.CSSProperties>>;
__staticSelector?: string;
/** Month that is currently displayed */
month: Date;
/** aria-label for change level control */
levelControlAriaLabel?: string;
/** Determines whether days should be static, static days can be used to display month if it is not expected that user will interact with the component in any way */
static?: boolean;
isNepali?: boolean;
}
export type MonthLevelFactory = Factory<{
props: MonthLevelProps;
ref: HTMLDivElement;
stylesNames: MonthLevelStylesNames;
}>;
export declare const MonthLevel: import("@mantine/core").MantineComponent<{
props: MonthLevelProps;
ref: HTMLDivElement;
stylesNames: MonthLevelStylesNames;
}>;