victory-bar
Advanced tools
Comparing version 36.3.0 to 36.3.2
@@ -21,3 +21,3 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
import Bar from "./bar"; | ||
import { Helpers, VictoryLabel, VictoryContainer, VictoryTheme, CommonProps, addEvents, Data, Domain } from "victory-core"; | ||
import { Helpers, VictoryLabel, VictoryContainer, VictoryTheme, CommonProps, addEvents, Data, Domain, UserProps } from "victory-core"; | ||
var fallbackProps = { | ||
@@ -71,3 +71,4 @@ width: 450, | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -74,0 +75,0 @@ }]); |
@@ -85,3 +85,6 @@ "use strict"; | ||
var children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props)); | ||
return props.standalone ? this.renderContainer(container, children) : children; | ||
} | ||
@@ -88,0 +91,0 @@ }]); |
{ | ||
"name": "victory-bar", | ||
"version": "36.3.0", | ||
"version": "36.3.2", | ||
"description": "Bar Component for Victory", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^36.3.0" | ||
"victory-core": "^36.3.2" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "ebafd849d2ded3f1d2aabf0d6e64dcbd48e4c9d6" | ||
"gitHead": "18895d1290245732d14332bbbda10336032c9aab" | ||
} |
@@ -13,3 +13,4 @@ import PropTypes from "prop-types"; | ||
Data, | ||
Domain | ||
Domain, | ||
UserProps | ||
} from "victory-core"; | ||
@@ -119,4 +120,8 @@ | ||
const children = this.renderData(props); | ||
const container = React.cloneElement( | ||
props.containerComponent, | ||
UserProps.getSafeUserProps(props) | ||
); | ||
return props.standalone | ||
? this.renderContainer(props.containerComponent, children) | ||
? this.renderContainer(container, children) | ||
: children; | ||
@@ -123,0 +128,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1199025
22566
Updatedvictory-core@^36.3.2