@thecb/components 10.4.6-beta.2 → 10.4.6-beta.3

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": "10.4.6-beta.2",
3
+ "version": "10.4.6-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -6,7 +6,7 @@ import { noop } from "../../../util/general";
6
6
  import Text from "../text/Text";
7
7
  import { ThemeContext } from "styled-components";
8
8
  import { fallbackValues } from "./WalletName.theme";
9
-
9
+ import Module from "../../molecules/module/Module";
10
10
  const WalletName = ({
11
11
  variant = "primary",
12
12
  personName,
@@ -20,30 +20,34 @@ const WalletName = ({
20
20
 
21
21
  return (
22
22
  <Fragment>
23
- <Box
24
- background={themeValues.backgroundColor}
25
- extraStyles={
26
- isMobile
27
- ? `display: flex; flex-direction: column; flex-wrap: wrap;
23
+ <Module spacingBottom={isMobile ? "0" : "1.5rem"}>
24
+ <Box
25
+ padding="24px"
26
+ spacingBottom="0"
27
+ margin="0 0 0 0"
28
+ extraStyles={
29
+ isMobile
30
+ ? `display: flex; flex-direction: column; flex-wrap: wrap;
28
31
  span {text - align: right;}`
29
- : `display: flex; justify-content: space-between; align-items: center;`
30
- }
31
- >
32
- <Box padding="0">
33
- <Text>{personName}</Text>
34
- </Box>
35
- {!isMobile && (
36
- <Box padding="0">
37
- <Text extraStyles="font-size: 12px">{text}</Text>
38
- <ButtonWithAction
39
- text={actionText}
40
- action={action}
41
- variant="smallGhost"
42
- extraStyles="span {font-size: 12px;}"
43
- />
32
+ : `display: flex; justify-content: space-between; align-items: center;`
33
+ }
34
+ >
35
+ <Box padding="0 0 0">
36
+ <Text>{personName}</Text>
44
37
  </Box>
45
- )}
46
- </Box>
38
+ {!isMobile && (
39
+ <Box padding="0">
40
+ <Text extraStyles="font-size: 12px">{text}</Text>
41
+ <ButtonWithAction
42
+ text={actionText}
43
+ action={action}
44
+ variant="smallGhost"
45
+ extraStyles="span {font-size: 12px;}"
46
+ />
47
+ </Box>
48
+ )}
49
+ </Box>
50
+ </Module>
47
51
  {isMobile && (
48
52
  <Box
49
53
  padding="0"