@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
34 lines (33 loc) • 1.54 kB
TypeScript
import { ChangeEvents } from '@smart-react-components/core/element-props/change-events';
import { FocusEvents } from '@smart-react-components/core/element-props/focus-events';
import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props';
import { KeyboardEvents } from '@smart-react-components/core/element-props/keyboard-events';
import { ContentElement, JSXElementProps, PaletteProp, SetState, ShapeProp, SizeProps } from '@smart-react-components/core/types';
import React from 'react';
import { DatePickerTimeType, DatePickerType } from '../constants/date-picker';
export { DatePickerType, DatePickerTimeType } from '../constants/date-picker';
export interface Props extends IntrinsicStyledCoreProps, SizeProps, ChangeEvents, FocusEvents, KeyboardEvents {
elementProps?: JSXElementProps;
hasBorder?: boolean;
isBlock?: boolean;
isDisabled?: boolean;
isOutline?: boolean;
isReadOnly?: boolean;
isRequired?: boolean;
isSoft?: boolean;
label?: string;
leftAddon?: ContentElement;
onCancel?: (e: Event) => void;
onClose?: (e: Event) => void;
onSave?: (e: Event) => void;
palette?: PaletteProp;
pickerType?: DatePickerType;
placeholder?: string;
rightAddon?: ContentElement;
shape?: ShapeProp;
timeType?: DatePickerTimeType;
setValue: SetState<Date>;
value: Date;
}
declare const InputDatePicker: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
export default InputDatePicker;