eufemia
eufemia copied to clipboard
feat(DatePicker): Convert to functional components with typescript and hooks
- [x]
DatePicker
- [x]
DatePickerAddon
- [x]
DatePickerCalc
- [x]
DatePickerCalendar
- [x]
DatePickerContext
- [x]
DatePickerFooter
- [x]
DatePickerInput
- [x]
DatePickerProvider
- [x]
DatePickerRange
- [x] Fix tests
- [x] Fix types
- [x] Fix
onClickOutside
functionality - [x] Make tests for
onClickOutside
- [x] Fix
DatePickerProvider
getDerivedStateFromProps
logic - [x] Fix
DatePickerInput
mask and value logic - [x] Fix
DatePickerInput
paste functionality - [x] General Bugfixes
- [x] Move provider date logic to hook
- [x] Move provider view logic to hook
- [x] Move date correction logic closer to trigger
- [x] Move
lastEventCallCache
to hook - [x] Fix
callOnChangeHandler
callback functionality - [x] Fix Input onChange handling
- [x] Wrap necessary functions or values in
useCallback
oruseMemo
hooks - [x] Remove
locale
prop, and depricate (Solved by only importing the two relevant functions used by theLocale
object) - [x] Replace all
any
types with more accurate ones - [x] Fix Range Keyboard functionality
- [x] Clean up mess 🙏
- [x] fix type errors
- [x] Fix shortcuts
- [x] Fix cancel button
- [x] Stop cancel button from resetting date