@samyeak/nepali-date-picker-mantine
Version:
Nepali Calendars, date and time pickers based on Mantine components
24 lines (23 loc) • 1.24 kB
TypeScript
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;
}
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 {};