react-daypicker
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,2 +17,6 @@ 'use strict'; | ||
var _reactMomentProptypes = require('react-moment-proptypes'); | ||
var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); | ||
var _classnames = require('classnames'); | ||
@@ -256,6 +260,5 @@ | ||
DayPicker.propTypes = { | ||
active: _react2.default.PropTypes.object, | ||
active: _reactMomentProptypes2.default.momentObj, | ||
onDayClick: _react2.default.PropTypes.func.isRequired | ||
}; | ||
exports.default = DayPicker; |
{ | ||
"name": "react-daypicker", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A simple datepicker inspired by Pikaday.", | ||
@@ -32,9 +32,12 @@ "main": "lib/DayPicker.js", | ||
"homepage": "https://github.com/cymen/react-daypicker", | ||
"bugs": { | ||
"url": "https://github.com/cymen/react-daypicker/issues" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/cymen/react-daypicker/issues" | ||
}, | ||
"scripts": { | ||
"build": "babel src -d lib && ./node_modules/node-sass/bin/node-sass src/DayPicker.scss > lib/DayPicker.css", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"react-moment-proptypes": "^1.2.0" | ||
} | ||
} |
@@ -60,4 +60,8 @@ # react-daypicker | ||
No direct dependencies. Peer dependencies: | ||
### Direct | ||
* react-moment-proptypes | ||
### Peer | ||
* React | ||
@@ -64,0 +68,0 @@ * Moment.js |
import React from 'react'; | ||
import moment from 'moment'; | ||
import momentPropTypes from 'react-moment-proptypes'; | ||
import classNames from 'classnames'; | ||
class DayPicker extends React.Component { | ||
export default class DayPicker extends React.Component { | ||
static propTypes = { | ||
active: momentPropTypes.momentObj, | ||
onDayClick: React.PropTypes.func.isRequired, | ||
}; | ||
constructor(props) { | ||
@@ -155,8 +161,1 @@ super(props); | ||
} | ||
DayPicker.propTypes = { | ||
active: React.PropTypes.object, | ||
onDayClick: React.PropTypes.func.isRequired, | ||
}; | ||
export default DayPicker; |
Sorry, the diff of this file is not supported yet
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
406
84
41379
4
10
+ Addedreact-moment-proptypes@1.8.1(transitive)