@widergy/utilitygo-smart-bill-web 3.2.0 → 3.4.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.
Files changed (21) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/SmartBillSummary/constants.js +6 -8
  3. package/dist/components/SmartBillSummary/index.js +38 -4
  4. package/dist/components/SmartBillSummary/styles.module.scss +1 -1
  5. package/dist/components/SmartBillSummary/tabs/Billing/components/DebtStatusLabel/constants.js +9 -0
  6. package/dist/components/SmartBillSummary/tabs/Billing/components/DebtStatusLabel/index.js +34 -0
  7. package/dist/components/SmartBillSummary/tabs/Billing/components/DebtStatusLabel/styles.module.scss +16 -0
  8. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/components/ProgressBar/constants.js +8 -0
  9. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/components/ProgressBar/index.js +154 -0
  10. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/components/ProgressBar/styles.module.scss +174 -0
  11. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/components/ProgressBar/utils.js +88 -0
  12. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/index.js +165 -0
  13. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/styles.module.scss +60 -0
  14. package/dist/components/SmartBillSummary/tabs/Billing/components/RateCard/utils.js +14 -0
  15. package/dist/components/SmartBillSummary/tabs/Billing/index.js +288 -0
  16. package/dist/components/SmartBillSummary/tabs/Billing/styles.module.scss +132 -0
  17. package/dist/components/SmartBillSummary/tabs/Billing/utils.js +13 -0
  18. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/utils.js +2 -2
  19. package/dist/components/SmartBillSummary/tabs/Glossary/index.js +46 -0
  20. package/dist/components/SmartBillSummary/tabs/Glossary/styles.module.scss +7 -0
  21. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _energyUi = require("@widergy/energy-ui");
8
+ var _propTypes = require("prop-types");
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const Glossary = _ref => {
15
+ let {
16
+ getGlossaryData,
17
+ glossaryData,
18
+ glossaryLoading,
19
+ translations
20
+ } = _ref;
21
+ const {
22
+ pages,
23
+ sections
24
+ } = glossaryData ?? {};
25
+ (0, _react.useEffect)(() => {
26
+ getGlossaryData();
27
+ }, []);
28
+ return glossaryLoading ? /*#__PURE__*/_react.default.createElement("div", {
29
+ className: _stylesModule.default.loadingContainer
30
+ }, /*#__PURE__*/_react.default.createElement(_energyUi.UTLoading, {
31
+ loading: true,
32
+ size: 80,
33
+ thickness: 5
34
+ })) : /*#__PURE__*/_react.default.createElement(_energyUi.UTDocumentWizard, {
35
+ pages: pages,
36
+ sections: sections,
37
+ labels: translations
38
+ });
39
+ };
40
+ Glossary.propTypes = {
41
+ getGlossaryData: _propTypes.func,
42
+ glossaryData: undefined || _propTypes.object,
43
+ glossaryLoading: _propTypes.bool,
44
+ translations: _propTypes.object
45
+ };
46
+ var _default = exports.default = Glossary;
@@ -0,0 +1,7 @@
1
+ .loadingContainer {
2
+ align-items: center;
3
+ display: flex;
4
+ flex: 1;
5
+ justify-content: center;
6
+ min-height: 800px;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/utilitygo-smart-bill-web",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "UtilityGO SmartBill Web",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",