@aclymatepackages/modules 3.0.6 → 3.0.8
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:
|
|
97
|
+
aspect: aspect
|
|
97
98
|
}, /*#__PURE__*/_react.default.createElement(_recharts.PieChart, {
|
|
98
99
|
ref: pieChartRef
|
|
99
100
|
}, /*#__PURE__*/_react.default.createElement(_recharts.Pie, {
|
|
@@ -36,7 +36,7 @@ const IndustryAutocomplete = _ref => {
|
|
|
36
36
|
onFocus: e => e.stopPropagation()
|
|
37
37
|
}, /*#__PURE__*/_react.default.createElement(_Autocomplete.default, {
|
|
38
38
|
id: "company-industry-autocomplete",
|
|
39
|
-
options: _lists.
|
|
39
|
+
options: _lists.threeDigitNaicsCodesIndustries,
|
|
40
40
|
getOptionLabel: option => typeof option === "string" ? option : option.label,
|
|
41
41
|
renderInput: params => /*#__PURE__*/_react.default.createElement(_material.TextField, _extends({}, params, {
|
|
42
42
|
label: label || "Company Industry",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aclymatepackages/modules",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Aclymate modules",
|
|
5
5
|
"author": "William Loopesko",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@aclymatepackages/converters": "^1.0.0",
|
|
12
12
|
"@aclymatepackages/fetch-aclymate-api": "^1.0.0",
|
|
13
13
|
"@aclymatepackages/formatters": "^1.0.0",
|
|
14
|
-
"@aclymatepackages/lists": "^1.
|
|
14
|
+
"@aclymatepackages/lists": "^1.4.14",
|
|
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",
|
|
@@ -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={
|
|
101
|
+
<ResponsiveContainer height="100%" aspect={aspect}>
|
|
101
102
|
<PieChart ref={pieChartRef}>
|
|
102
103
|
<Pie
|
|
103
104
|
data={pieSlicesWithPercentages}
|
|
@@ -3,7 +3,7 @@ import React, { useState } from "react";
|
|
|
3
3
|
import Autocomplete from "@mui/lab/Autocomplete";
|
|
4
4
|
import { TextField, Popper } from "@mui/material";
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { threeDigitNaicsCodesIndustries } from "@aclymatepackages/lists";
|
|
7
7
|
|
|
8
8
|
const CustomPopper = (props) => (
|
|
9
9
|
<Popper {...props} style={{ width: "fit-content" }} />
|
|
@@ -27,7 +27,7 @@ const IndustryAutocomplete = ({
|
|
|
27
27
|
>
|
|
28
28
|
<Autocomplete
|
|
29
29
|
id="company-industry-autocomplete"
|
|
30
|
-
options={
|
|
30
|
+
options={threeDigitNaicsCodesIndustries}
|
|
31
31
|
getOptionLabel={(option) =>
|
|
32
32
|
typeof option === "string" ? option : option.label
|
|
33
33
|
}
|