UNPKG

@samyeak/nepali-date-picker-mantine

Version:

Nepali Calendars, date and time pickers based on Mantine components

24 lines (23 loc) 1.26 kB
import React from 'react'; import { BoxProps, StylesApiProps, Factory, InputVariant, __InputStylesNames, MantineComponentStaticProperties } from '@mantine/core'; import { MonthPickerBaseProps, MonthPickerStylesNames } from '../MonthPicker'; import { DatePickerType } from '../../types'; import { DateInputSharedProps } from '../PickerInputBase'; export type MonthPickerInputStylesNames = __InputStylesNames | MonthPickerStylesNames; export interface MonthPickerInputProps<Type extends DatePickerType = 'default'> extends BoxProps, DateInputSharedProps, MonthPickerBaseProps<Type>, StylesApiProps<MonthPickerInputFactory> { /** Dayjs format to display input value, "MMMM YYYY" by default */ valueFormat?: string; } export type MonthPickerInputFactory = Factory<{ props: MonthPickerInputProps; ref: HTMLButtonElement; stylesNames: MonthPickerInputStylesNames; variant: InputVariant; }>; type MonthPickerInputComponent = (<Type extends DatePickerType = 'default'>(props: MonthPickerInputProps<Type> & { ref?: React.ForwardedRef<HTMLButtonElement>; }) => JSX.Element) & { displayName?: string; } & MantineComponentStaticProperties<MonthPickerInputFactory>; export declare const MonthPickerInput: MonthPickerInputComponent; export {};