react-time-picker
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -321,2 +321,3 @@ 'use strict'; | ||
minTime: this.props.minTime, | ||
name: this.props.name, | ||
onChange: this.onChangeNative, | ||
@@ -417,3 +418,4 @@ required: this.props.required, | ||
TimeInput.defaultProps = { | ||
maxDetail: 'minute' | ||
maxDetail: 'minute', | ||
name: 'time' | ||
}; | ||
@@ -427,2 +429,3 @@ | ||
minTime: _propTypes3.isTime, | ||
name: _propTypes2.default.string, | ||
onChange: _propTypes2.default.func, | ||
@@ -429,0 +432,0 @@ required: _propTypes2.default.bool, |
@@ -55,2 +55,3 @@ 'use strict'; | ||
minTime = _props.minTime, | ||
name = _props.name, | ||
onChange = _props.onChange, | ||
@@ -66,3 +67,3 @@ required = _props.required, | ||
min: minTime ? nativeValueParser(minTime) : null, | ||
name: 'time', | ||
name: name, | ||
onChange: onChange, | ||
@@ -105,2 +106,3 @@ onFocus: this.stopPropagation, | ||
minTime: _propTypes3.isTime, | ||
name: _propTypes2.default.string, | ||
onChange: _propTypes2.default.func, | ||
@@ -107,0 +109,0 @@ required: _propTypes2.default.bool, |
@@ -128,2 +128,3 @@ 'use strict'; | ||
minTime = _props.minTime, | ||
name = _props.name, | ||
required = _props.required, | ||
@@ -143,2 +144,3 @@ value = _props.value; | ||
minTime: minTime, | ||
name: name, | ||
onChange: this.onChange, | ||
@@ -285,2 +287,3 @@ placeholder: this.placeholder, | ||
minTime: _propTypes3.isTime, | ||
name: _propTypes2.default.string, | ||
onChange: _propTypes2.default.func, | ||
@@ -287,0 +290,0 @@ required: _propTypes2.default.bool, |
{ | ||
"name": "react-time-picker", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "An input component for picking time for your React application.", | ||
@@ -13,6 +13,10 @@ "main": "dist/entry.js", | ||
"prepublishOnly": "npm run build", | ||
"preversion": "npm run version-sample && npm run version-test", | ||
"test": "npm run test-eslint && npm run test-jest", | ||
"test-eslint": "eslint ./src", | ||
"test-jest": "jest", | ||
"test-jest-coverage": "jest --coverage" | ||
"test-jest-coverage": "jest --coverage", | ||
"version": "npm run build && git add .", | ||
"version-sample": "cd sample && npm version patch", | ||
"version-test": "cd test && npm version patch" | ||
}, | ||
@@ -25,3 +29,4 @@ "jest": { | ||
"**/src/**.{js,jsx}", | ||
"!**/src/entry.js" | ||
"!**/src/entry.js", | ||
"!**/src/entry.nostyle.js" | ||
] | ||
@@ -28,0 +33,0 @@ }, |
@@ -328,2 +328,3 @@ import React, { Component } from 'react'; | ||
minTime={this.props.minTime} | ||
name={this.props.name} | ||
onChange={this.onChangeNative} | ||
@@ -349,2 +350,3 @@ required={this.props.required} | ||
maxDetail: 'minute', | ||
name: 'time', | ||
}; | ||
@@ -358,2 +360,3 @@ | ||
minTime: isTime, | ||
name: PropTypes.string, | ||
onChange: PropTypes.func, | ||
@@ -360,0 +363,0 @@ required: PropTypes.bool, |
@@ -29,3 +29,3 @@ import React, { PureComponent } from 'react'; | ||
const { | ||
maxTime, minTime, onChange, required, value, valueType, | ||
maxTime, minTime, name, onChange, required, value, valueType, | ||
} = this.props; | ||
@@ -38,3 +38,3 @@ | ||
min={minTime ? nativeValueParser(minTime) : null} | ||
name="time" | ||
name={name} | ||
onChange={onChange} | ||
@@ -59,2 +59,3 @@ onFocus={this.stopPropagation} | ||
minTime: isTime, | ||
name: PropTypes.string, | ||
onChange: PropTypes.func, | ||
@@ -61,0 +62,0 @@ required: PropTypes.bool, |
@@ -80,2 +80,3 @@ import React, { Component } from 'react'; | ||
minTime, | ||
name, | ||
required, | ||
@@ -94,2 +95,3 @@ value, | ||
minTime={minTime} | ||
name={name} | ||
onChange={this.onChange} | ||
@@ -231,2 +233,3 @@ placeholder={this.placeholder} | ||
minTime: isTime, | ||
name: PropTypes.string, | ||
onChange: PropTypes.func, | ||
@@ -233,0 +236,0 @@ required: PropTypes.bool, |
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
98108
2364