@hot-labs/kit 1.0.33
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/.eslintrc.cjs +11 -0
- package/.github/workflows/deploy-example.yml +55 -0
- package/.github/workflows/release.yml +74 -0
- package/.prettierrc +4 -0
- package/.prototools +2 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +1 -0
- package/README.md +67 -0
- package/build/GoogleConnector.d.ts +20 -0
- package/build/GoogleConnector.js +76 -0
- package/build/GoogleConnector.js.map +1 -0
- package/build/HotConnector.d.ts +91 -0
- package/build/HotConnector.js +285 -0
- package/build/HotConnector.js.map +1 -0
- package/build/OmniConnector.d.ts +95 -0
- package/build/OmniConnector.js +123 -0
- package/build/OmniConnector.js.map +1 -0
- package/build/OmniWallet.d.ts +57 -0
- package/build/OmniWallet.js +56 -0
- package/build/OmniWallet.js.map +1 -0
- package/build/cosmos/connector.d.ts +53 -0
- package/build/cosmos/connector.js +207 -0
- package/build/cosmos/connector.js.map +1 -0
- package/build/cosmos/wallet.d.ts +28 -0
- package/build/cosmos/wallet.js +59 -0
- package/build/cosmos/wallet.js.map +1 -0
- package/build/events.d.ts +42 -0
- package/build/events.js +64 -0
- package/build/events.js.map +1 -0
- package/build/evm/abi.d.ts +17 -0
- package/build/evm/abi.js +38 -0
- package/build/evm/abi.js.map +1 -0
- package/build/evm/connector.d.ts +35 -0
- package/build/evm/connector.js +124 -0
- package/build/evm/connector.js.map +1 -0
- package/build/evm/wallet.d.ts +47 -0
- package/build/evm/wallet.js +136 -0
- package/build/evm/wallet.js.map +1 -0
- package/build/exchange.d.ts +63 -0
- package/build/exchange.js +384 -0
- package/build/exchange.js.map +1 -0
- package/build/hot-wallet/evm.d.ts +1 -0
- package/build/hot-wallet/evm.js +33 -0
- package/build/hot-wallet/evm.js.map +1 -0
- package/build/hot-wallet/hot.d.ts +3 -0
- package/build/hot-wallet/hot.js +40 -0
- package/build/hot-wallet/hot.js.map +1 -0
- package/build/hot-wallet/index.d.ts +4 -0
- package/build/hot-wallet/index.js +5 -0
- package/build/hot-wallet/index.js.map +1 -0
- package/build/hot-wallet/solana/account.d.ts +11 -0
- package/build/hot-wallet/solana/account.js +42 -0
- package/build/hot-wallet/solana/account.js.map +1 -0
- package/build/hot-wallet/solana/index.d.ts +1 -0
- package/build/hot-wallet/solana/index.js +85 -0
- package/build/hot-wallet/solana/index.js.map +1 -0
- package/build/hot-wallet/solana/register.d.ts +2 -0
- package/build/hot-wallet/solana/register.js +41 -0
- package/build/hot-wallet/solana/register.js.map +1 -0
- package/build/hot-wallet/solana/solana-wallet.d.ts +34 -0
- package/build/hot-wallet/solana/solana-wallet.js +223 -0
- package/build/hot-wallet/solana/solana-wallet.js.map +1 -0
- package/build/hot-wallet/solana/utils.d.ts +32 -0
- package/build/hot-wallet/solana/utils.js +36 -0
- package/build/hot-wallet/solana/utils.js.map +1 -0
- package/build/hot-wallet/stellar.d.ts +38 -0
- package/build/hot-wallet/stellar.js +32 -0
- package/build/hot-wallet/stellar.js.map +1 -0
- package/build/hot-wallet/ton.d.ts +1 -0
- package/build/hot-wallet/ton.js +49 -0
- package/build/hot-wallet/ton.js.map +1 -0
- package/build/hot-wallet/wallet.d.ts +1 -0
- package/build/hot-wallet/wallet.js +40 -0
- package/build/hot-wallet/wallet.js.map +1 -0
- package/build/index.d.ts +24 -0
- package/build/index.js +25 -0
- package/build/index.js.map +1 -0
- package/build/near/connector.d.ts +28 -0
- package/build/near/connector.js +56 -0
- package/build/near/connector.js.map +1 -0
- package/build/near/wallet.d.ts +62 -0
- package/build/near/wallet.js +233 -0
- package/build/near/wallet.js.map +1 -0
- package/build/omni/Intents.d.ts +93 -0
- package/build/omni/Intents.js +395 -0
- package/build/omni/Intents.js.map +1 -0
- package/build/omni/bridge.d.ts +3 -0
- package/build/omni/bridge.js +34 -0
- package/build/omni/bridge.js.map +1 -0
- package/build/omni/config.d.ts +99 -0
- package/build/omni/config.js +126 -0
- package/build/omni/config.js.map +1 -0
- package/build/omni/defaultTokens.d.ts +17 -0
- package/build/omni/defaultTokens.js +1079 -0
- package/build/omni/defaultTokens.js.map +1 -0
- package/build/omni/index.d.ts +8 -0
- package/build/omni/index.js +9 -0
- package/build/omni/index.js.map +1 -0
- package/build/omni/nearRpc.d.ts +24 -0
- package/build/omni/nearRpc.js +167 -0
- package/build/omni/nearRpc.js.map +1 -0
- package/build/omni/recipient.d.ts +10 -0
- package/build/omni/recipient.js +40 -0
- package/build/omni/recipient.js.map +1 -0
- package/build/omni/token.d.ts +36 -0
- package/build/omni/token.js +136 -0
- package/build/omni/token.js.map +1 -0
- package/build/omni/tokens.d.ts +14 -0
- package/build/omni/tokens.js +57 -0
- package/build/omni/tokens.js.map +1 -0
- package/build/omni/types.d.ts +41 -0
- package/build/omni/types.js +2 -0
- package/build/omni/types.js.map +1 -0
- package/build/omni/utils.d.ts +24 -0
- package/build/omni/utils.js +150 -0
- package/build/omni/utils.js.map +1 -0
- package/build/settings.d.ts +5 -0
- package/build/settings.js +6 -0
- package/build/settings.js.map +1 -0
- package/build/solana/connector.d.ts +31 -0
- package/build/solana/connector.js +138 -0
- package/build/solana/connector.js.map +1 -0
- package/build/solana/protocol.d.ts +25 -0
- package/build/solana/protocol.js +56 -0
- package/build/solana/protocol.js.map +1 -0
- package/build/solana/wallet.d.ts +47 -0
- package/build/solana/wallet.js +188 -0
- package/build/solana/wallet.js.map +1 -0
- package/build/solana/wallets.d.ts +102 -0
- package/build/solana/wallets.js +150 -0
- package/build/solana/wallets.js.map +1 -0
- package/build/stellar/connector.d.ts +25 -0
- package/build/stellar/connector.js +56 -0
- package/build/stellar/connector.js.map +1 -0
- package/build/stellar/wallet.d.ts +70 -0
- package/build/stellar/wallet.js +225 -0
- package/build/stellar/wallet.js.map +1 -0
- package/build/storage.d.ts +10 -0
- package/build/storage.js +12 -0
- package/build/storage.js.map +1 -0
- package/build/ton/connector.d.ts +25 -0
- package/build/ton/connector.js +119 -0
- package/build/ton/connector.js.map +1 -0
- package/build/ton/utils.d.ts +45 -0
- package/build/ton/utils.js +64 -0
- package/build/ton/utils.js.map +1 -0
- package/build/ton/wallet.d.ts +70 -0
- package/build/ton/wallet.js +154 -0
- package/build/ton/wallet.js.map +1 -0
- package/build/ui/Popup.d.ts +10 -0
- package/build/ui/Popup.js +38 -0
- package/build/ui/Popup.js.map +1 -0
- package/build/ui/connect/AuthPopup.d.ts +2 -0
- package/build/ui/connect/AuthPopup.js +48 -0
- package/build/ui/connect/AuthPopup.js.map +1 -0
- package/build/ui/connect/ConnectWallet.d.ts +9 -0
- package/build/ui/connect/ConnectWallet.js +22 -0
- package/build/ui/connect/ConnectWallet.js.map +1 -0
- package/build/ui/connect/LogoutPopup.d.ts +10 -0
- package/build/ui/connect/LogoutPopup.js +8 -0
- package/build/ui/connect/LogoutPopup.js.map +1 -0
- package/build/ui/connect/WCPopup.d.ts +13 -0
- package/build/ui/connect/WCPopup.js +81 -0
- package/build/ui/connect/WCPopup.js.map +1 -0
- package/build/ui/connect/WCRequest.d.ts +9 -0
- package/build/ui/connect/WCRequest.js +13 -0
- package/build/ui/connect/WCRequest.js.map +1 -0
- package/build/ui/connect/WalletPicker.d.ts +11 -0
- package/build/ui/connect/WalletPicker.js +48 -0
- package/build/ui/connect/WalletPicker.js.map +1 -0
- package/build/ui/icons/arrow-right.d.ts +1 -0
- package/build/ui/icons/arrow-right.js +5 -0
- package/build/ui/icons/arrow-right.js.map +1 -0
- package/build/ui/icons/exchange.d.ts +6 -0
- package/build/ui/icons/exchange.js +6 -0
- package/build/ui/icons/exchange.js.map +1 -0
- package/build/ui/icons/logout.d.ts +1 -0
- package/build/ui/icons/logout.js +3 -0
- package/build/ui/icons/logout.js.map +1 -0
- package/build/ui/icons/pending.d.ts +1 -0
- package/build/ui/icons/pending.js +5 -0
- package/build/ui/icons/pending.js.map +1 -0
- package/build/ui/icons/qr.d.ts +1 -0
- package/build/ui/icons/qr.js +5 -0
- package/build/ui/icons/qr.js.map +1 -0
- package/build/ui/icons/search.d.ts +1 -0
- package/build/ui/icons/search.js +5 -0
- package/build/ui/icons/search.js.map +1 -0
- package/build/ui/icons/switch.d.ts +1 -0
- package/build/ui/icons/switch.js +5 -0
- package/build/ui/icons/switch.js.map +1 -0
- package/build/ui/icons/wallet.d.ts +1 -0
- package/build/ui/icons/wallet.js +5 -0
- package/build/ui/icons/wallet.js.map +1 -0
- package/build/ui/payment/Bridge.d.ts +27 -0
- package/build/ui/payment/Bridge.js +340 -0
- package/build/ui/payment/Bridge.js.map +1 -0
- package/build/ui/payment/DepositQR.d.ts +9 -0
- package/build/ui/payment/DepositQR.js +56 -0
- package/build/ui/payment/DepositQR.js.map +1 -0
- package/build/ui/payment/Payment.d.ts +16 -0
- package/build/ui/payment/Payment.js +50 -0
- package/build/ui/payment/Payment.js.map +1 -0
- package/build/ui/payment/Profile.d.ts +7 -0
- package/build/ui/payment/Profile.js +88 -0
- package/build/ui/payment/Profile.js.map +1 -0
- package/build/ui/payment/SelectRecipient.d.ts +14 -0
- package/build/ui/payment/SelectRecipient.js +68 -0
- package/build/ui/payment/SelectRecipient.js.map +1 -0
- package/build/ui/payment/SelectSender.d.ts +13 -0
- package/build/ui/payment/SelectSender.js +23 -0
- package/build/ui/payment/SelectSender.js.map +1 -0
- package/build/ui/payment/SelectToken.d.ts +13 -0
- package/build/ui/payment/SelectToken.js +92 -0
- package/build/ui/payment/SelectToken.js.map +1 -0
- package/build/ui/payment/TokenCard.d.ts +23 -0
- package/build/ui/payment/TokenCard.js +50 -0
- package/build/ui/payment/TokenCard.js.map +1 -0
- package/build/ui/router.d.ts +37 -0
- package/build/ui/router.js +56 -0
- package/build/ui/router.js.map +1 -0
- package/build/ui/styles.d.ts +11 -0
- package/build/ui/styles.js +273 -0
- package/build/ui/styles.js.map +1 -0
- package/package.json +60 -0
- package/skill.md +989 -0
- package/src/GoogleConnector.ts +102 -0
- package/src/HotConnector.ts +344 -0
- package/src/OmniConnector.ts +161 -0
- package/src/OmniWallet.ts +94 -0
- package/src/cosmos/connector.ts +242 -0
- package/src/cosmos/wallet.ts +77 -0
- package/src/events.ts +66 -0
- package/src/evm/abi.ts +39 -0
- package/src/evm/connector.ts +139 -0
- package/src/evm/wallet.ts +156 -0
- package/src/exchange.ts +426 -0
- package/src/hot-wallet/evm.ts +38 -0
- package/src/hot-wallet/hot.ts +39 -0
- package/src/hot-wallet/index.ts +4 -0
- package/src/hot-wallet/solana/account.ts +52 -0
- package/src/hot-wallet/solana/index.ts +98 -0
- package/src/hot-wallet/solana/register.ts +48 -0
- package/src/hot-wallet/solana/solana-wallet.ts +280 -0
- package/src/hot-wallet/solana/utils.ts +56 -0
- package/src/hot-wallet/stellar.ts +39 -0
- package/src/hot-wallet/ton.ts +56 -0
- package/src/hot-wallet/wallet.ts +44 -0
- package/src/index.ts +30 -0
- package/src/near/connector.ts +71 -0
- package/src/near/wallet.ts +255 -0
- package/src/omni/Intents.ts +454 -0
- package/src/omni/bridge.ts +38 -0
- package/src/omni/config.ts +130 -0
- package/src/omni/defaultTokens.ts +1078 -0
- package/src/omni/index.ts +8 -0
- package/src/omni/nearRpc.ts +187 -0
- package/src/omni/recipient.ts +41 -0
- package/src/omni/token.ts +125 -0
- package/src/omni/tokens.ts +68 -0
- package/src/omni/types.ts +46 -0
- package/src/omni/utils.ts +163 -0
- package/src/settings.ts +5 -0
- package/src/solana/connector.ts +151 -0
- package/src/solana/protocol.ts +66 -0
- package/src/solana/wallet.ts +230 -0
- package/src/solana/wallets.ts +243 -0
- package/src/stellar/connector.ts +69 -0
- package/src/stellar/wallet.ts +267 -0
- package/src/storage.ts +19 -0
- package/src/ton/connector.ts +138 -0
- package/src/ton/utils.ts +73 -0
- package/src/ton/wallet.ts +178 -0
- package/src/ui/Popup.tsx +62 -0
- package/src/ui/connect/AuthPopup.tsx +78 -0
- package/src/ui/connect/ConnectWallet.tsx +63 -0
- package/src/ui/connect/LogoutPopup.tsx +20 -0
- package/src/ui/connect/WCPopup.tsx +122 -0
- package/src/ui/connect/WCRequest.tsx +28 -0
- package/src/ui/connect/WalletPicker.tsx +92 -0
- package/src/ui/icons/arrow-right.tsx +8 -0
- package/src/ui/icons/exchange.tsx +17 -0
- package/src/ui/icons/logout.tsx +18 -0
- package/src/ui/icons/pending.tsx +18 -0
- package/src/ui/icons/qr.tsx +12 -0
- package/src/ui/icons/search.tsx +18 -0
- package/src/ui/icons/switch.tsx +10 -0
- package/src/ui/icons/wallet.tsx +18 -0
- package/src/ui/payment/Bridge.tsx +582 -0
- package/src/ui/payment/DepositQR.tsx +88 -0
- package/src/ui/payment/Payment.tsx +78 -0
- package/src/ui/payment/Profile.tsx +140 -0
- package/src/ui/payment/SelectRecipient.tsx +111 -0
- package/src/ui/payment/SelectSender.tsx +60 -0
- package/src/ui/payment/SelectToken.tsx +134 -0
- package/src/ui/payment/TokenCard.tsx +83 -0
- package/src/ui/router.tsx +92 -0
- package/src/ui/styles.ts +284 -0
- package/tsconfig.json +22 -0
- package/vite.config.ts +17 -0
|
@@ -0,0 +1,11 @@
|
|
|
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 ModalOverlay: 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 ModalContent: 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 ModalHeader: 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 ModalBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const GetWalletLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
8
|
+
export declare const PopupOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
9
|
+
export declare const PopupOptionInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const PopupButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
11
|
+
export declare const PopupRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const font = `-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`;
|
|
3
|
+
export const ModalContainer = styled.div `
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
z-index: 100000000;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
transition: opacity 0.2s ease-in-out;
|
|
15
|
+
pointer-events: all;
|
|
16
|
+
|
|
17
|
+
@media (max-width: 600px) {
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export const ModalOverlay = styled.div `
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
z-index: 100000000;
|
|
28
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
29
|
+
backdrop-filter: blur(10px);
|
|
30
|
+
z-index: 1;
|
|
31
|
+
`;
|
|
32
|
+
export const ModalContent = styled.div `
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
align-items: center;
|
|
36
|
+
max-width: 420px;
|
|
37
|
+
max-height: 660px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
border-radius: 24px;
|
|
40
|
+
background: #0d0d0d;
|
|
41
|
+
border: 1.5px solid rgba(255, 255, 255, 0.1);
|
|
42
|
+
transition: transform 0.2s ease-in-out;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
|
|
45
|
+
@media (max-width: 600px) {
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
width: 100%;
|
|
48
|
+
max-height: 90%;
|
|
49
|
+
border-bottom-left-radius: 0;
|
|
50
|
+
border-bottom-right-radius: 0;
|
|
51
|
+
border: none;
|
|
52
|
+
border-top: 1.5px solid rgba(255, 255, 255, 0.1);
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
export const ModalHeader = styled.div `
|
|
56
|
+
display: flex;
|
|
57
|
+
padding: 16px;
|
|
58
|
+
gap: 16px;
|
|
59
|
+
align-self: stretch;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
position: relative;
|
|
63
|
+
|
|
64
|
+
button {
|
|
65
|
+
position: absolute;
|
|
66
|
+
right: 16px;
|
|
67
|
+
top: 16px;
|
|
68
|
+
width: 32px;
|
|
69
|
+
height: 32px;
|
|
70
|
+
border-radius: 12px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
transition: background 0.2s ease-in-out;
|
|
73
|
+
border: none;
|
|
74
|
+
background: none;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background: rgba(255, 255, 255, 0.04);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
p {
|
|
85
|
+
color: #fff;
|
|
86
|
+
text-align: center;
|
|
87
|
+
font-size: 24px;
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
line-height: normal;
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
export const ModalBody = styled.div `
|
|
95
|
+
display: flex;
|
|
96
|
+
padding: 16px;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: flex-start;
|
|
99
|
+
text-align: center;
|
|
100
|
+
gap: 4px;
|
|
101
|
+
overflow: auto;
|
|
102
|
+
border-radius: 24px;
|
|
103
|
+
background: rgba(255, 255, 255, 0.08);
|
|
104
|
+
width: 100%;
|
|
105
|
+
flex: 1;
|
|
106
|
+
|
|
107
|
+
textarea {
|
|
108
|
+
width: 100%;
|
|
109
|
+
padding: 12px;
|
|
110
|
+
border-radius: 12px;
|
|
111
|
+
background: #0d0d0d;
|
|
112
|
+
color: #fff;
|
|
113
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
114
|
+
outline: none;
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
transition: background 0.2s ease-in-out;
|
|
117
|
+
font-family: monospace;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
p {
|
|
121
|
+
color: rgba(255, 255, 255, 0.9);
|
|
122
|
+
text-align: center;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
font-style: normal;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
line-height: normal;
|
|
127
|
+
letter-spacing: -0.8px;
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
export const Footer = styled.div `
|
|
131
|
+
width: 100%;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: flex-start;
|
|
135
|
+
padding: 16px 24px;
|
|
136
|
+
color: #fff;
|
|
137
|
+
gap: 12px;
|
|
138
|
+
|
|
139
|
+
img {
|
|
140
|
+
width: 24px;
|
|
141
|
+
height: 24px;
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
object-fit: cover;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
* {
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
text-overflow: ellipsis;
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
export const GetWalletLink = styled.a `
|
|
153
|
+
color: rgba(255, 255, 255, 0.5);
|
|
154
|
+
text-align: center;
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
font-style: normal;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
margin-left: auto;
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
transition: color 0.2s ease-in-out;
|
|
161
|
+
|
|
162
|
+
&:hover {
|
|
163
|
+
color: rgba(255, 255, 255, 1);
|
|
164
|
+
}
|
|
165
|
+
`;
|
|
166
|
+
export const PopupOption = styled.button `
|
|
167
|
+
display: flex;
|
|
168
|
+
padding: 8px;
|
|
169
|
+
align-items: center;
|
|
170
|
+
align-self: stretch;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
transition: background 0.2s ease-in-out;
|
|
173
|
+
border-radius: 24px;
|
|
174
|
+
outline: none;
|
|
175
|
+
border: none;
|
|
176
|
+
background: transparent;
|
|
177
|
+
gap: 12px;
|
|
178
|
+
|
|
179
|
+
img {
|
|
180
|
+
width: 44px;
|
|
181
|
+
height: 44px;
|
|
182
|
+
border-radius: 16px;
|
|
183
|
+
object-fit: cover;
|
|
184
|
+
flex-shrink: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&:hover {
|
|
188
|
+
background: rgba(255, 255, 255, 0.04);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
p {
|
|
192
|
+
color: rgba(255, 255, 255, 0.9);
|
|
193
|
+
text-align: center;
|
|
194
|
+
font-size: 18px;
|
|
195
|
+
font-style: normal;
|
|
196
|
+
font-weight: 600;
|
|
197
|
+
line-height: normal;
|
|
198
|
+
letter-spacing: -0.36px;
|
|
199
|
+
margin: 0;
|
|
200
|
+
}
|
|
201
|
+
`;
|
|
202
|
+
export const PopupOptionInfo = styled.div `
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
align-items: flex-start;
|
|
206
|
+
text-align: left;
|
|
207
|
+
flex: 1;
|
|
208
|
+
margin-top: -2px;
|
|
209
|
+
|
|
210
|
+
.wallet-address {
|
|
211
|
+
color: rgba(255, 255, 255, 0.5);
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
font-style: normal;
|
|
214
|
+
font-weight: 400;
|
|
215
|
+
line-height: normal;
|
|
216
|
+
}
|
|
217
|
+
`;
|
|
218
|
+
export const PopupButton = styled.button `
|
|
219
|
+
width: 100%;
|
|
220
|
+
padding: 12px;
|
|
221
|
+
border-radius: 24px;
|
|
222
|
+
background: rgb(221, 221, 221);
|
|
223
|
+
color: rgb(20, 20, 20) !important;
|
|
224
|
+
font-weight: bold;
|
|
225
|
+
border: none;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
font-size: 16px;
|
|
228
|
+
transition: background 0.2s ease-in-out;
|
|
229
|
+
margin-top: 16px;
|
|
230
|
+
height: 56px;
|
|
231
|
+
|
|
232
|
+
&:hover {
|
|
233
|
+
background: rgb(160, 160, 160);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:disabled {
|
|
237
|
+
opacity: 0.5;
|
|
238
|
+
cursor: not-allowed;
|
|
239
|
+
}
|
|
240
|
+
`;
|
|
241
|
+
export const PopupRoot = styled.div `
|
|
242
|
+
height: 100%;
|
|
243
|
+
h1,
|
|
244
|
+
h2,
|
|
245
|
+
h3,
|
|
246
|
+
h4,
|
|
247
|
+
h5,
|
|
248
|
+
h6,
|
|
249
|
+
p {
|
|
250
|
+
font-family: ${font};
|
|
251
|
+
margin: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Hide scrollbar for all scrollable elements inside PopupRoot */
|
|
255
|
+
&::-webkit-scrollbar {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
258
|
+
scrollbar-width: none; /* Firefox */
|
|
259
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
260
|
+
|
|
261
|
+
/* Also hide scrollbars for all inner elements */
|
|
262
|
+
* {
|
|
263
|
+
font-family: ${font};
|
|
264
|
+
scrollbar-width: none;
|
|
265
|
+
-ms-overflow-style: none;
|
|
266
|
+
box-sizing: border-box;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
*::-webkit-scrollbar {
|
|
270
|
+
display: none;
|
|
271
|
+
}
|
|
272
|
+
`;
|
|
273
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,IAAI,GAAG,+IAA+I,CAAC;AAE7J,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBvC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;CAUrC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;CAsBrC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCpC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmClC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB/B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAA;;;;;;;;;;;;;CAapC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCvC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;CAexC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;CAsBvC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;mBAShB,IAAI;;;;;;;;;;;;;mBAaJ,IAAI;;;;;;;;;CAStB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hot-labs/kit",
|
|
3
|
+
"version": "1.0.33",
|
|
4
|
+
"description": "HOT Labs Kit is chain agnostic connector with omni payments",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "./build/index.js",
|
|
9
|
+
"types": "./build/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./build/index.js",
|
|
12
|
+
"./server": "./build/omni/index.js"
|
|
13
|
+
},
|
|
14
|
+
"directories": {
|
|
15
|
+
"build": "build"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"react": "^18.0.0",
|
|
19
|
+
"react-dom": "^18.0.0"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@cosmjs/stargate": "^0.37.0",
|
|
23
|
+
"@creit.tech/stellar-wallets-kit": "^1.9.1",
|
|
24
|
+
"@defuse-protocol/one-click-sdk-typescript": "^0.1.13",
|
|
25
|
+
"@hot-labs/near-connect": "^0.6.10",
|
|
26
|
+
"@hot-labs/omni-sdk": "^2.24.0",
|
|
27
|
+
"@keplr-wallet/proto-types": "^0.12.291",
|
|
28
|
+
"@keplr-wallet/provider-extension": "^0.12.291",
|
|
29
|
+
"@metamask/sdk": "^0.34.0",
|
|
30
|
+
"@near-js/crypto": "^2.3.3",
|
|
31
|
+
"@near-js/providers": "^2.5.1",
|
|
32
|
+
"@near-js/utils": "^2.2.4",
|
|
33
|
+
"@noble/hashes": "^2.0.1",
|
|
34
|
+
"@scure/base": "^2.0.0",
|
|
35
|
+
"@solana/spl-token": "^0.4.14",
|
|
36
|
+
"@ton-api/client": "^0.4.0",
|
|
37
|
+
"@ton/core": "^0.62.0",
|
|
38
|
+
"@ton/crypto": "^3.3.0",
|
|
39
|
+
"@tonconnect/ui": "^2.2.0",
|
|
40
|
+
"@walletconnect/universal-provider": "^2.23.0",
|
|
41
|
+
"ethers": "^6.15.0",
|
|
42
|
+
"mobx": "^6.15.0",
|
|
43
|
+
"mobx-react-lite": "^4.1.1",
|
|
44
|
+
"qr-code-styling": "^1.9.2",
|
|
45
|
+
"styled-components": "^6.1.19"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "rm -rf build && yarn tsc",
|
|
49
|
+
"dev": "vite build"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/react": "^19.2.0",
|
|
53
|
+
"@types/react-dom": "^19.2.3",
|
|
54
|
+
"@types/uuid4": "^2.0.3",
|
|
55
|
+
"tsc": "^2.0.4",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vite": "^7.2.4",
|
|
58
|
+
"vite-plugin-node-polyfills": "^0.24.0"
|
|
59
|
+
}
|
|
60
|
+
}
|