react-timepicker
Advanced tools
Comparing version 1.1.0 to 1.1.1
Package.describe({ | ||
name: 'universe:react-timepicker', | ||
version: '1.1.0', | ||
version: '1.1.1', | ||
documentation: 'README.md', | ||
@@ -5,0 +5,0 @@ summary: 'React timepicker in Android KitKat style', |
@@ -7,3 +7,3 @@ { | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "React timepicker in Android KitKat style", | ||
@@ -10,0 +10,0 @@ |
@@ -47,5 +47,5 @@ # react-timepicker | ||
#### mode | ||
`React.PropTypes.any` | ||
`React.PropTypes.bool` | ||
Initial mode - `Timepicker.MODE_HOURS` or `Timepicker.MODE_MINUTES` **(default: `Timepicker.MODE_HOURS`)**. | ||
Initial mode - `Timepicker.HOURS` or `Timepicker.MINUTES` **(default: `Timepicker.HOURS`)**. | ||
@@ -52,0 +52,0 @@ #### size |
@@ -11,8 +11,8 @@ 'use strict'; | ||
statics: { | ||
MODE_HOURS: true, | ||
MODE_MINUTES: false | ||
HOURS: true, | ||
MINUTES: false | ||
}, | ||
// propTypes: { | ||
// mode: React.PropTypes.any, | ||
// mode: React.PropTypes.bool, | ||
@@ -33,3 +33,3 @@ // size: React.PropTypes.number, | ||
return { | ||
mode: this.MODE_HOURS, | ||
mode: this.HOURS, | ||
@@ -105,3 +105,3 @@ hours: 0, | ||
// propTypes: { | ||
// mode: React.PropTypes.any.isRequired, | ||
// mode: React.PropTypes.bool.isRequired, | ||
@@ -130,3 +130,3 @@ // size: React.PropTypes.number.isRequired, | ||
{ | ||
className: 'timepicker-info-digits' + (mode === Timepicker.MODE_HOURS ? ' active' : ''), | ||
className: 'timepicker-info-digits' + (mode === Timepicker.HOURS ? ' active' : ''), | ||
@@ -141,3 +141,3 @@ onClick: this.onClickHours | ||
{ | ||
className: 'timepicker-info-digits' + (mode === Timepicker.MODE_MINUTES ? ' active' : ''), | ||
className: 'timepicker-info-digits' + (mode === Timepicker.MINUTES ? ' active' : ''), | ||
@@ -153,3 +153,3 @@ onClick: this.onClickMinutes | ||
if (this.props.onChangeMode) { | ||
this.props.onChangeMode(Timepicker.MODE_HOURS); | ||
this.props.onChangeMode(Timepicker.HOURS); | ||
} | ||
@@ -160,3 +160,3 @@ }, | ||
if (this.props.onChangeMode) { | ||
this.props.onChangeMode(Timepicker.MODE_MINUTES); | ||
this.props.onChangeMode(Timepicker.MINUTES); | ||
} | ||
@@ -170,3 +170,3 @@ } | ||
// propTypes: { | ||
// mode: React.PropTypes.any.isRequired, | ||
// mode: React.PropTypes.bool.isRequired, | ||
@@ -426,4 +426,4 @@ // size: React.PropTypes.number.isRequired, | ||
mode: preventChangeMode | ||
? self.state.mode === Timepicker.MODE_HOURS ? Timepicker.MODE_HOURS : Timepicker.MODE_MINUTES | ||
: self.state.mode === Timepicker.MODE_HOURS ? Timepicker.MODE_MINUTES : Timepicker.MODE_HOURS | ||
? self.state.mode === Timepicker.HOURS ? Timepicker.HOURS : Timepicker.MINUTES | ||
: self.state.mode === Timepicker.HOURS ? Timepicker.MINUTES : Timepicker.HOURS | ||
}, function () { | ||
@@ -430,0 +430,0 @@ self.onChange(); |
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
37515