extended-proptypes
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -25,2 +25,6 @@ "use strict"; | ||
var _validatorsElementWithType = require("./validators/elementWithType"); | ||
var _validatorsElementWithType2 = _interopRequireDefault(_validatorsElementWithType); | ||
var _validatorsEmailAddress = require("./validators/emailAddress"); | ||
@@ -70,2 +74,6 @@ | ||
var _validatorsPrimative = require("./validators/primative"); | ||
var _validatorsPrimative2 = _interopRequireDefault(_validatorsPrimative); | ||
var _validatorsStringMatching = require("./validators/stringMatching"); | ||
@@ -93,2 +101,3 @@ | ||
cssSize: _validatorsCssSize2["default"], | ||
elementWithType: _validatorsElementWithType2["default"], | ||
emailAddress: _validatorsEmailAddress2["default"], | ||
@@ -105,2 +114,3 @@ hex: _validatorsHex2["default"], | ||
percent: _validatorsPercent2["default"], | ||
primative: _validatorsPrimative2["default"], | ||
stringMatching: _validatorsStringMatching2["default"], | ||
@@ -107,0 +117,0 @@ stringWithLength: _validatorsStringWithLength2["default"], |
{ | ||
"name": "extended-proptypes", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Useful proptypes for react components", | ||
@@ -25,3 +25,4 @@ "main": "lib/index.js", | ||
"mocha-lcov-reporter": "^1.2.0", | ||
"proptypes": "^0.14.3" | ||
"proptypes": "^0.14.3", | ||
"react": "^15.4.1" | ||
}, | ||
@@ -28,0 +29,0 @@ "keywords": [ |
@@ -55,2 +55,5 @@ [![Build Status](https://travis-ci.org/peterkhayes/extended-proptypes.svg?branch=master)](https://travis-ci.org/peterkhayes/extended-proptypes) [![Coverage Status](https://coveralls.io/repos/github/peterkhayes/extended-proptypes/badge.svg?branch=master)](https://coveralls.io/github/peterkhayes/extended-proptypes?branch=master) | ||
### React: | ||
- `elementWithType(Type)`: A react element matching the provided type, which may be a class or a function. | ||
### Collections | ||
@@ -65,2 +68,3 @@ - `collection`: An array or a plain object. | ||
### General Primatives | ||
- `primative`: a number, a string, or a boolean. | ||
- `stringMatching(regex)`: A string that matches the provided regex. | ||
@@ -67,0 +71,0 @@ - `stringWithLength(min, max=Infinity)`: A string with length between min and max. |
32432
39
462
85
10