Skip to content

Commit 2dbaaa1

Browse files
authored
Merge pull request arqex#683 from gfortaine/v3
fix: fix missing css in version 3 package
2 parents 28a3cfc + 1a7c959 commit 2dbaaa1

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
* Big refactor, the state is not derived from the props after every update.
55
* `disableCloseOnClickOutside` prop is now `closeOnClickOutside` (avoid double negations).
66
* `onBlur` and `onFocus` are renamed to `onClose` and `onOpen` since they had nothing to do with the blur event and it was misleading some users. If we want to listen to the input's `onBlur` and `onFocus` use `inputProps`.
7+
* `defaultValue` prop is now called `initialValue`.
78
* Updated typescript definitions.
89
* Time is not updated anymore on right clicks.
910
* Creates `renderView` prop to customize the whole calendar.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Below we have all the props that we can use with the `<DateTime>` component. The
5656
| **utc** | `boolean` | `false` | When true, input time values will be interpreted as UTC (Zulu time) by Moment.js. Otherwise they will default to the user's local timezone.
5757
| **displayTimeZone** | `string` | `null` | **Needs [moment's timezone](https://momentjs.com/timezone/) available in your project.** When specified, input time values will be displayed in the given time zone. Otherwise they will default to the user's local timezone (unless `utc` specified).
5858
| **onChange** | `function` | empty function | Callback trigger when the date changes. The callback receives the selected `moment` object as only parameter, if the date in the input is valid. If the date in the input is not valid, the callback receives the value of the input (a string). |
59-
| **onFocus** | `function` | empty function | Callback trigger for when the user opens the datepicker. The callback receives an event of type SyntheticEvent. |
60-
| **onBlur** | `function` | empty function | Callback trigger for when the user clicks outside of the input, simulating a regular onBlur. The callback receives the selected `moment` object as only parameter, if the date in the input is valid. If the date in the input is not valid, the callback returned. |
59+
| **onOpen** | `function` | empty function | Callback trigger for when the user opens the datepicker. The callback receives an event of type SyntheticEvent. |
60+
| **onClose** | `function` | empty function | Callback trigger for when the user clicks outside of the input. The callback receives the selected `moment` object as only parameter, if the date in the input is valid. If the date in the input is not valid, the callback returned. |
6161
| **onNavigate** | `function` | empty function | Callback trigger when the view mode changes. The callback receives the selected view mode string (`years`, `months`, `days` or `time`) as only parameter.|
6262
| **onBeforeNavigate** | `function` | ( nextView, currentView, viewDate ) => nextView | Allows to intercept a change of the calendar view. The accepted function receives the view that it's supposed to navigate to, the view that is showing currently and the date currently shown in the view. Return a viewMode ( default ones are `years`, `months`, `days` or `time`) to navigate to it. If the function returns a "falsy" value, the navigation is stopped and we will remain in the current view. |
6363
| **onNavigateBack** | `function` | empty function | Callback trigger when the user navigates to the previous month, year or decade. The callback receives the amount and type ('month', 'year') as parameters. |
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {
1717
"build": "webpack --config config/webpack.config.build.js",
18-
"lint": "eslint src/datetime/Datetime.js test/ && echo 'Linting OK! 💪'",
18+
"lint": "eslint src/datetime/DateTime.js test/ && echo 'Linting OK! 💪'",
1919
"notify-pre-commit-hook": "echo '### Starting pre-commit hook 🦄'",
2020
"playground": "node scripts/start.js",
2121
"test": "jest",

0 commit comments

Comments
 (0)