@samyeak/nepali-date-picker-mantine
Version:
Nepali Calendars, date and time pickers based on Mantine components
25 lines (24 loc) • 1.28 kB
TypeScript
import React from 'react';
import { BoxProps, StylesApiProps, Factory, InputVariant, __InputStylesNames, MantineComponentStaticProperties } from '@mantine/core';
import { CalendarStylesNames } from '../Calendar';
import { DatePickerBaseProps } from '../DatePicker';
import { DatePickerType } from '../../types';
import { DateInputSharedProps } from '../PickerInputBase';
export type DatePickerInputStylesNames = __InputStylesNames | CalendarStylesNames;
export interface DatePickerInputProps<Type extends DatePickerType = 'default'> extends BoxProps, DateInputSharedProps, DatePickerBaseProps<Type>, StylesApiProps<DatePickerInputFactory> {
/** Dayjs format to display input value, "MMMM D, YYYY" by default */
valueFormat?: string;
}
export type DatePickerInputFactory = Factory<{
props: DatePickerInputProps;
ref: HTMLButtonElement;
stylesNames: DatePickerInputStylesNames;
variant: InputVariant;
}>;
type DatePickerInputComponent = (<Type extends DatePickerType = 'default'>(props: DatePickerInputProps<Type> & {
ref?: React.ForwardedRef<HTMLButtonElement>;
}) => JSX.Element) & {
displayName?: string;
} & MantineComponentStaticProperties<DatePickerInputFactory>;
export declare const DatePickerInput: DatePickerInputComponent;
export {};