UNPKG

preline

Version:

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.

35 lines (32 loc) 843 B
import { Options } from 'vanilla-calendar-pro/types'; import { ISelectOptions } from '../select/interfaces'; export interface ICustomDatepickerOptions extends Options { removeDefaultStyles?: boolean; mode?: 'custom-select' | 'default'; inputModeOptions?: { dateSeparator?: string; itemsSeparator?: string; }, templates?: { time?: string, arrowPrev?: string, arrowNext?: string }, styles?: Options['styles'] & { customSelect?: { shared?: ISelectOptions; years?: ISelectOptions; months?: ISelectOptions; hours?: ISelectOptions; minutes?: ISelectOptions; meridiem?: ISelectOptions; } }; dateFormat?: string; dateLocale?: string; replaceTodayWithText?: boolean; } export interface IDatepicker { options?: ICustomDatepickerOptions; formatDate(date: string | number | Date, format?: string): string; }