@thecb/components 5.8.2-beta.3 → 5.8.2-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.8.2-beta.3",
3
+ "version": "5.8.2-beta.6",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
- import { fallbackValues } from "./Icons.theme";
3
- import { themeComponent } from "../../../util/themeUtils";
2
+ import { SEA_GREEN } from "../../../constants/colors";
4
3
 
5
- const AutopayOnIcon = ({ themeValues }) => (
4
+ const AutopayOnIcon = () => (
6
5
  <svg
7
6
  xmlns="http://www.w3.org/2000/svg"
8
7
  width="12"
@@ -12,7 +11,7 @@ const AutopayOnIcon = ({ themeValues }) => (
12
11
  <g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
13
12
  <path
14
13
  className="autopayIcon"
15
- fill={themeValues.primaryColor}
14
+ fill={SEA_GREEN}
16
15
  fillRule="nonzero"
17
16
  d="M1.898 5.75c.079 0 .141-.02.188-.059a.281.281 0 00.094-.152 3.825 3.825 0 011.394-2.144A3.838 3.838 0 016 2.563c.5 0 .98.09 1.441.27.461.179.88.44 1.254.784l-.984.985A.542.542 0 007.547 5c0 .156.055.29.164.398.11.11.242.165.398.165h3.141c.156 0 .289-.055.398-.165A.542.542 0 0011.812 5V1.86a.542.542 0 00-.164-.399.542.542 0 00-.398-.164.542.542 0 00-.398.164l-.844.844A5.699 5.699 0 006 .688c-.938 0-1.809.207-2.613.62-.805.415-1.48.981-2.028 1.7A5.726 5.726 0 00.281 5.422a.265.265 0 00.059.223c.055.07.129.105.222.105h1.336zM6 12.312c.937 0 1.809-.207 2.613-.62a5.919 5.919 0 002.028-1.7 5.726 5.726 0 001.078-2.414.265.265 0 00-.059-.223.267.267 0 00-.223-.105h-1.335c-.079 0-.141.02-.188.059a.281.281 0 00-.094.152 3.825 3.825 0 01-1.394 2.144c-.711.555-1.52.833-2.426.833-.5 0-.98-.09-1.441-.27a3.985 3.985 0 01-1.254-.785l.984-.985A.542.542 0 004.453 8a.542.542 0 00-.164-.398.542.542 0 00-.398-.164H.75a.542.542 0 00-.398.164A.542.542 0 00.187 8v3.14c0 .157.055.29.165.4.109.108.242.163.398.163.156 0 .29-.055.398-.164l.844-.844A5.699 5.699 0 006 12.312z"
18
17
  ></path>
@@ -20,9 +19,4 @@ const AutopayOnIcon = ({ themeValues }) => (
20
19
  </svg>
21
20
  );
22
21
 
23
- export default themeComponent(
24
- AutopayOnIcon,
25
- "Icons",
26
- fallbackValues,
27
- "primary"
28
- );
22
+ export default AutopayOnIcon;
@@ -116,6 +116,7 @@ const Obligation = ({
116
116
  isMobile={isMobile}
117
117
  isPaymentPlan={isPaymentPlan}
118
118
  nextAutopayDate={nextAutopayDate}
119
+ obligationAssocID={obligationAssocID}
119
120
  />
120
121
  )}
121
122
  </Stack>
@@ -135,6 +136,7 @@ const Obligation = ({
135
136
  isMobile={isMobile}
136
137
  isPaymentPlan={isPaymentPlan}
137
138
  nextAutopayDate={nextAutopayDate}
139
+ obligationAssocID={obligationAssocID}
138
140
  />
139
141
  )}
140
142
  </Box>
@@ -18,7 +18,8 @@ const PaymentDetailsActions = ({
18
18
  autoPaySchedule,
19
19
  paymentPlanSchedule,
20
20
  isPaymentPlan,
21
- nextAutopayDate
21
+ nextAutopayDate,
22
+ obligationAssocID
22
23
  }) => {
23
24
  const planType = isPaymentPlan ? "Payment Plan" : "Autopay";
24
25
  const [isLoading, setIsLoading] = useState(false);
@@ -38,7 +39,7 @@ const PaymentDetailsActions = ({
38
39
  createPaymentFromProfile(obligations, config);
39
40
  };
40
41
  const handleDetailsClick = () => {
41
- setDetailedObligation(obligations, config);
42
+ setDetailedObligation(obligations, config, obligationAssocID);
42
43
  navigateToDetailedObligation(detailsSlug);
43
44
  };
44
45
  return (
@@ -67,7 +67,7 @@ const MUSTARD_YELLOW = "#FFD459";
67
67
  const FIRE_YELLOW = "#B34A00";
68
68
  // ORANGE
69
69
  const CARROT_ORANGE = "#ED9620";
70
- const ZEST_ORANGE = "#F47820";
70
+ const ZEST_ORANGE = "#B84A00";
71
71
  const APRICOT_ORANGE = "#FFE8D8";
72
72
  // RED
73
73
  const RED = "#FF0000";