@wix/design-system
Version:
@wix/design-system
54 lines • 1.83 kB
TypeScript
declare class DatePicker extends React.PureComponent<any, any, any> {
static displayName: string;
static rootId: any;
static defaultProps: {
filterDate: () => boolean;
rtl: boolean;
width: string;
zIndex: number;
disabled: boolean;
inputDataHook: string;
popoverProps: {
zIndex: number;
};
disableKeyboardType: boolean;
onChange: () => void;
dateStyle: string;
shouldCloseOnSelect: boolean;
};
constructor(props: any);
rootId: string;
state: {
value: any;
isOpen: any;
inputValue: any;
autoFocus: boolean;
shouldOpenCalendar: boolean;
};
componentDidUpdate: (prevProps: any) => void;
_openCalendar: () => void;
openCalendar: () => void;
_closeCalendar: (shouldOpenCalendar?: boolean, shouldFocusInput?: boolean) => void;
_handleInputChange: ({ dateVal }: {
dateVal: any;
}) => void;
_transformDate: (value: any, oldValue: any) => any;
_saveNewValue: (value: any, modifiers?: {}) => void;
_filterDate: (date: any) => any;
_handleKeyDown: (event: any, newDate: any) => void;
_handleCalendarKeyDown: (event: any) => void;
_handleChange: (value: any, modifiers: any) => void;
_handleRef: (ref: any) => void;
_handleInputFocus: (event: any) => void;
_getLocale(): any;
_renderInput: () => React.JSX.Element;
_combineDataHooks: (start: any, end: any) => any;
render(): React.JSX.Element;
}
declare namespace DatePicker {
export { WixStyleReactEnvironmentContext as contextType };
}
export default DatePicker;
import React from 'react';
import { WixStyleReactEnvironmentContext } from '../WixStyleReactEnvironmentProvider/context';
//# sourceMappingURL=DatePicker.d.ts.map