@vx/pattern
Advanced tools
Comparing version 0.0.111 to 0.0.112
@@ -9,3 +9,3 @@ 'use strict'; | ||
exports.default = Circles; | ||
exports.default = PatternCircles; | ||
@@ -16,2 +16,6 @@ var _react = require('react'); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -27,3 +31,3 @@ | ||
function Circles(_ref) { | ||
function PatternCircles(_ref) { | ||
var id = _ref.id, | ||
@@ -87,2 +91,15 @@ width = _ref.width, | ||
); | ||
} | ||
} | ||
PatternCircles.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
radius: _propTypes2.default.number, | ||
fill: _propTypes2.default.string, | ||
className: _propTypes2.default.string, | ||
stroke: _propTypes2.default.string, | ||
strokeWidth: _propTypes2.default.number, | ||
strokeDasharray: _propTypes2.default.string, | ||
complement: _propTypes2.default.bool | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = Hexagons; | ||
exports.default = PatternHexagons; | ||
@@ -13,2 +13,6 @@ var _react = require('react'); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -24,3 +28,3 @@ | ||
function Hexagons(_ref) { | ||
function PatternHexagons(_ref) { | ||
var id = _ref.id, | ||
@@ -56,2 +60,15 @@ width = _ref.width, | ||
}); | ||
} | ||
} | ||
PatternHexagons.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
size: _propTypes2.default.number, | ||
fill: _propTypes2.default.string, | ||
className: _propTypes2.default.string, | ||
background: _propTypes2.default.string, | ||
stroke: _propTypes2.default.string, | ||
strokeWidth: _propTypes2.default.number, | ||
strokeDasharray: _propTypes2.default.string | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = Lines; | ||
exports.default = PatternLines; | ||
@@ -13,2 +13,6 @@ var _react = require('react'); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -51,3 +55,3 @@ | ||
function Lines(_ref2) { | ||
function PatternLines(_ref2) { | ||
var id = _ref2.id, | ||
@@ -97,2 +101,13 @@ width = _ref2.width, | ||
); | ||
} | ||
} | ||
PatternLines.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
background: _propTypes2.default.string, | ||
stroke: _propTypes2.default.string.isRequired, | ||
strokeWidth: _propTypes2.default.number.isRequired, | ||
strokeDasharray: _propTypes2.default.string, | ||
className: _propTypes2.default.string | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = Path; | ||
exports.default = PatternPath; | ||
@@ -13,2 +13,6 @@ var _react = require('react'); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -24,3 +28,3 @@ | ||
function Path(_ref) { | ||
function PatternPath(_ref) { | ||
var id = _ref.id, | ||
@@ -65,2 +69,14 @@ width = _ref.width, | ||
); | ||
} | ||
} | ||
PatternPath.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
fill: _propTypes2.default.string, | ||
className: _propTypes2.default.string, | ||
background: _propTypes2.default.string, | ||
stroke: _propTypes2.default.string, | ||
strokeWidth: _propTypes2.default.number, | ||
strokeDasharray: _propTypes2.default.string | ||
}; |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -8,6 +8,10 @@ Object.defineProperty(exports, "__esModule", { | ||
var _react = require("react"); | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -22,6 +26,6 @@ | ||
return _react2.default.createElement( | ||
"defs", | ||
'defs', | ||
null, | ||
_react2.default.createElement( | ||
"pattern", | ||
'pattern', | ||
{ | ||
@@ -31,3 +35,3 @@ id: id, | ||
height: height, | ||
patternUnits: "userSpaceOnUse" | ||
patternUnits: 'userSpaceOnUse' | ||
}, | ||
@@ -37,2 +41,9 @@ children | ||
); | ||
} | ||
} | ||
Pattern.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
children: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.node), _propTypes2.default.node]).isRequired | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = Waves; | ||
exports.default = PatternWaves; | ||
@@ -13,2 +13,6 @@ var _react = require('react'); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -24,3 +28,3 @@ | ||
function Waves(_ref) { | ||
function PatternWaves(_ref) { | ||
var id = _ref.id, | ||
@@ -53,2 +57,14 @@ width = _ref.width, | ||
}); | ||
} | ||
} | ||
PatternWaves.propTypes = { | ||
id: _propTypes2.default.string.isRequired, | ||
width: _propTypes2.default.number.isRequired, | ||
height: _propTypes2.default.number.isRequired, | ||
fill: _propTypes2.default.string, | ||
className: _propTypes2.default.string, | ||
background: _propTypes2.default.string, | ||
stroke: _propTypes2.default.string, | ||
strokeWidth: _propTypes2.default.number, | ||
strokeDasharray: _propTypes2.default.string | ||
}; |
{ | ||
"name": "@vx/pattern", | ||
"version": "0.0.111", | ||
"version": "0.0.112", | ||
"description": "vx pattern", | ||
@@ -11,3 +11,4 @@ "main": "build/index.js", | ||
"build": "make build SRC=./src", | ||
"prepublish": "make build SRC=./src" | ||
"prepublish": "make build SRC=./src", | ||
"test": "jest" | ||
}, | ||
@@ -33,7 +34,13 @@ "repository": { | ||
"classnames": "^2.2.5", | ||
"prop-types": "^15.5.10", | ||
"react": "^15.4.2" | ||
}, | ||
"devDependencies": { | ||
"babel-jest": "^20.0.3", | ||
"enzyme": "^2.8.2", | ||
"jest": "^20.0.3", | ||
"react-addons-test-utils": "^15.4.2", | ||
"react-fatigue-dev": "github:tj/react-fatigue-dev", | ||
"react-tools": "^0.10.0" | ||
"react-tools": "^0.10.0", | ||
"regenerator-runtime": "^0.10.5" | ||
}, | ||
@@ -40,0 +47,0 @@ "publishConfig": { |
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
20025
443
3
7
+ Addedprop-types@^15.5.10