Releases: wojtekmaj/react-calendar
Releases · wojtekmaj/react-calendar
v3.3.1
v3.3.0
v3.2.1
v3.2.0
What's new?
- Added
value
toonActiveStartDateChange
andonViewChange
callbacks arguments (#379). - Added event to onChange callback (#388).
- Added
inputRef
prop to passref
to main<div>
rendered by<Calendar>
component (#384).
What's changed?
- Hide previous/next button when prevLabel/nextLabel is set to null (#436). Thanks, @benomatis!
v3.1.0
What's new?
- Added
allowPartialRange
which when set totrue
will cause onChange to be called with only partial result givenselectRange
prop (#351). - Added CSS classes to Navigation label items to allow better custom styling (#333). Thanks, @zigotica!
- Added CSS classes to tiles to allow better styling of hovered date range (#373). Thanks, @bywo!
What's changed?
- Refactored internals
- Added unit tests
- Improved documentation on hiding icons (#364). Thanks, @valtism!
Bug fixes
- Fixed re-rendering issue in Calendar component (#300). Thanks, @UtkarshPramodGupta!
v3.0.1
v3.0.0
❗️ = breaking change
What's new?
- ❗️ React-Calendar now ships with ES6 Modules along with CommonJS modules. This allows for Webpack and other bundlers to optimize your code better.
- React-Calendar can now be used as an uncontrolled component. Simply use
defaultValue
instead ofvalue
. More details in README (#217). - Added
showDoubleView
which causes React-Calendar to show two months/years/… at a time instead of one. - Added
formatYear
prop which allows you to customize formatting of year numbers (#241). - Added
onViewChange
callback prop called when the view is changed. - Added default color for "now" tile (current day/month/…) (#112).
- Exposed events in in onChange, onClick* functions (#291).
tileClassName
andtileContent
now also getactiveStartDate
in arguments (#257).- Added
locale
tonavigationLabel
arguments (#317). Thanks, @zorfling!
What's changed?
- ❗️ React-Calendar no longer supports React versions lower than 16.3 (#219).
- ❗️ Typings are no longer shipped with React-Calendar package (#272).
- ❗️ React-Calendar no longer imports its styles by default. If you want to continue to use them, import them separately as instructed in README.
- ❗️
onActiveDateChange
is nowonActiveStartDateChange
. - ❗️ Removed renderChildren backwards compatibility (#283).
- React-Calendar now uses @wojtekmaj/date-utils for date calculations.
formatMonthYear
is now used on month tiles in YearView.- Reduced code duplication (#277).
- Refactored some elements of the package for bundle size optimizations.
Bug fixes
- Fixed year not properly formatted in
th-TH
locale (#241). - Fixed handling dates in year < 100: clicking e.g. January 1st, 50 would cause the calendar to jump to January 1st, 1950.
- Fixed Calendar subcomponents re-rendering too often because of callback functions being merged in a suboptimal way.
v3.0.0-beta.6
v3.0.0-beta.5
❗️ = breaking change
What's new?
- Exposed events in in onChange, onClick* functions (#291).
What's changed?
- ❗️ React-Calendar no longer imports its styles by default. If you want to continue to use them, import them separately as instructed in README.
v3.0.0-beta.4
❗️ = breaking change
What's changed?
- ❗️ Remove renderChildren backwards compatibility (#283).
- Refactored some elements of the package for bundle size optimizations.
Bug fixes
- Fixed Calendar subcomponents re-rendering too often because of callback functions being merged in a suboptimal way.