@aclymatepackages/modules 1.0.21 → 1.0.22
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.
|
@@ -13,7 +13,7 @@ var _emissionsCalcs = require("@aclymatepackages/emissions-calcs");
|
|
|
13
13
|
var _subcategories = require("@aclymatepackages/subcategories");
|
|
14
14
|
var _ReportGraphContentLayout = _interopRequireDefault(require("./ReportGraphContentLayout"));
|
|
15
15
|
var _EmissionsPieChart = _interopRequireDefault(require("./EmissionsPieChart"));
|
|
16
|
-
var
|
|
16
|
+
var _EmissionsScopeSummarySentence = _interopRequireDefault(require("./EmissionsScopeSummarySentence"));
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -59,7 +59,7 @@ const ReportSummaryBlock = _ref => {
|
|
|
59
59
|
emissions,
|
|
60
60
|
color
|
|
61
61
|
} = _ref2;
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_EmissionsScopeSummarySentence.default, {
|
|
63
63
|
key: "summary-sentence-".concat(idx),
|
|
64
64
|
label: "Total Scope ".concat(scope),
|
|
65
65
|
emissions: emissions,
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import { buildScopesWithColors } from "@aclymatepackages/subcategories";
|
|
|
8
8
|
|
|
9
9
|
import ReportGraphContentLayout from "./ReportGraphContentLayout";
|
|
10
10
|
import EmissionsPieChart from "./EmissionsPieChart";
|
|
11
|
-
import
|
|
11
|
+
import EmissionsScopeSummarySentence from "./EmissionsScopeSummarySentence";
|
|
12
12
|
|
|
13
13
|
const ReportSummaryBlock = ({ emissions, interval, branding, showTooltip }) => {
|
|
14
14
|
const scopesWithColors = buildScopesWithColors(branding);
|
|
@@ -38,7 +38,7 @@ const ReportSummaryBlock = ({ emissions, interval, branding, showTooltip }) => {
|
|
|
38
38
|
/>,
|
|
39
39
|
<Typography variant="subtitle1">Emissions Scope Breakdown</Typography>,
|
|
40
40
|
...scopesWithEmissions.map(({ scope, emissions, color }, idx) => (
|
|
41
|
-
<
|
|
41
|
+
<EmissionsScopeSummarySentence
|
|
42
42
|
key={`summary-sentence-${idx}`}
|
|
43
43
|
label={`Total Scope ${scope}`}
|
|
44
44
|
emissions={emissions}
|