@widergy/utilitygo-smart-bill-web 3.20.2 → 3.21.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.21.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.20.2...v3.21.0) (2026-01-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * format number ([#78](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/78)) ([090a4a9](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/090a4a9519c9edd45f4fe4a9162fcd9beca11aa9))
7
+
1
8
  ## [3.20.2](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v3.20.1...v3.20.2) (2026-01-21)
2
9
 
3
10
 
@@ -8,6 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = require("prop-types");
9
9
  var _energyUi = require("@widergy/energy-ui");
10
10
  var _lodash = require("lodash");
11
+ var _numeral = _interopRequireDefault(require("numeral"));
11
12
  var _billDataTypes = require("../../../../../../shared/types/billDataTypes");
12
13
  var _utils = require("./utils");
13
14
  var _constants = require("./constants");
@@ -64,6 +65,7 @@ const Billing = _ref => {
64
65
  const monthName = (0, _utils.getMonthName)(issuedOn);
65
66
  const consumptionValue = consumptions?.[0].value;
66
67
  const consumptionUnit = consumptions?.[0].unit;
68
+ const totalConsumptionFormatted = (0, _numeral.default)(consumptionValue).format('0,0.[00]');
67
69
  return /*#__PURE__*/_react.default.createElement("div", {
68
70
  key: issuedOn,
69
71
  className: `${_stylesModule.default.billing} ${current ? _stylesModule.default.currentBilling : ''}`
@@ -74,7 +76,7 @@ const Billing = _ref => {
74
76
  }, /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
75
77
  variant: "title3",
76
78
  weight: "medium"
77
- }, unitAlignment === _constants.RIGHT_UNIT_ALIGNMENT ? consumptionValue : `${unit || consumptionUnit}${consumptionValue}`), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
79
+ }, unitAlignment === _constants.RIGHT_UNIT_ALIGNMENT ? totalConsumptionFormatted : `${unit || consumptionUnit}${totalConsumptionFormatted}`), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
78
80
  variant: "subtitle1",
79
81
  weight: "medium"
80
82
  }, unitAlignment === _constants.RIGHT_UNIT_ALIGNMENT && (unit || consumptionUnit))), /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/utilitygo-smart-bill-web",
3
- "version": "3.20.2",
3
+ "version": "3.21.0",
4
4
  "description": "UtilityGO SmartBill Web",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",