@widergy/utilitygo-smart-bill-web 1.13.3 → 2.0.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 (142) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/Advice/index.js +3 -14
  3. package/dist/components/Amount/index.js +11 -29
  4. package/dist/components/Amount/styles.module.scss +1 -2
  5. package/dist/components/Amount/utils.js +0 -3
  6. package/dist/components/Banner/index.js +3 -12
  7. package/dist/components/BarChart/index.js +13 -33
  8. package/dist/components/BarChart/styles.module.scss +5 -5
  9. package/dist/components/BarChart/utils.js +1 -6
  10. package/dist/components/BillCalculation/components/ConceptCard/index.js +31 -36
  11. package/dist/components/BillCalculation/components/Glossary/index.js +30 -50
  12. package/dist/components/BillCalculation/components/Glossary/styles.module.scss +0 -6
  13. package/dist/components/BillCalculation/index.js +13 -46
  14. package/dist/components/BillCalculation/utils.js +3 -15
  15. package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +11 -29
  16. package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +3 -16
  17. package/dist/components/BillSummary/components/BilledConcepts/constants.js +0 -4
  18. package/dist/components/BillSummary/components/BilledConcepts/index.js +11 -40
  19. package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +1 -1
  20. package/dist/components/BillSummary/components/BilledConcepts/utils.js +13 -38
  21. package/dist/components/BillSummary/index.js +7 -42
  22. package/dist/components/BillSummary/styles.module.scss +0 -4
  23. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +0 -8
  24. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +5 -20
  25. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/utils.js +0 -7
  26. package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +18 -39
  27. package/dist/components/ConsumptionComparison/components/ComparisonTable/index.js +2 -16
  28. package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +15 -37
  29. package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +8 -16
  30. package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/utils.js +0 -7
  31. package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +12 -25
  32. package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +0 -10
  33. package/dist/components/ConsumptionComparison/components/PercentageComparison/utils.js +4 -11
  34. package/dist/components/ConsumptionComparison/index.js +9 -44
  35. package/dist/components/ConsumptionComparison/styles.module.scss +0 -5
  36. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +13 -38
  37. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/index.js +9 -20
  38. package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +14 -26
  39. package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/styles.module.scss +0 -6
  40. package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/index.js +10 -24
  41. package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/utils.js +0 -6
  42. package/dist/components/ConsumptionEnergyDetails/index.js +14 -41
  43. package/dist/components/ConsumptionEnergyDetails/styles.module.scss +2 -6
  44. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +39 -55
  45. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +2 -8
  46. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/utils.js +0 -3
  47. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +7 -23
  48. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +0 -4
  49. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +4 -15
  50. package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +17 -34
  51. package/dist/components/ConsumptionIncluded/index.js +1 -18
  52. package/dist/components/ConsumptionIncluded/utils.js +2 -30
  53. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/index.js +7 -19
  54. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +12 -27
  55. package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +6 -30
  56. package/dist/components/ConsumptionPeriod/components/Reading/index.js +15 -33
  57. package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +0 -1
  58. package/dist/components/ConsumptionPeriod/index.js +2 -21
  59. package/dist/components/ConsumptionPeriod/utils.js +0 -6
  60. package/dist/components/Date/index.js +6 -17
  61. package/dist/components/Date/styles.module.scss +2 -4
  62. package/dist/components/DebtState/index.js +6 -16
  63. package/dist/components/DebtState/styles.module.scss +2 -11
  64. package/dist/components/IconAndDetails/index.js +13 -26
  65. package/dist/components/Magnitude/index.js +18 -39
  66. package/dist/components/Magnitude/utils.js +0 -29
  67. package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +6 -17
  68. package/dist/components/MainBillData/components/BillAlert/index.js +12 -39
  69. package/dist/components/MainBillData/components/BillAlert/styles.module.scss +4 -1
  70. package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +5 -19
  71. package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +1 -3
  72. package/dist/components/MainBillData/components/BillBody/components/Consumption/index.js +4 -20
  73. package/dist/components/MainBillData/components/BillBody/components/Consumption/utils.js +0 -2
  74. package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/index.js +16 -30
  75. package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/utils.js +0 -5
  76. package/dist/components/MainBillData/components/BillBody/index.js +3 -35
  77. package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +7 -19
  78. package/dist/components/MainBillData/components/BillHeader/index.js +5 -28
  79. package/dist/components/MainBillData/index.js +1 -16
  80. package/dist/components/MainBillData/theme.js +0 -3
  81. package/dist/components/MainBillData/utils.js +0 -3
  82. package/dist/components/Period/index.js +18 -44
  83. package/dist/components/Period/styles.module.scss +9 -9
  84. package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +21 -28
  85. package/dist/components/PowerProgresBar/components/PowerConsumption/styles.module.scss +0 -7
  86. package/dist/components/PowerProgresBar/index.js +8 -29
  87. package/dist/components/PowerProgresBar/styles.module.scss +5 -9
  88. package/dist/components/RateAndCategory/index.js +8 -26
  89. package/dist/components/RateAndCategory/styles.module.scss +1 -4
  90. package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +11 -23
  91. package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +0 -1
  92. package/dist/components/RatesDefinition/components/BillRate/index.js +8 -20
  93. package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +1 -2
  94. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +5 -17
  95. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +2 -4
  96. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +8 -22
  97. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +4 -18
  98. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +0 -7
  99. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/index.js +4 -14
  100. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/styles.module.scss +1 -9
  101. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/index.js +8 -16
  102. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/styles.module.scss +0 -4
  103. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/constants.js +0 -1
  104. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +12 -39
  105. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +14 -24
  106. package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +11 -38
  107. package/dist/components/RatesDefinition/components/CategoryByConsumption/utils.js +0 -3
  108. package/dist/components/RatesDefinition/components/PurchasedRate/index.js +11 -23
  109. package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +5 -4
  110. package/dist/components/RatesDefinition/index.js +4 -25
  111. package/dist/components/SmartBillProvider/index.js +7 -28
  112. package/dist/components/StyledAmount/constants.js +0 -3
  113. package/dist/components/StyledAmount/index.js +18 -38
  114. package/dist/components/StyledAmount/styles.module.scss +2 -3
  115. package/dist/components/WithContextApi/index.js +5 -16
  116. package/dist/components/WithContextApi/layout.js +0 -9
  117. package/dist/components/WithSeason/index.js +1 -7
  118. package/dist/constants/deviceSizes.js +4 -16
  119. package/dist/index.js +0 -18
  120. package/dist/scss/variables/_colors.scss +0 -6
  121. package/dist/scss/variables/_colorsExport.scss +0 -6
  122. package/dist/shared/Context/index.js +1 -5
  123. package/dist/shared/constants/aliases.js +86 -83
  124. package/dist/shared/types/assetsTypes.js +0 -3
  125. package/dist/shared/types/billDataTypes.js +13 -13
  126. package/dist/shared/types/componentsTypes.js +4 -10
  127. package/dist/shared/types/formattersTypes.js +0 -2
  128. package/dist/shared/types/rateStagesTypes.js +0 -2
  129. package/dist/shared/types/smartBillTypes.js +4 -10
  130. package/dist/shared/types/textsTypes.js +0 -2
  131. package/dist/shared/utils/billCalculation.js +0 -6
  132. package/dist/shared/utils/consumptions.js +1 -32
  133. package/dist/shared/utils/context.js +0 -6
  134. package/dist/shared/utils/expirations.js +0 -3
  135. package/dist/shared/utils/periods.js +0 -15
  136. package/dist/shared/utils/rates.js +0 -4
  137. package/dist/shared/utils/readings.js +0 -7
  138. package/dist/shared/utils/season.js +0 -3
  139. package/dist/shared/utils/stagesGraph.js +0 -11
  140. package/dist/utils/hooks.js +0 -2
  141. package/dist/utils.js +0 -8
  142. package/package.json +1 -1
@@ -4,14 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SmartBillProvider = exports.SmartBillConsumer = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
9
  var ContextApi = /*#__PURE__*/_react.default.createContext({});
13
-
14
10
  var SmartBillProvider = ContextApi.Provider,
15
- SmartBillConsumer = ContextApi.Consumer;
11
+ SmartBillConsumer = ContextApi.Consumer;
16
12
  exports.SmartBillConsumer = SmartBillConsumer;
17
13
  exports.SmartBillProvider = SmartBillProvider;
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.POWER_CONSUMPTION = exports.PERIOD_RESPONSIVE = exports.PERIOD_RANGE = exports.PERIOD_ISSUED_DATE = exports.PERIOD_COMPARISON_UNIT_PREV = exports.PERIOD_COMPARISON_UNIT = exports.PERIOD_COMPARISON_TEXT_PREV = exports.PERIOD_COMPARISON_TEXT = exports.PERIOD_COMPARISON_NUMBER_PREV = exports.PERIOD_COMPARISON_NUMBER = exports.PERIOD = exports.PERCENTAGE_COMPARISON_TITLE = exports.PERCENTAGE_COMPARISON_SUBTITLE = exports.PERCENTAGE_COMPARISON_DETAIL = exports.PERCENTAGE_COMPARISON = exports.PARTICULAR_CONDITIONS_TITLE = exports.PARTICULAR_CONDITIONS_LIST_TITLE = exports.PARTICULAR_CONDITION = exports.MAIN_SECONDARY = exports.MAIN_LIGHT = exports.MAIN = exports.LINE_DESCRIPTION = exports.ISSUED_DATE = exports.HEADER_SETTLEMENT_REMAINING_DATE = exports.HEADER_SETTLEMENT_REMAINING = exports.HEADER_SETTLEMENT_DATE = exports.HEADER_SETTLEMENT = exports.HEADER_CONSUMPTION = exports.GLOSSARY_LINK = exports.GET_PERIOD_FIELDS_NO_DATA = exports.EXPIRATION = exports.EXCEEDED_POWER_VALUE = exports.EXCEEDED_POWER_MESSAGE = exports.EXCEEDED_POWER_FINE = exports.ENERGY_TOTAL_CONSUMPTION_UNIT = exports.ENERGY_TOTAL_CONSUMPTION_EXCEEDED_UNIT = exports.ENERGY_TOTAL_CONSUMPTION_EXCEEDED = exports.ENERGY_TOTAL_CONSUMPTION_DETAIL = exports.ENERGY_TOTAL_CONSUMPTION = exports.DETAIL = exports.DEFAULT_PROPS = exports.DEFAULT_COLORS = exports.CONSUMPTION_PERIODICITY = exports.CONSUMPTION_NEXT_DETAIL = exports.CONSUMPTION_DAYS_UNIT_NEXT = exports.CONSUMPTION_DAYS_UNIT_ACTUAL = exports.CONSUMPTION_DAYS_NUMBER_NEXT = exports.CONSUMPTION_DAYS_NUMBER_ACTUAL = exports.CONSUMPTION_DAYS_DAYS_NEXT = exports.CONSUMPTION_DAYS_DAYS_ACTUAL = exports.CONSUMPTION_BIMESTER_UNIT = exports.CONSUMPTION_BIMESTER_NUMBER = exports.CONSUMPTION_BIMESTER_DAYS = exports.CONSUMPTION_ACTUAL_DETAIL = exports.CONCEPT_TITLE = exports.CONCEPT_SECONDARY_NAME = exports.CONCEPT_SECONDARY_AMOUNT_DECIMAL = exports.CONCEPT_SECONDARY_AMOUNT = exports.CONCEPT_LIST_AMOUNT_DECIMAL = exports.CONCEPT_LIST_AMOUNT = exports.CONCEPT_FIRST_NAME = exports.CONCEPT_FIRST_AMOUNT_DECIMAL = exports.CONCEPT_FIRST_AMOUNT = exports.CONCEPT_CARD_AMOUNT_DECIMAL = exports.CONCEPT_CARD_AMOUNT = exports.COLORS = exports.CATEGORY_DEFINITION = exports.CATEGORY = exports.CARD_WHITE_UNIT = exports.CARD_WHITE_MAGNITUDE = exports.CARD_WHITE_CONSUMPTION = exports.CARD_SUBTITLE_REMAINING = exports.CARD_SUBTITLE = exports.CARD_SECONDARY_TITLE = exports.CARD_PRIMARY_UNIT = exports.CARD_PRIMARY_MAGNITUDE = exports.CARD_PRIMARY_CONSUMPTION = exports.CARD_MAIN_TITLE = exports.CARD_GRAY_UNIT = exports.CARD_GRAY_MAGNITUDE = exports.CARD_GRAY_CONSUMPTION = exports.CARD_DESCRIPTION_REMAINING = exports.CARD_DESCRIPTION = exports.CARD_CONSUMPTION_TEXT_REMAINING = exports.CARD_CONSUMPTION_TEXT_CURRENT = exports.CARD_CONSUMPTION_DESCRIPTION_WHITE = exports.CARD_CONSUMPTION_DESCRIPTION_GRAY = exports.BILL_RATE_PRICES_SUBTITLE = exports.BILL_CALC_TOTAL = exports.BILL_CALC_CONCEPT_TITLE = exports.BILL_CALC_CONCEPT = exports.BILL_CALC_AMOUNT_DECIMAL = exports.BILL_CALC_AMOUNT = exports.BILL_ALERT = exports.AMOUNT_DECIMAL = exports.AMOUNT = exports.ADVICE_TITLE = exports.ADVICE_SUBTITLE = exports.ADVICE_CONTENT = exports.ADHERED_DIGITAL_BILL = void 0;
7
7
  exports.WEATHER_PROVIDER_INFORMATION = exports.TYPE_AND_NUMBER_TYPE = exports.TITLE = exports.TINY_DECIMAL = exports.SUMMARY_TITLE = exports.SUMMARY_SUBTITLE = exports.SUMMARY_ROW_NUMBER = exports.SUMMARY_ROW_FOCUSED = exports.SUMMARY_ROW = exports.SUMMARY_RESULT_UNIT = exports.SUMMARY_RESULT_NUMBER = exports.SUMMARY_RESULT = exports.SUMMARY_PERIOD = exports.SUBSTAGE = exports.STAGE_DETAIL = exports.SEASON = exports.REGULAR_LINK = exports.READING_TITLE = exports.READING_STATE_DETAIL = exports.READING_STATE = exports.READING_MAIN = exports.READING_DETAIL = exports.RATE_STAGE_MAGNITUDE = exports.RATE_PRICES_AMOUNT = exports.RATE_MAGNITUDE_UNIT_INDICATOR = exports.RATE_MAGNITUDE_NUMBER_INDICATOR = exports.RATE_LABEL_INDICATOR = exports.RATE_DATA_SUBTITLE = exports.RATE_AND_CATEGORY_MAIN_TEXT = exports.RATE = exports.PURCHASED_RATE_DESCRIPTION = exports.POWER_FACTOR_EXCEEDED_VALUE = exports.POWER_FACTOR_EXCEEDED_MESSAGE = exports.POWER_CONSUMPTION_UNIT_GRAY = exports.POWER_CONSUMPTION_UNIT = exports.POWER_CONSUMPTION_TEXT_GRAY = exports.POWER_CONSUMPTION_TEXT = exports.POWER_CONSUMPTION_GRAY = void 0;
8
-
9
8
  var _DEFAULT_COLORS, _DEFAULT_PROPS;
10
-
11
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
-
9
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
13
  var TITLE = 'title';
14
14
  exports.TITLE = TITLE;
15
15
  var DETAIL = 'detail';
@@ -300,7 +300,7 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
300
300
  weight: 'medium',
301
301
  withMarkdown: true
302
302
  }), _defineProperty(_DEFAULT_PROPS, DETAIL, {
303
- color: COLORS.GRAY,
303
+ colorTheme: 'gray',
304
304
  variant: 'small',
305
305
  withMarkdown: true
306
306
  }), _defineProperty(_DEFAULT_PROPS, MAIN_LIGHT, {
@@ -309,63 +309,64 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
309
309
  variant: 'body'
310
310
  }), _defineProperty(_DEFAULT_PROPS, PERIOD, {
311
311
  weight: 'medium',
312
- variant: 'subtitle1'
312
+ variant: 'subtitle1',
313
+ withMarkdown: true
313
314
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_RESPONSIVE, {
314
315
  weight: 'regular'
315
316
  }), _defineProperty(_DEFAULT_PROPS, AMOUNT, {
316
317
  variant: 'title1',
317
318
  weight: 'medium',
318
- color: COLORS.PRIMARY
319
+ colorTheme: 'information'
319
320
  }), _defineProperty(_DEFAULT_PROPS, AMOUNT_DECIMAL, {
320
321
  variant: 'subtitle2',
321
322
  weight: 'medium',
322
- color: COLORS.PRIMARY
323
+ colorTheme: 'information'
323
324
  }), _defineProperty(_DEFAULT_PROPS, BILL_CALC_AMOUNT, {
324
325
  variant: 'title1',
325
- colorTheme: 'white',
326
+ colorTheme: 'light',
326
327
  weight: 'regular'
327
328
  }), _defineProperty(_DEFAULT_PROPS, BILL_CALC_AMOUNT_DECIMAL, {
328
329
  variant: 'subtitle2',
329
- colorTheme: 'white',
330
+ colorTheme: 'light',
330
331
  weight: 'regular'
331
332
  }), _defineProperty(_DEFAULT_PROPS, BILL_ALERT, {
332
333
  variant: 'small',
333
334
  weight: 'regular',
334
- color: COLORS.PRIMARY
335
+ colorTheme: 'information'
335
336
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_CARD_AMOUNT, {
336
337
  variant: 'subtitle1',
337
- color: COLORS.PRIMARY
338
+ colorTheme: 'information'
338
339
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_FIRST_AMOUNT, {
339
340
  variant: 'subtitle1',
340
341
  weight: 'medium',
341
- color: COLORS.PRIMARY
342
+ colorTheme: 'information'
342
343
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_FIRST_AMOUNT_DECIMAL, {
343
344
  variant: 'xsmall',
344
345
  weight: 'medium',
345
- color: COLORS.PRIMARY
346
+ colorTheme: 'information'
346
347
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_LIST_AMOUNT, {
347
348
  variant: 'subtitle2',
348
- color: COLORS.PRIMARY
349
+ colorTheme: 'information'
349
350
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_LIST_AMOUNT_DECIMAL, {
350
351
  variant: 'xsmall',
351
- color: COLORS.PRIMARY
352
+ colorTheme: 'information'
352
353
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_CARD_AMOUNT_DECIMAL, {
353
354
  variant: 'xsmall',
354
- color: COLORS.PRIMARY
355
+ colorTheme: 'information'
355
356
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_SECONDARY_AMOUNT, {
356
357
  variant: 'subtitle1',
357
358
  weight: 'medium',
358
- color: COLORS.PRIMARY
359
+ colorTheme: 'information'
359
360
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_SECONDARY_AMOUNT_DECIMAL, {
360
361
  variant: 'xsmall',
361
362
  weight: 'medium',
362
- color: COLORS.PRIMARY
363
+ colorTheme: 'information'
363
364
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_FIRST_NAME, {
364
365
  weight: 'medium',
365
366
  variant: 'subtitle2',
366
- color: COLORS.PRIMARY
367
+ colorTheme: 'information'
367
368
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_SECONDARY_NAME, {
368
- color: COLORS.GRAY,
369
+ colorTheme: 'gray',
369
370
  weight: 'regular'
370
371
  }), _defineProperty(_DEFAULT_PROPS, REGULAR_LINK, {
371
372
  weight: 'regular',
@@ -375,86 +376,86 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
375
376
  }), _defineProperty(_DEFAULT_PROPS, RATE_MAGNITUDE_NUMBER_INDICATOR, {
376
377
  variant: 'title1',
377
378
  weight: 'medium',
378
- color: COLORS.PRIMARY
379
+ colorTheme: 'information'
379
380
  }), _defineProperty(_DEFAULT_PROPS, RATE_MAGNITUDE_UNIT_INDICATOR, {
380
381
  variant: 'title3',
381
382
  weight: 'medium',
382
- color: COLORS.PRIMARY
383
+ colorTheme: 'information'
383
384
  }), _defineProperty(_DEFAULT_PROPS, RATE_LABEL_INDICATOR, {
384
385
  weight: 'regular',
385
- color: COLORS.PRIMARY
386
+ colorTheme: 'information'
386
387
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION, {
387
388
  weight: 'regular',
388
389
  variant: 'title2'
389
390
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION_UNIT, {
390
391
  weight: 'regular'
391
392
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION_EXCEEDED, {
392
- colorTheme: 'white',
393
+ colorTheme: 'light',
393
394
  weight: 'regular',
394
395
  variant: 'title2'
395
396
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION_EXCEEDED_UNIT, {
396
- colorTheme: 'white',
397
+ colorTheme: 'light',
397
398
  weight: 'regular'
398
399
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION_DETAIL, {
399
- color: COLORS.GRAY,
400
+ colorTheme: 'gray',
400
401
  weight: 'regular'
401
402
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_NUMBER_ACTUAL, {
402
403
  weight: 'regular',
403
- color: COLORS.PRIMARY,
404
+ colorTheme: 'information',
404
405
  variant: 'title3'
405
406
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_UNIT_ACTUAL, {
406
407
  weight: 'regular',
407
- color: COLORS.PRIMARY
408
+ colorTheme: 'information'
408
409
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_NUMBER_NEXT, {
409
- color: COLORS.GRAY,
410
+ colorTheme: 'gray',
410
411
  weight: 'regular',
411
412
  variant: 'title3'
412
413
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_UNIT_NEXT, {
413
- color: COLORS.GRAY,
414
+ colorTheme: 'gray',
414
415
  weight: 'regular'
415
416
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_DAYS_NEXT, {
416
- color: COLORS.GRAY,
417
+ colorTheme: 'gray',
417
418
  variant: 'small'
418
419
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_DAYS_DAYS_ACTUAL, {
419
- color: COLORS.PRIMARY,
420
+ colorTheme: 'information',
420
421
  variant: 'small'
421
422
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_ACTUAL_DETAIL, {
422
423
  weight: 'semibold',
423
- color: COLORS.PRIMARY,
424
+ colorTheme: 'information',
424
425
  variant: 'small'
425
426
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_BIMESTER_NUMBER, {
426
427
  weight: 'semibold',
427
428
  variant: 'subtitle1'
428
429
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_BIMESTER_UNIT, {
429
430
  weight: 'regular',
430
- color: COLORS.GRAY,
431
+ colorTheme: 'gray',
431
432
  variant: 'small'
432
433
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_BIMESTER_DAYS, {
433
434
  weight: 'semibold'
434
435
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_NEXT_DETAIL, {
435
436
  weight: 'semibold',
436
- color: COLORS.GRAY,
437
+ colorTheme: 'gray',
437
438
  variant: 'small'
438
439
  }), _defineProperty(_DEFAULT_PROPS, CONSUMPTION_PERIODICITY, {
439
440
  weight: 'semibold',
440
441
  variant: 'small'
441
442
  }), _defineProperty(_DEFAULT_PROPS, PERCENTAGE_COMPARISON, {
442
443
  variant: 'title2',
443
- colorTheme: 'white',
444
+ colorTheme: 'light',
444
445
  weight: 'medium'
445
446
  }), _defineProperty(_DEFAULT_PROPS, PERCENTAGE_COMPARISON_DETAIL, {
446
- colorTheme: 'white',
447
+ colorTheme: 'light',
447
448
  weight: 'medium',
448
449
  variant: 'small'
449
450
  }), _defineProperty(_DEFAULT_PROPS, BILL_CALC_TOTAL, {
450
- colorTheme: 'white',
451
+ colorTheme: 'light',
451
452
  variant: 'subtitle1',
452
453
  weight: 'medium'
453
454
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION, {
454
455
  weight: 'regular',
455
456
  variant: 'title2'
456
457
  }), _defineProperty(_DEFAULT_PROPS, ENERGY_TOTAL_CONSUMPTION_EXCEEDED, {
457
- colorTheme: 'white',
458
+ colorTheme: 'light',
458
459
  weight: 'regular'
459
460
  }), _defineProperty(_DEFAULT_PROPS, SUBSTAGE, {
460
461
  weight: 'medium',
@@ -465,21 +466,21 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
465
466
  weight: 'medium'
466
467
  }), _defineProperty(_DEFAULT_PROPS, READING_DETAIL, {
467
468
  weight: 'regular',
468
- color: COLORS.GRAY,
469
+ colorTheme: 'gray',
469
470
  variant: 'small'
470
471
  }), _defineProperty(_DEFAULT_PROPS, READING_STATE, {
471
472
  weight: 'medium',
472
- color: COLORS.PRIMARY,
473
+ colorTheme: 'information',
473
474
  variant: 'title3'
474
475
  }), _defineProperty(_DEFAULT_PROPS, READING_STATE_DETAIL, {
475
476
  weight: 'regular',
476
- color: COLORS.PRIMARY,
477
+ colorTheme: 'information',
477
478
  variant: 'small'
478
479
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_TITLE, {
479
480
  weight: 'medium',
480
481
  variant: 'subtitle1'
481
482
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_SUBTITLE, {
482
- color: COLORS.GRAY
483
+ colorTheme: 'gray'
483
484
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_ROW_FOCUSED, {
484
485
  weight: 'bold'
485
486
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_ROW, {
@@ -487,121 +488,122 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
487
488
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_RESULT, {
488
489
  variant: 'subtitle2',
489
490
  weight: 'medium',
490
- color: COLORS.PRIMARY,
491
+ colorTheme: 'information',
491
492
  withMarkdown: true
492
493
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_RESULT_NUMBER, {
493
494
  variant: 'title2',
494
495
  weight: 'medium',
495
- color: COLORS.PRIMARY
496
+ colorTheme: 'information'
496
497
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_RESULT_UNIT, {
497
498
  variant: 'subtitle2',
498
499
  weight: 'medium',
499
- color: COLORS.PRIMARY
500
+ colorTheme: 'information'
500
501
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_ROW_NUMBER, {
501
502
  variant: 'subtitle2',
502
503
  weight: 'medium'
503
504
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_NUMBER, {
504
505
  variant: 'title3',
505
506
  weight: 'medium',
506
- color: COLORS.PRIMARY
507
+ colorTheme: 'information'
507
508
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_UNIT, {
508
509
  variant: 'subtitle2',
509
510
  weight: 'medium',
510
- color: COLORS.PRIMARY
511
+ colorTheme: 'information'
511
512
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_TEXT, {
512
- color: COLORS.PRIMARY,
513
+ colorTheme: 'information',
513
514
  weight: 'regular'
514
515
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_NUMBER_PREV, {
515
516
  variant: 'title3',
516
- color: COLORS.GRAY,
517
+ colorTheme: 'gray',
517
518
  weight: 'medium'
518
519
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_UNIT_PREV, {
519
520
  variant: 'subtitle2',
520
- color: COLORS.GRAY,
521
+ colorTheme: 'gray',
521
522
  weight: 'medium'
522
523
  }), _defineProperty(_DEFAULT_PROPS, PERIOD_COMPARISON_TEXT_PREV, {
523
- color: COLORS.GRAY,
524
+ colorTheme: 'gray',
524
525
  weight: 'regular'
525
526
  }), _defineProperty(_DEFAULT_PROPS, CARD_PRIMARY_MAGNITUDE, {
526
527
  weight: 'medium',
527
528
  variant: 'title3',
528
- color: COLORS.PRIMARY
529
+ colorTheme: 'information'
529
530
  }), _defineProperty(_DEFAULT_PROPS, CARD_WHITE_MAGNITUDE, {
530
- colorTheme: 'white',
531
+ colorTheme: 'light',
531
532
  weight: 'medium',
532
533
  variant: 'title3'
533
534
  }), _defineProperty(_DEFAULT_PROPS, CARD_GRAY_MAGNITUDE, {
534
- color: COLORS.GRAY,
535
+ colorTheme: 'gray',
535
536
  weight: 'medium',
536
537
  variant: 'title3'
537
538
  }), _defineProperty(_DEFAULT_PROPS, CARD_PRIMARY_UNIT, {
538
- color: COLORS.PRIMARY
539
+ colorTheme: 'information'
539
540
  }), _defineProperty(_DEFAULT_PROPS, CARD_WHITE_UNIT, {
540
- colorTheme: 'white'
541
+ colorTheme: 'light'
541
542
  }), _defineProperty(_DEFAULT_PROPS, CARD_GRAY_UNIT, {
542
- color: COLORS.GRAY
543
+ colorTheme: 'gray'
543
544
  }), _defineProperty(_DEFAULT_PROPS, CARD_PRIMARY_CONSUMPTION, {
544
545
  variant: 'subtitle1',
545
546
  weight: 'medium',
546
- color: COLORS.PRIMARY
547
+ colorTheme: 'information'
547
548
  }), _defineProperty(_DEFAULT_PROPS, CARD_WHITE_CONSUMPTION, {
548
- colorTheme: 'white',
549
+ colorTheme: 'light',
549
550
  variant: 'subtitle1',
550
551
  weight: 'regular'
551
552
  }), _defineProperty(_DEFAULT_PROPS, CARD_GRAY_CONSUMPTION, {
552
553
  variant: 'subtitle1',
553
- color: COLORS.GRAY,
554
+ colorTheme: 'gray',
554
555
  weight: 'regular'
555
556
  }), _defineProperty(_DEFAULT_PROPS, CARD_MAIN_TITLE, {
556
557
  weight: 'regular',
557
558
  variant: 'subtitle1'
558
559
  }), _defineProperty(_DEFAULT_PROPS, CARD_SECONDARY_TITLE, {
559
- color: COLORS.GRAY
560
+ colorTheme: 'gray'
560
561
  }), _defineProperty(_DEFAULT_PROPS, CARD_DESCRIPTION, {
561
562
  weight: 'bold'
562
563
  }), _defineProperty(_DEFAULT_PROPS, CARD_DESCRIPTION_REMAINING, {
563
564
  weight: 'bold',
564
- color: COLORS.GRAY
565
+ colorTheme: 'gray'
565
566
  }), _defineProperty(_DEFAULT_PROPS, CARD_SUBTITLE, {
566
567
  weight: 'regular',
567
568
  variant: 'subtitle1'
568
569
  }), _defineProperty(_DEFAULT_PROPS, CARD_SUBTITLE_REMAINING, {
569
570
  variant: 'subtitle1',
570
571
  weight: 'regular',
571
- color: COLORS.GRAY
572
+ colorTheme: 'gray'
572
573
  }), _defineProperty(_DEFAULT_PROPS, CARD_CONSUMPTION_DESCRIPTION_WHITE, {
573
- colorTheme: 'white',
574
+ colorTheme: 'light',
574
575
  variant: 'subtitle2',
575
576
  weight: 'regular'
576
577
  }), _defineProperty(_DEFAULT_PROPS, CARD_CONSUMPTION_DESCRIPTION_GRAY, {
577
- color: COLORS.GRAY,
578
+ colorTheme: 'gray',
578
579
  variant: 'subtitle2',
579
580
  weight: 'regular'
580
581
  }), _defineProperty(_DEFAULT_PROPS, CARD_CONSUMPTION_TEXT_CURRENT, {
581
582
  variant: 'small',
582
- color: COLORS.PRIMARY
583
+ colorTheme: 'information'
583
584
  }), _defineProperty(_DEFAULT_PROPS, CARD_CONSUMPTION_TEXT_REMAINING, {
584
585
  variant: 'small',
585
- color: COLORS.GRAY
586
+ colorTheme: 'gray'
586
587
  }), _defineProperty(_DEFAULT_PROPS, HEADER_CONSUMPTION, {
587
588
  variant: 'subtitle2'
588
589
  }), _defineProperty(_DEFAULT_PROPS, HEADER_SETTLEMENT, {
589
590
  variant: 'xsmall'
590
591
  }), _defineProperty(_DEFAULT_PROPS, HEADER_SETTLEMENT_REMAINING, {
591
592
  variant: 'xsmall',
592
- color: COLORS.GRAY
593
+ colorTheme: 'gray'
593
594
  }), _defineProperty(_DEFAULT_PROPS, HEADER_SETTLEMENT_DATE, {
594
595
  weight: 'bold'
595
596
  }), _defineProperty(_DEFAULT_PROPS, HEADER_SETTLEMENT_REMAINING_DATE, {
596
597
  weight: 'bold',
597
- color: COLORS.GRAY
598
+ colorTheme: 'gray'
598
599
  }), _defineProperty(_DEFAULT_PROPS, PARTICULAR_CONDITIONS_TITLE, {
599
600
  weight: 'bold'
600
601
  }), _defineProperty(_DEFAULT_PROPS, PARTICULAR_CONDITIONS_LIST_TITLE, {
601
602
  weight: 'regular'
602
603
  }), _defineProperty(_DEFAULT_PROPS, PARTICULAR_CONDITION, {
603
- color: COLORS.GRAY
604
+ colorTheme: 'gray'
604
605
  }), _defineProperty(_DEFAULT_PROPS, ADHERED_DIGITAL_BILL, {
606
+ colorTheme: 'success',
605
607
  weight: 'medium',
606
608
  variant: 'small'
607
609
  }), _defineProperty(_DEFAULT_PROPS, TYPE_AND_NUMBER_TYPE, {
@@ -617,30 +619,31 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
617
619
  }), _defineProperty(_DEFAULT_PROPS, EXCEEDED_POWER_VALUE, {
618
620
  variant: 'subtitle2'
619
621
  }), _defineProperty(_DEFAULT_PROPS, EXCEEDED_POWER_FINE, {
622
+ colorTheme: 'error',
620
623
  weight: 'regular'
621
624
  }), _defineProperty(_DEFAULT_PROPS, POWER_CONSUMPTION_TEXT, {
622
625
  weight: 'regular'
623
626
  }), _defineProperty(_DEFAULT_PROPS, POWER_CONSUMPTION_TEXT_GRAY, {
624
627
  weight: 'regular',
625
- color: COLORS.GRAY
628
+ colorTheme: 'gray'
626
629
  }), _defineProperty(_DEFAULT_PROPS, RATE_AND_CATEGORY_MAIN_TEXT, {
627
630
  weight: 'regular',
628
631
  variant: 'subtitle2'
629
632
  }), _defineProperty(_DEFAULT_PROPS, RATE_DATA_SUBTITLE, {
630
633
  weight: 'medium',
631
- color: COLORS.GRAY
634
+ colorTheme: 'gray'
632
635
  }), _defineProperty(_DEFAULT_PROPS, PURCHASED_RATE_DESCRIPTION, {
633
636
  weight: 'regular'
634
637
  }), _defineProperty(_DEFAULT_PROPS, STAGE_DETAIL, {
635
638
  variant: 'small',
636
639
  weight: 'regular',
637
- color: COLORS.GRAY
640
+ colorTheme: 'gray'
638
641
  }), _defineProperty(_DEFAULT_PROPS, ADVICE_TITLE, {
639
642
  weight: 'medium',
640
643
  variant: 'subtitle1'
641
644
  }), _defineProperty(_DEFAULT_PROPS, ADVICE_SUBTITLE, {
642
645
  variant: 'subtitle2',
643
- color: COLORS.GRAY
646
+ colorTheme: 'gray'
644
647
  }), _defineProperty(_DEFAULT_PROPS, POWER_CONSUMPTION, {
645
648
  variant: 'title2',
646
649
  weight: 'regular'
@@ -653,22 +656,23 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
653
656
  }), _defineProperty(_DEFAULT_PROPS, BILL_CALC_CONCEPT_TITLE, {
654
657
  variant: 'subtitle1',
655
658
  weight: 'medium',
656
- color: COLORS.PRIMARY
659
+ colorTheme: 'information'
657
660
  }), _defineProperty(_DEFAULT_PROPS, SUMMARY_PERIOD, {
658
661
  weight: 'medium',
659
662
  variant: 'subtitle1',
660
- color: COLORS.PRIMARY
663
+ colorTheme: 'information'
661
664
  }), _defineProperty(_DEFAULT_PROPS, RATE, {
662
665
  weight: 'medium',
663
666
  variant: 'title1',
664
- color: COLORS.PRIMARY
667
+ colorTheme: 'information'
665
668
  }), _defineProperty(_DEFAULT_PROPS, CATEGORY, {
669
+ colorTheme: 'success',
666
670
  weight: 'medium',
667
671
  variant: 'small'
668
672
  }), _defineProperty(_DEFAULT_PROPS, CATEGORY_DEFINITION, {
669
673
  variant: 'subtitle2'
670
674
  }), _defineProperty(_DEFAULT_PROPS, LINE_DESCRIPTION, {
671
- color: COLORS.GRAY
675
+ colorTheme: 'gray'
672
676
  }), _defineProperty(_DEFAULT_PROPS, CONCEPT_TITLE, {
673
677
  weight: 'medium',
674
678
  variant: 'subtitle2'
@@ -681,7 +685,7 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
681
685
  }), _defineProperty(_DEFAULT_PROPS, BILL_RATE_PRICES_SUBTITLE, {
682
686
  weight: 'regular'
683
687
  }), _defineProperty(_DEFAULT_PROPS, WEATHER_PROVIDER_INFORMATION, {
684
- color: COLORS.GRAY,
688
+ colorTheme: 'gray',
685
689
  variant: 'small',
686
690
  withMarkdown: true
687
691
  }), _defineProperty(_DEFAULT_PROPS, SEASON, {
@@ -701,7 +705,6 @@ var DEFAULT_PROPS = (_DEFAULT_PROPS = {}, _defineProperty(_DEFAULT_PROPS, TITLE,
701
705
  }), _defineProperty(_DEFAULT_PROPS, RATE_PRICES_AMOUNT, {
702
706
  variant: 'subtitle2'
703
707
  }), _defineProperty(_DEFAULT_PROPS, GLOSSARY_LINK, {
704
- variant: 'small',
705
- color: COLORS.SECONDARY
708
+ variant: 'small'
706
709
  }), _DEFAULT_PROPS);
707
710
  exports.DEFAULT_PROPS = DEFAULT_PROPS;
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.assetsTypes = void 0;
7
-
8
7
  var _propTypes = require("prop-types");
9
-
10
8
  var _componentsTypes = require("./componentsTypes");
11
-
12
9
  var assetsTypes = (0, _propTypes.objectOf)(_componentsTypes.componentTypes);
13
10
  exports.assetsTypes = assetsTypes;
@@ -3,16 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.settlementsTypes = exports.periodTypes = exports.consumptionTypes = exports.billDataTypes = void 0;
7
-
6
+ exports.settlementsTypes = exports.periodsTypes = exports.periodTypes = exports.consumptionTypes = exports.billDataTypes = void 0;
8
7
  var _propTypes = require("prop-types");
9
-
10
- var consumptionTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
8
+ var consumptionTypes = (0, _propTypes.shape)({
11
9
  magnitude: _propTypes.string,
12
10
  type: _propTypes.string,
13
11
  unit: _propTypes.string,
14
12
  value: _propTypes.number
15
- }));
13
+ });
16
14
  exports.consumptionTypes = consumptionTypes;
17
15
  var settlementsTypes = (0, _propTypes.shape)({
18
16
  periodicity: _propTypes.string,
@@ -20,15 +18,15 @@ var settlementsTypes = (0, _propTypes.shape)({
20
18
  total_settlements_days: _propTypes.number,
21
19
  start_date: _propTypes.string,
22
20
  end_date: _propTypes.string,
23
- current: {
21
+ current: (0, _propTypes.shape)({
24
22
  number: _propTypes.number,
25
23
  issued_on: _propTypes.string,
26
- consumptions: (0, _propTypes.shape)({
24
+ consumptions: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
27
25
  unit: _propTypes.string,
28
26
  magnitude: _propTypes.string,
29
27
  value: _propTypes.number
30
- })
31
- },
28
+ }))
29
+ }),
32
30
  remaining: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
33
31
  number: _propTypes.number,
34
32
  days: _propTypes.number,
@@ -41,14 +39,16 @@ var settlementsTypes = (0, _propTypes.shape)({
41
39
  }))
42
40
  });
43
41
  exports.settlementsTypes = settlementsTypes;
44
- var periodTypes = (0, _propTypes.arrayOf)((0, _propTypes.shape)({
42
+ var periodTypes = (0, _propTypes.shape)({
45
43
  current: _propTypes.bool,
46
44
  number: _propTypes.string,
47
45
  year: _propTypes.string,
48
46
  settlements: settlementsTypes,
49
- consumptions: consumptionTypes
50
- }));
47
+ consumptions: (0, _propTypes.arrayOf)(consumptionTypes)
48
+ });
51
49
  exports.periodTypes = periodTypes;
50
+ var periodsTypes = (0, _propTypes.arrayOf)(periodTypes);
51
+ exports.periodsTypes = periodsTypes;
52
52
  var billDataTypes = (0, _propTypes.shape)({
53
53
  bill_type: _propTypes.string,
54
54
  bill_number: _propTypes.string,
@@ -59,7 +59,7 @@ var billDataTypes = (0, _propTypes.shape)({
59
59
  date: _propTypes.string,
60
60
  amount: _propTypes.number
61
61
  })),
62
- periods: periodTypes,
62
+ periods: periodsTypes,
63
63
  client: (0, _propTypes.shape)({
64
64
  account_address: _propTypes.string,
65
65
  postal_address: _propTypes.string,
@@ -1,24 +1,18 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.unpackedComponentsTypes = exports.componentsTypes = exports.componentTypes = void 0;
9
-
10
7
  var _propTypes = require("prop-types");
11
-
12
8
  var COMPONENTS = _interopRequireWildcard(require("../constants/components"));
13
-
14
9
  var _shape;
15
-
16
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22
16
  var componentTypes = (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.node, _propTypes.func, _propTypes.any]);
23
17
  exports.componentTypes = componentTypes;
24
18
  var componentsTypes = (0, _propTypes.shape)((_shape = {}, _defineProperty(_shape, COMPONENTS.BUTTON, componentTypes), _defineProperty(_shape, COMPONENTS.DIALOG, componentTypes), _defineProperty(_shape, COMPONENTS.EXTERNAL_LINK, componentTypes), _defineProperty(_shape, COMPONENTS.LABEL, componentTypes), _defineProperty(_shape, COMPONENTS.PROGRESS_BAR, componentTypes), _defineProperty(_shape, COMPONENTS.TOOLTIP, componentTypes), _defineProperty(_shape, COMPONENTS.TOUCHABLE, componentTypes), _defineProperty(_shape, COMPONENTS.CARD, componentTypes), _defineProperty(_shape, COMPONENTS.MARKDOWN, componentTypes), _defineProperty(_shape, COMPONENTS.TOGGLE, componentTypes), _defineProperty(_shape, COMPONENTS.BAR_CHART, componentTypes), _defineProperty(_shape, COMPONENTS.PIE_CHART, componentTypes), _shape));
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.formattersTypes = void 0;
7
-
8
7
  var _propTypes = require("prop-types");
9
-
10
8
  var formattersTypes = (0, _propTypes.shape)({
11
9
  billNumberFormatter: _propTypes.func,
12
10
  clientNumberFormatter: _propTypes.func
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.subStageType = exports.stageType = exports.rateStagesTypes = void 0;
7
-
8
7
  var _propTypes = require("prop-types");
9
-
10
8
  var subStageType = (0, _propTypes.shape)({
11
9
  category: _propTypes.number,
12
10
  name: _propTypes.string,
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.contextApiInfoTypes = void 0;
7
-
8
7
  var _propTypes = require("prop-types");
9
-
10
8
  var _assetsTypes = require("./assetsTypes");
11
-
12
9
  var _textsTypes = require("./textsTypes");
13
-
14
10
  var _formattersTypes = require("./formattersTypes");
15
-
16
11
  var _componentsTypes = require("./componentsTypes");
17
-
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
18
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
-
20
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
-
22
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
18
  var configTypes = (0, _propTypes.shape)({
25
19
  texts: _textsTypes.textsTypes,
26
20
  formatters: _formattersTypes.formattersTypes