@thecb/components 5.8.2-beta.4 → 5.8.2-beta.7
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 +60 -58
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +60 -58
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/AutopayOnIcon.js +4 -10
- package/src/components/atoms/layouts/Box.styled.js +3 -6
- package/src/components/molecules/obligation/Obligation.js +9 -2
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +4 -2
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +2 -6
- package/src/components/templates/center-single/CenterSingle.js +2 -1
- package/src/components/templates/center-stack/CenterStack.js +2 -1
- package/src/components/templates/default-page-template/DefaultPageTemplate.js +2 -1
- package/src/components/templates/sidebar-single-content/SidebarSingleContent.js +2 -1
- package/src/components/templates/sidebar-stack-content/SidebarStackContent.js +2 -1
- package/src/components/templates/templates.theme.js +1 -1
- package/src/constants/colors.js +10 -8
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { themeComponent } from "../../../util/themeUtils";
|
|
2
|
+
import { SEA_GREEN } from "../../../constants/colors";
|
|
4
3
|
|
|
5
|
-
const AutopayOnIcon = (
|
|
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={
|
|
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
|
|
24
|
-
AutopayOnIcon,
|
|
25
|
-
"Icons",
|
|
26
|
-
fallbackValues,
|
|
27
|
-
"primary"
|
|
28
|
-
);
|
|
22
|
+
export default AutopayOnIcon;
|
|
@@ -35,19 +35,16 @@ export const BoxWrapper = styled(
|
|
|
35
35
|
position: relative;
|
|
36
36
|
box-sizing: border-box;
|
|
37
37
|
padding: ${({ padding }) => padding};
|
|
38
|
-
border: ${({
|
|
39
|
-
`${borderSize} solid ${borderColor}`};
|
|
38
|
+
border: ${({ border }) => border};
|
|
40
39
|
box-shadow: ${({ boxShadow }) => boxShadow};
|
|
41
40
|
background-color: ${({ background }) => background};
|
|
42
41
|
min-height: ${({ minHeight }) => (minHeight ? minHeight : "auto")};
|
|
43
|
-
${({ width }) => width
|
|
42
|
+
width: ${({ width }) => width}
|
|
44
43
|
min-width: ${({ minWidth }) => (minWidth ? minWidth : "auto")};
|
|
45
44
|
max-width: ${({ maxWidth }) => (maxWidth ? maxWidth : "auto")};
|
|
46
45
|
color: ${({ color }) => color};
|
|
47
46
|
border-radius: ${({ borderRadius }) => borderRadius};
|
|
48
|
-
border-width: ${({ borderWidthOverride
|
|
49
|
-
borderWidthOverride ? borderWidthOverride : borderSize};
|
|
50
|
-
border: ${({ border }) => border};
|
|
47
|
+
border-width: ${({ borderWidthOverride }) => borderWidthOverride};
|
|
51
48
|
text-align: ${({ textAlign }) => textAlign};
|
|
52
49
|
|
|
53
50
|
&:hover {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Box, Cluster, Stack } from "../../../components/atoms/layouts";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
WHITE,
|
|
5
|
+
BRIGHT_GREY,
|
|
6
|
+
ATHENS_GREY,
|
|
7
|
+
GRECIAN_GREY
|
|
8
|
+
} from "../../../constants/colors";
|
|
4
9
|
import {
|
|
5
10
|
IconModule,
|
|
6
11
|
TitleModule,
|
|
@@ -41,7 +46,7 @@ const Obligation = ({
|
|
|
41
46
|
const firstObligation = obligations[0];
|
|
42
47
|
const customAttributes = firstObligation?.customAttributes ?? {};
|
|
43
48
|
const boxShadowValue =
|
|
44
|
-
"0px
|
|
49
|
+
"0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
|
|
45
50
|
const activeObligation = (
|
|
46
51
|
<Box
|
|
47
52
|
padding="0"
|
|
@@ -50,6 +55,8 @@ const Obligation = ({
|
|
|
50
55
|
as="section"
|
|
51
56
|
aria-label={`${firstObligation?.description ??
|
|
52
57
|
"account"} ${firstObligation?.subDescription ?? obligationAssocID}`}
|
|
58
|
+
border={`1px solid ${GRECIAN_GREY}`}
|
|
59
|
+
borderWidthOverride="1px 0 0 0"
|
|
53
60
|
>
|
|
54
61
|
<Box background={WHITE} padding="24px 16px">
|
|
55
62
|
<Stack childGap="14px">
|
|
@@ -25,7 +25,7 @@ const InactiveControlsModule = ({
|
|
|
25
25
|
border={isMobile ? `1px solid ${GHOST_GREY}` : `0px`}
|
|
26
26
|
borderWidthOverride={isMobile ? `1px 0 0 0` : `0px`}
|
|
27
27
|
>
|
|
28
|
-
<Cluster childGap={`8px`} nowrap>
|
|
28
|
+
<Cluster childGap={autopayEnabled ? `8px` : "0"} nowrap>
|
|
29
29
|
{autoPayEnabled && (
|
|
30
30
|
<Box padding="0" extraStyles={`flex-grow: 1;`}>
|
|
31
31
|
<AutopayModalModule
|
|
@@ -51,7 +51,9 @@ const InactiveControlsModule = ({
|
|
|
51
51
|
action={handleRemoveAccount}
|
|
52
52
|
dataQa="Remove Account"
|
|
53
53
|
extraStyles={
|
|
54
|
-
isMobile
|
|
54
|
+
isMobile
|
|
55
|
+
? `flex-grow: 1; width: 100%; margin: 0;`
|
|
56
|
+
: `flex-grow: 1;`
|
|
55
57
|
}
|
|
56
58
|
/>
|
|
57
59
|
</Box>
|
|
@@ -130,17 +130,13 @@ const PaymentDetailsActions = ({
|
|
|
130
130
|
)}
|
|
131
131
|
</Box>
|
|
132
132
|
{!isMobile && (
|
|
133
|
-
<Box
|
|
134
|
-
padding={isMobile ? "0 0 0 8px" : "0"}
|
|
135
|
-
extraStyles={isMobile && `flex-grow: 1;`}
|
|
136
|
-
>
|
|
133
|
+
<Box padding={"0"}>
|
|
137
134
|
<ButtonWithAction
|
|
138
135
|
isLoading={isLoading}
|
|
139
136
|
action={() => handleClick(obligations)}
|
|
140
137
|
text="Pay Now"
|
|
141
138
|
variant={isMobile ? "smallSecondary" : "secondary"}
|
|
142
139
|
dataQa="Pay Now"
|
|
143
|
-
extraStyles={isMobile && `flex-grow: 1; width: 100%;`}
|
|
144
140
|
/>
|
|
145
141
|
</Box>
|
|
146
142
|
)}
|
|
@@ -153,7 +149,7 @@ const PaymentDetailsActions = ({
|
|
|
153
149
|
text="Pay Now"
|
|
154
150
|
variant={isMobile ? "smallSecondary" : "secondary"}
|
|
155
151
|
dataQa="Pay Now"
|
|
156
|
-
extraStyles={isMobile && `flex-grow: 1; width: 100
|
|
152
|
+
extraStyles={isMobile && `flex-grow: 1; width: 100%; margin: 0;`}
|
|
157
153
|
/>
|
|
158
154
|
</Box>
|
|
159
155
|
)}
|
|
@@ -4,6 +4,7 @@ import { fallbackValues } from "../templates.theme";
|
|
|
4
4
|
import { themeComponent } from "../../../util/themeUtils";
|
|
5
5
|
import withWindowResize from "../../withWindowSize";
|
|
6
6
|
import { Box, Center, Cover } from "../../atoms/layouts";
|
|
7
|
+
import { COOL_GREY_05 } from "../../../constants/colors";
|
|
7
8
|
|
|
8
9
|
const CenterSingle = ({
|
|
9
10
|
header,
|
|
@@ -23,7 +24,7 @@ const CenterSingle = ({
|
|
|
23
24
|
<Box
|
|
24
25
|
padding="0"
|
|
25
26
|
minWidth="100%"
|
|
26
|
-
background={
|
|
27
|
+
background={COOL_GREY_05}
|
|
27
28
|
extraStyles="flex-grow: 1;"
|
|
28
29
|
>
|
|
29
30
|
<Cover centerOverride={isMobile && !centeredMobileContent}>
|
|
@@ -4,6 +4,7 @@ import { fallbackValues } from "../templates.theme";
|
|
|
4
4
|
import { themeComponent } from "../../../util/themeUtils";
|
|
5
5
|
import withWindowResize from "../../withWindowSize";
|
|
6
6
|
import { Box, Center, Cover, Stack } from "../../atoms/layouts";
|
|
7
|
+
import { COOL_GREY_05 } from "../../../constants/colors";
|
|
7
8
|
|
|
8
9
|
const CenterStack = ({
|
|
9
10
|
header,
|
|
@@ -23,7 +24,7 @@ const CenterStack = ({
|
|
|
23
24
|
<Box
|
|
24
25
|
padding="0"
|
|
25
26
|
minWidth="100%"
|
|
26
|
-
background={
|
|
27
|
+
background={COOL_GREY_05}
|
|
27
28
|
extraStyles="flex-grow: 1;"
|
|
28
29
|
>
|
|
29
30
|
<Cover>
|
|
@@ -4,6 +4,7 @@ import { fallbackValues } from "../templates.theme";
|
|
|
4
4
|
import { themeComponent } from "../../../util/themeUtils";
|
|
5
5
|
import withWindowResize from "../../withWindowSize";
|
|
6
6
|
import { Box, Center, Cover } from "../../atoms/layouts";
|
|
7
|
+
import { COOL_GREY_05 } from "../../../constants/colors";
|
|
7
8
|
|
|
8
9
|
const CenterSingle = ({
|
|
9
10
|
header,
|
|
@@ -22,7 +23,7 @@ const CenterSingle = ({
|
|
|
22
23
|
<Box
|
|
23
24
|
padding="0"
|
|
24
25
|
minWidth="100%"
|
|
25
|
-
background={
|
|
26
|
+
background={COOL_GREY_05}
|
|
26
27
|
extraStyles="flex-grow: 1;"
|
|
27
28
|
>
|
|
28
29
|
<Cover childGap="0" fillCenter>
|
|
@@ -4,6 +4,7 @@ import { fallbackValues } from "../templates.theme";
|
|
|
4
4
|
import { themeComponent } from "../../../util/themeUtils";
|
|
5
5
|
import withWindowResize from "../../withWindowSize";
|
|
6
6
|
import { Box, Center, Cover, Sidebar } from "../../atoms/layouts";
|
|
7
|
+
import { COOL_GREY_05 } from "../../../constants/colors";
|
|
7
8
|
|
|
8
9
|
const SidebarSingleContent = ({
|
|
9
10
|
header,
|
|
@@ -28,7 +29,7 @@ const SidebarSingleContent = ({
|
|
|
28
29
|
<Box
|
|
29
30
|
padding="0"
|
|
30
31
|
minWidth="100%"
|
|
31
|
-
background={
|
|
32
|
+
background={COOL_GREY_05}
|
|
32
33
|
extraStyles="flex-grow: 1;"
|
|
33
34
|
>
|
|
34
35
|
<Cover centerOverride={!sidebarVerticalCenter}>
|
|
@@ -4,6 +4,7 @@ import { fallbackValues } from "../templates.theme";
|
|
|
4
4
|
import { themeComponent } from "../../../util/themeUtils";
|
|
5
5
|
import withWindowResize from "../../withWindowSize";
|
|
6
6
|
import { Box, Center, Cover, Sidebar, Stack } from "../../atoms/layouts";
|
|
7
|
+
import { COOL_GREY_05 } from "../../../constants/colors";
|
|
7
8
|
|
|
8
9
|
const SidebarStackContent = ({
|
|
9
10
|
header,
|
|
@@ -29,7 +30,7 @@ const SidebarStackContent = ({
|
|
|
29
30
|
<Box
|
|
30
31
|
padding="0"
|
|
31
32
|
minWidth="100%"
|
|
32
|
-
background={
|
|
33
|
+
background={COOL_GREY_05}
|
|
33
34
|
key="page-bg"
|
|
34
35
|
extraStyles="flex-grow: 1;"
|
|
35
36
|
>
|
package/src/constants/colors.js
CHANGED
|
@@ -15,25 +15,26 @@ const AQUA_HAZE_WHITE = "#F7F9FA";
|
|
|
15
15
|
const BLEACH_WHITE = "#FEF4d7";
|
|
16
16
|
const CATSKILL_WHITE = "#EAF2F6";
|
|
17
17
|
// GREY
|
|
18
|
-
const ATHENS_GREY = "#F6F6F9";
|
|
18
|
+
const ATHENS_GREY = "#F6F6F9"; // CBS-100
|
|
19
19
|
const ALTO_GREY = "#d1d1d1";
|
|
20
20
|
const SILVER_GREY = "#cdcdcd";
|
|
21
21
|
const PEWTER_GREY = "#DFE1E4";
|
|
22
22
|
const ASH_GREY = "#979797";
|
|
23
23
|
const IRON_GREY = "#d5d8dc";
|
|
24
|
-
const GHOST_GREY = "#CACED8";
|
|
24
|
+
const GHOST_GREY = "#CACED8"; // CBS-300
|
|
25
25
|
const DUSTY_GREY = "#9B9B9B";
|
|
26
26
|
const REGENT_GREY = "#959EA7";
|
|
27
|
-
const STORM_GREY = "#6D717E";
|
|
27
|
+
const STORM_GREY = "#6D717E"; // CBS-700
|
|
28
28
|
const TROUT_GREY = "#515660";
|
|
29
29
|
const MINESHAFT_GREY = "#333333";
|
|
30
30
|
const SOOT_GREY = "#999999";
|
|
31
31
|
const FIREFLY_GREY = "#091325";
|
|
32
|
-
const BRIGHT_GREY = "#3B414D";
|
|
33
|
-
const CHARADE_GREY = "#292A33";
|
|
34
|
-
const GRECIAN_GREY = "#E5E7EC";
|
|
32
|
+
const BRIGHT_GREY = "#3B414D"; // CBS-800
|
|
33
|
+
const CHARADE_GREY = "#292A33"; // CBS-900
|
|
34
|
+
const GRECIAN_GREY = "#E5E7EC"; // CBS-200
|
|
35
35
|
const BLACK_SQUEEZE = "#EAF2F7";
|
|
36
|
-
const GREY_CHATEAU = "#959CA8";
|
|
36
|
+
const GREY_CHATEAU = "#959CA8"; // CBS-500
|
|
37
|
+
const COOL_GREY_05 = "#fbfcfd"; // CBS-050
|
|
37
38
|
// BLUE
|
|
38
39
|
const CLOUDBURST_BLUE = "#26395c";
|
|
39
40
|
const ZODIAC_BLUE = "#14284b";
|
|
@@ -67,7 +68,7 @@ const MUSTARD_YELLOW = "#FFD459";
|
|
|
67
68
|
const FIRE_YELLOW = "#B34A00";
|
|
68
69
|
// ORANGE
|
|
69
70
|
const CARROT_ORANGE = "#ED9620";
|
|
70
|
-
const ZEST_ORANGE = "#
|
|
71
|
+
const ZEST_ORANGE = "#B84A00";
|
|
71
72
|
const APRICOT_ORANGE = "#FFE8D8";
|
|
72
73
|
// RED
|
|
73
74
|
const RED = "#FF0000";
|
|
@@ -138,6 +139,7 @@ export {
|
|
|
138
139
|
BRIGHT_GREY,
|
|
139
140
|
CHARADE_GREY,
|
|
140
141
|
GRECIAN_GREY,
|
|
142
|
+
COOL_GREY_05,
|
|
141
143
|
BLACK_SQUEEZE,
|
|
142
144
|
GREY_CHATEAU,
|
|
143
145
|
CLOUDBURST_BLUE,
|