react-calendar
Advanced tools
Comparing version 2.18.0 to 2.18.1
@@ -6,3 +6,3 @@ declare module "react-calendar" { | ||
type OnChangeDateCallback = (date: Date | Date[]) => void | ||
type FormatterCallback = (date: Date) => string | ||
type FormatterCallback = (locale: string, date: Date) => string | ||
type ViewCallback = (props: ViewCallbackProperties) => void | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "react-calendar", | ||
"version": "2.18.0", | ||
"version": "2.18.1", | ||
"description": "Ultimate calendar for your React app.", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -90,5 +90,5 @@ ![downloads](https://img.shields.io/npm/dt/react-calendar.svg) ![build](https://img.shields.io/travis/wojtekmaj/react-calendar/master.svg) ![dependencies](https://img.shields.io/david/wojtekmaj/react-calendar.svg | ||
|className|Defines class name(s) that will be added along with "react-calendar" to the main React-Calendar `<div>` element.|<ul><li>String: `"class1 class2"`</li><li>Array of strings: `["class1", "class2 class3"]`</li></ul>| | ||
|formatMonth|Function called to override default formatting of month names. Can be used to use your own formatting function.|`(value) => formatDate(value, 'MMM')`| | ||
|formatMonthYear|Function called to override default formatting of month and year in the top navigation section. Can be used to use your own formatting function.|`(value) => formatDate(value, 'MMMM YYYY')`| | ||
|formatShortWeekday|Function called to override default formatting of weekday names. Can be used to use your own formatting function.|`(value) => formatDate(value, 'dd')`| | ||
|formatMonth|Function called to override default formatting of month names. Can be used to use your own formatting function.|`(locale, date) => formatDate(date, 'MMM')`| | ||
|formatMonthYear|Function called to override default formatting of month and year in the top navigation section. Can be used to use your own formatting function.|`(locale, date) => formatDate(date, 'MMMM YYYY')`| | ||
|formatShortWeekday|Function called to override default formatting of weekday names. Can be used to use your own formatting function.|`(locale, date) => formatDate(date, 'dd')`| | ||
|locale|Defines which locale should be used by the calendar. Can be any [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). Defaults to user's browser settings.|`"hu-HU"`| | ||
@@ -95,0 +95,0 @@ |maxDate|Defines maximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.|Date: `new Date()`| |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
479035
86
11219