digitinary-ui
Version:
Digitinary UI Library
54 lines (53 loc) • 1.27 kB
TypeScript
import { FC } from 'react';
import { SizeType, periodType } from '../../types';
import './style.scss';
interface DateRangeProps {
id?: string;
label?: JSX.Element | string;
helperText?: string;
errorMsg?: string;
success?: boolean;
disabled?: boolean;
maxRangeSpan?: periodType;
value?: {
value: string;
type: {
key: string;
value: string;
};
};
onChange: (newValue?: {
value: string;
type: {
key: string;
value: string;
};
}) => void;
size?: SizeType;
clearable?: boolean;
hideMoreDateOptions?: boolean;
showTimePicker?: boolean;
acceptSameDay?: boolean;
maxStartDate?: string;
minStartDate?: string;
maxEndDate?: string;
minEndDate?: string;
disableStartDate?: boolean;
disableEndDate?: boolean;
labels?: {
month: string;
day: string;
Apply: string;
week: string;
Select: string;
Last: string;
Start_Date: string;
End_Date: string;
Selected_Date: string;
};
className?: string;
dataId?: string;
required?: boolean;
}
declare const DateRange: FC<DateRangeProps>;
export default DateRange;