Skip to content
Permalink
Browse files

build: Include prop-types package to support React 15.5

  • Loading branch information...
wdolo authored and davidchin committed Apr 29, 2017
1 parent 768bd39 commit 1939f6cc678c32c7939ef6e38dbde4aec6c905bc
Showing with 55 additions and 51 deletions.
  1. +4 −3 package.json
  2. +11 −10 src/js/input-range/input-range.jsx
  3. +5 −4 src/js/input-range/label.jsx
  4. +12 −11 src/js/input-range/slider.jsx
  5. +5 −4 src/js/input-range/track.jsx
  6. +18 −19 yarn.lock
@@ -59,9 +59,9 @@
"karma-webpack": "^2.0.1",
"node-sass": "^4.3.0",
"postcss-loader": "^1.2.2",
"react": "^15.4.2",
"react": "^15.5.4",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"react-dom": "^15.5.4",
"sass-lint": "^1.10.2",
"sass-loader": "^6.0.3",
"sasslint-webpack-plugin": "^1.0.4",
@@ -92,6 +92,7 @@
"test": "karma start --single-run"
},
"dependencies": {
"autobind-decorator": "^1.3.4"
"autobind-decorator": "^1.3.4",
"prop-types": "^15.5.8"
}
}
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'autobind-decorator';
import * as valueTransformer from './value-transformer';
import DEFAULT_CLASS_NAMES from './default-class-names';
@@ -22,18 +23,18 @@ export default class InputRange extends React.Component {
*/
static get propTypes() {
return {
ariaLabelledby: React.PropTypes.string,
ariaControls: React.PropTypes.string,
classNames: React.PropTypes.objectOf(React.PropTypes.string),
disabled: React.PropTypes.bool,
formatLabel: React.PropTypes.func,
ariaLabelledby: PropTypes.string,
ariaControls: PropTypes.string,
classNames: PropTypes.objectOf(PropTypes.string),
disabled: PropTypes.bool,
formatLabel: PropTypes.func,
maxValue: rangePropType,
minValue: rangePropType,
name: React.PropTypes.string,
onChangeStart: React.PropTypes.func,
onChange: React.PropTypes.func.isRequired,
onChangeComplete: React.PropTypes.func,
step: React.PropTypes.number,
name: PropTypes.string,
onChangeStart: PropTypes.func,
onChange: PropTypes.func.isRequired,
onChangeComplete: PropTypes.func,
step: PropTypes.number,
value: valuePropType,
};
}
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';

/**
* @ignore
@@ -27,8 +28,8 @@ export default function Label(props) {
* @property {Function} type
*/
Label.propTypes = {
children: React.PropTypes.node.isRequired,
classNames: React.PropTypes.objectOf(React.PropTypes.string).isRequired,
formatLabel: React.PropTypes.func,
type: React.PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
classNames: PropTypes.objectOf(PropTypes.string).isRequired,
formatLabel: PropTypes.func,
type: PropTypes.string.isRequired,
};
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'autobind-decorator';
import Label from './label';

@@ -24,17 +25,17 @@ export default class Slider extends React.Component {
*/
static get propTypes() {
return {
ariaLabelledby: React.PropTypes.string,
ariaControls: React.PropTypes.string,
classNames: React.PropTypes.objectOf(React.PropTypes.string).isRequired,
formatLabel: React.PropTypes.func,
maxValue: React.PropTypes.number,
minValue: React.PropTypes.number,
onSliderDrag: React.PropTypes.func.isRequired,
onSliderKeyDown: React.PropTypes.func.isRequired,
percentage: React.PropTypes.number.isRequired,
type: React.PropTypes.string.isRequired,
value: React.PropTypes.number.isRequired,
ariaLabelledby: PropTypes.string,
ariaControls: PropTypes.string,
classNames: PropTypes.objectOf(PropTypes.string).isRequired,
formatLabel: PropTypes.func,
maxValue: PropTypes.number,
minValue: PropTypes.number,
onSliderDrag: PropTypes.func.isRequired,
onSliderKeyDown: PropTypes.func.isRequired,
percentage: PropTypes.number.isRequired,
type: PropTypes.string.isRequired,
value: PropTypes.number.isRequired,
};
}

@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'autobind-decorator';

/**
@@ -15,10 +16,10 @@ export default class Track extends React.Component {
*/
static get propTypes() {
return {
children: React.PropTypes.node.isRequired,
classNames: React.PropTypes.objectOf(React.PropTypes.string).isRequired,
onTrackMouseDown: React.PropTypes.func.isRequired,
percentages: React.PropTypes.objectOf(React.PropTypes.number).isRequired,
children: PropTypes.node.isRequired,
classNames: PropTypes.objectOf(PropTypes.string).isRequired,
onTrackMouseDown: PropTypes.func.isRequired,
percentages: PropTypes.objectOf(PropTypes.number).isRequired,
};
}

@@ -2573,7 +2573,7 @@ faye-websocket@~0.11.0:
dependencies:
websocket-driver ">=0.5.1"

fbjs@^0.8.1, fbjs@^0.8.4:
fbjs@^0.8.4, fbjs@^0.8.9:
version "0.8.9"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14"
dependencies:
@@ -4875,6 +4875,12 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@^15.5.7, prop-types@^15.5.8, prop-types@~15.5.7:
version "15.5.8"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394"
dependencies:
fbjs "^0.8.9"

proxy-addr@~1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.3.tgz#dc97502f5722e888467b3fa2297a7b1ff47df074"
@@ -4982,21 +4988,23 @@ react-addons-test-utils@^15.4.2:
fbjs "^0.8.4"
object-assign "^4.1.0"

react-dom@^15.4.2:
version "15.4.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.2.tgz#015363f05b0a1fd52ae9efdd3a0060d90695208f"
react-dom@^15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.4.tgz#ba0c28786fd52ed7e4f2135fe0288d462aef93da"
dependencies:
fbjs "^0.8.1"
fbjs "^0.8.9"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "~15.5.7"

react@^15.4.2:
version "15.4.2"
resolved "https://registry.yarnpkg.com/react/-/react-15.4.2.tgz#41f7991b26185392ba9bae96c8889e7e018397ef"
react@^15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react/-/react-15.5.4.tgz#fa83eb01506ab237cdc1c8c3b1cea8de012bf047"
dependencies:
fbjs "^0.8.4"
fbjs "^0.8.9"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "^15.5.7"

read-pkg-up@^1.0.1:
version "1.0.1"
@@ -5941,16 +5949,7 @@ ua-parser-js@^0.7.9:
version "0.7.12"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb"

uglify-js@^2.6, uglify-js@^2.8.5:
version "2.8.15"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.15.tgz#835dd4cd5872554756e6874508d0d0561704d94d"
dependencies:
source-map "~0.5.1"
yargs "~3.10.0"
optionalDependencies:
uglify-to-browserify "~1.0.0"

uglify-js@^2.8.16:
uglify-js@^2.6, uglify-js@^2.8.16, uglify-js@^2.8.5:
version "2.8.16"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.16.tgz#d286190b6eefc6fd65eb0ecac6551e0b0e8839a4"
dependencies:

0 comments on commit 1939f6c

Please sign in to comment.
You can’t perform that action at this time.