@cordystackx/cordy_minikit 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +134 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +2327 -0
- package/package.json +5 -2
package/dist/index.css
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* css/UI_Comp/styles.module.css */
|
|
2
|
+
.container,
|
|
3
|
+
.connector,
|
|
4
|
+
.connector div,
|
|
5
|
+
.info,
|
|
6
|
+
.info span {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
.container {
|
|
12
|
+
width: 100dvw;
|
|
13
|
+
height: 100dvh;
|
|
14
|
+
backdrop-filter: blur(10px);
|
|
15
|
+
z-index: 999;
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: 50%;
|
|
18
|
+
left: 50%;
|
|
19
|
+
transform: translate(-50%, -50%);
|
|
20
|
+
}
|
|
21
|
+
.connector {
|
|
22
|
+
width: min(400px, 100dvw);
|
|
23
|
+
height: 500px;
|
|
24
|
+
background-color: var(--background_wagmi);
|
|
25
|
+
position: fixed;
|
|
26
|
+
border: 2px solid var(--foreground_wagmi);
|
|
27
|
+
flex-flow: column;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
animation: fadeIn 0.5s ease forwards;
|
|
30
|
+
}
|
|
31
|
+
.connector div {
|
|
32
|
+
flex-flow: column;
|
|
33
|
+
padding: 1rem 0;
|
|
34
|
+
width: 90%;
|
|
35
|
+
}
|
|
36
|
+
.connector div p {
|
|
37
|
+
color: #f00;
|
|
38
|
+
text-align: center;
|
|
39
|
+
}
|
|
40
|
+
@keyframes fadeIn {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: scale(0.9);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: scale(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.connector img {
|
|
51
|
+
margin: 1rem 0;
|
|
52
|
+
filter: var(--invert-cordy-image);
|
|
53
|
+
}
|
|
54
|
+
.connector button {
|
|
55
|
+
width: 300px;
|
|
56
|
+
padding: 1rem;
|
|
57
|
+
background-color: var(--foreground_wagmi);
|
|
58
|
+
color: var(--background_wagmi);
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
border: transparent;
|
|
62
|
+
transition: all 0.5s ease;
|
|
63
|
+
margin: 1rem 0;
|
|
64
|
+
transition: all 0.5s ease-in-out;
|
|
65
|
+
}
|
|
66
|
+
.connector button:hover {
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
}
|
|
69
|
+
.connector button:active {
|
|
70
|
+
transform: scale(0.5);
|
|
71
|
+
}
|
|
72
|
+
.info span {
|
|
73
|
+
flex-flow: column;
|
|
74
|
+
}
|
|
75
|
+
.info span p {
|
|
76
|
+
width: 80%;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
margin: 1rem 0;
|
|
81
|
+
font-weight: bolder;
|
|
82
|
+
}
|
|
83
|
+
.closed {
|
|
84
|
+
padding: 1rem;
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
right: 0;
|
|
88
|
+
font-weight: bolder;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
@media (max-width: 800px) {
|
|
92
|
+
.connector {
|
|
93
|
+
bottom: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* css/Buttons/styles.module.css */
|
|
98
|
+
:root {
|
|
99
|
+
--foreground_wagmi: #171717;
|
|
100
|
+
--background_wagmi: #FAFAFA;
|
|
101
|
+
--invert-cordy-image: invert(1);
|
|
102
|
+
--invert-cordy-image_1: invert(0);
|
|
103
|
+
}
|
|
104
|
+
@media (prefers-color-scheme: dark) {
|
|
105
|
+
:root {
|
|
106
|
+
--foreground_wagmi: #ededed;
|
|
107
|
+
--background_wagmi: #121212;
|
|
108
|
+
--invert-cordy-image: invert(0);
|
|
109
|
+
--invert-cordy-image_1: invert(1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.button__button {
|
|
113
|
+
width: 150px;
|
|
114
|
+
padding: 0.8rem;
|
|
115
|
+
background-color: var(--foreground_wagmi);
|
|
116
|
+
color: var(--background_wagmi);
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
border: transparent;
|
|
120
|
+
transition: all 0.5s ease-in-out;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
text-overflow: ellipsis;
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
.button__button img {
|
|
127
|
+
filter: var(--invert-cordy-image_1);
|
|
128
|
+
}
|
|
129
|
+
.button__button:hover {
|
|
130
|
+
opacity: 0.5;
|
|
131
|
+
}
|
|
132
|
+
.button__button:active {
|
|
133
|
+
transform: scale(0.6);
|
|
134
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare function WalletProviders({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): any;
|
|
6
|
+
|
|
7
|
+
declare function UI_Comp(): any;
|
|
8
|
+
|
|
9
|
+
declare function ConnectWalletBT(): any;
|
|
10
|
+
|
|
11
|
+
declare function WalletButton({ onStatusChange, }: {
|
|
12
|
+
onStatusChange?: (status: {
|
|
13
|
+
isPending: boolean;
|
|
14
|
+
error?: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
}): any;
|
|
17
|
+
|
|
18
|
+
declare function Disconnect(): any;
|
|
19
|
+
|
|
20
|
+
declare function CordyStackTrans(address: string, cost: number | string): Promise<void>;
|
|
21
|
+
|
|
22
|
+
declare function getTokenBalance(address: string, tokenAddress: string): Promise<string>;
|
|
23
|
+
|
|
24
|
+
export { ConnectWalletBT, CordyStackTrans, Disconnect, WalletProviders as ProvidersClientWrapper, UI_Comp, WalletButton, getTokenBalance };
|