@web3jskit/walletkit 0.1.6 → 0.1.8
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/package.json +46 -0
- package/dist/src/assets/svg/dataBase.d.ts +4 -0
- package/dist/src/assets/svg/dataBase.js +5 -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 +13 -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 +16 -0
- package/dist/src/components/ConnectButton/index.js.map +1 -0
- package/dist/src/components/Connecting/index.d.ts +6 -0
- package/dist/src/components/Connecting/index.js +11 -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 +7 -0
- package/dist/src/components/GetWallet/index.js +21 -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 +117 -0
- package/dist/src/components/GetWallet/style.js.map +1 -0
- package/dist/src/components/Header/ModalHeader.d.ts +8 -0
- package/dist/src/components/Header/ModalHeader.js +9 -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 +74 -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 +48 -0
- package/dist/src/components/Icon/index.js.map +1 -0
- package/dist/src/components/Introduce/index.d.ts +6 -0
- package/dist/src/components/Introduce/index.js +11 -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 +97 -0
- package/dist/src/components/Introduce/style.js.map +1 -0
- package/dist/src/components/Modal/ConnectModal.d.ts +7 -0
- package/dist/src/components/Modal/ConnectModal.js +121 -0
- package/dist/src/components/Modal/ConnectModal.js.map +1 -0
- package/dist/src/components/Modal/WalletInfoModal.d.ts +1 -0
- package/dist/src/components/Modal/WalletInfoModal.js +46 -0
- package/dist/src/components/Modal/WalletInfoModal.js.map +1 -0
- package/dist/src/components/Modal/index.d.ts +13 -0
- package/dist/src/components/Modal/index.js +52 -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 +187 -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/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/SVGs/vectorSvg.d.ts +2 -0
- package/dist/src/components/SVGs/vectorSvg.js +4 -0
- package/dist/src/components/SVGs/vectorSvg.js.map +1 -0
- package/dist/src/components/Text/index.d.ts +18 -0
- package/dist/src/components/Text/index.js +32 -0
- package/dist/src/components/Text/index.js.map +1 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.d.ts +12 -0
- package/dist/src/components/WalletKitProvider/ChainProvider.js +59 -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 +42 -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 +13 -0
- package/dist/src/components/WalletKitProvider/ThemeProvider.js.map +1 -0
- package/dist/src/components/WalletKitProvider/index.d.ts +16 -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 +8 -0
- package/dist/src/components/WalletList/index.js +15 -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 +102 -0
- package/dist/src/components/WalletList/style.js.map +1 -0
- package/dist/src/components/WalletTriggerButton/index.d.ts +13 -0
- package/dist/src/components/WalletTriggerButton/index.js +37 -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 +63 -0
- package/dist/src/components/WalletTriggerButton/style.js.map +1 -0
- package/dist/src/errors/index.d.ts +2 -0
- package/dist/src/errors/index.js +6 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/src/hooks/useWalletKit.d.ts +73 -0
- package/dist/src/hooks/useWalletKit.js +38 -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 +30 -0
- package/dist/src/locals/languages/zh.json +30 -0
- package/dist/src/locals/resources.d.ts +66 -0
- package/dist/src/locals/resources.js +11 -0
- package/dist/src/locals/resources.js.map +1 -0
- package/dist/src/modals/connectModal/index.d.ts +0 -0
- package/dist/src/modals/connectModal/index.js +2 -0
- package/dist/src/modals/connectModal/index.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 +27 -0
- package/dist/src/stores/index.js +25 -0
- package/dist/src/stores/index.js.map +1 -0
- package/dist/src/stores/modalStore.d.ts +17 -0
- package/dist/src/stores/modalStore.js +41 -0
- package/dist/src/stores/modalStore.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 +133 -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/error.d.ts +7 -0
- package/dist/src/types/error.js +5 -0
- package/dist/src/types/error.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/types/store.d.ts +2 -0
- package/dist/src/types/store.js +2 -0
- package/dist/src/types/store.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 +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
5
|
+
import IntroduceContainer from './style';
|
|
6
|
+
import VectorSvg from '../SVGs/vectorSvg';
|
|
7
|
+
export function Introduce({ onGetWallet, onClose }) {
|
|
8
|
+
const { t } = useTranslation();
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(ModalHeader, { onClose: onClose, className: "mainTitle" }), _jsxs(IntroduceContainer, { children: [_jsx("div", { className: "title", children: t('introduceQuestion') }), _jsxs("div", { className: "vector", children: [_jsx(VectorSvg, {}), _jsxs("div", { className: "vector-text", children: [_jsx("div", { className: "answer", children: t('introduceAnswer') }), _jsx("div", { className: "detail", children: t('introduceDetail') })] })] }), _jsx("div", { className: "footer", children: _jsx("div", { className: "button", onClick: () => onGetWallet?.(), children: t('getWallet') }) })] })] }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Introduce/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,kBAAkB,MAAM,SAAS,CAAC;AACzC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAO1C,MAAM,UAAU,SAAS,CAAC,EAAE,WAAW,EAAE,OAAO,EAAkB;IACjE,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,CACN,8BACC,KAAC,WAAW,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,WAAW,GAAG,EACvD,MAAC,kBAAkB,eAClB,cAAK,SAAS,EAAC,OAAO,YAAE,CAAC,CAAC,mBAAmB,CAAC,GAAO,EACrD,eAAK,SAAS,EAAC,QAAQ,aACtB,KAAC,SAAS,KAAG,EACb,eAAK,SAAS,EAAC,aAAa,aAC3B,cAAK,SAAS,EAAC,QAAQ,YAAE,CAAC,CAAC,iBAAiB,CAAC,GAAO,EACpD,cAAK,SAAS,EAAC,QAAQ,YAAE,CAAC,CAAC,iBAAiB,CAAC,GAAO,IAC/C,IACD,EACN,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,97 @@
|
|
|
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
|
+
.vector {
|
|
17
|
+
margin-top: 24px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 12px;
|
|
21
|
+
|
|
22
|
+
svg {
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vector-text {
|
|
27
|
+
color: #757575;
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
line-height: 14px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
|
|
33
|
+
.answer {
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.detail {
|
|
38
|
+
margin-top: 14px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.introduce {
|
|
44
|
+
margin-top: 24px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
line-height: 14px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.footer {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
max-width: 120px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.button {
|
|
58
|
+
width: 100%;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
margin-top: 12px;
|
|
61
|
+
padding: 11px 16px;
|
|
62
|
+
color: ${({ theme }) => theme.buttonColor};
|
|
63
|
+
background: ${({ theme }) => theme.buttonBg};
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
line-height: 14px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.more {
|
|
74
|
+
margin-top: 8px;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 768px) {
|
|
82
|
+
padding: 40px 32px 0;
|
|
83
|
+
margin: 0;
|
|
84
|
+
align-items: center;
|
|
85
|
+
|
|
86
|
+
.vector {
|
|
87
|
+
svg {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
.vector-text {
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
export default IntroduceContainer;
|
|
97
|
+
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoDzB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;gBAC3B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
4
|
+
import Modal from './index';
|
|
5
|
+
import { SlotWrapper } from '../../styled';
|
|
6
|
+
import { createConnector, SupportWallets } from '@web3jskit/wallethelper';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
|
+
import { WalletTriggerButton } from '../WalletTriggerButton';
|
|
10
|
+
import { Introduce } from '../Introduce';
|
|
11
|
+
import { WalletList } from '../WalletList';
|
|
12
|
+
import { GetWallet } from '../GetWallet';
|
|
13
|
+
import { Connecting } from '../Connecting';
|
|
14
|
+
import { useWalletKit } from '../../hooks/useWalletKit';
|
|
15
|
+
import { AsideList, ModalAside, ModalContainer, ModalMain } from './style';
|
|
16
|
+
import { useModalStore } from '../../stores/modalStore';
|
|
17
|
+
import { UserRejectError } from '../../errors';
|
|
18
|
+
var Step;
|
|
19
|
+
(function (Step) {
|
|
20
|
+
Step[Step["Introduce"] = 0] = "Introduce";
|
|
21
|
+
Step[Step["WalletList"] = 1] = "WalletList";
|
|
22
|
+
Step[Step["GetWallet"] = 2] = "GetWallet";
|
|
23
|
+
Step[Step["Connecting"] = 3] = "Connecting";
|
|
24
|
+
})(Step || (Step = {}));
|
|
25
|
+
export function ConnectModal({ slots }) {
|
|
26
|
+
const { t } = useTranslation();
|
|
27
|
+
const { currentChainType, supportWallets, connectStatus, isConnecting } = useWalletKit();
|
|
28
|
+
const { connectModalData } = useModalStore();
|
|
29
|
+
const [step, setStep] = useState(Step.Introduce);
|
|
30
|
+
const [selectedWallet, setSelectedWallet] = useState(null);
|
|
31
|
+
const [connectors, setConnectors] = useState([]);
|
|
32
|
+
const isOpen = useMemo(() => {
|
|
33
|
+
return !!connectModalData;
|
|
34
|
+
}, [connectModalData]);
|
|
35
|
+
const requestConnectors = async () => {
|
|
36
|
+
const list = await createConnector(currentChainType, supportWallets || []);
|
|
37
|
+
setConnectors(list);
|
|
38
|
+
};
|
|
39
|
+
const connectorsGroupByType = useMemo(() => {
|
|
40
|
+
const result = connectors.reduce((acc, connector) => {
|
|
41
|
+
if (!acc[connector.connectorType]) {
|
|
42
|
+
acc[connector.connectorType] = [];
|
|
43
|
+
}
|
|
44
|
+
acc[connector.connectorType].push(connector);
|
|
45
|
+
return acc;
|
|
46
|
+
}, {});
|
|
47
|
+
return result;
|
|
48
|
+
}, [connectors]);
|
|
49
|
+
const sortedKeys = useMemo(() => {
|
|
50
|
+
const keys = Object.keys(connectorsGroupByType);
|
|
51
|
+
const sortedKeys = keys.sort((a, b) => {
|
|
52
|
+
const order = ['installed', 'run', 'more'];
|
|
53
|
+
return order.indexOf(a) - order.indexOf(b);
|
|
54
|
+
});
|
|
55
|
+
return sortedKeys;
|
|
56
|
+
}, [connectorsGroupByType]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (isOpen) {
|
|
59
|
+
requestConnectors();
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
setStep(0);
|
|
63
|
+
setConnectors([]);
|
|
64
|
+
}
|
|
65
|
+
}, [isOpen, currentChainType]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
switch (connectStatus) {
|
|
68
|
+
case 'connected':
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
setStep(0);
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}, [connectStatus]);
|
|
75
|
+
const renderMainByStep = useCallback(() => {
|
|
76
|
+
switch (step) {
|
|
77
|
+
case 0:
|
|
78
|
+
return (_jsx(Introduce, { onClose: handleCancel, onGetWallet: () => {
|
|
79
|
+
setStep(Step.WalletList);
|
|
80
|
+
} }));
|
|
81
|
+
case 1:
|
|
82
|
+
return (_jsx(WalletList, { onClose: handleCancel, list: SupportWallets, onBack: () => {
|
|
83
|
+
setStep(0);
|
|
84
|
+
}, onGetWallet: wallet => {
|
|
85
|
+
if (wallet.name === 'Gel Wallet') {
|
|
86
|
+
window.open(wallet.webUrl, '_blank');
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
setSelectedWallet(wallet);
|
|
90
|
+
setStep(Step.GetWallet);
|
|
91
|
+
} }));
|
|
92
|
+
case 2:
|
|
93
|
+
return (_jsx(GetWallet, { onClose: handleCancel, wallet: selectedWallet, onBack: () => {
|
|
94
|
+
setStep(Step.WalletList);
|
|
95
|
+
} }));
|
|
96
|
+
default:
|
|
97
|
+
return _jsx(_Fragment, {});
|
|
98
|
+
}
|
|
99
|
+
}, [step, selectedWallet]);
|
|
100
|
+
const handleConnect = (address) => {
|
|
101
|
+
connectModalData?.onConnect(address);
|
|
102
|
+
};
|
|
103
|
+
const handleCancel = () => {
|
|
104
|
+
useModalStore.getState().connectModalData?.onError(UserRejectError);
|
|
105
|
+
};
|
|
106
|
+
return (_jsx(Modal, { isOpen: isOpen, onCancel: handleCancel, children: _jsxs(ModalContainer, { children: [_jsxs(ModalAside, { className: step !== 0 ? 'hidden' : '', children: [_jsx(ModalHeader, { onClose: handleCancel, title: t('connectWallet'), className: "asideTitle" }), _jsxs(AsideList, { children: [sortedKeys.map(connectorType => {
|
|
107
|
+
return (_jsxs("div", { className: "typeBox", children: [_jsx("div", { className: `typeHeader ${connectorType}`, children: t(connectorType) }), connectorsGroupByType[connectorType].map((connector) => {
|
|
108
|
+
return (_jsx(WalletTriggerButton, { onConnect: handleConnect, onError: connectModalData?.onError, connector: connector, onGetWallet: () => {
|
|
109
|
+
if (connector.name === 'Gel Wallet') {
|
|
110
|
+
window.open(connector.webUrl, '_blank');
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
setSelectedWallet(connector);
|
|
114
|
+
setStep(Step.GetWallet);
|
|
115
|
+
} }, connectorType + connector.name));
|
|
116
|
+
})] }, connectorType));
|
|
117
|
+
}), slots ? (slots.map((Slot, index) => {
|
|
118
|
+
return _jsx(SlotWrapper, { children: Slot }, index);
|
|
119
|
+
})) : (_jsx(_Fragment, {}))] })] }), _jsx(ModalMain, { children: isConnecting ? _jsx(Connecting, { onClose: handleCancel, wallet: isConnecting }) : renderMainByStep() })] }) }));
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=ConnectModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectModal.js","sourceRoot":"","sources":["../../../../src/components/Modal/ConnectModal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAClF,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;AAC3E,OA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AAK,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,YAAY,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,GAAI,CAAC,CAAC,CAAC,gBAAgB,EAAE,GACrF,IACI,GACV,CACR,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WalletInfoModal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Modal from './index';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import ModalHeader from '../Header/ModalHeader';
|
|
6
|
+
import { useWalletKit } from '../../hooks/useWalletKit';
|
|
7
|
+
import { formatAddress } from '../../utils/formatter';
|
|
8
|
+
import { InfoModalContainer } from './style';
|
|
9
|
+
import CopySvg from '../SVGs/copySvg';
|
|
10
|
+
import CopiedSvg from '../SVGs/copiedSvg';
|
|
11
|
+
import ExitSvg from '../SVGs/exitSvg';
|
|
12
|
+
import copyToClipboard from 'copy-to-clipboard';
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { generateRandomAvatar } from '../../utils/generateAvatar';
|
|
15
|
+
import { useModalStore } from '../../stores/modalStore';
|
|
16
|
+
export function WalletInfoModal() {
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
const { walletAddress, avatar, setAvatar, currentConnector } = useWalletKit();
|
|
19
|
+
const [copied, setCopied] = useState(false);
|
|
20
|
+
const { closeWalletInfoModal, isShowWalletInfoModal } = useModalStore();
|
|
21
|
+
const generateAvatar = () => {
|
|
22
|
+
const newAvatar = generateRandomAvatar();
|
|
23
|
+
setAvatar(newAvatar);
|
|
24
|
+
};
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
generateAvatar();
|
|
27
|
+
}, []);
|
|
28
|
+
const handleCancel = () => {
|
|
29
|
+
closeWalletInfoModal();
|
|
30
|
+
};
|
|
31
|
+
return (_jsx(Modal, { isOpen: isShowWalletInfoModal, onCancel: handleCancel, children: _jsxs(InfoModalContainer, { children: [_jsx(ModalHeader, { onClose: handleCancel }), _jsx("div", { className: "avatarBox", onClick: () => generateAvatar(), children: _jsx("div", { className: "avatar", style: {
|
|
32
|
+
backgroundColor: avatar?.bg
|
|
33
|
+
}, 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: () => {
|
|
34
|
+
copyToClipboard(walletAddress);
|
|
35
|
+
if (copied)
|
|
36
|
+
return;
|
|
37
|
+
setCopied(true);
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
setCopied(false);
|
|
40
|
+
}, 1000);
|
|
41
|
+
}, 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: () => {
|
|
42
|
+
currentConnector?.disconnect();
|
|
43
|
+
closeWalletInfoModal();
|
|
44
|
+
}, children: [_jsx("div", { className: "btnIcon", children: _jsx(ExitSvg, {}) }), _jsx("div", { className: "btnText", children: t('disConnect') })] })] })] }) }));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=WalletInfoModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletInfoModal.js","sourceRoot":"","sources":["../../../../src/components/Modal/WalletInfoModal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,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AE,CAAC,CAAC,YAAY,CAAC,GAAO,IAC3C,IACD,IACc,GACd,CACR,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
onCancel?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export default function Modal({ isOpen, children, closeAble, onCancel }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import {} from 'react';
|
|
4
|
+
import { styled } from 'styled-components';
|
|
5
|
+
import { animated, useTransition } from '@react-spring/web';
|
|
6
|
+
import { DialogOverlay, DialogContent } from '@reach/dialog';
|
|
7
|
+
import '@reach/dialog/styles.css';
|
|
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, onCancel }) {
|
|
42
|
+
const transitions = useTransition(isOpen, {
|
|
43
|
+
from: { opacity: 0 },
|
|
44
|
+
enter: { opacity: 1 },
|
|
45
|
+
leave: { opacity: 0 },
|
|
46
|
+
config: { duration: 150 }
|
|
47
|
+
});
|
|
48
|
+
return (_jsx(_Fragment, { children: transitions((styles, item) => {
|
|
49
|
+
return (item && (_jsx(StyledDialogOverlay, { style: { opacity: styles.opacity }, onDismiss: closeAble ? onCancel : () => { }, isOpen: isOpen, children: _jsx(StyledDialogContent, { className: 'dialog-content-style', children: children }) })));
|
|
50
|
+
}) }));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,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;AAElC,MAAM,qBAAqB,GAAG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C,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,187 @@
|
|
|
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-y: auto;
|
|
35
|
+
overflow-x: hidden;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 16px;
|
|
39
|
+
padding: 0 20px 20px;
|
|
40
|
+
margin-top: 10px;
|
|
41
|
+
|
|
42
|
+
.typeBox {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 4px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.typeHeader {
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
line-height: 14px;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
color: ${({ theme }) => theme.gray};
|
|
53
|
+
margin-bottom: 12px;
|
|
54
|
+
|
|
55
|
+
&.installed {
|
|
56
|
+
color: ${({ theme }) => theme.blue};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (max-width: 768px) {
|
|
61
|
+
overflow-x: auto;
|
|
62
|
+
overflow-y: hidden;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
padding: 0 20px;
|
|
65
|
+
|
|
66
|
+
.typeBox {
|
|
67
|
+
flex-direction: row;
|
|
68
|
+
|
|
69
|
+
.typeHeader {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// &::-webkit-scrollbar {
|
|
75
|
+
// display: none;
|
|
76
|
+
// }
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
export const ModalMain = styled.div `
|
|
80
|
+
flex: 1;
|
|
81
|
+
height: 100%;
|
|
82
|
+
`;
|
|
83
|
+
export const InfoModalContainer = styled.div `
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
align-items: center;
|
|
87
|
+
width: 360px;
|
|
88
|
+
height: 240px;
|
|
89
|
+
text-align: center;
|
|
90
|
+
|
|
91
|
+
.avatarBox {
|
|
92
|
+
margin-top: -28px;
|
|
93
|
+
font-size: 41px;
|
|
94
|
+
|
|
95
|
+
.avatar {
|
|
96
|
+
width: 74px;
|
|
97
|
+
height: 74px;
|
|
98
|
+
line-height: 74px;
|
|
99
|
+
border-radius: 50%;
|
|
100
|
+
user-select: none;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.accountInfo {
|
|
106
|
+
margin-top: 12px;
|
|
107
|
+
color: ${({ theme }) => theme.textColor};
|
|
108
|
+
|
|
109
|
+
.address {
|
|
110
|
+
font-size: 18px;
|
|
111
|
+
font-weight: 800;
|
|
112
|
+
line-height: 24px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.tokenAmount {
|
|
116
|
+
font-size: 14px;
|
|
117
|
+
font-weight: 600;
|
|
118
|
+
line-height: 18px;
|
|
119
|
+
color: ${({ theme }) => theme.textColor3};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.btnGroup {
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 8px;
|
|
126
|
+
margin-top: 16px;
|
|
127
|
+
width: 100%;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
padding: 0 16px 16px;
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
|
|
132
|
+
.button {
|
|
133
|
+
padding: 8px;
|
|
134
|
+
color: ${({ theme }) => theme.textColor};
|
|
135
|
+
width: 100%;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
align-items: center;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
border-radius: 12px;
|
|
141
|
+
background-color: ${({ theme }) => theme.infoBtnBg};
|
|
142
|
+
|
|
143
|
+
&:hover {
|
|
144
|
+
background-color: ${({ theme }) => theme.infoBtnHoverBg};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.btnIcon {
|
|
149
|
+
height: 18px;
|
|
150
|
+
}
|
|
151
|
+
.btnText {
|
|
152
|
+
font-size: 13px;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
line-height: 18px;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (max-width: 768px) {
|
|
159
|
+
width: 100vw;
|
|
160
|
+
height: 280px;
|
|
161
|
+
|
|
162
|
+
.avatarBox {
|
|
163
|
+
margin-top: -4px;
|
|
164
|
+
font-size: 45px;
|
|
165
|
+
|
|
166
|
+
.avatar {
|
|
167
|
+
width: 82px;
|
|
168
|
+
height: 82px;
|
|
169
|
+
line-height: 82px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.accountInfo {
|
|
174
|
+
margin-top: 16px;
|
|
175
|
+
|
|
176
|
+
.address {
|
|
177
|
+
font-size: 20px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.tokenAmount {
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
line-height: 20px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`;
|
|
187
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../src/components/Modal/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;CAUvC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;2BAIT,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;;;;;;;sBASrC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;;;;CAMrD,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;WAmBxB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI;;;;YAIxB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;CAsBpC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGlC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;WAwBjC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;;;;;;;;;;YAY7B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;;;;;;;;;YAe/B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;;;;;uBAOnB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;wBAG7B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C1D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const BackArrowSvg = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", ...props, children: _jsx("path", { d: "M3.05505 12.2283C3.08043 12.2779 3.11445 12.3238 3.15686 12.3637C3.16913 12.3753 3.18186 12.3862 3.195 12.3963L9.18767 17.3904C9.4033 17.5629 9.71795 17.528 9.89045 17.3124C10.063 17.0967 10.028 16.7821 9.81237 16.6096L4.92541 12.5H19.5C19.7762 12.5 20 12.2761 20 12C20 11.7239 19.7762 11.5 19.5 11.5H4.803L9.8345 6.87165C10.0398 6.68692 10.0564 6.37078 9.87167 6.16552C9.68694 5.96027 9.37079 5.94363 9.16554 6.12836L3.17252 11.6221C3.15999 11.633 3.14791 11.6445 3.13633 11.6568C3.09631 11.6992 3.06501 11.747 3.04255 11.7979C3.01196 11.867 2.99805 11.9411 3.00022 12.0145C3.00231 12.0879 3.02049 12.1611 3.05505 12.2283Z", fill: "#161617" }) }));
|
|
3
|
+
export default BackArrowSvg;
|
|
4
|
+
//# sourceMappingURL=backArrowSvg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backArrowSvg.js","sourceRoot":"","sources":["../../../../src/components/SVGs/backArrowSvg.tsx"],"names":[],"mappings":";AAAA,MAAM,YAAY,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CACpC,cAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,KAAK,KAAK,YACvG,eACC,CAAC,EAAC,inBAAinB,EACnnB,IAAI,EAAC,SAAS,GACb,GACG,CACN,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const CloseSvg = () => (_jsxs("svg", { "aria-hidden": "true", fill: "none", height: "10", viewBox: "0 0 10 10", width: "10", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "Close" }), _jsx("path", { d: "M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z", fill: "currentColor" })] }));
|
|
3
|
+
export default CloseSvg;
|
|
4
|
+
//# sourceMappingURL=closeSvg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closeSvg.js","sourceRoot":"","sources":["../../../../src/components/SVGs/closeSvg.tsx"],"names":[],"mappings":";AAAA,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CACtB,8BAAiB,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,4BAA4B,aAChH,oCAAoB,EACpB,eACC,CAAC,EAAC,giBAAgiB,EACliB,IAAI,EAAC,cAAc,GACZ,IACH,CACN,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const CopiedSvg = () => (_jsxs("svg", { fill: "none", height: "13", viewBox: "0 0 13 13", width: "13", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "Copied" }), _jsx("path", { d: "M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z", fill: "currentColor" })] }));
|
|
3
|
+
export default CopiedSvg;
|
|
4
|
+
//# sourceMappingURL=copiedSvg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copiedSvg.js","sourceRoot":"","sources":["../../../../src/components/SVGs/copiedSvg.tsx"],"names":[],"mappings":";AAAA,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACvB,eAAK,IAAI,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,4BAA4B,aAC7F,qCAAqB,EACrB,eACC,CAAC,EAAC,geAAge,EACle,IAAI,EAAC,cAAc,GACZ,IACH,CACN,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const CopySvg = () => (_jsxs("svg", { fill: "none", height: "16", viewBox: "0 0 17 16", width: "17", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("title", { children: "Copy" }), _jsx("path", { d: "M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z", fill: "currentColor" })] }));
|
|
3
|
+
export default CopySvg;
|
|
4
|
+
//# sourceMappingURL=copySvg.js.map
|