@thecb/components 4.1.21 → 4.1.22

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/dist/index.cjs.js CHANGED
@@ -38156,7 +38156,7 @@ var hoverColor$4 = "#116285";
38156
38156
  var activeColor$5 = "#0E506D";
38157
38157
  var linkColor$3 = "#357fb8";
38158
38158
  var fontWeight$6 = FONT_WEIGHT_REGULAR;
38159
- var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #357fb8;";
38159
+ var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
38160
38160
  var fallbackValues$w = {
38161
38161
  color: color$a,
38162
38162
  hoverColor: hoverColor$4,
@@ -38177,7 +38177,8 @@ var AutopayModal = function AutopayModal(_ref) {
38177
38177
  buttonLinkType = _ref.buttonLinkType,
38178
38178
  isMobile = _ref.isMobile,
38179
38179
  themeValues = _ref.themeValues,
38180
- isPaymentPlan = _ref.isPaymentPlan;
38180
+ isPaymentPlan = _ref.isPaymentPlan,
38181
+ nextAutopayDate = _ref.nextAutopayDate;
38181
38182
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
38182
38183
  var modalExtraProps = {
38183
38184
  modalHeaderText: autoPayActive ? "Deactivate ".concat(planType) : "Set Up ".concat(planType),
@@ -38232,11 +38233,11 @@ var AutopayModal = function AutopayModal(_ref) {
38232
38233
  },
38233
38234
  tabIndex: "0",
38234
38235
  dataQa: "".concat(planType, " On"),
38235
- color: themeValues.linkColor,
38236
+ color: SEA_GREEN,
38236
38237
  weight: themeValues.fontWeight,
38237
38238
  hoverStyles: themeValues.modalLinkHoverFocus,
38238
- extraStyles: "padding: 0 0 0 6px;"
38239
- }, "".concat(planType, " On")))));
38239
+ extraStyles: "padding-left: 0.25rem;"
38240
+ }, "".concat(planType, " ").concat(nextAutopayDate)))));
38240
38241
  };
38241
38242
 
38242
38243
  var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$w);
@@ -38249,7 +38250,8 @@ var AmountModule = function AmountModule(_ref) {
38249
38250
  navigateToSettings = _ref.navigateToSettings,
38250
38251
  autoPaySchedule = _ref.autoPaySchedule,
38251
38252
  paymentPlanSchedule = _ref.paymentPlanSchedule,
38252
- isPaymentPlan = _ref.isPaymentPlan;
38253
+ isPaymentPlan = _ref.isPaymentPlan,
38254
+ nextAutopayDate = _ref.nextAutopayDate;
38253
38255
 
38254
38256
  var _useState = React.useState(false),
38255
38257
  _useState2 = _slicedToArray(_useState, 2),
@@ -38260,11 +38262,7 @@ var AmountModule = function AmountModule(_ref) {
38260
38262
  padding: "0 0.25rem 0 0"
38261
38263
  }, /*#__PURE__*/React__default.createElement(Stack, {
38262
38264
  childGap: "0"
38263
- }, /*#__PURE__*/React__default.createElement(Text$1, {
38264
- variant: "pS",
38265
- weight: FONT_WEIGHT_SEMIBOLD,
38266
- extraStyles: isMobile ? "text-align: left;" : "text-align: right;"
38267
- }, isMobile ? "Total Due" : "Total Amount Due"), /*#__PURE__*/React__default.createElement(AmountCallout$1, {
38265
+ }, /*#__PURE__*/React__default.createElement(AmountCallout$1, {
38268
38266
  amount: displayCurrency(totalAmountDue),
38269
38267
  textAlign: isMobile ? "left" : "right"
38270
38268
  }), autoPayEnabled && /*#__PURE__*/React__default.createElement(AutopayModalModule, {
@@ -38276,7 +38274,8 @@ var AmountModule = function AmountModule(_ref) {
38276
38274
  deactivatePaymentSchedule: deactivatePaymentSchedule,
38277
38275
  isMobile: isMobile,
38278
38276
  paymentPlanSchedule: paymentPlanSchedule,
38279
- isPaymentPlan: isPaymentPlan
38277
+ isPaymentPlan: isPaymentPlan,
38278
+ nextAutopayDate: nextAutopayDate
38280
38279
  })));
38281
38280
  };
38282
38281
 
@@ -38292,7 +38291,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
38292
38291
  navigateToSettings = _ref.navigateToSettings,
38293
38292
  autoPaySchedule = _ref.autoPaySchedule,
38294
38293
  paymentPlanSchedule = _ref.paymentPlanSchedule,
38295
- isPaymentPlan = _ref.isPaymentPlan;
38294
+ isPaymentPlan = _ref.isPaymentPlan,
38295
+ nextAutopayDate = _ref.nextAutopayDate;
38296
38296
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
38297
38297
 
38298
38298
  var _useState = React.useState(false),
@@ -38347,7 +38347,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
38347
38347
  navigateToSettings: navigateToSettings,
38348
38348
  autoPaySchedule: autoPaySchedule,
38349
38349
  paymentPlanSchedule: paymentPlanSchedule,
38350
- isPaymentPlan: isPaymentPlan
38350
+ isPaymentPlan: isPaymentPlan,
38351
+ nextAutopayDate: nextAutopayDate
38351
38352
  }))), /*#__PURE__*/React__default.createElement(Box, {
38352
38353
  padding: isMobile ? "16px" : "0"
38353
38354
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -38385,7 +38386,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
38385
38386
  buttonLinkType: true,
38386
38387
  isMobile: isMobile,
38387
38388
  paymentPlanSchedule: paymentPlanSchedule,
38388
- isPaymentPlan: isPaymentPlan
38389
+ isPaymentPlan: isPaymentPlan,
38390
+ nextAutopayDate: nextAutopayDate
38389
38391
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
38390
38392
  padding: isMobile ? "0 0 0 8px" : "8px",
38391
38393
  extraStyles: isMobile && "flex-grow: 1;"
@@ -38425,7 +38427,8 @@ var Obligation = function Obligation(_ref) {
38425
38427
  paymentPlanSchedule = _ref.paymentPlanSchedule,
38426
38428
  navigateToSettings = _ref.navigateToSettings,
38427
38429
  isMobile = _ref.isMobile,
38428
- isPaymentPlan = _ref.isPaymentPlan;
38430
+ isPaymentPlan = _ref.isPaymentPlan,
38431
+ nextAutopayDate = _ref.nextAutopayDate;
38429
38432
  var obligation = obligations[0];
38430
38433
  var customAttributes = obligation.customAttributes;
38431
38434
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -38471,7 +38474,8 @@ var Obligation = function Obligation(_ref) {
38471
38474
  navigateToSettings: navigateToSettings,
38472
38475
  autoPaySchedule: autoPaySchedule,
38473
38476
  paymentPlanSchedule: paymentPlanSchedule,
38474
- isPaymentPlan: isPaymentPlan
38477
+ isPaymentPlan: isPaymentPlan,
38478
+ nextAutopayDate: nextAutopayDate
38475
38479
  }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
38476
38480
  obligations: obligations,
38477
38481
  autoPayEnabled: autoPayEnabled,
@@ -38484,7 +38488,8 @@ var Obligation = function Obligation(_ref) {
38484
38488
  config: config,
38485
38489
  actions: actions,
38486
38490
  isMobile: isMobile,
38487
- isPaymentPlan: isPaymentPlan
38491
+ isPaymentPlan: isPaymentPlan,
38492
+ nextAutopayDate: nextAutopayDate
38488
38493
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
38489
38494
  obligations: obligations,
38490
38495
  autoPayEnabled: autoPayEnabled,
@@ -38497,7 +38502,8 @@ var Obligation = function Obligation(_ref) {
38497
38502
  config: config,
38498
38503
  actions: actions,
38499
38504
  isMobile: isMobile,
38500
- isPaymentPlan: isPaymentPlan
38505
+ isPaymentPlan: isPaymentPlan,
38506
+ nextAutopayDate: nextAutopayDate
38501
38507
  }));
38502
38508
  };
38503
38509
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.1.21",
3
+ "version": "4.1.22",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -20,7 +20,8 @@ const Obligation = ({
20
20
  paymentPlanSchedule,
21
21
  navigateToSettings,
22
22
  isMobile,
23
- isPaymentPlan
23
+ isPaymentPlan,
24
+ nextAutopayDate
24
25
  }) => {
25
26
  const obligation = obligations[0];
26
27
  const { customAttributes } = obligation;
@@ -71,6 +72,7 @@ const Obligation = ({
71
72
  autoPaySchedule={autoPaySchedule}
72
73
  paymentPlanSchedule={paymentPlanSchedule}
73
74
  isPaymentPlan={isPaymentPlan}
75
+ nextAutopayDate={nextAutopayDate}
74
76
  />
75
77
  )}
76
78
  </Cluster>
@@ -89,6 +91,7 @@ const Obligation = ({
89
91
  actions={actions}
90
92
  isMobile={isMobile}
91
93
  isPaymentPlan={isPaymentPlan}
94
+ nextAutopayDate={nextAutopayDate}
92
95
  />
93
96
  )}
94
97
  </Stack>
@@ -107,6 +110,7 @@ const Obligation = ({
107
110
  actions={actions}
108
111
  isMobile={isMobile}
109
112
  isPaymentPlan={isPaymentPlan}
113
+ nextAutopayDate={nextAutopayDate}
110
114
  />
111
115
  )}
112
116
  </Box>
@@ -1,8 +1,6 @@
1
1
  import React, { useState } from "react";
2
- import Text from "../../../atoms/text";
3
2
  import AmountCallout from "../../../atoms/amount-callout";
4
3
  import { Box, Stack } from "../../../atoms/layouts";
5
- import { FONT_WEIGHT_SEMIBOLD } from "../../../../constants/style_constants";
6
4
  import { displayCurrency } from "../../../../util/general";
7
5
  import { AutopayModalModule } from "./AutopayModalModule";
8
6
 
@@ -14,19 +12,13 @@ const AmountModule = ({
14
12
  navigateToSettings,
15
13
  autoPaySchedule,
16
14
  paymentPlanSchedule,
17
- isPaymentPlan
15
+ isPaymentPlan,
16
+ nextAutopayDate
18
17
  }) => {
19
18
  const [modalOpen, toggleModal] = useState(false);
20
19
  return (
21
20
  <Box padding="0 0.25rem 0 0">
22
21
  <Stack childGap="0">
23
- <Text
24
- variant="pS"
25
- weight={FONT_WEIGHT_SEMIBOLD}
26
- extraStyles={isMobile ? `text-align: left;` : `text-align: right;`}
27
- >
28
- {isMobile ? "Total Due" : "Total Amount Due"}
29
- </Text>
30
22
  <AmountCallout
31
23
  amount={displayCurrency(totalAmountDue)}
32
24
  textAlign={isMobile ? "left" : "right"}
@@ -42,6 +34,7 @@ const AmountModule = ({
42
34
  isMobile={isMobile}
43
35
  paymentPlanSchedule={paymentPlanSchedule}
44
36
  isPaymentPlan={isPaymentPlan}
37
+ nextAutopayDate={nextAutopayDate}
45
38
  />
46
39
  )}
47
40
  </Stack>
@@ -4,6 +4,7 @@ import ButtonWithAction from "../../../atoms/button-with-action";
4
4
  import Text from "../../../atoms/text";
5
5
  import { AutopayOnIcon } from "../../../atoms/icons";
6
6
  import { Box, Cluster } from "../../../atoms/layouts";
7
+ import { SEA_GREEN } from "../../../../constants/colors";
7
8
  import { fallbackValues } from "./AutopayModalModule.theme";
8
9
  import { themeComponent } from "../../../../util/themeUtils";
9
10
 
@@ -18,7 +19,8 @@ const AutopayModal = ({
18
19
  buttonLinkType,
19
20
  isMobile,
20
21
  themeValues,
21
- isPaymentPlan
22
+ isPaymentPlan,
23
+ nextAutopayDate
22
24
  }) => {
23
25
  const planType = isPaymentPlan ? "Payment Plan" : "Autopay";
24
26
  const modalExtraProps = {
@@ -101,12 +103,12 @@ const AutopayModal = ({
101
103
  }}
102
104
  tabIndex="0"
103
105
  dataQa={`${planType} On`}
104
- color={themeValues.linkColor}
106
+ color={SEA_GREEN}
105
107
  weight={themeValues.fontWeight}
106
108
  hoverStyles={themeValues.modalLinkHoverFocus}
107
- extraStyles={`padding: 0 0 0 6px;`}
109
+ extraStyles={`padding-left: 0.25rem;`}
108
110
  >
109
- {`${planType} On`}
111
+ {`${planType} ${nextAutopayDate}`}
110
112
  </Text>
111
113
  </Cluster>
112
114
  </Box>
@@ -8,7 +8,7 @@ const fontWeight = FONT_WEIGHT_REGULAR;
8
8
  const modalLinkHoverFocus = `outline: none;
9
9
  cursor: pointer;
10
10
  text-decoration: underline;
11
- text-decoration-color: #357fb8;`;
11
+ text-decoration-color: #317D4F;`;
12
12
 
13
13
  export const fallbackValues = {
14
14
  color,
@@ -17,7 +17,8 @@ const PaymentDetailsActions = ({
17
17
  navigateToSettings,
18
18
  autoPaySchedule,
19
19
  paymentPlanSchedule,
20
- isPaymentPlan
20
+ isPaymentPlan,
21
+ nextAutopayDate
21
22
  }) => {
22
23
  const planType = isPaymentPlan ? "Payment Plan" : "Autopay";
23
24
  const [isLoading, setIsLoading] = useState(false);
@@ -69,6 +70,7 @@ const PaymentDetailsActions = ({
69
70
  autoPaySchedule={autoPaySchedule}
70
71
  paymentPlanSchedule={paymentPlanSchedule}
71
72
  isPaymentPlan={isPaymentPlan}
73
+ nextAutopayDate={nextAutopayDate}
72
74
  />
73
75
  </Cluster>
74
76
  </Box>
@@ -122,6 +124,7 @@ const PaymentDetailsActions = ({
122
124
  isMobile={isMobile}
123
125
  paymentPlanSchedule={paymentPlanSchedule}
124
126
  isPaymentPlan={isPaymentPlan}
127
+ nextAutopayDate={nextAutopayDate}
125
128
  />
126
129
  )}
127
130
  </Box>