@aclymatepackages/modules 3.0.5 → 3.0.7

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.
@@ -63,7 +63,8 @@ const EmissionsPieChart = _ref2 => {
63
63
  branding,
64
64
  showTooltip = true,
65
65
  CustomTooltip,
66
- subcategoriesArray: subcategoriesArrayProp
66
+ subcategoriesArray: subcategoriesArrayProp,
67
+ aspect = 1.5
67
68
  } = _ref2;
68
69
  const subcategoriesArray = subcategoriesArrayProp || (0, _subcategories.buildSubcategoriesArray)(emissions);
69
70
  const scopesArray = (0, _subcategories.buildScopesWithColors)(branding);
@@ -93,7 +94,7 @@ const EmissionsPieChart = _ref2 => {
93
94
  const TooltipComponent = CustomTooltip || PieChartCustomTooltip;
94
95
  return /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
95
96
  height: "100%",
96
- aspect: 1.5
97
+ aspect: aspect
97
98
  }, /*#__PURE__*/_react.default.createElement(_recharts.PieChart, {
98
99
  ref: pieChartRef
99
100
  }, /*#__PURE__*/_react.default.createElement(_recharts.Pie, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "@aclymatepackages/multi-part-form": "^2.0.1",
16
16
  "@aclymatepackages/other-helpers": "^1.0.9",
17
17
  "@aclymatepackages/reg-exp": "^1.0.0",
18
- "@aclymatepackages/subcategories": "^3.2.5",
19
- "@aclymatepackages/themes": "^3.0.9",
18
+ "@aclymatepackages/subcategories": "^4.0.4",
19
+ "@aclymatepackages/themes": "^4.0.0",
20
20
  "@babel/preset-react": "^7.16.7",
21
21
  "@emotion/react": "^11.11.1",
22
22
  "@emotion/styled": "^11.11.0",
@@ -56,6 +56,7 @@ const EmissionsPieChart = ({
56
56
  showTooltip = true,
57
57
  CustomTooltip,
58
58
  subcategoriesArray: subcategoriesArrayProp,
59
+ aspect = 1.5,
59
60
  }) => {
60
61
  const subcategoriesArray =
61
62
  subcategoriesArrayProp || buildSubcategoriesArray(emissions);
@@ -97,7 +98,7 @@ const EmissionsPieChart = ({
97
98
  const TooltipComponent = CustomTooltip || PieChartCustomTooltip;
98
99
 
99
100
  return (
100
- <ResponsiveContainer height="100%" aspect={1.5}>
101
+ <ResponsiveContainer height="100%" aspect={aspect}>
101
102
  <PieChart ref={pieChartRef}>
102
103
  <Pie
103
104
  data={pieSlicesWithPercentages}