@widergy/utilitygo-smart-bill-mobile 2.6.0 → 2.7.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
|
+
# [2.7.0](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v2.6.0...v2.7.0) (2025-07-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* [UGEE-365] export billing and rate card ([#42](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/issues/42)) ([b530786](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/commit/b5307865ff407b575019dba5d3f519c17c2dd1cf))
|
|
7
|
+
|
|
1
8
|
# [2.6.0](https://github.com/widergy/UtilityGO-Smart-Bill-Mobile/compare/v2.5.2...v2.6.0) (2025-06-27)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/utilitygo-smart-bill-mobile",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "UtilityGO SmartBill Mobile",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/lib/index.js",
|
|
@@ -83,5 +83,8 @@
|
|
|
83
83
|
},
|
|
84
84
|
"release": {
|
|
85
85
|
"extends": "@widergy/semantic-release-package-config"
|
|
86
|
+
},
|
|
87
|
+
"resolutions": {
|
|
88
|
+
"minimatch": "^9.0.3"
|
|
86
89
|
}
|
|
87
90
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useEffect, useMemo } from 'react';
|
|
3
3
|
import { Linking, View } from 'react-native';
|
|
4
4
|
import { Surface, UTButton, UTLabel } from '@widergy/mobile-ui';
|
|
5
|
-
import { object, string, func, objectOf, array } from 'prop-types';
|
|
5
|
+
import { object, string, func, objectOf, array, bool } from 'prop-types';
|
|
6
6
|
import isEmpty from 'lodash/isEmpty';
|
|
7
7
|
import debounce from 'lodash/debounce';
|
|
8
8
|
|
|
@@ -26,6 +26,7 @@ const RateCard = ({
|
|
|
26
26
|
smartBill = {},
|
|
27
27
|
subsidy = '',
|
|
28
28
|
subsidyLevels,
|
|
29
|
+
withElevation = true,
|
|
29
30
|
trackRedirectionToExternalLink
|
|
30
31
|
}) => {
|
|
31
32
|
const styles = createStyles(colors);
|
|
@@ -82,7 +83,7 @@ const RateCard = ({
|
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
return (
|
|
85
|
-
<Surface elevation={1} style={styles.container}>
|
|
86
|
+
<Surface elevation={withElevation ? 1 : 0} style={styles.container}>
|
|
86
87
|
<View style={styles.headerTitles}>
|
|
87
88
|
<UTLabel variant="title2" weight="medium">
|
|
88
89
|
{title}
|
|
@@ -173,6 +174,7 @@ RateCard.propTypes = {
|
|
|
173
174
|
smartBill: object,
|
|
174
175
|
subsidy: string,
|
|
175
176
|
subsidyLevels: objectOf(string),
|
|
177
|
+
withElevation: bool,
|
|
176
178
|
trackRedirectionToExternalLink: func
|
|
177
179
|
};
|
|
178
180
|
|
|
@@ -9,14 +9,14 @@ import { getBillingsToShow, getMonthName } from './utils';
|
|
|
9
9
|
import { DEFAULT_TAG_COLOR_THEME, DEFAULT_TAG_ICON, TAG_ICON_SIZE } from './constants';
|
|
10
10
|
import { createStyles } from './styles';
|
|
11
11
|
|
|
12
|
-
const Billing = ({ colors, smartBill, texts }) => {
|
|
12
|
+
const Billing = ({ colors, smartBill, texts, withElevation = true }) => {
|
|
13
13
|
const styles = createStyles(colors);
|
|
14
14
|
const { title, tagLabel, clarification, periodDetail } = texts?.billing || {};
|
|
15
15
|
const currentPeriod = smartBill?.periods.find(period => period.current);
|
|
16
16
|
const billingsToShow = getBillingsToShow(currentPeriod?.settlements);
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<Surface elevation={1} style={styles.container}>
|
|
19
|
+
<Surface elevation={withElevation ? 1 : 0} style={styles.container}>
|
|
20
20
|
<UTLabel colorTheme="gray" variant="small">
|
|
21
21
|
{title}
|
|
22
22
|
</UTLabel>
|
package/src/lib/index.js
CHANGED
|
@@ -8,6 +8,8 @@ import RatesDefinition from './components/RatesDefinition';
|
|
|
8
8
|
import BillSummary from './components/BillSummary';
|
|
9
9
|
import SmartBillSummary from './components/SmartBillSummary';
|
|
10
10
|
import { SMARTBILL_TABS as Tabs } from './constants/tabs';
|
|
11
|
+
import Billing from './components/SmartBillSummary/tabs/Consumptions/components/Billing';
|
|
12
|
+
import RateCard from './components/SmartBillSummary/tabs/Billing/components/RateCard';
|
|
11
13
|
|
|
12
14
|
export {
|
|
13
15
|
SmartBillProvider,
|
|
@@ -20,5 +22,7 @@ export {
|
|
|
20
22
|
BillCalculation,
|
|
21
23
|
// 2.0 - New Experience:
|
|
22
24
|
SmartBillSummary,
|
|
25
|
+
Billing,
|
|
26
|
+
RateCard,
|
|
23
27
|
Tabs
|
|
24
28
|
};
|