react-daypicker
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _moment = require('moment'); | ||
@@ -34,4 +38,4 @@ | ||
var DayPicker = function (_React$Component) { | ||
_inherits(DayPicker, _React$Component); | ||
var DayPicker = function (_Component) { | ||
_inherits(DayPicker, _Component); | ||
@@ -258,8 +262,8 @@ function DayPicker(props) { | ||
return DayPicker; | ||
}(_react2.default.Component); | ||
}(_react.Component); | ||
DayPicker.propTypes = { | ||
active: _reactMomentProptypes2.default.momentObj, | ||
onDayClick: _react2.default.PropTypes.func.isRequired | ||
onDayClick: _propTypes2.default.func.isRequired | ||
}; | ||
exports.default = DayPicker; |
{ | ||
"name": "react-daypicker", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "A simple datepicker inspired by Pikaday.", | ||
@@ -18,3 +18,4 @@ "main": "lib/DayPicker.js", | ||
"moment": "2.10 - 2.14 || ^2.15.1", | ||
"react": ">=0.14" | ||
"react": ">=0.15", | ||
"prop-types": ">=15.6" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
@@ -1,2 +0,3 @@ | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import moment from 'moment'; | ||
@@ -6,6 +7,6 @@ import momentPropTypes from 'react-moment-proptypes'; | ||
export default class DayPicker extends React.Component { | ||
export default class DayPicker extends Component { | ||
static propTypes = { | ||
active: momentPropTypes.momentObj, | ||
onDayClick: React.PropTypes.func.isRequired, | ||
onDayClick: PropTypes.func.isRequired, | ||
}; | ||
@@ -12,0 +13,0 @@ |
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
38845
410
5