- Adds support for React 17
- Localize AM and PM strings
- Make calendar fluid width
- Fixes findDOMNode deprecated warning in Strict Mode - Thanks @kkalve
- Simplification of the base code - Thanks @onlined
- Fixes typescript typings not being exposed publicly
- Big refactor, the state is not derived from the props after every update.
disableCloseOnClickOutsideprop is nowcloseOnClickOutside(avoid double negations).onBlurandonFocusare renamed toonCloseandonOpensince they had nothing to do with the blur event and it was misleading some users. If we want to listen to the input'sonBlurandonFocususeinputProps.defaultValueprop is now calledinitialValue.- Updated typescript definitions.
- Time is not updated anymore on right clicks.
- Creates
renderViewprop to customize the whole calendar. - Creates
updateOnViewprop to decide when to update the date. onViewModeChangeprop renamed toonNavigate.- Creates
onBeforeNavigateprop. - Creates
setViewDataandnavigatemethods. - Fixes error clicking on days from the previous or next month in the days view.
- Fixes month, year and time views for locales that doesn't use gregorian numbers.
- Adds a playground to make simpler to try out the library by
npm run playground. - Not depending on gulp to create the build anymore
- Updated most of the dependencies.
- This version was published by error and can't be overriden. The first release for v3 branch is 3.0.1
- Turns moment timezone peer dependency in a runtime error when missing using
displayTimezone.
- Fixes input event overriding
- The prop
disableOnClickOutsidehas been renamed todisableCloseOnClickOutside - The calendar doesn't get closed an open when clicking in the input anymore.
- Fixes errors not finding dates when customizing day rendering.
- Event listeners in
inputPropsnow only override default behaviour when returningfalse. - Adds the
displayTimeZoneprop. Thanks to @martingordon
- New
onNavigateBackandonNavigateForwardhooks thanks to @DaanDD and @simeg. - Touch improvements by @NicoDos
- TS and debugging improvements
- Make
viewDatedynamic
- Use more appropriate cursor for empty space in time picker and in day texts
- Add
viewDateprop that sets a value when opening the calendar when there is no selected date - Make
disableOnClickOutsidework as intended - Better touch support for tapping and holding
- Use static property
defaultPropsinstead ofgetDefaultProps
- The
renderInputprop now receivescloseCalendarfunction as well
- The open prop should now work as intended
- onFocus now receives the browser event
- Do not open browser menu on right click of arrows in time view
- Open calendar when onClick is triggered, before it would just react to onFocus
- Update TypeScript definitions for value and defaultValue to comply with code
- Fix bug where AM/PM would not sync between component value and input field value
- Add renderInput prop which let's the consumer of the component render their own HTML input element
- Update react-onclickoutside dependency
- Remove isValidDate check before rendering as implementation was causing crashes in some edge cases.
- Move @types/react back to devDependencies
- Add demo app.
- Fix build files.
- Add isValidDate check before rendering so it doesn't render with an invalid date.
- Trigger callback method on view mode changes
- Update TypeScript definitions
- Replace deprecated React method with non-deprecated method
- Increase click area of arrows for changing day/month/year
- Update code according to React 15.5.0
- Remove usage of React.createClass
- Use separate module for PropTypes
- Fixes issue where incorrect current month is shown
- Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger
- Update react-onclickoutside dependency. That should fix most of the problems about closeOnSelect.
- Revert commits related to
closeOnSelectthat did not fix all issues they were meant to
- Fix bug where
closeOnSelectwas not closing when it was set totrue - Fix bug where component would not immediately re-render when updating either
utcorlocaleprop
- Fix bug where
closeOnSelect=truewould cause component to close on state change
- Fix
isValidDaterelated bug where current month would be invalid - Trigger re-render of component when
viewModechanges - Never append
rdtOldclass in year view
- Fix year related bug in tests where year was set to 2016
- Add a yarnfile so yarn is now possible to use for installing dependencies
- Fix timeFormat related bug where 'A' was being picked up but not 'a', for setting 12-hour clock.
- Add typings for TypeScript 2.0. We now support TypeScript typings for versions 1.8 and 2.0.
- Bumps the version to skip buggy deployment 2.7.4
- Reverting updating
reactrelated dependencies. They were not the issue so they should not be set to the latest version ofreact.
- When updating
momentto2.16.0something broke, hopefully by updating allreactprefixed dependencies to15.4.0and changing the syntax in the dependency object a bit will resolve this issue.
- Bug fix: When setting
localeand entering month view mode the component would sometimes freeze, depending on the locale. This has now been fixed.
- Bug fix:
onFocusandonBlurwere being called in a way causing state to reset. This unwanted behavior is now adjusted.
isValidDatenow supports months and years.utcprop was added, by setting it totrueinput time values will be interpreted as UTC (Zulu time).- Bug fix: The input value now updates when
dateFormatchanges. - Removed the source-map file because the commit it was introduced in was causing the minified file to be bigger than the non-minified.
- Update file references in
package.json
- Added a source-map file.
- Fixed bug with invalid moment object.
- Decreased npm package size by ~29.3KB.
- Fixed hover styles for days
- Added multiple simultaneous datetime component support.
classNameprop now supports string arrays- Fixes 12:00am
- Removed warning for missing element keys.
- Added pre-commit hook for tests.
- Added the
timeConstraintsprop.
- Added ES linting.
- Added
closeOnTabproperty.
- Updated readme.
- Fixed short months for not English locales.
- Fixed mixed 12 AM/PM.
- Time editor now handles the A format to display 12h times.
- Added typescript definition file.
- Changed button markup and updated styles.
- Fixes autoclosing on time change.
- Controlled datepicker now working for controlled datepickers
- The picker can be used as a month or year picker just giving a format date without days/months
- Updates test suite
- Fixed rdtActive not getting set.
- Add react-dom as external dependency.
- Fixed rendering a span directly under the calendar table.
- Added dev setup
- Added example
- Fixed january days go to november problem.
- Fixed two days can't have the same header name.
- DOM classes are now prefixed with
rdt. - A modified version of OnClickOutside is now included in the code to handle react 0.13 and 0.14 versions.
- Updated dependencies.
- Added open prop.
- Added strictParsing prop.
- Fixed not possible to set value to
''.
- Removed classlist-polyfill so the component can be used in the server side.
- Updates react-onclickoutside dependency to avoid the bug Pomax/react-onclickoutside#20
- Datepicker can have an empty value. If the value in the input is not valid,
onChangeandonBlurwill return input value. onBluris not triggered anymore if the calendar is not open.
- Added travis CI
- Fixed not showing timepicker when
dateFormat=false.
This is the release candidate for this project. Now it is pretty usable and API won't change drastically in a while. If you were using the alpha versions (v0.x) there is a bunch of breaking changes:
dateprop is now calleddefaultValueand it is the initial value to use the component uncontrolled.valueprop has been added to use it as a controlled component.- Removed
minDateandmaxDateprops. Now to define what dates are valid it is possible to use the newisValidDateprop. dateFormatandtimeFormatdefault value is always the locale default format. In case that you don't want the component to show the date/time picker you should setdateFormat/timeFormattofalse.
Moreover:
- Buttons doesn't submit anymore when the Datetime component is in a form.
classNameprop has been added to customize component class.