@web3jskit/walletkit 0.0.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/README.md +1 -0
- package/dist/package.json +42 -0
- package/dist/src/assets/svg/dataBase.d.ts +6 -0
- package/dist/src/assets/svg/dataBase.js +7 -0
- package/dist/src/assets/svg/dataBase.js.map +1 -0
- package/dist/src/assets/svg/metaMaskWallet.d.ts +1 -0
- package/dist/src/assets/svg/metaMaskWallet.js +35 -0
- package/dist/src/assets/svg/metaMaskWallet.js.map +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.d.ts +1 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js +12 -0
- package/dist/src/components/ConnectButton/ConnectedInfo.js.map +1 -0
- package/dist/src/components/ConnectButton/index.d.ts +8 -0
- package/dist/src/components/ConnectButton/index.js +15 -0
- package/dist/src/components/ConnectButton/index.js.map +1 -0
- package/dist/src/components/Connecting/index.d.ts +5 -0
- package/dist/src/components/Connecting/index.js +10 -0
- package/dist/src/components/Connecting/index.js.map +1 -0
- package/dist/src/components/Connecting/style.d.ts +2 -0
- package/dist/src/components/Connecting/style.js +52 -0
- package/dist/src/components/Connecting/style.js.map +1 -0
- package/dist/src/components/GetWallet/index.d.ts +6 -0
- package/dist/src/components/GetWallet/index.js +38 -0
- package/dist/src/components/GetWallet/index.js.map +1 -0
- package/dist/src/components/GetWallet/style.d.ts +2 -0
- package/dist/src/components/GetWallet/style.js +115 -0
- package/dist/src/components/GetWallet/style.js.map +1 -0
- package/dist/src/components/Header/ModalHeader.d.ts +7 -0
- package/dist/src/components/Header/ModalHeader.js +10 -0
- package/dist/src/components/Header/ModalHeader.js.map +1 -0
- package/dist/src/components/Header/style.d.ts +2 -0
- package/dist/src/components/Header/style.js +73 -0
- package/dist/src/components/Header/style.js.map +1 -0
- package/dist/src/components/Icon/index.d.ts +23 -0
- package/dist/src/components/Icon/index.js +47 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Introduce/index.d.ts +5 -0
- package/dist/src/components/Introduce/index.js +9 -0
- package/dist/src/components/Introduce/index.js.map +1 -0
- package/dist/src/components/Introduce/style.d.ts +2 -0
- package/dist/src/components/Introduce/style.js +72 -0
- package/dist/src/components/Introduce/style.js.map +1 -0
- package/dist/src/components/Modal/ConnectModal.d.ts +8 -0
- package/dist/src/components/Modal/ConnectModal.js +82 -0
- package/dist/src/components/Modal/ConnectModal.js.map +1 -0
- package/dist/src/components/Modal/WalletInfoModal.d.ts +5 -0
- package/dist/src/components/Modal/WalletInfoModal.js +40 -0
- package/dist/src/components/Modal/WalletInfoModal.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +12 -0
- package/dist/src/components/Modal/index.js +53 -0
- package/dist/src/components/Modal/index.js.map +1 -0
- package/dist/src/components/Modal/style.d.ts +5 -0
- package/dist/src/components/Modal/style.js +156 -0
- package/dist/src/components/Modal/style.js.map +1 -0
- package/dist/src/components/SVGs/backArrowSvg.d.ts +2 -0
- package/dist/src/components/SVGs/backArrowSvg.js +4 -0
- package/dist/src/components/SVGs/backArrowSvg.js.map +1 -0
- package/dist/src/components/SVGs/closeSvg.d.ts +2 -0
- package/dist/src/components/SVGs/closeSvg.js +4 -0
- package/dist/src/components/SVGs/closeSvg.js.map +1 -0
- package/dist/src/components/SVGs/copiedSvg.d.ts +2 -0
- package/dist/src/components/SVGs/copiedSvg.js +4 -0
- package/dist/src/components/SVGs/copiedSvg.js.map +1 -0
- package/dist/src/components/SVGs/copySvg.d.ts +2 -0
- package/dist/src/components/SVGs/copySvg.js +4 -0
- package/dist/src/components/SVGs/copySvg.js.map +1 -0
- package/dist/src/components/SVGs/exitSvg.d.ts +2 -0
- package/dist/src/components/SVGs/exitSvg.js +4 -0
- package/dist/src/components/SVGs/exitSvg.js.map +1 -0
- package/dist/src/components/SVGs/metamaskQrCode.d.ts +2 -0
- package/dist/src/components/SVGs/metamaskQrCode.js +4 -0
- package/dist/src/components/SVGs/metamaskQrCode.js.map +1 -0
- package/dist/src/components/SVGs/spinSvg.d.ts +4 -0
- package/dist/src/components/SVGs/spinSvg.js +4 -0
- package/dist/src/components/SVGs/spinSvg.js.map +1 -0
- package/dist/src/components/Text/index.d.ts +18 -0
- package/dist/src/components/Text/index.js +23 -0
- package/dist/src/components/Text/index.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +9 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js +21 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.d.ts +13 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js +41 -0
- package/dist/src/components/WalletKitProvider/I18nProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.d.ts +8 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js +12 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/index.d.ts +11 -0
- package/dist/src/components/WalletKitProvider/index.js +14 -0
- package/dist/src/components/WalletKitProvider/index.js.map +1 -0
- package/dist/src/components/WalletList/index.d.ts +7 -0
- package/dist/src/components/WalletList/index.js +9 -0
- package/dist/src/components/WalletList/index.js.map +1 -0
- package/dist/src/components/WalletList/style.d.ts +2 -0
- package/dist/src/components/WalletList/style.js +101 -0
- package/dist/src/components/WalletList/style.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/index.d.ts +10 -0
- package/dist/src/components/WalletTriggerButton/index.js +27 -0
- package/dist/src/components/WalletTriggerButton/index.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/style.d.ts +2 -0
- package/dist/src/components/WalletTriggerButton/style.js +50 -0
- package/dist/src/components/WalletTriggerButton/style.js.map +1 -0
- package/dist/src/hooks/useWalletKit.d.ts +6 -0
- package/dist/src/hooks/useWalletKit.js +20 -0
- package/dist/src/hooks/useWalletKit.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/locals/i18n.d.ts +2 -0
- package/dist/src/locals/i18n.js +17 -0
- package/dist/src/locals/i18n.js.map +1 -0
- package/dist/src/locals/languages/en.json +27 -0
- package/dist/src/locals/languages/zh.json +27 -0
- package/dist/src/locals/resources.d.ts +60 -0
- package/dist/src/locals/resources.js +11 -0
- package/dist/src/locals/resources.js.map +1 -0
- package/dist/src/stores/SlotsWalletStore.d.ts +18 -0
- package/dist/src/stores/SlotsWalletStore.js +33 -0
- package/dist/src/stores/SlotsWalletStore.js.map +1 -0
- package/dist/src/stores/index.d.ts +34 -0
- package/dist/src/stores/index.js +41 -0
- package/dist/src/stores/index.js.map +1 -0
- package/dist/src/styled/index.d.ts +17 -0
- package/dist/src/styled/index.js +76 -0
- package/dist/src/styled/index.js.map +1 -0
- package/dist/src/test/getwalletprovider.test.d.ts +1 -0
- package/dist/src/test/getwalletprovider.test.js +10 -0
- package/dist/src/test/getwalletprovider.test.js.map +1 -0
- package/dist/src/test/setup.d.ts +1 -0
- package/dist/src/test/setup.js +7 -0
- package/dist/src/test/setup.js.map +1 -0
- package/dist/src/theme/index.d.ts +53 -0
- package/dist/src/theme/index.js +92 -0
- package/dist/src/theme/index.js.map +1 -0
- package/dist/src/types/configType.d.ts +2 -0
- package/dist/src/types/configType.js +2 -0
- package/dist/src/types/configType.js.map +1 -0
- package/dist/src/types/slotsType.d.ts +23 -0
- package/dist/src/types/slotsType.js +2 -0
- package/dist/src/types/slotsType.js.map +1 -0
- package/dist/src/utils/formatter.d.ts +1 -0
- package/dist/src/utils/formatter.js +6 -0
- package/dist/src/utils/formatter.js.map +1 -0
- package/dist/src/utils/generateAvatar.d.ts +4 -0
- package/dist/src/utils/generateAvatar.js +32 -0
- package/dist/src/utils/generateAvatar.js.map +1 -0
- package/dist/src/wallets/GelWallet/index.d.ts +0 -0
- package/dist/src/wallets/GelWallet/index.js +2 -0
- package/dist/src/wallets/GelWallet/index.js.map +1 -0
- package/dist/src/wallets/SlotsWallets/index.d.ts +3 -0
- package/dist/src/wallets/SlotsWallets/index.js +26 -0
- package/dist/src/wallets/SlotsWallets/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +42 -0
- package/src/assets/svg/dataBase.ts +17 -0
- package/src/assets/svg/metaMaskWallet.ts +35 -0
- package/src/components/ConnectButton/ConnectedInfo.tsx +17 -0
- package/src/components/ConnectButton/index.tsx +41 -0
- package/src/components/Connecting/index.tsx +26 -0
- package/src/components/Connecting/style.ts +53 -0
- package/src/components/GetWallet/index.tsx +88 -0
- package/src/components/GetWallet/style.ts +116 -0
- package/src/components/Header/ModalHeader.tsx +24 -0
- package/src/components/Header/style.ts +74 -0
- package/src/components/Icon/index.tsx +120 -0
- package/src/components/Introduce/index.tsx +30 -0
- package/src/components/Introduce/style.ts +73 -0
- package/src/components/Modal/ConnectModal.tsx +131 -0
- package/src/components/Modal/WalletInfoModal.tsx +82 -0
- package/src/components/Modal/index.tsx +80 -0
- package/src/components/Modal/style.ts +160 -0
- package/src/components/SVGs/backArrowSvg.tsx +10 -0
- package/src/components/SVGs/closeSvg.tsx +11 -0
- package/src/components/SVGs/copiedSvg.tsx +11 -0
- package/src/components/SVGs/copySvg.tsx +11 -0
- package/src/components/SVGs/exitSvg.tsx +11 -0
- package/src/components/SVGs/metamaskQrCode.tsx +393 -0
- package/src/components/SVGs/spinSvg.tsx +10 -0
- package/src/components/Text/index.tsx +59 -0
- package/src/components/WalletKitProvider/ChainProvider.tsx +34 -0
- package/src/components/WalletKitProvider/I18nProvider.tsx +52 -0
- package/src/components/WalletKitProvider/ThemeProvider.tsx +16 -0
- package/src/components/WalletKitProvider/index.tsx +40 -0
- package/src/components/WalletList/index.tsx +35 -0
- package/src/components/WalletList/style.ts +101 -0
- package/src/components/WalletTriggerButton/index.tsx +50 -0
- package/src/components/WalletTriggerButton/style.ts +51 -0
- package/src/default.d.ts +18 -0
- package/src/hooks/useWalletKit.ts +38 -0
- package/src/index.ts +8 -0
- package/src/locals/i18n.ts +19 -0
- package/src/locals/languages/en.json +27 -0
- package/src/locals/languages/zh.json +27 -0
- package/src/locals/resources.ts +11 -0
- package/src/stores/SlotsWalletStore.ts +48 -0
- package/src/stores/index.ts +74 -0
- package/src/styled/index.ts +79 -0
- package/src/test/getwalletprovider.test.ts +9 -0
- package/src/test/setup.ts +7 -0
- package/src/theme/index.ts +93 -0
- package/src/theme/styled.d.ts +30 -0
- package/src/types/configType.ts +2 -0
- package/src/types/slotsType.ts +23 -0
- package/src/utils/formatter.ts +4 -0
- package/src/utils/generateAvatar.ts +35 -0
- package/src/wallets/GelWallet/index.ts +0 -0
- package/src/wallets/SlotsWallets/index.ts +30 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +55 -0
- package/vitest.config.ts +10 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { styled } from 'styled-components';
|
|
2
|
+
const ModalHeaderBox = styled.div `
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 56px;
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
|
|
11
|
+
.backBtn {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
margin-left: 16px;
|
|
14
|
+
|
|
15
|
+
path {
|
|
16
|
+
fill: ${({ theme }) => theme.backArrowColor};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.title {
|
|
21
|
+
color: ${({ theme }) => theme.textColor};
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
line-height: 170%;
|
|
25
|
+
letter-spacing: 0.3px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.closeBtn {
|
|
29
|
+
margin-right: 16px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 24px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
border-radius: 12px;
|
|
37
|
+
transition: all 0.2s;
|
|
38
|
+
color: ${({ theme }) => theme.closeBtnColor};
|
|
39
|
+
transform-origin: 50% 50%;
|
|
40
|
+
background-color: ${({ theme }) => theme.closeBtnBg};
|
|
41
|
+
z-index: 1;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
background-color: ${({ theme }) => theme.closeBtnHoverBg};
|
|
45
|
+
transform: rotate(180deg);
|
|
46
|
+
transition: all 0.2s;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.asideTitle {
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
|
|
53
|
+
.closeBtn {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (max-width: 768px) {
|
|
59
|
+
&.mainTitle {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.asideTitle {
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
|
|
66
|
+
.closeBtn {
|
|
67
|
+
display: flex;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
export default ModalHeaderBox;
|
|
73
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/Header/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;WActB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc;;;;;WAKnC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;WAiB9B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa;;sBAEvB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;uBAI9B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconImageArg {
|
|
3
|
+
src: any;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
isRadius?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
interface FoldIconImageArg {
|
|
11
|
+
src: Array<string>;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
height?: number | string;
|
|
14
|
+
offset?: number;
|
|
15
|
+
proportion?: number;
|
|
16
|
+
className?: string;
|
|
17
|
+
isRadius?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const Icon: React.FC<IconImageArg>;
|
|
20
|
+
export declare const Image: React.FC<IconImageArg>;
|
|
21
|
+
export declare const FoldIconBox: React.FC<FoldIconImageArg>;
|
|
22
|
+
export declare const FoldIconBoxBig: React.FC<FoldIconImageArg>;
|
|
23
|
+
export default Icon;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
|
+
const IconImage = styled.img `
|
|
5
|
+
display: block;
|
|
6
|
+
transition: all 0.2s;
|
|
7
|
+
`;
|
|
8
|
+
const IconImageBox = styled.div `
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
`;
|
|
13
|
+
const IconItem = styled.div `
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
float: left;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-items: center;
|
|
18
|
+
`;
|
|
19
|
+
export const Icon = ({ src, width, height, className }) => {
|
|
20
|
+
return (_jsx(IconImage, { className: className, src: src, width: width ? width + 'px' : '24px', height: height ? height + 'px' : '24px' }));
|
|
21
|
+
};
|
|
22
|
+
export const Image = ({ src, width, height, isRadius = true, className, borderRadius }) => {
|
|
23
|
+
return (_jsx(IconImage, { className: className, src: src, width: width ? width : 'auto', height: height ? height : 'auto', style: { borderRadius: borderRadius ? borderRadius : isRadius ? '50%' : '0' } }));
|
|
24
|
+
};
|
|
25
|
+
export const FoldIconBox = ({ src, width, height, offset = 0, isRadius = true }) => {
|
|
26
|
+
return (_jsx(IconImageBox, { children: src.map((item, index) => {
|
|
27
|
+
return (_jsx(IconItem, { style: {
|
|
28
|
+
zIndex: index + 1,
|
|
29
|
+
marginLeft: index == 0 ? '0px' : offset + 'px',
|
|
30
|
+
width: width ? width + 'px' : '24px',
|
|
31
|
+
height: height ? height + 'px' : '24px'
|
|
32
|
+
}, children: _jsx(IconImage, { src: item, width: width ? width : 24, height: height ? height : 24, style: { borderRadius: isRadius ? '50%' : '0' } }) }, index));
|
|
33
|
+
}) }));
|
|
34
|
+
};
|
|
35
|
+
export const FoldIconBoxBig = ({ src, width, height, offset = 0, proportion = 1 }) => {
|
|
36
|
+
return (_jsx(IconImageBox, { children: src.map((item, index) => {
|
|
37
|
+
return (_jsx(IconItem, { style: {
|
|
38
|
+
zIndex: index + 1,
|
|
39
|
+
marginLeft: index == 0 ? '0px' : offset + 'px',
|
|
40
|
+
marginTop: index == 0 ? '0px' : -(offset / 2) + 'px',
|
|
41
|
+
width: width ? width + 'px' : '24px',
|
|
42
|
+
height: height ? height + 'px' : '24px'
|
|
43
|
+
}, children: index === src.length - 1 ? (_jsx(IconImage, { src: item, width: width ? Number(width) * proportion : 24 * proportion, height: height ? Number(height) * proportion : 24 * proportion })) : (_jsx(IconImage, { src: item, width: width ? width : 24, height: height ? height : 24 })) }, index));
|
|
44
|
+
}) }));
|
|
45
|
+
};
|
|
46
|
+
export default Icon;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Icon/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAqB3C,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG3B,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAI9B,CAAC;AACF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAA2B,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE;IACjF,OAAO,CACN,KAAC,SAAS,IACT,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,EACpC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,GACtC,CACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA2B,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE;IACjH,OAAO,CACN,KAAC,SAAS,IACT,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAC7B,MAAM,EAAE,MAAM,CAAC,CAAC,CA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I,CACjF,IAjBI,KAAK,CAkBA,CACX,CAAC;QACH,CAAC,CAAC,GACY,CACf,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
4
|
+
import IntroduceContainer from './style';
|
|
5
|
+
export function Introduce({ onGetWallet }) {
|
|
6
|
+
const { t } = useTranslation();
|
|
7
|
+
return (_jsxs(_Fragment, { children: [_jsx(ModalHeader, { className: "mainTitle" }), _jsxs(IntroduceContainer, { children: [_jsx("div", { className: "title", children: t('introduceQuestion') }), _jsx("div", { className: "introduce", children: t('introduceAnswer') }), _jsx("div", { className: "detail", children: t('introduceDetail') }), _jsx("div", { className: "footer", children: _jsx("div", { className: "button", onClick: () => onGetWallet?.(), children: t('getWallet') }) })] })] }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Introduce/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,kBAAkB,MAAM,SAAS,CAAC;AAMzC,MAAM,UAAU,SAAS,CAAC,EAAE,WAAW,EAAkB;IACxD,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,CACN,8BACC,KAAC,WAAW,IAAC,SAAS,EAAC,WAAW,GAAG,EACrC,MAAC,kBAAkB,eAClB,cAAK,SAAS,EAAC,OAAO,YAAE,CAAC,CAAC,mBAAmB,CAAC,GAAO,EACrD,cAAK,SAAS,EAAC,WAAW,YAAE,CAAC,CAAC,iBAAiB,CAAC,GAAO,EACvD,cAAK,SAAS,EAAC,QAAQ,YAAE,CAAC,CAAC,iBAAiB,CAAC,GAAO,EACpD,cAAK,SAAS,EAAC,QAAQ,YACtB,cAAK,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,YACpD,CAAC,CAAC,WAAW,CAAC,GACV,GAID,IACc,IACnB,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const IntroduceContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export default IntroduceContainer;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { styled } from 'styled-components';
|
|
2
|
+
const IntroduceContainer = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
margin: 84px 50px 0 96px;
|
|
6
|
+
font-family: Manrope;
|
|
7
|
+
color: ${({ theme }) => theme.textColor1};
|
|
8
|
+
|
|
9
|
+
.title {
|
|
10
|
+
color: ${({ theme }) => theme.blue};
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
line-height: 18px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.introduce {
|
|
17
|
+
margin-top: 24px;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
line-height: 14px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.detail {
|
|
24
|
+
margin-top: 16px;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
line-height: 14px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.footer {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
max-width: 120px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.button {
|
|
38
|
+
width: 100%;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
margin-top: 32px;
|
|
41
|
+
padding: 11px 16px;
|
|
42
|
+
color: ${({ theme }) => theme.buttonColor};
|
|
43
|
+
background: ${({ theme }) => theme.buttonBg};
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
line-height: 14px;
|
|
47
|
+
text-align: center;
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.more {
|
|
54
|
+
margin-top: 8px;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (max-width: 768px) {
|
|
62
|
+
padding: 40px 32px 0;
|
|
63
|
+
margin: 0;
|
|
64
|
+
align-items: center;
|
|
65
|
+
|
|
66
|
+
.detail {
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
export default IntroduceContainer;
|
|
72
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/Introduce/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;UAK3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;WAG9B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgCzB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;gBAC3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
3
|
+
import Modal from './index';
|
|
4
|
+
import { SlotWrapper } from '../../styled';
|
|
5
|
+
import { SupportWallets } from '@web3jskit/wallethelper';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
8
|
+
import { WalletTriggerButton } from '../WalletTriggerButton';
|
|
9
|
+
import { Introduce } from '../Introduce';
|
|
10
|
+
import { WalletList } from '../WalletList';
|
|
11
|
+
import { GetWallet } from '../GetWallet';
|
|
12
|
+
import { Connecting } from '../Connecting';
|
|
13
|
+
import { useWalletKit } from '../../hooks/useWalletKit';
|
|
14
|
+
import { AsideList, ModalAside, ModalContainer, ModalMain } from './style';
|
|
15
|
+
var Step;
|
|
16
|
+
(function (Step) {
|
|
17
|
+
Step[Step["Introduce"] = 0] = "Introduce";
|
|
18
|
+
Step[Step["WalletList"] = 1] = "WalletList";
|
|
19
|
+
Step[Step["GetWallet"] = 2] = "GetWallet";
|
|
20
|
+
Step[Step["Connecting"] = 3] = "Connecting";
|
|
21
|
+
})(Step || (Step = {}));
|
|
22
|
+
export function ConnectModal({ isOpen, slots }) {
|
|
23
|
+
const { t } = useTranslation();
|
|
24
|
+
const { currentChain, getConnectors, currentConnector, connectStatus, closeModal } = useWalletKit();
|
|
25
|
+
const [step, setStep] = useState(Step.Introduce);
|
|
26
|
+
const [selectedWallet, setSelectedWallet] = useState(null);
|
|
27
|
+
const [connectors, setConnectors] = useState([]);
|
|
28
|
+
const requestConnectors = async () => {
|
|
29
|
+
const list = await getConnectors(currentChain);
|
|
30
|
+
setConnectors(list);
|
|
31
|
+
};
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (isOpen) {
|
|
34
|
+
requestConnectors();
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
setStep(0);
|
|
38
|
+
setConnectors([]);
|
|
39
|
+
}
|
|
40
|
+
}, [isOpen, currentChain]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
switch (connectStatus) {
|
|
43
|
+
case 'connected':
|
|
44
|
+
closeModal();
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
setStep(0);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}, [connectStatus]);
|
|
51
|
+
const renderMainByStep = useCallback(() => {
|
|
52
|
+
switch (step) {
|
|
53
|
+
case 0:
|
|
54
|
+
return (_jsx(Introduce, { onGetWallet: () => {
|
|
55
|
+
setStep(Step.WalletList);
|
|
56
|
+
} }));
|
|
57
|
+
case 1:
|
|
58
|
+
return (_jsx(WalletList, { list: SupportWallets, onBack: () => {
|
|
59
|
+
setStep(0);
|
|
60
|
+
}, onGetWallet: wallet => {
|
|
61
|
+
if (wallet.name === 'GelWallet') {
|
|
62
|
+
window.open('https://gelwallet.com', '_blank');
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
setSelectedWallet(wallet);
|
|
66
|
+
setStep(Step.GetWallet);
|
|
67
|
+
} }));
|
|
68
|
+
case 2:
|
|
69
|
+
return (_jsx(GetWallet, { wallet: selectedWallet, onBack: () => {
|
|
70
|
+
setStep(Step.WalletList);
|
|
71
|
+
} }));
|
|
72
|
+
default:
|
|
73
|
+
return _jsx(_Fragment, {});
|
|
74
|
+
}
|
|
75
|
+
}, [step]);
|
|
76
|
+
return (_jsx(Modal, { isOpen: isOpen, children: _jsxs(ModalContainer, { children: [_jsxs(ModalAside, { className: step !== 0 ? 'hidden' : '', children: [_jsx(ModalHeader, { title: t('connectWallet'), className: "asideTitle" }), _jsxs(AsideList, { children: [connectors.length ? (connectors.map((connector, index) => {
|
|
77
|
+
return _jsx(WalletTriggerButton, { connector: connector }, index);
|
|
78
|
+
})) : (_jsx(_Fragment, {})), slots ? (slots.map((Slot, index) => {
|
|
79
|
+
return _jsx(SlotWrapper, { children: Slot }, index);
|
|
80
|
+
})) : (_jsx(_Fragment, {}))] })] }), _jsx(ModalMain, { children: connectStatus === 'connecting' ? _jsx(Connecting, { wallet: currentConnector }) : renderMainByStep() })] }) }));
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=ConnectModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectModal.js","sourceRoot":"","sources":["../../../../src/components/Modal/ConnectModal.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQ3E,IAAK,IAKJ;AALD,WAAK,IAAI;IACR,yCAAa,CAAA;IACb,2CAAc,CAAA;IACd,yC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U,CAAC,GAAG,CAAC,CAAC,SAAc,EAAE,KAAa,EAAE,EAAE;oCAChD,OAAO,KAAC,mBAAmB,IAAa,SAAS,EAAE,SAAS,IAA3B,KAAK,CAA0B,CAAC;gCAClE,CAAC,CAAC,CACF,CAAC,CAAC,CAAC,CACH,mBAAK,CACL,EACA,KAAK,CAAC,CAAC,CAAC,CACR,KAAK,CAAC,GAAG,CAAC,CAAC,IAAe,EAAE,KAAa,EAAE,EAAE;oCAC5C,OAAO,KAAC,WAAW,cAAc,IAAI,IAAZ,KAAK,CAAsB,CAAC;gCACtD,CAAC,CAAC,CACF,CAAC,CAAC,CAAC,CACH,mBAAK,CACL,IACU,IACA,EACb,KAAC,SAAS,cACR,aAAa,KAAK,YAAY,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,MAAM,EAAE,gBAAgB,GAAI,CAAC,CAAC,CAAC,gBAAgB,EAAE,GACpF,IACI,GACV,CACR,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Modal from './index';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
5
|
+
import { useWalletKit } from '../../hooks/useWalletKit';
|
|
6
|
+
import { formatAddress } from '../../utils/formatter';
|
|
7
|
+
import { InfoModalContainer } from './style';
|
|
8
|
+
import CopySvg from '../SVGs/copySvg';
|
|
9
|
+
import CopiedSvg from '../SVGs/copiedSvg';
|
|
10
|
+
import ExitSvg from '../SVGs/exitSvg';
|
|
11
|
+
import copyToClipboard from 'copy-to-clipboard';
|
|
12
|
+
import { useEffect, useState } from 'react';
|
|
13
|
+
import { generateRandomAvatar } from '../../utils/generateAvatar';
|
|
14
|
+
export function WalletInfoModal({ isOpen }) {
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
const { walletAddress, closeModal, currentConnector, avatar, setAvatar } = useWalletKit();
|
|
17
|
+
const [copied, setCopied] = useState(false);
|
|
18
|
+
const generateAvatar = () => {
|
|
19
|
+
const newAvatar = generateRandomAvatar();
|
|
20
|
+
setAvatar(newAvatar);
|
|
21
|
+
};
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
generateAvatar();
|
|
24
|
+
}, []);
|
|
25
|
+
return (_jsx(Modal, { isOpen: isOpen, children: _jsxs(InfoModalContainer, { children: [_jsx(ModalHeader, {}), _jsx("div", { className: "avatarBox", onClick: () => generateAvatar(), children: _jsx("div", { className: "avatar", style: {
|
|
26
|
+
backgroundColor: avatar?.bg
|
|
27
|
+
}, children: avatar?.text }) }), _jsx("div", { className: "accountInfo", children: _jsx("div", { className: "address", children: formatAddress(walletAddress) }) }), _jsxs("div", { className: "btnGroup", children: [_jsxs("div", { className: "button", onClick: () => {
|
|
28
|
+
copyToClipboard(walletAddress);
|
|
29
|
+
if (copied)
|
|
30
|
+
return;
|
|
31
|
+
setCopied(true);
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
setCopied(false);
|
|
34
|
+
}, 1000);
|
|
35
|
+
}, children: [_jsx("div", { className: "btnIcon", children: copied ? _jsx(CopiedSvg, {}) : _jsx(CopySvg, {}) }), _jsx("div", { className: "btnText", children: t(copied ? 'copied' : 'copyAddress') })] }), _jsxs("div", { className: "button", onClick: () => {
|
|
36
|
+
currentConnector?.disconnect();
|
|
37
|
+
closeModal();
|
|
38
|
+
}, children: [_jsx("div", { className: "btnIcon", children: _jsx(ExitSvg, {}) }), _jsx("div", { className: "btnText", children: t('disConnect') })] })] })] }) }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=WalletInfoModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletInfoModal.js","sourceRoot":"","sources":["../../../../src/components/Modal/WalletInfoModal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,C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AAE,EAAE;yBAC3B,YAEA,MAAM,EAAE,IAAI,GACR,GACD,EACN,cAAK,SAAS,EAAC,aAAa,YAC3B,cAAK,SAAS,EAAC,SAAS,YAAE,aAAa,CAAC,aAAa,CAAC,GAAO,GAExD,EACN,eAAK,SAAS,EAAC,UAAU,aACxB,eACC,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;gCACb,eAAe,CAAC,aAAa,CAAC,CAAC;gCAC/B,IAAI,MAAM;oCAAE,OAAO;gCACnB,SAAS,CAAC,IAAI,CAAC,CAAC;gCAChB,UAAU,CAAC,GAAG,EAAE;oCACf,SAAS,CAAC,KAAK,CAAC,CAAC;gCAClB,CAAC,EAAE,IAAI,CAAC,CAAC;4BACV,CAAC,aAED,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,KAAC,OAAO,KAAG,GAAO,EACrE,cAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,GAAO,IAChE,EACN,eACC,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE;gCACb,gBAAgB,EAAE,UAAU,EAAE,CAAC;gCAC/B,UAAU,EAAE,CAAC;4BACd,CAAC,aAED,cAAK,SAAS,EAAC,SAAS,YACvB,KAAC,OAAO,KAAG,GACN,EACN,cAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,YAAY,CAAC,GAAO,IAC3C,IACD,IACc,GACd,CACR,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
|
+
import '@reach/dialog/styles.css';
|
|
3
|
+
interface ModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
minHeight?: number | false;
|
|
6
|
+
maxHeight?: number;
|
|
7
|
+
initialFocusRef?: RefObject<any>;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
closeAble?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function Modal({ isOpen, children, closeAble }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import {} from 'react';
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
|
+
import { animated, useTransition } from '@react-spring/web';
|
|
5
|
+
import { DialogOverlay, DialogContent } from '@reach/dialog';
|
|
6
|
+
import '@reach/dialog/styles.css';
|
|
7
|
+
import { useWalletKit } from '../../hooks/useWalletKit';
|
|
8
|
+
const AnimatedDialogOverlay = animated(DialogOverlay);
|
|
9
|
+
const AnimatedDialogContent = animated(DialogContent);
|
|
10
|
+
const StyledDialogOverlay = styled(AnimatedDialogOverlay) `
|
|
11
|
+
&[data-reach-dialog-overlay] {
|
|
12
|
+
width: 100vw;
|
|
13
|
+
z-index: 99;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
const StyledDialogContent = styled(({ ...rest }) => _jsx(AnimatedDialogContent, { ...rest })).attrs({
|
|
17
|
+
'aria-label': 'dialog'
|
|
18
|
+
}) `
|
|
19
|
+
position: fixed;
|
|
20
|
+
left: 50%;
|
|
21
|
+
bottom: 50%;
|
|
22
|
+
transform: translate(-50%, 50%);
|
|
23
|
+
border-radius: 12px;
|
|
24
|
+
box-shadow: rgb(47 128 237 / 5%) 0 4px 8px 0;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
align-self: center;
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
outline: none;
|
|
30
|
+
width: auto;
|
|
31
|
+
background-color: ${({ theme }) => theme.modalBg};
|
|
32
|
+
|
|
33
|
+
@media (max-width: 768px) {
|
|
34
|
+
left: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
transform: none;
|
|
37
|
+
border-bottom-right-radius: 0;
|
|
38
|
+
border-bottom-left-radius: 0;
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
export default function Modal({ isOpen, children, closeAble = true }) {
|
|
42
|
+
const transitions = useTransition(isOpen, {
|
|
43
|
+
from: { opacity: 0 },
|
|
44
|
+
enter: { opacity: 1 },
|
|
45
|
+
leave: { opacity: 0 },
|
|
46
|
+
config: { duration: 150 }
|
|
47
|
+
});
|
|
48
|
+
const { closeModal } = useWalletKit();
|
|
49
|
+
return (_jsx(_Fragment, { children: transitions((styles, item) => {
|
|
50
|
+
return (item && (_jsx(StyledDialogOverlay, { style: { opacity: styles.opacity }, onDismiss: closeAble ? closeModal : () => { }, isOpen: isOpen, children: _jsx(StyledDialogContent, { className: 'dialog-content-style', children: children }) })));
|
|
51
|
+
}) }));
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAEtD,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAGtD,MAAM,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;;;;;CAKxD,CAAC;AAEF,MAAM,mBAAmB,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,KAAC,qBAAqB,OAAK,IAAI,GAAI,CAAC,CAAC,KAAK,CAAC;IAC9F,YAAY,EAAE,QAAQ;CACtB,CAAC,CAAA;;;;;;;;;;;;;qBAamB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;;;;;;;;;CAShD,CAAC;AAWF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,EAAc;IAC/E,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,EAAE;QACzC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;QACpB,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;QACrB,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;QACrB,MAAM,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;KACzB,CAAC,CAAC;IACH,MAAM,EAAE,UAAU,EAAE,GAAG,YAAY,EAAE,CAAC;IACtC,OAAO,CACN,4BACE,WAAW,CAAC,CAAC,MAAW,EAAE,IAAS,EAAE,EAAE;YACvC,OAAO,CACN,IAAI,IAAI,CACP,KAAC,mBAAmB,IACnB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,EAClC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,EAC5C,MAAM,EAAE,MAAM,YAEd,KAAC,mBAAmB,IAAC,SAAS,EAAE,sBAAsB,YAAG,QAAQ,GAAuB,GACnE,CACtB,CACD,CAAC;QACH,CAAC,CAAC,GACA,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const ModalAside: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const AsideList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const ModalMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const InfoModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { styled } from 'styled-components';
|
|
2
|
+
export const ModalContainer = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 720px;
|
|
5
|
+
height: 506px;
|
|
6
|
+
|
|
7
|
+
@media (max-width: 768px) {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 100vw;
|
|
10
|
+
height: 454px;
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
export const ModalAside = styled.div `
|
|
14
|
+
width: 200px;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
border-right: 1px solid ${({ theme }) => theme.borderColor};
|
|
18
|
+
padding-top: 16px;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
|
|
21
|
+
@media (max-width: 768px) {
|
|
22
|
+
width: 100%;
|
|
23
|
+
border-right: none;
|
|
24
|
+
padding-top: 0;
|
|
25
|
+
padding-bottom: 24px;
|
|
26
|
+
background-color: ${({ theme }) => theme.modalSideBg};
|
|
27
|
+
|
|
28
|
+
&.hidden {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export const AsideList = styled.div `
|
|
34
|
+
overflow: auto;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 16px;
|
|
38
|
+
padding: 0 20px;
|
|
39
|
+
|
|
40
|
+
@media (max-width: 768px) {
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
|
|
43
|
+
// &::-webkit-scrollbar {
|
|
44
|
+
// display: none;
|
|
45
|
+
// }
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
export const ModalMain = styled.div `
|
|
49
|
+
flex: 1;
|
|
50
|
+
height: 100%;
|
|
51
|
+
`;
|
|
52
|
+
export const InfoModalContainer = styled.div `
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
align-items: center;
|
|
56
|
+
width: 360px;
|
|
57
|
+
height: 240px;
|
|
58
|
+
text-align: center;
|
|
59
|
+
|
|
60
|
+
.avatarBox {
|
|
61
|
+
margin-top: -28px;
|
|
62
|
+
font-size: 41px;
|
|
63
|
+
|
|
64
|
+
.avatar {
|
|
65
|
+
width: 74px;
|
|
66
|
+
height: 74px;
|
|
67
|
+
line-height: 74px;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
user-select: none;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.accountInfo {
|
|
75
|
+
margin-top: 12px;
|
|
76
|
+
color: ${({ theme }) => theme.textColor};
|
|
77
|
+
|
|
78
|
+
.address {
|
|
79
|
+
font-size: 18px;
|
|
80
|
+
font-weight: 800;
|
|
81
|
+
line-height: 24px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tokenAmount {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
line-height: 18px;
|
|
88
|
+
color: ${({ theme }) => theme.textColor3};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.btnGroup {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: 8px;
|
|
95
|
+
margin-top: 16px;
|
|
96
|
+
width: 100%;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
padding: 0 16px 16px;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
|
|
101
|
+
.button {
|
|
102
|
+
padding: 8px;
|
|
103
|
+
color: ${({ theme }) => theme.textColor};
|
|
104
|
+
width: 100%;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
align-items: center;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
border-radius: 12px;
|
|
110
|
+
background-color: ${({ theme }) => theme.infoBtnBg};
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
background-color: ${({ theme }) => theme.infoBtnHoverBg};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.btnIcon {
|
|
118
|
+
height: 18px;
|
|
119
|
+
}
|
|
120
|
+
.btnText {
|
|
121
|
+
font-size: 13px;
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
line-height: 18px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (max-width: 768px) {
|
|
128
|
+
width: 100vw;
|
|
129
|
+
height: 280px;
|
|
130
|
+
|
|
131
|
+
.avatarBox {
|
|
132
|
+
margin-top: -4px;
|
|
133
|
+
font-size: 45px;
|
|
134
|
+
|
|
135
|
+
.avatar {
|
|
136
|
+
width: 82px;
|
|
137
|
+
height: 82px;
|
|
138
|
+
line-height: 82px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.accountInfo {
|
|
143
|
+
margin-top: 16px;
|
|
144
|
+
|
|
145
|
+
.address {
|
|
146
|
+
font-size: 20px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.tokenAmount {
|
|
150
|
+
font-size: 16px;
|
|
151
|
+
line-height: 20px;
|
|
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