@vx/legend
Advanced tools
Comparing version 0.0.161 to 0.0.165-beta.0
@@ -12,3 +12,3 @@ 'use strict'; | ||
get: function get() { | ||
return _interopRequireDefault(_Legend).default; | ||
return babelHelpers.interopRequireDefault(_Legend).default; | ||
} | ||
@@ -22,3 +22,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_Quantile).default; | ||
return babelHelpers.interopRequireDefault(_Quantile).default; | ||
} | ||
@@ -32,3 +32,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_Linear).default; | ||
return babelHelpers.interopRequireDefault(_Linear).default; | ||
} | ||
@@ -42,3 +42,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_Ordinal).default; | ||
return babelHelpers.interopRequireDefault(_Ordinal).default; | ||
} | ||
@@ -52,3 +52,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_Threshold).default; | ||
return babelHelpers.interopRequireDefault(_Threshold).default; | ||
} | ||
@@ -62,6 +62,4 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_Size).default; | ||
return babelHelpers.interopRequireDefault(_Size).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
}); |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = Legend; | ||
@@ -14,32 +11,28 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _classnames = require('classnames'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _classnames2 = babelHelpers.interopRequireDefault(_classnames); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _LegendItem = require('./LegendItem'); | ||
var _LegendItem2 = _interopRequireDefault(_LegendItem); | ||
var _LegendItem2 = babelHelpers.interopRequireDefault(_LegendItem); | ||
var _LegendLabel = require('./LegendLabel'); | ||
var _LegendLabel2 = _interopRequireDefault(_LegendLabel); | ||
var _LegendLabel2 = babelHelpers.interopRequireDefault(_LegendLabel); | ||
var _LegendShape = require('./LegendShape'); | ||
var _LegendShape2 = _interopRequireDefault(_LegendShape); | ||
var _LegendShape2 = babelHelpers.interopRequireDefault(_LegendShape); | ||
var _valueOrIdentity = require('../util/valueOrIdentity'); | ||
var _valueOrIdentity2 = _interopRequireDefault(_valueOrIdentity); | ||
var _valueOrIdentity2 = babelHelpers.interopRequireDefault(_valueOrIdentity); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
Legend.propTypes = { | ||
@@ -98,3 +91,3 @@ className: _propTypes2.default.string, | ||
itemDirection = _ref$itemDirection === undefined ? 'row' : _ref$itemDirection, | ||
restProps = _objectWithoutProperties(_ref, ['className', 'style', 'shapeStyle', 'scale', 'shape', 'domain', 'fill', 'size', 'labelFormat', 'labelTransform', 'shapeWidth', 'shapeHeight', 'shapeMargin', 'labelAlign', 'labelMargin', 'itemMargin', 'direction', 'itemDirection']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['className', 'style', 'shapeStyle', 'scale', 'shape', 'domain', 'fill', 'size', 'labelFormat', 'labelTransform', 'shapeWidth', 'shapeHeight', 'shapeMargin', 'labelAlign', 'labelMargin', 'itemMargin', 'direction', 'itemDirection']); | ||
@@ -107,3 +100,3 @@ domain = domain || scale.domain(); | ||
className: (0, _classnames2.default)('vx-legend', className), | ||
style: _extends({}, style, { | ||
style: babelHelpers.extends({}, style, { | ||
flexDirection: direction | ||
@@ -117,3 +110,3 @@ }) | ||
_LegendItem2.default, | ||
_extends({ | ||
babelHelpers.extends({ | ||
key: 'legend-' + label + '-' + i, | ||
@@ -120,0 +113,0 @@ margin: itemMargin, |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendItem; | ||
@@ -14,16 +11,12 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _additionalProps = require('../util/additionalProps'); | ||
var _additionalProps2 = _interopRequireDefault(_additionalProps); | ||
var _additionalProps2 = babelHelpers.interopRequireDefault(_additionalProps); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
LegendItem.propTypes = { | ||
@@ -40,7 +33,7 @@ flexDirection: _propTypes2.default.string, | ||
label = _ref.label, | ||
restProps = _objectWithoutProperties(_ref, ['children', 'flexDirection', 'margin', 'label']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['children', 'flexDirection', 'margin', 'label']); | ||
return _react2.default.createElement( | ||
'div', | ||
_extends({ | ||
babelHelpers.extends({ | ||
className: 'vx-legend-item', | ||
@@ -47,0 +40,0 @@ style: { |
@@ -10,10 +10,8 @@ 'use strict'; | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
LegendLabel.propTypes = { | ||
@@ -20,0 +18,0 @@ label: _propTypes2.default.string.isRequired, |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendShape; | ||
@@ -14,18 +11,16 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Rect = require('../shapes/Rect'); | ||
var _Rect2 = _interopRequireDefault(_Rect); | ||
var _Rect2 = babelHelpers.interopRequireDefault(_Rect); | ||
var _renderShape = require('../util/renderShape'); | ||
var _renderShape2 = _interopRequireDefault(_renderShape); | ||
var _renderShape2 = babelHelpers.interopRequireDefault(_renderShape); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function LegendShape(_ref) { | ||
@@ -48,4 +43,4 @@ var _ref$shape = _ref.shape, | ||
display: 'flex', | ||
width: !!size ? size(_extends({}, label)) : width, | ||
height: !!size ? size(_extends({}, label)) : height, | ||
width: !!size ? size(babelHelpers.extends({}, label)) : width, | ||
height: !!size ? size(babelHelpers.extends({}, label)) : height, | ||
margin: margin | ||
@@ -52,0 +47,0 @@ } |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendLinear; | ||
@@ -14,16 +11,12 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Legend = require('./Legend'); | ||
var _Legend2 = _interopRequireDefault(_Legend); | ||
var _Legend2 = babelHelpers.interopRequireDefault(_Legend); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
LegendLinear.propTypes = { | ||
@@ -48,6 +41,6 @@ scale: _propTypes2.default.func.isRequired, | ||
labelTransform = _ref$labelTransform === undefined ? defaultTransform : _ref$labelTransform, | ||
restProps = _objectWithoutProperties(_ref, ['scale', 'domain', 'steps', 'labelFormat', 'labelTransform']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['scale', 'domain', 'steps', 'labelFormat', 'labelTransform']); | ||
domain = domain || defaultDomain({ steps: steps, scale: scale }); | ||
return _react2.default.createElement(_Legend2.default, _extends({ | ||
return _react2.default.createElement(_Legend2.default, babelHelpers.extends({ | ||
scale: scale, | ||
@@ -54,0 +47,0 @@ domain: domain, |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendOrdinal; | ||
@@ -14,20 +11,16 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Legend = require('./Legend'); | ||
var _Legend2 = _interopRequireDefault(_Legend); | ||
var _Legend2 = babelHelpers.interopRequireDefault(_Legend); | ||
var _valueOrIdentity = require('../util/valueOrIdentity'); | ||
var _valueOrIdentity2 = _interopRequireDefault(_valueOrIdentity); | ||
var _valueOrIdentity2 = babelHelpers.interopRequireDefault(_valueOrIdentity); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
LegendOrdinal.propTypes = { | ||
@@ -47,5 +40,5 @@ scale: _propTypes2.default.func.isRequired, | ||
labelFormat = _ref$labelFormat === undefined ? _valueOrIdentity2.default : _ref$labelFormat, | ||
restProps = _objectWithoutProperties(_ref, ['scale', 'domain', 'labelTransform', 'labelFormat']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['scale', 'domain', 'labelTransform', 'labelFormat']); | ||
return _react2.default.createElement(_Legend2.default, _extends({ | ||
return _react2.default.createElement(_Legend2.default, babelHelpers.extends({ | ||
scale: scale, | ||
@@ -52,0 +45,0 @@ domain: domain, |
@@ -6,7 +6,2 @@ 'use strict'; | ||
}); | ||
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendQuantile; | ||
@@ -16,16 +11,12 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Legend = require('./Legend'); | ||
var _Legend2 = _interopRequireDefault(_Legend); | ||
var _Legend2 = babelHelpers.interopRequireDefault(_Legend); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
LegendQuantile.propTypes = { | ||
@@ -49,7 +40,7 @@ scale: _propTypes2.default.func.isRequired, | ||
labelDelimiter = _ref$labelDelimiter === undefined ? '-' : _ref$labelDelimiter, | ||
restProps = _objectWithoutProperties(_ref, ['scale', 'domain', 'labelFormat', 'labelTransform', 'labelDelimiter']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['scale', 'domain', 'labelFormat', 'labelTransform', 'labelDelimiter']); | ||
domain = domain || scale.range(); | ||
labelTransform = labelTransform || defaultTransform({ labelDelimiter: labelDelimiter }); | ||
return _react2.default.createElement(_Legend2.default, _extends({ | ||
return _react2.default.createElement(_Legend2.default, babelHelpers.extends({ | ||
scale: scale, | ||
@@ -71,3 +62,3 @@ domain: domain, | ||
var _scale$invertExtent = scale.invertExtent(d), | ||
_scale$invertExtent2 = _slicedToArray(_scale$invertExtent, 2), | ||
_scale$invertExtent2 = babelHelpers.slicedToArray(_scale$invertExtent, 2), | ||
x0 = _scale$invertExtent2[0], | ||
@@ -74,0 +65,0 @@ x1 = _scale$invertExtent2[1]; |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendSize; | ||
@@ -14,16 +11,12 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Legend = require('./Legend'); | ||
var _Legend2 = _interopRequireDefault(_Legend); | ||
var _Legend2 = babelHelpers.interopRequireDefault(_Legend); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function LegendSize(_ref) { | ||
@@ -40,6 +33,6 @@ var scale = _ref.scale, | ||
labelTransform = _ref$labelTransform === undefined ? defaultTransform : _ref$labelTransform, | ||
restProps = _objectWithoutProperties(_ref, ['scale', 'domain', 'steps', 'labelFormat', 'labelTransform']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['scale', 'domain', 'steps', 'labelFormat', 'labelTransform']); | ||
domain = domain || defaultDomain({ steps: steps, scale: scale }); | ||
return _react2.default.createElement(_Legend2.default, _extends({ | ||
return _react2.default.createElement(_Legend2.default, babelHelpers.extends({ | ||
scale: scale, | ||
@@ -46,0 +39,0 @@ domain: domain, |
@@ -6,7 +6,2 @@ 'use strict'; | ||
}); | ||
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = LegendThreshold; | ||
@@ -16,16 +11,12 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _propTypes2 = babelHelpers.interopRequireDefault(_propTypes); | ||
var _Legend = require('./Legend'); | ||
var _Legend2 = _interopRequireDefault(_Legend); | ||
var _Legend2 = babelHelpers.interopRequireDefault(_Legend); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
LegendThreshold.propTypes = { | ||
@@ -55,3 +46,3 @@ scale: _propTypes2.default.func.isRequired, | ||
labelUpper = _ref$labelUpper === undefined ? 'More than ' : _ref$labelUpper, | ||
restProps = _objectWithoutProperties(_ref, ['scale', 'domain', 'labelFormat', 'labelTransform', 'labelDelimiter', 'labelLower', 'labelUpper']); | ||
restProps = babelHelpers.objectWithoutProperties(_ref, ['scale', 'domain', 'labelFormat', 'labelTransform', 'labelDelimiter', 'labelLower', 'labelUpper']); | ||
@@ -64,3 +55,3 @@ domain = domain || scale.range(); | ||
}); | ||
return _react2.default.createElement(_Legend2.default, _extends({ | ||
return _react2.default.createElement(_Legend2.default, babelHelpers.extends({ | ||
scale: scale, | ||
@@ -89,3 +80,3 @@ domain: domain, | ||
var _scale$invertExtent = scale.invertExtent(d), | ||
_scale$invertExtent2 = _slicedToArray(_scale$invertExtent, 2), | ||
_scale$invertExtent2 = babelHelpers.slicedToArray(_scale$invertExtent, 2), | ||
x0 = _scale$invertExtent2[0], | ||
@@ -92,0 +83,0 @@ x1 = _scale$invertExtent2[1]; |
@@ -10,8 +10,6 @@ 'use strict'; | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _group = require('@vx/group'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function ShapeCircle(_ref) { | ||
@@ -18,0 +16,0 @@ var fill = _ref.fill, |
@@ -10,6 +10,4 @@ 'use strict'; | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function ShapeRect(_ref) { | ||
@@ -16,0 +14,0 @@ var fill = _ref.fill, |
@@ -10,6 +10,4 @@ 'use strict'; | ||
var _callOrValue2 = _interopRequireDefault(_callOrValue); | ||
var _callOrValue2 = babelHelpers.interopRequireDefault(_callOrValue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function additionalProps(restProps, data) { | ||
@@ -16,0 +14,0 @@ return Object.keys(restProps).reduce(function (ret, cur) { |
@@ -6,5 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.default = renderShape; | ||
@@ -14,18 +11,16 @@ | ||
var _react2 = _interopRequireDefault(_react); | ||
var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var _Rect = require('../shapes/Rect'); | ||
var _Rect2 = _interopRequireDefault(_Rect); | ||
var _Rect2 = babelHelpers.interopRequireDefault(_Rect); | ||
var _Circle = require('../shapes/Circle'); | ||
var _Circle2 = _interopRequireDefault(_Circle); | ||
var _Circle2 = babelHelpers.interopRequireDefault(_Circle); | ||
var _valueOrIdentity = require('./valueOrIdentity'); | ||
var _valueOrIdentity2 = _interopRequireDefault(_valueOrIdentity); | ||
var _valueOrIdentity2 = babelHelpers.interopRequireDefault(_valueOrIdentity); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function renderShape(_ref) { | ||
@@ -50,5 +45,5 @@ var _ref$shape = _ref.shape, | ||
label: label, | ||
fill: fill(_extends({}, label)), | ||
size: size(_extends({}, label)), | ||
style: shapeStyle(_extends({}, label)) | ||
fill: fill(babelHelpers.extends({}, label)), | ||
size: size(babelHelpers.extends({}, label)), | ||
style: shapeStyle(babelHelpers.extends({}, label)) | ||
}; | ||
@@ -55,0 +50,0 @@ if (typeof shape === 'string') { |
{ | ||
"name": "@vx/legend", | ||
"version": "0.0.161", | ||
"version": "0.0.165-beta.0", | ||
"description": "vx legend", | ||
"sideEffects": false, | ||
"main": "build/index.js", | ||
"main": "dist/vx-legend.umd.js", | ||
"module": "dist/vx-legend.es.js", | ||
"files": [ | ||
"dist", | ||
"build" | ||
], | ||
"scripts": { | ||
"build": "make build SRC=./src", | ||
"prepublish": "make build SRC=./src", | ||
"build": "npm run build:babel && npm run build:dist", | ||
"build:dist": "rm -rf dist && mkdir dist && rollup -c", | ||
"build:babel": "rm -rf build && mkdir build && babel src --out-dir build --ignore node_modules/ --presets stage-0,react,env --plugins external-helpers", | ||
"prepublish": "npm run build", | ||
"test": "jest" | ||
@@ -30,13 +37,23 @@ }, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-jest": "^21.2.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"enzyme": "^3.1.0", | ||
"enzyme-adapter-react-16": "^1.0.2", | ||
"jest": "^21.2.1", | ||
"jest-cli": "^21.2.1", | ||
"raf": "^3.4.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"react-fatigue-dev": "github:tj/react-fatigue-dev", | ||
"react-test-renderer": "^16.0.0", | ||
"react-tools": "^0.10.0", | ||
"regenerator-runtime": "^0.10.5" | ||
"rollup": "^0.59.4", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-replace": "^2.0.0", | ||
"rollup-plugin-uglify": "^4.0.0" | ||
}, | ||
@@ -50,3 +67,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@vx/group": "0.0.161", | ||
"@vx/group": "0.0.165-beta.0", | ||
"classnames": "^2.2.5", | ||
@@ -53,0 +70,0 @@ "prop-types": "^15.5.10" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
54642
21
20
1299
2
1
+ Added@vx/group@0.0.165-beta.0(transitive)
- Removed@vx/group@0.0.161(transitive)
Updated@vx/group@0.0.165-beta.0