@thecb/components 5.8.2-beta.6 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.8.2-beta.6",
3
+ "version": "5.8.2-beta.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -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: ${({ borderSize, borderColor }) =>
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 && `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, borderSize }) =>
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 { WHITE, BRIGHT_GREY, ATHENS_GREY } from "../../../constants/colors";
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 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
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 ? `flex-grow: 1; width: 100%;` : `flex-grow: 1;`
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={themeValues.pageBackground}
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={themeValues.pageBackground}
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={themeValues.pageBackground}
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={themeValues.pageBackground}
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={themeValues.pageBackground}
33
+ background={COOL_GREY_05}
33
34
  key="page-bg"
34
35
  extraStyles="flex-grow: 1;"
35
36
  >
@@ -1,4 +1,4 @@
1
- const pageBackground = "#F6F6F9";
1
+ const pageBackground = "#FBFCFD";
2
2
 
3
3
  export const fallbackValues = {
4
4
  pageBackground
@@ -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";
@@ -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,