@aclymatepackages/modules 1.0.14 → 1.0.15
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.
|
@@ -7,7 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
9
|
var _atoms = require("@aclymatepackages/atoms");
|
|
10
|
-
var _formatters = require("@aclymatepackages/formatters");
|
|
11
10
|
var _otherHelpers = require("@aclymatepackages/other-helpers");
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
12
|
const EmissionsSummarySentence = _ref => {
|
|
@@ -31,6 +30,9 @@ const EmissionsSummarySentence = _ref => {
|
|
|
31
30
|
item: true
|
|
32
31
|
}, /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
33
32
|
variant: "body2"
|
|
34
|
-
},
|
|
33
|
+
}, (0, _otherHelpers.buildEmissionsSummarySentence)({
|
|
34
|
+
label,
|
|
35
|
+
emissions
|
|
36
|
+
}))));
|
|
35
37
|
};
|
|
36
38
|
var _default = exports.default = EmissionsSummarySentence;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aclymatepackages/modules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Aclymate modules",
|
|
5
5
|
"author": "William Loopesko",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@aclymatepackages/formatters": "^1.0.0",
|
|
17
17
|
"@aclymatepackages/lists": "^1.0.0",
|
|
18
18
|
"@aclymatepackages/multi-part-form": "1.0.1",
|
|
19
|
-
"@aclymatepackages/other-helpers": "^1.0.
|
|
19
|
+
"@aclymatepackages/other-helpers": "^1.0.2",
|
|
20
20
|
"@aclymatepackages/reg-exp": "^1.0.0",
|
|
21
21
|
"@aclymatepackages/themes": "^1.0.0",
|
|
22
22
|
"@babel/preset-react": "^7.16.7",
|
|
@@ -3,8 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { Typography, Grid } from "@mui/material";
|
|
4
4
|
|
|
5
5
|
import { CategoriesAvatar } from "@aclymatepackages/atoms";
|
|
6
|
-
import {
|
|
7
|
-
import { sumTonsCo2e } from "@aclymatepackages/other-helpers";
|
|
6
|
+
import { buildEmissionsSummarySentence } from "@aclymatepackages/other-helpers";
|
|
8
7
|
|
|
9
8
|
const EmissionsSummarySentence = ({ label, emissions, color, scope }) => (
|
|
10
9
|
<Grid container spacing={1} alignItems="center" wrap="nowrap">
|
|
@@ -13,7 +12,7 @@ const EmissionsSummarySentence = ({ label, emissions, color, scope }) => (
|
|
|
13
12
|
</Grid>
|
|
14
13
|
<Grid item>
|
|
15
14
|
<Typography variant="body2">
|
|
16
|
-
{label
|
|
15
|
+
{buildEmissionsSummarySentence({ label, emissions })}
|
|
17
16
|
</Typography>
|
|
18
17
|
</Grid>
|
|
19
18
|
</Grid>
|