UNPKG

krypton-ui

Version:

<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>

41 lines (40 loc) 1.05 kB
import { ComponentProps } from "react"; import { type Dayjs } from "dayjs"; import { Color } from "../../types"; type CalendarType = { color?: Color; selectedDate: Dayjs; onChange: any; required?: boolean; fullWidth?: boolean; placeholder?: string; hideInput?: boolean; }; type CurrentMonthType = { currentMonth?: boolean; }; type RowType = CurrentMonthType & { day: number; value: Dayjs; }; type RowCellType = CurrentMonthType & { selected: boolean; }; type InputBaseType = { fullWidth?: boolean; endIcon: React.ReactNode; }; type InputBaseStyleType = { color?: Color; readOnly?: boolean; }; type CalendarWrapperStyleType = { hideInput: boolean; }; export type InnerStyledProps = InputBaseType; export type CalendarWrapperStyleProps = CalendarWrapperStyleType; export type InputFieldStyledProps = InputBaseType & InputBaseStyleType; export type RowProps = RowType; export type RowCellProps = RowCellType; export type CalendarProps = ComponentProps<"div"> & CalendarType; export {};