@thecb/components 11.11.1-beta.1 → 11.11.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.1-beta.1",
3
+ "version": "11.11.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -3,7 +3,7 @@ import styled from "styled-components";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
  import { fallbackValues } from "./FormattedBankAccount.theme";
5
5
  import BankIconLarge from "../icons/BankIconLarge";
6
- import { Stack, Box } from "../layouts";
6
+ import { Stack } from "../layouts";
7
7
  import Text from "../text";
8
8
 
9
9
  export const BankItemWrapper = styled.div`
@@ -11,6 +11,12 @@ export const BankItemWrapper = styled.div`
11
11
  justify-content: flex-start;
12
12
  align-items: center;
13
13
  `;
14
+ export const BankIconWrapper = styled.div`
15
+ margin-right: 8px;
16
+ width: 36px;
17
+ height: auto;
18
+ display: flex;
19
+ `;
14
20
 
15
21
  export const BankAccountText = styled.h4`
16
22
  color: ${({ color }) => color};
@@ -32,9 +38,9 @@ const FormattedBankAccount = ({
32
38
  themeValues
33
39
  }) => (
34
40
  <BankItemWrapper>
35
- <Box padding="0" extraStyles={`margin-right: 8px;`}>
41
+ <BankIconWrapper>
36
42
  <BankIconLarge />
37
- </Box>
43
+ </BankIconWrapper>
38
44
  <Stack childGap="0">
39
45
  {accountType === CHECKING && (
40
46
  <BankAccountText color={themeValues.textColor}>