victory-bar
Advanced tools
Comparing version 36.7.0 to 36.8.1
# victory-bar | ||
## 36.8.1 | ||
## 36.8.0 | ||
### Minor Changes | ||
- Remove v37 experimental code ([#2697](https://github.com/FormidableLabs/victory/pull/2697)) | ||
### Patch Changes | ||
- Remove usage of defaultProps from components ([#2679](https://github.com/FormidableLabs/victory/pull/2679)) | ||
## 36.7.0 | ||
@@ -4,0 +16,0 @@ |
@@ -49,7 +49,13 @@ import _assign from "lodash/assign"; | ||
}); | ||
}; | ||
var defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: /*#__PURE__*/React.createElement(Path, null), | ||
role: "presentation", | ||
shapeRendering: "auto" | ||
}; // eslint-disable-next-line prefer-arrow-callback | ||
var Bar = /*#__PURE__*/forwardRef(function Bar(props, ref) { | ||
props = evaluateProps(props); | ||
props = evaluateProps(_objectSpread(_objectSpread({}, defaultProps), props)); | ||
var _props = props, | ||
@@ -99,8 +105,2 @@ polar = _props.polar, | ||
}); | ||
Bar.defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: /*#__PURE__*/React.createElement(Path, null), | ||
role: "presentation", | ||
shapeRendering: "auto" | ||
}; | ||
export default Bar; |
@@ -71,7 +71,13 @@ "use strict"; | ||
}); | ||
}; | ||
var defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Path, null), | ||
role: "presentation", | ||
shapeRendering: "auto" | ||
}; // eslint-disable-next-line prefer-arrow-callback | ||
var Bar = /*#__PURE__*/(0, _react.forwardRef)(function Bar(props, ref) { | ||
props = evaluateProps(props); | ||
props = evaluateProps(_objectSpread(_objectSpread({}, defaultProps), props)); | ||
var _props = props, | ||
@@ -121,9 +127,3 @@ polar = _props.polar, | ||
}); | ||
Bar.defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Path, null), | ||
role: "presentation", | ||
shapeRendering: "auto" | ||
}; | ||
var _default = Bar; | ||
exports.default = _default; |
{ | ||
"name": "victory-bar", | ||
"version": "36.7.0", | ||
"version": "36.8.1", | ||
"description": "Bar Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.7.0", | ||
"victory-vendor": "^36.7.0" | ||
"victory-core": "^36.8.1", | ||
"victory-vendor": "^36.8.1" | ||
}, | ||
@@ -29,0 +29,0 @@ "peerDependencies": { |
@@ -44,5 +44,11 @@ import { assign } from "lodash"; | ||
const defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: <Path />, | ||
role: "presentation", | ||
shapeRendering: "auto", | ||
}; | ||
// eslint-disable-next-line prefer-arrow-callback | ||
const Bar = forwardRef(function Bar(props, ref) { | ||
props = evaluateProps(props); | ||
props = evaluateProps({ ...defaultProps, ...props }); | ||
const { polar, origin, style, barWidth, cornerRadius } = props; | ||
@@ -99,9 +105,2 @@ | ||
Bar.defaultProps = { | ||
defaultBarWidth: 8, | ||
pathComponent: <Path />, | ||
role: "presentation", | ||
shapeRendering: "auto", | ||
}; | ||
export default Bar; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1489022
30
25638
Updatedvictory-core@^36.8.1
Updatedvictory-vendor@^36.8.1