UNPKG

@datacomvn/lunar-date-picker

Version:

A powerful React Native lunar date picker with timezone support, lazy loading, and native performance built on Nitro Modules

82 lines 2.07 kB
export interface LDP_Range { from: string; to?: string; } export type LDP_Mode = 'single' | 'range'; export type LDP_NativeAssetSource = { uri: string; width?: number; height?: number; scale?: number; }; export type LDP_PresentParams = { theme: string; language: string; title: string; submitText: string; fromText?: string; toText?: string; notSelectedText?: string; mode: LDP_Mode; /** * @default true */ showHeader?: boolean; onDone: (result: LDP_Range) => void; minimumDate?: string; maximumDate?: string; initialValue?: LDP_Range; }; /** * màu hex nhé */ export type LDP_CustomStyle = { titleColor: string; cancelColor: string; dateLabelColor: string; todayLabelColor: string; lunarDateLabelColor: string; selectedTextColor: string; weekendLabelColor: string; specialDayLabelColor: string; monthLabelColor: string; secondColor: string; backgroundColor: string; weekViewBackgroundColor: string; selectedBackgroundColor: string; rangeBackgroundColor: string; gradientColors: string[]; borderColor: string; }; export type LDP_CustomLanguage = { weekdayNames: string[]; /** * dùng cho phần selected hiển thị thứ ngày tháng */ locale: string; }; export type LDP_ConfigParams = { themes: Record<string, LDP_CustomStyle>; languages: Record<string, LDP_CustomLanguage>; yearRangeOffset: number; timeZoneOffset: number; /** * field này được thêm vào config thay present params * trong 1 app, cần tính thống nhất cho các picker * để tránh dev lạm dụng mỗi chỗ 1 kiểu nên tôi cho vào đây! */ showSubmitButton: boolean; /** * icon cho ngày đi */ fromImage: LDP_NativeAssetSource; /** * icon cho ngày về */ toImage: LDP_NativeAssetSource; /** * icon cho nút đóng */ closeImage: LDP_NativeAssetSource; }; //# sourceMappingURL=type.d.ts.map