react-datetime-picker
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -383,3 +383,2 @@ 'use strict'; | ||
isClockOpen: _propTypes2.default.bool, | ||
locale: _propTypes2.default.string, | ||
maxDetail: _propTypes2.default.oneOf(allViews), | ||
@@ -386,0 +385,0 @@ maxDate: _propTypes3.isMaxDate, |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.formatDateTime = exports.formatTime = exports.formatDate = undefined; | ||
exports.formatTime = exports.formatDate = undefined; | ||
@@ -43,13 +43,2 @@ var _locales = require('./locales'); | ||
return getFormatter({ hour: 'numeric', minute: 'numeric', second: 'numeric' }, locale)(date); | ||
}; | ||
var formatDateTime = exports.formatDateTime = function formatDateTime(date, locale) { | ||
return getFormatter({ | ||
day: 'numeric', | ||
month: 'numeric', | ||
year: 'numeric', | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
second: 'numeric' | ||
}, locale)(date); | ||
}; |
{ | ||
"name": "react-datetime-picker", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A date range picker for your React app.", | ||
@@ -47,8 +47,6 @@ "main": "dist/entry.js", | ||
"prop-types": "^15.6.0", | ||
"react": ">=15.5", | ||
"react-calendar": "^2.13.0", | ||
"react-clock": "^2.2.0", | ||
"react-date-picker": "^6.9.0", | ||
"react-dom": ">=15.5", | ||
"react-time-picker": "^2.3.0" | ||
"react-calendar": "^2.13.4", | ||
"react-clock": "^2.2.1", | ||
"react-date-picker": "^6.9.1", | ||
"react-time-picker": "^2.3.1" | ||
}, | ||
@@ -76,4 +74,10 @@ "devDependencies": { | ||
"less": "^2.7.3", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0", | ||
"react-test-renderer": "^16.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=15.5", | ||
"react-dom": ">=15.5" | ||
}, | ||
"files": [ | ||
@@ -80,0 +84,0 @@ "LICENSE", |
@@ -21,3 +21,3 @@ ![downloads](https://img.shields.io/npm/dt/react-datetime-picker.svg) ![build](https://img.shields.io/travis/wojtekmaj/react-datetime-picker.svg) ![dependencies](https://img.shields.io/david/wojtekmaj/react-datetime-picker.svg | ||
[Online demo](http://projekty.wojtekmaj.pl/react-datetime-picker/) is also available! | ||
[Online demo](http://projects.wojtekmaj.pl/react-datetime-picker/) is also available! | ||
@@ -24,0 +24,0 @@ ## Looking for *just* a date picker or a time picker? |
@@ -340,3 +340,2 @@ import React, { PureComponent } from 'react'; | ||
isClockOpen: PropTypes.bool, | ||
locale: PropTypes.string, | ||
maxDetail: PropTypes.oneOf(allViews), | ||
@@ -343,0 +342,0 @@ maxDate: isMaxDate, |
@@ -0,0 +0,0 @@ import 'react-calendar/dist/Calendar.css'; |
import DateTimePicker from './DateTimePicker'; | ||
export default DateTimePicker; |
@@ -38,13 +38,1 @@ import { getDefaultLocale } from './locales'; | ||
)(date); | ||
export const formatDateTime = (date, locale) => getFormatter( | ||
{ | ||
day: 'numeric', | ||
month: 'numeric', | ||
year: 'numeric', | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
second: 'numeric', | ||
}, | ||
locale, | ||
)(date); |
/* eslint-disable import/prefer-default-export */ | ||
export { | ||
getDefaultLocale, | ||
} from 'react-date-picker/dist/shared/locales'; | ||
export { getDefaultLocale } from 'react-date-picker/dist/shared/locales'; |
@@ -0,0 +0,0 @@ export { |
@@ -0,0 +0,0 @@ export { |
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
32
99305
23
2396
- Removedreact@>=15.5
- Removedreact-dom@>=15.5
Updatedreact-calendar@^2.13.4
Updatedreact-clock@^2.2.1
Updatedreact-date-picker@^6.9.1
Updatedreact-time-picker@^2.3.1