@widergy/utilitygo-smart-bill-web 1.7.3 → 1.10.1
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 +28 -0
- package/dist/components/Advice/index.js +1 -2
- package/dist/components/Advice/styles.module.scss +2 -1
- package/dist/components/Amount/index.js +2 -2
- package/dist/components/Amount/styles.module.scss +10 -2
- package/dist/components/BarChart/constants.js +19 -3
- package/dist/components/BarChart/index.js +70 -101
- package/dist/components/BarChart/styles.module.scss +71 -0
- package/dist/components/BarChart/utils.js +31 -15
- package/dist/components/BillCalculation/components/ConceptCard/index.js +28 -9
- package/dist/components/BillCalculation/components/ConceptCard/styles.module.scss +16 -6
- package/dist/components/BillCalculation/index.js +10 -5
- package/dist/components/BillCalculation/utils.js +14 -9
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +11 -18
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/styles.module.scss +1 -5
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/constants.js +9 -3
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +21 -28
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/styles.module.scss +2 -2
- package/dist/components/BillSummary/components/BilledConcepts/constants.js +1 -1
- package/dist/components/BillSummary/components/BilledConcepts/index.js +8 -3
- package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +1 -1
- package/dist/components/BillSummary/components/BilledConcepts/utils.js +20 -6
- package/dist/components/BillSummary/styles.module.scss +2 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +3 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/styles.module.scss +4 -2
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +3 -3
- package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +61 -37
- package/dist/components/ConsumptionComparison/components/ComparisonTable/styles.module.scss +14 -6
- package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +4 -2
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +2 -5
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/styles.module.scss +4 -5
- package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +4 -3
- package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +3 -12
- package/dist/components/ConsumptionComparison/index.js +9 -11
- package/dist/components/ConsumptionComparison/styles.module.scss +5 -4
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +26 -2
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/styles.module.scss +2 -0
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/styles.module.scss +1 -1
- package/dist/components/ConsumptionEnergyDetails/index.js +21 -11
- package/dist/components/ConsumptionEnergyDetails/styles.module.scss +13 -1
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +61 -42
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +33 -20
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/utils.js +24 -0
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +13 -19
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +3 -6
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +7 -9
- package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +11 -3
- package/dist/components/ConsumptionIncluded/components/TimelineRow/styles.module.scss +10 -13
- package/dist/components/ConsumptionIncluded/styles.module.scss +5 -0
- package/dist/components/ConsumptionIncluded/utils.js +6 -6
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/styles.module.scss +2 -0
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +8 -6
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/styles.module.scss +16 -4
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +1 -7
- package/dist/components/ConsumptionPeriod/components/Reading/index.js +26 -9
- package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +13 -8
- package/dist/components/ConsumptionPeriod/styles.module.scss +11 -10
- package/dist/components/Date/index.js +2 -2
- package/dist/components/Date/styles.module.scss +3 -0
- package/dist/components/DebtState/styles.module.scss +1 -1
- package/dist/components/IconAndDetails/index.js +4 -1
- package/dist/components/IconAndDetails/styles.module.scss +2 -2
- package/dist/components/Magnitude/index.js +6 -5
- package/dist/components/Magnitude/styles.module.scss +5 -5
- package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +5 -5
- package/dist/components/MainBillData/components/BillAlert/styles.module.scss +5 -3
- package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +13 -13
- package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +3 -3
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/styles.module.scss +1 -1
- package/dist/components/MainBillData/components/BillBody/styles.module.scss +4 -3
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +3 -2
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/styles.module.scss +7 -3
- package/dist/components/MainBillData/components/BillHeader/index.js +2 -2
- package/dist/components/MainBillData/components/BillHeader/styles.module.scss +10 -9
- package/dist/components/MainBillData/styles.module.scss +0 -1
- package/dist/components/Period/index.js +39 -11
- package/dist/components/Period/styles.module.scss +13 -4
- package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +2 -3
- package/dist/components/PowerProgresBar/index.js +3 -4
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +6 -17
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +8 -3
- package/dist/components/RatesDefinition/components/BillRate/index.js +10 -11
- package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +8 -29
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +9 -5
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +12 -18
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/components/SubStage/index.js +4 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/index.js +13 -62
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/components/Stage/styles.module.scss +2 -6
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Bars/index.js +1 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +18 -12
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/styles.module.scss +7 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +23 -14
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/styles.module.scss +6 -19
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +35 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/LegendItem/index.js +80 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/LegendItem/styles.module.scss +57 -0
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/constants.js +17 -9
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/styles.module.scss +2 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +1 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +61 -7
- package/dist/components/RatesDefinition/components/CategoryByConsumption/styles.module.scss +20 -4
- package/dist/components/RatesDefinition/components/PurchasedRate/index.js +12 -22
- package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +14 -44
- package/dist/components/RatesDefinition/index.js +16 -12
- package/dist/components/RatesDefinition/styles.module.scss +38 -10
- package/dist/components/StyledAmount/constants.js +0 -45
- package/dist/components/StyledAmount/index.js +5 -14
- package/dist/components/StyledAmount/styles.module.scss +14 -8
- package/dist/components/WithContextApi/index.js +9 -1
- package/dist/constants/deviceSizes.js +1 -1
- package/dist/index.js +28 -15
- package/dist/shared/Context/index.js +1 -1
- package/dist/shared/constants/aliases.js +532 -10
- package/dist/shared/constants/components.js +3 -1
- package/dist/shared/constants/consumptions.js +1 -1
- package/dist/shared/constants/readings.js +1 -1
- package/dist/shared/constants/stagesGraph.js +1 -1
- package/dist/shared/types/assetsTypes.js +1 -30
- package/dist/shared/types/billDataTypes.js +1 -1
- package/dist/shared/types/componentsTypes.js +4 -2
- package/dist/shared/types/rateStagesTypes.js +1 -1
- package/dist/shared/utils/consumptions.js +3 -3
- package/dist/shared/utils/context.js +3 -1
- package/dist/shared/utils/periods.js +1 -1
- package/dist/shared/utils/readings.js +1 -1
- package/dist/shared/utils/stagesGraph.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -3
- package/dist/components/BarChart/components/CustomBar/index.js +0 -111
- package/dist/components/BarChart/components/CustomLabelText/index.js +0 -48
- package/dist/components/BarChart/components/CustomXAxisLabel/index.js +0 -58
- package/dist/components/BarChart/styles.js +0 -90
- package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/utils.js +0 -27
- package/dist/components/BillSummary/components/Rate/index.js +0 -56
- package/dist/components/BillSummary/components/Rate/styles.module.scss +0 -43
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../../../scss/variables/_colorsExport.scss';
|
|
2
2
|
@import '../../../../scss/variables/_sizes.scss';
|
|
3
|
+
@import '../../../../scss/variables/_mediaQueries';
|
|
3
4
|
|
|
4
5
|
.container {
|
|
5
6
|
background-color: $white;
|
|
@@ -12,25 +13,29 @@
|
|
|
12
13
|
|
|
13
14
|
.title {
|
|
14
15
|
border-bottom: 1px solid $borders-gray;
|
|
15
|
-
padding:
|
|
16
|
+
padding: 16px 24px;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.tooltipTitle {
|
|
19
20
|
border-bottom: 1px solid $borders-gray;
|
|
20
21
|
display: flex;
|
|
21
22
|
justify-content: space-between;
|
|
22
|
-
padding:
|
|
23
|
+
padding: 16px 24px;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.infoIconTooltip {
|
|
26
|
-
|
|
27
|
+
outline: none;
|
|
27
28
|
width: 18px;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
.detailsContainer {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
padding: 16px 24px;
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
@media #{$tablet-mobile} {
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
}
|
|
36
41
|
}
|
|
@@ -6,34 +6,35 @@
|
|
|
6
6
|
flex-flow: column;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
margin: 0 auto;
|
|
9
|
-
width:
|
|
10
|
-
|
|
11
|
-
@media #{$tablet-mobile} {
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
9
|
+
width: 100%;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
12
|
.readingsAndDesktopSummaryContainer {
|
|
17
13
|
display: flex;
|
|
18
14
|
justify-content: space-between;
|
|
19
|
-
margin-bottom:
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
gap: 16px;
|
|
20
17
|
width: 100%;
|
|
18
|
+
|
|
19
|
+
@media #{$mobile} {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
}
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
.readingContainer {
|
|
24
25
|
width: 30%;
|
|
25
26
|
|
|
26
27
|
@media #{$mobile} {
|
|
27
|
-
width:
|
|
28
|
+
width: 100%;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.initialReadingContainer {
|
|
32
|
-
|
|
33
|
+
justify-content: flex-start;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.finalReadingContainer {
|
|
36
|
-
|
|
37
|
+
justify-content: flex-start;
|
|
37
38
|
|
|
38
39
|
@media #{$mobile} {
|
|
39
40
|
margin-left: 0;
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.mobileSummary {
|
|
52
|
-
margin-bottom:
|
|
53
|
+
margin-bottom: 16px;
|
|
53
54
|
width: 100%;
|
|
54
55
|
|
|
55
56
|
@media #{$tablet} {
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = require("prop-types");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
13
|
|
|
14
14
|
var _smartBillTypes = require("../../shared/types/smartBillTypes");
|
|
15
15
|
|
|
@@ -33,7 +33,7 @@ var Date = function Date(_ref) {
|
|
|
33
33
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
34
34
|
alias: mainAlias,
|
|
35
35
|
className: _stylesModule.default.valueContainer
|
|
36
|
-
}, (0,
|
|
36
|
+
}, (0, _dayjs.default)(date, 'YYYY-MM-DD').format('DD/MM/YYYY')), /*#__PURE__*/_react.default.createElement(Label, {
|
|
37
37
|
alias: detailAlias
|
|
38
38
|
}, text));
|
|
39
39
|
};
|
|
@@ -33,6 +33,8 @@ var IconAndDetails = function IconAndDetails(_ref) {
|
|
|
33
33
|
tooltip = _ref.tooltip,
|
|
34
34
|
mainAlias = _ref.mainAlias,
|
|
35
35
|
secondaryAlias = _ref.secondaryAlias,
|
|
36
|
+
_ref$tertiaryAlias = _ref.tertiaryAlias,
|
|
37
|
+
tertiaryAlias = _ref$tertiaryAlias === void 0 ? secondaryAlias : _ref$tertiaryAlias,
|
|
36
38
|
_ref$classes = _ref.classes,
|
|
37
39
|
classes = _ref$classes === void 0 ? {} : _ref$classes;
|
|
38
40
|
var Label = contextApiInfo.Label,
|
|
@@ -50,7 +52,7 @@ var IconAndDetails = function IconAndDetails(_ref) {
|
|
|
50
52
|
alias: mainAlias,
|
|
51
53
|
className: _stylesModule.default.mainText
|
|
52
54
|
}, (0, _utils.stringOrDash)(mainText)), secondaryText && !repeatedData && /*#__PURE__*/_react.default.createElement(Label, {
|
|
53
|
-
alias:
|
|
55
|
+
alias: tertiaryAlias,
|
|
54
56
|
className: _stylesModule.default.secondaryText
|
|
55
57
|
}, secondaryText), descriptionText && /*#__PURE__*/_react.default.createElement(Label, {
|
|
56
58
|
alias: secondaryAlias
|
|
@@ -66,6 +68,7 @@ IconAndDetails.propTypes = {
|
|
|
66
68
|
tooltip: _propTypes.string,
|
|
67
69
|
mainAlias: _propTypes.string,
|
|
68
70
|
secondaryAlias: _propTypes.string,
|
|
71
|
+
tertiaryAlias: _propTypes.string,
|
|
69
72
|
classes: (0, _propTypes.shape)({
|
|
70
73
|
container: _propTypes.string
|
|
71
74
|
})
|
|
@@ -42,14 +42,15 @@ var Magnitude = function Magnitude(props) {
|
|
|
42
42
|
}, Icon && /*#__PURE__*/_react.default.createElement(Icon, {
|
|
43
43
|
className: "".concat(_stylesModule.default.icon, " ").concat(classes.icon)
|
|
44
44
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
-
className: _stylesModule.default.numberAndUnit
|
|
45
|
+
className: "".concat(_stylesModule.default.numberAndUnit, " ").concat(classes.numberAndUnit)
|
|
46
46
|
}, /*#__PURE__*/_react.default.createElement(Label, _extends({
|
|
47
47
|
alias: numberAlias
|
|
48
|
-
}, variantProps.valueLabel), (0, _utils.numberOrDash)(value)), !disableUnit && /*#__PURE__*/_react.default.createElement(Label, _extends({
|
|
49
|
-
alias: unitAlias
|
|
50
48
|
}, variantProps.unitLabel, {
|
|
51
|
-
className: "".concat(variantProps.unitLabelStyles
|
|
52
|
-
}), (0, _utils.
|
|
49
|
+
className: "".concat(variantProps.unitLabelStyles)
|
|
50
|
+
}), (0, _utils.numberOrDash)(value)), !disableUnit && /*#__PURE__*/_react.default.createElement(Label, {
|
|
51
|
+
alias: unitAlias,
|
|
52
|
+
className: classes.unitLabel
|
|
53
|
+
}, (0, _utils.stringOrDash)(unit))));
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
Magnitude.propTypes = {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.numberAndUnit {
|
|
11
|
-
align-items:
|
|
11
|
+
align-items: baseline;
|
|
12
12
|
display: flex;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.unitSmall {
|
|
16
|
-
margin:
|
|
16
|
+
margin-right: 2px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.unitMedium {
|
|
20
|
-
margin:
|
|
20
|
+
margin-right: 4px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.unitxxLarge {
|
|
24
|
-
margin:
|
|
24
|
+
margin-right: 4px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.unitxxxLarge {
|
|
28
|
-
margin:
|
|
28
|
+
margin-right: 8px;
|
|
29
29
|
}
|
|
@@ -13,6 +13,8 @@ var _smartBillTypes = require("../../../../../../shared/types/smartBillTypes");
|
|
|
13
13
|
|
|
14
14
|
var _WithContextApi = _interopRequireDefault(require("../../../../../WithContextApi"));
|
|
15
15
|
|
|
16
|
+
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
17
|
+
|
|
16
18
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -31,18 +33,16 @@ var BillParticularConditions = function BillParticularConditions(_ref) {
|
|
|
31
33
|
}, /*#__PURE__*/_react.default.createElement(assets.ParticularConditionsIcon, {
|
|
32
34
|
className: _stylesModule.default.marginBottom
|
|
33
35
|
}), /*#__PURE__*/_react.default.createElement(Label, {
|
|
34
|
-
|
|
35
|
-
large: true,
|
|
36
|
+
alias: _aliases.PARTICULAR_CONDITIONS_TITLE,
|
|
36
37
|
className: "".concat(_stylesModule.default.title, " ").concat(_stylesModule.default.marginBottom)
|
|
37
38
|
}, texts.mainBillData.particularConditionsTitle), /*#__PURE__*/_react.default.createElement("div", {
|
|
38
39
|
className: _stylesModule.default.particularConditionsList
|
|
39
40
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
40
|
-
|
|
41
|
-
semibold: true,
|
|
41
|
+
alias: _aliases.PARTICULAR_CONDITIONS_LIST_TITLE,
|
|
42
42
|
className: _stylesModule.default.marginBottom
|
|
43
43
|
}, texts.mainBillData.particularConditionsListTitle), particularConditions.map(function (particularCondition) {
|
|
44
44
|
return /*#__PURE__*/_react.default.createElement(Label, {
|
|
45
|
-
|
|
45
|
+
alias: _aliases.PARTICULAR_CONDITION,
|
|
46
46
|
key: particularCondition,
|
|
47
47
|
className: _stylesModule.default.item
|
|
48
48
|
}, "* ".concat(particularCondition));
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
margin-bottom: $default-spacing;
|
|
13
|
-
padding:
|
|
13
|
+
padding: 16px;
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
16
|
@media #{$tablet-mobile} {
|
|
17
17
|
margin-bottom: $default-spacing;
|
|
18
|
-
padding:
|
|
18
|
+
padding: 16px;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,15 +25,17 @@
|
|
|
25
25
|
|
|
26
26
|
@media #{$tablet-mobile} {
|
|
27
27
|
max-width: 90%;
|
|
28
|
-
padding:
|
|
28
|
+
padding: 16px;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.iconAndLabelContainer {
|
|
33
33
|
align-items: center;
|
|
34
|
+
gap: 8px;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.label {
|
|
37
38
|
margin-left: 5px;
|
|
39
|
+
color: $primary;
|
|
38
40
|
text-decoration: underline;
|
|
39
41
|
}
|
|
@@ -46,72 +46,72 @@ var ClientData = function ClientData(_ref) {
|
|
|
46
46
|
mainText: client.account_address,
|
|
47
47
|
secondaryText: client.postal_address,
|
|
48
48
|
descriptionText: texts.mainBillData.clientDataLocation,
|
|
49
|
-
tooltip: texts.mainBillData.locationTooltip,
|
|
50
49
|
classes: {
|
|
51
50
|
container: _stylesModule.default.iconAndDetailsContainer
|
|
52
51
|
},
|
|
53
52
|
mainAlias: _aliases.MAIN,
|
|
54
|
-
secondaryAlias: _aliases.DETAIL
|
|
53
|
+
secondaryAlias: _aliases.DETAIL,
|
|
54
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
55
55
|
}), /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
56
56
|
Icon: assets.HolderIcon,
|
|
57
57
|
mainText: client.holder_name,
|
|
58
58
|
descriptionText: texts.mainBillData.holderName,
|
|
59
|
-
tooltip: texts.mainBillData.holderNameTooltip,
|
|
60
59
|
classes: {
|
|
61
60
|
container: "".concat(_stylesModule.default.desktopMargin, " ").concat(_stylesModule.default.iconAndDetailsContainer)
|
|
62
61
|
},
|
|
63
62
|
mainAlias: _aliases.MAIN,
|
|
64
|
-
secondaryAlias: _aliases.DETAIL
|
|
63
|
+
secondaryAlias: _aliases.DETAIL,
|
|
64
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
65
65
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
66
66
|
className: _stylesModule.default.accountAndIvaConditionContainer
|
|
67
67
|
}, /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
68
68
|
Icon: assets.AccountIcon,
|
|
69
69
|
mainText: client.client_number && formatters.clientNumberFormatter(client.client_number),
|
|
70
70
|
descriptionText: texts.mainBillData.clientNumber,
|
|
71
|
-
tooltip: texts.mainBillData.clientNumberTooltip,
|
|
72
71
|
classes: {
|
|
73
72
|
container: _stylesModule.default.userAndAccountContainer
|
|
74
73
|
},
|
|
75
74
|
mainAlias: _aliases.MAIN,
|
|
76
|
-
secondaryAlias: _aliases.DETAIL
|
|
75
|
+
secondaryAlias: _aliases.DETAIL,
|
|
76
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
77
77
|
}), /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
78
78
|
Icon: assets.AccountIcon,
|
|
79
79
|
mainText: client.iva_condition,
|
|
80
80
|
descriptionText: texts.mainBillData.ivaCondition,
|
|
81
|
-
tooltip: texts.mainBillData.ivaCondition,
|
|
82
81
|
classes: {
|
|
83
82
|
container: _stylesModule.default.userAndAccountContainer
|
|
84
83
|
},
|
|
85
84
|
mainAlias: _aliases.MAIN,
|
|
86
|
-
secondaryAlias: _aliases.DETAIL
|
|
85
|
+
secondaryAlias: _aliases.DETAIL,
|
|
86
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
87
87
|
})), client.adherence_to_digital_bill ? /*#__PURE__*/_react.default.createElement("div", {
|
|
88
88
|
className: _stylesModule.default.adheredToDigitalBillContainer
|
|
89
89
|
}, /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
90
90
|
Icon: assets.EmailIcon,
|
|
91
91
|
mainText: client.email_digital_bill,
|
|
92
92
|
descriptionText: texts.mainBillData.emailDigitalBill,
|
|
93
|
-
tooltip: texts.mainBillData.emailDigitalBillTooltip,
|
|
94
93
|
classes: {
|
|
95
94
|
container: _stylesModule.default.emailContainer
|
|
96
95
|
},
|
|
97
96
|
mainAlias: _aliases.MAIN,
|
|
98
|
-
secondaryAlias: _aliases.DETAIL
|
|
97
|
+
secondaryAlias: _aliases.DETAIL,
|
|
98
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
99
99
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
100
100
|
className: _stylesModule.default.adheredToDigitalBillLabelContainer
|
|
101
101
|
}, /*#__PURE__*/_react.default.createElement(AdheredToServiceIcon, null), /*#__PURE__*/_react.default.createElement(Label, {
|
|
102
|
-
|
|
102
|
+
alias: _aliases.ADHERED_DIGITAL_BILL,
|
|
103
103
|
className: _stylesModule.default.label
|
|
104
104
|
}, texts.mainBillData.adheredToDigitalBill))) : /*#__PURE__*/_react.default.createElement(_IconAndDetails.default, {
|
|
105
105
|
Icon: assets.MailIcon,
|
|
106
106
|
mainText: client.account_address,
|
|
107
107
|
secondaryText: client.postal_address,
|
|
108
108
|
descriptionText: texts.mainBillData.clientDataPostalAdress,
|
|
109
|
-
tooltip: texts.mainBillData.mailAddressTooltip,
|
|
110
109
|
classes: {
|
|
111
110
|
container: _stylesModule.default.emailContainer
|
|
112
111
|
},
|
|
113
112
|
mainAlias: _aliases.MAIN,
|
|
114
|
-
secondaryAlias: _aliases.DETAIL
|
|
113
|
+
secondaryAlias: _aliases.DETAIL,
|
|
114
|
+
tertiaryAlias: _aliases.MAIN_LIGHT
|
|
115
115
|
}));
|
|
116
116
|
};
|
|
117
117
|
|
package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
height: 23px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
$icon-and-details-resposive-margin:
|
|
10
|
+
$icon-and-details-resposive-margin: 16px 0;
|
|
11
11
|
$icon-and-details-desktop-margin: 32px;
|
|
12
12
|
$margin-bottom-size: 16px;
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ $margin-bottom-size: 16px;
|
|
|
21
21
|
|
|
22
22
|
@media #{$tablet-mobile } {
|
|
23
23
|
margin-bottom: $margin-bottom-size;
|
|
24
|
-
padding: $default-container-padding
|
|
24
|
+
padding: $default-container-padding;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -110,7 +110,7 @@ $margin-bottom-size: 16px;
|
|
|
110
110
|
justify-content: center;
|
|
111
111
|
margin: 12px 25px 0;
|
|
112
112
|
max-height: 27px;
|
|
113
|
-
padding:
|
|
113
|
+
padding: 8px 12px;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.label {
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
flex-flow: row;
|
|
6
6
|
width: 100%;
|
|
7
7
|
|
|
8
|
+
@media #{$desktop} {
|
|
9
|
+
gap: 16px;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
@media #{$tablet-mobile} {
|
|
9
13
|
flex-flow: column;
|
|
10
14
|
}
|
|
@@ -22,7 +26,6 @@
|
|
|
22
26
|
.amountAndConsumptionLeftContainer {
|
|
23
27
|
@extend %containers;
|
|
24
28
|
@media #{$desktop} {
|
|
25
|
-
margin-right: 16px;
|
|
26
29
|
width: 45%;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -30,7 +33,6 @@
|
|
|
30
33
|
.periodAndClientDataLeftContainer {
|
|
31
34
|
@extend %containers;
|
|
32
35
|
@media #{$desktop} {
|
|
33
|
-
margin-right: 16px;
|
|
34
36
|
width: 55%;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -38,7 +40,6 @@
|
|
|
38
40
|
.periodAndClientDataRigthContainer {
|
|
39
41
|
@extend %containers;
|
|
40
42
|
@media #{$desktop} {
|
|
41
|
-
margin-left: 16px;
|
|
42
43
|
width: 55%;
|
|
43
44
|
}
|
|
44
45
|
}
|
package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var _WithContextApi = _interopRequireDefault(require("../../../../../WithContext
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("../../../../../../utils");
|
|
17
17
|
|
|
18
|
+
var _aliases = require("../../../../../../shared/constants/aliases");
|
|
19
|
+
|
|
18
20
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -33,8 +35,7 @@ var TypeAndNumber = function TypeAndNumber(_ref) {
|
|
|
33
35
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
34
36
|
className: _stylesModule.default.billTypeAndNumberContainer
|
|
35
37
|
}, /*#__PURE__*/_react.default.createElement(Label, {
|
|
36
|
-
|
|
37
|
-
small: true,
|
|
38
|
+
alias: _aliases.TYPE_AND_NUMBER_TYPE,
|
|
38
39
|
className: _stylesModule.default.billType
|
|
39
40
|
}, (0, _utils.stringOrDash)(billType)), /*#__PURE__*/_react.default.createElement(Label, {
|
|
40
41
|
alias: mainAlias,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
align-items: flex-start;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-flow: column;
|
|
8
|
-
|
|
8
|
+
gap: 8px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.billTypeAndNumberContainer {
|
|
@@ -14,15 +14,19 @@
|
|
|
14
14
|
margin-bottom: 3px;
|
|
15
15
|
|
|
16
16
|
@media #{$tablet-mobile} {
|
|
17
|
-
margin-top:
|
|
17
|
+
margin-top: 8px;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.billType {
|
|
22
|
+
align-items: center;
|
|
23
|
+
display: flex;
|
|
22
24
|
background-color: $backgrounds-gray;
|
|
23
25
|
border: 1px solid $borders-dark-gray;
|
|
24
26
|
border-radius: 3px;
|
|
25
|
-
|
|
27
|
+
height: 25px;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
width: 25px;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.billNumber {
|
|
@@ -53,7 +53,7 @@ var BillHeader = function BillHeader(_ref) {
|
|
|
53
53
|
var debtStatusValidation = debtStatusLabel !== null;
|
|
54
54
|
var multipleSettlements = totalSettlements > 1;
|
|
55
55
|
var aliases = {
|
|
56
|
-
mainAlias: _aliases.
|
|
56
|
+
mainAlias: _aliases.MAIN_LIGHT,
|
|
57
57
|
detailAlias: _aliases.DETAIL
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -81,7 +81,7 @@ var BillHeader = function BillHeader(_ref) {
|
|
|
81
81
|
date: issuedOnDate,
|
|
82
82
|
text: texts.commons.issuedOnDate,
|
|
83
83
|
classes: {
|
|
84
|
-
container: _stylesModule.default.
|
|
84
|
+
container: _stylesModule.default.date
|
|
85
85
|
}
|
|
86
86
|
})), isDesktopSize && debtStatusValidation && /*#__PURE__*/_react.default.createElement(DebtStatusLabel, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
87
87
|
className: _stylesModule.default.debtStatusLabelMobile
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
width: 100%;
|
|
12
12
|
|
|
13
13
|
@media #{$desktop} {
|
|
14
|
-
padding:
|
|
14
|
+
padding: 16px 24px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@media #{$tablet-mobile} {
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.date {
|
|
24
|
+
gap: 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
.headerRow {
|
|
24
28
|
@media #{$desktop} {
|
|
25
29
|
display: flex;
|
|
@@ -30,8 +34,10 @@
|
|
|
30
34
|
border: 1px solid $borders-dark-gray;
|
|
31
35
|
border-top-left-radius: $default-container-border-radius;
|
|
32
36
|
border-top-right-radius: $default-container-border-radius;
|
|
33
|
-
display:
|
|
34
|
-
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: 16px;
|
|
40
|
+
padding: 16px;
|
|
35
41
|
width: 100%;
|
|
36
42
|
}
|
|
37
43
|
}
|
|
@@ -52,6 +58,7 @@
|
|
|
52
58
|
align-items: center;
|
|
53
59
|
display: flex;
|
|
54
60
|
width: 68%;
|
|
61
|
+
gap: 24px;
|
|
55
62
|
|
|
56
63
|
@media #{$desktop} {
|
|
57
64
|
justify-content: flex-end;
|
|
@@ -73,22 +80,16 @@
|
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
.pendingDebtLabelContainer {
|
|
76
|
-
margin-left: 20px;
|
|
77
|
-
|
|
78
83
|
@media #{$tablet-mobile} {
|
|
79
84
|
display: flex;
|
|
80
85
|
justify-content: flex-start;
|
|
81
|
-
margin: 15px 0 0;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
.adheredToAutomaticDebtContainer {
|
|
86
|
-
margin-left: 10px;
|
|
87
|
-
|
|
88
90
|
@media #{$tablet-mobile} {
|
|
89
91
|
display: flex;
|
|
90
92
|
justify-content: flex-start;
|
|
91
|
-
margin: 15px 0 0;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
|