From 9a96703e28bb42f60fd838bee3f0d84aae8ca3d2 Mon Sep 17 00:00:00 2001 From: Shahab Date: Thu, 23 Sep 2021 17:16:15 +0330 Subject: [PATCH] v3.1.6 --- README.md | 120 +++++++++++++++--------------- index.d.ts | 1 + package.json | 2 +- website/src/docs/plugins/panel.js | 5 ++ 4 files changed, 67 insertions(+), 61 deletions(-) diff --git a/README.md b/README.md index a9dd2467..12a363eb 100644 --- a/README.md +++ b/README.md @@ -182,15 +182,15 @@ export default function Example() { both - locale - String - en + calendar + Object + gregorian both - calendar - String - gregorian + locale + Object + gregorian_en both @@ -205,6 +205,54 @@ export default function Example() { both + + onOpen + Function + + DatePicker + + + onClose + Function + + DatePicker + + + onPropsChange + Function + + both + + + onMonthChange + Function + + both + + + onYearChange + Function + + both + + + onFocusedDateChange + Function + + both + + + onPositionChange + Function + + DatePicker + + + digits + Array + + both + weekDays Array @@ -247,6 +295,12 @@ export default function Example() { false both + + disableDayPicker + Boolean + false + both + zIndex Number @@ -277,12 +331,6 @@ export default function Example() { both - - digits - Array - - both - buttons Boolean @@ -301,36 +349,6 @@ export default function Example() { both - - disableDayPicker - Boolean - false - both - - - onPropsChange - Function - - both - - - onMonthChange - Function - - both - - - onYearChange - Function - - both - - - onFocusedDateChange - Function - - both - className String @@ -517,24 +535,6 @@ export default function Example() { true DatePicker - - onOpen - Function - - DatePicker - - - onClose - Function - - DatePicker - - - onPositionChange - Function - - DatePicker - fixMainPosition Boolean diff --git a/index.d.ts b/index.d.ts index 2de2dab1..9e03b80b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -488,6 +488,7 @@ declare module "react-multi-date-picker/plugins/date_panel" { header?: string; markFocused?: boolean; focusedClassName?: string; + formatFunction?(strDate: string): React.ReactNode; } export default function DatePanel(props: DatePanelProps): React.ReactElement; diff --git a/package.json b/package.json index ccec2776..ad7eb076 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-multi-date-picker", - "version": "3.1.5", + "version": "3.1.6", "description": "a simple React datepicker component for working with gregorian, persian, arabic and indian calendars with the ability to select the date by single, multiple and range pickers.", "main": "./build/index.js", "types": "index.d.ts", diff --git a/website/src/docs/plugins/panel.js b/website/src/docs/plugins/panel.js index dbf1e147..b5d2d48b 100644 --- a/website/src/docs/plugins/panel.js +++ b/website/src/docs/plugins/panel.js @@ -88,6 +88,11 @@ export default function Doc({ translate, language, otherProps, localeImport }) { String + + formatFunction + Function + + ),