@thecb/components 11.11.0 → 11.11.1-beta.1

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": "11.11.0",
3
+ "version": "11.11.1-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -45,11 +45,7 @@ const CardType = ({ type, size = "small" }) => {
45
45
  const normalizedType = normalizeType(type);
46
46
  const { label, [size]: IconComponent } =
47
47
  cardBrands[normalizedType] || cardBrands.default;
48
- return (
49
- <span>
50
- <IconComponent />
51
- </span>
52
- );
48
+ return <IconComponent />;
53
49
  };
54
50
 
55
51
  export default CardType;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import styled from "styled-components";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
  import { fallbackValues } from "./FormattedBankAccount.theme";
5
- import BankIcon from "../icons/BankIcon";
5
+ import BankIconLarge from "../icons/BankIconLarge";
6
6
  import { Stack, Box } from "../layouts";
7
7
  import Text from "../text";
8
8
 
@@ -32,8 +32,8 @@ const FormattedBankAccount = ({
32
32
  themeValues
33
33
  }) => (
34
34
  <BankItemWrapper>
35
- <Box padding="0.25rem 0 0 0" extraStyles={`margin-right: 1rem;`}>
36
- <BankIcon />
35
+ <Box padding="0" extraStyles={`margin-right: 8px;`}>
36
+ <BankIconLarge />
37
37
  </Box>
38
38
  <Stack childGap="0">
39
39
  {accountType === CHECKING && (
@@ -14,7 +14,7 @@ export const CreditCardWrapper = styled.div`
14
14
  `;
15
15
 
16
16
  export const CCIconWrapper = styled.div`
17
- margin-right: 16px;
17
+ margin-right: 8px;
18
18
  width: 36px;
19
19
  height: auto;
20
20
  display: flex;
@@ -30,36 +30,36 @@ const FormattedCreditCard = ({
30
30
  }) => {
31
31
  const { isMobile } = useContext(ThemeContext);
32
32
  return (
33
- <CreditCardWrapper>
34
- <CCIconWrapper>
35
- <CardType type={type} size={isMobile ? "small" : "large"} />
36
- </CCIconWrapper>
37
- <Stack childGap="0">
38
- <Box padding="0">
39
- <Text
40
- variant="p"
41
- padding="0"
42
- color={themeValues.textColor}
43
- textAlign="left"
44
- extraStyles={`display: inline-block;`}
45
- >
46
- {`Card ending in ${lastFour}`}
47
- </Text>
48
- {expireDate && (
49
- <Fragment>
50
- {renderCardStatus(expirationStatus, expireDate, "left", "p")}
51
- </Fragment>
33
+ <CreditCardWrapper>
34
+ <CCIconWrapper>
35
+ <CardType type={type} size={isMobile ? "small" : "large"} />
36
+ </CCIconWrapper>
37
+ <Stack childGap="0">
38
+ <Box padding="0">
39
+ <Text
40
+ variant="p"
41
+ padding="0"
42
+ color={themeValues.textColor}
43
+ textAlign="left"
44
+ extraStyles={`display: inline-block;`}
45
+ >
46
+ {`Card ending in ${lastFour}`}
47
+ </Text>
48
+ {expireDate && (
49
+ <Fragment>
50
+ {renderCardStatus(expirationStatus, expireDate, "left", "p")}
51
+ </Fragment>
52
+ )}
53
+ </Box>
54
+ {autoPay && (
55
+ <Text
56
+ variant="p"
57
+ color={themeValues.autopayTextColor}
58
+ extraStyles={`font-style: italic; font-size: .75rem;`}
59
+ >{`Autopay On`}</Text>
52
60
  )}
53
- </Box>
54
- {autoPay && (
55
- <Text
56
- variant="p"
57
- color={themeValues.autopayTextColor}
58
- extraStyles={`font-style: italic; font-size: .75rem;`}
59
- >{`Autopay On`}</Text>
60
- )}
61
- </Stack>
62
- </CreditCardWrapper>
61
+ </Stack>
62
+ </CreditCardWrapper>
63
63
  );
64
64
  };
65
65
  export default themeComponent(
@@ -105,7 +105,7 @@ const RadioButton = ({
105
105
  borderWidth="1px"
106
106
  borderStyle="solid"
107
107
  borderRadius="12px"
108
- margin="6px 14px 6px 6px"
108
+ margin="6px 8px 6px 6px"
109
109
  height="24px"
110
110
  width="24px"
111
111
  variants={buttonBorder}