UNPKG

@vurilo/nepali-date-picker

Version:

Nepali Calendars, date and time pickers based on Mantine components

25 lines (24 loc) 1.27 kB
import React from "react"; import { BoxProps, StylesApiProps, Factory, InputVariant, __InputStylesNames, MantineComponentStaticProperties } from "@mantine/core"; import { YearPickerBaseProps, YearPickerStylesNames } from "../YearPicker"; import { DatePickerType } from "../../types"; import { DateInputSharedProps } from "../PickerInputBase"; export type YearPickerInputStylesNames = __InputStylesNames | YearPickerStylesNames; export interface YearPickerInputProps<Type extends DatePickerType = "default"> extends BoxProps, DateInputSharedProps, YearPickerBaseProps<Type>, StylesApiProps<YearPickerInputFactory> { /** Dayjs format to display input value, "YYYY" by default */ valueFormat?: string; placeholder?: string; } export type YearPickerInputFactory = Factory<{ props: YearPickerInputProps; ref: HTMLButtonElement; stylesNames: YearPickerInputStylesNames; variant: InputVariant; }>; type YearPickerInputComponent = (<Type extends DatePickerType = "default">(props: YearPickerInputProps<Type> & { ref?: React.ForwardedRef<HTMLButtonElement>; }) => JSX.Element) & { displayName?: string; } & MantineComponentStaticProperties<YearPickerInputFactory>; export declare const YearPickerInput: YearPickerInputComponent; export {};