@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/dist/index.cjs.js +417 -413
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +417 -413
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/wallet-name/WalletName.js +27 -23
package/package.json
CHANGED
|
@@ -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
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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"
|