victory-group 37.1.2 → 37.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -193,14 +193,15 @@ export function getChildren(initialProps, childComponents, calculatedProps) {
193
193
  } = newCalculatedProps;
194
194
  const {
195
195
  labelComponent,
196
- polar
196
+ polar,
197
+ theme
197
198
  } = props;
198
199
  const childProps = getChildProps(props, newCalculatedProps);
199
200
  const parentName = props.name || "group";
200
201
  return children.map((child, index) => {
201
202
  const role = child.type && child.type.role;
202
203
  const xOffset = polar ? getPolarX0(props, newCalculatedProps, index, role) : getX0(props, newCalculatedProps, index, role);
203
- const style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : Wrapper.getChildStyle(child, index, newCalculatedProps);
204
+ const style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : Wrapper.getChildStyle(child, index, newCalculatedProps, theme);
204
205
  const labels = props.labels ? getLabels(props, datasets, index) : child.props.labels;
205
206
  const name = child.props.name || `${parentName}-${role}-${index}`;
206
207
  return /*#__PURE__*/React.cloneElement(child, Object.assign({
@@ -203,14 +203,15 @@ function getChildren(initialProps, childComponents, calculatedProps) {
203
203
  } = newCalculatedProps;
204
204
  const {
205
205
  labelComponent,
206
- polar
206
+ polar,
207
+ theme
207
208
  } = props;
208
209
  const childProps = getChildProps(props, newCalculatedProps);
209
210
  const parentName = props.name || "group";
210
211
  return children.map((child, index) => {
211
212
  const role = child.type && child.type.role;
212
213
  const xOffset = polar ? getPolarX0(props, newCalculatedProps, index, role) : getX0(props, newCalculatedProps, index, role);
213
- const style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : _victoryCore.Wrapper.getChildStyle(child, index, newCalculatedProps);
214
+ const style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : _victoryCore.Wrapper.getChildStyle(child, index, newCalculatedProps, theme);
214
215
  const labels = props.labels ? getLabels(props, datasets, index) : child.props.labels;
215
216
  const name = child.props.name || `${parentName}-${role}-${index}`;
216
217
  return /*#__PURE__*/_react.default.cloneElement(child, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-group",
3
- "version": "37.1.2",
3
+ "version": "37.3.0",
4
4
  "description": "Group Layout Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-core": "37.1.2",
26
- "victory-shared-events": "37.1.2"
25
+ "victory-core": "37.3.0",
26
+ "victory-shared-events": "37.3.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "victory-bar": "*"
@@ -193,7 +193,7 @@ export function getChildren(initialProps, childComponents?, calculatedProps?) {
193
193
  const newCalculatedProps =
194
194
  calculatedProps || getCalculatedProps(props, children);
195
195
  const { datasets } = newCalculatedProps;
196
- const { labelComponent, polar } = props;
196
+ const { labelComponent, polar, theme } = props;
197
197
  const childProps = getChildProps(props, newCalculatedProps);
198
198
  const parentName = props.name || "group";
199
199
  return children.map((child, index) => {
@@ -204,7 +204,7 @@ export function getChildren(initialProps, childComponents?, calculatedProps?) {
204
204
  const style =
205
205
  role === "voronoi" || role === "tooltip" || role === "label"
206
206
  ? child.props.style
207
- : Wrapper.getChildStyle(child, index, newCalculatedProps);
207
+ : Wrapper.getChildStyle(child, index, newCalculatedProps, theme);
208
208
  const labels = props.labels
209
209
  ? getLabels(props, datasets, index)
210
210
  : child.props.labels;